Changeset 1391 for branches/GNU/src/gcc/libjava/configure.in
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/configure.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 16 16 AC_ARG_WITH(cross-host, 17 17 [ --with-cross-host=HOST configuring with a cross compiler]) 18 19 AC_ARG_WITH(newlib, 20 [ --with-newlib Configuring with newlib]) 18 21 19 22 LIBGCJ_CONFIGURE(.) … … 30 33 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL" 31 34 # FIXME: this is a hack. 32 sub_auxdir="`cd $ac_aux_dir && pwd`"35 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`" 33 36 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir" 34 37 fi … … 113 116 AC_DEFINE(INTERPRETER) 114 117 fi 118 INTERPRETER="$libgcj_interpreter" 119 AC_SUBST(INTERPRETER) 115 120 116 121 AC_MSG_CHECKING([for exception model to use]) … … 192 197 AC_DEFINE(USE_LIBFFI) 193 198 LIBFFI=../libffi/libffi_convenience.la 194 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I $(MULTIBUILDTOP)../libffi/include'199 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include' 195 200 fi 196 201 AC_SUBST(LIBFFI) … … 222 227 PLATFORMOBJS=win32.lo 223 228 PLATFORMH=win32.h 229 CHECK_FOR_BROKEN_MINGW_LD 224 230 ;; 225 231 *) … … 274 280 AC_SUBST(SYSTEMSPEC) 275 281 276 LIBGCJTESTSPEC="-L` pwd`/.libs -rpath `pwd`/.libs"282 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs" 277 283 AC_SUBST(LIBGCJTESTSPEC) 278 284 … … 308 314 GCINCS='-I$(top_srcdir)/../boehm-gc/include' 309 315 JC1GCSPEC='-fuse-boehm-gc' 310 GCTESTSPEC="-L` pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"316 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs" 311 317 312 318 dnl We also want to pick up some cpp flags required when including … … 440 446 HASH_SYNC_SPEC= 441 447 # Hash synchronization is only useful with posix threads right now. 442 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then448 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then 443 449 HASH_SYNC_SPEC=-fhash-synchronization 444 450 AC_DEFINE(JV_HASH_SYNCHRONIZATION, 1, [Define if hash synchronization is in use]) … … 466 472 AC_SUBST(gcc_version) 467 473 468 if test -n "${with_cross_host}"; then474 if test "x${with_newlib}" = "xyes"; then 469 475 # We are being configured with a cross compiler. AC_REPLACE_FUNCS 470 476 # may not work correctly, because the compiler may not be able to … … 489 495 # If Canadian cross, then don't pick up tools from the build 490 496 # directory. 491 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then 497 if test x"$build" != x"$with_cross_host" \ 498 && test x"$build" != x"$target"; then 492 499 CANADIAN=yes 493 500 GCC_UNWIND_INCLUDE= … … 502 509 AC_CHECK_FUNCS(inet_aton inet_addr, break) 503 510 AC_CHECK_FUNCS(inet_pton uname inet_ntoa) 504 AC_CHECK_FUNCS(fork execvp pipe sigaction )511 AC_CHECK_FUNCS(fork execvp pipe sigaction ftruncate) 505 512 AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h) 506 513 AC_CHECK_FUNC(backtrace, [ … … 513 520 ;; 514 521 esac 522 ], [ 523 case "$host" in 524 *mingw*) 525 # Has backtrace() defined in libgcj itself 526 AC_DEFINE(HAVE_BACKTRACE) 527 ;; 528 esac 515 529 ]) 516 530 517 531 AC_CHECK_LIB(dl, dladdr, [ 518 532 AC_DEFINE(HAVE_DLADDR)]) 519 AC_CHECK_FILES(/proc/self/exe, [ 520 AC_DEFINE(HAVE_PROC_SELF_EXE)]) 533 if test x"$build" = x"$host"; then 534 AC_CHECK_FILES(/proc/self/exe, [ 535 AC_DEFINE(HAVE_PROC_SELF_EXE)]) 536 else 537 case $host in 538 *-linux*) 539 AC_DEFINE(HAVE_PROC_SELF_EXE) 540 ;; 541 esac 542 fi 521 543 522 544 AM_ICONV … … 711 733 fi 712 734 if test -x "${builddotdot}/../../gcc/gcj"; then 713 dir="`cd ${builddotdot}/../../gcc && pwd`"714 GCJ="$dir/gcj -B` pwd`/ -B$dir/"735 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`" 736 GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/" 715 737 else 716 738 CANADIAN=yes 717 739 NULL_TARGET=yes 718 GCJ="gcj -B` pwd`/"740 GCJ="gcj -B`${PWDCMD-pwd}`/" 719 741 fi 720 742 fi … … 726 748 # have libgcj.jar nor java/lang/*.class 727 749 GCJ_SAVE_CPPFLAGS=$CPPFLAGS 728 CPPFLAGS="$CPPFLAGS -I` pwd` -I`cd $srcdir && pwd`"750 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`" 729 751 730 752 # Since some classes depend on this one, we need its source available … … 768 790 AC_SUBST(CHECKREFSPEC) 769 791 AC_SUBST(EXCEPTIONSPEC) 792 AC_SUBST(IEEESPEC) 770 793 771 794 AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes) … … 788 811 AC_SUBST(toolexeclibdir) 789 812 790 AC_SUBST(AM_RUNTESTFLAGS)791 792 813 # Determine gcj version number. 793 814 changequote(<<,>>) … … 796 817 GCJVERSION=$gcjversion 797 818 AC_SUBST(GCJVERSION) 798 AC_DEFINE_UNQUOTED(GCJVERSION, "$GCJVERSION", [Short GCJ version ])819 AC_DEFINE_UNQUOTED(GCJVERSION, "$GCJVERSION", [Short GCJ version ID]) 799 820 800 821 dnl Work around a g++ bug. Reported to gcc-bugs@gcc.gnu.org on Jan 22, 2000. … … 811 832 dnl On that system, sys/ioctl.h will not include sys/filio.h unless 812 833 dnl BSD_COMP is defined; just including sys/filio.h is simpler. 813 AC_CHECK_HEADERS(unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h stdint.h langinfo.h locale.h)834 AC_CHECK_HEADERS(unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h) 814 835 dnl We avoid AC_HEADER_DIRENT since we really only care about dirent.h 815 836 dnl for now. If you change this, you also must update natFile.cc. … … 871 892 dnl when cross-compiling. So instead we make an assumption that 872 893 dnl the header file will mention timezone if it exists. 873 AC_TRY_COMPILE([#include <time.h>], [long z2 = timezone;], 894 dnl Don't find the win32 function timezone 895 AC_TRY_COMPILE([#include <time.h>], [void i(){long z2 = 2*timezone;}], 874 896 [AC_DEFINE(HAVE_TIMEZONE) 875 897 AC_MSG_RESULT(yes)], 876 [AC_MSG_RESULT(no)])]) 898 [AC_MSG_RESULT(no) 899 AC_MSG_CHECKING([for global _timezone variable]) 900 dnl FIXME: As above, don't want link check 901 AC_TRY_COMPILE([#include <time.h>], [long z2 = _timezone;], 902 [AC_DEFINE(HAVE_UNDERSCORE_TIMEZONE) 903 AC_MSG_RESULT(yes)], 904 [AC_MSG_RESULT(no)])])]) 877 905 878 906 AC_FUNC_ALLOCA … … 897 925 ;; 898 926 powerpc-*-linux*) 899 SIGNAL_HANDLER=include/ dwarf2-signal.h927 SIGNAL_HANDLER=include/powerpc-signal.h 900 928 ;; 901 929 alpha*-*-linux*) 902 930 SIGNAL_HANDLER=include/dwarf2-signal.h 931 ;; 932 s390*-*-linux*) 933 SIGNAL_HANDLER=include/s390-signal.h 934 ;; 935 x86_64*-*-linux*) 936 SIGNAL_HANDLER=include/x86_64-signal.h 903 937 ;; 904 938 sparc*-*-linux*) … … 917 951 SIGNAL_HANDLER=include/default-signal.h 918 952 fi 953 954 # Define here any compiler flags that you need in order to make backtrace() work. 955 BACKTRACESPEC= 956 case "${host}" in 957 x86_64*-*-linux*) 958 BACKTRACESPEC=-fno-omit-frame-pointer 959 ;; 960 esac 961 AC_SUBST(BACKTRACESPEC) 919 962 920 963 AC_SUBST(SYSDEP_SOURCES) … … 966 1009 967 1010 968 here=` pwd`1011 here=`${PWDCMD-pwd}` 969 1012 AC_SUBST(here) 970 1013 … … 983 1026 # Make subdirectories and `.d' files. Look in both srcdir and 984 1027 # builddir for the .java files. 985 h=` pwd`1028 h=`${PWDCMD-pwd}` 986 1029 : > deps.mk 987 1030 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ; … … 1011 1054 CC="${CC}" 1012 1055 CXX="${CXX}" 1056 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" 1013 1057 ) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.