Mercurial > flash_v2
comparison configure @ 283:f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
of minor bug fixes. The main goal is to support per-package host-side
software in addition to the generic host-side tools. For example, the
synthetic target HAL and device driver packages can now have host
subdirectories with support code.
| author | bartv |
|---|---|
| date | Sun, 11 Aug 2002 21:40:50 +0000 |
| parents | e0c0827131d1 |
| children | d6a1854fdc1b |
comparison
equal
deleted
inserted
replaced
| 282:a29ee6c2dd3c | 283:f58bc1b2c2bc |
|---|---|
| 452 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 452 # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 453 echo > confdefs.h | 453 echo > confdefs.h |
| 454 | 454 |
| 455 # A filename unique to this package, relative to the directory that | 455 # A filename unique to this package, relative to the directory that |
| 456 # configure is in, which we can look for to find out if srcdir is correct. | 456 # configure is in, which we can look for to find out if srcdir is correct. |
| 457 ac_unique_file=host/COPYING | 457 ac_unique_file=acsupport/config.guess |
| 458 | 458 |
| 459 # Find the source files, if location was not specified. | 459 # Find the source files, if location was not specified. |
| 460 if test -z "$srcdir"; then | 460 if test -z "$srcdir"; then |
| 461 ac_srcdir_defaulted=yes | 461 ac_srcdir_defaulted=yes |
| 462 # Try the directory containing this script, then its parent. | 462 # Try the directory containing this script, then its parent. |
| 523 ac_n= ac_c='\c' ac_t= | 523 ac_n= ac_c='\c' ac_t= |
| 524 fi | 524 fi |
| 525 | 525 |
| 526 | 526 |
| 527 ac_aux_dir= | 527 ac_aux_dir= |
| 528 for ac_dir in host $srcdir/host; do | 528 for ac_dir in acsupport $srcdir/acsupport; do |
| 529 if test -f $ac_dir/install-sh; then | 529 if test -f $ac_dir/install-sh; then |
| 530 ac_aux_dir=$ac_dir | 530 ac_aux_dir=$ac_dir |
| 531 ac_install_sh="$ac_aux_dir/install-sh -c" | 531 ac_install_sh="$ac_aux_dir/install-sh -c" |
| 532 break | 532 break |
| 533 elif test -f $ac_dir/install.sh; then | 533 elif test -f $ac_dir/install.sh; then |
| 535 ac_install_sh="$ac_aux_dir/install.sh -c" | 535 ac_install_sh="$ac_aux_dir/install.sh -c" |
| 536 break | 536 break |
| 537 fi | 537 fi |
| 538 done | 538 done |
| 539 if test -z "$ac_aux_dir"; then | 539 if test -z "$ac_aux_dir"; then |
| 540 { echo "configure: error: can not find install-sh or install.sh in host $srcdir/host" 1>&2; exit 1; } | 540 { echo "configure: error: can not find install-sh or install.sh in acsupport $srcdir/acsupport" 1>&2; exit 1; } |
| 541 fi | 541 fi |
| 542 ac_config_guess=$ac_aux_dir/config.guess | 542 ac_config_guess=$ac_aux_dir/config.guess |
| 543 ac_config_sub=$ac_aux_dir/config.sub | 543 ac_config_sub=$ac_aux_dir/config.sub |
| 544 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 544 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 545 | 545 |
| 818 fi | 818 fi |
| 819 MAINT=$MAINTAINER_MODE_TRUE | 819 MAINT=$MAINTAINER_MODE_TRUE |
| 820 | 820 |
| 821 | 821 |
| 822 | 822 |
| 823 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 823 echo $ac_n "checking that a separate build tree is being used""... $ac_c" 1>&6 |
| 824 echo "configure:825: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 824 echo "configure:825: checking that a separate build tree is being used" >&5 |
| 825 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 825 ecos_cwd=`/bin/pwd` |
| 826 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 826 if test "${srcdir}" = "." ; then |
| 827 echo $ac_n "(cached) $ac_c" 1>&6 | 827 srcdir=${ecos_cwd} |
| 828 else | 828 fi |
| 829 cat > conftestmake <<\EOF | 829 if test "${ecos_cwd}" = "${srcdir}" ; then |
| 830 all: | 830 echo "$ac_t""no" 1>&6 |
| 831 @echo 'ac_maketemp="${MAKE}"' | 831 { echo "configure: error: This configure script should not be run inside the source tree. Instead please use a separate build tree" 1>&2; exit 1; } |
| 832 EOF | 832 else |
| 833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 833 echo "$ac_t""yes" 1>&6 |
| 834 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 834 fi |
| 835 if test -n "$ac_maketemp"; then | 835 |
| 836 eval ac_cv_prog_make_${ac_make}_set=yes | 836 |
| 837 else | 837 SUBDIRS="host" |
| 838 eval ac_cv_prog_make_${ac_make}_set=no | 838 |
| 839 fi | 839 |
| 840 rm -f conftestmake | 840 PKGHOSTDIRS="" |
| 841 fi | 841 FOUND_CONFIGURES="" |
| 842 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 842 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/current/host/configure" |
| 843 echo "$ac_t""yes" 1>&6 | 843 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/current/host/configure" |
| 844 SET_MAKE= | 844 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/current/host/configure" |
| 845 else | 845 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/current/host/configure" |
| 846 echo "$ac_t""no" 1>&6 | 846 FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/*/current/host/configure" |
| 847 SET_MAKE="MAKE=${MAKE-make}" | 847 for configure in ${FOUND_CONFIGURES}; do |
| 848 fi | 848 if test -f ${configure}; then |
| 849 | 849 hostdir=`dirname ${configure}` |
| 850 # Extract the first word of "gcc", so it can be a program name with args. | 850 hostdir=`echo ${hostdir} | sed -e "s:^${srcdir}/::"` |
| 851 set dummy gcc; ac_word=$2 | 851 PKGHOSTDIRS="${PKGHOSTDIRS} ${hostdir}" |
| 852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 852 fi |
| 853 echo "configure:854: checking for $ac_word" >&5 | |
| 854 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
| 855 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 856 else | |
| 857 if test -n "$CC"; then | |
| 858 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 859 else | |
| 860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
| 861 ac_dummy="$PATH" | |
| 862 for ac_dir in $ac_dummy; do | |
| 863 test -z "$ac_dir" && ac_dir=. | |
| 864 if test -f $ac_dir/$ac_word; then | |
| 865 ac_cv_prog_CC="gcc" | |
| 866 break | |
| 867 fi | |
| 868 done | |
| 869 IFS="$ac_save_ifs" | |
| 870 fi | |
| 871 fi | |
| 872 CC="$ac_cv_prog_CC" | |
| 873 if test -n "$CC"; then | |
| 874 echo "$ac_t""$CC" 1>&6 | |
| 875 else | |
| 876 echo "$ac_t""no" 1>&6 | |
| 877 fi | |
| 878 | |
| 879 if test -z "$CC"; then | |
| 880 # Extract the first word of "cc", so it can be a program name with args. | |
| 881 set dummy cc; ac_word=$2 | |
| 882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 883 echo "configure:884: checking for $ac_word" >&5 | |
| 884 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
| 885 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 886 else | |
| 887 if test -n "$CC"; then | |
| 888 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 889 else | |
| 890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
| 891 ac_prog_rejected=no | |
| 892 ac_dummy="$PATH" | |
| 893 for ac_dir in $ac_dummy; do | |
| 894 test -z "$ac_dir" && ac_dir=. | |
| 895 if test -f $ac_dir/$ac_word; then | |
| 896 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
| 897 ac_prog_rejected=yes | |
| 898 continue | |
| 899 fi | |
| 900 ac_cv_prog_CC="cc" | |
| 901 break | |
| 902 fi | |
| 903 done | |
| 904 IFS="$ac_save_ifs" | |
| 905 if test $ac_prog_rejected = yes; then | |
| 906 # We found a bogon in the path, so make sure we never use it. | |
| 907 set dummy $ac_cv_prog_CC | |
| 908 shift | |
| 909 if test $# -gt 0; then | |
| 910 # We chose a different compiler from the bogus one. | |
| 911 # However, it has the same basename, so the bogon will be chosen | |
| 912 # first if we set CC to just the basename; use the full file name. | |
| 913 shift | |
| 914 set dummy "$ac_dir/$ac_word" "$@" | |
| 915 shift | |
| 916 ac_cv_prog_CC="$@" | |
| 917 fi | |
| 918 fi | |
| 919 fi | |
| 920 fi | |
| 921 CC="$ac_cv_prog_CC" | |
| 922 if test -n "$CC"; then | |
| 923 echo "$ac_t""$CC" 1>&6 | |
| 924 else | |
| 925 echo "$ac_t""no" 1>&6 | |
| 926 fi | |
| 927 | |
| 928 if test -z "$CC"; then | |
| 929 case "`uname -s`" in | |
| 930 *win32* | *WIN32*) | |
| 931 # Extract the first word of "cl", so it can be a program name with args. | |
| 932 set dummy cl; ac_word=$2 | |
| 933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 934 echo "configure:935: checking for $ac_word" >&5 | |
| 935 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
| 936 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 937 else | |
| 938 if test -n "$CC"; then | |
| 939 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 940 else | |
| 941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
| 942 ac_dummy="$PATH" | |
| 943 for ac_dir in $ac_dummy; do | |
| 944 test -z "$ac_dir" && ac_dir=. | |
| 945 if test -f $ac_dir/$ac_word; then | |
| 946 ac_cv_prog_CC="cl" | |
| 947 break | |
| 948 fi | |
| 949 done | |
| 950 IFS="$ac_save_ifs" | |
| 951 fi | |
| 952 fi | |
| 953 CC="$ac_cv_prog_CC" | |
| 954 if test -n "$CC"; then | |
| 955 echo "$ac_t""$CC" 1>&6 | |
| 956 else | |
| 957 echo "$ac_t""no" 1>&6 | |
| 958 fi | |
| 959 ;; | |
| 960 esac | |
| 961 fi | |
| 962 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
| 963 fi | |
| 964 | |
| 965 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
| 966 echo "configure:967: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
| 967 | |
| 968 ac_ext=c | |
| 969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 970 ac_cpp='$CPP $CPPFLAGS' | |
| 971 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 972 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 973 cross_compiling=$ac_cv_prog_cc_cross | |
| 974 | |
| 975 cat > conftest.$ac_ext << EOF | |
| 976 | |
| 977 #line 978 "configure" | |
| 978 #include "confdefs.h" | |
| 979 | |
| 980 main(){return(0);} | |
| 981 EOF | |
| 982 if { (eval echo configure:983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
| 983 ac_cv_prog_cc_works=yes | |
| 984 # If we can't run a trivial program, we are probably using a cross compiler. | |
| 985 if (./conftest; exit) 2>/dev/null; then | |
| 986 ac_cv_prog_cc_cross=no | |
| 987 else | |
| 988 ac_cv_prog_cc_cross=yes | |
| 989 fi | |
| 990 else | |
| 991 echo "configure: failed program was:" >&5 | |
| 992 cat conftest.$ac_ext >&5 | |
| 993 ac_cv_prog_cc_works=no | |
| 994 fi | |
| 995 rm -fr conftest* | |
| 996 ac_ext=c | |
| 997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 998 ac_cpp='$CPP $CPPFLAGS' | |
| 999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 1000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 1001 cross_compiling=$ac_cv_prog_cc_cross | |
| 1002 | |
| 1003 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
| 1004 if test $ac_cv_prog_cc_works = no; then | |
| 1005 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
| 1006 fi | |
| 1007 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
| 1008 echo "configure:1009: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
| 1009 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
| 1010 cross_compiling=$ac_cv_prog_cc_cross | |
| 1011 | |
| 1012 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
| 1013 echo "configure:1014: checking whether we are using GNU C" >&5 | |
| 1014 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
| 1015 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1016 else | |
| 1017 cat > conftest.c <<EOF | |
| 1018 #ifdef __GNUC__ | |
| 1019 yes; | |
| 1020 #endif | |
| 1021 EOF | |
| 1022 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
| 1023 ac_cv_prog_gcc=yes | |
| 1024 else | |
| 1025 ac_cv_prog_gcc=no | |
| 1026 fi | |
| 1027 fi | |
| 1028 | |
| 1029 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
| 1030 | |
| 1031 if test $ac_cv_prog_gcc = yes; then | |
| 1032 GCC=yes | |
| 1033 else | |
| 1034 GCC= | |
| 1035 fi | |
| 1036 | |
| 1037 ac_test_CFLAGS="${CFLAGS+set}" | |
| 1038 ac_save_CFLAGS="$CFLAGS" | |
| 1039 CFLAGS= | |
| 1040 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
| 1041 echo "configure:1042: checking whether ${CC-cc} accepts -g" >&5 | |
| 1042 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
| 1043 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1044 else | |
| 1045 echo 'void f(){}' > conftest.c | |
| 1046 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
| 1047 ac_cv_prog_cc_g=yes | |
| 1048 else | |
| 1049 ac_cv_prog_cc_g=no | |
| 1050 fi | |
| 1051 rm -f conftest* | |
| 1052 | |
| 1053 fi | |
| 1054 | |
| 1055 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
| 1056 if test "$ac_test_CFLAGS" = set; then | |
| 1057 CFLAGS="$ac_save_CFLAGS" | |
| 1058 elif test $ac_cv_prog_cc_g = yes; then | |
| 1059 if test "$GCC" = yes; then | |
| 1060 CFLAGS="-g -O2" | |
| 1061 else | |
| 1062 CFLAGS="-g" | |
| 1063 fi | |
| 1064 else | |
| 1065 if test "$GCC" = yes; then | |
| 1066 CFLAGS="-O2" | |
| 1067 else | |
| 1068 CFLAGS= | |
| 1069 fi | |
| 1070 fi | |
| 1071 | |
| 1072 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
| 1073 do | |
| 1074 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 1075 set dummy $ac_prog; ac_word=$2 | |
| 1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
| 1077 echo "configure:1078: checking for $ac_word" >&5 | |
| 1078 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
| 1079 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1080 else | |
| 1081 if test -n "$CXX"; then | |
| 1082 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
| 1083 else | |
| 1084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
| 1085 ac_dummy="$PATH" | |
| 1086 for ac_dir in $ac_dummy; do | |
| 1087 test -z "$ac_dir" && ac_dir=. | |
| 1088 if test -f $ac_dir/$ac_word; then | |
| 1089 ac_cv_prog_CXX="$ac_prog" | |
| 1090 break | |
| 1091 fi | |
| 1092 done | |
| 1093 IFS="$ac_save_ifs" | |
| 1094 fi | |
| 1095 fi | |
| 1096 CXX="$ac_cv_prog_CXX" | |
| 1097 if test -n "$CXX"; then | |
| 1098 echo "$ac_t""$CXX" 1>&6 | |
| 1099 else | |
| 1100 echo "$ac_t""no" 1>&6 | |
| 1101 fi | |
| 1102 | |
| 1103 test -n "$CXX" && break | |
| 1104 done | 853 done |
| 1105 test -n "$CXX" || CXX="gcc" | 854 |
| 1106 | 855 SUBDIRS="${SUBDIRS} ${PKGHOSTDIRS}" |
| 1107 | 856 |
| 1108 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 857 |
| 1109 echo "configure:1110: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | 858 |
| 1110 | 859 |
| 1111 ac_ext=C | 860 subdirs="${SUBDIRS}" |
| 1112 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 1113 ac_cpp='$CXXCPP $CPPFLAGS' | |
| 1114 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 1115 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 1116 cross_compiling=$ac_cv_prog_cxx_cross | |
| 1117 | |
| 1118 cat > conftest.$ac_ext << EOF | |
| 1119 | |
| 1120 #line 1121 "configure" | |
| 1121 #include "confdefs.h" | |
| 1122 | |
| 1123 int main(){return(0);} | |
| 1124 EOF | |
| 1125 if { (eval echo configure:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
| 1126 ac_cv_prog_cxx_works=yes | |
| 1127 # If we can't run a trivial program, we are probably using a cross compiler. | |
| 1128 if (./conftest; exit) 2>/dev/null; then | |
| 1129 ac_cv_prog_cxx_cross=no | |
| 1130 else | |
| 1131 ac_cv_prog_cxx_cross=yes | |
| 1132 fi | |
| 1133 else | |
| 1134 echo "configure: failed program was:" >&5 | |
| 1135 cat conftest.$ac_ext >&5 | |
| 1136 ac_cv_prog_cxx_works=no | |
| 1137 fi | |
| 1138 rm -fr conftest* | |
| 1139 ac_ext=c | |
| 1140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
| 1141 ac_cpp='$CPP $CPPFLAGS' | |
| 1142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
| 1143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
| 1144 cross_compiling=$ac_cv_prog_cc_cross | |
| 1145 | |
| 1146 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
| 1147 if test $ac_cv_prog_cxx_works = no; then | |
| 1148 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
| 1149 fi | |
| 1150 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
| 1151 echo "configure:1152: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
| 1152 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
| 1153 cross_compiling=$ac_cv_prog_cxx_cross | |
| 1154 | |
| 1155 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
| 1156 echo "configure:1157: checking whether we are using GNU C++" >&5 | |
| 1157 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
| 1158 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1159 else | |
| 1160 cat > conftest.C <<EOF | |
| 1161 #ifdef __GNUC__ | |
| 1162 yes; | |
| 1163 #endif | |
| 1164 EOF | |
| 1165 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
| 1166 ac_cv_prog_gxx=yes | |
| 1167 else | |
| 1168 ac_cv_prog_gxx=no | |
| 1169 fi | |
| 1170 fi | |
| 1171 | |
| 1172 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
| 1173 | |
| 1174 if test $ac_cv_prog_gxx = yes; then | |
| 1175 GXX=yes | |
| 1176 else | |
| 1177 GXX= | |
| 1178 fi | |
| 1179 | |
| 1180 ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
| 1181 ac_save_CXXFLAGS="$CXXFLAGS" | |
| 1182 CXXFLAGS= | |
| 1183 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
| 1184 echo "configure:1185: checking whether ${CXX-g++} accepts -g" >&5 | |
| 1185 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
| 1186 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1187 else | |
| 1188 echo 'void f(){}' > conftest.cc | |
| 1189 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
| 1190 ac_cv_prog_cxx_g=yes | |
| 1191 else | |
| 1192 ac_cv_prog_cxx_g=no | |
| 1193 fi | |
| 1194 rm -f conftest* | |
| 1195 | |
| 1196 fi | |
| 1197 | |
| 1198 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
| 1199 if test "$ac_test_CXXFLAGS" = set; then | |
| 1200 CXXFLAGS="$ac_save_CXXFLAGS" | |
| 1201 elif test $ac_cv_prog_cxx_g = yes; then | |
| 1202 if test "$GXX" = yes; then | |
| 1203 CXXFLAGS="-g -O2" | |
| 1204 else | |
| 1205 CXXFLAGS="-g" | |
| 1206 fi | |
| 1207 else | |
| 1208 if test "$GXX" = yes; then | |
| 1209 CXXFLAGS="-O2" | |
| 1210 else | |
| 1211 CXXFLAGS= | |
| 1212 fi | |
| 1213 fi | |
| 1214 | |
| 1215 echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
| 1216 echo "configure:1217: checking for object suffix" >&5 | |
| 1217 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then | |
| 1218 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1219 else | |
| 1220 rm -f conftest* | |
| 1221 echo 'int i = 1;' > conftest.$ac_ext | |
| 1222 if { (eval echo configure:1223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
| 1223 for ac_file in conftest.*; do | |
| 1224 case $ac_file in | |
| 1225 *.c) ;; | |
| 1226 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
| 1227 esac | |
| 1228 done | |
| 1229 else | |
| 1230 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
| 1231 fi | |
| 1232 rm -f conftest* | |
| 1233 fi | |
| 1234 | |
| 1235 echo "$ac_t""$ac_cv_objext" 1>&6 | |
| 1236 OBJEXT=$ac_cv_objext | |
| 1237 ac_objext=$ac_cv_objext | |
| 1238 | |
| 1239 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
| 1240 echo "configure:1241: checking for Cygwin environment" >&5 | |
| 1241 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | |
| 1242 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1243 else | |
| 1244 cat > conftest.$ac_ext <<EOF | |
| 1245 #line 1246 "configure" | |
| 1246 #include "confdefs.h" | |
| 1247 | |
| 1248 int main() { | |
| 1249 | |
| 1250 #ifndef __CYGWIN__ | |
| 1251 #define __CYGWIN__ __CYGWIN32__ | |
| 1252 #endif | |
| 1253 return __CYGWIN__; | |
| 1254 ; return 0; } | |
| 1255 EOF | |
| 1256 if { (eval echo configure:1257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
| 1257 rm -rf conftest* | |
| 1258 ac_cv_cygwin=yes | |
| 1259 else | |
| 1260 echo "configure: failed program was:" >&5 | |
| 1261 cat conftest.$ac_ext >&5 | |
| 1262 rm -rf conftest* | |
| 1263 ac_cv_cygwin=no | |
| 1264 fi | |
| 1265 rm -f conftest* | |
| 1266 rm -f conftest* | |
| 1267 fi | |
| 1268 | |
| 1269 echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
| 1270 CYGWIN= | |
| 1271 test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
| 1272 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
| 1273 echo "configure:1274: checking for mingw32 environment" >&5 | |
| 1274 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | |
| 1275 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1276 else | |
| 1277 cat > conftest.$ac_ext <<EOF | |
| 1278 #line 1279 "configure" | |
| 1279 #include "confdefs.h" | |
| 1280 | |
| 1281 int main() { | |
| 1282 return __MINGW32__; | |
| 1283 ; return 0; } | |
| 1284 EOF | |
| 1285 if { (eval echo configure:1286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
| 1286 rm -rf conftest* | |
| 1287 ac_cv_mingw32=yes | |
| 1288 else | |
| 1289 echo "configure: failed program was:" >&5 | |
| 1290 cat conftest.$ac_ext >&5 | |
| 1291 rm -rf conftest* | |
| 1292 ac_cv_mingw32=no | |
| 1293 fi | |
| 1294 rm -f conftest* | |
| 1295 rm -f conftest* | |
| 1296 fi | |
| 1297 | |
| 1298 echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
| 1299 MINGW32= | |
| 1300 test "$ac_cv_mingw32" = yes && MINGW32=yes | |
| 1301 | |
| 1302 | |
| 1303 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
| 1304 echo "configure:1305: checking for executable suffix" >&5 | |
| 1305 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | |
| 1306 echo $ac_n "(cached) $ac_c" 1>&6 | |
| 1307 else | |
| 1308 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
| 1309 ac_cv_exeext=.exe | |
| 1310 else | |
| 1311 rm -f conftest* | |
| 1312 echo 'int main () { return 0; }' > conftest.$ac_ext | |
| 1313 ac_cv_exeext= | |
| 1314 if { (eval echo configure:1315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | |
| 1315 for file in conftest.*; do | |
| 1316 case $file in | |
| 1317 *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
| 1318 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
| 1319 esac | |
| 1320 done | |
| 1321 else | |
| 1322 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
| 1323 fi | |
| 1324 rm -f conftest* | |
| 1325 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
| 1326 fi | |
| 1327 fi | |
| 1328 | |
| 1329 EXEEXT="" | |
| 1330 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
| 1331 echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
| 1332 ac_exeext=$EXEEXT | |
| 1333 | |
| 1334 | |
| 1335 subdirs="host" | |
| 1336 | 861 |
| 1337 trap '' 1 2 15 | 862 trap '' 1 2 15 |
| 1338 cat > confcache <<\EOF | 863 cat > confcache <<\EOF |
| 1339 # This file is a shell script that caches the results of configure | 864 # This file is a shell script that caches the results of configure |
| 1340 # tests run on this system so they can be shared between configure | 865 # tests run on this system so they can be shared between configure |
| 1496 s%@MAKEINFO@%$MAKEINFO%g | 1021 s%@MAKEINFO@%$MAKEINFO%g |
| 1497 s%@SET_MAKE@%$SET_MAKE%g | 1022 s%@SET_MAKE@%$SET_MAKE%g |
| 1498 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | 1023 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
| 1499 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | 1024 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
| 1500 s%@MAINT@%$MAINT%g | 1025 s%@MAINT@%$MAINT%g |
| 1501 s%@CC@%$CC%g | 1026 s%@SUBDIRS@%$SUBDIRS%g |
| 1502 s%@CXX@%$CXX%g | |
| 1503 s%@OBJEXT@%$OBJEXT%g | |
| 1504 s%@EXEEXT@%$EXEEXT%g | |
| 1505 s%@subdirs@%$subdirs%g | 1027 s%@subdirs@%$subdirs%g |
| 1506 | 1028 |
| 1507 CEOF | 1029 CEOF |
| 1508 EOF | 1030 EOF |
| 1509 | 1031 |
| 1603 fi; done | 1125 fi; done |
| 1604 rm -f conftest.s* | 1126 rm -f conftest.s* |
| 1605 | 1127 |
| 1606 EOF | 1128 EOF |
| 1607 cat >> $CONFIG_STATUS <<EOF | 1129 cat >> $CONFIG_STATUS <<EOF |
| 1130 REQUIRED_DIRS="${SUBDIRS}" | |
| 1608 | 1131 |
| 1609 EOF | 1132 EOF |
| 1610 cat >> $CONFIG_STATUS <<\EOF | 1133 cat >> $CONFIG_STATUS <<\EOF |
| 1134 ${CONFIG_SHELL-/bin/sh} ${top_srcdir}/acsupport/mkinstalldirs ${REQUIRED_DIRS} | |
| 1611 | 1135 |
| 1612 exit 0 | 1136 exit 0 |
| 1613 EOF | 1137 EOF |
| 1614 chmod +x $CONFIG_STATUS | 1138 chmod +x $CONFIG_STATUS |
| 1615 rm -fr confdefs* $ac_clean_files | 1139 rm -fr confdefs* $ac_clean_files |
| 1638 ;; | 1162 ;; |
| 1639 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | 1163 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
| 1640 esac | 1164 esac |
| 1641 done | 1165 done |
| 1642 | 1166 |
| 1643 for ac_config_dir in host; do | 1167 for ac_config_dir in ${SUBDIRS}; do |
| 1644 | 1168 |
| 1645 # Do not complain, so a configure script can configure whichever | 1169 # Do not complain, so a configure script can configure whichever |
| 1646 # parts of a large source tree are present. | 1170 # parts of a large source tree are present. |
| 1647 if test ! -d $srcdir/$ac_config_dir; then | 1171 if test ! -d $srcdir/$ac_config_dir; then |
| 1648 continue | 1172 continue |
