179
179
dnl Figure out if we are 32-bit or 64-bit (LP64)
180
180
AC_CHECK_SIZEOF(void *)
181
181
if test "$ac_cv_sizeof_void_p" = 8; then
182
AC_MSG_RESULT(Building 64-bit)
182
AC_MSG_RESULT(Detected 64-bit Build Environment)
183
183
CFLAGS="-DJU_64BIT $CFLAGS"
185
AC_MSG_RESULT(Building 32-bit)
186
CFLAGS="-UJU_64BIT $CFLAGS"
185
AC_MSG_RESULT(Detected 32-bit Build Environment)
186
CFLAGS="-UJU_64BIT $CFLAGS"
189
AC_ARG_ENABLE(32-bit, [ --enable-32-bit Generate code for a 32-bit environment],
190
b32="$enableval", b32="no")
191
if test x"$b32" != "xno"; then
192
AC_MSG_RESULT(Configured to Build 32-bit)
193
if test x"$GCC" = xyes; then
194
CFLAGS="-UJU_64BIT -m32 $CFLAGS"
196
CFLAGS="-UJU_64BIT $CFLAGS"
200
AC_ARG_ENABLE(64-bit, [ --enable-64-bit Generate code for a 64-bit environment],
201
b64="$enableval", b64="no")
202
if test x"$b64" != "xno"; then
203
AC_MSG_RESULT(Configured to Building 64-bit)
204
if test x"$GCC" = xyes; then
205
CFLAGS="-DJU_64BIT -m64 $CFLAGS"
207
CFLAGS="-DJU_64BIT $CFLAGS"
190
213
# dnl Determine whether or not we're compiling for a 64-bit system by looking