Revision aab8588a
b/configure | ||
---|---|---|
244 | 244 |
bsd="yes" |
245 | 245 |
darwin="yes" |
246 | 246 |
# on Leopard most of the system is 32-bit, so we have to ask the kernel it if we can run 64-bit userspace code |
247 |
is_x86_64=`sysctl -n hw.optional.x86_64`
|
|
248 |
if [ "$is_x86_64" = "1" ]; then
|
|
249 |
cpu=x86_64 |
|
247 |
if [ "$cpu" = "i386" ] ; then
|
|
248 |
is_x86_64=`sysctl -n hw.optional.x86_64`
|
|
249 |
[ "$is_x86_64" = "1" ] && cpu=x86_64
|
|
250 | 250 |
fi |
251 | 251 |
if [ "$cpu" = "x86_64" ] ; then |
252 | 252 |
OS_CFLAGS="-arch x86_64" |
Also available in: Unified diff