This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Alexandre Oliva wrote: > > Jeffrey A Law <law@hurl.cygnus.com> writes: > > > In message <orr9xs25zw.fsf@tiete.dcc.unicamp.br>you write: > >> > Anybody got any clues about this? Should I hack configure to check for > >> > $LD and $AS, use them and force their full paths into the binary? > > >> No! IMO, `make install' should install links to `as' and `real-ld' if > >> appropriate. What do you think? > > > I would much prefer us encourage folks to install the various tools > > with the same --prefix. If they do that all this stuff will just > > work. Encourage yes, force no. Unfortunately for some of us, this is not a sensible option. Tools should be flexible about their installation. I really don't want to duplicate gas, and gnu-ld just to have an installation of egcs alongside g++ (remember, I'm not root). It is doubly annoying, because even though `which as' tells me it's gnu as, and I say --with-gas, egcs silently ignores this. I have followed through on Alexandre's suggestion to add symbolic links to as and ld, if they are not located in the buuld tree or the --prefix, --exec-prefix directories. In doing this I discovered that the current configure.in is broken in its method of determining the assembler capabilities. Specifically, if as is not in . or ../gas/, and it's a native build, the as on the current path is checked. However, when gcc invokes the assembler it uses the program path, which could be (and in my case is) different to that used in the configure test. what this patch does is a) on native builds fallback to locating the assembler using $(AS) (new behaviour) and then the current path (current behaviour). If this location is not in the correct --exec-prefix directory, it is cached as host_as. b) ditto on ld c) Makefile install creates a symbolic link from --exec-prefix/... to host_as and host_ld, if they are set. I have added an m4 macro, EGCS_PATH_PROG, which does the locating. This comes from autoconf's PATH_PROG macro, but is slightly different in that it checks if the environment variable is already an absolute path. The autoconf sources are under GNU GPL, so I believe this is ok. nathan -- Dr Nathan Sidwell :: Computer Science Department :: Bristol University You can up the bandwidth, but you can't up the speed of light nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
gcc/ChangeLog Mon Sep 7 11:35:27 BST 1998 Nathan Sidwell <nathan@acm.org> * aclocal.m4 (EGCS_PATH_PROG): New macro (derived from autoconf PATH_PROG David MacKenzie). * configure.in: Use it to locate as and ld, if we can't otherwise find them. (host_as, host_ld): Strangely located native build assembler and linker. * Makefile.in (host_as, host_ld): Use to create symbolic links from install dir to real locations. Index: gcc/configure.in =================================================================== RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v retrieving revision 1.129.2.6 diff -b -c -3 -p -r1.129.2.6 configure.in *** configure.in 1998/08/01 09:45:56 1.129.2.6 --- configure.in 1998/09/07 10:30:59 *************** if [[ -f ../ld/Makefile ]]; then *** 3346,3359 **** # fi fi ! # Figure out what assembler alignment features are present. ! AC_MSG_CHECKING(assembler alignment features) gcc_cv_as= gcc_cv_as_alignment_features= ! gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'` if [[ -x as$host_exeext ]]; then # Build using assembler in the current directory. ! gcc_cv_as=./as$host_exeext elif [[ -f $gcc_cv_as_gas_srcdir/configure.in ]]; then # Single tree build which includes gas. for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in --- 3346,3359 ---- # fi fi ! # Locate the assembler and figure out what assembler alignment features ! # are present. gcc_cv_as= gcc_cv_as_alignment_features= ! gcc_cv_as_gas_srcdir=$srcdir/../gas if [[ -x as$host_exeext ]]; then # Build using assembler in the current directory. ! gcc_cv_as=./as elif [[ -f $gcc_cv_as_gas_srcdir/configure.in ]]; then # Single tree build which includes gas. for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in *************** elif [[ -f $gcc_cv_as_gas_srcdir/configu *** 3380,3388 **** fi fi elif [[ x$host = x$target ]]; then ! # Native build. ! gcc_cv_as=as$host_exeext fi if [[ x$gcc_cv_as != x ]]; then # Check if we have .balign and .p2align echo ".balign 4" > conftest.s --- 3380,3394 ---- fi fi elif [[ x$host = x$target ]]; then ! # Native build. Remember where we found the assembler, if it's strange ! EGCS_PATH_PROG(AS,as) ! gcc_cv_as=$AS ! if [[ x$AS != x$exec_prefix/bin/as -a x$AS != x$exec_prefix/$target_alias/bin/as ]]; then ! host_as=$AS ! fi fi + AC_SUBST(host_as) + AC_MSG_CHECKING(assembler alignment features) if [[ x$gcc_cv_as != x ]]; then # Check if we have .balign and .p2align echo ".balign 4" > conftest.s *************** if [[ x$gcc_cv_as != x ]]; then *** 3402,3407 **** --- 3408,3423 ---- rm -f conftest.s conftest.o fi AC_MSG_RESULT($gcc_cv_as_alignment_features) + + # locate the linker + if [[ ! -x ld$host_exeext -a ! -f ../ld/configure.in -a x$host = x$target ]]; then + # Native build. Locate the linker, remember where, if it's strange + EGCS_PATH_PROG(LD,ld) + if [[ x$LD != x$exec_prefix/bin/ld -a x$LD != x$exec_prefix/$target_alias/bin/ld ]]; then + host_ld=$LD + fi + fi + AC_SUBST(host_ld) # Figure out what language subdirectories are present. subdirs= Index: gcc/Makefile.in =================================================================== RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v retrieving revision 1.151.2.3 diff -b -c -3 -p -r1.151.2.3 Makefile.in *** Makefile.in 1998/07/30 12:52:17 1.151.2.3 --- Makefile.in 1998/09/07 10:31:01 *************** gcc_version=@gcc_version@ *** 250,255 **** --- 250,258 ---- gcc_version_trigger=@gcc_version_trigger@ version=$(gcc_version) mainversion=`sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/' < $(srcdir)/version.c` + # real assembler and linker + host_as=@host_as@ + host_ld=@host_ld@ # Common prefix for installation directories. # NOTE: This directory must exist when you start installation. *************** install-common: native installdirs $(EXT *** 2325,2330 **** --- 2328,2341 ---- chmod a-x $(libsubdir)/$$file; \ else true; fi; \ done + # symbolic link the real assembler, if there is one + if [ x$(host_as) != x ]; then \ + $(LN_S) $(host_as)$(exeext) $(libsubdir)/as$(exeext); \ + fi + # symbolic link the real linker, if there is one + if [ x$(host_ld) != x ]; then \ + $(LN_S) $(host_ld)$(exeext) $(libsubdir)/ld$(exeext); \ + fi # Don't mess with specs if it doesn't exist yet. -if [ -f specs ] ; then \ rm -f $(libsubdir)/specs; \ Index: gcc/aclocal.m4 =================================================================== RCS file: /egcs/carton/cvsfiles/egcs/gcc/aclocal.m4,v retrieving revision 1.13 diff -b -c -3 -p -r1.13 aclocal.m4 *** aclocal.m4 1998/07/06 18:17:35 1.13 --- aclocal.m4 1998/09/07 10:31:01 *************** AC_SUBST(INSTALL_PROGRAM)dnl *** 219,221 **** --- 219,270 ---- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' AC_SUBST(INSTALL_DATA)dnl ]) + + dnl{{{ EGCS_PATH_PROG(VARIABLE, PROG-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND [, PATH]]) + dnl This is like AC_PATH_PROG (from whence it is closely derived), that allows + dnl a user to set VARIABLE=/path/to/app to explicitly set where we're looking, + dnl but if the user sets VARIABLE=app, it is ignored in preferrence to + dnl PROG-TO-CHECK-FOR. This version uses PROG-TO-CHECK-FOR, if the user + dnl doesn't specify a default. Then we look on the path + AC_DEFUN(EGCS_PATH_PROG, + [# Extract the first word of "$2", so it can be a program name with args. + set dummy $2; ac_word=[$]2 + AC_MSG_CHECKING([for $ac_word]) + AC_CACHE_VAL(ac_cv_path_$1, + [case "[$]$1" in + /*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + # check they know what they're talking about + test -x "$1$host_exeext" || AC_MSG_ERROR([$]$1 is not executable) + ;; + *) + if test -n "[$]$1" ; then + ac_word="[$]$1" + fi + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + dnl $ac_dummy forces splitting on constant user-supplied paths. + dnl bash word splitting is done only on the output of word expansions, + dnl not every word. This closes a longstanding sh security hole. + for ac_dir in ifelse([$4], , $PATH, [$4$ac_dummy]); do + test -z "$ac_dir" && ac_dir=. + if test -x $ac_dir/$ac_word$host_exeext; then + ac_cv_path_$1="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + dnl If no 3rd arg is given, leave the cache variable unset, + dnl so AC_PATH_PROGS will keep looking. + ifelse([$3], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$3" + ])dnl + ;; + esac])dnl + $1="$ac_cv_path_$1" + if test -n "[$]$1"; then + AC_MSG_RESULT([$]$1) + else + AC_MSG_RESULT(no) + fi + AC_SUBST($1)dnl + ]) + dnl}}} Index: gcc/configure =================================================================== RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure,v retrieving revision 1.129.2.6 diff -b -c -3 -p -r1.129.2.6 configure *** configure 1998/08/01 09:45:57 1.129.2.6 --- configure 1998/09/07 10:31:03 *************** *** 1,7 **** #! /bin/sh # Guess values for system-dependent variables and create Makefiles. ! # Generated automatically using autoconf version 2.12.1 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation --- 1,7 ---- #! /bin/sh # Guess values for system-dependent variables and create Makefiles. ! # Generated automatically using autoconf version 2.12 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation *************** mandir='${prefix}/man' *** 75,81 **** # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= - SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 --- 75,80 ---- *************** EOF *** 359,365 **** verbose=yes ;; -version | --version | --versio | --versi | --vers) ! echo "configure generated by autoconf version 2.12.1" exit 0 ;; -with-* | --with-*) --- 358,364 ---- verbose=yes ;; -version | --version | --versio | --versi | --vers) ! echo "configure generated by autoconf version 2.12" exit 0 ;; -with-* | --with-*) *************** esac *** 760,792 **** # Make sure we can run config.sub. ! if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 ! echo "configure:769: checking host system type" >&5 host_alias=$host case "$host_alias" in NONE) case $nonopt in NONE) ! if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac ! host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 ! echo "configure:790: checking target system type" >&5 target_alias=$target case "$target_alias" in --- 759,791 ---- # Make sure we can run config.sub. ! if $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 ! echo "configure:768: checking host system type" >&5 host_alias=$host case "$host_alias" in NONE) case $nonopt in NONE) ! if host_alias=`$ac_config_guess`; then : else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } fi ;; *) host_alias=$nonopt ;; esac ;; esac ! host=`$ac_config_sub $host_alias` host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 ! echo "configure:789: checking target system type" >&5 target_alias=$target case "$target_alias" in *************** NONE) *** 797,810 **** esac ;; esac ! target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 ! echo "configure:808: checking build system type" >&5 build_alias=$build case "$build_alias" in --- 796,809 ---- esac ;; esac ! target=`$ac_config_sub $target_alias` target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 ! echo "configure:807: checking build system type" >&5 build_alias=$build case "$build_alias" in *************** NONE) *** 815,821 **** esac ;; esac ! build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` --- 814,820 ---- esac ;; esac ! build=`$ac_config_sub $build_alias` build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` *************** test "$host_alias" != "$target_alias" && *** 831,837 **** # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:835: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 830,836 ---- # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:834: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** if test -z "$CC"; then *** 860,866 **** # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:864: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 859,865 ---- # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:863: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** fi *** 908,914 **** fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 ! echo "configure:912: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. --- 907,913 ---- fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 ! echo "configure:911: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. *************** ac_link='${CC-cc} -o conftest $CFLAGS $C *** 918,928 **** cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <<EOF ! #line 922 "configure" #include "confdefs.h" main(){return(0);} EOF ! if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then --- 917,927 ---- cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <<EOF ! #line 921 "configure" #include "confdefs.h" main(){return(0);} EOF ! if { (eval echo configure:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then *************** if test $ac_cv_prog_cc_works = no; then *** 942,953 **** { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 ! echo "configure:946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 ! echo "configure:951: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 941,952 ---- { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 ! echo "configure:945: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 ! echo "configure:950: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** else *** 956,962 **** yes; #endif EOF ! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no --- 955,961 ---- yes; #endif EOF ! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no *************** if test $ac_cv_prog_gcc = yes; then *** 971,977 **** ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 ! echo "configure:975: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 970,976 ---- ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 ! echo "configure:974: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** else *** 999,1005 **** fi echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 ! echo "configure:1003: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 998,1004 ---- fi echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 ! echo "configure:1002: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** do *** 1032,1038 **** # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1036: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 1031,1037 ---- # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1035: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** done *** 1063,1069 **** # Extract the first word of "flex", so it can be a program name with args. set dummy flex; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1067: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 1062,1068 ---- # Extract the first word of "flex", so it can be a program name with args. set dummy flex; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1066: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** then *** 1096,1102 **** *) ac_lib=l ;; esac echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 ! echo "configure:1100: checking for yywrap in -l$ac_lib" >&5 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 1095,1101 ---- *) ac_lib=l ;; esac echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 ! echo "configure:1099: checking for yywrap in -l$ac_lib" >&5 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** else *** 1104,1110 **** ac_save_LIBS="$LIBS" LIBS="-l$ac_lib $LIBS" cat > conftest.$ac_ext <<EOF ! #line 1108 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 --- 1103,1109 ---- ac_save_LIBS="$LIBS" LIBS="-l$ac_lib $LIBS" cat > conftest.$ac_ext <<EOF ! #line 1107 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 *************** int main() { *** 1115,1121 **** yywrap() ; return 0; } EOF ! if { (eval echo configure:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else --- 1114,1120 ---- yywrap() ; return 0; } EOF ! if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else *************** fi *** 1138,1144 **** fi echo $ac_n "checking whether ln works""... $ac_c" 1>&6 ! echo "configure:1142: checking whether ln works" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 1137,1143 ---- fi echo $ac_n "checking whether ln works""... $ac_c" 1>&6 ! echo "configure:1141: checking whether ln works" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** else *** 1170,1176 **** fi echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 ! echo "configure:1174: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 1169,1175 ---- fi echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 ! echo "configure:1173: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** else *** 1202,1220 **** fi echo $ac_n "checking for volatile""... $ac_c" 1>&6 ! echo "configure:1206: checking for volatile" >&5 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1211 "configure" #include "confdefs.h" int main() { volatile int foo; ; return 0; } EOF ! if { (eval echo configure:1218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gcc_cv_c_volatile=yes else --- 1201,1219 ---- fi echo $ac_n "checking for volatile""... $ac_c" 1>&6 ! echo "configure:1205: checking for volatile" >&5 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1210 "configure" #include "confdefs.h" int main() { volatile int foo; ; return 0; } EOF ! if { (eval echo configure:1217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gcc_cv_c_volatile=yes else *************** fi *** 1237,1243 **** # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1241: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 1236,1242 ---- # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1240: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** do *** 1268,1274 **** # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1272: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 1267,1273 ---- # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:1271: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** test -n "$YACC" || YACC="yacc" *** 1308,1314 **** # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ! echo "configure:1312: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 --- 1307,1313 ---- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ! echo "configure:1311: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 *************** test -z "$INSTALL_DATA" && INSTALL_DATA= *** 1359,1365 **** echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 ! echo "configure:1363: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= --- 1358,1364 ---- echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 ! echo "configure:1362: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= *************** else *** 1374,1386 **** # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF ! #line 1378 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then : --- 1373,1385 ---- # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF ! #line 1377 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then : *************** else *** 1391,1403 **** rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF ! #line 1395 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then : --- 1390,1402 ---- rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF ! #line 1394 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then : *************** fi *** 1420,1431 **** echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 ! echo "configure:1424: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1429 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> --- 1419,1430 ---- echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 ! echo "configure:1423: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1428 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> *************** else *** 1433,1439 **** #include <float.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* --- 1432,1438 ---- #include <float.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* *************** rm -f conftest* *** 1450,1456 **** if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext <<EOF ! #line 1454 "configure" #include "confdefs.h" #include <string.h> EOF --- 1449,1455 ---- if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext <<EOF ! #line 1453 "configure" #include "confdefs.h" #include <string.h> EOF *************** fi *** 1468,1474 **** if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext <<EOF ! #line 1472 "configure" #include "confdefs.h" #include <stdlib.h> EOF --- 1467,1473 ---- if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext <<EOF ! #line 1471 "configure" #include "confdefs.h" #include <stdlib.h> EOF *************** if test "$cross_compiling" = yes; then *** 1489,1495 **** : else cat > conftest.$ac_ext <<EOF ! #line 1493 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') --- 1488,1494 ---- : else cat > conftest.$ac_ext <<EOF ! #line 1492 "configure" #include "confdefs.h" #include <ctype.h> #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') *************** if (XOR (islower (i), ISLOWER (i)) || to *** 1500,1506 **** exit (0); } EOF ! if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then : else --- 1499,1505 ---- exit (0); } EOF ! if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then : else *************** EOF *** 1524,1535 **** fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 ! echo "configure:1528: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1533 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> --- 1523,1534 ---- fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 ! echo "configure:1527: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1532 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/time.h> *************** int main() { *** 1538,1544 **** struct tm *tp; ; return 0; } EOF ! if { (eval echo configure:1542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else --- 1537,1543 ---- struct tm *tp; ; return 0; } EOF ! if { (eval echo configure:1541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else *************** for ac_hdr in limits.h stddef.h string.h *** 1562,1578 **** do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! echo "configure:1566: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1571 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* --- 1561,1577 ---- do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 ! echo "configure:1565: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1570 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* *************** done *** 1602,1618 **** # Check for thread headers. ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for thread.h""... $ac_c" 1>&6 ! echo "configure:1606: checking for thread.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1611 "configure" #include "confdefs.h" #include <thread.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* --- 1601,1617 ---- # Check for thread headers. ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for thread.h""... $ac_c" 1>&6 ! echo "configure:1605: checking for thread.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1610 "configure" #include "confdefs.h" #include <thread.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* *************** fi *** 1636,1652 **** ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 ! echo "configure:1640: checking for pthread.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1645 "configure" #include "confdefs.h" #include <pthread.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* --- 1635,1651 ---- ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 ! echo "configure:1639: checking for pthread.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1644 "configure" #include "confdefs.h" #include <pthread.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ! { (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* *************** fi *** 1672,1683 **** # See if the system preprocessor understands the ANSI C preprocessor # stringification operator. echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 ! echo "configure:1676: checking whether cpp understands the stringify operator" >&5 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1681 "configure" #include "confdefs.h" int main() { --- 1671,1682 ---- # See if the system preprocessor understands the ANSI C preprocessor # stringification operator. echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6 ! echo "configure:1675: checking whether cpp understands the stringify operator" >&5 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1680 "configure" #include "confdefs.h" int main() { *************** int main() { *** 1685,1691 **** char *test = S(foo); ; return 0; } EOF ! if { (eval echo configure:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gcc_cv_c_have_stringify=yes else --- 1684,1690 ---- char *test = S(foo); ; return 0; } EOF ! if { (eval echo configure:1688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gcc_cv_c_have_stringify=yes else *************** fi *** 1708,1719 **** # Use <inttypes.h> only if it exists, # doesn't clash with <sys/types.h>, and declares intmax_t. echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 ! echo "configure:1712: checking for inttypes.h" >&5 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1717 "configure" #include "confdefs.h" #include <sys/types.h> #include <inttypes.h> --- 1707,1718 ---- # Use <inttypes.h> only if it exists, # doesn't clash with <sys/types.h>, and declares intmax_t. echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 ! echo "configure:1711: checking for inttypes.h" >&5 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1716 "configure" #include "confdefs.h" #include <sys/types.h> #include <inttypes.h> *************** int main() { *** 1721,1727 **** intmax_t i = -1; ; return 0; } EOF ! if { (eval echo configure:1725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<EOF #define HAVE_INTTYPES_H 1 --- 1720,1726 ---- intmax_t i = -1; ; return 0; } EOF ! if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<EOF #define HAVE_INTTYPES_H 1 *************** for ac_func in strtoul bsearch strerror *** 1744,1755 **** sysconf isascii gettimeofday do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 ! echo "configure:1748: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1753 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ --- 1743,1754 ---- sysconf isascii gettimeofday do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 ! echo "configure:1747: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1752 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ *************** $ac_func(); *** 1772,1778 **** ; return 0; } EOF ! if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else --- 1771,1777 ---- ; return 0; } EOF ! if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else *************** done *** 1798,1809 **** echo $ac_n "checking for vprintf""... $ac_c" 1>&6 ! echo "configure:1802: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1807 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char vprintf(); below. */ --- 1797,1808 ---- echo $ac_n "checking for vprintf""... $ac_c" 1>&6 ! echo "configure:1801: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1806 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char vprintf(); below. */ *************** vprintf(); *** 1826,1832 **** ; return 0; } EOF ! if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else --- 1825,1831 ---- ; return 0; } EOF ! if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else *************** fi *** 1850,1861 **** if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 ! echo "configure:1854: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1859 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char _doprnt(); below. */ --- 1849,1860 ---- if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 ! echo "configure:1853: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1858 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char _doprnt(); below. */ *************** _doprnt(); *** 1878,1884 **** ; return 0; } EOF ! if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else --- 1877,1883 ---- ; return 0; } EOF ! if { (eval echo configure:1881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else *************** fi *** 1914,1920 **** echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 ! echo "configure:1918: checking whether the printf functions support %p" >&5 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else --- 1913,1919 ---- echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 ! echo "configure:1917: checking whether the printf functions support %p" >&5 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else *************** else *** 1922,1928 **** gcc_cv_func_printf_ptr=no else cat > conftest.$ac_ext <<EOF ! #line 1926 "configure" #include "confdefs.h" #include <stdio.h> --- 1921,1927 ---- gcc_cv_func_printf_ptr=no else cat > conftest.$ac_ext <<EOF ! #line 1925 "configure" #include "confdefs.h" #include <stdio.h> *************** main() *** 1935,1941 **** exit (p != q); } EOF ! if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then gcc_cv_func_printf_ptr=yes else --- 1934,1940 ---- exit (p != q); } EOF ! if { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null then gcc_cv_func_printf_ptr=yes else *************** for ac_func in malloc realloc calloc fre *** 1963,1974 **** index rindex getenv atol sbrk abort atof strerror getcwd getwd do echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 ! echo "configure:1967: checking whether $ac_func must be declared" >&5 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1972 "configure" #include "confdefs.h" #include <stdio.h> --- 1962,1973 ---- index rindex getenv atol sbrk abort atof strerror getcwd getwd do echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 ! echo "configure:1966: checking whether $ac_func must be declared" >&5 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 1971 "configure" #include "confdefs.h" #include <stdio.h> *************** int main() { *** 1996,2002 **** char *(*pfn) = (char *(*)) $ac_func ; return 0; } EOF ! if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "gcc_cv_decl_needed_$ac_func=no" else --- 1995,2001 ---- char *(*pfn) = (char *(*)) $ac_func ; return 0; } EOF ! if { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "gcc_cv_decl_needed_$ac_func=no" else *************** done *** 2025,2036 **** for ac_func in getrlimit setrlimit do echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 ! echo "configure:2029: checking whether $ac_func must be declared" >&5 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 2034 "configure" #include "confdefs.h" #include <stdio.h> --- 2024,2035 ---- for ac_func in getrlimit setrlimit do echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6 ! echo "configure:2028: checking whether $ac_func must be declared" >&5 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 2033 "configure" #include "confdefs.h" #include <stdio.h> *************** int main() { *** 2062,2068 **** char *(*pfn) = (char *(*)) $ac_func ; return 0; } EOF ! if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "gcc_cv_decl_needed_$ac_func=no" else --- 2061,2067 ---- char *(*pfn) = (char *(*)) $ac_func ; return 0; } EOF ! if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "gcc_cv_decl_needed_$ac_func=no" else *************** done *** 2089,2100 **** echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 ! echo "configure:2093: checking for sys_siglist declaration in signal.h or unistd.h" >&5 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 2098 "configure" #include "confdefs.h" #include <sys/types.h> #include <signal.h> --- 2088,2099 ---- echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 ! echo "configure:2092: checking for sys_siglist declaration in signal.h or unistd.h" >&5 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF ! #line 2097 "configure" #include "confdefs.h" #include <sys/types.h> #include <signal.h> *************** int main() { *** 2106,2112 **** char *msg = *(sys_siglist + 1); ; return 0; } EOF ! if { (eval echo configure:2110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_sys_siglist=yes else --- 2105,2111 ---- char *msg = *(sys_siglist + 1); ; return 0; } EOF ! if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_sys_siglist=yes else *************** if [ -f ../ld/Makefile ]; then *** 5248,5262 **** # fi fi ! # Figure out what assembler alignment features are present. ! echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 ! echo "configure:5254: checking assembler alignment features" >&5 gcc_cv_as= gcc_cv_as_alignment_features= ! gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'` if [ -x as$host_exeext ]; then # Build using assembler in the current directory. ! gcc_cv_as=./as$host_exeext elif [ -f $gcc_cv_as_gas_srcdir/configure.in ]; then # Single tree build which includes gas. for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in --- 5247,5260 ---- # fi fi ! # Locate the assembler and figure out what assembler alignment features ! # are present. gcc_cv_as= gcc_cv_as_alignment_features= ! gcc_cv_as_gas_srcdir=$srcdir/../gas if [ -x as$host_exeext ]; then # Build using assembler in the current directory. ! gcc_cv_as=./as elif [ -f $gcc_cv_as_gas_srcdir/configure.in ]; then # Single tree build which includes gas. for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in *************** EOF *** 5289,5297 **** fi fi elif [ x$host = x$target ]; then ! # Native build. ! gcc_cv_as=as$host_exeext fi if [ x$gcc_cv_as != x ]; then # Check if we have .balign and .p2align echo ".balign 4" > conftest.s --- 5287,5337 ---- fi fi elif [ x$host = x$target ]; then ! # Native build. Remember where we found the assembler, if it's strange ! # Extract the first word of "as", so it can be a program name with args. ! set dummy as; ac_word=$2 ! echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ! echo "configure:5295: checking for $ac_word" >&5 ! if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then ! echo $ac_n "(cached) $ac_c" 1>&6 ! else ! case "$AS" in ! /*) ! ac_cv_path_AS="$AS" # Let the user override the test with a path. ! # check they know what they're talking about ! test -x "AS$host_exeext" || { echo "configure: error: $AS is not executable" 1>&2; exit 1; } ! ;; ! *) ! if test -n "$AS" ; then ! ac_word="$AS" ! fi ! IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" ! for ac_dir in $PATH; do ! test -z "$ac_dir" && ac_dir=. ! if test -x $ac_dir/$ac_word$host_exeext; then ! ac_cv_path_AS="$ac_dir/$ac_word" ! break ! fi ! done ! IFS="$ac_save_ifs" ! ;; ! esac ! fi ! AS="$ac_cv_path_AS" ! if test -n "$AS"; then ! echo "$ac_t""$AS" 1>&6 ! else ! echo "$ac_t""no" 1>&6 ! fi ! ! gcc_cv_as=$AS ! if [ x$AS != x$exec_prefix/bin/as -a x$AS != x$exec_prefix/$target_alias/bin/as ]; then ! host_as=$AS ! fi fi + + echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 + echo "configure:5335: checking assembler alignment features" >&5 if [ x$gcc_cv_as != x ]; then # Check if we have .balign and .p2align echo ".balign 4" > conftest.s *************** EOF *** 5318,5323 **** --- 5358,5408 ---- fi echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6 + # locate the linker + if [ ! -x ld$host_exeext -a ! -f ../ld/configure.in -a x$host = x$target ]; then + # Native build. Locate the linker, remember where, if it's strange + # Extract the first word of "ld", so it can be a program name with args. + set dummy ld; ac_word=$2 + echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 + echo "configure:5368: checking for $ac_word" >&5 + if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + case "$LD" in + /*) + ac_cv_path_LD="$LD" # Let the user override the test with a path. + # check they know what they're talking about + test -x "LD$host_exeext" || { echo "configure: error: $LD is not executable" 1>&2; exit 1; } + ;; + *) + if test -n "$LD" ; then + ac_word="$LD" + fi + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -x $ac_dir/$ac_word$host_exeext; then + ac_cv_path_LD="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; + esac + fi + LD="$ac_cv_path_LD" + if test -n "$LD"; then + echo "$ac_t""$LD" 1>&6 + else + echo "$ac_t""no" 1>&6 + fi + + if [ x$LD != x$exec_prefix/bin/ld -a x$LD != x$exec_prefix/$target_alias/bin/ld ]; then + host_ld=$LD + fi + fi + + # Figure out what language subdirectories are present. subdirs= for lang in ${srcdir}/*/config-lang.in .. *************** EOF *** 5624,5630 **** # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | ! case `(ac_space=' '; set) 2>&1 | grep ac_space` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). --- 5709,5715 ---- # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | ! case `(ac_space=' '; set) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). *************** do *** 5691,5697 **** echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) ! echo "$CONFIG_STATUS generated by autoconf version 2.12.1" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; --- 5776,5782 ---- echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) ! echo "$CONFIG_STATUS generated by autoconf version 2.12" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *************** sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g *** 5710,5716 **** s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF $ac_vpsub $extrasub - s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g --- 5795,5800 ---- *************** s%@vfprintf@%$vfprintf%g *** 5764,5769 **** --- 5848,5857 ---- s%@doprint@%$doprint%g s%@manext@%$manext%g s%@objext@%$objext%g + s%@AS@%$AS%g + s%@host_as@%$host_as%g + s%@LD@%$LD%g + s%@host_ld@%$host_ld%g s%@gthread_flags@%$gthread_flags%g s%@build_canonical@%$build_canonical%g s%@host_canonical@%$host_canonical%g
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |