… | |
… | |
679 | GREP |
679 | GREP |
680 | EGREP |
680 | EGREP |
681 | LINKER |
681 | LINKER |
682 | INSTALL_LIBRXVT |
682 | INSTALL_LIBRXVT |
683 | RXVTNAME |
683 | RXVTNAME |
|
|
684 | CXXCPP |
684 | TIC |
685 | TIC |
685 | XMKMF |
686 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
687 | X_CFLAGS |
688 | X_PRE_LIBS |
688 | X_PRE_LIBS |
689 | X_LIBS |
689 | X_LIBS |
690 | X_EXTRA_LIBS |
690 | X_EXTRA_LIBS |
691 | afterimage_config |
691 | afterimage_config |
… | |
… | |
731 | CPPFLAGS |
731 | CPPFLAGS |
732 | CXX |
732 | CXX |
733 | CXXFLAGS |
733 | CXXFLAGS |
734 | CCC |
734 | CCC |
735 | CPP |
735 | CPP |
736 | XMKMF |
|
|
737 | CXXCPP' |
736 | CXXCPP |
|
|
737 | XMKMF' |
738 | |
738 | |
739 | |
739 | |
740 | # Initialize some variables set by options. |
740 | # Initialize some variables set by options. |
741 | ac_init_help= |
741 | ac_init_help= |
742 | ac_init_version=false |
742 | ac_init_version=false |
… | |
… | |
1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1374 | you have headers in a nonstandard directory <include dir> |
1374 | you have headers in a nonstandard directory <include dir> |
1375 | CXX C++ compiler command |
1375 | CXX C++ compiler command |
1376 | CXXFLAGS C++ compiler flags |
1376 | CXXFLAGS C++ compiler flags |
1377 | CPP C preprocessor |
1377 | CPP C preprocessor |
|
|
1378 | CXXCPP C++ preprocessor |
1378 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1379 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1379 | CXXCPP C++ preprocessor |
|
|
1380 | |
1380 | |
1381 | Use these variables to override the choices made by `configure' or to help |
1381 | Use these variables to override the choices made by `configure' or to help |
1382 | it to find libraries and programs with nonstandard names/locations. |
1382 | it to find libraries and programs with nonstandard names/locations. |
1383 | |
1383 | |
1384 | _ACEOF |
1384 | _ACEOF |
… | |
… | |
4891 | fi |
4891 | fi |
4892 | fi |
4892 | fi |
4893 | |
4893 | |
4894 | |
4894 | |
4895 | |
4895 | |
|
|
4896 | |
|
|
4897 | ac_ext=cpp |
|
|
4898 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4901 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4902 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4903 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4904 | if test -z "$CXXCPP"; then |
|
|
4905 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4907 | else |
|
|
4908 | # Double quotes because CXXCPP needs to be expanded |
|
|
4909 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4910 | do |
|
|
4911 | ac_preproc_ok=false |
|
|
4912 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4913 | do |
|
|
4914 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4915 | # with a fresh cross-compiler works. |
|
|
4916 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4917 | # <limits.h> exists even on freestanding compilers. |
|
|
4918 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4919 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4920 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4921 | /* confdefs.h. */ |
|
|
4922 | _ACEOF |
|
|
4923 | cat confdefs.h >>conftest.$ac_ext |
|
|
4924 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4925 | /* end confdefs.h. */ |
|
|
4926 | #ifdef __STDC__ |
|
|
4927 | # include <limits.h> |
|
|
4928 | #else |
|
|
4929 | # include <assert.h> |
|
|
4930 | #endif |
|
|
4931 | Syntax error |
|
|
4932 | _ACEOF |
|
|
4933 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4934 | case "(($ac_try" in |
|
|
4935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4936 | *) ac_try_echo=$ac_try;; |
|
|
4937 | esac |
|
|
4938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4939 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4940 | ac_status=$? |
|
|
4941 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4942 | rm -f conftest.er1 |
|
|
4943 | cat conftest.err >&5 |
|
|
4944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4945 | (exit $ac_status); } >/dev/null && { |
|
|
4946 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4947 | test ! -s conftest.err |
|
|
4948 | }; then |
|
|
4949 | : |
|
|
4950 | else |
|
|
4951 | echo "$as_me: failed program was:" >&5 |
|
|
4952 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4953 | |
|
|
4954 | # Broken: fails on valid input. |
|
|
4955 | continue |
|
|
4956 | fi |
|
|
4957 | |
|
|
4958 | rm -f conftest.err conftest.$ac_ext |
|
|
4959 | |
|
|
4960 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4961 | # can be detected and how. |
|
|
4962 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4963 | /* confdefs.h. */ |
|
|
4964 | _ACEOF |
|
|
4965 | cat confdefs.h >>conftest.$ac_ext |
|
|
4966 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4967 | /* end confdefs.h. */ |
|
|
4968 | #include <ac_nonexistent.h> |
|
|
4969 | _ACEOF |
|
|
4970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4971 | case "(($ac_try" in |
|
|
4972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4973 | *) ac_try_echo=$ac_try;; |
|
|
4974 | esac |
|
|
4975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4976 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4977 | ac_status=$? |
|
|
4978 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4979 | rm -f conftest.er1 |
|
|
4980 | cat conftest.err >&5 |
|
|
4981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4982 | (exit $ac_status); } >/dev/null && { |
|
|
4983 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4984 | test ! -s conftest.err |
|
|
4985 | }; then |
|
|
4986 | # Broken: success on invalid input. |
|
|
4987 | continue |
|
|
4988 | else |
|
|
4989 | echo "$as_me: failed program was:" >&5 |
|
|
4990 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4991 | |
|
|
4992 | # Passes both tests. |
|
|
4993 | ac_preproc_ok=: |
|
|
4994 | break |
|
|
4995 | fi |
|
|
4996 | |
|
|
4997 | rm -f conftest.err conftest.$ac_ext |
|
|
4998 | |
|
|
4999 | done |
|
|
5000 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5001 | rm -f conftest.err conftest.$ac_ext |
|
|
5002 | if $ac_preproc_ok; then |
|
|
5003 | break |
|
|
5004 | fi |
|
|
5005 | |
|
|
5006 | done |
|
|
5007 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5008 | |
|
|
5009 | fi |
|
|
5010 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5011 | else |
|
|
5012 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5013 | fi |
|
|
5014 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5015 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5016 | ac_preproc_ok=false |
|
|
5017 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5018 | do |
|
|
5019 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5020 | # with a fresh cross-compiler works. |
|
|
5021 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5022 | # <limits.h> exists even on freestanding compilers. |
|
|
5023 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5024 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5025 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5026 | /* confdefs.h. */ |
|
|
5027 | _ACEOF |
|
|
5028 | cat confdefs.h >>conftest.$ac_ext |
|
|
5029 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5030 | /* end confdefs.h. */ |
|
|
5031 | #ifdef __STDC__ |
|
|
5032 | # include <limits.h> |
|
|
5033 | #else |
|
|
5034 | # include <assert.h> |
|
|
5035 | #endif |
|
|
5036 | Syntax error |
|
|
5037 | _ACEOF |
|
|
5038 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5039 | case "(($ac_try" in |
|
|
5040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5041 | *) ac_try_echo=$ac_try;; |
|
|
5042 | esac |
|
|
5043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5044 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5045 | ac_status=$? |
|
|
5046 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5047 | rm -f conftest.er1 |
|
|
5048 | cat conftest.err >&5 |
|
|
5049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5050 | (exit $ac_status); } >/dev/null && { |
|
|
5051 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5052 | test ! -s conftest.err |
|
|
5053 | }; then |
|
|
5054 | : |
|
|
5055 | else |
|
|
5056 | echo "$as_me: failed program was:" >&5 |
|
|
5057 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5058 | |
|
|
5059 | # Broken: fails on valid input. |
|
|
5060 | continue |
|
|
5061 | fi |
|
|
5062 | |
|
|
5063 | rm -f conftest.err conftest.$ac_ext |
|
|
5064 | |
|
|
5065 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5066 | # can be detected and how. |
|
|
5067 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5068 | /* confdefs.h. */ |
|
|
5069 | _ACEOF |
|
|
5070 | cat confdefs.h >>conftest.$ac_ext |
|
|
5071 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5072 | /* end confdefs.h. */ |
|
|
5073 | #include <ac_nonexistent.h> |
|
|
5074 | _ACEOF |
|
|
5075 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5076 | case "(($ac_try" in |
|
|
5077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5078 | *) ac_try_echo=$ac_try;; |
|
|
5079 | esac |
|
|
5080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5081 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5082 | ac_status=$? |
|
|
5083 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5084 | rm -f conftest.er1 |
|
|
5085 | cat conftest.err >&5 |
|
|
5086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5087 | (exit $ac_status); } >/dev/null && { |
|
|
5088 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5089 | test ! -s conftest.err |
|
|
5090 | }; then |
|
|
5091 | # Broken: success on invalid input. |
|
|
5092 | continue |
|
|
5093 | else |
|
|
5094 | echo "$as_me: failed program was:" >&5 |
|
|
5095 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5096 | |
|
|
5097 | # Passes both tests. |
|
|
5098 | ac_preproc_ok=: |
|
|
5099 | break |
|
|
5100 | fi |
|
|
5101 | |
|
|
5102 | rm -f conftest.err conftest.$ac_ext |
|
|
5103 | |
|
|
5104 | done |
|
|
5105 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5106 | rm -f conftest.err conftest.$ac_ext |
|
|
5107 | if $ac_preproc_ok; then |
|
|
5108 | : |
|
|
5109 | else |
|
|
5110 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5111 | See \`config.log' for more details." >&5 |
|
|
5112 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5113 | See \`config.log' for more details." >&2;} |
|
|
5114 | { (exit 1); exit 1; }; } |
|
|
5115 | fi |
|
|
5116 | |
|
|
5117 | ac_ext=cpp |
|
|
5118 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5119 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5120 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5121 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5122 | |
|
|
5123 | |
|
|
5124 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5125 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5126 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5128 | else |
|
|
5129 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5130 | /* confdefs.h. */ |
|
|
5131 | _ACEOF |
|
|
5132 | cat confdefs.h >>conftest.$ac_ext |
|
|
5133 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5134 | /* end confdefs.h. */ |
|
|
5135 | #include <stdlib.h> |
|
|
5136 | #include <stdarg.h> |
|
|
5137 | #include <string.h> |
|
|
5138 | #include <float.h> |
|
|
5139 | |
|
|
5140 | int |
|
|
5141 | main () |
|
|
5142 | { |
|
|
5143 | |
|
|
5144 | ; |
|
|
5145 | return 0; |
|
|
5146 | } |
|
|
5147 | _ACEOF |
|
|
5148 | rm -f conftest.$ac_objext |
|
|
5149 | if { (ac_try="$ac_compile" |
|
|
5150 | case "(($ac_try" in |
|
|
5151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5152 | *) ac_try_echo=$ac_try;; |
|
|
5153 | esac |
|
|
5154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5155 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5156 | ac_status=$? |
|
|
5157 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5158 | rm -f conftest.er1 |
|
|
5159 | cat conftest.err >&5 |
|
|
5160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5161 | (exit $ac_status); } && { |
|
|
5162 | test -z "$ac_cxx_werror_flag" || |
|
|
5163 | test ! -s conftest.err |
|
|
5164 | } && test -s conftest.$ac_objext; then |
|
|
5165 | ac_cv_header_stdc=yes |
|
|
5166 | else |
|
|
5167 | echo "$as_me: failed program was:" >&5 |
|
|
5168 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5169 | |
|
|
5170 | ac_cv_header_stdc=no |
|
|
5171 | fi |
|
|
5172 | |
|
|
5173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5174 | |
|
|
5175 | if test $ac_cv_header_stdc = yes; then |
|
|
5176 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5177 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5178 | /* confdefs.h. */ |
|
|
5179 | _ACEOF |
|
|
5180 | cat confdefs.h >>conftest.$ac_ext |
|
|
5181 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5182 | /* end confdefs.h. */ |
|
|
5183 | #include <string.h> |
|
|
5184 | |
|
|
5185 | _ACEOF |
|
|
5186 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5187 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5188 | : |
|
|
5189 | else |
|
|
5190 | ac_cv_header_stdc=no |
|
|
5191 | fi |
|
|
5192 | rm -f conftest* |
|
|
5193 | |
|
|
5194 | fi |
|
|
5195 | |
|
|
5196 | if test $ac_cv_header_stdc = yes; then |
|
|
5197 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5198 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5199 | /* confdefs.h. */ |
|
|
5200 | _ACEOF |
|
|
5201 | cat confdefs.h >>conftest.$ac_ext |
|
|
5202 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5203 | /* end confdefs.h. */ |
|
|
5204 | #include <stdlib.h> |
|
|
5205 | |
|
|
5206 | _ACEOF |
|
|
5207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5208 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5209 | : |
|
|
5210 | else |
|
|
5211 | ac_cv_header_stdc=no |
|
|
5212 | fi |
|
|
5213 | rm -f conftest* |
|
|
5214 | |
|
|
5215 | fi |
|
|
5216 | |
|
|
5217 | if test $ac_cv_header_stdc = yes; then |
|
|
5218 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5219 | if test "$cross_compiling" = yes; then |
|
|
5220 | : |
|
|
5221 | else |
|
|
5222 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5223 | /* confdefs.h. */ |
|
|
5224 | _ACEOF |
|
|
5225 | cat confdefs.h >>conftest.$ac_ext |
|
|
5226 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5227 | /* end confdefs.h. */ |
|
|
5228 | #include <ctype.h> |
|
|
5229 | #include <stdlib.h> |
|
|
5230 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5231 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5232 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5233 | #else |
|
|
5234 | # define ISLOWER(c) \ |
|
|
5235 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5236 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5237 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5238 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5239 | #endif |
|
|
5240 | |
|
|
5241 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5242 | int |
|
|
5243 | main () |
|
|
5244 | { |
|
|
5245 | int i; |
|
|
5246 | for (i = 0; i < 256; i++) |
|
|
5247 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5248 | || toupper (i) != TOUPPER (i)) |
|
|
5249 | return 2; |
|
|
5250 | return 0; |
|
|
5251 | } |
|
|
5252 | _ACEOF |
|
|
5253 | rm -f conftest$ac_exeext |
|
|
5254 | if { (ac_try="$ac_link" |
|
|
5255 | case "(($ac_try" in |
|
|
5256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5257 | *) ac_try_echo=$ac_try;; |
|
|
5258 | esac |
|
|
5259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5260 | (eval "$ac_link") 2>&5 |
|
|
5261 | ac_status=$? |
|
|
5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5263 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5264 | { (case "(($ac_try" in |
|
|
5265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5266 | *) ac_try_echo=$ac_try;; |
|
|
5267 | esac |
|
|
5268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5269 | (eval "$ac_try") 2>&5 |
|
|
5270 | ac_status=$? |
|
|
5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5272 | (exit $ac_status); }; }; then |
|
|
5273 | : |
|
|
5274 | else |
|
|
5275 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5276 | echo "$as_me: failed program was:" >&5 |
|
|
5277 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5278 | |
|
|
5279 | ( exit $ac_status ) |
|
|
5280 | ac_cv_header_stdc=no |
|
|
5281 | fi |
|
|
5282 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5283 | fi |
|
|
5284 | |
|
|
5285 | |
|
|
5286 | fi |
|
|
5287 | fi |
|
|
5288 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5289 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5290 | if test $ac_cv_header_stdc = yes; then |
|
|
5291 | |
|
|
5292 | cat >>confdefs.h <<\_ACEOF |
|
|
5293 | #define STDC_HEADERS 1 |
|
|
5294 | _ACEOF |
|
|
5295 | |
|
|
5296 | fi |
|
|
5297 | |
|
|
5298 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5299 | |
|
|
5300 | |
|
|
5301 | |
|
|
5302 | |
|
|
5303 | |
|
|
5304 | |
|
|
5305 | |
|
|
5306 | |
|
|
5307 | |
|
|
5308 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5309 | inttypes.h stdint.h unistd.h |
|
|
5310 | do |
|
|
5311 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5312 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5314 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5316 | else |
|
|
5317 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5318 | /* confdefs.h. */ |
|
|
5319 | _ACEOF |
|
|
5320 | cat confdefs.h >>conftest.$ac_ext |
|
|
5321 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5322 | /* end confdefs.h. */ |
|
|
5323 | $ac_includes_default |
|
|
5324 | |
|
|
5325 | #include <$ac_header> |
|
|
5326 | _ACEOF |
|
|
5327 | rm -f conftest.$ac_objext |
|
|
5328 | if { (ac_try="$ac_compile" |
|
|
5329 | case "(($ac_try" in |
|
|
5330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5331 | *) ac_try_echo=$ac_try;; |
|
|
5332 | esac |
|
|
5333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5334 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5335 | ac_status=$? |
|
|
5336 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5337 | rm -f conftest.er1 |
|
|
5338 | cat conftest.err >&5 |
|
|
5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5340 | (exit $ac_status); } && { |
|
|
5341 | test -z "$ac_cxx_werror_flag" || |
|
|
5342 | test ! -s conftest.err |
|
|
5343 | } && test -s conftest.$ac_objext; then |
|
|
5344 | eval "$as_ac_Header=yes" |
|
|
5345 | else |
|
|
5346 | echo "$as_me: failed program was:" >&5 |
|
|
5347 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5348 | |
|
|
5349 | eval "$as_ac_Header=no" |
|
|
5350 | fi |
|
|
5351 | |
|
|
5352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5353 | fi |
|
|
5354 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5356 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5357 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5358 | cat >>confdefs.h <<_ACEOF |
|
|
5359 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5360 | _ACEOF |
|
|
5361 | |
|
|
5362 | fi |
|
|
5363 | |
|
|
5364 | done |
|
|
5365 | |
|
|
5366 | |
|
|
5367 | |
|
|
5368 | |
|
|
5369 | |
|
|
5370 | for ac_header in sys/epoll.h sys/event.h sys/queue.h |
|
|
5371 | do |
|
|
5372 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5373 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5374 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5378 | fi |
|
|
5379 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5381 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5382 | else |
|
|
5383 | # Is the header compilable? |
|
|
5384 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5385 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5386 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5387 | /* confdefs.h. */ |
|
|
5388 | _ACEOF |
|
|
5389 | cat confdefs.h >>conftest.$ac_ext |
|
|
5390 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5391 | /* end confdefs.h. */ |
|
|
5392 | $ac_includes_default |
|
|
5393 | #include <$ac_header> |
|
|
5394 | _ACEOF |
|
|
5395 | rm -f conftest.$ac_objext |
|
|
5396 | if { (ac_try="$ac_compile" |
|
|
5397 | case "(($ac_try" in |
|
|
5398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5399 | *) ac_try_echo=$ac_try;; |
|
|
5400 | esac |
|
|
5401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5402 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5403 | ac_status=$? |
|
|
5404 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5405 | rm -f conftest.er1 |
|
|
5406 | cat conftest.err >&5 |
|
|
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5408 | (exit $ac_status); } && { |
|
|
5409 | test -z "$ac_cxx_werror_flag" || |
|
|
5410 | test ! -s conftest.err |
|
|
5411 | } && test -s conftest.$ac_objext; then |
|
|
5412 | ac_header_compiler=yes |
|
|
5413 | else |
|
|
5414 | echo "$as_me: failed program was:" >&5 |
|
|
5415 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5416 | |
|
|
5417 | ac_header_compiler=no |
|
|
5418 | fi |
|
|
5419 | |
|
|
5420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5421 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5422 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5423 | |
|
|
5424 | # Is the header present? |
|
|
5425 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5427 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5428 | /* confdefs.h. */ |
|
|
5429 | _ACEOF |
|
|
5430 | cat confdefs.h >>conftest.$ac_ext |
|
|
5431 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5432 | /* end confdefs.h. */ |
|
|
5433 | #include <$ac_header> |
|
|
5434 | _ACEOF |
|
|
5435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5436 | case "(($ac_try" in |
|
|
5437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5438 | *) ac_try_echo=$ac_try;; |
|
|
5439 | esac |
|
|
5440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5442 | ac_status=$? |
|
|
5443 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5444 | rm -f conftest.er1 |
|
|
5445 | cat conftest.err >&5 |
|
|
5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5447 | (exit $ac_status); } >/dev/null && { |
|
|
5448 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5449 | test ! -s conftest.err |
|
|
5450 | }; then |
|
|
5451 | ac_header_preproc=yes |
|
|
5452 | else |
|
|
5453 | echo "$as_me: failed program was:" >&5 |
|
|
5454 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5455 | |
|
|
5456 | ac_header_preproc=no |
|
|
5457 | fi |
|
|
5458 | |
|
|
5459 | rm -f conftest.err conftest.$ac_ext |
|
|
5460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5461 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5462 | |
|
|
5463 | # So? What about this header? |
|
|
5464 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5465 | yes:no: ) |
|
|
5466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5469 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5470 | ac_header_preproc=yes |
|
|
5471 | ;; |
|
|
5472 | no:yes:* ) |
|
|
5473 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5474 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5475 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5476 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5477 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5478 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5479 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5480 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5482 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5483 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5484 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5485 | |
|
|
5486 | ;; |
|
|
5487 | esac |
|
|
5488 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5492 | else |
|
|
5493 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5494 | fi |
|
|
5495 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5497 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5498 | |
|
|
5499 | fi |
|
|
5500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5501 | cat >>confdefs.h <<_ACEOF |
|
|
5502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5503 | _ACEOF |
|
|
5504 | |
|
|
5505 | fi |
|
|
5506 | |
|
|
5507 | done |
|
|
5508 | |
|
|
5509 | |
|
|
5510 | |
|
|
5511 | |
|
|
5512 | for ac_func in epoll_ctl kqueue |
|
|
5513 | do |
|
|
5514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5515 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5517 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5519 | else |
|
|
5520 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5521 | /* confdefs.h. */ |
|
|
5522 | _ACEOF |
|
|
5523 | cat confdefs.h >>conftest.$ac_ext |
|
|
5524 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5525 | /* end confdefs.h. */ |
|
|
5526 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5528 | #define $ac_func innocuous_$ac_func |
|
|
5529 | |
|
|
5530 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5531 | which can conflict with char $ac_func (); below. |
|
|
5532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5533 | <limits.h> exists even on freestanding compilers. */ |
|
|
5534 | |
|
|
5535 | #ifdef __STDC__ |
|
|
5536 | # include <limits.h> |
|
|
5537 | #else |
|
|
5538 | # include <assert.h> |
|
|
5539 | #endif |
|
|
5540 | |
|
|
5541 | #undef $ac_func |
|
|
5542 | |
|
|
5543 | /* Override any GCC internal prototype to avoid an error. |
|
|
5544 | Use char because int might match the return type of a GCC |
|
|
5545 | builtin and then its argument prototype would still apply. */ |
|
|
5546 | #ifdef __cplusplus |
|
|
5547 | extern "C" |
|
|
5548 | #endif |
|
|
5549 | char $ac_func (); |
|
|
5550 | /* The GNU C library defines this for functions which it implements |
|
|
5551 | to always fail with ENOSYS. Some functions are actually named |
|
|
5552 | something starting with __ and the normal name is an alias. */ |
|
|
5553 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5554 | choke me |
|
|
5555 | #endif |
|
|
5556 | |
|
|
5557 | int |
|
|
5558 | main () |
|
|
5559 | { |
|
|
5560 | return $ac_func (); |
|
|
5561 | ; |
|
|
5562 | return 0; |
|
|
5563 | } |
|
|
5564 | _ACEOF |
|
|
5565 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5566 | if { (ac_try="$ac_link" |
|
|
5567 | case "(($ac_try" in |
|
|
5568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5569 | *) ac_try_echo=$ac_try;; |
|
|
5570 | esac |
|
|
5571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5572 | (eval "$ac_link") 2>conftest.er1 |
|
|
5573 | ac_status=$? |
|
|
5574 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5575 | rm -f conftest.er1 |
|
|
5576 | cat conftest.err >&5 |
|
|
5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5578 | (exit $ac_status); } && { |
|
|
5579 | test -z "$ac_cxx_werror_flag" || |
|
|
5580 | test ! -s conftest.err |
|
|
5581 | } && test -s conftest$ac_exeext && |
|
|
5582 | $as_test_x conftest$ac_exeext; then |
|
|
5583 | eval "$as_ac_var=yes" |
|
|
5584 | else |
|
|
5585 | echo "$as_me: failed program was:" >&5 |
|
|
5586 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5587 | |
|
|
5588 | eval "$as_ac_var=no" |
|
|
5589 | fi |
|
|
5590 | |
|
|
5591 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5592 | conftest$ac_exeext conftest.$ac_ext |
|
|
5593 | fi |
|
|
5594 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5595 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5596 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5597 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5598 | cat >>confdefs.h <<_ACEOF |
|
|
5599 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5600 | _ACEOF |
|
|
5601 | |
|
|
5602 | fi |
|
|
5603 | done |
|
|
5604 | |
|
|
5605 | |
|
|
5606 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5607 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5608 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5610 | else |
|
|
5611 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5612 | /* confdefs.h. */ |
|
|
5613 | _ACEOF |
|
|
5614 | cat confdefs.h >>conftest.$ac_ext |
|
|
5615 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5616 | /* end confdefs.h. */ |
|
|
5617 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5618 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5619 | #define clock_gettime innocuous_clock_gettime |
|
|
5620 | |
|
|
5621 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5622 | which can conflict with char clock_gettime (); below. |
|
|
5623 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5624 | <limits.h> exists even on freestanding compilers. */ |
|
|
5625 | |
|
|
5626 | #ifdef __STDC__ |
|
|
5627 | # include <limits.h> |
|
|
5628 | #else |
|
|
5629 | # include <assert.h> |
|
|
5630 | #endif |
|
|
5631 | |
|
|
5632 | #undef clock_gettime |
|
|
5633 | |
|
|
5634 | /* Override any GCC internal prototype to avoid an error. |
|
|
5635 | Use char because int might match the return type of a GCC |
|
|
5636 | builtin and then its argument prototype would still apply. */ |
|
|
5637 | #ifdef __cplusplus |
|
|
5638 | extern "C" |
|
|
5639 | #endif |
|
|
5640 | char clock_gettime (); |
|
|
5641 | /* The GNU C library defines this for functions which it implements |
|
|
5642 | to always fail with ENOSYS. Some functions are actually named |
|
|
5643 | something starting with __ and the normal name is an alias. */ |
|
|
5644 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5645 | choke me |
|
|
5646 | #endif |
|
|
5647 | |
|
|
5648 | int |
|
|
5649 | main () |
|
|
5650 | { |
|
|
5651 | return clock_gettime (); |
|
|
5652 | ; |
|
|
5653 | return 0; |
|
|
5654 | } |
|
|
5655 | _ACEOF |
|
|
5656 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5657 | if { (ac_try="$ac_link" |
|
|
5658 | case "(($ac_try" in |
|
|
5659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5660 | *) ac_try_echo=$ac_try;; |
|
|
5661 | esac |
|
|
5662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5663 | (eval "$ac_link") 2>conftest.er1 |
|
|
5664 | ac_status=$? |
|
|
5665 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5666 | rm -f conftest.er1 |
|
|
5667 | cat conftest.err >&5 |
|
|
5668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5669 | (exit $ac_status); } && { |
|
|
5670 | test -z "$ac_cxx_werror_flag" || |
|
|
5671 | test ! -s conftest.err |
|
|
5672 | } && test -s conftest$ac_exeext && |
|
|
5673 | $as_test_x conftest$ac_exeext; then |
|
|
5674 | ac_cv_func_clock_gettime=yes |
|
|
5675 | else |
|
|
5676 | echo "$as_me: failed program was:" >&5 |
|
|
5677 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5678 | |
|
|
5679 | ac_cv_func_clock_gettime=no |
|
|
5680 | fi |
|
|
5681 | |
|
|
5682 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5683 | conftest$ac_exeext conftest.$ac_ext |
|
|
5684 | fi |
|
|
5685 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5686 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5687 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5688 | : |
|
|
5689 | else |
|
|
5690 | |
|
|
5691 | |
|
|
5692 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5693 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5694 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5696 | else |
|
|
5697 | ac_check_lib_save_LIBS=$LIBS |
|
|
5698 | LIBS="-lrt $LIBS" |
|
|
5699 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5700 | /* confdefs.h. */ |
|
|
5701 | _ACEOF |
|
|
5702 | cat confdefs.h >>conftest.$ac_ext |
|
|
5703 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5704 | /* end confdefs.h. */ |
|
|
5705 | |
|
|
5706 | /* Override any GCC internal prototype to avoid an error. |
|
|
5707 | Use char because int might match the return type of a GCC |
|
|
5708 | builtin and then its argument prototype would still apply. */ |
|
|
5709 | #ifdef __cplusplus |
|
|
5710 | extern "C" |
|
|
5711 | #endif |
|
|
5712 | char clock_gettime (); |
|
|
5713 | int |
|
|
5714 | main () |
|
|
5715 | { |
|
|
5716 | return clock_gettime (); |
|
|
5717 | ; |
|
|
5718 | return 0; |
|
|
5719 | } |
|
|
5720 | _ACEOF |
|
|
5721 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5722 | if { (ac_try="$ac_link" |
|
|
5723 | case "(($ac_try" in |
|
|
5724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5725 | *) ac_try_echo=$ac_try;; |
|
|
5726 | esac |
|
|
5727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5728 | (eval "$ac_link") 2>conftest.er1 |
|
|
5729 | ac_status=$? |
|
|
5730 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5731 | rm -f conftest.er1 |
|
|
5732 | cat conftest.err >&5 |
|
|
5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5734 | (exit $ac_status); } && { |
|
|
5735 | test -z "$ac_cxx_werror_flag" || |
|
|
5736 | test ! -s conftest.err |
|
|
5737 | } && test -s conftest$ac_exeext && |
|
|
5738 | $as_test_x conftest$ac_exeext; then |
|
|
5739 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5740 | else |
|
|
5741 | echo "$as_me: failed program was:" >&5 |
|
|
5742 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5743 | |
|
|
5744 | ac_cv_lib_rt_clock_gettime=no |
|
|
5745 | fi |
|
|
5746 | |
|
|
5747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5748 | conftest$ac_exeext conftest.$ac_ext |
|
|
5749 | LIBS=$ac_check_lib_save_LIBS |
|
|
5750 | fi |
|
|
5751 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5752 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5753 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5754 | cat >>confdefs.h <<_ACEOF |
|
|
5755 | #define HAVE_LIBRT 1 |
|
|
5756 | _ACEOF |
|
|
5757 | |
|
|
5758 | LIBS="-lrt $LIBS" |
|
|
5759 | |
|
|
5760 | fi |
|
|
5761 | |
|
|
5762 | |
|
|
5763 | for ac_func in clock_gettime |
|
|
5764 | do |
|
|
5765 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5766 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5767 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5768 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5770 | else |
|
|
5771 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5772 | /* confdefs.h. */ |
|
|
5773 | _ACEOF |
|
|
5774 | cat confdefs.h >>conftest.$ac_ext |
|
|
5775 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5776 | /* end confdefs.h. */ |
|
|
5777 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5779 | #define $ac_func innocuous_$ac_func |
|
|
5780 | |
|
|
5781 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5782 | which can conflict with char $ac_func (); below. |
|
|
5783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5784 | <limits.h> exists even on freestanding compilers. */ |
|
|
5785 | |
|
|
5786 | #ifdef __STDC__ |
|
|
5787 | # include <limits.h> |
|
|
5788 | #else |
|
|
5789 | # include <assert.h> |
|
|
5790 | #endif |
|
|
5791 | |
|
|
5792 | #undef $ac_func |
|
|
5793 | |
|
|
5794 | /* Override any GCC internal prototype to avoid an error. |
|
|
5795 | Use char because int might match the return type of a GCC |
|
|
5796 | builtin and then its argument prototype would still apply. */ |
|
|
5797 | #ifdef __cplusplus |
|
|
5798 | extern "C" |
|
|
5799 | #endif |
|
|
5800 | char $ac_func (); |
|
|
5801 | /* The GNU C library defines this for functions which it implements |
|
|
5802 | to always fail with ENOSYS. Some functions are actually named |
|
|
5803 | something starting with __ and the normal name is an alias. */ |
|
|
5804 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5805 | choke me |
|
|
5806 | #endif |
|
|
5807 | |
|
|
5808 | int |
|
|
5809 | main () |
|
|
5810 | { |
|
|
5811 | return $ac_func (); |
|
|
5812 | ; |
|
|
5813 | return 0; |
|
|
5814 | } |
|
|
5815 | _ACEOF |
|
|
5816 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5817 | if { (ac_try="$ac_link" |
|
|
5818 | case "(($ac_try" in |
|
|
5819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5820 | *) ac_try_echo=$ac_try;; |
|
|
5821 | esac |
|
|
5822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5823 | (eval "$ac_link") 2>conftest.er1 |
|
|
5824 | ac_status=$? |
|
|
5825 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5826 | rm -f conftest.er1 |
|
|
5827 | cat conftest.err >&5 |
|
|
5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5829 | (exit $ac_status); } && { |
|
|
5830 | test -z "$ac_cxx_werror_flag" || |
|
|
5831 | test ! -s conftest.err |
|
|
5832 | } && test -s conftest$ac_exeext && |
|
|
5833 | $as_test_x conftest$ac_exeext; then |
|
|
5834 | eval "$as_ac_var=yes" |
|
|
5835 | else |
|
|
5836 | echo "$as_me: failed program was:" >&5 |
|
|
5837 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5838 | |
|
|
5839 | eval "$as_ac_var=no" |
|
|
5840 | fi |
|
|
5841 | |
|
|
5842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5843 | conftest$ac_exeext conftest.$ac_ext |
|
|
5844 | fi |
|
|
5845 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5846 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5847 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5848 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5849 | cat >>confdefs.h <<_ACEOF |
|
|
5850 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5851 | _ACEOF |
|
|
5852 | |
|
|
5853 | fi |
|
|
5854 | done |
|
|
5855 | |
|
|
5856 | |
|
|
5857 | fi |
|
|
5858 | |
|
|
5859 | |
|
|
5860 | |
|
|
5861 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
5862 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
5863 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
5864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5865 | else |
|
|
5866 | ac_check_lib_save_LIBS=$LIBS |
|
|
5867 | LIBS="-lm $LIBS" |
|
|
5868 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5869 | /* confdefs.h. */ |
|
|
5870 | _ACEOF |
|
|
5871 | cat confdefs.h >>conftest.$ac_ext |
|
|
5872 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5873 | /* end confdefs.h. */ |
|
|
5874 | |
|
|
5875 | /* Override any GCC internal prototype to avoid an error. |
|
|
5876 | Use char because int might match the return type of a GCC |
|
|
5877 | builtin and then its argument prototype would still apply. */ |
|
|
5878 | #ifdef __cplusplus |
|
|
5879 | extern "C" |
|
|
5880 | #endif |
|
|
5881 | char ceil (); |
|
|
5882 | int |
|
|
5883 | main () |
|
|
5884 | { |
|
|
5885 | return ceil (); |
|
|
5886 | ; |
|
|
5887 | return 0; |
|
|
5888 | } |
|
|
5889 | _ACEOF |
|
|
5890 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5891 | if { (ac_try="$ac_link" |
|
|
5892 | case "(($ac_try" in |
|
|
5893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5894 | *) ac_try_echo=$ac_try;; |
|
|
5895 | esac |
|
|
5896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5897 | (eval "$ac_link") 2>conftest.er1 |
|
|
5898 | ac_status=$? |
|
|
5899 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5900 | rm -f conftest.er1 |
|
|
5901 | cat conftest.err >&5 |
|
|
5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5903 | (exit $ac_status); } && { |
|
|
5904 | test -z "$ac_cxx_werror_flag" || |
|
|
5905 | test ! -s conftest.err |
|
|
5906 | } && test -s conftest$ac_exeext && |
|
|
5907 | $as_test_x conftest$ac_exeext; then |
|
|
5908 | ac_cv_lib_m_ceil=yes |
|
|
5909 | else |
|
|
5910 | echo "$as_me: failed program was:" >&5 |
|
|
5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5912 | |
|
|
5913 | ac_cv_lib_m_ceil=no |
|
|
5914 | fi |
|
|
5915 | |
|
|
5916 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5917 | conftest$ac_exeext conftest.$ac_ext |
|
|
5918 | LIBS=$ac_check_lib_save_LIBS |
|
|
5919 | fi |
|
|
5920 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
5921 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
5922 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
5923 | cat >>confdefs.h <<_ACEOF |
|
|
5924 | #define HAVE_LIBM 1 |
|
|
5925 | _ACEOF |
|
|
5926 | |
|
|
5927 | LIBS="-lm $LIBS" |
|
|
5928 | |
|
|
5929 | fi |
|
|
5930 | |
|
|
5931 | |
|
|
5932 | |
|
|
5933 | |
|
|
5934 | |
|
|
5935 | |
|
|
5936 | |
4896 | # Extract the first word of "tic", so it can be a program name with args. |
5937 | # Extract the first word of "tic", so it can be a program name with args. |
4897 | set dummy tic; ac_word=$2 |
5938 | set dummy tic; ac_word=$2 |
4898 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5939 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5940 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4900 | if test "${ac_cv_path_TIC+set}" = set; then |
5941 | if test "${ac_cv_path_TIC+set}" = set; then |
… | |
… | |
4933 | echo "${ECHO_T}no" >&6; } |
5974 | echo "${ECHO_T}no" >&6; } |
4934 | fi |
5975 | fi |
4935 | |
5976 | |
4936 | |
5977 | |
4937 | |
5978 | |
4938 | |
|
|
4939 | |
|
|
4940 | ac_ext=cpp |
|
|
4941 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4942 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4943 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4944 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4945 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4946 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4947 | if test -z "$CXXCPP"; then |
|
|
4948 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4950 | else |
|
|
4951 | # Double quotes because CXXCPP needs to be expanded |
|
|
4952 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4953 | do |
|
|
4954 | ac_preproc_ok=false |
|
|
4955 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4956 | do |
|
|
4957 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4958 | # with a fresh cross-compiler works. |
|
|
4959 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4960 | # <limits.h> exists even on freestanding compilers. |
|
|
4961 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4962 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4963 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4964 | /* confdefs.h. */ |
|
|
4965 | _ACEOF |
|
|
4966 | cat confdefs.h >>conftest.$ac_ext |
|
|
4967 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4968 | /* end confdefs.h. */ |
|
|
4969 | #ifdef __STDC__ |
|
|
4970 | # include <limits.h> |
|
|
4971 | #else |
|
|
4972 | # include <assert.h> |
|
|
4973 | #endif |
|
|
4974 | Syntax error |
|
|
4975 | _ACEOF |
|
|
4976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4977 | case "(($ac_try" in |
|
|
4978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4979 | *) ac_try_echo=$ac_try;; |
|
|
4980 | esac |
|
|
4981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4982 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4983 | ac_status=$? |
|
|
4984 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4985 | rm -f conftest.er1 |
|
|
4986 | cat conftest.err >&5 |
|
|
4987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4988 | (exit $ac_status); } >/dev/null && { |
|
|
4989 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4990 | test ! -s conftest.err |
|
|
4991 | }; then |
|
|
4992 | : |
|
|
4993 | else |
|
|
4994 | echo "$as_me: failed program was:" >&5 |
|
|
4995 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4996 | |
|
|
4997 | # Broken: fails on valid input. |
|
|
4998 | continue |
|
|
4999 | fi |
|
|
5000 | |
|
|
5001 | rm -f conftest.err conftest.$ac_ext |
|
|
5002 | |
|
|
5003 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5004 | # can be detected and how. |
|
|
5005 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5006 | /* confdefs.h. */ |
|
|
5007 | _ACEOF |
|
|
5008 | cat confdefs.h >>conftest.$ac_ext |
|
|
5009 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5010 | /* end confdefs.h. */ |
|
|
5011 | #include <ac_nonexistent.h> |
|
|
5012 | _ACEOF |
|
|
5013 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5014 | case "(($ac_try" in |
|
|
5015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5016 | *) ac_try_echo=$ac_try;; |
|
|
5017 | esac |
|
|
5018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5019 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5020 | ac_status=$? |
|
|
5021 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5022 | rm -f conftest.er1 |
|
|
5023 | cat conftest.err >&5 |
|
|
5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5025 | (exit $ac_status); } >/dev/null && { |
|
|
5026 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5027 | test ! -s conftest.err |
|
|
5028 | }; then |
|
|
5029 | # Broken: success on invalid input. |
|
|
5030 | continue |
|
|
5031 | else |
|
|
5032 | echo "$as_me: failed program was:" >&5 |
|
|
5033 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5034 | |
|
|
5035 | # Passes both tests. |
|
|
5036 | ac_preproc_ok=: |
|
|
5037 | break |
|
|
5038 | fi |
|
|
5039 | |
|
|
5040 | rm -f conftest.err conftest.$ac_ext |
|
|
5041 | |
|
|
5042 | done |
|
|
5043 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5044 | rm -f conftest.err conftest.$ac_ext |
|
|
5045 | if $ac_preproc_ok; then |
|
|
5046 | break |
|
|
5047 | fi |
|
|
5048 | |
|
|
5049 | done |
|
|
5050 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5051 | |
|
|
5052 | fi |
|
|
5053 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5054 | else |
|
|
5055 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5056 | fi |
|
|
5057 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5058 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5059 | ac_preproc_ok=false |
|
|
5060 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5061 | do |
|
|
5062 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5063 | # with a fresh cross-compiler works. |
|
|
5064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5065 | # <limits.h> exists even on freestanding compilers. |
|
|
5066 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5067 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5068 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5069 | /* confdefs.h. */ |
|
|
5070 | _ACEOF |
|
|
5071 | cat confdefs.h >>conftest.$ac_ext |
|
|
5072 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5073 | /* end confdefs.h. */ |
|
|
5074 | #ifdef __STDC__ |
|
|
5075 | # include <limits.h> |
|
|
5076 | #else |
|
|
5077 | # include <assert.h> |
|
|
5078 | #endif |
|
|
5079 | Syntax error |
|
|
5080 | _ACEOF |
|
|
5081 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5082 | case "(($ac_try" in |
|
|
5083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5084 | *) ac_try_echo=$ac_try;; |
|
|
5085 | esac |
|
|
5086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5088 | ac_status=$? |
|
|
5089 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5090 | rm -f conftest.er1 |
|
|
5091 | cat conftest.err >&5 |
|
|
5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5093 | (exit $ac_status); } >/dev/null && { |
|
|
5094 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5095 | test ! -s conftest.err |
|
|
5096 | }; then |
|
|
5097 | : |
|
|
5098 | else |
|
|
5099 | echo "$as_me: failed program was:" >&5 |
|
|
5100 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5101 | |
|
|
5102 | # Broken: fails on valid input. |
|
|
5103 | continue |
|
|
5104 | fi |
|
|
5105 | |
|
|
5106 | rm -f conftest.err conftest.$ac_ext |
|
|
5107 | |
|
|
5108 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5109 | # can be detected and how. |
|
|
5110 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5111 | /* confdefs.h. */ |
|
|
5112 | _ACEOF |
|
|
5113 | cat confdefs.h >>conftest.$ac_ext |
|
|
5114 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5115 | /* end confdefs.h. */ |
|
|
5116 | #include <ac_nonexistent.h> |
|
|
5117 | _ACEOF |
|
|
5118 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5119 | case "(($ac_try" in |
|
|
5120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5121 | *) ac_try_echo=$ac_try;; |
|
|
5122 | esac |
|
|
5123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5124 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5125 | ac_status=$? |
|
|
5126 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5127 | rm -f conftest.er1 |
|
|
5128 | cat conftest.err >&5 |
|
|
5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5130 | (exit $ac_status); } >/dev/null && { |
|
|
5131 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5132 | test ! -s conftest.err |
|
|
5133 | }; then |
|
|
5134 | # Broken: success on invalid input. |
|
|
5135 | continue |
|
|
5136 | else |
|
|
5137 | echo "$as_me: failed program was:" >&5 |
|
|
5138 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5139 | |
|
|
5140 | # Passes both tests. |
|
|
5141 | ac_preproc_ok=: |
|
|
5142 | break |
|
|
5143 | fi |
|
|
5144 | |
|
|
5145 | rm -f conftest.err conftest.$ac_ext |
|
|
5146 | |
|
|
5147 | done |
|
|
5148 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5149 | rm -f conftest.err conftest.$ac_ext |
|
|
5150 | if $ac_preproc_ok; then |
|
|
5151 | : |
|
|
5152 | else |
|
|
5153 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5154 | See \`config.log' for more details." >&5 |
|
|
5155 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5156 | See \`config.log' for more details." >&2;} |
|
|
5157 | { (exit 1); exit 1; }; } |
|
|
5158 | fi |
|
|
5159 | |
|
|
5160 | ac_ext=cpp |
|
|
5161 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5162 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5163 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5164 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5165 | |
5979 | |
5166 | |
5980 | |
5167 | { echo "$as_me:$LINENO: checking for X" >&5 |
5981 | { echo "$as_me:$LINENO: checking for X" >&5 |
5168 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5982 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5169 | |
5983 | |
… | |
… | |
6621 | cat >>confdefs.h <<\_ACEOF |
7435 | cat >>confdefs.h <<\_ACEOF |
6622 | #define HAVE_SYS_WAIT_H 1 |
7436 | #define HAVE_SYS_WAIT_H 1 |
6623 | _ACEOF |
7437 | _ACEOF |
6624 | |
7438 | |
6625 | fi |
7439 | fi |
6626 | |
|
|
6627 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6628 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6629 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6631 | else |
|
|
6632 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6633 | /* confdefs.h. */ |
|
|
6634 | _ACEOF |
|
|
6635 | cat confdefs.h >>conftest.$ac_ext |
|
|
6636 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6637 | /* end confdefs.h. */ |
|
|
6638 | #include <stdlib.h> |
|
|
6639 | #include <stdarg.h> |
|
|
6640 | #include <string.h> |
|
|
6641 | #include <float.h> |
|
|
6642 | |
|
|
6643 | int |
|
|
6644 | main () |
|
|
6645 | { |
|
|
6646 | |
|
|
6647 | ; |
|
|
6648 | return 0; |
|
|
6649 | } |
|
|
6650 | _ACEOF |
|
|
6651 | rm -f conftest.$ac_objext |
|
|
6652 | if { (ac_try="$ac_compile" |
|
|
6653 | case "(($ac_try" in |
|
|
6654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6655 | *) ac_try_echo=$ac_try;; |
|
|
6656 | esac |
|
|
6657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6658 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6659 | ac_status=$? |
|
|
6660 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6661 | rm -f conftest.er1 |
|
|
6662 | cat conftest.err >&5 |
|
|
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6664 | (exit $ac_status); } && { |
|
|
6665 | test -z "$ac_cxx_werror_flag" || |
|
|
6666 | test ! -s conftest.err |
|
|
6667 | } && test -s conftest.$ac_objext; then |
|
|
6668 | ac_cv_header_stdc=yes |
|
|
6669 | else |
|
|
6670 | echo "$as_me: failed program was:" >&5 |
|
|
6671 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6672 | |
|
|
6673 | ac_cv_header_stdc=no |
|
|
6674 | fi |
|
|
6675 | |
|
|
6676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6677 | |
|
|
6678 | if test $ac_cv_header_stdc = yes; then |
|
|
6679 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6680 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6681 | /* confdefs.h. */ |
|
|
6682 | _ACEOF |
|
|
6683 | cat confdefs.h >>conftest.$ac_ext |
|
|
6684 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6685 | /* end confdefs.h. */ |
|
|
6686 | #include <string.h> |
|
|
6687 | |
|
|
6688 | _ACEOF |
|
|
6689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6690 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6691 | : |
|
|
6692 | else |
|
|
6693 | ac_cv_header_stdc=no |
|
|
6694 | fi |
|
|
6695 | rm -f conftest* |
|
|
6696 | |
|
|
6697 | fi |
|
|
6698 | |
|
|
6699 | if test $ac_cv_header_stdc = yes; then |
|
|
6700 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6701 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6702 | /* confdefs.h. */ |
|
|
6703 | _ACEOF |
|
|
6704 | cat confdefs.h >>conftest.$ac_ext |
|
|
6705 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6706 | /* end confdefs.h. */ |
|
|
6707 | #include <stdlib.h> |
|
|
6708 | |
|
|
6709 | _ACEOF |
|
|
6710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6711 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6712 | : |
|
|
6713 | else |
|
|
6714 | ac_cv_header_stdc=no |
|
|
6715 | fi |
|
|
6716 | rm -f conftest* |
|
|
6717 | |
|
|
6718 | fi |
|
|
6719 | |
|
|
6720 | if test $ac_cv_header_stdc = yes; then |
|
|
6721 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6722 | if test "$cross_compiling" = yes; then |
|
|
6723 | : |
|
|
6724 | else |
|
|
6725 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6726 | /* confdefs.h. */ |
|
|
6727 | _ACEOF |
|
|
6728 | cat confdefs.h >>conftest.$ac_ext |
|
|
6729 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6730 | /* end confdefs.h. */ |
|
|
6731 | #include <ctype.h> |
|
|
6732 | #include <stdlib.h> |
|
|
6733 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6734 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6735 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6736 | #else |
|
|
6737 | # define ISLOWER(c) \ |
|
|
6738 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6739 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6740 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6741 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6742 | #endif |
|
|
6743 | |
|
|
6744 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6745 | int |
|
|
6746 | main () |
|
|
6747 | { |
|
|
6748 | int i; |
|
|
6749 | for (i = 0; i < 256; i++) |
|
|
6750 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6751 | || toupper (i) != TOUPPER (i)) |
|
|
6752 | return 2; |
|
|
6753 | return 0; |
|
|
6754 | } |
|
|
6755 | _ACEOF |
|
|
6756 | rm -f conftest$ac_exeext |
|
|
6757 | if { (ac_try="$ac_link" |
|
|
6758 | case "(($ac_try" in |
|
|
6759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6760 | *) ac_try_echo=$ac_try;; |
|
|
6761 | esac |
|
|
6762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6763 | (eval "$ac_link") 2>&5 |
|
|
6764 | ac_status=$? |
|
|
6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6766 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6767 | { (case "(($ac_try" in |
|
|
6768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6769 | *) ac_try_echo=$ac_try;; |
|
|
6770 | esac |
|
|
6771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6772 | (eval "$ac_try") 2>&5 |
|
|
6773 | ac_status=$? |
|
|
6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6775 | (exit $ac_status); }; }; then |
|
|
6776 | : |
|
|
6777 | else |
|
|
6778 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6779 | echo "$as_me: failed program was:" >&5 |
|
|
6780 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6781 | |
|
|
6782 | ( exit $ac_status ) |
|
|
6783 | ac_cv_header_stdc=no |
|
|
6784 | fi |
|
|
6785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6786 | fi |
|
|
6787 | |
|
|
6788 | |
|
|
6789 | fi |
|
|
6790 | fi |
|
|
6791 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6792 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
6793 | if test $ac_cv_header_stdc = yes; then |
|
|
6794 | |
|
|
6795 | cat >>confdefs.h <<\_ACEOF |
|
|
6796 | #define STDC_HEADERS 1 |
|
|
6797 | _ACEOF |
|
|
6798 | |
|
|
6799 | fi |
|
|
6800 | |
|
|
6801 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6802 | |
|
|
6803 | |
|
|
6804 | |
|
|
6805 | |
|
|
6806 | |
|
|
6807 | |
|
|
6808 | |
|
|
6809 | |
|
|
6810 | |
|
|
6811 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6812 | inttypes.h stdint.h unistd.h |
|
|
6813 | do |
|
|
6814 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6815 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
6817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6819 | else |
|
|
6820 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6821 | /* confdefs.h. */ |
|
|
6822 | _ACEOF |
|
|
6823 | cat confdefs.h >>conftest.$ac_ext |
|
|
6824 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6825 | /* end confdefs.h. */ |
|
|
6826 | $ac_includes_default |
|
|
6827 | |
|
|
6828 | #include <$ac_header> |
|
|
6829 | _ACEOF |
|
|
6830 | rm -f conftest.$ac_objext |
|
|
6831 | if { (ac_try="$ac_compile" |
|
|
6832 | case "(($ac_try" in |
|
|
6833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6834 | *) ac_try_echo=$ac_try;; |
|
|
6835 | esac |
|
|
6836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6837 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6838 | ac_status=$? |
|
|
6839 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6840 | rm -f conftest.er1 |
|
|
6841 | cat conftest.err >&5 |
|
|
6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6843 | (exit $ac_status); } && { |
|
|
6844 | test -z "$ac_cxx_werror_flag" || |
|
|
6845 | test ! -s conftest.err |
|
|
6846 | } && test -s conftest.$ac_objext; then |
|
|
6847 | eval "$as_ac_Header=yes" |
|
|
6848 | else |
|
|
6849 | echo "$as_me: failed program was:" >&5 |
|
|
6850 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6851 | |
|
|
6852 | eval "$as_ac_Header=no" |
|
|
6853 | fi |
|
|
6854 | |
|
|
6855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6856 | fi |
|
|
6857 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
6858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6859 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6860 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6861 | cat >>confdefs.h <<_ACEOF |
|
|
6862 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6863 | _ACEOF |
|
|
6864 | |
|
|
6865 | fi |
|
|
6866 | |
|
|
6867 | done |
|
|
6868 | |
|
|
6869 | |
7440 | |
6870 | |
7441 | |
6871 | |
7442 | |
6872 | |
7443 | |
6873 | |
7444 | |
… | |
… | |
13819 | GREP!$GREP$ac_delim |
14390 | GREP!$GREP$ac_delim |
13820 | EGREP!$EGREP$ac_delim |
14391 | EGREP!$EGREP$ac_delim |
13821 | LINKER!$LINKER$ac_delim |
14392 | LINKER!$LINKER$ac_delim |
13822 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
14393 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
13823 | RXVTNAME!$RXVTNAME$ac_delim |
14394 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
14395 | CXXCPP!$CXXCPP$ac_delim |
13824 | TIC!$TIC$ac_delim |
14396 | TIC!$TIC$ac_delim |
13825 | XMKMF!$XMKMF$ac_delim |
14397 | XMKMF!$XMKMF$ac_delim |
13826 | CXXCPP!$CXXCPP$ac_delim |
|
|
13827 | X_CFLAGS!$X_CFLAGS$ac_delim |
14398 | X_CFLAGS!$X_CFLAGS$ac_delim |
13828 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14399 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13829 | X_LIBS!$X_LIBS$ac_delim |
14400 | X_LIBS!$X_LIBS$ac_delim |
13830 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14401 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13831 | afterimage_config!$afterimage_config$ac_delim |
14402 | afterimage_config!$afterimage_config$ac_delim |