]>
Commit | Line | Data |
---|---|---|
b2dad0e3 | 1 | #! /bin/sh |
b2dad0e3 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec2075e9 | 3 | # Generated by GNU Autoconf 2.59 for package-unused version-unused. |
b2dad0e3 | 4 | # |
ec2075e9 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
b2dad0e3 BK |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
ff66d28f PE |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
ec2075e9 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
ff66d28f PE |
23 | |
24 | # Support unset when possible. | |
ec2075e9 | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
ff66d28f PE |
26 | as_unset=unset |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
ec2075e9 | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ff66d28f PE |
45 | eval $as_var=C; export $as_var |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
b2dad0e3 | 116 | |
ff66d28f PE |
117 | ;; |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
ec2075e9 | 221 | test -d ./-p && rmdir ./-p |
ff66d28f PE |
222 | as_mkdir_p=false |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
ec2075e9 | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ff66d28f PE |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
ec2075e9 | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ff66d28f PE |
232 | |
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
b2dad0e3 | 254 | ac_default_prefix=/usr/local |
ff66d28f PE |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
fbe057bb PE |
268 | PACKAGE_NAME='package-unused' |
269 | PACKAGE_TARNAME='libstdc++' | |
ff66d28f | 270 | PACKAGE_VERSION='version-unused' |
fbe057bb | 271 | PACKAGE_STRING='package-unused version-unused' |
ff66d28f PE |
272 | PACKAGE_BUGREPORT='' |
273 | ||
274 | ac_unique_file="src/ios.cc" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
825bd0e1 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CXXCPP CPPFLAGS enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS LIBICONV SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_THREAD_TRUE GLIBCXX_TEST_THREAD_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR ABI_TWEAKS_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS' |
ff66d28f | 313 | ac_subst_files='' |
b2dad0e3 BK |
314 | |
315 | # Initialize some variables set by options. | |
ff66d28f PE |
316 | ac_init_help= |
317 | ac_init_version=false | |
b2dad0e3 BK |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
ff66d28f | 320 | cache_file=/dev/null |
b2dad0e3 | 321 | exec_prefix=NONE |
b2dad0e3 | 322 | no_create= |
b2dad0e3 BK |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
b2dad0e3 BK |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
ff66d28f PE |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
b2dad0e3 BK |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
b2dad0e3 BK |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
b2dad0e3 BK |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
ff66d28f | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
b2dad0e3 BK |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
ff66d28f | 367 | case $ac_option in |
b2dad0e3 BK |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ff66d28f | 372 | bindir=$ac_optarg ;; |
b2dad0e3 BK |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
ff66d28f | 375 | ac_prev=build_alias ;; |
b2dad0e3 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ff66d28f | 377 | build_alias=$ac_optarg ;; |
b2dad0e3 BK |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ff66d28f PE |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
b2dad0e3 BK |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
ff66d28f | 393 | datadir=$ac_optarg ;; |
b2dad0e3 BK |
394 | |
395 | -disable-* | --disable-*) | |
ff66d28f | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
b2dad0e3 | 397 | # Reject names that are not valid shell variable names. |
ff66d28f PE |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
b2dad0e3 BK |
403 | |
404 | -enable-* | --enable-*) | |
ff66d28f | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
b2dad0e3 | 406 | # Reject names that are not valid shell variable names. |
ff66d28f PE |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
b2dad0e3 BK |
413 | *) ac_optarg=yes ;; |
414 | esac | |
ff66d28f | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
b2dad0e3 BK |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
ff66d28f | 424 | exec_prefix=$ac_optarg ;; |
b2dad0e3 BK |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
ff66d28f PE |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
b2dad0e3 BK |
436 | |
437 | -host | --host | --hos | --ho) | |
ff66d28f | 438 | ac_prev=host_alias ;; |
b2dad0e3 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
ff66d28f | 440 | host_alias=$ac_optarg ;; |
b2dad0e3 BK |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ff66d28f | 447 | includedir=$ac_optarg ;; |
b2dad0e3 BK |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ff66d28f | 452 | infodir=$ac_optarg ;; |
b2dad0e3 BK |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ff66d28f | 457 | libdir=$ac_optarg ;; |
b2dad0e3 BK |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
ff66d28f | 464 | libexecdir=$ac_optarg ;; |
b2dad0e3 BK |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
ff66d28f | 473 | localstatedir=$ac_optarg ;; |
b2dad0e3 BK |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ff66d28f | 478 | mandir=$ac_optarg ;; |
b2dad0e3 BK |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ff66d28f | 485 | | --no-cr | --no-c | -n) |
b2dad0e3 BK |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ff66d28f | 499 | oldincludedir=$ac_optarg ;; |
b2dad0e3 BK |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ff66d28f | 504 | prefix=$ac_optarg ;; |
b2dad0e3 BK |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ff66d28f | 511 | program_prefix=$ac_optarg ;; |
b2dad0e3 BK |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ff66d28f | 518 | program_suffix=$ac_optarg ;; |
b2dad0e3 BK |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ff66d28f | 535 | program_transform_name=$ac_optarg ;; |
b2dad0e3 BK |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
ff66d28f | 545 | sbindir=$ac_optarg ;; |
b2dad0e3 BK |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
ff66d28f | 556 | sharedstatedir=$ac_optarg ;; |
b2dad0e3 BK |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
ff66d28f | 561 | site=$ac_optarg ;; |
b2dad0e3 BK |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ff66d28f | 566 | srcdir=$ac_optarg ;; |
b2dad0e3 BK |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ff66d28f | 573 | sysconfdir=$ac_optarg ;; |
b2dad0e3 BK |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ff66d28f | 576 | ac_prev=target_alias ;; |
b2dad0e3 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ff66d28f | 578 | target_alias=$ac_optarg ;; |
b2dad0e3 BK |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
ff66d28f PE |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
b2dad0e3 BK |
585 | |
586 | -with-* | --with-*) | |
ff66d28f | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
b2dad0e3 | 588 | # Reject names that are not valid shell variable names. |
ff66d28f PE |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
ff66d28f PE |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
b2dad0e3 BK |
595 | *) ac_optarg=yes ;; |
596 | esac | |
ff66d28f | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
b2dad0e3 BK |
598 | |
599 | -without-* | --without-*) | |
ff66d28f | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
b2dad0e3 | 601 | # Reject names that are not valid shell variable names. |
ff66d28f PE |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
b2dad0e3 BK |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ff66d28f | 617 | x_includes=$ac_optarg ;; |
b2dad0e3 BK |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ff66d28f | 624 | x_libraries=$ac_optarg ;; |
b2dad0e3 | 625 | |
ff66d28f PE |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
629 | ;; |
630 | ||
ff66d28f PE |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
b2dad0e3 | 641 | *) |
ff66d28f PE |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
b2dad0e3 BK |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
ff66d28f PE |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 656 | fi |
b2dad0e3 | 657 | |
ff66d28f PE |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
b2dad0e3 | 668 | |
ff66d28f PE |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ec2075e9 | 671 | localstatedir libdir includedir oldincludedir infodir mandir |
b2dad0e3 | 672 | do |
ff66d28f PE |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
b2dad0e3 BK |
678 | esac |
679 | done | |
680 | ||
ff66d28f PE |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
b2dad0e3 | 687 | |
ff66d28f PE |
688 | # FIXME: To remove some day. |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
698 | ||
699 | ac_tool_prefix= | |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
b2dad0e3 | 703 | |
b2dad0e3 BK |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
ff66d28f PE |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ec2075e9 BK |
711 | X"$0" : 'X\(//\)[^/]' \| \ |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
ff66d28f PE |
715 | echo X"$0" | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
b2dad0e3 BK |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
ff66d28f PE |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 732 | else |
ff66d28f PE |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
735 | fi | |
736 | fi | |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
ff66d28f PE |
753 | ac_env_CXXCPP_set=${CXXCPP+set} |
754 | ac_env_CXXCPP_value=$CXXCPP | |
755 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
756 | ac_cv_env_CXXCPP_value=$CXXCPP | |
f6dda651 PE |
757 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
758 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
759 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
760 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
ff66d28f PE |
761 | ac_env_CPP_set=${CPP+set} |
762 | ac_env_CPP_value=$CPP | |
763 | ac_cv_env_CPP_set=${CPP+set} | |
764 | ac_cv_env_CPP_value=$CPP | |
765 | ||
766 | # | |
767 | # Report the --help message. | |
768 | # | |
769 | if test "$ac_init_help" = "long"; then | |
770 | # Omit some internal or obsolete options to make the list less imposing. | |
771 | # This message is too long to be a string in the A/UX 3.1 sh. | |
772 | cat <<_ACEOF | |
fbe057bb | 773 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. |
ff66d28f PE |
774 | |
775 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
776 | ||
777 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
778 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
779 | ||
780 | Defaults for the options are specified in brackets. | |
781 | ||
782 | Configuration: | |
783 | -h, --help display this help and exit | |
784 | --help=short display options specific to this package | |
785 | --help=recursive display the short help of all the included packages | |
786 | -V, --version display version information and exit | |
787 | -q, --quiet, --silent do not print \`checking...' messages | |
788 | --cache-file=FILE cache test results in FILE [disabled] | |
789 | -C, --config-cache alias for \`--cache-file=config.cache' | |
790 | -n, --no-create do not create output files | |
791 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
792 | ||
793 | _ACEOF | |
794 | ||
795 | cat <<_ACEOF | |
796 | Installation directories: | |
797 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec2075e9 | 798 | [$ac_default_prefix] |
ff66d28f | 799 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec2075e9 | 800 | [PREFIX] |
ff66d28f PE |
801 | |
802 | By default, \`make install' will install all the files in | |
803 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
804 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
805 | for instance \`--prefix=\$HOME'. | |
806 | ||
807 | For better control, use the options below. | |
808 | ||
809 | Fine tuning of the installation directories: | |
810 | --bindir=DIR user executables [EPREFIX/bin] | |
811 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
812 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
813 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
814 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
815 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
816 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
817 | --libdir=DIR object code libraries [EPREFIX/lib] | |
818 | --includedir=DIR C header files [PREFIX/include] | |
819 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
820 | --infodir=DIR info documentation [PREFIX/info] | |
821 | --mandir=DIR man documentation [PREFIX/man] | |
822 | _ACEOF | |
823 | ||
824 | cat <<\_ACEOF | |
825 | ||
826 | Program names: | |
827 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
828 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
829 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
830 | ||
831 | System types: | |
832 | --build=BUILD configure for building on BUILD [guessed] | |
833 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
834 | --target=TARGET configure for building compilers for TARGET [HOST] | |
835 | _ACEOF | |
836 | fi | |
837 | ||
838 | if test -n "$ac_init_help"; then | |
839 | case $ac_init_help in | |
fbe057bb | 840 | short | recursive ) echo "Configuration of package-unused version-unused:";; |
ff66d28f PE |
841 | esac |
842 | cat <<\_ACEOF | |
843 | ||
844 | Optional Features: | |
845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
7eaf73d7 KC |
847 | --enable-multilib build many library versions (default) |
848 | --enable-maintainer-mode enable make rules and dependencies not useful | |
849 | (and sometimes confusing) to the casual installer | |
ff66d28f PE |
850 | --enable-shared=PKGS build shared libraries default=yes |
851 | --enable-static=PKGS build static libraries default=yes | |
852 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
853 | --disable-libtool-lock avoid locking (might break parallel builds) | |
92eabea2 PE |
854 | --disable-hosted-libstdcxx |
855 | only build freestanding C++ runtime support | |
ff66d28f | 856 | --enable-sjlj-exceptions |
517da0ce MM |
857 | force use of builtin_setjmp for exceptions |
858 | [default=auto] | |
859 | --enable-libstdcxx-pch build pre-compiled libstdc++ headers | |
860 | [default=$is_hosted] | |
861 | --enable-cstdio=PACKAGE use target-specific I/O package | |
862 | [default=stdio] | |
ff66d28f | 863 | --enable-clocale[=MODEL] |
517da0ce MM |
864 | use MODEL for target locale package |
865 | [default=auto] | |
866 | --enable-nls use Native Language Support (default) | |
8b0d6051 BK |
867 | --enable-libstdcxx-allocator=KIND |
868 | use KIND for target std::allocator base | |
869 | [default=auto] | |
517da0ce MM |
870 | --enable-cheaders=KIND construct "C" headers for g++ |
871 | [default=$c_model] | |
872 | --enable-c-mbchar enable multibyte (wide) characters | |
873 | [default=yes] | |
874 | --enable-c99 turns on ISO/IEC 9899:1999 support | |
875 | [default=yes] | |
876 | --enable-long-long enables I/O support for 'long long' | |
877 | [default=yes] | |
878 | --enable-concept-checks use Boost-derived template checks [default=no] | |
ff66d28f | 879 | --enable-libstdcxx-debug-flags=FLAGS |
517da0ce MM |
880 | pass compiler FLAGS when building debug library |
881 | [default="-g3 -O0"] | |
ff66d28f PE |
882 | --enable-libstdcxx-debug |
883 | build extra debug library [default=no] | |
884 | --enable-cxx-flags=FLAGS | |
517da0ce MM |
885 | pass compiler FLAGS when building library |
886 | [default=] | |
1165dc50 PC |
887 | --enable-fully-dynamic-string |
888 | do not put empty strings in per-process static | |
889 | memory [default=no] | |
517da0ce MM |
890 | --enable-symvers=STYLE enables symbol versioning of the shared library |
891 | [default=yes] | |
ff66d28f | 892 | --enable-version-specific-runtime-libs |
517da0ce MM |
893 | Specify that runtime libraries should be installed |
894 | in a compiler-specific directory | |
ff66d28f PE |
895 | |
896 | Optional Packages: | |
897 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
898 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
899 | --with-target-subdir=SUBDIR | |
900 | configuring in a subdirectory | |
517da0ce MM |
901 | --with-cross-host=HOST configuring with a cross compiler |
902 | --with-newlib assume newlib as a system C library | |
ff66d28f PE |
903 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
904 | --with-pic try to use only PIC/non-PIC objects default=use both | |
905 | --with-gxx-include-dir=DIR | |
906 | installation directory for include files | |
907 | ||
908 | Some influential environment variables: | |
517da0ce MM |
909 | CC C compiler command |
910 | CFLAGS C compiler flags | |
911 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
912 | nonstandard directory <lib dir> | |
913 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
914 | headers in a nonstandard directory <include dir> | |
915 | CXX C++ compiler command | |
916 | CXXFLAGS C++ compiler flags | |
917 | CXXCPP C++ preprocessor | |
918 | CPP C preprocessor | |
ff66d28f PE |
919 | |
920 | Use these variables to override the choices made by `configure' or to help | |
921 | it to find libraries and programs with nonstandard names/locations. | |
922 | ||
923 | _ACEOF | |
924 | fi | |
925 | ||
926 | if test "$ac_init_help" = "recursive"; then | |
927 | # If there are subdirs, report their specific --help. | |
928 | ac_popdir=`pwd` | |
929 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
930 | test -d $ac_dir || continue | |
931 | ac_builddir=. | |
932 | ||
933 | if test "$ac_dir" != .; then | |
934 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
935 | # A "../" for each directory in $ac_dir_suffix. | |
936 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
937 | else | |
938 | ac_dir_suffix= ac_top_builddir= | |
939 | fi | |
940 | ||
941 | case $srcdir in | |
942 | .) # No --srcdir option. We are building in place. | |
943 | ac_srcdir=. | |
944 | if test -z "$ac_top_builddir"; then | |
945 | ac_top_srcdir=. | |
946 | else | |
947 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
948 | fi ;; | |
949 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
950 | ac_srcdir=$srcdir$ac_dir_suffix; | |
951 | ac_top_srcdir=$srcdir ;; | |
952 | *) # Relative path. | |
953 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
954 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
955 | esac | |
ec2075e9 BK |
956 | |
957 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
958 | # the directories may not exist. | |
959 | case `pwd` in | |
960 | .) ac_abs_builddir="$ac_dir";; | |
961 | *) | |
962 | case "$ac_dir" in | |
963 | .) ac_abs_builddir=`pwd`;; | |
964 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
965 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
966 | esac;; | |
967 | esac | |
968 | case $ac_abs_builddir in | |
969 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
970 | *) | |
971 | case ${ac_top_builddir}. in | |
972 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
973 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
974 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
975 | esac;; | |
976 | esac | |
977 | case $ac_abs_builddir in | |
978 | .) ac_abs_srcdir=$ac_srcdir;; | |
979 | *) | |
980 | case $ac_srcdir in | |
981 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
982 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
983 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
984 | esac;; | |
985 | esac | |
986 | case $ac_abs_builddir in | |
987 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
988 | *) | |
989 | case $ac_top_srcdir in | |
990 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
991 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
992 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
993 | esac;; | |
994 | esac | |
ff66d28f PE |
995 | |
996 | cd $ac_dir | |
997 | # Check for guested configure; otherwise get Cygnus style configure. | |
998 | if test -f $ac_srcdir/configure.gnu; then | |
999 | echo | |
1000 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1001 | elif test -f $ac_srcdir/configure; then | |
1002 | echo | |
1003 | $SHELL $ac_srcdir/configure --help=recursive | |
1004 | elif test -f $ac_srcdir/configure.ac || | |
ec2075e9 | 1005 | test -f $ac_srcdir/configure.in; then |
ff66d28f PE |
1006 | echo |
1007 | $ac_configure --help | |
1008 | else | |
1009 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1010 | fi | |
780028b6 | 1011 | cd $ac_popdir |
ff66d28f PE |
1012 | done |
1013 | fi | |
1014 | ||
1015 | test -n "$ac_init_help" && exit 0 | |
1016 | if $ac_init_version; then | |
1017 | cat <<\_ACEOF | |
fbe057bb | 1018 | package-unused configure version-unused |
ec2075e9 | 1019 | generated by GNU Autoconf 2.59 |
ff66d28f | 1020 | |
ec2075e9 | 1021 | Copyright (C) 2003 Free Software Foundation, Inc. |
ff66d28f PE |
1022 | This configure script is free software; the Free Software Foundation |
1023 | gives unlimited permission to copy, distribute and modify it. | |
1024 | _ACEOF | |
1025 | exit 0 | |
b2dad0e3 | 1026 | fi |
ff66d28f PE |
1027 | exec 5>config.log |
1028 | cat >&5 <<_ACEOF | |
1029 | This file contains any messages produced by compilers while | |
1030 | running configure, to aid debugging if configure makes a mistake. | |
1031 | ||
fbe057bb | 1032 | It was created by package-unused $as_me version-unused, which was |
ec2075e9 | 1033 | generated by GNU Autoconf 2.59. Invocation command line was |
ff66d28f PE |
1034 | |
1035 | $ $0 $@ | |
1036 | ||
1037 | _ACEOF | |
1038 | { | |
1039 | cat <<_ASUNAME | |
1040 | ## --------- ## | |
1041 | ## Platform. ## | |
1042 | ## --------- ## | |
1043 | ||
1044 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1045 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1046 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1047 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1048 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1049 | ||
1050 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1051 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1052 | ||
1053 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1054 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1055 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1056 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1057 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1058 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1059 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1060 | ||
1061 | _ASUNAME | |
1062 | ||
1063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1064 | for as_dir in $PATH | |
1065 | do | |
1066 | IFS=$as_save_IFS | |
1067 | test -z "$as_dir" && as_dir=. | |
1068 | echo "PATH: $as_dir" | |
1069 | done | |
1070 | ||
1071 | } >&5 | |
1072 | ||
1073 | cat >&5 <<_ACEOF | |
1074 | ||
1075 | ||
1076 | ## ----------- ## | |
1077 | ## Core tests. ## | |
1078 | ## ----------- ## | |
1079 | ||
1080 | _ACEOF | |
1081 | ||
1082 | ||
1083 | # Keep a trace of the command line. | |
1084 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1085 | # Strip out --silent because we don't want to record it for future runs. | |
1086 | # Also quote any args containing shell meta-characters. | |
1087 | # Make two passes to allow for proper duplicate-argument suppression. | |
1088 | ac_configure_args= | |
1089 | ac_configure_args0= | |
1090 | ac_configure_args1= | |
1091 | ac_sep= | |
1092 | ac_must_keep_next=false | |
1093 | for ac_pass in 1 2 | |
1094 | do | |
1095 | for ac_arg | |
1096 | do | |
1097 | case $ac_arg in | |
1098 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1099 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1100 | | -silent | --silent | --silen | --sile | --sil) | |
1101 | continue ;; | |
1102 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1103 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1104 | esac | |
1105 | case $ac_pass in | |
1106 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1107 | 2) | |
1108 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1109 | if test $ac_must_keep_next = true; then | |
ec2075e9 | 1110 | ac_must_keep_next=false # Got value, back to normal. |
ff66d28f | 1111 | else |
ec2075e9 BK |
1112 | case $ac_arg in |
1113 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1114 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1115 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1116 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1117 | case "$ac_configure_args0 " in | |
1118 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1119 | esac | |
1120 | ;; | |
1121 | -* ) ac_must_keep_next=true ;; | |
1122 | esac | |
ff66d28f PE |
1123 | fi |
1124 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1125 | # Get rid of the leading space. | |
1126 | ac_sep=" " | |
1127 | ;; | |
1128 | esac | |
1129 | done | |
1130 | done | |
1131 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1132 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1133 | ||
1134 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1135 | # config.log. We remove comments because anyway the quotes in there | |
1136 | # would cause problems or look ugly. | |
1137 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1138 | # such as our DU 5.0 friend, will then `close' the trap. | |
1139 | trap 'exit_status=$? | |
1140 | # Save into config.log some information that might help in debugging. | |
1141 | { | |
1142 | echo | |
1143 | ||
1144 | cat <<\_ASBOX | |
1145 | ## ---------------- ## | |
1146 | ## Cache variables. ## | |
1147 | ## ---------------- ## | |
1148 | _ASBOX | |
1149 | echo | |
1150 | # The following way of writing the cache mishandles newlines in values, | |
1151 | { | |
1152 | (set) 2>&1 | | |
1153 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1154 | *ac_space=\ *) | |
1155 | sed -n \ | |
ec2075e9 BK |
1156 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1157 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ff66d28f PE |
1158 | ;; |
1159 | *) | |
1160 | sed -n \ | |
ec2075e9 | 1161 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ff66d28f PE |
1162 | ;; |
1163 | esac; | |
1164 | } | |
1165 | echo | |
1166 | ||
1167 | cat <<\_ASBOX | |
1168 | ## ----------------- ## | |
1169 | ## Output variables. ## | |
1170 | ## ----------------- ## | |
1171 | _ASBOX | |
1172 | echo | |
1173 | for ac_var in $ac_subst_vars | |
1174 | do | |
1175 | eval ac_val=$`echo $ac_var` | |
1176 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1177 | done | sort | |
1178 | echo | |
1179 | ||
1180 | if test -n "$ac_subst_files"; then | |
1181 | cat <<\_ASBOX | |
1182 | ## ------------- ## | |
1183 | ## Output files. ## | |
1184 | ## ------------- ## | |
1185 | _ASBOX | |
1186 | echo | |
1187 | for ac_var in $ac_subst_files | |
1188 | do | |
1189 | eval ac_val=$`echo $ac_var` | |
ec2075e9 | 1190 | echo "$ac_var='"'"'$ac_val'"'"'" |
ff66d28f PE |
1191 | done | sort |
1192 | echo | |
1193 | fi | |
1194 | ||
1195 | if test -s confdefs.h; then | |
1196 | cat <<\_ASBOX | |
1197 | ## ----------- ## | |
1198 | ## confdefs.h. ## | |
1199 | ## ----------- ## | |
1200 | _ASBOX | |
1201 | echo | |
1202 | sed "/^$/d" confdefs.h | sort | |
1203 | echo | |
1204 | fi | |
1205 | test "$ac_signal" != 0 && | |
1206 | echo "$as_me: caught signal $ac_signal" | |
1207 | echo "$as_me: exit $exit_status" | |
1208 | } >&5 | |
ec2075e9 | 1209 | rm -f core *.core && |
ff66d28f PE |
1210 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1211 | exit $exit_status | |
1212 | ' 0 | |
1213 | for ac_signal in 1 2 13 15; do | |
1214 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1215 | done | |
1216 | ac_signal=0 | |
1217 | ||
1218 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1219 | rm -rf conftest* confdefs.h | |
1220 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1221 | echo >confdefs.h | |
1222 | ||
1223 | # Predefined preprocessor variables. | |
1224 | ||
1225 | cat >>confdefs.h <<_ACEOF | |
1226 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | cat >>confdefs.h <<_ACEOF | |
1231 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1232 | _ACEOF | |
1233 | ||
1234 | ||
1235 | cat >>confdefs.h <<_ACEOF | |
1236 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1237 | _ACEOF | |
1238 | ||
b2dad0e3 | 1239 | |
ff66d28f PE |
1240 | cat >>confdefs.h <<_ACEOF |
1241 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1242 | _ACEOF | |
1243 | ||
1244 | ||
1245 | cat >>confdefs.h <<_ACEOF | |
1246 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1247 | _ACEOF | |
1248 | ||
1249 | ||
1250 | # Let the site file select an alternate cache file if it wants to. | |
b2dad0e3 | 1251 | # Prefer explicitly selected file to automatically selected ones. |
a0f27776 PE |
1252 | if test -z "$CONFIG_SITE"; then |
1253 | if test "x$prefix" != xNONE; then | |
1254 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1255 | else | |
1256 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
b2dad0e3 BK |
1257 | fi |
1258 | fi | |
1259 | for ac_site_file in $CONFIG_SITE; do | |
1260 | if test -r "$ac_site_file"; then | |
ff66d28f PE |
1261 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1262 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1263 | sed 's/^/| /' "$ac_site_file" >&5 | |
b2dad0e3 BK |
1264 | . "$ac_site_file" |
1265 | fi | |
1266 | done | |
1267 | ||
1268 | if test -r "$cache_file"; then | |
ff66d28f PE |
1269 | # Some versions of bash will fail to source /dev/null (special |
1270 | # files actually), so we avoid doing that. | |
1271 | if test -f "$cache_file"; then | |
1272 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1273 | echo "$as_me: loading cache $cache_file" >&6;} | |
1274 | case $cache_file in | |
1275 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1276 | *) . ./$cache_file;; | |
1277 | esac | |
1278 | fi | |
b2dad0e3 | 1279 | else |
ff66d28f PE |
1280 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1281 | echo "$as_me: creating cache $cache_file" >&6;} | |
1282 | >$cache_file | |
1283 | fi | |
1284 | ||
1285 | # Check that the precious variables saved in the cache have kept the same | |
1286 | # value. | |
1287 | ac_cache_corrupted=false | |
1288 | for ac_var in `(set) 2>&1 | | |
ec2075e9 | 1289 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ff66d28f PE |
1290 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1291 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1292 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1293 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1294 | case $ac_old_set,$ac_new_set in | |
1295 | set,) | |
1296 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1297 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1298 | ac_cache_corrupted=: ;; | |
1299 | ,set) | |
1300 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1301 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1302 | ac_cache_corrupted=: ;; | |
1303 | ,);; | |
1304 | *) | |
1305 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec2075e9 | 1306 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ff66d28f | 1307 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ec2075e9 | 1308 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ff66d28f | 1309 | echo "$as_me: former value: $ac_old_val" >&2;} |
ec2075e9 | 1310 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ff66d28f | 1311 | echo "$as_me: current value: $ac_new_val" >&2;} |
ec2075e9 | 1312 | ac_cache_corrupted=: |
ff66d28f PE |
1313 | fi;; |
1314 | esac | |
1315 | # Pass precious variables to config.status. | |
1316 | if test "$ac_new_set" = set; then | |
1317 | case $ac_new_val in | |
1318 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1319 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1320 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1321 | esac | |
1322 | case " $ac_configure_args " in | |
1323 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1324 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1325 | esac | |
1326 | fi | |
1327 | done | |
1328 | if $ac_cache_corrupted; then | |
1329 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1330 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1331 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1332 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1333 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
1334 | fi |
1335 | ||
1336 | ac_ext=c | |
b2dad0e3 | 1337 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
1338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b2dad0e3 BK |
1341 | |
1342 | ||
e2c20fae | 1343 | |
6706f116 | 1344 | |
33590f13 BK |
1345 | |
1346 | ||
1347 | ||
aebb8c22 | 1348 | |
aebb8c22 | 1349 | |
ff66d28f PE |
1350 | |
1351 | ||
1352 | ||
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
1368 | ||
1369 | ac_config_headers="$ac_config_headers config.h" | |
1370 | ||
1371 | ||
1372 | # This works around the fact that libtool configuration may change LD | |
1373 | # for this particular configuration, but some shells, instead of | |
1374 | # keeping the changes in LD private, export them just because LD is | |
1375 | # exported. Only used at the end of this file. | |
1376 | ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD | |
1377 | ||
1378 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
8736cbe6 | 1379 | libtool_VERSION=6:4:0 |
ff66d28f PE |
1380 | |
1381 | ||
1382 | # Find the rest of the source tree framework. | |
076e5443 | 1383 | # Default to --enable-multilib |
ff66d28f PE |
1384 | # Check whether --enable-multilib or --disable-multilib was given. |
1385 | if test "${enable_multilib+set}" = set; then | |
1386 | enableval="$enable_multilib" | |
1387 | case "$enableval" in | |
1388 | yes) multilib=yes ;; | |
1389 | no) multilib=no ;; | |
1390 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1391 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1392 | { (exit 1); exit 1; }; } ;; | |
1393 | esac | |
1394 | else | |
1395 | multilib=yes | |
1396 | fi; | |
1397 | ||
1398 | # We may get other options which we leave undocumented: | |
1399 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1400 | # See config-ml.in if you want the gory details. | |
1401 | ||
1402 | if test "$srcdir" = "."; then | |
1403 | if test "$with_target_subdir" != "."; then | |
1404 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1405 | else | |
1406 | multi_basedir="$srcdir/$with_multisrctop.." | |
1407 | fi | |
1408 | else | |
1409 | multi_basedir="$srcdir/.." | |
1410 | fi | |
1411 | ||
1412 | ||
1413 | ac_config_commands="$ac_config_commands default-1" | |
1414 | ||
1415 | ||
076e5443 PB |
1416 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. |
1417 | # | |
1418 | # You will slowly go insane if you do not grok the following fact: when | |
1419 | # building v3 as part of the compiler, the top-level /target/ becomes the | |
1420 | # library's /host/. configure then causes --target to default to --host, | |
1421 | # exactly like any other package using autoconf. Therefore, 'target' and | |
1422 | # 'host' will always be the same. This makes sense both for native and | |
1423 | # cross compilers, just think about it for a little while. :-) | |
1424 | # | |
1425 | # Also, if v3 is being configured as part of a cross compiler, the top-level | |
1426 | # configure script will pass the "real" host as $with_cross_host. | |
1427 | # | |
1428 | # Do not delete or change the following two lines. For why, see | |
1429 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
1430 | ac_aux_dir= | |
1431 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
ff66d28f PE |
1432 | if test -f $ac_dir/install-sh; then |
1433 | ac_aux_dir=$ac_dir | |
1434 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1435 | break | |
1436 | elif test -f $ac_dir/install.sh; then | |
1437 | ac_aux_dir=$ac_dir | |
b2dad0e3 BK |
1438 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1439 | break | |
ff66d28f PE |
1440 | elif test -f $ac_dir/shtool; then |
1441 | ac_aux_dir=$ac_dir | |
1442 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1443 | break | |
b2dad0e3 BK |
1444 | fi |
1445 | done | |
1446 | if test -z "$ac_aux_dir"; then | |
076e5443 PB |
1447 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1448 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
ff66d28f | 1449 | { (exit 1); exit 1; }; } |
b2dad0e3 | 1450 | fi |
ff66d28f PE |
1451 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1452 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1453 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1454 | ||
ff66d28f PE |
1455 | # Make sure we can run config.sub. |
1456 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1457 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1458 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1459 | { (exit 1); exit 1; }; } | |
1460 | ||
1461 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1462 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1463 | if test "${ac_cv_build+set}" = set; then | |
1464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1465 | else | |
1466 | ac_cv_build_alias=$build_alias | |
1467 | test -z "$ac_cv_build_alias" && | |
1468 | ac_cv_build_alias=`$ac_config_guess` | |
1469 | test -z "$ac_cv_build_alias" && | |
1470 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1471 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1472 | { (exit 1); exit 1; }; } | |
1473 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1474 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1475 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1476 | { (exit 1); exit 1; }; } | |
1477 | ||
1478 | fi | |
1479 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1480 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1481 | build=$ac_cv_build | |
1482 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1483 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1484 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1485 | ||
1486 | ||
1487 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1488 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1489 | if test "${ac_cv_host+set}" = set; then | |
1490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1491 | else | |
1492 | ac_cv_host_alias=$host_alias | |
1493 | test -z "$ac_cv_host_alias" && | |
1494 | ac_cv_host_alias=$ac_cv_build_alias | |
1495 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1496 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1497 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1498 | { (exit 1); exit 1; }; } | |
1499 | ||
1500 | fi | |
1501 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1502 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1503 | host=$ac_cv_host | |
1504 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1505 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1506 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1507 | ||
1508 | ||
1509 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1510 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1511 | if test "${ac_cv_target+set}" = set; then | |
1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1513 | else | |
1514 | ac_cv_target_alias=$target_alias | |
1515 | test "x$ac_cv_target_alias" = "x" && | |
1516 | ac_cv_target_alias=$ac_cv_host_alias | |
1517 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1518 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1519 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1520 | { (exit 1); exit 1; }; } | |
1521 | ||
1522 | fi | |
1523 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1524 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1525 | target=$ac_cv_target | |
1526 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1527 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1528 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
b2dad0e3 | 1529 | |
b2dad0e3 BK |
1530 | |
1531 | # The aliases save the names the user supplied, while $host etc. | |
1532 | # will get canonicalized. | |
ff66d28f PE |
1533 | test -n "$target_alias" && |
1534 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1535 | NONENONEs,x,x, && | |
1536 | program_prefix=${target_alias}- | |
1537 | target_alias=${target_alias-$host_alias} | |
1538 | ||
1539 | # Handy for debugging: | |
1540 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
1541 | ||
0df3f383 PE |
1542 | if test "$build" != "$host"; then |
1543 | # We are being configured with some form of cross compiler. | |
1544 | GLIBCXX_IS_NATIVE=false | |
72730fdb | 1545 | |
0df3f383 PE |
1546 | else |
1547 | GLIBCXX_IS_NATIVE=true | |
1548 | fi | |
1549 | ||
ff66d28f PE |
1550 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
1551 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1552 | # 1.x: minimum required version | |
1553 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1554 | # of other PACKAGE_* variables will, however, and there's nothing | |
fbe057bb | 1555 | # we can do about that; they come from AC_INIT). |
ff66d28f PE |
1556 | # foreign: we don't follow the normal rules for GNU packages (no COPYING |
1557 | # file in the top srcdir, etc, etc), so stop complaining. | |
1558 | # no-dependencies: turns off auto dependency generation (just for now) | |
2d52e9e3 PE |
1559 | # -Wall: turns on all automake warnings... |
1560 | # -Wno-portability: ...except this one, since GNU make is now required. | |
a60945f8 | 1561 | am__api_version="1.9" |
ff66d28f PE |
1562 | # Find a good install program. We prefer a C program (faster), |
1563 | # so one script is as good as another. But avoid the broken or | |
1564 | # incompatible versions: | |
1565 | # SysV /etc/install, /usr/sbin/install | |
1566 | # SunOS /usr/etc/install | |
1567 | # IRIX /sbin/install | |
1568 | # AIX /bin/install | |
1569 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1570 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1571 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1572 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ec2075e9 | 1573 | # OS/2's system install, which has a completely different semantic |
ff66d28f PE |
1574 | # ./install, which can be erroneously created by make from ./install.sh. |
1575 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1576 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1577 | if test -z "$INSTALL"; then | |
1578 | if test "${ac_cv_path_install+set}" = set; then | |
1579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1580 | else | |
1581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1582 | for as_dir in $PATH | |
1583 | do | |
1584 | IFS=$as_save_IFS | |
1585 | test -z "$as_dir" && as_dir=. | |
1586 | # Account for people who put trailing slashes in PATH elements. | |
1587 | case $as_dir/ in | |
1588 | ./ | .// | /cC/* | \ | |
1589 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ec2075e9 | 1590 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ff66d28f PE |
1591 | /usr/ucb/* ) ;; |
1592 | *) | |
1593 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1594 | # Don't use installbsd from OSF since it installs stuff as root | |
1595 | # by default. | |
1596 | for ac_prog in ginstall scoinst install; do | |
1597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ec2075e9 BK |
1598 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1599 | if test $ac_prog = install && | |
1600 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1601 | # AIX install. It has an incompatible calling convention. | |
1602 | : | |
1603 | elif test $ac_prog = install && | |
1604 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1605 | # program-specific install script used by HP pwplus--don't use. | |
1606 | : | |
1607 | else | |
1608 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1609 | break 3 | |
1610 | fi | |
1611 | fi | |
ff66d28f PE |
1612 | done |
1613 | done | |
1614 | ;; | |
b2dad0e3 | 1615 | esac |
ff66d28f | 1616 | done |
b2dad0e3 BK |
1617 | |
1618 | ||
b2dad0e3 | 1619 | fi |
ff66d28f PE |
1620 | if test "${ac_cv_path_install+set}" = set; then |
1621 | INSTALL=$ac_cv_path_install | |
1622 | else | |
1623 | # As a last resort, use the slow shell script. We don't cache a | |
1624 | # path for INSTALL within a source directory, because that will | |
1625 | # break other packages using the cache if that directory is | |
1626 | # removed, or if the path is relative. | |
1627 | INSTALL=$ac_install_sh | |
1628 | fi | |
1629 | fi | |
1630 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1631 | echo "${ECHO_T}$INSTALL" >&6 | |
b2dad0e3 | 1632 | |
ff66d28f PE |
1633 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1634 | # It thinks the first close brace ends the variable substitution. | |
1635 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b2dad0e3 | 1636 | |
ff66d28f | 1637 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
b2dad0e3 | 1638 | |
ff66d28f | 1639 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
b2dad0e3 | 1640 | |
ff66d28f PE |
1641 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1642 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1643 | # Just in case | |
1644 | sleep 1 | |
1645 | echo timestamp > conftest.file | |
1646 | # Do `set' in a subshell so we don't clobber the current shell's | |
1647 | # arguments. Must try -L first in case configure is actually a | |
1648 | # symlink; some systems play weird games with the mod time of symlinks | |
1649 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1650 | # directory). | |
1651 | if ( | |
1652 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1653 | if test "$*" = "X"; then | |
1654 | # -L didn't work. | |
1655 | set X `ls -t $srcdir/configure conftest.file` | |
1656 | fi | |
1657 | rm -f conftest.file | |
1658 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1659 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
b2dad0e3 | 1660 | |
ff66d28f PE |
1661 | # If neither matched, then we have a broken ls. This can happen |
1662 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1663 | # broken ls alias from the environment. This has actually | |
1664 | # happened. Such a system could not be considered "sane". | |
1665 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1666 | alias in your environment" >&5 | |
1667 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1668 | alias in your environment" >&2;} | |
1669 | { (exit 1); exit 1; }; } | |
1670 | fi | |
b2dad0e3 | 1671 | |
ff66d28f PE |
1672 | test "$2" = conftest.file |
1673 | ) | |
1674 | then | |
1675 | # Ok. | |
1676 | : | |
33590f13 | 1677 | else |
ff66d28f PE |
1678 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1679 | Check your system clock" >&5 | |
1680 | echo "$as_me: error: newly created file is older than distributed files! | |
1681 | Check your system clock" >&2;} | |
1682 | { (exit 1); exit 1; }; } | |
33590f13 | 1683 | fi |
ff66d28f PE |
1684 | echo "$as_me:$LINENO: result: yes" >&5 |
1685 | echo "${ECHO_T}yes" >&6 | |
1686 | test "$program_prefix" != NONE && | |
1687 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1688 | # Use a double $ so make ignores it. | |
1689 | test "$program_suffix" != NONE && | |
1690 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1691 | # Double any \ or $. echo might interpret backslashes. | |
1692 | # By default was `s,x,x', remove it if useless. | |
1693 | cat <<\_ACEOF >conftest.sed | |
1694 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1695 | _ACEOF | |
1696 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1697 | rm conftest.sed | |
b2dad0e3 | 1698 | |
ff66d28f PE |
1699 | # expand $ac_aux_dir to an absolute path |
1700 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
33590f13 | 1701 | |
ff66d28f PE |
1702 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1703 | # Use eval to expand $SHELL | |
1704 | if eval "$MISSING --run true"; then | |
1705 | am_missing_run="$MISSING --run " | |
b2dad0e3 | 1706 | else |
ff66d28f PE |
1707 | am_missing_run= |
1708 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1709 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
33590f13 BK |
1710 | fi |
1711 | ||
7eaf73d7 | 1712 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
a60945f8 PC |
1713 | # We used to keeping the `.' as first argument, in order to |
1714 | # allow $(mkdir_p) to be used without argument. As in | |
7eaf73d7 | 1715 | # $(mkdir_p) $(somedir) |
a60945f8 PC |
1716 | # where $(somedir) is conditionally defined. However this is wrong |
1717 | # for two reasons: | |
1718 | # 1. if the package is installed by a user who cannot write `.' | |
1719 | # make install will fail, | |
1720 | # 2. the above comment should most certainly read | |
1721 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1722 | # so it does not work when $(somedir) is undefined and | |
1723 | # $(DESTDIR) is not. | |
1724 | # To support the latter case, we have to write | |
1725 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1726 | # so the `.' trick is pointless. | |
1727 | mkdir_p='mkdir -p --' | |
7eaf73d7 KC |
1728 | else |
1729 | # On NextStep and OpenStep, the `mkdir' command does not | |
1730 | # recognize any option. It will interpret all options as | |
1731 | # directories to create, and then abort because `.' already | |
1732 | # exists. | |
1733 | for d in ./-p ./--version; | |
1734 | do | |
1735 | test -d $d && rmdir $d | |
1736 | done | |
1737 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1738 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1739 | mkdir_p='$(mkinstalldirs)' | |
1740 | else | |
1741 | mkdir_p='$(install_sh) -d' | |
1742 | fi | |
1743 | fi | |
1744 | ||
ff66d28f | 1745 | for ac_prog in gawk mawk nawk awk |
c98b201b | 1746 | do |
ff66d28f | 1747 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
c98b201b | 1748 | set dummy $ac_prog; ac_word=$2 |
ff66d28f PE |
1749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1751 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c98b201b PE |
1753 | else |
1754 | if test -n "$AWK"; then | |
1755 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1756 | else | |
ff66d28f PE |
1757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1758 | for as_dir in $PATH | |
1759 | do | |
1760 | IFS=$as_save_IFS | |
1761 | test -z "$as_dir" && as_dir=. | |
1762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1764 | ac_cv_prog_AWK="$ac_prog" | |
1765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1766 | break 2 | |
1767 | fi | |
1768 | done | |
1769 | done | |
1770 | ||
c98b201b PE |
1771 | fi |
1772 | fi | |
ff66d28f | 1773 | AWK=$ac_cv_prog_AWK |
c98b201b | 1774 | if test -n "$AWK"; then |
ff66d28f PE |
1775 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1776 | echo "${ECHO_T}$AWK" >&6 | |
c98b201b | 1777 | else |
ff66d28f PE |
1778 | echo "$as_me:$LINENO: result: no" >&5 |
1779 | echo "${ECHO_T}no" >&6 | |
c98b201b PE |
1780 | fi |
1781 | ||
ff66d28f | 1782 | test -n "$AWK" && break |
c98b201b PE |
1783 | done |
1784 | ||
ff66d28f PE |
1785 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1786 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ec2075e9 | 1787 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ff66d28f PE |
1788 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1790 | else | |
1791 | cat >conftest.make <<\_ACEOF | |
1792 | all: | |
1793 | @echo 'ac_maketemp="$(MAKE)"' | |
1794 | _ACEOF | |
1795 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1796 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1797 | if test -n "$ac_maketemp"; then | |
1798 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33590f13 | 1799 | else |
ff66d28f | 1800 | eval ac_cv_prog_make_${ac_make}_set=no |
33590f13 | 1801 | fi |
ff66d28f | 1802 | rm -f conftest.make |
33590f13 | 1803 | fi |
ff66d28f PE |
1804 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1805 | echo "$as_me:$LINENO: result: yes" >&5 | |
1806 | echo "${ECHO_T}yes" >&6 | |
1807 | SET_MAKE= | |
33590f13 | 1808 | else |
ff66d28f PE |
1809 | echo "$as_me:$LINENO: result: no" >&5 |
1810 | echo "${ECHO_T}no" >&6 | |
1811 | SET_MAKE="MAKE=${MAKE-make}" | |
33590f13 BK |
1812 | fi |
1813 | ||
ff66d28f PE |
1814 | rm -rf .tst 2>/dev/null |
1815 | mkdir .tst 2>/dev/null | |
1816 | if test -d .tst; then | |
1817 | am__leading_dot=. | |
1818 | else | |
1819 | am__leading_dot=_ | |
1820 | fi | |
1821 | rmdir .tst 2>/dev/null | |
33590f13 | 1822 | |
7eaf73d7 | 1823 | # test to see if srcdir already configured |
ff66d28f PE |
1824 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1825 | test -f $srcdir/config.status; then | |
1826 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1827 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1828 | { (exit 1); exit 1; }; } | |
33590f13 BK |
1829 | fi |
1830 | ||
ff66d28f PE |
1831 | # test whether we have cygpath |
1832 | if test -z "$CYGPATH_W"; then | |
1833 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1834 | CYGPATH_W='cygpath -w' | |
1835 | else | |
1836 | CYGPATH_W=echo | |
1837 | fi | |
33590f13 BK |
1838 | fi |
1839 | ||
1840 | ||
ff66d28f | 1841 | # Define the identity of the package. |
fbe057bb | 1842 | PACKAGE='libstdc++' |
ff66d28f | 1843 | VERSION='version-unused' |
b731048b BK |
1844 | |
1845 | ||
ff66d28f | 1846 | # Some tools Automake needs. |
33590f13 | 1847 | |
ff66d28f | 1848 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
33590f13 | 1849 | |
33590f13 | 1850 | |
ff66d28f | 1851 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
33590f13 | 1852 | |
ff66d28f PE |
1853 | |
1854 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1855 | ||
1856 | ||
1857 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1858 | ||
1859 | ||
1860 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1861 | ||
ff66d28f PE |
1862 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1863 | ||
1864 | # Installed binaries are usually stripped using `strip' when the user | |
1865 | # run `make install-strip'. However `strip' might not be the right | |
1866 | # tool to use in cross-compilation environments, therefore Automake | |
1867 | # will honor the `STRIP' environment variable to overrule this program. | |
1868 | if test "$cross_compiling" != no; then | |
1869 | if test -n "$ac_tool_prefix"; then | |
1870 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1871 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1874 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33590f13 | 1876 | else |
ff66d28f PE |
1877 | if test -n "$STRIP"; then |
1878 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33590f13 | 1879 | else |
ff66d28f PE |
1880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1881 | for as_dir in $PATH | |
1882 | do | |
1883 | IFS=$as_save_IFS | |
1884 | test -z "$as_dir" && as_dir=. | |
1885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1887 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1889 | break 2 | |
1890 | fi | |
1891 | done | |
1892 | done | |
1893 | ||
33590f13 BK |
1894 | fi |
1895 | fi | |
ff66d28f PE |
1896 | STRIP=$ac_cv_prog_STRIP |
1897 | if test -n "$STRIP"; then | |
1898 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1899 | echo "${ECHO_T}$STRIP" >&6 | |
33590f13 | 1900 | else |
ff66d28f PE |
1901 | echo "$as_me:$LINENO: result: no" >&5 |
1902 | echo "${ECHO_T}no" >&6 | |
33590f13 BK |
1903 | fi |
1904 | ||
ff66d28f PE |
1905 | fi |
1906 | if test -z "$ac_cv_prog_STRIP"; then | |
1907 | ac_ct_STRIP=$STRIP | |
1908 | # Extract the first word of "strip", so it can be a program name with args. | |
1909 | set dummy strip; ac_word=$2 | |
1910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1912 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33590f13 | 1914 | else |
ff66d28f PE |
1915 | if test -n "$ac_ct_STRIP"; then |
1916 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
33590f13 | 1917 | else |
ff66d28f PE |
1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1919 | for as_dir in $PATH | |
1920 | do | |
1921 | IFS=$as_save_IFS | |
1922 | test -z "$as_dir" && as_dir=. | |
1923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1925 | ac_cv_prog_ac_ct_STRIP="strip" | |
1926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1927 | break 2 | |
b2dad0e3 | 1928 | fi |
ff66d28f PE |
1929 | done |
1930 | done | |
1931 | ||
1932 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
b2dad0e3 BK |
1933 | fi |
1934 | fi | |
ff66d28f PE |
1935 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1936 | if test -n "$ac_ct_STRIP"; then | |
1937 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1938 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
b2dad0e3 | 1939 | else |
ff66d28f PE |
1940 | echo "$as_me:$LINENO: result: no" >&5 |
1941 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
1942 | fi |
1943 | ||
ff66d28f | 1944 | STRIP=$ac_ct_STRIP |
b2dad0e3 | 1945 | else |
ff66d28f | 1946 | STRIP="$ac_cv_prog_STRIP" |
b2dad0e3 | 1947 | fi |
ff66d28f | 1948 | |
b2dad0e3 | 1949 | fi |
ff66d28f | 1950 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
b2dad0e3 | 1951 | |
ff66d28f PE |
1952 | # We need awk for the "check" target. The system "awk" is bad on |
1953 | # some platforms. | |
a60945f8 PC |
1954 | # Always define AMTAR for backward compatibility. |
1955 | ||
1956 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1957 | ||
1958 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1959 | ||
1960 | ||
b2dad0e3 | 1961 | |
b2dad0e3 | 1962 | |
b2dad0e3 | 1963 | |
ff66d28f | 1964 | |
ff66d28f PE |
1965 | # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets |
1966 | # up critical shell variables. | |
1967 | ||
82ba99d5 PE |
1968 | # Keep these sync'd with the list in Makefile.am. The first provides an |
1969 | # expandable list at autoconf time; the second provides an expandable list | |
1970 | # (i.e., shell variable) at configure time. | |
1971 | ||
1972 | SUBDIRS='include libmath libsupc++ src po testsuite' | |
1973 | ||
ff66d28f PE |
1974 | # These need to be absolute paths, yet at the same time need to |
1975 | # canonicalize only relative paths, because then amd will not unmount | |
1976 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
1977 | glibcxx_builddir=`${PWDCMD-pwd}` | |
1978 | case $srcdir in | |
1979 | \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;; | |
1980 | *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
1981 | esac | |
1982 | toplevel_srcdir=${glibcxx_srcdir}/.. | |
1983 | ||
1984 | ||
1985 | ||
1986 | ||
1987 | # We use these options to decide which functions to include. They are | |
1988 | # set from the top level. | |
1989 | ||
1990 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
1991 | if test "${with_target_subdir+set}" = set; then | |
1992 | withval="$with_target_subdir" | |
1993 | ||
1994 | fi; | |
1995 | ||
1996 | ||
1997 | # Check whether --with-cross-host or --without-cross-host was given. | |
1998 | if test "${with_cross_host+set}" = set; then | |
1999 | withval="$with_cross_host" | |
2000 | ||
2001 | fi; | |
2002 | ||
2003 | ||
2004 | # Check whether --with-newlib or --without-newlib was given. | |
2005 | if test "${with_newlib+set}" = set; then | |
2006 | withval="$with_newlib" | |
2007 | ||
2008 | fi; | |
2009 | ||
f6dda651 PE |
2010 | # We're almost certainly being configured before anything else which uses |
2011 | # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that | |
2012 | # we not cache the value of CXX that we "discover" here, because it's set | |
2013 | # to something unique for us and libjava. Other target libraries need to | |
2014 | # find CXX for themselves. We yank the rug out from under the normal AC_* | |
2015 | # process by sneakily renaming the cache variable. This also lets us debug | |
2016 | # the value of "our" CXX in postmortems. | |
2017 | # | |
2018 | # We must also force CXX to /not/ be a precious variable, otherwise the | |
2019 | # wrong (non-multilib-adjusted) value will be used in multilibs. This | |
2020 | # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side | |
2021 | # effect, CXXFLAGS is no longer automagically subst'd, so we have to do | |
2022 | # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS. | |
2023 | # | |
2024 | # -fno-builtin must be present here so that a non-conflicting form of | |
2025 | # std::exit can be guessed by AC_PROG_CXX, and used in later tests. | |
2026 | ||
2027 | ||
2028 | ||
2029 | ||
2030 | save_CXXFLAGS="$CXXFLAGS" | |
2031 | CXXFLAGS="$CXXFLAGS -fno-builtin" | |
ff66d28f PE |
2032 | ac_ext=c |
2033 | ac_cpp='$CPP $CPPFLAGS' | |
2034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2037 | if test -n "$ac_tool_prefix"; then | |
2038 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2039 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2040 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2041 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2042 | if test "${ac_cv_prog_CC+set}" = set; then | |
2043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2044 | else |
ff66d28f PE |
2045 | if test -n "$CC"; then |
2046 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2047 | else |
ff66d28f PE |
2048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2049 | for as_dir in $PATH | |
2050 | do | |
2051 | IFS=$as_save_IFS | |
2052 | test -z "$as_dir" && as_dir=. | |
2053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2054 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2055 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2056 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2057 | break 2 | |
2058 | fi | |
2059 | done | |
2060 | done | |
2061 | ||
b2dad0e3 BK |
2062 | fi |
2063 | fi | |
ff66d28f PE |
2064 | CC=$ac_cv_prog_CC |
2065 | if test -n "$CC"; then | |
2066 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2067 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2068 | else |
ff66d28f PE |
2069 | echo "$as_me:$LINENO: result: no" >&5 |
2070 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2071 | fi |
2072 | ||
ff66d28f PE |
2073 | fi |
2074 | if test -z "$ac_cv_prog_CC"; then | |
2075 | ac_ct_CC=$CC | |
2076 | # Extract the first word of "gcc", so it can be a program name with args. | |
2077 | set dummy gcc; ac_word=$2 | |
2078 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2080 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2082 | else |
ff66d28f PE |
2083 | if test -n "$ac_ct_CC"; then |
2084 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 2085 | else |
ff66d28f PE |
2086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2087 | for as_dir in $PATH | |
2088 | do | |
2089 | IFS=$as_save_IFS | |
2090 | test -z "$as_dir" && as_dir=. | |
2091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2092 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2093 | ac_cv_prog_ac_ct_CC="gcc" | |
2094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2095 | break 2 | |
2096 | fi | |
2097 | done | |
2098 | done | |
2099 | ||
b2dad0e3 BK |
2100 | fi |
2101 | fi | |
ff66d28f PE |
2102 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2103 | if test -n "$ac_ct_CC"; then | |
2104 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2105 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b2dad0e3 | 2106 | else |
ff66d28f PE |
2107 | echo "$as_me:$LINENO: result: no" >&5 |
2108 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 2109 | fi |
b2dad0e3 | 2110 | |
ff66d28f PE |
2111 | CC=$ac_ct_CC |
2112 | else | |
2113 | CC="$ac_cv_prog_CC" | |
b2dad0e3 BK |
2114 | fi |
2115 | ||
ff66d28f PE |
2116 | if test -z "$CC"; then |
2117 | if test -n "$ac_tool_prefix"; then | |
2118 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2119 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2122 | if test "${ac_cv_prog_CC+set}" = set; then | |
2123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2124 | else | |
2125 | if test -n "$CC"; then | |
2126 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2127 | else | |
2128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2129 | for as_dir in $PATH | |
2130 | do | |
2131 | IFS=$as_save_IFS | |
2132 | test -z "$as_dir" && as_dir=. | |
2133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2135 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2137 | break 2 | |
b2dad0e3 | 2138 | fi |
ff66d28f PE |
2139 | done |
2140 | done | |
93b85586 | 2141 | |
ff66d28f PE |
2142 | fi |
2143 | fi | |
2144 | CC=$ac_cv_prog_CC | |
2145 | if test -n "$CC"; then | |
2146 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2147 | echo "${ECHO_T}$CC" >&6 | |
974e336b | 2148 | else |
ff66d28f PE |
2149 | echo "$as_me:$LINENO: result: no" >&5 |
2150 | echo "${ECHO_T}no" >&6 | |
2151 | fi | |
974e336b | 2152 | |
974e336b | 2153 | fi |
ff66d28f PE |
2154 | if test -z "$ac_cv_prog_CC"; then |
2155 | ac_ct_CC=$CC | |
2156 | # Extract the first word of "cc", so it can be a program name with args. | |
2157 | set dummy cc; ac_word=$2 | |
2158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2160 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2162 | else | |
2163 | if test -n "$ac_ct_CC"; then | |
2164 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2165 | else | |
2166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2167 | for as_dir in $PATH | |
2168 | do | |
2169 | IFS=$as_save_IFS | |
2170 | test -z "$as_dir" && as_dir=. | |
2171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2173 | ac_cv_prog_ac_ct_CC="cc" | |
2174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2175 | break 2 | |
2176 | fi | |
2177 | done | |
2178 | done | |
33590f13 | 2179 | |
974e336b | 2180 | fi |
ff66d28f PE |
2181 | fi |
2182 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2183 | if test -n "$ac_ct_CC"; then | |
2184 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2185 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
33590f13 | 2186 | else |
ff66d28f PE |
2187 | echo "$as_me:$LINENO: result: no" >&5 |
2188 | echo "${ECHO_T}no" >&6 | |
33590f13 BK |
2189 | fi |
2190 | ||
ff66d28f PE |
2191 | CC=$ac_ct_CC |
2192 | else | |
2193 | CC="$ac_cv_prog_CC" | |
2194 | fi | |
33590f13 | 2195 | |
ff66d28f PE |
2196 | fi |
2197 | if test -z "$CC"; then | |
2198 | # Extract the first word of "cc", so it can be a program name with args. | |
2199 | set dummy cc; ac_word=$2 | |
2200 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2202 | if test "${ac_cv_prog_CC+set}" = set; then | |
2203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2204 | else |
ff66d28f PE |
2205 | if test -n "$CC"; then |
2206 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2207 | else |
ff66d28f PE |
2208 | ac_prog_rejected=no |
2209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2210 | for as_dir in $PATH | |
2211 | do | |
2212 | IFS=$as_save_IFS | |
2213 | test -z "$as_dir" && as_dir=. | |
2214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2216 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2217 | ac_prog_rejected=yes | |
2218 | continue | |
2219 | fi | |
2220 | ac_cv_prog_CC="cc" | |
2221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2222 | break 2 | |
2223 | fi | |
2224 | done | |
2225 | done | |
2226 | ||
2227 | if test $ac_prog_rejected = yes; then | |
2228 | # We found a bogon in the path, so make sure we never use it. | |
2229 | set dummy $ac_cv_prog_CC | |
2230 | shift | |
2231 | if test $# != 0; then | |
2232 | # We chose a different compiler from the bogus one. | |
2233 | # However, it has the same basename, so the bogon will be chosen | |
2234 | # first if we set CC to just the basename; use the full file name. | |
2235 | shift | |
2236 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2237 | fi | |
b2dad0e3 BK |
2238 | fi |
2239 | fi | |
ff66d28f PE |
2240 | fi |
2241 | CC=$ac_cv_prog_CC | |
2242 | if test -n "$CC"; then | |
2243 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2244 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2245 | else |
ff66d28f PE |
2246 | echo "$as_me:$LINENO: result: no" >&5 |
2247 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2248 | fi |
2249 | ||
ff66d28f PE |
2250 | fi |
2251 | if test -z "$CC"; then | |
2252 | if test -n "$ac_tool_prefix"; then | |
2253 | for ac_prog in cl | |
2254 | do | |
2255 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2256 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2257 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2259 | if test "${ac_cv_prog_CC+set}" = set; then | |
2260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2261 | else |
ff66d28f PE |
2262 | if test -n "$CC"; then |
2263 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2264 | else |
ff66d28f PE |
2265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2266 | for as_dir in $PATH | |
2267 | do | |
2268 | IFS=$as_save_IFS | |
2269 | test -z "$as_dir" && as_dir=. | |
2270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2271 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2272 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2274 | break 2 | |
2275 | fi | |
2276 | done | |
2277 | done | |
2278 | ||
b2dad0e3 BK |
2279 | fi |
2280 | fi | |
ff66d28f PE |
2281 | CC=$ac_cv_prog_CC |
2282 | if test -n "$CC"; then | |
2283 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2284 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2285 | else |
ff66d28f PE |
2286 | echo "$as_me:$LINENO: result: no" >&5 |
2287 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2288 | fi |
2289 | ||
ff66d28f PE |
2290 | test -n "$CC" && break |
2291 | done | |
2292 | fi | |
2293 | if test -z "$CC"; then | |
2294 | ac_ct_CC=$CC | |
2295 | for ac_prog in cl | |
2296 | do | |
2297 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2298 | set dummy $ac_prog; ac_word=$2 | |
2299 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2301 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2303 | else |
ff66d28f PE |
2304 | if test -n "$ac_ct_CC"; then |
2305 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 2306 | else |
ff66d28f PE |
2307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2308 | for as_dir in $PATH | |
2309 | do | |
2310 | IFS=$as_save_IFS | |
2311 | test -z "$as_dir" && as_dir=. | |
2312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2313 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2314 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2316 | break 2 | |
2317 | fi | |
2318 | done | |
2319 | done | |
2320 | ||
b2dad0e3 BK |
2321 | fi |
2322 | fi | |
ff66d28f PE |
2323 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2324 | if test -n "$ac_ct_CC"; then | |
2325 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2326 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b2dad0e3 | 2327 | else |
ff66d28f PE |
2328 | echo "$as_me:$LINENO: result: no" >&5 |
2329 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2330 | fi |
2331 | ||
ff66d28f PE |
2332 | test -n "$ac_ct_CC" && break |
2333 | done | |
b2dad0e3 | 2334 | |
ff66d28f PE |
2335 | CC=$ac_ct_CC |
2336 | fi | |
2337 | ||
2338 | fi | |
2339 | ||
2340 | ||
2341 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2342 | See \`config.log' for more details." >&5 | |
2343 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2344 | See \`config.log' for more details." >&2;} | |
2345 | { (exit 1); exit 1; }; } | |
2346 | ||
2347 | # Provide some information about the compiler. | |
2348 | echo "$as_me:$LINENO:" \ | |
2349 | "checking for C compiler version" >&5 | |
2350 | ac_compiler=`set X $ac_compile; echo $2` | |
2351 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2352 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2353 | ac_status=$? | |
2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2355 | (exit $ac_status); } | |
2356 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2357 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2358 | ac_status=$? | |
2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2360 | (exit $ac_status); } | |
2361 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2362 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2363 | ac_status=$? | |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2365 | (exit $ac_status); } | |
2366 | ||
2367 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2368 | /* confdefs.h. */ |
2369 | _ACEOF | |
2370 | cat confdefs.h >>conftest.$ac_ext | |
2371 | cat >>conftest.$ac_ext <<_ACEOF | |
2372 | /* end confdefs.h. */ | |
2373 | ||
72730fdb DJ |
2374 | int |
2375 | main () | |
2376 | { | |
2377 | ||
2378 | ; | |
2379 | return 0; | |
2380 | } | |
2381 | _ACEOF | |
2382 | # FIXME: Cleanup? | |
2383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2384 | (eval $ac_link) 2>&5 | |
2385 | ac_status=$? | |
2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2387 | (exit $ac_status); }; then | |
2388 | gcc_no_link=no | |
2389 | else | |
2390 | gcc_no_link=yes | |
2391 | fi | |
2392 | ||
2393 | if test x$gcc_no_link = xyes; then | |
2394 | # Setting cross_compile will disable run tests; it will | |
2395 | # also disable AC_CHECK_FILE but that's generally | |
2396 | # correct if we can't link. | |
2397 | cross_compiling=yes | |
2398 | EXEEXT= | |
2399 | else | |
2400 | cat >conftest.$ac_ext <<_ACEOF | |
72730fdb DJ |
2401 | /* confdefs.h. */ |
2402 | _ACEOF | |
2403 | cat confdefs.h >>conftest.$ac_ext | |
2404 | cat >>conftest.$ac_ext <<_ACEOF | |
2405 | /* end confdefs.h. */ | |
2406 | ||
ff66d28f PE |
2407 | int |
2408 | main () | |
2409 | { | |
2410 | ||
2411 | ; | |
2412 | return 0; | |
2413 | } | |
2414 | _ACEOF | |
2415 | ac_clean_files_save=$ac_clean_files | |
2416 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2417 | # Try to create an executable without -o first, disregard a.out. | |
2418 | # It will help us diagnose broken compilers, and finding out an intuition | |
2419 | # of exeext. | |
ec2075e9 BK |
2420 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2421 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ff66d28f PE |
2422 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2423 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2424 | (eval $ac_link_default) 2>&5 | |
2425 | ac_status=$? | |
2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2427 | (exit $ac_status); }; then | |
2428 | # Find the output, starting from the most likely. This scheme is | |
2429 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2430 | # resort. | |
2431 | ||
2432 | # Be careful to initialize this variable, since it used to be cached. | |
2433 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2434 | ac_cv_exeext= | |
2435 | # b.out is created by i960 compilers. | |
2436 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2437 | do | |
2438 | test -f "$ac_file" || continue | |
2439 | case $ac_file in | |
2440 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ec2075e9 | 2441 | ;; |
ff66d28f | 2442 | conftest.$ac_ext ) |
ec2075e9 BK |
2443 | # This is the source file. |
2444 | ;; | |
ff66d28f | 2445 | [ab].out ) |
ec2075e9 BK |
2446 | # We found the default executable, but exeext='' is most |
2447 | # certainly right. | |
2448 | break;; | |
ff66d28f | 2449 | *.* ) |
ec2075e9 BK |
2450 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2451 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2452 | # but it would be cool to find out if it's true. Does anybody | |
2453 | # maintain Libtool? --akim. | |
2454 | export ac_cv_exeext | |
2455 | break;; | |
ff66d28f | 2456 | * ) |
ec2075e9 | 2457 | break;; |
ff66d28f PE |
2458 | esac |
2459 | done | |
b2dad0e3 | 2460 | else |
ff66d28f PE |
2461 | echo "$as_me: failed program was:" >&5 |
2462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2463 | ||
2464 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2465 | See \`config.log' for more details." >&5 | |
2466 | echo "$as_me: error: C compiler cannot create executables | |
2467 | See \`config.log' for more details." >&2;} | |
2468 | { (exit 77); exit 77; }; } | |
2469 | fi | |
2470 | ||
2471 | ac_exeext=$ac_cv_exeext | |
2472 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2473 | echo "${ECHO_T}$ac_file" >&6 | |
2474 | ||
2475 | # Check the compiler produces executables we can run. If not, either | |
2476 | # the compiler is broken, or we cross compile. | |
2477 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2478 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2479 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2480 | # If not cross compiling, check that we can run a simple program. | |
2481 | if test "$cross_compiling" != yes; then | |
2482 | if { ac_try='./$ac_file' | |
2483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2484 | (eval $ac_try) 2>&5 | |
2485 | ac_status=$? | |
2486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2487 | (exit $ac_status); }; }; then | |
2488 | cross_compiling=no | |
2489 | else | |
2490 | if test "$cross_compiling" = maybe; then | |
2491 | cross_compiling=yes | |
2492 | else | |
2493 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2494 | If you meant to cross compile, use \`--host'. | |
2495 | See \`config.log' for more details." >&5 | |
2496 | echo "$as_me: error: cannot run C compiled programs. | |
2497 | If you meant to cross compile, use \`--host'. | |
2498 | See \`config.log' for more details." >&2;} | |
2499 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 2500 | fi |
ff66d28f | 2501 | fi |
b2dad0e3 | 2502 | fi |
ff66d28f PE |
2503 | echo "$as_me:$LINENO: result: yes" >&5 |
2504 | echo "${ECHO_T}yes" >&6 | |
2505 | ||
2506 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2507 | ac_clean_files=$ac_clean_files_save | |
2508 | # Check the compiler produces executables we can run. If not, either | |
2509 | # the compiler is broken, or we cross compile. | |
2510 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2511 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2512 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2513 | echo "${ECHO_T}$cross_compiling" >&6 | |
2514 | ||
2515 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2516 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2518 | (eval $ac_link) 2>&5 | |
2519 | ac_status=$? | |
2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2521 | (exit $ac_status); }; then | |
2522 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2523 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2524 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2525 | # `rm'. | |
2526 | for ac_file in conftest.exe conftest conftest.*; do | |
2527 | test -f "$ac_file" || continue | |
2528 | case $ac_file in | |
2529 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2530 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ec2075e9 BK |
2531 | export ac_cv_exeext |
2532 | break;; | |
ff66d28f PE |
2533 | * ) break;; |
2534 | esac | |
2535 | done | |
b2dad0e3 | 2536 | else |
ff66d28f PE |
2537 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2538 | See \`config.log' for more details." >&5 | |
2539 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2540 | See \`config.log' for more details." >&2;} | |
2541 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
2542 | fi |
2543 | ||
ff66d28f PE |
2544 | rm -f conftest$ac_cv_exeext |
2545 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2546 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2547 | ||
2548 | rm -f conftest.$ac_ext | |
2549 | EXEEXT=$ac_cv_exeext | |
2550 | ac_exeext=$EXEEXT | |
72730fdb | 2551 | fi |
ff66d28f PE |
2552 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2553 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2554 | if test "${ac_cv_objext+set}" = set; then | |
2555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2556 | else | |
2557 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2558 | /* confdefs.h. */ |
2559 | _ACEOF | |
2560 | cat confdefs.h >>conftest.$ac_ext | |
2561 | cat >>conftest.$ac_ext <<_ACEOF | |
2562 | /* end confdefs.h. */ | |
2563 | ||
2564 | int | |
2565 | main () | |
2566 | { | |
2567 | ||
2568 | ; | |
2569 | return 0; | |
2570 | } | |
2571 | _ACEOF | |
2572 | rm -f conftest.o conftest.obj | |
2573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2574 | (eval $ac_compile) 2>&5 | |
2575 | ac_status=$? | |
2576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2577 | (exit $ac_status); }; then | |
2578 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2579 | case $ac_file in | |
2580 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2581 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2582 | break;; | |
2583 | esac | |
2584 | done | |
b2dad0e3 | 2585 | else |
ff66d28f PE |
2586 | echo "$as_me: failed program was:" >&5 |
2587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2588 | ||
2589 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2590 | See \`config.log' for more details." >&5 | |
2591 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2592 | See \`config.log' for more details." >&2;} | |
2593 | { (exit 1); exit 1; }; } | |
46840bcd | 2594 | fi |
ff66d28f PE |
2595 | |
2596 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
46840bcd | 2597 | fi |
ff66d28f PE |
2598 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2599 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2600 | OBJEXT=$ac_cv_objext | |
2601 | ac_objext=$OBJEXT | |
2602 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2603 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2604 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2606 | else | |
2607 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2608 | /* confdefs.h. */ |
2609 | _ACEOF | |
2610 | cat confdefs.h >>conftest.$ac_ext | |
2611 | cat >>conftest.$ac_ext <<_ACEOF | |
2612 | /* end confdefs.h. */ | |
46840bcd | 2613 | |
ff66d28f PE |
2614 | int |
2615 | main () | |
2616 | { | |
2617 | #ifndef __GNUC__ | |
2618 | choke me | |
2619 | #endif | |
2620 | ||
2621 | ; | |
2622 | return 0; | |
2623 | } | |
2624 | _ACEOF | |
2625 | rm -f conftest.$ac_objext | |
2626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2627 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2628 | ac_status=$? |
ec2075e9 BK |
2629 | grep -v '^ *+' conftest.er1 >conftest.err |
2630 | rm -f conftest.er1 | |
2631 | cat conftest.err >&5 | |
ff66d28f PE |
2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2633 | (exit $ac_status); } && | |
780028b6 BK |
2634 | { ac_try='test -z "$ac_c_werror_flag" |
2635 | || test ! -s conftest.err' | |
ec2075e9 BK |
2636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2637 | (eval $ac_try) 2>&5 | |
2638 | ac_status=$? | |
2639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2640 | (exit $ac_status); }; } && | |
2641 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2643 | (eval $ac_try) 2>&5 | |
2644 | ac_status=$? | |
2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2646 | (exit $ac_status); }; }; then | |
2647 | ac_compiler_gnu=yes | |
2648 | else | |
2649 | echo "$as_me: failed program was:" >&5 | |
2650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2651 | ||
2652 | ac_compiler_gnu=no | |
2653 | fi | |
ec2075e9 | 2654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2655 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2656 | ||
2657 | fi | |
2658 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2659 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2660 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2661 | ac_test_CFLAGS=${CFLAGS+set} | |
2662 | ac_save_CFLAGS=$CFLAGS | |
2663 | CFLAGS="-g" | |
2664 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2665 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2666 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2668 | else | |
2669 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2670 | /* confdefs.h. */ |
2671 | _ACEOF | |
2672 | cat confdefs.h >>conftest.$ac_ext | |
2673 | cat >>conftest.$ac_ext <<_ACEOF | |
2674 | /* end confdefs.h. */ | |
2675 | ||
2676 | int | |
2677 | main () | |
2678 | { | |
2679 | ||
2680 | ; | |
2681 | return 0; | |
2682 | } | |
2683 | _ACEOF | |
2684 | rm -f conftest.$ac_objext | |
2685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2686 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2687 | ac_status=$? |
ec2075e9 BK |
2688 | grep -v '^ *+' conftest.er1 >conftest.err |
2689 | rm -f conftest.er1 | |
2690 | cat conftest.err >&5 | |
ff66d28f PE |
2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2692 | (exit $ac_status); } && | |
780028b6 BK |
2693 | { ac_try='test -z "$ac_c_werror_flag" |
2694 | || test ! -s conftest.err' | |
ec2075e9 BK |
2695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2696 | (eval $ac_try) 2>&5 | |
2697 | ac_status=$? | |
2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2699 | (exit $ac_status); }; } && | |
2700 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2702 | (eval $ac_try) 2>&5 | |
2703 | ac_status=$? | |
2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2705 | (exit $ac_status); }; }; then | |
2706 | ac_cv_prog_cc_g=yes | |
b2dad0e3 | 2707 | else |
ff66d28f PE |
2708 | echo "$as_me: failed program was:" >&5 |
2709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 2710 | |
ff66d28f | 2711 | ac_cv_prog_cc_g=no |
b2dad0e3 | 2712 | fi |
ec2075e9 | 2713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2714 | fi |
2715 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2716 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2717 | if test "$ac_test_CFLAGS" = set; then | |
2718 | CFLAGS=$ac_save_CFLAGS | |
2719 | elif test $ac_cv_prog_cc_g = yes; then | |
2720 | if test "$GCC" = yes; then | |
2721 | CFLAGS="-g -O2" | |
b2dad0e3 | 2722 | else |
ff66d28f | 2723 | CFLAGS="-g" |
b2dad0e3 | 2724 | fi |
ff66d28f PE |
2725 | else |
2726 | if test "$GCC" = yes; then | |
2727 | CFLAGS="-O2" | |
2728 | else | |
2729 | CFLAGS= | |
2730 | fi | |
2731 | fi | |
2732 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2733 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2734 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2736 | else | |
2737 | ac_cv_prog_cc_stdc=no | |
2738 | ac_save_CC=$CC | |
2739 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2740 | /* confdefs.h. */ |
2741 | _ACEOF | |
2742 | cat confdefs.h >>conftest.$ac_ext | |
2743 | cat >>conftest.$ac_ext <<_ACEOF | |
2744 | /* end confdefs.h. */ | |
2745 | #include <stdarg.h> | |
2746 | #include <stdio.h> | |
2747 | #include <sys/types.h> | |
2748 | #include <sys/stat.h> | |
2749 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2750 | struct buf { int x; }; | |
2751 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2752 | static char *e (p, i) | |
2753 | char **p; | |
2754 | int i; | |
2755 | { | |
2756 | return p[i]; | |
2757 | } | |
2758 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2759 | { | |
2760 | char *s; | |
2761 | va_list v; | |
2762 | va_start (v,p); | |
2763 | s = g (p, va_arg (v,int)); | |
2764 | va_end (v); | |
2765 | return s; | |
2766 | } | |
ec2075e9 BK |
2767 | |
2768 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2769 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2770 | These don't provoke an error unfortunately, instead are silently treated | |
2771 | as 'x'. The following induces an error, until -std1 is added to get | |
2772 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2773 | array size at least. It's necessary to write '\x00'==0 to get something | |
2774 | that's true only with -std1. */ | |
2775 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2776 | ||
ff66d28f PE |
2777 | int test (int i, double x); |
2778 | struct s1 {int (*f) (int a);}; | |
2779 | struct s2 {int (*f) (double a);}; | |
2780 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2781 | int argc; | |
2782 | char **argv; | |
2783 | int | |
2784 | main () | |
2785 | { | |
2786 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2787 | ; | |
2788 | return 0; | |
2789 | } | |
2790 | _ACEOF | |
2791 | # Don't try gcc -ansi; that turns off useful extensions and | |
2792 | # breaks some systems' header files. | |
2793 | # AIX -qlanglvl=ansi | |
2794 | # Ultrix and OSF/1 -std1 | |
2795 | # HP-UX 10.20 and later -Ae | |
2796 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2797 | # SVR4 -Xc -D__EXTENSIONS__ | |
2798 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2799 | do | |
2800 | CC="$ac_save_CC $ac_arg" | |
2801 | rm -f conftest.$ac_objext | |
2802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2803 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2804 | ac_status=$? |
ec2075e9 BK |
2805 | grep -v '^ *+' conftest.er1 >conftest.err |
2806 | rm -f conftest.er1 | |
2807 | cat conftest.err >&5 | |
ff66d28f PE |
2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2809 | (exit $ac_status); } && | |
780028b6 BK |
2810 | { ac_try='test -z "$ac_c_werror_flag" |
2811 | || test ! -s conftest.err' | |
ec2075e9 BK |
2812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2813 | (eval $ac_try) 2>&5 | |
2814 | ac_status=$? | |
2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2816 | (exit $ac_status); }; } && | |
2817 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2819 | (eval $ac_try) 2>&5 | |
2820 | ac_status=$? | |
2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2822 | (exit $ac_status); }; }; then | |
2823 | ac_cv_prog_cc_stdc=$ac_arg | |
2824 | break | |
2825 | else | |
2826 | echo "$as_me: failed program was:" >&5 | |
2827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2828 | ||
b2dad0e3 | 2829 | fi |
ec2075e9 | 2830 | rm -f conftest.err conftest.$ac_objext |
ff66d28f PE |
2831 | done |
2832 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2833 | CC=$ac_save_CC | |
b2dad0e3 | 2834 | |
ff66d28f | 2835 | fi |
b2dad0e3 | 2836 | |
ff66d28f PE |
2837 | case "x$ac_cv_prog_cc_stdc" in |
2838 | x|xno) | |
2839 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2840 | echo "${ECHO_T}none needed" >&6 ;; | |
2841 | *) | |
2842 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2843 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2844 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2845 | esac | |
b2dad0e3 | 2846 | |
ff66d28f PE |
2847 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2848 | # in C++ we need to declare it. In case someone uses the same compiler | |
2849 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2850 | # the declaration of exit, since it's the most demanding environment. | |
2851 | cat >conftest.$ac_ext <<_ACEOF | |
2852 | #ifndef __cplusplus | |
2853 | choke me | |
2854 | #endif | |
2855 | _ACEOF | |
2856 | rm -f conftest.$ac_objext | |
2857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2858 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2859 | ac_status=$? |
ec2075e9 BK |
2860 | grep -v '^ *+' conftest.er1 >conftest.err |
2861 | rm -f conftest.er1 | |
2862 | cat conftest.err >&5 | |
ff66d28f PE |
2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2864 | (exit $ac_status); } && | |
780028b6 BK |
2865 | { ac_try='test -z "$ac_c_werror_flag" |
2866 | || test ! -s conftest.err' | |
ec2075e9 BK |
2867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2868 | (eval $ac_try) 2>&5 | |
2869 | ac_status=$? | |
2870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2871 | (exit $ac_status); }; } && | |
2872 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2874 | (eval $ac_try) 2>&5 | |
2875 | ac_status=$? | |
2876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2877 | (exit $ac_status); }; }; then | |
2878 | for ac_declaration in \ | |
ec2075e9 | 2879 | '' \ |
ff66d28f PE |
2880 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2881 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2882 | 'extern "C" void exit (int) throw ();' \ | |
2883 | 'extern "C" void exit (int);' \ | |
2884 | 'void exit (int);' | |
2885 | do | |
2886 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2887 | /* confdefs.h. */ |
2888 | _ACEOF | |
2889 | cat confdefs.h >>conftest.$ac_ext | |
2890 | cat >>conftest.$ac_ext <<_ACEOF | |
2891 | /* end confdefs.h. */ | |
158960ba | 2892 | $ac_declaration |
ec2075e9 | 2893 | #include <stdlib.h> |
ff66d28f PE |
2894 | int |
2895 | main () | |
2896 | { | |
2897 | exit (42); | |
2898 | ; | |
2899 | return 0; | |
2900 | } | |
2901 | _ACEOF | |
2902 | rm -f conftest.$ac_objext | |
2903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2904 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2905 | ac_status=$? |
ec2075e9 BK |
2906 | grep -v '^ *+' conftest.er1 >conftest.err |
2907 | rm -f conftest.er1 | |
2908 | cat conftest.err >&5 | |
ff66d28f PE |
2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2910 | (exit $ac_status); } && | |
780028b6 BK |
2911 | { ac_try='test -z "$ac_c_werror_flag" |
2912 | || test ! -s conftest.err' | |
ec2075e9 BK |
2913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2914 | (eval $ac_try) 2>&5 | |
2915 | ac_status=$? | |
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2917 | (exit $ac_status); }; } && | |
2918 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2920 | (eval $ac_try) 2>&5 | |
2921 | ac_status=$? | |
2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2923 | (exit $ac_status); }; }; then | |
2924 | : | |
2925 | else | |
2926 | echo "$as_me: failed program was:" >&5 | |
2927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 2928 | |
ff66d28f PE |
2929 | continue |
2930 | fi | |
ec2075e9 | 2931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f | 2932 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
2933 | /* confdefs.h. */ |
2934 | _ACEOF | |
2935 | cat confdefs.h >>conftest.$ac_ext | |
2936 | cat >>conftest.$ac_ext <<_ACEOF | |
2937 | /* end confdefs.h. */ | |
2938 | $ac_declaration | |
2939 | int | |
2940 | main () | |
2941 | { | |
2942 | exit (42); | |
2943 | ; | |
2944 | return 0; | |
2945 | } | |
2946 | _ACEOF | |
2947 | rm -f conftest.$ac_objext | |
2948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2949 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2950 | ac_status=$? |
ec2075e9 BK |
2951 | grep -v '^ *+' conftest.er1 >conftest.err |
2952 | rm -f conftest.er1 | |
2953 | cat conftest.err >&5 | |
ff66d28f PE |
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2955 | (exit $ac_status); } && | |
780028b6 BK |
2956 | { ac_try='test -z "$ac_c_werror_flag" |
2957 | || test ! -s conftest.err' | |
ec2075e9 BK |
2958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2959 | (eval $ac_try) 2>&5 | |
2960 | ac_status=$? | |
2961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2962 | (exit $ac_status); }; } && | |
2963 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2965 | (eval $ac_try) 2>&5 | |
2966 | ac_status=$? | |
2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2968 | (exit $ac_status); }; }; then | |
2969 | break | |
2970 | else | |
2971 | echo "$as_me: failed program was:" >&5 | |
2972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2973 | ||
2974 | fi | |
ec2075e9 | 2975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2976 | done |
2977 | rm -f conftest* | |
2978 | if test -n "$ac_declaration"; then | |
2979 | echo '#ifdef __cplusplus' >>confdefs.h | |
2980 | echo $ac_declaration >>confdefs.h | |
2981 | echo '#endif' >>confdefs.h | |
2982 | fi | |
b2dad0e3 | 2983 | |
b2dad0e3 | 2984 | else |
ff66d28f PE |
2985 | echo "$as_me: failed program was:" >&5 |
2986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2987 | ||
b2dad0e3 | 2988 | fi |
ec2075e9 | 2989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2990 | ac_ext=c |
2991 | ac_cpp='$CPP $CPPFLAGS' | |
2992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2995 | ||
ff66d28f PE |
2996 | ac_ext=cc |
2997 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2998 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2999 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3000 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3001 | if test -n "$ac_tool_prefix"; then | |
3002 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3003 | do | |
3004 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3005 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3006 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3008 | if test "${glibcxx_cv_prog_CXX+set}" = set; then | |
3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3010 | else | |
3011 | if test -n "$CXX"; then | |
3012 | glibcxx_cv_prog_CXX="$CXX" # Let the user override the test. | |
3013 | else | |
3014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3015 | for as_dir in $PATH | |
3016 | do | |
3017 | IFS=$as_save_IFS | |
3018 | test -z "$as_dir" && as_dir=. | |
3019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3020 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3021 | glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3022 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3023 | break 2 | |
3024 | fi | |
3025 | done | |
3026 | done | |
3027 | ||
3028 | fi | |
3029 | fi | |
3030 | CXX=$glibcxx_cv_prog_CXX | |
3031 | if test -n "$CXX"; then | |
3032 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
3033 | echo "${ECHO_T}$CXX" >&6 | |
b2dad0e3 | 3034 | else |
ff66d28f PE |
3035 | echo "$as_me:$LINENO: result: no" >&5 |
3036 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 3037 | fi |
b2dad0e3 | 3038 | |
ff66d28f PE |
3039 | test -n "$CXX" && break |
3040 | done | |
3041 | fi | |
3042 | if test -z "$CXX"; then | |
3043 | ac_ct_CXX=$CXX | |
3044 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3045 | do | |
3046 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3047 | set dummy $ac_prog; ac_word=$2 | |
3048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3050 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3052 | else | |
3053 | if test -n "$ac_ct_CXX"; then | |
3054 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3055 | else | |
3056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3057 | for as_dir in $PATH | |
3058 | do | |
3059 | IFS=$as_save_IFS | |
3060 | test -z "$as_dir" && as_dir=. | |
3061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3063 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3065 | break 2 | |
b2dad0e3 | 3066 | fi |
ff66d28f PE |
3067 | done |
3068 | done | |
3069 | ||
b2dad0e3 | 3070 | fi |
ff66d28f PE |
3071 | fi |
3072 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3073 | if test -n "$ac_ct_CXX"; then | |
3074 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3075 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
3076 | else | |
3077 | echo "$as_me:$LINENO: result: no" >&5 | |
3078 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
3079 | fi |
3080 | ||
ff66d28f PE |
3081 | test -n "$ac_ct_CXX" && break |
3082 | done | |
3083 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
3084 | ||
3085 | CXX=$ac_ct_CXX | |
3086 | fi | |
3087 | ||
3088 | ||
3089 | # Provide some information about the compiler. | |
3090 | echo "$as_me:$LINENO:" \ | |
3091 | "checking for C++ compiler version" >&5 | |
3092 | ac_compiler=`set X $ac_compile; echo $2` | |
3093 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3094 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3095 | ac_status=$? | |
3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3097 | (exit $ac_status); } | |
3098 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3099 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3100 | ac_status=$? | |
3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3102 | (exit $ac_status); } | |
3103 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3104 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3105 | ac_status=$? | |
3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3107 | (exit $ac_status); } | |
3108 | ||
3109 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3110 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3111 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3113 | else | |
3114 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3115 | /* confdefs.h. */ |
3116 | _ACEOF | |
3117 | cat confdefs.h >>conftest.$ac_ext | |
3118 | cat >>conftest.$ac_ext <<_ACEOF | |
3119 | /* end confdefs.h. */ | |
3120 | ||
3121 | int | |
3122 | main () | |
3123 | { | |
3124 | #ifndef __GNUC__ | |
3125 | choke me | |
3126 | #endif | |
3127 | ||
3128 | ; | |
3129 | return 0; | |
3130 | } | |
3131 | _ACEOF | |
3132 | rm -f conftest.$ac_objext | |
3133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3134 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3135 | ac_status=$? |
ec2075e9 BK |
3136 | grep -v '^ *+' conftest.er1 >conftest.err |
3137 | rm -f conftest.er1 | |
3138 | cat conftest.err >&5 | |
ff66d28f PE |
3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3140 | (exit $ac_status); } && | |
780028b6 BK |
3141 | { ac_try='test -z "$ac_cxx_werror_flag" |
3142 | || test ! -s conftest.err' | |
ec2075e9 BK |
3143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3144 | (eval $ac_try) 2>&5 | |
3145 | ac_status=$? | |
3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3147 | (exit $ac_status); }; } && | |
3148 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3150 | (eval $ac_try) 2>&5 | |
3151 | ac_status=$? | |
3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3153 | (exit $ac_status); }; }; then | |
3154 | ac_compiler_gnu=yes | |
3155 | else | |
3156 | echo "$as_me: failed program was:" >&5 | |
3157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3158 | ||
3159 | ac_compiler_gnu=no | |
3160 | fi | |
ec2075e9 | 3161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3162 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3163 | ||
3164 | fi | |
3165 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3166 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3167 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3168 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3169 | ac_save_CXXFLAGS=$CXXFLAGS | |
3170 | CXXFLAGS="-g" | |
3171 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3172 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3173 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3175 | else | |
3176 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3177 | /* confdefs.h. */ |
3178 | _ACEOF | |
3179 | cat confdefs.h >>conftest.$ac_ext | |
3180 | cat >>conftest.$ac_ext <<_ACEOF | |
3181 | /* end confdefs.h. */ | |
3182 | ||
3183 | int | |
3184 | main () | |
3185 | { | |
b2dad0e3 | 3186 | |
ff66d28f PE |
3187 | ; |
3188 | return 0; | |
3189 | } | |
3190 | _ACEOF | |
3191 | rm -f conftest.$ac_objext | |
3192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3193 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3194 | ac_status=$? |
ec2075e9 BK |
3195 | grep -v '^ *+' conftest.er1 >conftest.err |
3196 | rm -f conftest.er1 | |
3197 | cat conftest.err >&5 | |
ff66d28f PE |
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3199 | (exit $ac_status); } && | |
780028b6 BK |
3200 | { ac_try='test -z "$ac_cxx_werror_flag" |
3201 | || test ! -s conftest.err' | |
ec2075e9 BK |
3202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3203 | (eval $ac_try) 2>&5 | |
3204 | ac_status=$? | |
3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3206 | (exit $ac_status); }; } && | |
3207 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3209 | (eval $ac_try) 2>&5 | |
3210 | ac_status=$? | |
3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3212 | (exit $ac_status); }; }; then | |
3213 | ac_cv_prog_cxx_g=yes | |
3214 | else | |
3215 | echo "$as_me: failed program was:" >&5 | |
3216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3217 | ||
3218 | ac_cv_prog_cxx_g=no | |
3219 | fi | |
ec2075e9 | 3220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3221 | fi |
3222 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3223 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3224 | if test "$ac_test_CXXFLAGS" = set; then | |
3225 | CXXFLAGS=$ac_save_CXXFLAGS | |
3226 | elif test $ac_cv_prog_cxx_g = yes; then | |
3227 | if test "$GXX" = yes; then | |
3228 | CXXFLAGS="-g -O2" | |
3229 | else | |
3230 | CXXFLAGS="-g" | |
3231 | fi | |
3232 | else | |
3233 | if test "$GXX" = yes; then | |
3234 | CXXFLAGS="-O2" | |
3235 | else | |
3236 | CXXFLAGS= | |
5780a46b | 3237 | fi |
ff66d28f PE |
3238 | fi |
3239 | for ac_declaration in \ | |
ec2075e9 | 3240 | '' \ |
ff66d28f PE |
3241 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3242 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3243 | 'extern "C" void exit (int) throw ();' \ | |
3244 | 'extern "C" void exit (int);' \ | |
3245 | 'void exit (int);' | |
3246 | do | |
3247 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3248 | /* confdefs.h. */ |
3249 | _ACEOF | |
3250 | cat confdefs.h >>conftest.$ac_ext | |
3251 | cat >>conftest.$ac_ext <<_ACEOF | |
3252 | /* end confdefs.h. */ | |
158960ba | 3253 | $ac_declaration |
ec2075e9 | 3254 | #include <stdlib.h> |
ff66d28f PE |
3255 | int |
3256 | main () | |
3257 | { | |
3258 | exit (42); | |
3259 | ; | |
3260 | return 0; | |
3261 | } | |
3262 | _ACEOF | |
3263 | rm -f conftest.$ac_objext | |
3264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3265 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3266 | ac_status=$? |
ec2075e9 BK |
3267 | grep -v '^ *+' conftest.er1 >conftest.err |
3268 | rm -f conftest.er1 | |
3269 | cat conftest.err >&5 | |
ff66d28f PE |
3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3271 | (exit $ac_status); } && | |
780028b6 BK |
3272 | { ac_try='test -z "$ac_cxx_werror_flag" |
3273 | || test ! -s conftest.err' | |
ec2075e9 BK |
3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3275 | (eval $ac_try) 2>&5 | |
3276 | ac_status=$? | |
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3278 | (exit $ac_status); }; } && | |
3279 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3281 | (eval $ac_try) 2>&5 | |
3282 | ac_status=$? | |
3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3284 | (exit $ac_status); }; }; then | |
3285 | : | |
3286 | else | |
3287 | echo "$as_me: failed program was:" >&5 | |
3288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 3289 | |
ff66d28f PE |
3290 | continue |
3291 | fi | |
ec2075e9 | 3292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f | 3293 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
3294 | /* confdefs.h. */ |
3295 | _ACEOF | |
3296 | cat confdefs.h >>conftest.$ac_ext | |
3297 | cat >>conftest.$ac_ext <<_ACEOF | |
3298 | /* end confdefs.h. */ | |
3299 | $ac_declaration | |
3300 | int | |
3301 | main () | |
3302 | { | |
3303 | exit (42); | |
3304 | ; | |
3305 | return 0; | |
3306 | } | |
3307 | _ACEOF | |
3308 | rm -f conftest.$ac_objext | |
3309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3310 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3311 | ac_status=$? |
ec2075e9 BK |
3312 | grep -v '^ *+' conftest.er1 >conftest.err |
3313 | rm -f conftest.er1 | |
3314 | cat conftest.err >&5 | |
ff66d28f PE |
3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3316 | (exit $ac_status); } && | |
780028b6 BK |
3317 | { ac_try='test -z "$ac_cxx_werror_flag" |
3318 | || test ! -s conftest.err' | |
ec2075e9 BK |
3319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3320 | (eval $ac_try) 2>&5 | |
3321 | ac_status=$? | |
3322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3323 | (exit $ac_status); }; } && | |
3324 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3326 | (eval $ac_try) 2>&5 | |
3327 | ac_status=$? | |
3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3329 | (exit $ac_status); }; }; then | |
3330 | break | |
3331 | else | |
3332 | echo "$as_me: failed program was:" >&5 | |
3333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3334 | ||
3335 | fi | |
ec2075e9 | 3336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3337 | done |
3338 | rm -f conftest* | |
3339 | if test -n "$ac_declaration"; then | |
3340 | echo '#ifdef __cplusplus' >>confdefs.h | |
3341 | echo $ac_declaration >>confdefs.h | |
3342 | echo '#endif' >>confdefs.h | |
3343 | fi | |
3840fa2a | 3344 | |
ff66d28f PE |
3345 | ac_ext=c |
3346 | ac_cpp='$CPP $CPPFLAGS' | |
3347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16da539b | 3350 | |
ff66d28f | 3351 | CXXFLAGS="$save_CXXFLAGS" |
d0941a31 PE |
3352 | |
3353 | ||
33590f13 | 3354 | |
f6dda651 | 3355 | |
ff66d28f PE |
3356 | # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't |
3357 | # available). Uncomment the next line to force a particular method. | |
3358 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3359 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3360 | LN_S=$as_ln_s | |
3361 | if test "$LN_S" = "ln -s"; then | |
3362 | echo "$as_me:$LINENO: result: yes" >&5 | |
3363 | echo "${ECHO_T}yes" >&6 | |
2f235b6d | 3364 | else |
ff66d28f PE |
3365 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3366 | echo "${ECHO_T}no, using $LN_S" >&6 | |
2f235b6d | 3367 | fi |
2f235b6d | 3368 | |
ff66d28f | 3369 | #LN_S='cp -p' |
2f235b6d | 3370 | |
ff66d28f PE |
3371 | if test -n "$ac_tool_prefix"; then |
3372 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3373 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3374 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3376 | if test "${ac_cv_prog_AS+set}" = set; then | |
3377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f235b6d | 3378 | else |
ff66d28f PE |
3379 | if test -n "$AS"; then |
3380 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2f235b6d | 3381 | else |
ff66d28f PE |
3382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3383 | for as_dir in $PATH | |
3384 | do | |
3385 | IFS=$as_save_IFS | |
3386 | test -z "$as_dir" && as_dir=. | |
3387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3389 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3391 | break 2 | |
3392 | fi | |
3393 | done | |
3394 | done | |
3395 | ||
2f235b6d | 3396 | fi |
2f235b6d | 3397 | fi |
ff66d28f PE |
3398 | AS=$ac_cv_prog_AS |
3399 | if test -n "$AS"; then | |
3400 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3401 | echo "${ECHO_T}$AS" >&6 | |
2f235b6d | 3402 | else |
ff66d28f PE |
3403 | echo "$as_me:$LINENO: result: no" >&5 |
3404 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3405 | fi |
3406 | ||
ff66d28f PE |
3407 | fi |
3408 | if test -z "$ac_cv_prog_AS"; then | |
3409 | ac_ct_AS=$AS | |
3410 | # Extract the first word of "as", so it can be a program name with args. | |
3411 | set dummy as; ac_word=$2 | |
3412 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3414 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3416 | else | |
3417 | if test -n "$ac_ct_AS"; then | |
3418 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3419 | else | |
3420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3421 | for as_dir in $PATH | |
3422 | do | |
3423 | IFS=$as_save_IFS | |
3424 | test -z "$as_dir" && as_dir=. | |
3425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3427 | ac_cv_prog_ac_ct_AS="as" | |
3428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3429 | break 2 | |
3430 | fi | |
3431 | done | |
3432 | done | |
2f235b6d | 3433 | |
ff66d28f PE |
3434 | fi |
3435 | fi | |
3436 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3437 | if test -n "$ac_ct_AS"; then | |
3438 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3439 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
3440 | else | |
3441 | echo "$as_me:$LINENO: result: no" >&5 | |
3442 | echo "${ECHO_T}no" >&6 | |
3443 | fi | |
2f235b6d | 3444 | |
ff66d28f PE |
3445 | AS=$ac_ct_AS |
3446 | else | |
3447 | AS="$ac_cv_prog_AS" | |
2f235b6d | 3448 | fi |
2f235b6d | 3449 | |
ff66d28f PE |
3450 | if test -n "$ac_tool_prefix"; then |
3451 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3452 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3455 | if test "${ac_cv_prog_AR+set}" = set; then | |
3456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3457 | else | |
3458 | if test -n "$AR"; then | |
3459 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3460 | else | |
3461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3462 | for as_dir in $PATH | |
3463 | do | |
3464 | IFS=$as_save_IFS | |
3465 | test -z "$as_dir" && as_dir=. | |
3466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3468 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3470 | break 2 | |
3471 | fi | |
3472 | done | |
3473 | done | |
2f235b6d | 3474 | |
ff66d28f PE |
3475 | fi |
3476 | fi | |
3477 | AR=$ac_cv_prog_AR | |
3478 | if test -n "$AR"; then | |
3479 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3480 | echo "${ECHO_T}$AR" >&6 | |
3481 | else | |
3482 | echo "$as_me:$LINENO: result: no" >&5 | |
3483 | echo "${ECHO_T}no" >&6 | |
3484 | fi | |
2f235b6d | 3485 | |
ff66d28f PE |
3486 | fi |
3487 | if test -z "$ac_cv_prog_AR"; then | |
3488 | ac_ct_AR=$AR | |
3489 | # Extract the first word of "ar", so it can be a program name with args. | |
3490 | set dummy ar; ac_word=$2 | |
3491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3493 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3495 | else | |
3496 | if test -n "$ac_ct_AR"; then | |
3497 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3498 | else | |
3499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3500 | for as_dir in $PATH | |
3501 | do | |
3502 | IFS=$as_save_IFS | |
3503 | test -z "$as_dir" && as_dir=. | |
3504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3506 | ac_cv_prog_ac_ct_AR="ar" | |
3507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3508 | break 2 | |
3509 | fi | |
3510 | done | |
3511 | done | |
2f235b6d | 3512 | |
ff66d28f PE |
3513 | fi |
3514 | fi | |
3515 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3516 | if test -n "$ac_ct_AR"; then | |
3517 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3518 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
2f235b6d | 3519 | else |
ff66d28f PE |
3520 | echo "$as_me:$LINENO: result: no" >&5 |
3521 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3522 | fi |
3523 | ||
ff66d28f | 3524 | AR=$ac_ct_AR |
2f235b6d | 3525 | else |
ff66d28f | 3526 | AR="$ac_cv_prog_AR" |
2f235b6d PE |
3527 | fi |
3528 | ||
ff66d28f PE |
3529 | if test -n "$ac_tool_prefix"; then |
3530 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3531 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3534 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3536 | else | |
3537 | if test -n "$RANLIB"; then | |
3538 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3539 | else | |
3540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3541 | for as_dir in $PATH | |
3542 | do | |
3543 | IFS=$as_save_IFS | |
3544 | test -z "$as_dir" && as_dir=. | |
3545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3547 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3549 | break 2 | |
3550 | fi | |
3551 | done | |
3552 | done | |
3553 | ||
3554 | fi | |
3555 | fi | |
3556 | RANLIB=$ac_cv_prog_RANLIB | |
3557 | if test -n "$RANLIB"; then | |
3558 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3559 | echo "${ECHO_T}$RANLIB" >&6 | |
2f235b6d | 3560 | else |
ff66d28f PE |
3561 | echo "$as_me:$LINENO: result: no" >&5 |
3562 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3563 | fi |
3564 | ||
ff66d28f PE |
3565 | fi |
3566 | if test -z "$ac_cv_prog_RANLIB"; then | |
3567 | ac_ct_RANLIB=$RANLIB | |
3568 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3569 | set dummy ranlib; ac_word=$2 | |
3570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3572 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3574 | else | |
3575 | if test -n "$ac_ct_RANLIB"; then | |
3576 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2f235b6d | 3577 | else |
ff66d28f PE |
3578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3579 | for as_dir in $PATH | |
3580 | do | |
3581 | IFS=$as_save_IFS | |
3582 | test -z "$as_dir" && as_dir=. | |
3583 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3585 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3587 | break 2 | |
3588 | fi | |
3589 | done | |
3590 | done | |
3591 | ||
3592 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" | |
3593 | fi | |
3594 | fi | |
3595 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3596 | if test -n "$ac_ct_RANLIB"; then | |
3597 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3598 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3599 | else | |
3600 | echo "$as_me:$LINENO: result: no" >&5 | |
3601 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3602 | fi |
3603 | ||
ff66d28f | 3604 | RANLIB=$ac_ct_RANLIB |
2f235b6d | 3605 | else |
ff66d28f | 3606 | RANLIB="$ac_cv_prog_RANLIB" |
2f235b6d PE |
3607 | fi |
3608 | ||
3609 | ||
ff66d28f PE |
3610 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3611 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
3612 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
3613 | if test "${enable_maintainer_mode+set}" = set; then | |
3614 | enableval="$enable_maintainer_mode" | |
3615 | USE_MAINTAINER_MODE=$enableval | |
3616 | else | |
3617 | USE_MAINTAINER_MODE=no | |
3618 | fi; | |
3619 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
3620 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
2f235b6d PE |
3621 | |
3622 | ||
ff66d28f PE |
3623 | if test $USE_MAINTAINER_MODE = yes; then |
3624 | MAINTAINER_MODE_TRUE= | |
3625 | MAINTAINER_MODE_FALSE='#' | |
3626 | else | |
3627 | MAINTAINER_MODE_TRUE='#' | |
3628 | MAINTAINER_MODE_FALSE= | |
3629 | fi | |
3630 | ||
3631 | MAINT=$MAINTAINER_MODE_TRUE | |
2f235b6d | 3632 | |
5780a46b | 3633 | |
f4c79fef | 3634 | |
92eabea2 PE |
3635 | # Set up safe default values for all subsequent AM_CONDITIONAL tests |
3636 | # which are themselves conditionally expanded. | |
3637 | ## (Right now, this only matters for enable_wchar_t, but nothing prevents | |
3638 | ## other macros from doing the same. This should be automated.) -pme | |
ff66d28f PE |
3639 | need_libmath=no |
3640 | enable_wchar_t=no | |
3641 | #enable_libstdcxx_debug=no | |
3642 | #enable_libstdcxx_pch=no | |
3643 | #enable_cheaders=c | |
3644 | #c_compatibility=no | |
3645 | #enable_abi_check=no | |
3646 | #enable_symvers=no | |
92eabea2 | 3647 | #enable_hosted_libstdcxx=yes |
ff66d28f PE |
3648 | |
3649 | # Find platform-specific directories containing configuration info. | |
3650 | # Also possibly modify flags used elsewhere, as needed by the platform. | |
3651 | ||
3652 | . $glibcxx_srcdir/configure.host | |
3653 | { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5 | |
3654 | echo "$as_me: CPU config directory is $cpu_include_dir" >&6;} | |
3655 | { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5 | |
3656 | echo "$as_me: OS config directory is $os_include_dir" >&6;} | |
3657 | ||
3658 | ||
3659 | ||
3660 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
3661 | ||
b2dad0e3 BK |
3662 | # Check whether --enable-shared or --disable-shared was given. |
3663 | if test "${enable_shared+set}" = set; then | |
3664 | enableval="$enable_shared" | |
3665 | p=${PACKAGE-default} | |
c21b6f87 | 3666 | case $enableval in |
b2dad0e3 BK |
3667 | yes) enable_shared=yes ;; |
3668 | no) enable_shared=no ;; | |
3669 | *) | |
3670 | enable_shared=no | |
3671 | # Look at the argument we got. We use all the common list separators. | |
3672 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3673 | for pkg in $enableval; do | |
3674 | if test "X$pkg" = "X$p"; then | |
3675 | enable_shared=yes | |
3676 | fi | |
3677 | done | |
3678 | IFS="$ac_save_ifs" | |
3679 | ;; | |
3680 | esac | |
3681 | else | |
3682 | enable_shared=yes | |
ff66d28f | 3683 | fi; |
b2dad0e3 BK |
3684 | # Check whether --enable-static or --disable-static was given. |
3685 | if test "${enable_static+set}" = set; then | |
3686 | enableval="$enable_static" | |
3687 | p=${PACKAGE-default} | |
c21b6f87 | 3688 | case $enableval in |
b2dad0e3 BK |
3689 | yes) enable_static=yes ;; |
3690 | no) enable_static=no ;; | |
3691 | *) | |
3692 | enable_static=no | |
3693 | # Look at the argument we got. We use all the common list separators. | |
3694 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3695 | for pkg in $enableval; do | |
3696 | if test "X$pkg" = "X$p"; then | |
3697 | enable_static=yes | |
3698 | fi | |
3699 | done | |
3700 | IFS="$ac_save_ifs" | |
3701 | ;; | |
3702 | esac | |
3703 | else | |
3704 | enable_static=yes | |
ff66d28f | 3705 | fi; |
b2dad0e3 BK |
3706 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3707 | if test "${enable_fast_install+set}" = set; then | |
3708 | enableval="$enable_fast_install" | |
3709 | p=${PACKAGE-default} | |
c21b6f87 | 3710 | case $enableval in |
b2dad0e3 BK |
3711 | yes) enable_fast_install=yes ;; |
3712 | no) enable_fast_install=no ;; | |
3713 | *) | |
3714 | enable_fast_install=no | |
3715 | # Look at the argument we got. We use all the common list separators. | |
3716 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3717 | for pkg in $enableval; do | |
3718 | if test "X$pkg" = "X$p"; then | |
3719 | enable_fast_install=yes | |
3720 | fi | |
3721 | done | |
3722 | IFS="$ac_save_ifs" | |
3723 | ;; | |
3724 | esac | |
3725 | else | |
3726 | enable_fast_install=yes | |
ff66d28f | 3727 | fi; |
b2dad0e3 | 3728 | |
b2dad0e3 BK |
3729 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3730 | if test "${with_gnu_ld+set}" = set; then | |
3731 | withval="$with_gnu_ld" | |
3732 | test "$withval" = no || with_gnu_ld=yes | |
3733 | else | |
3734 | with_gnu_ld=no | |
ff66d28f | 3735 | fi; |
b2dad0e3 | 3736 | ac_prog=ld |
c21b6f87 | 3737 | if test "$GCC" = yes; then |
b2dad0e3 | 3738 | # Check if gcc -print-prog-name=ld gives a path. |
ff66d28f PE |
3739 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3740 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3df64633 AO |
3741 | case $host in |
3742 | *-*-mingw*) | |
3743 | # gcc leaves a trailing carriage return which upsets mingw | |
3744 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3745 | *) | |
3746 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3747 | esac | |
c21b6f87 | 3748 | case $ac_prog in |
b2dad0e3 | 3749 | # Accept absolute paths. |
3840fa2a | 3750 | [\\/]* | [A-Za-z]:[\\/]*) |
b2dad0e3 BK |
3751 | re_direlt='/[^/][^/]*/\.\./' |
3752 | # Canonicalize the path of ld | |
3753 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3754 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3755 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3756 | done | |
3757 | test -z "$LD" && LD="$ac_prog" | |
3758 | ;; | |
3759 | "") | |
3760 | # If it fails, then pretend we aren't using GCC. | |
3761 | ac_prog=ld | |
3762 | ;; | |
3763 | *) | |
3764 | # If it is relative, then search for the first ld in PATH. | |
3765 | with_gnu_ld=unknown | |
3766 | ;; | |
3767 | esac | |
3768 | elif test "$with_gnu_ld" = yes; then | |
ff66d28f PE |
3769 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3770 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
b2dad0e3 | 3771 | else |
ff66d28f PE |
3772 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3773 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
b2dad0e3 | 3774 | fi |
ff66d28f PE |
3775 | if test "${lt_cv_path_LD+set}" = set; then |
3776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
3777 | else |
3778 | if test -z "$LD"; then | |
3840fa2a | 3779 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
3780 | for ac_dir in $PATH; do |
3781 | test -z "$ac_dir" && ac_dir=. | |
3840fa2a | 3782 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
c21b6f87 | 3783 | lt_cv_path_LD="$ac_dir/$ac_prog" |
b2dad0e3 BK |
3784 | # Check to see if the program is GNU ld. I'd rather use --version, |
3785 | # but apparently some GNU ld's only accept -v. | |
3786 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
c21b6f87 | 3787 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
b2dad0e3 BK |
3788 | test "$with_gnu_ld" != no && break |
3789 | else | |
3790 | test "$with_gnu_ld" != yes && break | |
3791 | fi | |
3792 | fi | |
3793 | done | |
3794 | IFS="$ac_save_ifs" | |
3795 | else | |
c21b6f87 | 3796 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
b2dad0e3 BK |
3797 | fi |
3798 | fi | |
3799 | ||
c21b6f87 | 3800 | LD="$lt_cv_path_LD" |
b2dad0e3 | 3801 | if test -n "$LD"; then |
ff66d28f PE |
3802 | echo "$as_me:$LINENO: result: $LD" >&5 |
3803 | echo "${ECHO_T}$LD" >&6 | |
b2dad0e3 | 3804 | else |
ff66d28f PE |
3805 | echo "$as_me:$LINENO: result: no" >&5 |
3806 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 3807 | fi |
ff66d28f PE |
3808 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3809 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3810 | { (exit 1); exit 1; }; } | |
3811 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3812 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3813 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
3815 | else |
3816 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3817 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
c21b6f87 | 3818 | lt_cv_prog_gnu_ld=yes |
b2dad0e3 | 3819 | else |
c21b6f87 | 3820 | lt_cv_prog_gnu_ld=no |
b2dad0e3 BK |
3821 | fi |
3822 | fi | |
ff66d28f PE |
3823 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3824 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
c21b6f87 | 3825 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3df64633 | 3826 | |
b2dad0e3 | 3827 | |
ff66d28f PE |
3828 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3829 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3830 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
3832 | else |
3833 | lt_cv_ld_reload_flag='-r' | |
3834 | fi | |
ff66d28f PE |
3835 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3836 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3df64633 AO |
3837 | reload_flag=$lt_cv_ld_reload_flag |
3838 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
b2dad0e3 | 3839 | |
ff66d28f PE |
3840 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3841 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3842 | if test "${lt_cv_path_NM+set}" = set; then | |
3843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
3844 | else |
3845 | if test -n "$NM"; then | |
3846 | # Let the user override the test. | |
c21b6f87 | 3847 | lt_cv_path_NM="$NM" |
b2dad0e3 | 3848 | else |
3840fa2a | 3849 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
3850 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3851 | test -z "$ac_dir" && ac_dir=. | |
3df64633 AO |
3852 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3853 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
b2dad0e3 BK |
3854 | # Check to see if the nm accepts a BSD-compat flag. |
3855 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3856 | # nm: unknown option "B" ignored | |
6d93bca4 AO |
3857 | # Tru64's nm complains that /dev/null is an invalid object file |
3858 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
c21b6f87 | 3859 | lt_cv_path_NM="$tmp_nm -B" |
b2dad0e3 | 3860 | break |
3df64633 | 3861 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
c21b6f87 | 3862 | lt_cv_path_NM="$tmp_nm -p" |
b2dad0e3 BK |
3863 | break |
3864 | else | |
c21b6f87 | 3865 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2dad0e3 BK |
3866 | continue # so that we can try to find one that supports BSD flags |
3867 | fi | |
3868 | fi | |
3869 | done | |
3870 | IFS="$ac_save_ifs" | |
c21b6f87 | 3871 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
b2dad0e3 BK |
3872 | fi |
3873 | fi | |
3874 | ||
c21b6f87 | 3875 | NM="$lt_cv_path_NM" |
ff66d28f PE |
3876 | echo "$as_me:$LINENO: result: $NM" >&5 |
3877 | echo "${ECHO_T}$NM" >&6 | |
b2dad0e3 | 3878 | |
ff66d28f PE |
3879 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3880 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3881 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 3883 | else |
3dd7094e | 3884 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3df64633 AO |
3885 | lt_cv_file_magic_test_file= |
3886 | lt_cv_deplibs_check_method='unknown' | |
3887 | # Need to set the preceding variable on all platforms that support | |
3888 | # interlibrary dependencies. | |
3889 | # 'none' -- dependencies not supported. | |
3890 | # `unknown' -- same as none, but documents that we really don't know. | |
3891 | # 'pass_all' -- all dependencies passed with no checks. | |
3892 | # 'test_compile' -- check by making test program. | |
3893 | # 'file_magic [regex]' -- check by looking for files in library path | |
3894 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3895 | # If you have `file' or equivalent on your system and you're not sure | |
3896 | # whether `pass_all' will *always* work, you probably want this one. | |
3897 | ||
c21b6f87 PE |
3898 | case $host_os in |
3899 | aix*) | |
3df64633 AO |
3900 | lt_cv_deplibs_check_method=pass_all |
3901 | ;; | |
3902 | ||
3903 | beos*) | |
3904 | lt_cv_deplibs_check_method=pass_all | |
3905 | ;; | |
3906 | ||
3907 | bsdi4*) | |
c21b6f87 PE |
3908 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3909 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3df64633 AO |
3910 | lt_cv_file_magic_test_file=/shlib/libc.so |
3911 | ;; | |
3912 | ||
3dd7094e | 3913 | cygwin* | mingw* |pw32*) |
3df64633 | 3914 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3dd7094e | 3915 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3df64633 AO |
3916 | ;; |
3917 | ||
c21b6f87 | 3918 | darwin* | rhapsody*) |
29d4adf4 | 3919 | # this will be overwritten by pass_all, but leave it in just in case |
c21b6f87 | 3920 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
47e982b2 BK |
3921 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3922 | case "$host_os" in | |
3923 | rhapsody* | darwin1.012) | |
3924 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3925 | ;; | |
3926 | *) # Darwin 1.3 on | |
3927 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3928 | ;; | |
3929 | esac | |
29d4adf4 | 3930 | lt_cv_deplibs_check_method=pass_all |
c21b6f87 PE |
3931 | ;; |
3932 | ||
dc7c62ae | 3933 | freebsd* | kfreebsd*-gnu) |
3df64633 | 3934 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
c21b6f87 | 3935 | case $host_cpu in |
3df64633 | 3936 | i*86 ) |
6d93bca4 AO |
3937 | # Not sure whether the presence of OpenBSD here was a mistake. |
3938 | # Let's accept both of them until this is cleared up. | |
c21b6f87 PE |
3939 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3940 | lt_cv_file_magic_cmd=/usr/bin/file | |
3df64633 AO |
3941 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3942 | ;; | |
3943 | esac | |
3944 | else | |
3945 | lt_cv_deplibs_check_method=pass_all | |
3946 | fi | |
3947 | ;; | |
3948 | ||
3949 | gnu*) | |
3950 | lt_cv_deplibs_check_method=pass_all | |
3951 | ;; | |
3952 | ||
c21b6f87 | 3953 | hpux10.20*|hpux11*) |
38cca750 BK |
3954 | case $host_cpu in |
3955 | hppa*) | |
3956 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3957 | lt_cv_file_magic_cmd=/usr/bin/file | |
3958 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3959 | ;; | |
3960 | ia64*) | |
3961 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3962 | lt_cv_file_magic_cmd=/usr/bin/file | |
3963 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3964 | ;; | |
3965 | esac | |
3df64633 AO |
3966 | ;; |
3967 | ||
3968 | irix5* | irix6*) | |
c21b6f87 | 3969 | case $host_os in |
3df64633 AO |
3970 | irix5*) |
3971 | # this will be overridden with pass_all, but let us keep it just in case | |
3972 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3973 | ;; | |
3974 | *) | |
c21b6f87 | 3975 | case $LD in |
3df64633 AO |
3976 | *-32|*"-32 ") libmagic=32-bit;; |
3977 | *-n32|*"-n32 ") libmagic=N32;; | |
3978 | *-64|*"-64 ") libmagic=64-bit;; | |
3979 | *) libmagic=never-match;; | |
3980 | esac | |
3981 | # this will be overridden with pass_all, but let us keep it just in case | |
c21b6f87 PE |
3982 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3983 | ;; | |
3df64633 AO |
3984 | esac |
3985 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3986 | lt_cv_deplibs_check_method=pass_all | |
3987 | ;; | |
3988 | ||
3989 | # This must be Linux ELF. | |
6d93bca4 | 3990 | linux-gnu*) |
2c92e90f | 3991 | lt_cv_deplibs_check_method=pass_all |
3df64633 AO |
3992 | ;; |
3993 | ||
dc7c62ae | 3994 | netbsd* | knetbsd*-gnu) |
c21b6f87 | 3995 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
47e982b2 | 3996 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
3df64633 | 3997 | else |
47e982b2 | 3998 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
3df64633 | 3999 | fi |
c21b6f87 PE |
4000 | ;; |
4001 | ||
4002 | newsos6) | |
4003 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4004 | lt_cv_file_magic_cmd=/usr/bin/file | |
4005 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3df64633 AO |
4006 | ;; |
4007 | ||
4008 | osf3* | osf4* | osf5*) | |
4009 | # this will be overridden with pass_all, but let us keep it just in case | |
4010 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
4011 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4012 | lt_cv_deplibs_check_method=pass_all | |
4013 | ;; | |
4014 | ||
4015 | sco3.2v5*) | |
4016 | lt_cv_deplibs_check_method=pass_all | |
4017 | ;; | |
4018 | ||
4019 | solaris*) | |
4020 | lt_cv_deplibs_check_method=pass_all | |
4021 | lt_cv_file_magic_test_file=/lib/libc.so | |
4022 | ;; | |
4023 | ||
bfa1e6b1 BK |
4024 | sysv5uw[78]* | sysv4*uw2*) |
4025 | lt_cv_deplibs_check_method=pass_all | |
4026 | ;; | |
4027 | ||
3df64633 | 4028 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
c21b6f87 | 4029 | case $host_vendor in |
3df64633 AO |
4030 | ncr) |
4031 | lt_cv_deplibs_check_method=pass_all | |
4032 | ;; | |
4033 | motorola) | |
c21b6f87 PE |
4034 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
4035 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3df64633 AO |
4036 | ;; |
4037 | esac | |
4038 | ;; | |
4039 | esac | |
4040 | ||
4041 | fi | |
ff66d28f PE |
4042 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4043 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3df64633 AO |
4044 | file_magic_cmd=$lt_cv_file_magic_cmd |
4045 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4046 | ||
3df64633 | 4047 | |
ff66d28f | 4048 | |
3df64633 | 4049 | |
ec0d7421 | 4050 | |
3df64633 AO |
4051 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
4052 | ||
4053 | # Only perform the check for file, if the check method requires it | |
c21b6f87 | 4054 | case $deplibs_check_method in |
3df64633 | 4055 | file_magic*) |
3dd7094e | 4056 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
ff66d28f PE |
4057 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
4058 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
4059 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4061 | else |
c21b6f87 | 4062 | case $MAGIC_CMD in |
3df64633 | 4063 | /*) |
3dd7094e | 4064 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
4065 | ;; |
4066 | ?:/*) | |
3dd7094e | 4067 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
4068 | ;; |
4069 | *) | |
3dd7094e | 4070 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
4071 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4072 | ac_dummy="/usr/bin:$PATH" | |
4073 | for ac_dir in $ac_dummy; do | |
4074 | test -z "$ac_dir" && ac_dir=. | |
4075 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3dd7094e | 4076 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
3df64633 | 4077 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 4078 | case $deplibs_check_method in |
3df64633 AO |
4079 | "file_magic "*) |
4080 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 4081 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
4082 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4083 | egrep "$file_magic_regex" > /dev/null; then | |
4084 | : | |
4085 | else | |
4086 | cat <<EOF 1>&2 | |
4087 | ||
4088 | *** Warning: the command libtool uses to detect shared libraries, | |
4089 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4090 | *** The result is that libtool may fail to recognize shared libraries | |
4091 | *** as such. This will affect the creation of libtool libraries that | |
4092 | *** depend on shared libraries, but programs linked with such libtool | |
4093 | *** libraries will work regardless of this problem. Nevertheless, you | |
4094 | *** may want to report the problem to your system manager and/or to | |
4095 | *** bug-libtool@gnu.org | |
4096 | ||
4097 | EOF | |
4098 | fi ;; | |
4099 | esac | |
4100 | fi | |
4101 | break | |
4102 | fi | |
4103 | done | |
4104 | IFS="$ac_save_ifs" | |
3dd7094e | 4105 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
4106 | ;; |
4107 | esac | |
4108 | fi | |
4109 | ||
3dd7094e AO |
4110 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4111 | if test -n "$MAGIC_CMD"; then | |
ff66d28f PE |
4112 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
4113 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3df64633 | 4114 | else |
ff66d28f PE |
4115 | echo "$as_me:$LINENO: result: no" >&5 |
4116 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4117 | fi |
4118 | ||
3dd7094e | 4119 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
3df64633 | 4120 | if test -n "$ac_tool_prefix"; then |
ff66d28f PE |
4121 | echo "$as_me:$LINENO: checking for file" >&5 |
4122 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
4123 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4125 | else |
c21b6f87 | 4126 | case $MAGIC_CMD in |
3df64633 | 4127 | /*) |
3dd7094e | 4128 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
4129 | ;; |
4130 | ?:/*) | |
3dd7094e | 4131 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
4132 | ;; |
4133 | *) | |
3dd7094e | 4134 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
4135 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4136 | ac_dummy="/usr/bin:$PATH" | |
4137 | for ac_dir in $ac_dummy; do | |
4138 | test -z "$ac_dir" && ac_dir=. | |
4139 | if test -f $ac_dir/file; then | |
3dd7094e | 4140 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
3df64633 | 4141 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 4142 | case $deplibs_check_method in |
3df64633 AO |
4143 | "file_magic "*) |
4144 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 4145 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
4146 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4147 | egrep "$file_magic_regex" > /dev/null; then | |
4148 | : | |
4149 | else | |
4150 | cat <<EOF 1>&2 | |
4151 | ||
4152 | *** Warning: the command libtool uses to detect shared libraries, | |
4153 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4154 | *** The result is that libtool may fail to recognize shared libraries | |
4155 | *** as such. This will affect the creation of libtool libraries that | |
4156 | *** depend on shared libraries, but programs linked with such libtool | |
4157 | *** libraries will work regardless of this problem. Nevertheless, you | |
4158 | *** may want to report the problem to your system manager and/or to | |
4159 | *** bug-libtool@gnu.org | |
4160 | ||
4161 | EOF | |
4162 | fi ;; | |
4163 | esac | |
4164 | fi | |
4165 | break | |
4166 | fi | |
4167 | done | |
4168 | IFS="$ac_save_ifs" | |
3dd7094e | 4169 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
4170 | ;; |
4171 | esac | |
4172 | fi | |
4173 | ||
3dd7094e AO |
4174 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4175 | if test -n "$MAGIC_CMD"; then | |
ff66d28f PE |
4176 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
4177 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3df64633 | 4178 | else |
ff66d28f PE |
4179 | echo "$as_me:$LINENO: result: no" >&5 |
4180 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4181 | fi |
4182 | ||
4183 | else | |
3dd7094e | 4184 | MAGIC_CMD=: |
3df64633 AO |
4185 | fi |
4186 | fi | |
4187 | ||
4188 | fi | |
4189 | ;; | |
4190 | esac | |
4191 | ||
ff66d28f PE |
4192 | if test -n "$ac_tool_prefix"; then |
4193 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3df64633 | 4194 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
ff66d28f PE |
4195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4197 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
4199 | else |
4200 | if test -n "$RANLIB"; then | |
4201 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4202 | else | |
ff66d28f PE |
4203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4204 | for as_dir in $PATH | |
4205 | do | |
4206 | IFS=$as_save_IFS | |
4207 | test -z "$as_dir" && as_dir=. | |
4208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4210 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4212 | break 2 | |
4213 | fi | |
4214 | done | |
4215 | done | |
4216 | ||
3df64633 AO |
4217 | fi |
4218 | fi | |
ff66d28f | 4219 | RANLIB=$ac_cv_prog_RANLIB |
3df64633 | 4220 | if test -n "$RANLIB"; then |
ff66d28f PE |
4221 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4222 | echo "${ECHO_T}$RANLIB" >&6 | |
3df64633 | 4223 | else |
ff66d28f PE |
4224 | echo "$as_me:$LINENO: result: no" >&5 |
4225 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4226 | fi |
4227 | ||
ff66d28f | 4228 | fi |
3df64633 | 4229 | if test -z "$ac_cv_prog_RANLIB"; then |
ff66d28f | 4230 | ac_ct_RANLIB=$RANLIB |
3df64633 AO |
4231 | # Extract the first word of "ranlib", so it can be a program name with args. |
4232 | set dummy ranlib; ac_word=$2 | |
ff66d28f PE |
4233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4235 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4237 | else |
ff66d28f PE |
4238 | if test -n "$ac_ct_RANLIB"; then |
4239 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3df64633 | 4240 | else |
ff66d28f PE |
4241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4242 | for as_dir in $PATH | |
4243 | do | |
4244 | IFS=$as_save_IFS | |
4245 | test -z "$as_dir" && as_dir=. | |
4246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4247 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4248 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4250 | break 2 | |
4251 | fi | |
4252 | done | |
4253 | done | |
4254 | ||
4255 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3df64633 AO |
4256 | fi |
4257 | fi | |
ff66d28f PE |
4258 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4259 | if test -n "$ac_ct_RANLIB"; then | |
4260 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4261 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3df64633 | 4262 | else |
ff66d28f PE |
4263 | echo "$as_me:$LINENO: result: no" >&5 |
4264 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4265 | fi |
4266 | ||
ff66d28f | 4267 | RANLIB=$ac_ct_RANLIB |
3df64633 | 4268 | else |
ff66d28f | 4269 | RANLIB="$ac_cv_prog_RANLIB" |
3df64633 AO |
4270 | fi |
4271 | ||
ff66d28f PE |
4272 | if test -n "$ac_tool_prefix"; then |
4273 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3df64633 | 4274 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
ff66d28f PE |
4275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4277 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
4279 | else |
4280 | if test -n "$STRIP"; then | |
4281 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4282 | else | |
ff66d28f PE |
4283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4284 | for as_dir in $PATH | |
4285 | do | |
4286 | IFS=$as_save_IFS | |
4287 | test -z "$as_dir" && as_dir=. | |
4288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4290 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4292 | break 2 | |
4293 | fi | |
4294 | done | |
4295 | done | |
4296 | ||
3df64633 AO |
4297 | fi |
4298 | fi | |
ff66d28f | 4299 | STRIP=$ac_cv_prog_STRIP |
3df64633 | 4300 | if test -n "$STRIP"; then |
ff66d28f PE |
4301 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
4302 | echo "${ECHO_T}$STRIP" >&6 | |
3df64633 | 4303 | else |
ff66d28f PE |
4304 | echo "$as_me:$LINENO: result: no" >&5 |
4305 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4306 | fi |
4307 | ||
ff66d28f | 4308 | fi |
3df64633 | 4309 | if test -z "$ac_cv_prog_STRIP"; then |
ff66d28f | 4310 | ac_ct_STRIP=$STRIP |
3df64633 AO |
4311 | # Extract the first word of "strip", so it can be a program name with args. |
4312 | set dummy strip; ac_word=$2 | |
ff66d28f PE |
4313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4315 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4317 | else |
ff66d28f PE |
4318 | if test -n "$ac_ct_STRIP"; then |
4319 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3df64633 | 4320 | else |
ff66d28f PE |
4321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4322 | for as_dir in $PATH | |
4323 | do | |
4324 | IFS=$as_save_IFS | |
4325 | test -z "$as_dir" && as_dir=. | |
4326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4328 | ac_cv_prog_ac_ct_STRIP="strip" | |
4329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4330 | break 2 | |
4331 | fi | |
4332 | done | |
4333 | done | |
4334 | ||
4335 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
3df64633 AO |
4336 | fi |
4337 | fi | |
ff66d28f PE |
4338 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4339 | if test -n "$ac_ct_STRIP"; then | |
4340 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4341 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
3df64633 | 4342 | else |
ff66d28f PE |
4343 | echo "$as_me:$LINENO: result: no" >&5 |
4344 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4345 | fi |
4346 | ||
ff66d28f | 4347 | STRIP=$ac_ct_STRIP |
3df64633 | 4348 | else |
ff66d28f | 4349 | STRIP="$ac_cv_prog_STRIP" |
3df64633 AO |
4350 | fi |
4351 | ||
b2dad0e3 | 4352 | |
b2dad0e3 BK |
4353 | # Check for any special flags to pass to ltconfig. |
4354 | libtool_flags="--cache-file=$cache_file" | |
4355 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4356 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4357 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
c21b6f87 PE |
4358 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
4359 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
ff66d28f | 4360 | |
3840fa2a BK |
4361 | |
4362 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4363 | if test "${enable_libtool_lock+set}" = set; then | |
4364 | enableval="$enable_libtool_lock" | |
3840fa2a | 4365 | |
ff66d28f | 4366 | fi; |
3840fa2a BK |
4367 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
4368 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
b2dad0e3 | 4369 | |
ff66d28f | 4370 | |
3df64633 AO |
4371 | # Check whether --with-pic or --without-pic was given. |
4372 | if test "${with_pic+set}" = set; then | |
4373 | withval="$with_pic" | |
4374 | pic_mode="$withval" | |
4375 | else | |
4376 | pic_mode=default | |
ff66d28f | 4377 | fi; |
3df64633 AO |
4378 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
4379 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
4380 | ||
b2dad0e3 BK |
4381 | # Some flags need to be propagated to the compiler or linker for good |
4382 | # libtool support. | |
c21b6f87 | 4383 | case $host in |
b2dad0e3 BK |
4384 | *-*-irix6*) |
4385 | # Find out which ABI we are using. | |
47194af4 | 4386 | echo '#line 4386 "configure"' > conftest.$ac_ext |
ff66d28f PE |
4387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4388 | (eval $ac_compile) 2>&5 | |
4389 | ac_status=$? | |
4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4391 | (exit $ac_status); }; then | |
3a15abf1 BK |
4392 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4393 | case `/usr/bin/file conftest.$ac_objext` in | |
4394 | *32-bit*) | |
4395 | LD="${LD-ld} -melf32bsmip" | |
4396 | ;; | |
4397 | *N32*) | |
4398 | LD="${LD-ld} -melf32bmipn32" | |
4399 | ;; | |
4400 | *64-bit*) | |
4401 | LD="${LD-ld} -melf64bmip" | |
4402 | ;; | |
4403 | esac | |
4404 | else | |
c21b6f87 | 4405 | case `/usr/bin/file conftest.$ac_objext` in |
b2dad0e3 BK |
4406 | *32-bit*) |
4407 | LD="${LD-ld} -32" | |
4408 | ;; | |
4409 | *N32*) | |
4410 | LD="${LD-ld} -n32" | |
4411 | ;; | |
4412 | *64-bit*) | |
4413 | LD="${LD-ld} -64" | |
4414 | ;; | |
4415 | esac | |
3a15abf1 | 4416 | fi |
b2dad0e3 BK |
4417 | fi |
4418 | rm -rf conftest* | |
4419 | ;; | |
4420 | ||
38cca750 BK |
4421 | ia64-*-hpux*) |
4422 | # Find out which ABI we are using. | |
4423 | echo 'int i;' > conftest.$ac_ext | |
ff66d28f PE |
4424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4425 | (eval $ac_compile) 2>&5 | |
4426 | ac_status=$? | |
4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4428 | (exit $ac_status); }; then | |
38cca750 BK |
4429 | case "`/usr/bin/file conftest.o`" in |
4430 | *ELF-32*) | |
4431 | HPUX_IA64_MODE="32" | |
4432 | ;; | |
4433 | *ELF-64*) | |
4434 | HPUX_IA64_MODE="64" | |
4435 | ;; | |
4436 | esac | |
4437 | fi | |
4438 | rm -rf conftest* | |
4439 | ;; | |
4440 | ||
162c7cd9 SW |
4441 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4442 | # Find out which ABI we are using. | |
4443 | echo 'int i;' > conftest.$ac_ext | |
ff66d28f PE |
4444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4445 | (eval $ac_compile) 2>&5 | |
4446 | ac_status=$? | |
4447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4448 | (exit $ac_status); }; then | |
162c7cd9 SW |
4449 | case "`/usr/bin/file conftest.o`" in |
4450 | *32-bit*) | |
4451 | case $host in | |
4452 | x86_64-*linux*) | |
4453 | LD="${LD-ld} -m elf_i386" | |
4454 | ;; | |
e517f636 | 4455 | ppc64-*linux*|powerpc64-*linux*) |
162c7cd9 SW |
4456 | LD="${LD-ld} -m elf32ppclinux" |
4457 | ;; | |
4458 | s390x-*linux*) | |
4459 | LD="${LD-ld} -m elf_s390" | |
4460 | ;; | |
4461 | sparc64-*linux*) | |
4462 | LD="${LD-ld} -m elf32_sparc" | |
4463 | ;; | |
4464 | esac | |
4465 | ;; | |
4466 | *64-bit*) | |
4467 | case $host in | |
4468 | x86_64-*linux*) | |
4469 | LD="${LD-ld} -m elf_x86_64" | |
4470 | ;; | |
4471 | ppc*-*linux*|powerpc*-*linux*) | |
4472 | LD="${LD-ld} -m elf64ppc" | |
4473 | ;; | |
4474 | s390*-*linux*) | |
4475 | LD="${LD-ld} -m elf64_s390" | |
4476 | ;; | |
4477 | sparc*-*linux*) | |
4478 | LD="${LD-ld} -m elf64_sparc" | |
4479 | ;; | |
4480 | esac | |
4481 | ;; | |
4482 | esac | |
4483 | fi | |
4484 | rm -rf conftest* | |
4485 | ;; | |
4486 | ||
b2dad0e3 BK |
4487 | *-*-sco3.2v5*) |
4488 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4489 | SAVE_CFLAGS="$CFLAGS" | |
4490 | CFLAGS="$CFLAGS -belf" | |
ff66d28f PE |
4491 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4492 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4493 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 4495 | else |
ff66d28f PE |
4496 | |
4497 | ||
3df64633 | 4498 | ac_ext=c |
3df64633 | 4499 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
4500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4503 | ||
72730fdb DJ |
4504 | if test x$gcc_no_link = xyes; then |
4505 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4506 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4507 | { (exit 1); exit 1; }; } | |
4508 | fi | |
4509 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4510 | /* confdefs.h. */ |
4511 | _ACEOF | |
4512 | cat confdefs.h >>conftest.$ac_ext | |
4513 | cat >>conftest.$ac_ext <<_ACEOF | |
4514 | /* end confdefs.h. */ | |
3df64633 | 4515 | |
ff66d28f PE |
4516 | int |
4517 | main () | |
4518 | { | |
b2dad0e3 | 4519 | |
ff66d28f PE |
4520 | ; |
4521 | return 0; | |
4522 | } | |
4523 | _ACEOF | |
4524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ec2075e9 | 4526 | (eval $ac_link) 2>conftest.er1 |
ff66d28f | 4527 | ac_status=$? |
ec2075e9 BK |
4528 | grep -v '^ *+' conftest.er1 >conftest.err |
4529 | rm -f conftest.er1 | |
4530 | cat conftest.err >&5 | |
ff66d28f PE |
4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4532 | (exit $ac_status); } && | |
780028b6 BK |
4533 | { ac_try='test -z "$ac_c_werror_flag" |
4534 | || test ! -s conftest.err' | |
ec2075e9 BK |
4535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4536 | (eval $ac_try) 2>&5 | |
4537 | ac_status=$? | |
4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4539 | (exit $ac_status); }; } && | |
4540 | { ac_try='test -s conftest$ac_exeext' | |
ff66d28f PE |
4541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4542 | (eval $ac_try) 2>&5 | |
4543 | ac_status=$? | |
4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4545 | (exit $ac_status); }; }; then | |
b2dad0e3 BK |
4546 | lt_cv_cc_needs_belf=yes |
4547 | else | |
ff66d28f PE |
4548 | echo "$as_me: failed program was:" >&5 |
4549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4550 | ||
4551 | lt_cv_cc_needs_belf=no | |
b2dad0e3 | 4552 | fi |
ec2075e9 BK |
4553 | rm -f conftest.err conftest.$ac_objext \ |
4554 | conftest$ac_exeext conftest.$ac_ext | |
3df64633 | 4555 | ac_ext=c |
3df64633 | 4556 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
4557 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4558 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4559 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3df64633 | 4560 | |
b2dad0e3 | 4561 | fi |
ff66d28f PE |
4562 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4563 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2dad0e3 BK |
4564 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4565 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4566 | CFLAGS="$SAVE_CFLAGS" | |
4567 | fi | |
4568 | ;; | |
4569 | ||
4570 | ||
4571 | esac | |
4572 | ||
4573 | ||
4574 | # Save cache, so that ltconfig can load it | |
ff66d28f | 4575 | cat >confcache <<\_ACEOF |
b2dad0e3 BK |
4576 | # This file is a shell script that caches the results of configure |
4577 | # tests run on this system so they can be shared between configure | |
ff66d28f PE |
4578 | # scripts and configure runs, see configure's option --config-cache. |
4579 | # It is not useful on other systems. If it contains results you don't | |
4580 | # want to keep, you may remove or edit it. | |
b2dad0e3 | 4581 | # |
ff66d28f PE |
4582 | # config.status only pays attention to the cache file if you give it |
4583 | # the --recheck option to rerun configure. | |
b2dad0e3 | 4584 | # |
ff66d28f PE |
4585 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4586 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4587 | # following values. | |
4588 | ||
4589 | _ACEOF | |
4590 | ||
b2dad0e3 BK |
4591 | # The following way of writing the cache mishandles newlines in values, |
4592 | # but we know of no workaround that is simple, portable, and efficient. | |
4593 | # So, don't put newlines in cache variables' values. | |
4594 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4595 | # and sets the high bit in the cache file unless we assign to the vars. | |
ff66d28f PE |
4596 | { |
4597 | (set) 2>&1 | | |
4598 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4599 | *ac_space=\ *) | |
4600 | # `set' does not quote correctly, so add quotes (double-quote | |
4601 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4602 | sed -n \ | |
ec2075e9 BK |
4603 | "s/'/'\\\\''/g; |
4604 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ff66d28f PE |
4605 | ;; |
4606 | *) | |
4607 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4608 | sed -n \ | |
ec2075e9 | 4609 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ff66d28f PE |
4610 | ;; |
4611 | esac; | |
4612 | } | | |
4613 | sed ' | |
4614 | t clear | |
4615 | : clear | |
4616 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4617 | t end | |
4618 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4619 | : end' >>confcache | |
4620 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b2dad0e3 | 4621 | if test -w $cache_file; then |
ff66d28f PE |
4622 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4623 | cat confcache >$cache_file | |
b2dad0e3 BK |
4624 | else |
4625 | echo "not updating unwritable cache $cache_file" | |
4626 | fi | |
4627 | fi | |
4628 | rm -f confcache | |
4629 | ||
b2dad0e3 | 4630 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
3df64633 | 4631 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
3dd7094e | 4632 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
4633 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4634 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4635 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4636 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
b2dad0e3 | 4637 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
3df64633 | 4638 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
ff66d28f PE |
4639 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4640 | echo "$as_me: error: libtool configure failed" >&2;} | |
4641 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
4642 | |
4643 | # Reload cache, that may have been modified by ltconfig | |
4644 | if test -r "$cache_file"; then | |
ff66d28f PE |
4645 | # Some versions of bash will fail to source /dev/null (special |
4646 | # files actually), so we avoid doing that. | |
4647 | if test -f "$cache_file"; then | |
4648 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4649 | echo "$as_me: loading cache $cache_file" >&6;} | |
4650 | case $cache_file in | |
4651 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4652 | *) . ./$cache_file;; | |
4653 | esac | |
4654 | fi | |
b2dad0e3 | 4655 | else |
ff66d28f PE |
4656 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4657 | echo "$as_me: creating cache $cache_file" >&6;} | |
4658 | >$cache_file | |
b2dad0e3 BK |
4659 | fi |
4660 | ||
4661 | ||
4662 | # This can be used to rebuild libtool when needed | |
3df64633 | 4663 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2dad0e3 BK |
4664 | |
4665 | # Always use our own libtool. | |
4666 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4667 | ||
4668 | # Redirect the config.log output again, so that the ltconfig log is not | |
4669 | # clobbered by the next message. | |
4670 | exec 5>>./config.log | |
4671 | ||
ff66d28f PE |
4672 | ac_ext=cc |
4673 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4674 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4675 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4676 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4677 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4678 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4679 | if test -z "$CXXCPP"; then | |
4680 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4682 | else | |
4683 | # Double quotes because CXXCPP needs to be expanded | |
4684 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
4685 | do | |
4686 | ac_preproc_ok=false | |
4687 | for ac_cxx_preproc_warn_flag in '' yes | |
4688 | do | |
4689 | # Use a header file that comes with gcc, so configuring glibc | |
4690 | # with a fresh cross-compiler works. | |
4691 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4692 | # <limits.h> exists even on freestanding compilers. | |
4693 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4694 | # not just through cpp. "Syntax error" is here to catch this case. | |
4695 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4696 | /* confdefs.h. */ |
4697 | _ACEOF | |
4698 | cat confdefs.h >>conftest.$ac_ext | |
4699 | cat >>conftest.$ac_ext <<_ACEOF | |
4700 | /* end confdefs.h. */ | |
4701 | #ifdef __STDC__ | |
4702 | # include <limits.h> | |
4703 | #else | |
4704 | # include <assert.h> | |
4705 | #endif | |
ec2075e9 | 4706 | Syntax error |
ff66d28f PE |
4707 | _ACEOF |
4708 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4709 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4710 | ac_status=$? | |
4711 | grep -v '^ *+' conftest.er1 >conftest.err | |
4712 | rm -f conftest.er1 | |
4713 | cat conftest.err >&5 | |
4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4715 | (exit $ac_status); } >/dev/null; then | |
4716 | if test -s conftest.err; then | |
4717 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4718 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4719 | else |
4720 | ac_cpp_err= | |
4721 | fi | |
4722 | else | |
4723 | ac_cpp_err=yes | |
4724 | fi | |
4725 | if test -z "$ac_cpp_err"; then | |
4726 | : | |
4727 | else | |
4728 | echo "$as_me: failed program was:" >&5 | |
4729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4730 | ||
4731 | # Broken: fails on valid input. | |
4732 | continue | |
4733 | fi | |
4734 | rm -f conftest.err conftest.$ac_ext | |
4735 | ||
4736 | # OK, works on sane cases. Now check whether non-existent headers | |
4737 | # can be detected and how. | |
4738 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4739 | /* confdefs.h. */ |
4740 | _ACEOF | |
4741 | cat confdefs.h >>conftest.$ac_ext | |
4742 | cat >>conftest.$ac_ext <<_ACEOF | |
4743 | /* end confdefs.h. */ | |
4744 | #include <ac_nonexistent.h> | |
4745 | _ACEOF | |
4746 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4747 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4748 | ac_status=$? | |
4749 | grep -v '^ *+' conftest.er1 >conftest.err | |
4750 | rm -f conftest.er1 | |
4751 | cat conftest.err >&5 | |
4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4753 | (exit $ac_status); } >/dev/null; then | |
4754 | if test -s conftest.err; then | |
4755 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4756 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4757 | else |
4758 | ac_cpp_err= | |
4759 | fi | |
4760 | else | |
4761 | ac_cpp_err=yes | |
4762 | fi | |
4763 | if test -z "$ac_cpp_err"; then | |
4764 | # Broken: success on invalid input. | |
4765 | continue | |
4766 | else | |
4767 | echo "$as_me: failed program was:" >&5 | |
4768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4769 | ||
4770 | # Passes both tests. | |
4771 | ac_preproc_ok=: | |
4772 | break | |
4773 | fi | |
4774 | rm -f conftest.err conftest.$ac_ext | |
4775 | ||
4776 | done | |
4777 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4778 | rm -f conftest.err conftest.$ac_ext | |
4779 | if $ac_preproc_ok; then | |
4780 | break | |
4781 | fi | |
4782 | ||
4783 | done | |
4784 | ac_cv_prog_CXXCPP=$CXXCPP | |
4785 | ||
4786 | fi | |
4787 | CXXCPP=$ac_cv_prog_CXXCPP | |
4788 | else | |
4789 | ac_cv_prog_CXXCPP=$CXXCPP | |
4790 | fi | |
4791 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
4792 | echo "${ECHO_T}$CXXCPP" >&6 | |
4793 | ac_preproc_ok=false | |
4794 | for ac_cxx_preproc_warn_flag in '' yes | |
4795 | do | |
4796 | # Use a header file that comes with gcc, so configuring glibc | |
4797 | # with a fresh cross-compiler works. | |
4798 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4799 | # <limits.h> exists even on freestanding compilers. | |
4800 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4801 | # not just through cpp. "Syntax error" is here to catch this case. | |
4802 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4803 | /* confdefs.h. */ |
4804 | _ACEOF | |
4805 | cat confdefs.h >>conftest.$ac_ext | |
4806 | cat >>conftest.$ac_ext <<_ACEOF | |
4807 | /* end confdefs.h. */ | |
4808 | #ifdef __STDC__ | |
4809 | # include <limits.h> | |
4810 | #else | |
4811 | # include <assert.h> | |
4812 | #endif | |
ec2075e9 | 4813 | Syntax error |
ff66d28f PE |
4814 | _ACEOF |
4815 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4816 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4817 | ac_status=$? | |
4818 | grep -v '^ *+' conftest.er1 >conftest.err | |
4819 | rm -f conftest.er1 | |
4820 | cat conftest.err >&5 | |
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4822 | (exit $ac_status); } >/dev/null; then | |
4823 | if test -s conftest.err; then | |
4824 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4825 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4826 | else |
4827 | ac_cpp_err= | |
4828 | fi | |
4829 | else | |
4830 | ac_cpp_err=yes | |
4831 | fi | |
4832 | if test -z "$ac_cpp_err"; then | |
4833 | : | |
4834 | else | |
4835 | echo "$as_me: failed program was:" >&5 | |
4836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4837 | ||
4838 | # Broken: fails on valid input. | |
4839 | continue | |
4840 | fi | |
4841 | rm -f conftest.err conftest.$ac_ext | |
4842 | ||
4843 | # OK, works on sane cases. Now check whether non-existent headers | |
4844 | # can be detected and how. | |
4845 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4846 | /* confdefs.h. */ |
4847 | _ACEOF | |
4848 | cat confdefs.h >>conftest.$ac_ext | |
4849 | cat >>conftest.$ac_ext <<_ACEOF | |
4850 | /* end confdefs.h. */ | |
4851 | #include <ac_nonexistent.h> | |
4852 | _ACEOF | |
4853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4855 | ac_status=$? | |
4856 | grep -v '^ *+' conftest.er1 >conftest.err | |
4857 | rm -f conftest.er1 | |
4858 | cat conftest.err >&5 | |
4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4860 | (exit $ac_status); } >/dev/null; then | |
4861 | if test -s conftest.err; then | |
4862 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4863 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4864 | else |
4865 | ac_cpp_err= | |
4866 | fi | |
4867 | else | |
4868 | ac_cpp_err=yes | |
4869 | fi | |
4870 | if test -z "$ac_cpp_err"; then | |
4871 | # Broken: success on invalid input. | |
4872 | continue | |
4873 | else | |
4874 | echo "$as_me: failed program was:" >&5 | |
4875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4876 | ||
4877 | # Passes both tests. | |
4878 | ac_preproc_ok=: | |
4879 | break | |
4880 | fi | |
4881 | rm -f conftest.err conftest.$ac_ext | |
4882 | ||
4883 | done | |
4884 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4885 | rm -f conftest.err conftest.$ac_ext | |
4886 | if $ac_preproc_ok; then | |
4887 | : | |
4888 | else | |
4889 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
4890 | See \`config.log' for more details." >&5 | |
4891 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
4892 | See \`config.log' for more details." >&2;} | |
4893 | { (exit 1); exit 1; }; } | |
4894 | fi | |
4895 | ||
4896 | ac_ext=c | |
4897 | ac_cpp='$CPP $CPPFLAGS' | |
4898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4901 | ||
3df64633 AO |
4902 | |
4903 | ||
3df64633 AO |
4904 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" |
4905 | lt_save_CC="$CC" | |
4906 | lt_save_CFLAGS="$CFLAGS" | |
4907 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
c21b6f87 | 4908 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
4909 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4910 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4911 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4912 | deplibs_check_method="$deplibs_check_method" \ | |
4913 | file_magic_cmd="$file_magic_cmd" \ | |
4914 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
4915 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
ff66d28f PE |
4916 | || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5 |
4917 | echo "$as_me: error: libtool tag configuration failed" >&2;} | |
4918 | { (exit 1); exit 1; }; } | |
3df64633 AO |
4919 | CC="$lt_save_CC" |
4920 | CFLAGS="$lt_save_CFLAGS" | |
4921 | ||
4922 | # Redirect the config.log output again, so that the ltconfig log is not | |
4923 | # clobbered by the next message. | |
4924 | exec 5>>./config.log | |
4925 | ||
3df64633 | 4926 | |
34791641 PE |
4927 | |
4928 | ||
33590f13 | 4929 | |
ff66d28f PE |
4930 | |
4931 | ||
4932 | ||
4933 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 | |
4934 | ||
92eabea2 PE |
4935 | # Possibly disable most of the library. |
4936 | ## XXX Consider skipping unncessary tests altogether in this case, rather | |
4937 | ## than just ignoring the results. Faster /and/ more correct, win win. | |
4938 | ||
4939 | # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given. | |
4940 | if test "${enable_hosted_libstdcxx+set}" = set; then | |
4941 | enableval="$enable_hosted_libstdcxx" | |
4942 | ||
4943 | else | |
4c24b21a MM |
4944 | case "$host" in |
4945 | arm*-*-symbianelf*) | |
4946 | enable_hosted_libstdcxx=no | |
4947 | ;; | |
4948 | *) | |
4949 | enable_hosted_libstdcxx=yes | |
4950 | ;; | |
4951 | esac | |
92eabea2 PE |
4952 | fi; |
4953 | if test "$enable_hosted_libstdcxx" = no; then | |
4954 | { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5 | |
4955 | echo "$as_me: Only freestanding libraries will be built" >&6;} | |
4956 | is_hosted=no | |
3660e02f | 4957 | hosted_define=0 |
92eabea2 PE |
4958 | enable_abi_check=no |
4959 | enable_libstdcxx_pch=no | |
4960 | else | |
4961 | is_hosted=yes | |
3660e02f | 4962 | hosted_define=1 |
92eabea2 PE |
4963 | fi |
4964 | ||
4965 | ||
3660e02f PE |
4966 | cat >>confdefs.h <<_ACEOF |
4967 | #define _GLIBCXX_HOSTED $hosted_define | |
4968 | _ACEOF | |
4969 | ||
4970 | ||
92eabea2 | 4971 | |
44f0760e | 4972 | # Check for support bits and g++ features that don't require linking. |
5780a46b | 4973 | |
ff66d28f PE |
4974 | echo "$as_me:$LINENO: checking for exception model to use" >&5 |
4975 | echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6 | |
249ed716 | 4976 | |
ff66d28f PE |
4977 | |
4978 | ac_ext=cc | |
44f0760e | 4979 | ac_cpp='$CXXCPP $CPPFLAGS' |
ff66d28f PE |
4980 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4981 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4982 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
44f0760e | 4983 | |
ff66d28f | 4984 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. |
44f0760e BK |
4985 | if test "${enable_sjlj_exceptions+set}" = set; then |
4986 | enableval="$enable_sjlj_exceptions" | |
1260d70f PE |
4987 | |
4988 | case "$enableval" in | |
4989 | yes|no|auto) ;; | |
4990 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5 | |
4991 | echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;} | |
4992 | { (exit 1); exit 1; }; } ;; | |
4993 | esac | |
4994 | ||
44f0760e | 4995 | else |
1260d70f | 4996 | enable_sjlj_exceptions=auto |
ff66d28f | 4997 | fi; |
44f0760e | 4998 | |
1260d70f PE |
4999 | |
5000 | if test $enable_sjlj_exceptions = auto; then | |
5001 | # Botheration. Now we've got to detect the exception model. Link tests | |
5002 | # against libgcc.a are problematic since we've not been given proper -L | |
5003 | # bits for single-tree newlib and libgloss. | |
5004 | # | |
5005 | # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. | |
5006 | cat > conftest.$ac_ext << EOF | |
47194af4 | 5007 | #line 5007 "configure" |
1260d70f PE |
5008 | struct S { ~S(); }; |
5009 | void bar(); | |
5010 | void foo() | |
5011 | { | |
5012 | S s; | |
5013 | bar(); | |
5014 | } | |
5015 | EOF | |
5016 | old_CXXFLAGS="$CXXFLAGS" | |
5017 | CXXFLAGS=-S | |
5018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5019 | (eval $ac_compile) 2>&5 | |
5020 | ac_status=$? | |
5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5022 | (exit $ac_status); }; then | |
5023 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then | |
5024 | enable_sjlj_exceptions=yes | |
5025 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | |
5026 | enable_sjlj_exceptions=no | |
5027 | fi | |
5028 | fi | |
5029 | CXXFLAGS="$old_CXXFLAGS" | |
5030 | rm -f conftest* | |
5031 | fi | |
5032 | ||
5033 | # This is a tad weird, for hysterical raisins. We have to map enable/disable | |
5034 | # to two different models. | |
5035 | case $enable_sjlj_exceptions in | |
5036 | yes) | |
44f0760e | 5037 | |
ff66d28f PE |
5038 | cat >>confdefs.h <<\_ACEOF |
5039 | #define _GLIBCXX_SJLJ_EXCEPTIONS 1 | |
5040 | _ACEOF | |
5041 | ||
1260d70f PE |
5042 | ac_exception_model_name=sjlj |
5043 | ;; | |
5044 | no) | |
5045 | ac_exception_model_name="call frame" | |
5046 | ;; | |
5047 | *) | |
5048 | { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5 | |
ff66d28f PE |
5049 | echo "$as_me: error: unable to detect exception model" >&2;} |
5050 | { (exit 1); exit 1; }; } | |
1260d70f PE |
5051 | ;; |
5052 | esac | |
ff66d28f | 5053 | ac_ext=c |
44f0760e | 5054 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
5055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
44f0760e | 5058 | |
ff66d28f PE |
5059 | echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5 |
5060 | echo "${ECHO_T}$ac_exception_model_name" >&6 | |
44f0760e BK |
5061 | |
5062 | ||
ff66d28f PE |
5063 | echo "$as_me:$LINENO: checking for enabled PCH" >&5 |
5064 | echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6 | |
5065 | # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given. | |
d8d81f62 BK |
5066 | if test "${enable_libstdcxx_pch+set}" = set; then |
5067 | enableval="$enable_libstdcxx_pch" | |
ff66d28f PE |
5068 | |
5069 | case "$enableval" in | |
5070 | yes|no) ;; | |
5071 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5 | |
5072 | echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;} | |
5073 | { (exit 1); exit 1; }; } ;; | |
5074 | esac | |
5075 | ||
44f0760e | 5076 | else |
92eabea2 | 5077 | enable_libstdcxx_pch=$is_hosted |
ff66d28f | 5078 | fi; |
44f0760e | 5079 | |
ff66d28f PE |
5080 | echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5 |
5081 | echo "${ECHO_T}$enable_libstdcxx_pch" >&6 | |
5082 | ||
5083 | if test $enable_libstdcxx_pch = yes; then | |
5084 | echo "$as_me:$LINENO: checking for compiler with PCH support" >&5 | |
5085 | echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6 | |
5086 | if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then | |
5087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
249ed716 | 5088 | else |
ff66d28f PE |
5089 | ac_save_CXXFLAGS="$CXXFLAGS" |
5090 | CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated" | |
5091 | ||
5092 | ||
5093 | ac_ext=cc | |
249ed716 | 5094 | ac_cpp='$CXXCPP $CPPFLAGS' |
ff66d28f PE |
5095 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5096 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5097 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5098 | ||
5099 | echo '#include <math.h>' > conftest.h | |
5100 | if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \ | |
5101 | -o conftest.h.gch 1>&5 2>&1 && | |
5102 | echo '#error "pch failed"' > conftest.h && | |
5103 | echo '#include "conftest.h"' > conftest.cc && | |
5104 | $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ; | |
5105 | then | |
5106 | glibcxx_cv_prog_CXX_pch=yes | |
5107 | else | |
5108 | glibcxx_cv_prog_CXX_pch=no | |
5109 | fi | |
5110 | rm -f conftest* | |
5111 | CXXFLAGS=$ac_save_CXXFLAGS | |
5112 | ac_ext=c | |
249ed716 | 5113 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
5114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
249ed716 | 5117 | |
249ed716 | 5118 | |
ff66d28f PE |
5119 | fi |
5120 | echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5 | |
5121 | echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6 | |
5122 | enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch | |
44f0760e BK |
5123 | fi |
5124 | ||
44f0760e | 5125 | |
ff66d28f PE |
5126 | if test $enable_libstdcxx_pch = yes; then |
5127 | glibcxx_PCHFLAGS="-include bits/stdc++.h" | |
bddc3107 | 5128 | else |
ff66d28f | 5129 | glibcxx_PCHFLAGS="" |
bddc3107 | 5130 | fi |
249ed716 | 5131 | |
04e78786 | 5132 | |
ff66d28f PE |
5133 | |
5134 | # Enable all the variable C++ runtime options. | |
44f0760e | 5135 | # NB: C_MBCHAR must come early. |
58ac1d7f | 5136 | |
ff66d28f PE |
5137 | echo "$as_me:$LINENO: checking for underlying I/O to use" >&5 |
5138 | echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6 | |
5139 | # Check whether --enable-cstdio or --disable-cstdio was given. | |
58ac1d7f BK |
5140 | if test "${enable_cstdio+set}" = set; then |
5141 | enableval="$enable_cstdio" | |
ff66d28f PE |
5142 | |
5143 | case "$enableval" in | |
5144 | stdio) ;; | |
5145 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5 | |
5146 | echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;} | |
5147 | { (exit 1); exit 1; }; } ;; | |
5148 | esac | |
5149 | ||
58ac1d7f BK |
5150 | else |
5151 | enable_cstdio=stdio | |
ff66d28f | 5152 | fi; |
58ac1d7f BK |
5153 | |
5154 | ||
ff66d28f PE |
5155 | # Now that libio has been removed, you can have any color you want as long |
5156 | # as it's black. This is one big no-op until other packages are added, but | |
5157 | # showing the framework never hurts. | |
5158 | case ${enable_cstdio} in | |
5159 | stdio) | |
58ac1d7f BK |
5160 | CSTDIO_H=config/io/c_io_stdio.h |
5161 | BASIC_FILE_H=config/io/basic_file_stdio.h | |
5162 | BASIC_FILE_CC=config/io/basic_file_stdio.cc | |
ff66d28f PE |
5163 | echo "$as_me:$LINENO: result: stdio" >&5 |
5164 | echo "${ECHO_T}stdio" >&6 | |
58ac1d7f BK |
5165 | ;; |
5166 | esac | |
cc5112c9 | 5167 | |
ff66d28f PE |
5168 | |
5169 | ||
5170 | ||
5171 | ||
5172 | ac_ext=c | |
5173 | ac_cpp='$CPP $CPPFLAGS' | |
5174 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5175 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5177 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5178 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
c470c17d BK |
5179 | # On Suns, sometimes $CPP names a directory. |
5180 | if test -n "$CPP" && test -d "$CPP"; then | |
5181 | CPP= | |
5182 | fi | |
5183 | if test -z "$CPP"; then | |
ff66d28f PE |
5184 | if test "${ac_cv_prog_CPP+set}" = set; then |
5185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5186 | else | |
5187 | # Double quotes because CPP needs to be expanded | |
5188 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5189 | do | |
5190 | ac_preproc_ok=false | |
5191 | for ac_c_preproc_warn_flag in '' yes | |
5192 | do | |
5193 | # Use a header file that comes with gcc, so configuring glibc | |
5194 | # with a fresh cross-compiler works. | |
5195 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5196 | # <limits.h> exists even on freestanding compilers. | |
5197 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5198 | # not just through cpp. "Syntax error" is here to catch this case. | |
5199 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5200 | /* confdefs.h. */ |
5201 | _ACEOF | |
5202 | cat confdefs.h >>conftest.$ac_ext | |
5203 | cat >>conftest.$ac_ext <<_ACEOF | |
5204 | /* end confdefs.h. */ | |
5205 | #ifdef __STDC__ | |
5206 | # include <limits.h> | |
5207 | #else | |
5208 | # include <assert.h> | |
5209 | #endif | |
ec2075e9 | 5210 | Syntax error |
ff66d28f PE |
5211 | _ACEOF |
5212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5214 | ac_status=$? | |
5215 | grep -v '^ *+' conftest.er1 >conftest.err | |
5216 | rm -f conftest.er1 | |
5217 | cat conftest.err >&5 | |
5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5219 | (exit $ac_status); } >/dev/null; then | |
5220 | if test -s conftest.err; then | |
5221 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5223 | else |
5224 | ac_cpp_err= | |
5225 | fi | |
5226 | else | |
5227 | ac_cpp_err=yes | |
5228 | fi | |
5229 | if test -z "$ac_cpp_err"; then | |
5230 | : | |
5231 | else | |
5232 | echo "$as_me: failed program was:" >&5 | |
5233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5234 | ||
5235 | # Broken: fails on valid input. | |
5236 | continue | |
5237 | fi | |
5238 | rm -f conftest.err conftest.$ac_ext | |
5239 | ||
5240 | # OK, works on sane cases. Now check whether non-existent headers | |
5241 | # can be detected and how. | |
5242 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5243 | /* confdefs.h. */ |
5244 | _ACEOF | |
5245 | cat confdefs.h >>conftest.$ac_ext | |
5246 | cat >>conftest.$ac_ext <<_ACEOF | |
5247 | /* end confdefs.h. */ | |
5248 | #include <ac_nonexistent.h> | |
5249 | _ACEOF | |
5250 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5251 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5252 | ac_status=$? | |
5253 | grep -v '^ *+' conftest.er1 >conftest.err | |
5254 | rm -f conftest.er1 | |
5255 | cat conftest.err >&5 | |
5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5257 | (exit $ac_status); } >/dev/null; then | |
5258 | if test -s conftest.err; then | |
5259 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5260 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5261 | else |
5262 | ac_cpp_err= | |
5263 | fi | |
5264 | else | |
5265 | ac_cpp_err=yes | |
5266 | fi | |
5267 | if test -z "$ac_cpp_err"; then | |
5268 | # Broken: success on invalid input. | |
5269 | continue | |
5270 | else | |
5271 | echo "$as_me: failed program was:" >&5 | |
5272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5273 | ||
5274 | # Passes both tests. | |
5275 | ac_preproc_ok=: | |
5276 | break | |
5277 | fi | |
5278 | rm -f conftest.err conftest.$ac_ext | |
5279 | ||
5280 | done | |
5281 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5282 | rm -f conftest.err conftest.$ac_ext | |
5283 | if $ac_preproc_ok; then | |
5284 | break | |
5285 | fi | |
5286 | ||
5287 | done | |
5288 | ac_cv_prog_CPP=$CPP | |
5289 | ||
5290 | fi | |
5291 | CPP=$ac_cv_prog_CPP | |
b2dad0e3 | 5292 | else |
ff66d28f PE |
5293 | ac_cv_prog_CPP=$CPP |
5294 | fi | |
5295 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5296 | echo "${ECHO_T}$CPP" >&6 | |
5297 | ac_preproc_ok=false | |
5298 | for ac_c_preproc_warn_flag in '' yes | |
5299 | do | |
5300 | # Use a header file that comes with gcc, so configuring glibc | |
5301 | # with a fresh cross-compiler works. | |
5302 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5303 | # <limits.h> exists even on freestanding compilers. | |
c470c17d | 5304 | # On the NeXT, cc -E runs the code through the compiler's parser, |
ff66d28f PE |
5305 | # not just through cpp. "Syntax error" is here to catch this case. |
5306 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5307 | /* confdefs.h. */ |
5308 | _ACEOF | |
5309 | cat confdefs.h >>conftest.$ac_ext | |
5310 | cat >>conftest.$ac_ext <<_ACEOF | |
5311 | /* end confdefs.h. */ | |
5312 | #ifdef __STDC__ | |
5313 | # include <limits.h> | |
5314 | #else | |
5315 | # include <assert.h> | |
5316 | #endif | |
ec2075e9 | 5317 | Syntax error |
ff66d28f PE |
5318 | _ACEOF |
5319 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5320 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5321 | ac_status=$? | |
5322 | grep -v '^ *+' conftest.er1 >conftest.err | |
5323 | rm -f conftest.er1 | |
5324 | cat conftest.err >&5 | |
5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5326 | (exit $ac_status); } >/dev/null; then | |
5327 | if test -s conftest.err; then | |
5328 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5329 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5330 | else |
5331 | ac_cpp_err= | |
5332 | fi | |
5333 | else | |
5334 | ac_cpp_err=yes | |
5335 | fi | |
5336 | if test -z "$ac_cpp_err"; then | |
b2dad0e3 BK |
5337 | : |
5338 | else | |
ff66d28f PE |
5339 | echo "$as_me: failed program was:" >&5 |
5340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5341 | ||
5342 | # Broken: fails on valid input. | |
5343 | continue | |
5344 | fi | |
5345 | rm -f conftest.err conftest.$ac_ext | |
5346 | ||
5347 | # OK, works on sane cases. Now check whether non-existent headers | |
5348 | # can be detected and how. | |
5349 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5350 | /* confdefs.h. */ |
5351 | _ACEOF | |
5352 | cat confdefs.h >>conftest.$ac_ext | |
5353 | cat >>conftest.$ac_ext <<_ACEOF | |
5354 | /* end confdefs.h. */ | |
5355 | #include <ac_nonexistent.h> | |
5356 | _ACEOF | |
5357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5359 | ac_status=$? | |
5360 | grep -v '^ *+' conftest.er1 >conftest.err | |
5361 | rm -f conftest.er1 | |
5362 | cat conftest.err >&5 | |
5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5364 | (exit $ac_status); } >/dev/null; then | |
5365 | if test -s conftest.err; then | |
5366 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5368 | else |
5369 | ac_cpp_err= | |
5370 | fi | |
5371 | else | |
5372 | ac_cpp_err=yes | |
5373 | fi | |
5374 | if test -z "$ac_cpp_err"; then | |
5375 | # Broken: success on invalid input. | |
5376 | continue | |
5377 | else | |
5378 | echo "$as_me: failed program was:" >&5 | |
5379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5380 | ||
5381 | # Passes both tests. | |
5382 | ac_preproc_ok=: | |
5383 | break | |
5384 | fi | |
5385 | rm -f conftest.err conftest.$ac_ext | |
5386 | ||
5387 | done | |
5388 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5389 | rm -f conftest.err conftest.$ac_ext | |
5390 | if $ac_preproc_ok; then | |
c470c17d BK |
5391 | : |
5392 | else | |
ff66d28f PE |
5393 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5394 | See \`config.log' for more details." >&5 | |
5395 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5396 | See \`config.log' for more details." >&2;} | |
5397 | { (exit 1); exit 1; }; } | |
5398 | fi | |
5399 | ||
5400 | ac_ext=c | |
5401 | ac_cpp='$CPP $CPPFLAGS' | |
5402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5405 | ||
5406 | ||
5407 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5408 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5409 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5411 | else | |
5412 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5413 | then ac_cv_prog_egrep='grep -E' | |
5414 | else ac_cv_prog_egrep='egrep' | |
5415 | fi | |
5416 | fi | |
5417 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5418 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5419 | EGREP=$ac_cv_prog_egrep | |
5420 | ||
5421 | ||
5422 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5423 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5424 | if test "${ac_cv_header_stdc+set}" = set; then | |
5425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5426 | else | |
5427 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5428 | /* confdefs.h. */ |
5429 | _ACEOF | |
5430 | cat confdefs.h >>conftest.$ac_ext | |
5431 | cat >>conftest.$ac_ext <<_ACEOF | |
5432 | /* end confdefs.h. */ | |
5433 | #include <stdlib.h> | |
5434 | #include <stdarg.h> | |
5435 | #include <string.h> | |
5436 | #include <float.h> | |
5437 | ||
5438 | int | |
5439 | main () | |
5440 | { | |
5441 | ||
5442 | ; | |
5443 | return 0; | |
5444 | } | |
5445 | _ACEOF | |
5446 | rm -f conftest.$ac_objext | |
5447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 5448 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 5449 | ac_status=$? |
ec2075e9 BK |
5450 | grep -v '^ *+' conftest.er1 >conftest.err |
5451 | rm -f conftest.er1 | |
5452 | cat conftest.err >&5 | |
ff66d28f PE |
5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5454 | (exit $ac_status); } && | |
780028b6 BK |
5455 | { ac_try='test -z "$ac_c_werror_flag" |
5456 | || test ! -s conftest.err' | |
ec2075e9 BK |
5457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5458 | (eval $ac_try) 2>&5 | |
5459 | ac_status=$? | |
5460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5461 | (exit $ac_status); }; } && | |
5462 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
5463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5464 | (eval $ac_try) 2>&5 | |
5465 | ac_status=$? | |
5466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5467 | (exit $ac_status); }; }; then | |
5468 | ac_cv_header_stdc=yes | |
5469 | else | |
5470 | echo "$as_me: failed program was:" >&5 | |
5471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5472 | ||
5473 | ac_cv_header_stdc=no | |
5474 | fi | |
ec2075e9 | 5475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
5476 | |
5477 | if test $ac_cv_header_stdc = yes; then | |
5478 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5479 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5480 | /* confdefs.h. */ |
5481 | _ACEOF | |
5482 | cat confdefs.h >>conftest.$ac_ext | |
5483 | cat >>conftest.$ac_ext <<_ACEOF | |
5484 | /* end confdefs.h. */ | |
5485 | #include <string.h> | |
5486 | ||
5487 | _ACEOF | |
5488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5489 | $EGREP "memchr" >/dev/null 2>&1; then | |
c470c17d BK |
5490 | : |
5491 | else | |
ff66d28f PE |
5492 | ac_cv_header_stdc=no |
5493 | fi | |
5494 | rm -f conftest* | |
5495 | ||
5496 | fi | |
5497 | ||
5498 | if test $ac_cv_header_stdc = yes; then | |
5499 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5500 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5501 | /* confdefs.h. */ |
5502 | _ACEOF | |
5503 | cat confdefs.h >>conftest.$ac_ext | |
5504 | cat >>conftest.$ac_ext <<_ACEOF | |
5505 | /* end confdefs.h. */ | |
5506 | #include <stdlib.h> | |
5507 | ||
5508 | _ACEOF | |
5509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5510 | $EGREP "free" >/dev/null 2>&1; then | |
5511 | : | |
5512 | else | |
5513 | ac_cv_header_stdc=no | |
5514 | fi | |
5515 | rm -f conftest* | |
5516 | ||
5517 | fi | |
5518 | ||
5519 | if test $ac_cv_header_stdc = yes; then | |
5520 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5521 | if test "$cross_compiling" = yes; then | |
5522 | : | |
5523 | else | |
5524 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5525 | /* confdefs.h. */ |
5526 | _ACEOF | |
5527 | cat confdefs.h >>conftest.$ac_ext | |
5528 | cat >>conftest.$ac_ext <<_ACEOF | |
5529 | /* end confdefs.h. */ | |
5530 | #include <ctype.h> | |
5531 | #if ((' ' & 0x0FF) == 0x020) | |
5532 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5533 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5534 | #else | |
5535 | # define ISLOWER(c) \ | |
ec2075e9 BK |
5536 | (('a' <= (c) && (c) <= 'i') \ |
5537 | || ('j' <= (c) && (c) <= 'r') \ | |
5538 | || ('s' <= (c) && (c) <= 'z')) | |
ff66d28f PE |
5539 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5540 | #endif | |
5541 | ||
5542 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5543 | int | |
5544 | main () | |
5545 | { | |
5546 | int i; | |
5547 | for (i = 0; i < 256; i++) | |
5548 | if (XOR (islower (i), ISLOWER (i)) | |
ec2075e9 | 5549 | || toupper (i) != TOUPPER (i)) |
ff66d28f PE |
5550 | exit(2); |
5551 | exit (0); | |
5552 | } | |
5553 | _ACEOF | |
5554 | rm -f conftest$ac_exeext | |
5555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5556 | (eval $ac_link) 2>&5 | |
5557 | ac_status=$? | |
5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5561 | (eval $ac_try) 2>&5 | |
5562 | ac_status=$? | |
5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5564 | (exit $ac_status); }; }; then | |
5565 | : | |
5566 | else | |
5567 | echo "$as_me: program exited with status $ac_status" >&5 | |
5568 | echo "$as_me: failed program was:" >&5 | |
5569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5570 | ||
5571 | ( exit $ac_status ) | |
5572 | ac_cv_header_stdc=no | |
b2dad0e3 | 5573 | fi |
ec2075e9 | 5574 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b2dad0e3 | 5575 | fi |
33590f13 | 5576 | fi |
33590f13 | 5577 | fi |
ff66d28f PE |
5578 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5579 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5580 | if test $ac_cv_header_stdc = yes; then | |
5581 | ||
5582 | cat >>confdefs.h <<\_ACEOF | |
5583 | #define STDC_HEADERS 1 | |
5584 | _ACEOF | |
5585 | ||
5586 | fi | |
5587 | ||
5588 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5589 | ||
5590 | ||
5591 | ||
5592 | ||
5593 | ||
5594 | ||
5595 | ||
5596 | ||
5597 | ||
5598 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ec2075e9 | 5599 | inttypes.h stdint.h unistd.h |
ff66d28f PE |
5600 | do |
5601 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5602 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5604 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5606 | else | |
5607 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5608 | /* confdefs.h. */ |
5609 | _ACEOF | |
5610 | cat confdefs.h >>conftest.$ac_ext | |
5611 | cat >>conftest.$ac_ext <<_ACEOF | |
5612 | /* end confdefs.h. */ | |
5613 | $ac_includes_default | |
5614 | ||
5615 | #include <$ac_header> | |
5616 | _ACEOF | |
5617 | rm -f conftest.$ac_objext | |
5618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 5619 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 5620 | ac_status=$? |
ec2075e9 BK |
5621 | grep -v '^ *+' conftest.er1 >conftest.err |
5622 | rm -f conftest.er1 | |
5623 | cat conftest.err >&5 | |
ff66d28f PE |
5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5625 | (exit $ac_status); } && | |
780028b6 BK |
5626 | { ac_try='test -z "$ac_c_werror_flag" |
5627 | || test ! -s conftest.err' | |
ec2075e9 BK |
5628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5629 | (eval $ac_try) 2>&5 | |
5630 | ac_status=$? | |
5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5632 | (exit $ac_status); }; } && | |
5633 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5635 | (eval $ac_try) 2>&5 | |
5636 | ac_status=$? | |
5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5638 | (exit $ac_status); }; }; then | |
5639 | eval "$as_ac_Header=yes" | |
5640 | else | |
5641 | echo "$as_me: failed program was:" >&5 | |
5642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5643 | ||
5644 | eval "$as_ac_Header=no" | |
5645 | fi | |
ec2075e9 | 5646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
5647 | fi |
5648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5650 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5651 | cat >>confdefs.h <<_ACEOF | |
5652 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5653 | _ACEOF | |
5654 | ||
33590f13 | 5655 | fi |
ff66d28f PE |
5656 | |
5657 | done | |
5658 | ||
33590f13 BK |
5659 | |
5660 | ||
ff66d28f PE |
5661 | echo "$as_me:$LINENO: checking for C locale to use" >&5 |
5662 | echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6 | |
5663 | # Check whether --enable-clocale or --disable-clocale was given. | |
4e10943d BK |
5664 | if test "${enable_clocale+set}" = set; then |
5665 | enableval="$enable_clocale" | |
ff66d28f PE |
5666 | |
5667 | case "$enableval" in | |
5668 | generic|gnu|ieee_1003.1-2001|yes|no|auto) ;; | |
5669 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5 | |
5670 | echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;} | |
5671 | { (exit 1); exit 1; }; } ;; | |
5672 | esac | |
5673 | ||
b2dad0e3 | 5674 | else |
ff66d28f PE |
5675 | enable_clocale=auto |
5676 | fi; | |
b2dad0e3 | 5677 | |
20427c6b | 5678 | |
ff66d28f PE |
5679 | # If they didn't use this option switch, or if they specified --enable |
5680 | # with no specific model, we'll have to look for one. If they | |
5681 | # specified --disable (???), do likewise. | |
5682 | if test $enable_clocale = no || test $enable_clocale = yes; then | |
5683 | enable_clocale=auto | |
5684 | fi | |
5685 | ||
5686 | # Either a known package, or "auto" | |
4e10943d | 5687 | enable_clocale_flag=$enable_clocale |
dd75251f | 5688 | |
ff66d28f PE |
5689 | # Probe for locale support if no specific model is specified. |
5690 | # Default to "generic". | |
5691 | if test $enable_clocale_flag = auto; then | |
7d3998a4 PE |
5692 | case ${target_os} in |
5693 | linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu) | |
ff66d28f | 5694 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
5695 | /* confdefs.h. */ |
5696 | _ACEOF | |
5697 | cat confdefs.h >>conftest.$ac_ext | |
5698 | cat >>conftest.$ac_ext <<_ACEOF | |
5699 | /* end confdefs.h. */ | |
56deb74c BK |
5700 | |
5701 | #include <features.h> | |
37bc6ca2 | 5702 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) |
3d7c150e | 5703 | _GLIBCXX_ok |
56deb74c | 5704 | #endif |
ff66d28f PE |
5705 | |
5706 | _ACEOF | |
56deb74c | 5707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ff66d28f | 5708 | $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then |
56deb74c BK |
5709 | enable_clocale_flag=gnu |
5710 | else | |
56deb74c BK |
5711 | enable_clocale_flag=generic |
5712 | fi | |
5713 | rm -f conftest* | |
5714 | ||
1451a492 | 5715 | |
ff66d28f | 5716 | # Test for bugs early in glibc-2.2.x series |
7d3998a4 | 5717 | if test $enable_clocale_flag = gnu; then |
ff66d28f | 5718 | if test "$cross_compiling" = yes; then |
1451a492 BK |
5719 | enable_clocale_flag=generic |
5720 | else | |
ff66d28f | 5721 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
5722 | /* confdefs.h. */ |
5723 | _ACEOF | |
5724 | cat confdefs.h >>conftest.$ac_ext | |
5725 | cat >>conftest.$ac_ext <<_ACEOF | |
5726 | /* end confdefs.h. */ | |
5727 | ||
5728 | #define _GNU_SOURCE 1 | |
5729 | #include <locale.h> | |
5730 | #include <string.h> | |
5731 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | |
5732 | extern __typeof(newlocale) __newlocale; | |
5733 | extern __typeof(duplocale) __duplocale; | |
5734 | extern __typeof(strcoll_l) __strcoll_l; | |
5735 | #endif | |
5736 | int main() | |
5737 | { | |
5738 |