common/autoconf/configure.ac

Print this page




 987     $UNCYGDRIVE $CC $SRC_ROOT/common/src/uncygdrive.c /Fe$OUTPUT_ROOT/uncygdrive2.exe > $OUTPUT_ROOT/uncygdrive2.log 2>&1 
 988     cd $CURDIR
 989     if test ! -x $OUTPUT_ROOT/uncygdrive2.exe; then 
 990         AC_MSG_RESULT([no])
 991         cat $OUTPUT_ROOT/uncygdrive2.log
 992         AC_ERROR([Uncygdrive did not work!])
 993     fi
 994     AC_MSG_RESULT([yes])
 995     rm -f $OUTPUT_ROOT/uncygdrive?.??? $OUTPUT_ROOT/uncygdrive.obj
 996 fi
 997 
 998 AC_SUBST(UNCYGDRIVE)
 999 
1000 TESTFOR_PROG_CCACHE
1001 
1002 # Used on GNU/Linux systems, can be empty...
1003 #AC_PATH_PROG(ELFDUMP, elfdump)
1004 
1005 # Setup default logging of stdout and stderr to build.log in the output root.
1006 BUILD_LOG='$(OUTPUT_ROOT)/build.log'
1007 BUILD_LOG_WRAPPER='$(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'




1008 AC_SUBST(BUILD_LOG)
1009 AC_SUBST(BUILD_LOG_WRAPPER)
1010 
1011 ###############################################################################
1012 #
1013 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
1014 # (The JVM can use 32 or 64 bit Java pointers but that decision
1015 # is made at runtime.)
1016 #
1017 AC_CHECK_SIZEOF([int *], [1111])
1018 if test "x$ac_cv_sizeof_int_p" = x0; then 
1019     # The test failed, lets pick the assumed value.
1020     ARCH_DATA_MODEL=$HOST_CPU_BITS
1021 else
1022     ARCH_DATA_MODEL=`expr 8 \* $ac_cv_sizeof_int_p`
1023 fi
1024 
1025 if test "x$ARCH_DATA_MODEL" = x64; then
1026     A_LP64="LP64:="
1027     ADD_LP64="-D_LP64=1"




 987     $UNCYGDRIVE $CC $SRC_ROOT/common/src/uncygdrive.c /Fe$OUTPUT_ROOT/uncygdrive2.exe > $OUTPUT_ROOT/uncygdrive2.log 2>&1 
 988     cd $CURDIR
 989     if test ! -x $OUTPUT_ROOT/uncygdrive2.exe; then 
 990         AC_MSG_RESULT([no])
 991         cat $OUTPUT_ROOT/uncygdrive2.log
 992         AC_ERROR([Uncygdrive did not work!])
 993     fi
 994     AC_MSG_RESULT([yes])
 995     rm -f $OUTPUT_ROOT/uncygdrive?.??? $OUTPUT_ROOT/uncygdrive.obj
 996 fi
 997 
 998 AC_SUBST(UNCYGDRIVE)
 999 
1000 TESTFOR_PROG_CCACHE
1001 
1002 # Used on GNU/Linux systems, can be empty...
1003 #AC_PATH_PROG(ELFDUMP, elfdump)
1004 
1005 # Setup default logging of stdout and stderr to build.log in the output root.
1006 BUILD_LOG='$(OUTPUT_ROOT)/build.log'
1007 if test -x $SRC_ROOT/common/bin/logger.sh ; then
1008         BUILD_LOG_WRAPPER='$(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
1009 else
1010         BUILD_LOG_WRAPPER='$(SH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
1011 fi
1012 AC_SUBST(BUILD_LOG)
1013 AC_SUBST(BUILD_LOG_WRAPPER)
1014 
1015 ###############################################################################
1016 #
1017 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
1018 # (The JVM can use 32 or 64 bit Java pointers but that decision
1019 # is made at runtime.)
1020 #
1021 AC_CHECK_SIZEOF([int *], [1111])
1022 if test "x$ac_cv_sizeof_int_p" = x0; then 
1023     # The test failed, lets pick the assumed value.
1024     ARCH_DATA_MODEL=$HOST_CPU_BITS
1025 else
1026     ARCH_DATA_MODEL=`expr 8 \* $ac_cv_sizeof_int_p`
1027 fi
1028 
1029 if test "x$ARCH_DATA_MODEL" = x64; then
1030     A_LP64="LP64:="
1031     ADD_LP64="-D_LP64=1"