]>
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 | ||
84946e72 | 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 DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS glibcxx_thread_h 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 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] | |
517da0ce MM |
872 | --enable-c99 turns on ISO/IEC 9899:1999 support |
873 | [default=yes] | |
347669a0 BK |
874 | --enable-long-long enable template specializations for 'long long' |
875 | [default=yes] | |
876 | --enable-wchar_t enable template specializations for 'wchar_t' | |
517da0ce MM |
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 | |
bb2b2a24 | 1379 | libtool_VERSION=6:6: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 | |
3a24bf5d | 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 | |
3a24bf5d KC |
1965 | |
1966 | ||
1967 | ||
1968 | ||
ff66d28f PE |
1969 | # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets |
1970 | # up critical shell variables. | |
1971 | ||
82ba99d5 PE |
1972 | # Keep these sync'd with the list in Makefile.am. The first provides an |
1973 | # expandable list at autoconf time; the second provides an expandable list | |
1974 | # (i.e., shell variable) at configure time. | |
1975 | ||
1976 | SUBDIRS='include libmath libsupc++ src po testsuite' | |
1977 | ||
ff66d28f PE |
1978 | # These need to be absolute paths, yet at the same time need to |
1979 | # canonicalize only relative paths, because then amd will not unmount | |
1980 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
1981 | glibcxx_builddir=`${PWDCMD-pwd}` | |
1982 | case $srcdir in | |
1983 | \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;; | |
1984 | *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
1985 | esac | |
1986 | toplevel_srcdir=${glibcxx_srcdir}/.. | |
1987 | ||
1988 | ||
1989 | ||
1990 | ||
1991 | # We use these options to decide which functions to include. They are | |
1992 | # set from the top level. | |
1993 | ||
1994 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
1995 | if test "${with_target_subdir+set}" = set; then | |
1996 | withval="$with_target_subdir" | |
1997 | ||
1998 | fi; | |
1999 | ||
2000 | ||
2001 | # Check whether --with-cross-host or --without-cross-host was given. | |
2002 | if test "${with_cross_host+set}" = set; then | |
2003 | withval="$with_cross_host" | |
2004 | ||
2005 | fi; | |
2006 | ||
2007 | ||
2008 | # Check whether --with-newlib or --without-newlib was given. | |
2009 | if test "${with_newlib+set}" = set; then | |
2010 | withval="$with_newlib" | |
2011 | ||
2012 | fi; | |
2013 | ||
f6dda651 PE |
2014 | # We're almost certainly being configured before anything else which uses |
2015 | # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that | |
2016 | # we not cache the value of CXX that we "discover" here, because it's set | |
2017 | # to something unique for us and libjava. Other target libraries need to | |
2018 | # find CXX for themselves. We yank the rug out from under the normal AC_* | |
2019 | # process by sneakily renaming the cache variable. This also lets us debug | |
2020 | # the value of "our" CXX in postmortems. | |
2021 | # | |
2022 | # We must also force CXX to /not/ be a precious variable, otherwise the | |
2023 | # wrong (non-multilib-adjusted) value will be used in multilibs. This | |
2024 | # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side | |
2025 | # effect, CXXFLAGS is no longer automagically subst'd, so we have to do | |
2026 | # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS. | |
2027 | # | |
2028 | # -fno-builtin must be present here so that a non-conflicting form of | |
2029 | # std::exit can be guessed by AC_PROG_CXX, and used in later tests. | |
2030 | ||
2031 | ||
2032 | ||
2033 | ||
2034 | save_CXXFLAGS="$CXXFLAGS" | |
2035 | CXXFLAGS="$CXXFLAGS -fno-builtin" | |
ff66d28f PE |
2036 | ac_ext=c |
2037 | ac_cpp='$CPP $CPPFLAGS' | |
2038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2041 | if test -n "$ac_tool_prefix"; then | |
2042 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2043 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2044 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2046 | if test "${ac_cv_prog_CC+set}" = set; then | |
2047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2048 | else |
ff66d28f PE |
2049 | if test -n "$CC"; then |
2050 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2051 | else |
ff66d28f PE |
2052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2053 | for as_dir in $PATH | |
2054 | do | |
2055 | IFS=$as_save_IFS | |
2056 | test -z "$as_dir" && as_dir=. | |
2057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2058 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2059 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2060 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2061 | break 2 | |
2062 | fi | |
2063 | done | |
2064 | done | |
2065 | ||
b2dad0e3 BK |
2066 | fi |
2067 | fi | |
ff66d28f PE |
2068 | CC=$ac_cv_prog_CC |
2069 | if test -n "$CC"; then | |
2070 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2071 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2072 | else |
ff66d28f PE |
2073 | echo "$as_me:$LINENO: result: no" >&5 |
2074 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2075 | fi |
2076 | ||
ff66d28f PE |
2077 | fi |
2078 | if test -z "$ac_cv_prog_CC"; then | |
2079 | ac_ct_CC=$CC | |
2080 | # Extract the first word of "gcc", so it can be a program name with args. | |
2081 | set dummy gcc; ac_word=$2 | |
2082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2084 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2086 | else |
ff66d28f PE |
2087 | if test -n "$ac_ct_CC"; then |
2088 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 2089 | else |
ff66d28f PE |
2090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2091 | for as_dir in $PATH | |
2092 | do | |
2093 | IFS=$as_save_IFS | |
2094 | test -z "$as_dir" && as_dir=. | |
2095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2097 | ac_cv_prog_ac_ct_CC="gcc" | |
2098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2099 | break 2 | |
2100 | fi | |
2101 | done | |
2102 | done | |
2103 | ||
b2dad0e3 BK |
2104 | fi |
2105 | fi | |
ff66d28f PE |
2106 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2107 | if test -n "$ac_ct_CC"; then | |
2108 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2109 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b2dad0e3 | 2110 | else |
ff66d28f PE |
2111 | echo "$as_me:$LINENO: result: no" >&5 |
2112 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 2113 | fi |
b2dad0e3 | 2114 | |
ff66d28f PE |
2115 | CC=$ac_ct_CC |
2116 | else | |
2117 | CC="$ac_cv_prog_CC" | |
b2dad0e3 BK |
2118 | fi |
2119 | ||
ff66d28f PE |
2120 | if test -z "$CC"; then |
2121 | if test -n "$ac_tool_prefix"; then | |
2122 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2123 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2124 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2125 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2126 | if test "${ac_cv_prog_CC+set}" = set; then | |
2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2128 | else | |
2129 | if test -n "$CC"; then | |
2130 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2131 | else | |
2132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2133 | for as_dir in $PATH | |
2134 | do | |
2135 | IFS=$as_save_IFS | |
2136 | test -z "$as_dir" && as_dir=. | |
2137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2138 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2139 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2141 | break 2 | |
b2dad0e3 | 2142 | fi |
ff66d28f PE |
2143 | done |
2144 | done | |
93b85586 | 2145 | |
ff66d28f PE |
2146 | fi |
2147 | fi | |
2148 | CC=$ac_cv_prog_CC | |
2149 | if test -n "$CC"; then | |
2150 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2151 | echo "${ECHO_T}$CC" >&6 | |
974e336b | 2152 | else |
ff66d28f PE |
2153 | echo "$as_me:$LINENO: result: no" >&5 |
2154 | echo "${ECHO_T}no" >&6 | |
2155 | fi | |
974e336b | 2156 | |
974e336b | 2157 | fi |
ff66d28f PE |
2158 | if test -z "$ac_cv_prog_CC"; then |
2159 | ac_ct_CC=$CC | |
2160 | # Extract the first word of "cc", so it can be a program name with args. | |
2161 | set dummy cc; ac_word=$2 | |
2162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2164 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2166 | else | |
2167 | if test -n "$ac_ct_CC"; then | |
2168 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2169 | else | |
2170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2171 | for as_dir in $PATH | |
2172 | do | |
2173 | IFS=$as_save_IFS | |
2174 | test -z "$as_dir" && as_dir=. | |
2175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2176 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2177 | ac_cv_prog_ac_ct_CC="cc" | |
2178 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2179 | break 2 | |
2180 | fi | |
2181 | done | |
2182 | done | |
33590f13 | 2183 | |
974e336b | 2184 | fi |
ff66d28f PE |
2185 | fi |
2186 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2187 | if test -n "$ac_ct_CC"; then | |
2188 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2189 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
33590f13 | 2190 | else |
ff66d28f PE |
2191 | echo "$as_me:$LINENO: result: no" >&5 |
2192 | echo "${ECHO_T}no" >&6 | |
33590f13 BK |
2193 | fi |
2194 | ||
ff66d28f PE |
2195 | CC=$ac_ct_CC |
2196 | else | |
2197 | CC="$ac_cv_prog_CC" | |
2198 | fi | |
33590f13 | 2199 | |
ff66d28f PE |
2200 | fi |
2201 | if test -z "$CC"; then | |
2202 | # Extract the first word of "cc", so it can be a program name with args. | |
2203 | set dummy cc; ac_word=$2 | |
2204 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2206 | if test "${ac_cv_prog_CC+set}" = set; then | |
2207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2208 | else |
ff66d28f PE |
2209 | if test -n "$CC"; then |
2210 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2211 | else |
ff66d28f PE |
2212 | ac_prog_rejected=no |
2213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2214 | for as_dir in $PATH | |
2215 | do | |
2216 | IFS=$as_save_IFS | |
2217 | test -z "$as_dir" && as_dir=. | |
2218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2219 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2220 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2221 | ac_prog_rejected=yes | |
2222 | continue | |
2223 | fi | |
2224 | ac_cv_prog_CC="cc" | |
2225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2226 | break 2 | |
2227 | fi | |
2228 | done | |
2229 | done | |
2230 | ||
2231 | if test $ac_prog_rejected = yes; then | |
2232 | # We found a bogon in the path, so make sure we never use it. | |
2233 | set dummy $ac_cv_prog_CC | |
2234 | shift | |
2235 | if test $# != 0; then | |
2236 | # We chose a different compiler from the bogus one. | |
2237 | # However, it has the same basename, so the bogon will be chosen | |
2238 | # first if we set CC to just the basename; use the full file name. | |
2239 | shift | |
2240 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2241 | fi | |
b2dad0e3 BK |
2242 | fi |
2243 | fi | |
ff66d28f PE |
2244 | fi |
2245 | CC=$ac_cv_prog_CC | |
2246 | if test -n "$CC"; then | |
2247 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2248 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2249 | else |
ff66d28f PE |
2250 | echo "$as_me:$LINENO: result: no" >&5 |
2251 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2252 | fi |
2253 | ||
ff66d28f PE |
2254 | fi |
2255 | if test -z "$CC"; then | |
2256 | if test -n "$ac_tool_prefix"; then | |
2257 | for ac_prog in cl | |
2258 | do | |
2259 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2260 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2263 | if test "${ac_cv_prog_CC+set}" = set; then | |
2264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2265 | else |
ff66d28f PE |
2266 | if test -n "$CC"; then |
2267 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2268 | else |
ff66d28f PE |
2269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2270 | for as_dir in $PATH | |
2271 | do | |
2272 | IFS=$as_save_IFS | |
2273 | test -z "$as_dir" && as_dir=. | |
2274 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2275 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2276 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2278 | break 2 | |
2279 | fi | |
2280 | done | |
2281 | done | |
2282 | ||
b2dad0e3 BK |
2283 | fi |
2284 | fi | |
ff66d28f PE |
2285 | CC=$ac_cv_prog_CC |
2286 | if test -n "$CC"; then | |
2287 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2288 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2289 | else |
ff66d28f PE |
2290 | echo "$as_me:$LINENO: result: no" >&5 |
2291 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2292 | fi |
2293 | ||
ff66d28f PE |
2294 | test -n "$CC" && break |
2295 | done | |
2296 | fi | |
2297 | if test -z "$CC"; then | |
2298 | ac_ct_CC=$CC | |
2299 | for ac_prog in cl | |
2300 | do | |
2301 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2302 | set dummy $ac_prog; ac_word=$2 | |
2303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2305 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2307 | else |
ff66d28f PE |
2308 | if test -n "$ac_ct_CC"; then |
2309 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 2310 | else |
ff66d28f PE |
2311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2312 | for as_dir in $PATH | |
2313 | do | |
2314 | IFS=$as_save_IFS | |
2315 | test -z "$as_dir" && as_dir=. | |
2316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2318 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2320 | break 2 | |
2321 | fi | |
2322 | done | |
2323 | done | |
2324 | ||
b2dad0e3 BK |
2325 | fi |
2326 | fi | |
ff66d28f PE |
2327 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2328 | if test -n "$ac_ct_CC"; then | |
2329 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2330 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b2dad0e3 | 2331 | else |
ff66d28f PE |
2332 | echo "$as_me:$LINENO: result: no" >&5 |
2333 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2334 | fi |
2335 | ||
ff66d28f PE |
2336 | test -n "$ac_ct_CC" && break |
2337 | done | |
b2dad0e3 | 2338 | |
ff66d28f PE |
2339 | CC=$ac_ct_CC |
2340 | fi | |
2341 | ||
2342 | fi | |
2343 | ||
2344 | ||
2345 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2346 | See \`config.log' for more details." >&5 | |
2347 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2348 | See \`config.log' for more details." >&2;} | |
2349 | { (exit 1); exit 1; }; } | |
2350 | ||
2351 | # Provide some information about the compiler. | |
2352 | echo "$as_me:$LINENO:" \ | |
2353 | "checking for C compiler version" >&5 | |
2354 | ac_compiler=`set X $ac_compile; echo $2` | |
2355 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2356 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2357 | ac_status=$? | |
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2359 | (exit $ac_status); } | |
2360 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2361 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2362 | ac_status=$? | |
2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2364 | (exit $ac_status); } | |
2365 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2366 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2367 | ac_status=$? | |
2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2369 | (exit $ac_status); } | |
2370 | ||
2371 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2372 | /* confdefs.h. */ |
2373 | _ACEOF | |
2374 | cat confdefs.h >>conftest.$ac_ext | |
2375 | cat >>conftest.$ac_ext <<_ACEOF | |
2376 | /* end confdefs.h. */ | |
2377 | ||
3a24bf5d KC |
2378 | int |
2379 | main () | |
2380 | { | |
2381 | ||
2382 | ; | |
2383 | return 0; | |
2384 | } | |
2385 | _ACEOF | |
2386 | # FIXME: Cleanup? | |
2387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2388 | (eval $ac_link) 2>&5 | |
2389 | ac_status=$? | |
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2391 | (exit $ac_status); }; then | |
2392 | gcc_no_link=no | |
2393 | else | |
2394 | gcc_no_link=yes | |
2395 | fi | |
2396 | ||
2397 | if test x$gcc_no_link = xyes; then | |
2398 | # Setting cross_compile will disable run tests; it will | |
2399 | # also disable AC_CHECK_FILE but that's generally | |
2400 | # correct if we can't link. | |
2401 | cross_compiling=yes | |
2402 | EXEEXT= | |
2403 | else | |
2404 | cat >conftest.$ac_ext <<_ACEOF | |
2405 | /* confdefs.h. */ | |
2406 | _ACEOF | |
2407 | cat confdefs.h >>conftest.$ac_ext | |
2408 | cat >>conftest.$ac_ext <<_ACEOF | |
2409 | /* end confdefs.h. */ | |
2410 | ||
ff66d28f PE |
2411 | int |
2412 | main () | |
2413 | { | |
2414 | ||
2415 | ; | |
2416 | return 0; | |
2417 | } | |
2418 | _ACEOF | |
2419 | ac_clean_files_save=$ac_clean_files | |
2420 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2421 | # Try to create an executable without -o first, disregard a.out. | |
2422 | # It will help us diagnose broken compilers, and finding out an intuition | |
2423 | # of exeext. | |
ec2075e9 BK |
2424 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2425 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ff66d28f PE |
2426 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2427 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2428 | (eval $ac_link_default) 2>&5 | |
2429 | ac_status=$? | |
2430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2431 | (exit $ac_status); }; then | |
2432 | # Find the output, starting from the most likely. This scheme is | |
2433 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2434 | # resort. | |
2435 | ||
2436 | # Be careful to initialize this variable, since it used to be cached. | |
2437 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2438 | ac_cv_exeext= | |
2439 | # b.out is created by i960 compilers. | |
2440 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2441 | do | |
2442 | test -f "$ac_file" || continue | |
2443 | case $ac_file in | |
2444 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ec2075e9 | 2445 | ;; |
ff66d28f | 2446 | conftest.$ac_ext ) |
ec2075e9 BK |
2447 | # This is the source file. |
2448 | ;; | |
ff66d28f | 2449 | [ab].out ) |
ec2075e9 BK |
2450 | # We found the default executable, but exeext='' is most |
2451 | # certainly right. | |
2452 | break;; | |
ff66d28f | 2453 | *.* ) |
ec2075e9 BK |
2454 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2455 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2456 | # but it would be cool to find out if it's true. Does anybody | |
2457 | # maintain Libtool? --akim. | |
2458 | export ac_cv_exeext | |
2459 | break;; | |
ff66d28f | 2460 | * ) |
ec2075e9 | 2461 | break;; |
ff66d28f PE |
2462 | esac |
2463 | done | |
b2dad0e3 | 2464 | else |
ff66d28f PE |
2465 | echo "$as_me: failed program was:" >&5 |
2466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2467 | ||
2468 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2469 | See \`config.log' for more details." >&5 | |
2470 | echo "$as_me: error: C compiler cannot create executables | |
2471 | See \`config.log' for more details." >&2;} | |
2472 | { (exit 77); exit 77; }; } | |
2473 | fi | |
2474 | ||
2475 | ac_exeext=$ac_cv_exeext | |
2476 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2477 | echo "${ECHO_T}$ac_file" >&6 | |
2478 | ||
2479 | # Check the compiler produces executables we can run. If not, either | |
2480 | # the compiler is broken, or we cross compile. | |
2481 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2482 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2483 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2484 | # If not cross compiling, check that we can run a simple program. | |
2485 | if test "$cross_compiling" != yes; then | |
2486 | if { ac_try='./$ac_file' | |
2487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2488 | (eval $ac_try) 2>&5 | |
2489 | ac_status=$? | |
2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2491 | (exit $ac_status); }; }; then | |
2492 | cross_compiling=no | |
2493 | else | |
2494 | if test "$cross_compiling" = maybe; then | |
2495 | cross_compiling=yes | |
2496 | else | |
2497 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2498 | If you meant to cross compile, use \`--host'. | |
2499 | See \`config.log' for more details." >&5 | |
2500 | echo "$as_me: error: cannot run C compiled programs. | |
2501 | If you meant to cross compile, use \`--host'. | |
2502 | See \`config.log' for more details." >&2;} | |
2503 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 2504 | fi |
ff66d28f | 2505 | fi |
b2dad0e3 | 2506 | fi |
ff66d28f PE |
2507 | echo "$as_me:$LINENO: result: yes" >&5 |
2508 | echo "${ECHO_T}yes" >&6 | |
2509 | ||
2510 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2511 | ac_clean_files=$ac_clean_files_save | |
2512 | # Check the compiler produces executables we can run. If not, either | |
2513 | # the compiler is broken, or we cross compile. | |
2514 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2515 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2516 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2517 | echo "${ECHO_T}$cross_compiling" >&6 | |
2518 | ||
2519 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2520 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2522 | (eval $ac_link) 2>&5 | |
2523 | ac_status=$? | |
2524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2525 | (exit $ac_status); }; then | |
2526 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2527 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2528 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2529 | # `rm'. | |
2530 | for ac_file in conftest.exe conftest conftest.*; do | |
2531 | test -f "$ac_file" || continue | |
2532 | case $ac_file in | |
2533 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2534 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ec2075e9 BK |
2535 | export ac_cv_exeext |
2536 | break;; | |
ff66d28f PE |
2537 | * ) break;; |
2538 | esac | |
2539 | done | |
b2dad0e3 | 2540 | else |
ff66d28f PE |
2541 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2542 | See \`config.log' for more details." >&5 | |
2543 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2544 | See \`config.log' for more details." >&2;} | |
2545 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
2546 | fi |
2547 | ||
ff66d28f PE |
2548 | rm -f conftest$ac_cv_exeext |
2549 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2550 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2551 | ||
2552 | rm -f conftest.$ac_ext | |
2553 | EXEEXT=$ac_cv_exeext | |
2554 | ac_exeext=$EXEEXT | |
3a24bf5d | 2555 | fi |
ff66d28f PE |
2556 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2557 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2558 | if test "${ac_cv_objext+set}" = set; then | |
2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2560 | else | |
2561 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2562 | /* confdefs.h. */ |
2563 | _ACEOF | |
2564 | cat confdefs.h >>conftest.$ac_ext | |
2565 | cat >>conftest.$ac_ext <<_ACEOF | |
2566 | /* end confdefs.h. */ | |
2567 | ||
2568 | int | |
2569 | main () | |
2570 | { | |
2571 | ||
2572 | ; | |
2573 | return 0; | |
2574 | } | |
2575 | _ACEOF | |
2576 | rm -f conftest.o conftest.obj | |
2577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2578 | (eval $ac_compile) 2>&5 | |
2579 | ac_status=$? | |
2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2581 | (exit $ac_status); }; then | |
2582 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2583 | case $ac_file in | |
2584 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2585 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2586 | break;; | |
2587 | esac | |
2588 | done | |
b2dad0e3 | 2589 | else |
ff66d28f PE |
2590 | echo "$as_me: failed program was:" >&5 |
2591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2592 | ||
2593 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2594 | See \`config.log' for more details." >&5 | |
2595 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2596 | See \`config.log' for more details." >&2;} | |
2597 | { (exit 1); exit 1; }; } | |
46840bcd | 2598 | fi |
ff66d28f PE |
2599 | |
2600 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
46840bcd | 2601 | fi |
ff66d28f PE |
2602 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2603 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2604 | OBJEXT=$ac_cv_objext | |
2605 | ac_objext=$OBJEXT | |
2606 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2607 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2608 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2610 | else | |
2611 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2612 | /* confdefs.h. */ |
2613 | _ACEOF | |
2614 | cat confdefs.h >>conftest.$ac_ext | |
2615 | cat >>conftest.$ac_ext <<_ACEOF | |
2616 | /* end confdefs.h. */ | |
46840bcd | 2617 | |
ff66d28f PE |
2618 | int |
2619 | main () | |
2620 | { | |
2621 | #ifndef __GNUC__ | |
2622 | choke me | |
2623 | #endif | |
2624 | ||
2625 | ; | |
2626 | return 0; | |
2627 | } | |
2628 | _ACEOF | |
2629 | rm -f conftest.$ac_objext | |
2630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2631 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2632 | ac_status=$? |
ec2075e9 BK |
2633 | grep -v '^ *+' conftest.er1 >conftest.err |
2634 | rm -f conftest.er1 | |
2635 | cat conftest.err >&5 | |
ff66d28f PE |
2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2637 | (exit $ac_status); } && | |
780028b6 BK |
2638 | { ac_try='test -z "$ac_c_werror_flag" |
2639 | || test ! -s conftest.err' | |
ec2075e9 BK |
2640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2641 | (eval $ac_try) 2>&5 | |
2642 | ac_status=$? | |
2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2644 | (exit $ac_status); }; } && | |
2645 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2647 | (eval $ac_try) 2>&5 | |
2648 | ac_status=$? | |
2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2650 | (exit $ac_status); }; }; then | |
2651 | ac_compiler_gnu=yes | |
2652 | else | |
2653 | echo "$as_me: failed program was:" >&5 | |
2654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2655 | ||
2656 | ac_compiler_gnu=no | |
2657 | fi | |
ec2075e9 | 2658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2659 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2660 | ||
2661 | fi | |
2662 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2663 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2664 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2665 | ac_test_CFLAGS=${CFLAGS+set} | |
2666 | ac_save_CFLAGS=$CFLAGS | |
2667 | CFLAGS="-g" | |
2668 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2669 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2670 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2672 | else | |
2673 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2674 | /* confdefs.h. */ |
2675 | _ACEOF | |
2676 | cat confdefs.h >>conftest.$ac_ext | |
2677 | cat >>conftest.$ac_ext <<_ACEOF | |
2678 | /* end confdefs.h. */ | |
2679 | ||
2680 | int | |
2681 | main () | |
2682 | { | |
2683 | ||
2684 | ; | |
2685 | return 0; | |
2686 | } | |
2687 | _ACEOF | |
2688 | rm -f conftest.$ac_objext | |
2689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2690 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2691 | ac_status=$? |
ec2075e9 BK |
2692 | grep -v '^ *+' conftest.er1 >conftest.err |
2693 | rm -f conftest.er1 | |
2694 | cat conftest.err >&5 | |
ff66d28f PE |
2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2696 | (exit $ac_status); } && | |
780028b6 BK |
2697 | { ac_try='test -z "$ac_c_werror_flag" |
2698 | || test ! -s conftest.err' | |
ec2075e9 BK |
2699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2700 | (eval $ac_try) 2>&5 | |
2701 | ac_status=$? | |
2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2703 | (exit $ac_status); }; } && | |
2704 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2706 | (eval $ac_try) 2>&5 | |
2707 | ac_status=$? | |
2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2709 | (exit $ac_status); }; }; then | |
2710 | ac_cv_prog_cc_g=yes | |
b2dad0e3 | 2711 | else |
ff66d28f PE |
2712 | echo "$as_me: failed program was:" >&5 |
2713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 2714 | |
ff66d28f | 2715 | ac_cv_prog_cc_g=no |
b2dad0e3 | 2716 | fi |
ec2075e9 | 2717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2718 | fi |
2719 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2720 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2721 | if test "$ac_test_CFLAGS" = set; then | |
2722 | CFLAGS=$ac_save_CFLAGS | |
2723 | elif test $ac_cv_prog_cc_g = yes; then | |
2724 | if test "$GCC" = yes; then | |
2725 | CFLAGS="-g -O2" | |
b2dad0e3 | 2726 | else |
ff66d28f | 2727 | CFLAGS="-g" |
b2dad0e3 | 2728 | fi |
ff66d28f PE |
2729 | else |
2730 | if test "$GCC" = yes; then | |
2731 | CFLAGS="-O2" | |
2732 | else | |
2733 | CFLAGS= | |
2734 | fi | |
2735 | fi | |
2736 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2737 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2738 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2740 | else | |
2741 | ac_cv_prog_cc_stdc=no | |
2742 | ac_save_CC=$CC | |
2743 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2744 | /* confdefs.h. */ |
2745 | _ACEOF | |
2746 | cat confdefs.h >>conftest.$ac_ext | |
2747 | cat >>conftest.$ac_ext <<_ACEOF | |
2748 | /* end confdefs.h. */ | |
2749 | #include <stdarg.h> | |
2750 | #include <stdio.h> | |
2751 | #include <sys/types.h> | |
2752 | #include <sys/stat.h> | |
2753 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2754 | struct buf { int x; }; | |
2755 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2756 | static char *e (p, i) | |
2757 | char **p; | |
2758 | int i; | |
2759 | { | |
2760 | return p[i]; | |
2761 | } | |
2762 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2763 | { | |
2764 | char *s; | |
2765 | va_list v; | |
2766 | va_start (v,p); | |
2767 | s = g (p, va_arg (v,int)); | |
2768 | va_end (v); | |
2769 | return s; | |
2770 | } | |
ec2075e9 BK |
2771 | |
2772 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2773 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2774 | These don't provoke an error unfortunately, instead are silently treated | |
2775 | as 'x'. The following induces an error, until -std1 is added to get | |
2776 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2777 | array size at least. It's necessary to write '\x00'==0 to get something | |
2778 | that's true only with -std1. */ | |
2779 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2780 | ||
ff66d28f PE |
2781 | int test (int i, double x); |
2782 | struct s1 {int (*f) (int a);}; | |
2783 | struct s2 {int (*f) (double a);}; | |
2784 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2785 | int argc; | |
2786 | char **argv; | |
2787 | int | |
2788 | main () | |
2789 | { | |
2790 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2791 | ; | |
2792 | return 0; | |
2793 | } | |
2794 | _ACEOF | |
2795 | # Don't try gcc -ansi; that turns off useful extensions and | |
2796 | # breaks some systems' header files. | |
2797 | # AIX -qlanglvl=ansi | |
2798 | # Ultrix and OSF/1 -std1 | |
2799 | # HP-UX 10.20 and later -Ae | |
2800 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2801 | # SVR4 -Xc -D__EXTENSIONS__ | |
2802 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2803 | do | |
2804 | CC="$ac_save_CC $ac_arg" | |
2805 | rm -f conftest.$ac_objext | |
2806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2807 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2808 | ac_status=$? |
ec2075e9 BK |
2809 | grep -v '^ *+' conftest.er1 >conftest.err |
2810 | rm -f conftest.er1 | |
2811 | cat conftest.err >&5 | |
ff66d28f PE |
2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2813 | (exit $ac_status); } && | |
780028b6 BK |
2814 | { ac_try='test -z "$ac_c_werror_flag" |
2815 | || test ! -s conftest.err' | |
ec2075e9 BK |
2816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2817 | (eval $ac_try) 2>&5 | |
2818 | ac_status=$? | |
2819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2820 | (exit $ac_status); }; } && | |
2821 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2823 | (eval $ac_try) 2>&5 | |
2824 | ac_status=$? | |
2825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2826 | (exit $ac_status); }; }; then | |
2827 | ac_cv_prog_cc_stdc=$ac_arg | |
2828 | break | |
2829 | else | |
2830 | echo "$as_me: failed program was:" >&5 | |
2831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2832 | ||
b2dad0e3 | 2833 | fi |
ec2075e9 | 2834 | rm -f conftest.err conftest.$ac_objext |
ff66d28f PE |
2835 | done |
2836 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2837 | CC=$ac_save_CC | |
b2dad0e3 | 2838 | |
ff66d28f | 2839 | fi |
b2dad0e3 | 2840 | |
ff66d28f PE |
2841 | case "x$ac_cv_prog_cc_stdc" in |
2842 | x|xno) | |
2843 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2844 | echo "${ECHO_T}none needed" >&6 ;; | |
2845 | *) | |
2846 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2847 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2848 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2849 | esac | |
b2dad0e3 | 2850 | |
ff66d28f PE |
2851 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2852 | # in C++ we need to declare it. In case someone uses the same compiler | |
2853 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2854 | # the declaration of exit, since it's the most demanding environment. | |
2855 | cat >conftest.$ac_ext <<_ACEOF | |
2856 | #ifndef __cplusplus | |
2857 | choke me | |
2858 | #endif | |
2859 | _ACEOF | |
2860 | rm -f conftest.$ac_objext | |
2861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2862 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2863 | ac_status=$? |
ec2075e9 BK |
2864 | grep -v '^ *+' conftest.er1 >conftest.err |
2865 | rm -f conftest.er1 | |
2866 | cat conftest.err >&5 | |
ff66d28f PE |
2867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2868 | (exit $ac_status); } && | |
780028b6 BK |
2869 | { ac_try='test -z "$ac_c_werror_flag" |
2870 | || test ! -s conftest.err' | |
ec2075e9 BK |
2871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2872 | (eval $ac_try) 2>&5 | |
2873 | ac_status=$? | |
2874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2875 | (exit $ac_status); }; } && | |
2876 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2878 | (eval $ac_try) 2>&5 | |
2879 | ac_status=$? | |
2880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2881 | (exit $ac_status); }; }; then | |
2882 | for ac_declaration in \ | |
ec2075e9 | 2883 | '' \ |
ff66d28f PE |
2884 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2885 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2886 | 'extern "C" void exit (int) throw ();' \ | |
2887 | 'extern "C" void exit (int);' \ | |
2888 | 'void exit (int);' | |
2889 | do | |
2890 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2891 | /* confdefs.h. */ |
2892 | _ACEOF | |
2893 | cat confdefs.h >>conftest.$ac_ext | |
2894 | cat >>conftest.$ac_ext <<_ACEOF | |
2895 | /* end confdefs.h. */ | |
158960ba | 2896 | $ac_declaration |
ec2075e9 | 2897 | #include <stdlib.h> |
ff66d28f PE |
2898 | int |
2899 | main () | |
2900 | { | |
2901 | exit (42); | |
2902 | ; | |
2903 | return 0; | |
2904 | } | |
2905 | _ACEOF | |
2906 | rm -f conftest.$ac_objext | |
2907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2908 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2909 | ac_status=$? |
ec2075e9 BK |
2910 | grep -v '^ *+' conftest.er1 >conftest.err |
2911 | rm -f conftest.er1 | |
2912 | cat conftest.err >&5 | |
ff66d28f PE |
2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2914 | (exit $ac_status); } && | |
780028b6 BK |
2915 | { ac_try='test -z "$ac_c_werror_flag" |
2916 | || test ! -s conftest.err' | |
ec2075e9 BK |
2917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2918 | (eval $ac_try) 2>&5 | |
2919 | ac_status=$? | |
2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2921 | (exit $ac_status); }; } && | |
2922 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2924 | (eval $ac_try) 2>&5 | |
2925 | ac_status=$? | |
2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2927 | (exit $ac_status); }; }; then | |
2928 | : | |
2929 | else | |
2930 | echo "$as_me: failed program was:" >&5 | |
2931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 2932 | |
ff66d28f PE |
2933 | continue |
2934 | fi | |
ec2075e9 | 2935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f | 2936 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
2937 | /* confdefs.h. */ |
2938 | _ACEOF | |
2939 | cat confdefs.h >>conftest.$ac_ext | |
2940 | cat >>conftest.$ac_ext <<_ACEOF | |
2941 | /* end confdefs.h. */ | |
2942 | $ac_declaration | |
2943 | int | |
2944 | main () | |
2945 | { | |
2946 | exit (42); | |
2947 | ; | |
2948 | return 0; | |
2949 | } | |
2950 | _ACEOF | |
2951 | rm -f conftest.$ac_objext | |
2952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2953 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2954 | ac_status=$? |
ec2075e9 BK |
2955 | grep -v '^ *+' conftest.er1 >conftest.err |
2956 | rm -f conftest.er1 | |
2957 | cat conftest.err >&5 | |
ff66d28f PE |
2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2959 | (exit $ac_status); } && | |
780028b6 BK |
2960 | { ac_try='test -z "$ac_c_werror_flag" |
2961 | || test ! -s conftest.err' | |
ec2075e9 BK |
2962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2963 | (eval $ac_try) 2>&5 | |
2964 | ac_status=$? | |
2965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2966 | (exit $ac_status); }; } && | |
2967 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2969 | (eval $ac_try) 2>&5 | |
2970 | ac_status=$? | |
2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2972 | (exit $ac_status); }; }; then | |
2973 | break | |
2974 | else | |
2975 | echo "$as_me: failed program was:" >&5 | |
2976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2977 | ||
2978 | fi | |
ec2075e9 | 2979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2980 | done |
2981 | rm -f conftest* | |
2982 | if test -n "$ac_declaration"; then | |
2983 | echo '#ifdef __cplusplus' >>confdefs.h | |
2984 | echo $ac_declaration >>confdefs.h | |
2985 | echo '#endif' >>confdefs.h | |
2986 | fi | |
b2dad0e3 | 2987 | |
b2dad0e3 | 2988 | else |
ff66d28f PE |
2989 | echo "$as_me: failed program was:" >&5 |
2990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2991 | ||
b2dad0e3 | 2992 | fi |
ec2075e9 | 2993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2994 | ac_ext=c |
2995 | ac_cpp='$CPP $CPPFLAGS' | |
2996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2999 | ||
ff66d28f PE |
3000 | ac_ext=cc |
3001 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3002 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3003 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3004 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3005 | if test -n "$ac_tool_prefix"; then | |
3006 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3007 | do | |
3008 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3009 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3012 | if test "${glibcxx_cv_prog_CXX+set}" = set; then | |
3013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3014 | else | |
3015 | if test -n "$CXX"; then | |
3016 | glibcxx_cv_prog_CXX="$CXX" # Let the user override the test. | |
3017 | else | |
3018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3019 | for as_dir in $PATH | |
3020 | do | |
3021 | IFS=$as_save_IFS | |
3022 | test -z "$as_dir" && as_dir=. | |
3023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3025 | glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3027 | break 2 | |
3028 | fi | |
3029 | done | |
3030 | done | |
3031 | ||
3032 | fi | |
3033 | fi | |
3034 | CXX=$glibcxx_cv_prog_CXX | |
3035 | if test -n "$CXX"; then | |
3036 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
3037 | echo "${ECHO_T}$CXX" >&6 | |
b2dad0e3 | 3038 | else |
ff66d28f PE |
3039 | echo "$as_me:$LINENO: result: no" >&5 |
3040 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 3041 | fi |
b2dad0e3 | 3042 | |
ff66d28f PE |
3043 | test -n "$CXX" && break |
3044 | done | |
3045 | fi | |
3046 | if test -z "$CXX"; then | |
3047 | ac_ct_CXX=$CXX | |
3048 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3049 | do | |
3050 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3051 | set dummy $ac_prog; ac_word=$2 | |
3052 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3054 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3056 | else | |
3057 | if test -n "$ac_ct_CXX"; then | |
3058 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3059 | else | |
3060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3061 | for as_dir in $PATH | |
3062 | do | |
3063 | IFS=$as_save_IFS | |
3064 | test -z "$as_dir" && as_dir=. | |
3065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3066 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3067 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3069 | break 2 | |
b2dad0e3 | 3070 | fi |
ff66d28f PE |
3071 | done |
3072 | done | |
3073 | ||
b2dad0e3 | 3074 | fi |
ff66d28f PE |
3075 | fi |
3076 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3077 | if test -n "$ac_ct_CXX"; then | |
3078 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3079 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
3080 | else | |
3081 | echo "$as_me:$LINENO: result: no" >&5 | |
3082 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
3083 | fi |
3084 | ||
ff66d28f PE |
3085 | test -n "$ac_ct_CXX" && break |
3086 | done | |
3087 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
3088 | ||
3089 | CXX=$ac_ct_CXX | |
3090 | fi | |
3091 | ||
3092 | ||
3093 | # Provide some information about the compiler. | |
3094 | echo "$as_me:$LINENO:" \ | |
3095 | "checking for C++ compiler version" >&5 | |
3096 | ac_compiler=`set X $ac_compile; echo $2` | |
3097 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3098 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3099 | ac_status=$? | |
3100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3101 | (exit $ac_status); } | |
3102 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3103 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3104 | ac_status=$? | |
3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3106 | (exit $ac_status); } | |
3107 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3108 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3109 | ac_status=$? | |
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3111 | (exit $ac_status); } | |
3112 | ||
3113 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3114 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3115 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3117 | else | |
3118 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3119 | /* confdefs.h. */ |
3120 | _ACEOF | |
3121 | cat confdefs.h >>conftest.$ac_ext | |
3122 | cat >>conftest.$ac_ext <<_ACEOF | |
3123 | /* end confdefs.h. */ | |
3124 | ||
3125 | int | |
3126 | main () | |
3127 | { | |
3128 | #ifndef __GNUC__ | |
3129 | choke me | |
3130 | #endif | |
3131 | ||
3132 | ; | |
3133 | return 0; | |
3134 | } | |
3135 | _ACEOF | |
3136 | rm -f conftest.$ac_objext | |
3137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3138 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3139 | ac_status=$? |
ec2075e9 BK |
3140 | grep -v '^ *+' conftest.er1 >conftest.err |
3141 | rm -f conftest.er1 | |
3142 | cat conftest.err >&5 | |
ff66d28f PE |
3143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3144 | (exit $ac_status); } && | |
780028b6 BK |
3145 | { ac_try='test -z "$ac_cxx_werror_flag" |
3146 | || test ! -s conftest.err' | |
ec2075e9 BK |
3147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3148 | (eval $ac_try) 2>&5 | |
3149 | ac_status=$? | |
3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3151 | (exit $ac_status); }; } && | |
3152 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3154 | (eval $ac_try) 2>&5 | |
3155 | ac_status=$? | |
3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3157 | (exit $ac_status); }; }; then | |
3158 | ac_compiler_gnu=yes | |
3159 | else | |
3160 | echo "$as_me: failed program was:" >&5 | |
3161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3162 | ||
3163 | ac_compiler_gnu=no | |
3164 | fi | |
ec2075e9 | 3165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3166 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3167 | ||
3168 | fi | |
3169 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3170 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3171 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3172 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3173 | ac_save_CXXFLAGS=$CXXFLAGS | |
3174 | CXXFLAGS="-g" | |
3175 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3176 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3177 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3179 | else | |
3180 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3181 | /* confdefs.h. */ |
3182 | _ACEOF | |
3183 | cat confdefs.h >>conftest.$ac_ext | |
3184 | cat >>conftest.$ac_ext <<_ACEOF | |
3185 | /* end confdefs.h. */ | |
3186 | ||
3187 | int | |
3188 | main () | |
3189 | { | |
b2dad0e3 | 3190 | |
ff66d28f PE |
3191 | ; |
3192 | return 0; | |
3193 | } | |
3194 | _ACEOF | |
3195 | rm -f conftest.$ac_objext | |
3196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3197 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3198 | ac_status=$? |
ec2075e9 BK |
3199 | grep -v '^ *+' conftest.er1 >conftest.err |
3200 | rm -f conftest.er1 | |
3201 | cat conftest.err >&5 | |
ff66d28f PE |
3202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3203 | (exit $ac_status); } && | |
780028b6 BK |
3204 | { ac_try='test -z "$ac_cxx_werror_flag" |
3205 | || test ! -s conftest.err' | |
ec2075e9 BK |
3206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3207 | (eval $ac_try) 2>&5 | |
3208 | ac_status=$? | |
3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3210 | (exit $ac_status); }; } && | |
3211 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3213 | (eval $ac_try) 2>&5 | |
3214 | ac_status=$? | |
3215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3216 | (exit $ac_status); }; }; then | |
3217 | ac_cv_prog_cxx_g=yes | |
3218 | else | |
3219 | echo "$as_me: failed program was:" >&5 | |
3220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3221 | ||
3222 | ac_cv_prog_cxx_g=no | |
3223 | fi | |
ec2075e9 | 3224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3225 | fi |
3226 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3227 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3228 | if test "$ac_test_CXXFLAGS" = set; then | |
3229 | CXXFLAGS=$ac_save_CXXFLAGS | |
3230 | elif test $ac_cv_prog_cxx_g = yes; then | |
3231 | if test "$GXX" = yes; then | |
3232 | CXXFLAGS="-g -O2" | |
3233 | else | |
3234 | CXXFLAGS="-g" | |
3235 | fi | |
3236 | else | |
3237 | if test "$GXX" = yes; then | |
3238 | CXXFLAGS="-O2" | |
3239 | else | |
3240 | CXXFLAGS= | |
5780a46b | 3241 | fi |
ff66d28f PE |
3242 | fi |
3243 | for ac_declaration in \ | |
ec2075e9 | 3244 | '' \ |
ff66d28f PE |
3245 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3246 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3247 | 'extern "C" void exit (int) throw ();' \ | |
3248 | 'extern "C" void exit (int);' \ | |
3249 | 'void exit (int);' | |
3250 | do | |
3251 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3252 | /* confdefs.h. */ |
3253 | _ACEOF | |
3254 | cat confdefs.h >>conftest.$ac_ext | |
3255 | cat >>conftest.$ac_ext <<_ACEOF | |
3256 | /* end confdefs.h. */ | |
158960ba | 3257 | $ac_declaration |
ec2075e9 | 3258 | #include <stdlib.h> |
ff66d28f PE |
3259 | int |
3260 | main () | |
3261 | { | |
3262 | exit (42); | |
3263 | ; | |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | rm -f conftest.$ac_objext | |
3268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3269 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3270 | ac_status=$? |
ec2075e9 BK |
3271 | grep -v '^ *+' conftest.er1 >conftest.err |
3272 | rm -f conftest.er1 | |
3273 | cat conftest.err >&5 | |
ff66d28f PE |
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3275 | (exit $ac_status); } && | |
780028b6 BK |
3276 | { ac_try='test -z "$ac_cxx_werror_flag" |
3277 | || test ! -s conftest.err' | |
ec2075e9 BK |
3278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3279 | (eval $ac_try) 2>&5 | |
3280 | ac_status=$? | |
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3282 | (exit $ac_status); }; } && | |
3283 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3285 | (eval $ac_try) 2>&5 | |
3286 | ac_status=$? | |
3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3288 | (exit $ac_status); }; }; then | |
3289 | : | |
3290 | else | |
3291 | echo "$as_me: failed program was:" >&5 | |
3292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 3293 | |
ff66d28f PE |
3294 | continue |
3295 | fi | |
ec2075e9 | 3296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f | 3297 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
3298 | /* confdefs.h. */ |
3299 | _ACEOF | |
3300 | cat confdefs.h >>conftest.$ac_ext | |
3301 | cat >>conftest.$ac_ext <<_ACEOF | |
3302 | /* end confdefs.h. */ | |
3303 | $ac_declaration | |
3304 | int | |
3305 | main () | |
3306 | { | |
3307 | exit (42); | |
3308 | ; | |
3309 | return 0; | |
3310 | } | |
3311 | _ACEOF | |
3312 | rm -f conftest.$ac_objext | |
3313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3314 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3315 | ac_status=$? |
ec2075e9 BK |
3316 | grep -v '^ *+' conftest.er1 >conftest.err |
3317 | rm -f conftest.er1 | |
3318 | cat conftest.err >&5 | |
ff66d28f PE |
3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3320 | (exit $ac_status); } && | |
780028b6 BK |
3321 | { ac_try='test -z "$ac_cxx_werror_flag" |
3322 | || test ! -s conftest.err' | |
ec2075e9 BK |
3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3324 | (eval $ac_try) 2>&5 | |
3325 | ac_status=$? | |
3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3327 | (exit $ac_status); }; } && | |
3328 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3330 | (eval $ac_try) 2>&5 | |
3331 | ac_status=$? | |
3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3333 | (exit $ac_status); }; }; then | |
3334 | break | |
3335 | else | |
3336 | echo "$as_me: failed program was:" >&5 | |
3337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3338 | ||
3339 | fi | |
ec2075e9 | 3340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3341 | done |
3342 | rm -f conftest* | |
3343 | if test -n "$ac_declaration"; then | |
3344 | echo '#ifdef __cplusplus' >>confdefs.h | |
3345 | echo $ac_declaration >>confdefs.h | |
3346 | echo '#endif' >>confdefs.h | |
3347 | fi | |
3840fa2a | 3348 | |
ff66d28f PE |
3349 | ac_ext=c |
3350 | ac_cpp='$CPP $CPPFLAGS' | |
3351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16da539b | 3354 | |
ff66d28f | 3355 | CXXFLAGS="$save_CXXFLAGS" |
d0941a31 PE |
3356 | |
3357 | ||
33590f13 | 3358 | |
f6dda651 | 3359 | |
ff66d28f PE |
3360 | # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't |
3361 | # available). Uncomment the next line to force a particular method. | |
3362 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3363 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3364 | LN_S=$as_ln_s | |
3365 | if test "$LN_S" = "ln -s"; then | |
3366 | echo "$as_me:$LINENO: result: yes" >&5 | |
3367 | echo "${ECHO_T}yes" >&6 | |
2f235b6d | 3368 | else |
ff66d28f PE |
3369 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3370 | echo "${ECHO_T}no, using $LN_S" >&6 | |
2f235b6d | 3371 | fi |
2f235b6d | 3372 | |
ff66d28f | 3373 | #LN_S='cp -p' |
2f235b6d | 3374 | |
ff66d28f PE |
3375 | if test -n "$ac_tool_prefix"; then |
3376 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3377 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3380 | if test "${ac_cv_prog_AS+set}" = set; then | |
3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f235b6d | 3382 | else |
ff66d28f PE |
3383 | if test -n "$AS"; then |
3384 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2f235b6d | 3385 | else |
ff66d28f PE |
3386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3387 | for as_dir in $PATH | |
3388 | do | |
3389 | IFS=$as_save_IFS | |
3390 | test -z "$as_dir" && as_dir=. | |
3391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3392 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3393 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3395 | break 2 | |
3396 | fi | |
3397 | done | |
3398 | done | |
3399 | ||
2f235b6d | 3400 | fi |
2f235b6d | 3401 | fi |
ff66d28f PE |
3402 | AS=$ac_cv_prog_AS |
3403 | if test -n "$AS"; then | |
3404 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3405 | echo "${ECHO_T}$AS" >&6 | |
2f235b6d | 3406 | else |
ff66d28f PE |
3407 | echo "$as_me:$LINENO: result: no" >&5 |
3408 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3409 | fi |
3410 | ||
ff66d28f PE |
3411 | fi |
3412 | if test -z "$ac_cv_prog_AS"; then | |
3413 | ac_ct_AS=$AS | |
3414 | # Extract the first word of "as", so it can be a program name with args. | |
3415 | set dummy as; ac_word=$2 | |
3416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3418 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3420 | else | |
3421 | if test -n "$ac_ct_AS"; then | |
3422 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3423 | else | |
3424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3425 | for as_dir in $PATH | |
3426 | do | |
3427 | IFS=$as_save_IFS | |
3428 | test -z "$as_dir" && as_dir=. | |
3429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3430 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3431 | ac_cv_prog_ac_ct_AS="as" | |
3432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3433 | break 2 | |
3434 | fi | |
3435 | done | |
3436 | done | |
2f235b6d | 3437 | |
ff66d28f PE |
3438 | fi |
3439 | fi | |
3440 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3441 | if test -n "$ac_ct_AS"; then | |
3442 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3443 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
3444 | else | |
3445 | echo "$as_me:$LINENO: result: no" >&5 | |
3446 | echo "${ECHO_T}no" >&6 | |
3447 | fi | |
2f235b6d | 3448 | |
ff66d28f PE |
3449 | AS=$ac_ct_AS |
3450 | else | |
3451 | AS="$ac_cv_prog_AS" | |
2f235b6d | 3452 | fi |
2f235b6d | 3453 | |
ff66d28f PE |
3454 | if test -n "$ac_tool_prefix"; then |
3455 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3456 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3457 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3458 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3459 | if test "${ac_cv_prog_AR+set}" = set; then | |
3460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3461 | else | |
3462 | if test -n "$AR"; then | |
3463 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3464 | else | |
3465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3466 | for as_dir in $PATH | |
3467 | do | |
3468 | IFS=$as_save_IFS | |
3469 | test -z "$as_dir" && as_dir=. | |
3470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3471 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3472 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3474 | break 2 | |
3475 | fi | |
3476 | done | |
3477 | done | |
2f235b6d | 3478 | |
ff66d28f PE |
3479 | fi |
3480 | fi | |
3481 | AR=$ac_cv_prog_AR | |
3482 | if test -n "$AR"; then | |
3483 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3484 | echo "${ECHO_T}$AR" >&6 | |
3485 | else | |
3486 | echo "$as_me:$LINENO: result: no" >&5 | |
3487 | echo "${ECHO_T}no" >&6 | |
3488 | fi | |
2f235b6d | 3489 | |
ff66d28f PE |
3490 | fi |
3491 | if test -z "$ac_cv_prog_AR"; then | |
3492 | ac_ct_AR=$AR | |
3493 | # Extract the first word of "ar", so it can be a program name with args. | |
3494 | set dummy ar; ac_word=$2 | |
3495 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3497 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3499 | else | |
3500 | if test -n "$ac_ct_AR"; then | |
3501 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3502 | else | |
3503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3504 | for as_dir in $PATH | |
3505 | do | |
3506 | IFS=$as_save_IFS | |
3507 | test -z "$as_dir" && as_dir=. | |
3508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3510 | ac_cv_prog_ac_ct_AR="ar" | |
3511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3512 | break 2 | |
3513 | fi | |
3514 | done | |
3515 | done | |
2f235b6d | 3516 | |
ff66d28f PE |
3517 | fi |
3518 | fi | |
3519 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3520 | if test -n "$ac_ct_AR"; then | |
3521 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3522 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
2f235b6d | 3523 | else |
ff66d28f PE |
3524 | echo "$as_me:$LINENO: result: no" >&5 |
3525 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3526 | fi |
3527 | ||
ff66d28f | 3528 | AR=$ac_ct_AR |
2f235b6d | 3529 | else |
ff66d28f | 3530 | AR="$ac_cv_prog_AR" |
2f235b6d PE |
3531 | fi |
3532 | ||
ff66d28f PE |
3533 | if test -n "$ac_tool_prefix"; then |
3534 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3535 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3538 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3540 | else | |
3541 | if test -n "$RANLIB"; then | |
3542 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3543 | else | |
3544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3545 | for as_dir in $PATH | |
3546 | do | |
3547 | IFS=$as_save_IFS | |
3548 | test -z "$as_dir" && as_dir=. | |
3549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3551 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3553 | break 2 | |
3554 | fi | |
3555 | done | |
3556 | done | |
3557 | ||
3558 | fi | |
3559 | fi | |
3560 | RANLIB=$ac_cv_prog_RANLIB | |
3561 | if test -n "$RANLIB"; then | |
3562 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3563 | echo "${ECHO_T}$RANLIB" >&6 | |
2f235b6d | 3564 | else |
ff66d28f PE |
3565 | echo "$as_me:$LINENO: result: no" >&5 |
3566 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3567 | fi |
3568 | ||
ff66d28f PE |
3569 | fi |
3570 | if test -z "$ac_cv_prog_RANLIB"; then | |
3571 | ac_ct_RANLIB=$RANLIB | |
3572 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3573 | set dummy ranlib; ac_word=$2 | |
3574 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3576 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3578 | else | |
3579 | if test -n "$ac_ct_RANLIB"; then | |
3580 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2f235b6d | 3581 | else |
ff66d28f PE |
3582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3583 | for as_dir in $PATH | |
3584 | do | |
3585 | IFS=$as_save_IFS | |
3586 | test -z "$as_dir" && as_dir=. | |
3587 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3588 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3589 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3591 | break 2 | |
3592 | fi | |
3593 | done | |
3594 | done | |
3595 | ||
3596 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" | |
3597 | fi | |
3598 | fi | |
3599 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3600 | if test -n "$ac_ct_RANLIB"; then | |
3601 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3602 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3603 | else | |
3604 | echo "$as_me:$LINENO: result: no" >&5 | |
3605 | echo "${ECHO_T}no" >&6 | |
2f235b6d PE |
3606 | fi |
3607 | ||
ff66d28f | 3608 | RANLIB=$ac_ct_RANLIB |
2f235b6d | 3609 | else |
ff66d28f | 3610 | RANLIB="$ac_cv_prog_RANLIB" |
2f235b6d PE |
3611 | fi |
3612 | ||
3613 | ||
ff66d28f PE |
3614 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3615 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
3616 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
3617 | if test "${enable_maintainer_mode+set}" = set; then | |
3618 | enableval="$enable_maintainer_mode" | |
3619 | USE_MAINTAINER_MODE=$enableval | |
3620 | else | |
3621 | USE_MAINTAINER_MODE=no | |
3622 | fi; | |
3623 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
3624 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
2f235b6d PE |
3625 | |
3626 | ||
ff66d28f PE |
3627 | if test $USE_MAINTAINER_MODE = yes; then |
3628 | MAINTAINER_MODE_TRUE= | |
3629 | MAINTAINER_MODE_FALSE='#' | |
3630 | else | |
3631 | MAINTAINER_MODE_TRUE='#' | |
3632 | MAINTAINER_MODE_FALSE= | |
3633 | fi | |
3634 | ||
3635 | MAINT=$MAINTAINER_MODE_TRUE | |
2f235b6d | 3636 | |
5780a46b | 3637 | |
f4c79fef | 3638 | |
92eabea2 PE |
3639 | # Set up safe default values for all subsequent AM_CONDITIONAL tests |
3640 | # which are themselves conditionally expanded. | |
3641 | ## (Right now, this only matters for enable_wchar_t, but nothing prevents | |
3642 | ## other macros from doing the same. This should be automated.) -pme | |
ff66d28f | 3643 | need_libmath=no |
ff66d28f PE |
3644 | |
3645 | # Find platform-specific directories containing configuration info. | |
3646 | # Also possibly modify flags used elsewhere, as needed by the platform. | |
3647 | ||
3648 | . $glibcxx_srcdir/configure.host | |
3649 | { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5 | |
3650 | echo "$as_me: CPU config directory is $cpu_include_dir" >&6;} | |
3651 | { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5 | |
3652 | echo "$as_me: OS config directory is $os_include_dir" >&6;} | |
3653 | ||
3654 | ||
3655 | ||
ff66d28f | 3656 | |
b2dad0e3 BK |
3657 | # Check whether --enable-shared or --disable-shared was given. |
3658 | if test "${enable_shared+set}" = set; then | |
3659 | enableval="$enable_shared" | |
3660 | p=${PACKAGE-default} | |
c21b6f87 | 3661 | case $enableval in |
b2dad0e3 BK |
3662 | yes) enable_shared=yes ;; |
3663 | no) enable_shared=no ;; | |
3664 | *) | |
3665 | enable_shared=no | |
3666 | # Look at the argument we got. We use all the common list separators. | |
3667 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3668 | for pkg in $enableval; do | |
3669 | if test "X$pkg" = "X$p"; then | |
3670 | enable_shared=yes | |
3671 | fi | |
3672 | done | |
3673 | IFS="$ac_save_ifs" | |
3674 | ;; | |
3675 | esac | |
3676 | else | |
3677 | enable_shared=yes | |
ff66d28f | 3678 | fi; |
b2dad0e3 BK |
3679 | # Check whether --enable-static or --disable-static was given. |
3680 | if test "${enable_static+set}" = set; then | |
3681 | enableval="$enable_static" | |
3682 | p=${PACKAGE-default} | |
c21b6f87 | 3683 | case $enableval in |
b2dad0e3 BK |
3684 | yes) enable_static=yes ;; |
3685 | no) enable_static=no ;; | |
3686 | *) | |
3687 | enable_static=no | |
3688 | # Look at the argument we got. We use all the common list separators. | |
3689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3690 | for pkg in $enableval; do | |
3691 | if test "X$pkg" = "X$p"; then | |
3692 | enable_static=yes | |
3693 | fi | |
3694 | done | |
3695 | IFS="$ac_save_ifs" | |
3696 | ;; | |
3697 | esac | |
3698 | else | |
3699 | enable_static=yes | |
ff66d28f | 3700 | fi; |
b2dad0e3 BK |
3701 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3702 | if test "${enable_fast_install+set}" = set; then | |
3703 | enableval="$enable_fast_install" | |
3704 | p=${PACKAGE-default} | |
c21b6f87 | 3705 | case $enableval in |
b2dad0e3 BK |
3706 | yes) enable_fast_install=yes ;; |
3707 | no) enable_fast_install=no ;; | |
3708 | *) | |
3709 | enable_fast_install=no | |
3710 | # Look at the argument we got. We use all the common list separators. | |
3711 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3712 | for pkg in $enableval; do | |
3713 | if test "X$pkg" = "X$p"; then | |
3714 | enable_fast_install=yes | |
3715 | fi | |
3716 | done | |
3717 | IFS="$ac_save_ifs" | |
3718 | ;; | |
3719 | esac | |
3720 | else | |
3721 | enable_fast_install=yes | |
ff66d28f | 3722 | fi; |
b2dad0e3 | 3723 | |
b2dad0e3 BK |
3724 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3725 | if test "${with_gnu_ld+set}" = set; then | |
3726 | withval="$with_gnu_ld" | |
3727 | test "$withval" = no || with_gnu_ld=yes | |
3728 | else | |
3729 | with_gnu_ld=no | |
ff66d28f | 3730 | fi; |
b2dad0e3 | 3731 | ac_prog=ld |
c21b6f87 | 3732 | if test "$GCC" = yes; then |
b2dad0e3 | 3733 | # Check if gcc -print-prog-name=ld gives a path. |
ff66d28f PE |
3734 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3735 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3df64633 AO |
3736 | case $host in |
3737 | *-*-mingw*) | |
3738 | # gcc leaves a trailing carriage return which upsets mingw | |
3739 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3740 | *) | |
3741 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3742 | esac | |
c21b6f87 | 3743 | case $ac_prog in |
b2dad0e3 | 3744 | # Accept absolute paths. |
3840fa2a | 3745 | [\\/]* | [A-Za-z]:[\\/]*) |
b2dad0e3 BK |
3746 | re_direlt='/[^/][^/]*/\.\./' |
3747 | # Canonicalize the path of ld | |
3748 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3749 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3750 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3751 | done | |
3752 | test -z "$LD" && LD="$ac_prog" | |
3753 | ;; | |
3754 | "") | |
3755 | # If it fails, then pretend we aren't using GCC. | |
3756 | ac_prog=ld | |
3757 | ;; | |
3758 | *) | |
3759 | # If it is relative, then search for the first ld in PATH. | |
3760 | with_gnu_ld=unknown | |
3761 | ;; | |
3762 | esac | |
3763 | elif test "$with_gnu_ld" = yes; then | |
ff66d28f PE |
3764 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3765 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
b2dad0e3 | 3766 | else |
ff66d28f PE |
3767 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3768 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
b2dad0e3 | 3769 | fi |
ff66d28f PE |
3770 | if test "${lt_cv_path_LD+set}" = set; then |
3771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
3772 | else |
3773 | if test -z "$LD"; then | |
3840fa2a | 3774 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
3775 | for ac_dir in $PATH; do |
3776 | test -z "$ac_dir" && ac_dir=. | |
3840fa2a | 3777 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
c21b6f87 | 3778 | lt_cv_path_LD="$ac_dir/$ac_prog" |
b2dad0e3 BK |
3779 | # Check to see if the program is GNU ld. I'd rather use --version, |
3780 | # but apparently some GNU ld's only accept -v. | |
3781 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
c21b6f87 | 3782 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
b2dad0e3 BK |
3783 | test "$with_gnu_ld" != no && break |
3784 | else | |
3785 | test "$with_gnu_ld" != yes && break | |
3786 | fi | |
3787 | fi | |
3788 | done | |
3789 | IFS="$ac_save_ifs" | |
3790 | else | |
c21b6f87 | 3791 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
b2dad0e3 BK |
3792 | fi |
3793 | fi | |
3794 | ||
c21b6f87 | 3795 | LD="$lt_cv_path_LD" |
b2dad0e3 | 3796 | if test -n "$LD"; then |
ff66d28f PE |
3797 | echo "$as_me:$LINENO: result: $LD" >&5 |
3798 | echo "${ECHO_T}$LD" >&6 | |
b2dad0e3 | 3799 | else |
ff66d28f PE |
3800 | echo "$as_me:$LINENO: result: no" >&5 |
3801 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 3802 | fi |
ff66d28f PE |
3803 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3804 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3805 | { (exit 1); exit 1; }; } | |
3806 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3807 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3808 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
3810 | else |
3811 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3812 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
c21b6f87 | 3813 | lt_cv_prog_gnu_ld=yes |
b2dad0e3 | 3814 | else |
c21b6f87 | 3815 | lt_cv_prog_gnu_ld=no |
b2dad0e3 BK |
3816 | fi |
3817 | fi | |
ff66d28f PE |
3818 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3819 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
c21b6f87 | 3820 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3df64633 | 3821 | |
b2dad0e3 | 3822 | |
ff66d28f PE |
3823 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3824 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3825 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
3827 | else |
3828 | lt_cv_ld_reload_flag='-r' | |
3829 | fi | |
ff66d28f PE |
3830 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3831 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3df64633 AO |
3832 | reload_flag=$lt_cv_ld_reload_flag |
3833 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
b2dad0e3 | 3834 | |
ff66d28f PE |
3835 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3836 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3837 | if test "${lt_cv_path_NM+set}" = set; then | |
3838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 BK |
3839 | else |
3840 | if test -n "$NM"; then | |
3841 | # Let the user override the test. | |
c21b6f87 | 3842 | lt_cv_path_NM="$NM" |
b2dad0e3 | 3843 | else |
3840fa2a | 3844 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2dad0e3 BK |
3845 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3846 | test -z "$ac_dir" && ac_dir=. | |
3df64633 AO |
3847 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3848 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
b2dad0e3 BK |
3849 | # Check to see if the nm accepts a BSD-compat flag. |
3850 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3851 | # nm: unknown option "B" ignored | |
6d93bca4 AO |
3852 | # Tru64's nm complains that /dev/null is an invalid object file |
3853 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
c21b6f87 | 3854 | lt_cv_path_NM="$tmp_nm -B" |
b2dad0e3 | 3855 | break |
3df64633 | 3856 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
c21b6f87 | 3857 | lt_cv_path_NM="$tmp_nm -p" |
b2dad0e3 BK |
3858 | break |
3859 | else | |
c21b6f87 | 3860 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2dad0e3 BK |
3861 | continue # so that we can try to find one that supports BSD flags |
3862 | fi | |
3863 | fi | |
3864 | done | |
3865 | IFS="$ac_save_ifs" | |
c21b6f87 | 3866 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
b2dad0e3 BK |
3867 | fi |
3868 | fi | |
3869 | ||
c21b6f87 | 3870 | NM="$lt_cv_path_NM" |
ff66d28f PE |
3871 | echo "$as_me:$LINENO: result: $NM" >&5 |
3872 | echo "${ECHO_T}$NM" >&6 | |
b2dad0e3 | 3873 | |
ff66d28f PE |
3874 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3875 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3876 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 3878 | else |
3dd7094e | 3879 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
3df64633 AO |
3880 | lt_cv_file_magic_test_file= |
3881 | lt_cv_deplibs_check_method='unknown' | |
3882 | # Need to set the preceding variable on all platforms that support | |
3883 | # interlibrary dependencies. | |
3884 | # 'none' -- dependencies not supported. | |
3885 | # `unknown' -- same as none, but documents that we really don't know. | |
3886 | # 'pass_all' -- all dependencies passed with no checks. | |
3887 | # 'test_compile' -- check by making test program. | |
3888 | # 'file_magic [regex]' -- check by looking for files in library path | |
3889 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3890 | # If you have `file' or equivalent on your system and you're not sure | |
3891 | # whether `pass_all' will *always* work, you probably want this one. | |
3892 | ||
c21b6f87 PE |
3893 | case $host_os in |
3894 | aix*) | |
3df64633 AO |
3895 | lt_cv_deplibs_check_method=pass_all |
3896 | ;; | |
3897 | ||
3898 | beos*) | |
3899 | lt_cv_deplibs_check_method=pass_all | |
3900 | ;; | |
3901 | ||
3902 | bsdi4*) | |
c21b6f87 PE |
3903 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3904 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3df64633 AO |
3905 | lt_cv_file_magic_test_file=/shlib/libc.so |
3906 | ;; | |
3907 | ||
3dd7094e | 3908 | cygwin* | mingw* |pw32*) |
3df64633 | 3909 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3dd7094e | 3910 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3df64633 AO |
3911 | ;; |
3912 | ||
c21b6f87 | 3913 | darwin* | rhapsody*) |
29d4adf4 | 3914 | # this will be overwritten by pass_all, but leave it in just in case |
c21b6f87 | 3915 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
47e982b2 BK |
3916 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3917 | case "$host_os" in | |
3918 | rhapsody* | darwin1.012) | |
3919 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3920 | ;; | |
3921 | *) # Darwin 1.3 on | |
3922 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3923 | ;; | |
3924 | esac | |
29d4adf4 | 3925 | lt_cv_deplibs_check_method=pass_all |
c21b6f87 PE |
3926 | ;; |
3927 | ||
dc7c62ae | 3928 | freebsd* | kfreebsd*-gnu) |
3df64633 | 3929 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
c21b6f87 | 3930 | case $host_cpu in |
3df64633 | 3931 | i*86 ) |
6d93bca4 AO |
3932 | # Not sure whether the presence of OpenBSD here was a mistake. |
3933 | # Let's accept both of them until this is cleared up. | |
c21b6f87 PE |
3934 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3935 | lt_cv_file_magic_cmd=/usr/bin/file | |
3df64633 AO |
3936 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3937 | ;; | |
3938 | esac | |
3939 | else | |
3940 | lt_cv_deplibs_check_method=pass_all | |
3941 | fi | |
3942 | ;; | |
3943 | ||
3944 | gnu*) | |
3945 | lt_cv_deplibs_check_method=pass_all | |
3946 | ;; | |
3947 | ||
c21b6f87 | 3948 | hpux10.20*|hpux11*) |
38cca750 BK |
3949 | case $host_cpu in |
3950 | hppa*) | |
3951 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3952 | lt_cv_file_magic_cmd=/usr/bin/file | |
3953 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3954 | ;; | |
3955 | ia64*) | |
3956 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3957 | lt_cv_file_magic_cmd=/usr/bin/file | |
3958 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3959 | ;; | |
3960 | esac | |
3df64633 AO |
3961 | ;; |
3962 | ||
3963 | irix5* | irix6*) | |
c21b6f87 | 3964 | case $host_os in |
3df64633 AO |
3965 | irix5*) |
3966 | # this will be overridden with pass_all, but let us keep it just in case | |
3967 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3968 | ;; | |
3969 | *) | |
c21b6f87 | 3970 | case $LD in |
3df64633 AO |
3971 | *-32|*"-32 ") libmagic=32-bit;; |
3972 | *-n32|*"-n32 ") libmagic=N32;; | |
3973 | *-64|*"-64 ") libmagic=64-bit;; | |
3974 | *) libmagic=never-match;; | |
3975 | esac | |
3976 | # this will be overridden with pass_all, but let us keep it just in case | |
c21b6f87 PE |
3977 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3978 | ;; | |
3df64633 AO |
3979 | esac |
3980 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3981 | lt_cv_deplibs_check_method=pass_all | |
3982 | ;; | |
3983 | ||
3984 | # This must be Linux ELF. | |
6d93bca4 | 3985 | linux-gnu*) |
2c92e90f | 3986 | lt_cv_deplibs_check_method=pass_all |
3df64633 AO |
3987 | ;; |
3988 | ||
dc7c62ae | 3989 | netbsd* | knetbsd*-gnu) |
c21b6f87 | 3990 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
47e982b2 | 3991 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
3df64633 | 3992 | else |
47e982b2 | 3993 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
3df64633 | 3994 | fi |
c21b6f87 PE |
3995 | ;; |
3996 | ||
3997 | newsos6) | |
3998 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3999 | lt_cv_file_magic_cmd=/usr/bin/file | |
4000 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3df64633 AO |
4001 | ;; |
4002 | ||
4003 | osf3* | osf4* | osf5*) | |
4004 | # this will be overridden with pass_all, but let us keep it just in case | |
4005 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
4006 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4007 | lt_cv_deplibs_check_method=pass_all | |
4008 | ;; | |
4009 | ||
4010 | sco3.2v5*) | |
4011 | lt_cv_deplibs_check_method=pass_all | |
4012 | ;; | |
4013 | ||
4014 | solaris*) | |
4015 | lt_cv_deplibs_check_method=pass_all | |
4016 | lt_cv_file_magic_test_file=/lib/libc.so | |
4017 | ;; | |
4018 | ||
bfa1e6b1 BK |
4019 | sysv5uw[78]* | sysv4*uw2*) |
4020 | lt_cv_deplibs_check_method=pass_all | |
4021 | ;; | |
4022 | ||
3df64633 | 4023 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
c21b6f87 | 4024 | case $host_vendor in |
3df64633 AO |
4025 | ncr) |
4026 | lt_cv_deplibs_check_method=pass_all | |
4027 | ;; | |
4028 | motorola) | |
c21b6f87 PE |
4029 | 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]' |
4030 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3df64633 AO |
4031 | ;; |
4032 | esac | |
4033 | ;; | |
4034 | esac | |
4035 | ||
4036 | fi | |
ff66d28f PE |
4037 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4038 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3df64633 AO |
4039 | file_magic_cmd=$lt_cv_file_magic_cmd |
4040 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4041 | ||
3df64633 | 4042 | |
ff66d28f | 4043 | |
3df64633 | 4044 | |
ec0d7421 | 4045 | |
3df64633 AO |
4046 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
4047 | ||
6dab073b MS |
4048 | # find the maximum length of command line arguments |
4049 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4050 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4051 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4053 | else | |
4054 | i=0 | |
4055 | teststring="ABCD" | |
4056 | ||
4057 | case $build_os in | |
4058 | msdosdjgpp*) | |
4059 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4060 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4061 | # during glob expansion). Even if it were fixed, the result of this | |
4062 | # check would be larger than it should be. | |
4063 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4064 | ;; | |
4065 | ||
4066 | cygwin* | mingw*) | |
4067 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4068 | # about 5 minutes as the teststring grows exponentially. | |
4069 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4070 | # you end up with a "frozen" computer, even though with patience | |
4071 | # the test eventually succeeds (with a max line length of 256k). | |
4072 | # Instead, let's just punt: use the minimum linelength reported by | |
4073 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4074 | lt_cv_sys_max_cmd_len=8192; | |
4075 | ;; | |
4076 | ||
4077 | amigaos*) | |
4078 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4079 | # So we just punt and use a minimum line length of 8192. | |
4080 | lt_cv_sys_max_cmd_len=8192; | |
4081 | ;; | |
4082 | ||
4083 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4084 | # This has been around since 386BSD, at least. Likely further. | |
4085 | if test -x /sbin/sysctl; then | |
4086 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4087 | elif test -x /usr/sbin/sysctl; then | |
4088 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4089 | else | |
4090 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
4091 | fi | |
4092 | # And add a safety zone | |
4093 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4094 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4095 | ;; | |
4096 | esac | |
4097 | ||
4098 | fi | |
4099 | ||
f4c767fd | 4100 | if test -n "$lt_cv_sys_max_cmd_len" ; then |
6dab073b MS |
4101 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
4102 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
4103 | else | |
4104 | echo "$as_me:$LINENO: result: none" >&5 | |
4105 | echo "${ECHO_T}none" >&6 | |
4106 | fi | |
4107 | ||
4108 | ||
3df64633 | 4109 | # Only perform the check for file, if the check method requires it |
c21b6f87 | 4110 | case $deplibs_check_method in |
3df64633 | 4111 | file_magic*) |
3dd7094e | 4112 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
ff66d28f PE |
4113 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
4114 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
4115 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4117 | else |
c21b6f87 | 4118 | case $MAGIC_CMD in |
3df64633 | 4119 | /*) |
3dd7094e | 4120 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
4121 | ;; |
4122 | ?:/*) | |
3dd7094e | 4123 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
4124 | ;; |
4125 | *) | |
3dd7094e | 4126 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
4127 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4128 | ac_dummy="/usr/bin:$PATH" | |
4129 | for ac_dir in $ac_dummy; do | |
4130 | test -z "$ac_dir" && ac_dir=. | |
4131 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3dd7094e | 4132 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
3df64633 | 4133 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 4134 | case $deplibs_check_method in |
3df64633 AO |
4135 | "file_magic "*) |
4136 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 4137 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
4138 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4139 | egrep "$file_magic_regex" > /dev/null; then | |
4140 | : | |
4141 | else | |
4142 | cat <<EOF 1>&2 | |
4143 | ||
4144 | *** Warning: the command libtool uses to detect shared libraries, | |
4145 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4146 | *** The result is that libtool may fail to recognize shared libraries | |
4147 | *** as such. This will affect the creation of libtool libraries that | |
4148 | *** depend on shared libraries, but programs linked with such libtool | |
4149 | *** libraries will work regardless of this problem. Nevertheless, you | |
4150 | *** may want to report the problem to your system manager and/or to | |
4151 | *** bug-libtool@gnu.org | |
4152 | ||
4153 | EOF | |
4154 | fi ;; | |
4155 | esac | |
4156 | fi | |
4157 | break | |
4158 | fi | |
4159 | done | |
4160 | IFS="$ac_save_ifs" | |
3dd7094e | 4161 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
4162 | ;; |
4163 | esac | |
4164 | fi | |
4165 | ||
3dd7094e AO |
4166 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4167 | if test -n "$MAGIC_CMD"; then | |
ff66d28f PE |
4168 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
4169 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3df64633 | 4170 | else |
ff66d28f PE |
4171 | echo "$as_me:$LINENO: result: no" >&5 |
4172 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4173 | fi |
4174 | ||
3dd7094e | 4175 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
3df64633 | 4176 | if test -n "$ac_tool_prefix"; then |
ff66d28f PE |
4177 | echo "$as_me:$LINENO: checking for file" >&5 |
4178 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
4179 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4181 | else |
c21b6f87 | 4182 | case $MAGIC_CMD in |
3df64633 | 4183 | /*) |
3dd7094e | 4184 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
4185 | ;; |
4186 | ?:/*) | |
3dd7094e | 4187 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
4188 | ;; |
4189 | *) | |
3dd7094e | 4190 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
4191 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4192 | ac_dummy="/usr/bin:$PATH" | |
4193 | for ac_dir in $ac_dummy; do | |
4194 | test -z "$ac_dir" && ac_dir=. | |
4195 | if test -f $ac_dir/file; then | |
3dd7094e | 4196 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
3df64633 | 4197 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 4198 | case $deplibs_check_method in |
3df64633 AO |
4199 | "file_magic "*) |
4200 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 4201 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
4202 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4203 | egrep "$file_magic_regex" > /dev/null; then | |
4204 | : | |
4205 | else | |
4206 | cat <<EOF 1>&2 | |
4207 | ||
4208 | *** Warning: the command libtool uses to detect shared libraries, | |
4209 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4210 | *** The result is that libtool may fail to recognize shared libraries | |
4211 | *** as such. This will affect the creation of libtool libraries that | |
4212 | *** depend on shared libraries, but programs linked with such libtool | |
4213 | *** libraries will work regardless of this problem. Nevertheless, you | |
4214 | *** may want to report the problem to your system manager and/or to | |
4215 | *** bug-libtool@gnu.org | |
4216 | ||
4217 | EOF | |
4218 | fi ;; | |
4219 | esac | |
4220 | fi | |
4221 | break | |
4222 | fi | |
4223 | done | |
4224 | IFS="$ac_save_ifs" | |
3dd7094e | 4225 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
4226 | ;; |
4227 | esac | |
4228 | fi | |
4229 | ||
3dd7094e AO |
4230 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4231 | if test -n "$MAGIC_CMD"; then | |
ff66d28f PE |
4232 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
4233 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3df64633 | 4234 | else |
ff66d28f PE |
4235 | echo "$as_me:$LINENO: result: no" >&5 |
4236 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4237 | fi |
4238 | ||
4239 | else | |
3dd7094e | 4240 | MAGIC_CMD=: |
3df64633 AO |
4241 | fi |
4242 | fi | |
4243 | ||
4244 | fi | |
4245 | ;; | |
4246 | esac | |
4247 | ||
ff66d28f PE |
4248 | if test -n "$ac_tool_prefix"; then |
4249 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3df64633 | 4250 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
ff66d28f PE |
4251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4253 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
4255 | else |
4256 | if test -n "$RANLIB"; then | |
4257 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4258 | else | |
ff66d28f PE |
4259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4260 | for as_dir in $PATH | |
4261 | do | |
4262 | IFS=$as_save_IFS | |
4263 | test -z "$as_dir" && as_dir=. | |
4264 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4265 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4266 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4267 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4268 | break 2 | |
4269 | fi | |
4270 | done | |
4271 | done | |
4272 | ||
3df64633 AO |
4273 | fi |
4274 | fi | |
ff66d28f | 4275 | RANLIB=$ac_cv_prog_RANLIB |
3df64633 | 4276 | if test -n "$RANLIB"; then |
ff66d28f PE |
4277 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4278 | echo "${ECHO_T}$RANLIB" >&6 | |
3df64633 | 4279 | else |
ff66d28f PE |
4280 | echo "$as_me:$LINENO: result: no" >&5 |
4281 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4282 | fi |
4283 | ||
ff66d28f | 4284 | fi |
3df64633 | 4285 | if test -z "$ac_cv_prog_RANLIB"; then |
ff66d28f | 4286 | ac_ct_RANLIB=$RANLIB |
3df64633 AO |
4287 | # Extract the first word of "ranlib", so it can be a program name with args. |
4288 | set dummy ranlib; ac_word=$2 | |
ff66d28f PE |
4289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4291 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4293 | else |
ff66d28f PE |
4294 | if test -n "$ac_ct_RANLIB"; then |
4295 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3df64633 | 4296 | else |
ff66d28f PE |
4297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4298 | for as_dir in $PATH | |
4299 | do | |
4300 | IFS=$as_save_IFS | |
4301 | test -z "$as_dir" && as_dir=. | |
4302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4304 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4306 | break 2 | |
4307 | fi | |
4308 | done | |
4309 | done | |
4310 | ||
4311 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3df64633 AO |
4312 | fi |
4313 | fi | |
ff66d28f PE |
4314 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4315 | if test -n "$ac_ct_RANLIB"; then | |
4316 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4317 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3df64633 | 4318 | else |
ff66d28f PE |
4319 | echo "$as_me:$LINENO: result: no" >&5 |
4320 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4321 | fi |
4322 | ||
ff66d28f | 4323 | RANLIB=$ac_ct_RANLIB |
3df64633 | 4324 | else |
ff66d28f | 4325 | RANLIB="$ac_cv_prog_RANLIB" |
3df64633 AO |
4326 | fi |
4327 | ||
ff66d28f PE |
4328 | if test -n "$ac_tool_prefix"; then |
4329 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3df64633 | 4330 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
ff66d28f PE |
4331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4333 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
4335 | else |
4336 | if test -n "$STRIP"; then | |
4337 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4338 | else | |
ff66d28f PE |
4339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4340 | for as_dir in $PATH | |
4341 | do | |
4342 | IFS=$as_save_IFS | |
4343 | test -z "$as_dir" && as_dir=. | |
4344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4346 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4348 | break 2 | |
4349 | fi | |
4350 | done | |
4351 | done | |
4352 | ||
3df64633 AO |
4353 | fi |
4354 | fi | |
ff66d28f | 4355 | STRIP=$ac_cv_prog_STRIP |
3df64633 | 4356 | if test -n "$STRIP"; then |
ff66d28f PE |
4357 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
4358 | echo "${ECHO_T}$STRIP" >&6 | |
3df64633 | 4359 | else |
ff66d28f PE |
4360 | echo "$as_me:$LINENO: result: no" >&5 |
4361 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4362 | fi |
4363 | ||
ff66d28f | 4364 | fi |
3df64633 | 4365 | if test -z "$ac_cv_prog_STRIP"; then |
ff66d28f | 4366 | ac_ct_STRIP=$STRIP |
3df64633 AO |
4367 | # Extract the first word of "strip", so it can be a program name with args. |
4368 | set dummy strip; ac_word=$2 | |
ff66d28f PE |
4369 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4371 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4373 | else |
ff66d28f PE |
4374 | if test -n "$ac_ct_STRIP"; then |
4375 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3df64633 | 4376 | else |
ff66d28f PE |
4377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4378 | for as_dir in $PATH | |
4379 | do | |
4380 | IFS=$as_save_IFS | |
4381 | test -z "$as_dir" && as_dir=. | |
4382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4383 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4384 | ac_cv_prog_ac_ct_STRIP="strip" | |
4385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4386 | break 2 | |
4387 | fi | |
4388 | done | |
4389 | done | |
4390 | ||
4391 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
3df64633 AO |
4392 | fi |
4393 | fi | |
ff66d28f PE |
4394 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4395 | if test -n "$ac_ct_STRIP"; then | |
4396 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4397 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
3df64633 | 4398 | else |
ff66d28f PE |
4399 | echo "$as_me:$LINENO: result: no" >&5 |
4400 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4401 | fi |
4402 | ||
ff66d28f | 4403 | STRIP=$ac_ct_STRIP |
3df64633 | 4404 | else |
ff66d28f | 4405 | STRIP="$ac_cv_prog_STRIP" |
3df64633 AO |
4406 | fi |
4407 | ||
b2dad0e3 | 4408 | |
b2dad0e3 BK |
4409 | # Check for any special flags to pass to ltconfig. |
4410 | libtool_flags="--cache-file=$cache_file" | |
4411 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4412 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4413 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
c21b6f87 PE |
4414 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
4415 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
ff66d28f | 4416 | |
3840fa2a BK |
4417 | |
4418 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4419 | if test "${enable_libtool_lock+set}" = set; then | |
4420 | enableval="$enable_libtool_lock" | |
3840fa2a | 4421 | |
ff66d28f | 4422 | fi; |
3840fa2a BK |
4423 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
4424 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
b2dad0e3 | 4425 | |
ff66d28f | 4426 | |
3df64633 AO |
4427 | # Check whether --with-pic or --without-pic was given. |
4428 | if test "${with_pic+set}" = set; then | |
4429 | withval="$with_pic" | |
4430 | pic_mode="$withval" | |
4431 | else | |
4432 | pic_mode=default | |
ff66d28f | 4433 | fi; |
3df64633 AO |
4434 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
4435 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
4436 | ||
b2dad0e3 BK |
4437 | # Some flags need to be propagated to the compiler or linker for good |
4438 | # libtool support. | |
c21b6f87 | 4439 | case $host in |
b2dad0e3 BK |
4440 | *-*-irix6*) |
4441 | # Find out which ABI we are using. | |
6dab073b | 4442 | echo '#line 4442 "configure"' > conftest.$ac_ext |
ff66d28f PE |
4443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4444 | (eval $ac_compile) 2>&5 | |
4445 | ac_status=$? | |
4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4447 | (exit $ac_status); }; then | |
3a15abf1 BK |
4448 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4449 | case `/usr/bin/file conftest.$ac_objext` in | |
4450 | *32-bit*) | |
4451 | LD="${LD-ld} -melf32bsmip" | |
4452 | ;; | |
4453 | *N32*) | |
4454 | LD="${LD-ld} -melf32bmipn32" | |
4455 | ;; | |
4456 | *64-bit*) | |
4457 | LD="${LD-ld} -melf64bmip" | |
4458 | ;; | |
4459 | esac | |
4460 | else | |
c21b6f87 | 4461 | case `/usr/bin/file conftest.$ac_objext` in |
b2dad0e3 BK |
4462 | *32-bit*) |
4463 | LD="${LD-ld} -32" | |
4464 | ;; | |
4465 | *N32*) | |
4466 | LD="${LD-ld} -n32" | |
4467 | ;; | |
4468 | *64-bit*) | |
4469 | LD="${LD-ld} -64" | |
4470 | ;; | |
4471 | esac | |
3a15abf1 | 4472 | fi |
b2dad0e3 BK |
4473 | fi |
4474 | rm -rf conftest* | |
4475 | ;; | |
4476 | ||
38cca750 BK |
4477 | ia64-*-hpux*) |
4478 | # Find out which ABI we are using. | |
4479 | echo 'int i;' > conftest.$ac_ext | |
ff66d28f PE |
4480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4481 | (eval $ac_compile) 2>&5 | |
4482 | ac_status=$? | |
4483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4484 | (exit $ac_status); }; then | |
38cca750 BK |
4485 | case "`/usr/bin/file conftest.o`" in |
4486 | *ELF-32*) | |
4487 | HPUX_IA64_MODE="32" | |
4488 | ;; | |
4489 | *ELF-64*) | |
4490 | HPUX_IA64_MODE="64" | |
4491 | ;; | |
4492 | esac | |
4493 | fi | |
4494 | rm -rf conftest* | |
4495 | ;; | |
4496 | ||
162c7cd9 SW |
4497 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4498 | # Find out which ABI we are using. | |
4499 | echo 'int i;' > conftest.$ac_ext | |
ff66d28f PE |
4500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4501 | (eval $ac_compile) 2>&5 | |
4502 | ac_status=$? | |
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4504 | (exit $ac_status); }; then | |
162c7cd9 SW |
4505 | case "`/usr/bin/file conftest.o`" in |
4506 | *32-bit*) | |
4507 | case $host in | |
4508 | x86_64-*linux*) | |
4509 | LD="${LD-ld} -m elf_i386" | |
4510 | ;; | |
e517f636 | 4511 | ppc64-*linux*|powerpc64-*linux*) |
162c7cd9 SW |
4512 | LD="${LD-ld} -m elf32ppclinux" |
4513 | ;; | |
4514 | s390x-*linux*) | |
4515 | LD="${LD-ld} -m elf_s390" | |
4516 | ;; | |
4517 | sparc64-*linux*) | |
4518 | LD="${LD-ld} -m elf32_sparc" | |
4519 | ;; | |
4520 | esac | |
4521 | ;; | |
4522 | *64-bit*) | |
4523 | case $host in | |
4524 | x86_64-*linux*) | |
4525 | LD="${LD-ld} -m elf_x86_64" | |
4526 | ;; | |
4527 | ppc*-*linux*|powerpc*-*linux*) | |
4528 | LD="${LD-ld} -m elf64ppc" | |
4529 | ;; | |
4530 | s390*-*linux*) | |
4531 | LD="${LD-ld} -m elf64_s390" | |
4532 | ;; | |
4533 | sparc*-*linux*) | |
4534 | LD="${LD-ld} -m elf64_sparc" | |
4535 | ;; | |
4536 | esac | |
4537 | ;; | |
4538 | esac | |
4539 | fi | |
4540 | rm -rf conftest* | |
4541 | ;; | |
4542 | ||
b2dad0e3 BK |
4543 | *-*-sco3.2v5*) |
4544 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4545 | SAVE_CFLAGS="$CFLAGS" | |
4546 | CFLAGS="$CFLAGS -belf" | |
ff66d28f PE |
4547 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4548 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4549 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 4551 | else |
ff66d28f PE |
4552 | |
4553 | ||
3df64633 | 4554 | ac_ext=c |
3df64633 | 4555 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
4556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4559 | ||
3a24bf5d KC |
4560 | if test x$gcc_no_link = xyes; then |
4561 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4562 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4563 | { (exit 1); exit 1; }; } | |
4564 | fi | |
4565 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4566 | /* confdefs.h. */ |
4567 | _ACEOF | |
4568 | cat confdefs.h >>conftest.$ac_ext | |
4569 | cat >>conftest.$ac_ext <<_ACEOF | |
4570 | /* end confdefs.h. */ | |
3df64633 | 4571 | |
ff66d28f PE |
4572 | int |
4573 | main () | |
4574 | { | |
b2dad0e3 | 4575 | |
ff66d28f PE |
4576 | ; |
4577 | return 0; | |
4578 | } | |
4579 | _ACEOF | |
4580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ec2075e9 | 4582 | (eval $ac_link) 2>conftest.er1 |
ff66d28f | 4583 | ac_status=$? |
ec2075e9 BK |
4584 | grep -v '^ *+' conftest.er1 >conftest.err |
4585 | rm -f conftest.er1 | |
4586 | cat conftest.err >&5 | |
ff66d28f PE |
4587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4588 | (exit $ac_status); } && | |
780028b6 BK |
4589 | { ac_try='test -z "$ac_c_werror_flag" |
4590 | || test ! -s conftest.err' | |
ec2075e9 BK |
4591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4592 | (eval $ac_try) 2>&5 | |
4593 | ac_status=$? | |
4594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4595 | (exit $ac_status); }; } && | |
4596 | { ac_try='test -s conftest$ac_exeext' | |
ff66d28f PE |
4597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4598 | (eval $ac_try) 2>&5 | |
4599 | ac_status=$? | |
4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4601 | (exit $ac_status); }; }; then | |
b2dad0e3 BK |
4602 | lt_cv_cc_needs_belf=yes |
4603 | else | |
ff66d28f PE |
4604 | echo "$as_me: failed program was:" >&5 |
4605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4606 | ||
4607 | lt_cv_cc_needs_belf=no | |
b2dad0e3 | 4608 | fi |
ec2075e9 BK |
4609 | rm -f conftest.err conftest.$ac_objext \ |
4610 | conftest$ac_exeext conftest.$ac_ext | |
3df64633 | 4611 | ac_ext=c |
3df64633 | 4612 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
4613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3df64633 | 4616 | |
b2dad0e3 | 4617 | fi |
ff66d28f PE |
4618 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4619 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2dad0e3 BK |
4620 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4621 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4622 | CFLAGS="$SAVE_CFLAGS" | |
4623 | fi | |
4624 | ;; | |
4625 | ||
4626 | ||
4627 | esac | |
4628 | ||
4629 | ||
4630 | # Save cache, so that ltconfig can load it | |
ff66d28f | 4631 | cat >confcache <<\_ACEOF |
b2dad0e3 BK |
4632 | # This file is a shell script that caches the results of configure |
4633 | # tests run on this system so they can be shared between configure | |
ff66d28f PE |
4634 | # scripts and configure runs, see configure's option --config-cache. |
4635 | # It is not useful on other systems. If it contains results you don't | |
4636 | # want to keep, you may remove or edit it. | |
b2dad0e3 | 4637 | # |
ff66d28f PE |
4638 | # config.status only pays attention to the cache file if you give it |
4639 | # the --recheck option to rerun configure. | |
b2dad0e3 | 4640 | # |
ff66d28f PE |
4641 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4642 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4643 | # following values. | |
4644 | ||
4645 | _ACEOF | |
4646 | ||
b2dad0e3 BK |
4647 | # The following way of writing the cache mishandles newlines in values, |
4648 | # but we know of no workaround that is simple, portable, and efficient. | |
4649 | # So, don't put newlines in cache variables' values. | |
4650 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4651 | # and sets the high bit in the cache file unless we assign to the vars. | |
ff66d28f PE |
4652 | { |
4653 | (set) 2>&1 | | |
4654 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4655 | *ac_space=\ *) | |
4656 | # `set' does not quote correctly, so add quotes (double-quote | |
4657 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4658 | sed -n \ | |
ec2075e9 BK |
4659 | "s/'/'\\\\''/g; |
4660 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ff66d28f PE |
4661 | ;; |
4662 | *) | |
4663 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4664 | sed -n \ | |
ec2075e9 | 4665 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ff66d28f PE |
4666 | ;; |
4667 | esac; | |
4668 | } | | |
4669 | sed ' | |
4670 | t clear | |
4671 | : clear | |
4672 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4673 | t end | |
4674 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4675 | : end' >>confcache | |
4676 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b2dad0e3 | 4677 | if test -w $cache_file; then |
ff66d28f PE |
4678 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4679 | cat confcache >$cache_file | |
b2dad0e3 BK |
4680 | else |
4681 | echo "not updating unwritable cache $cache_file" | |
4682 | fi | |
4683 | fi | |
4684 | rm -f confcache | |
4685 | ||
b2dad0e3 | 4686 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
3df64633 | 4687 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
3dd7094e | 4688 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
4689 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4690 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4691 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4692 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
b2dad0e3 | 4693 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
3df64633 | 4694 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
ff66d28f PE |
4695 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4696 | echo "$as_me: error: libtool configure failed" >&2;} | |
4697 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
4698 | |
4699 | # Reload cache, that may have been modified by ltconfig | |
4700 | if test -r "$cache_file"; then | |
ff66d28f PE |
4701 | # Some versions of bash will fail to source /dev/null (special |
4702 | # files actually), so we avoid doing that. | |
4703 | if test -f "$cache_file"; then | |
4704 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4705 | echo "$as_me: loading cache $cache_file" >&6;} | |
4706 | case $cache_file in | |
4707 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4708 | *) . ./$cache_file;; | |
4709 | esac | |
4710 | fi | |
b2dad0e3 | 4711 | else |
ff66d28f PE |
4712 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4713 | echo "$as_me: creating cache $cache_file" >&6;} | |
4714 | >$cache_file | |
b2dad0e3 BK |
4715 | fi |
4716 | ||
4717 | ||
4718 | # This can be used to rebuild libtool when needed | |
3df64633 | 4719 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2dad0e3 BK |
4720 | |
4721 | # Always use our own libtool. | |
4722 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4723 | ||
4724 | # Redirect the config.log output again, so that the ltconfig log is not | |
4725 | # clobbered by the next message. | |
4726 | exec 5>>./config.log | |
4727 | ||
ff66d28f PE |
4728 | ac_ext=cc |
4729 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4730 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4731 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4732 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4733 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4734 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4735 | if test -z "$CXXCPP"; then | |
4736 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4738 | else | |
4739 | # Double quotes because CXXCPP needs to be expanded | |
4740 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
4741 | do | |
4742 | ac_preproc_ok=false | |
4743 | for ac_cxx_preproc_warn_flag in '' yes | |
4744 | do | |
4745 | # Use a header file that comes with gcc, so configuring glibc | |
4746 | # with a fresh cross-compiler works. | |
4747 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4748 | # <limits.h> exists even on freestanding compilers. | |
4749 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4750 | # not just through cpp. "Syntax error" is here to catch this case. | |
4751 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4752 | /* confdefs.h. */ |
4753 | _ACEOF | |
4754 | cat confdefs.h >>conftest.$ac_ext | |
4755 | cat >>conftest.$ac_ext <<_ACEOF | |
4756 | /* end confdefs.h. */ | |
4757 | #ifdef __STDC__ | |
4758 | # include <limits.h> | |
4759 | #else | |
4760 | # include <assert.h> | |
4761 | #endif | |
ec2075e9 | 4762 | Syntax error |
ff66d28f PE |
4763 | _ACEOF |
4764 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4765 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4766 | ac_status=$? | |
4767 | grep -v '^ *+' conftest.er1 >conftest.err | |
4768 | rm -f conftest.er1 | |
4769 | cat conftest.err >&5 | |
4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4771 | (exit $ac_status); } >/dev/null; then | |
4772 | if test -s conftest.err; then | |
4773 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4774 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4775 | else |
4776 | ac_cpp_err= | |
4777 | fi | |
4778 | else | |
4779 | ac_cpp_err=yes | |
4780 | fi | |
4781 | if test -z "$ac_cpp_err"; then | |
4782 | : | |
4783 | else | |
4784 | echo "$as_me: failed program was:" >&5 | |
4785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4786 | ||
4787 | # Broken: fails on valid input. | |
4788 | continue | |
4789 | fi | |
4790 | rm -f conftest.err conftest.$ac_ext | |
4791 | ||
4792 | # OK, works on sane cases. Now check whether non-existent headers | |
4793 | # can be detected and how. | |
4794 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4795 | /* confdefs.h. */ |
4796 | _ACEOF | |
4797 | cat confdefs.h >>conftest.$ac_ext | |
4798 | cat >>conftest.$ac_ext <<_ACEOF | |
4799 | /* end confdefs.h. */ | |
4800 | #include <ac_nonexistent.h> | |
4801 | _ACEOF | |
4802 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4803 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4804 | ac_status=$? | |
4805 | grep -v '^ *+' conftest.er1 >conftest.err | |
4806 | rm -f conftest.er1 | |
4807 | cat conftest.err >&5 | |
4808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4809 | (exit $ac_status); } >/dev/null; then | |
4810 | if test -s conftest.err; then | |
4811 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4812 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4813 | else |
4814 | ac_cpp_err= | |
4815 | fi | |
4816 | else | |
4817 | ac_cpp_err=yes | |
4818 | fi | |
4819 | if test -z "$ac_cpp_err"; then | |
4820 | # Broken: success on invalid input. | |
4821 | continue | |
4822 | else | |
4823 | echo "$as_me: failed program was:" >&5 | |
4824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4825 | ||
4826 | # Passes both tests. | |
4827 | ac_preproc_ok=: | |
4828 | break | |
4829 | fi | |
4830 | rm -f conftest.err conftest.$ac_ext | |
4831 | ||
4832 | done | |
4833 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4834 | rm -f conftest.err conftest.$ac_ext | |
4835 | if $ac_preproc_ok; then | |
4836 | break | |
4837 | fi | |
4838 | ||
4839 | done | |
4840 | ac_cv_prog_CXXCPP=$CXXCPP | |
4841 | ||
4842 | fi | |
4843 | CXXCPP=$ac_cv_prog_CXXCPP | |
4844 | else | |
4845 | ac_cv_prog_CXXCPP=$CXXCPP | |
4846 | fi | |
4847 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
4848 | echo "${ECHO_T}$CXXCPP" >&6 | |
4849 | ac_preproc_ok=false | |
4850 | for ac_cxx_preproc_warn_flag in '' yes | |
4851 | do | |
4852 | # Use a header file that comes with gcc, so configuring glibc | |
4853 | # with a fresh cross-compiler works. | |
4854 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4855 | # <limits.h> exists even on freestanding compilers. | |
4856 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4857 | # not just through cpp. "Syntax error" is here to catch this case. | |
4858 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4859 | /* confdefs.h. */ |
4860 | _ACEOF | |
4861 | cat confdefs.h >>conftest.$ac_ext | |
4862 | cat >>conftest.$ac_ext <<_ACEOF | |
4863 | /* end confdefs.h. */ | |
4864 | #ifdef __STDC__ | |
4865 | # include <limits.h> | |
4866 | #else | |
4867 | # include <assert.h> | |
4868 | #endif | |
ec2075e9 | 4869 | Syntax error |
ff66d28f PE |
4870 | _ACEOF |
4871 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4872 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4873 | ac_status=$? | |
4874 | grep -v '^ *+' conftest.er1 >conftest.err | |
4875 | rm -f conftest.er1 | |
4876 | cat conftest.err >&5 | |
4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4878 | (exit $ac_status); } >/dev/null; then | |
4879 | if test -s conftest.err; then | |
4880 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4881 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4882 | else |
4883 | ac_cpp_err= | |
4884 | fi | |
4885 | else | |
4886 | ac_cpp_err=yes | |
4887 | fi | |
4888 | if test -z "$ac_cpp_err"; then | |
4889 | : | |
4890 | else | |
4891 | echo "$as_me: failed program was:" >&5 | |
4892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4893 | ||
4894 | # Broken: fails on valid input. | |
4895 | continue | |
4896 | fi | |
4897 | rm -f conftest.err conftest.$ac_ext | |
4898 | ||
4899 | # OK, works on sane cases. Now check whether non-existent headers | |
4900 | # can be detected and how. | |
4901 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4902 | /* confdefs.h. */ |
4903 | _ACEOF | |
4904 | cat confdefs.h >>conftest.$ac_ext | |
4905 | cat >>conftest.$ac_ext <<_ACEOF | |
4906 | /* end confdefs.h. */ | |
4907 | #include <ac_nonexistent.h> | |
4908 | _ACEOF | |
4909 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4910 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4911 | ac_status=$? | |
4912 | grep -v '^ *+' conftest.er1 >conftest.err | |
4913 | rm -f conftest.er1 | |
4914 | cat conftest.err >&5 | |
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4916 | (exit $ac_status); } >/dev/null; then | |
4917 | if test -s conftest.err; then | |
4918 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4919 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4920 | else |
4921 | ac_cpp_err= | |
4922 | fi | |
4923 | else | |
4924 | ac_cpp_err=yes | |
4925 | fi | |
4926 | if test -z "$ac_cpp_err"; then | |
4927 | # Broken: success on invalid input. | |
4928 | continue | |
4929 | else | |
4930 | echo "$as_me: failed program was:" >&5 | |
4931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4932 | ||
4933 | # Passes both tests. | |
4934 | ac_preproc_ok=: | |
4935 | break | |
4936 | fi | |
4937 | rm -f conftest.err conftest.$ac_ext | |
4938 | ||
4939 | done | |
4940 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4941 | rm -f conftest.err conftest.$ac_ext | |
4942 | if $ac_preproc_ok; then | |
4943 | : | |
4944 | else | |
4945 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
4946 | See \`config.log' for more details." >&5 | |
4947 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
4948 | See \`config.log' for more details." >&2;} | |
4949 | { (exit 1); exit 1; }; } | |
4950 | fi | |
4951 | ||
4952 | ac_ext=c | |
4953 | ac_cpp='$CPP $CPPFLAGS' | |
4954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4957 | ||
3df64633 AO |
4958 | |
4959 | ||
3df64633 AO |
4960 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" |
4961 | lt_save_CC="$CC" | |
4962 | lt_save_CFLAGS="$CFLAGS" | |
4963 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
c21b6f87 | 4964 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
4965 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4966 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4967 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4968 | deplibs_check_method="$deplibs_check_method" \ | |
4969 | file_magic_cmd="$file_magic_cmd" \ | |
4970 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
4971 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
ff66d28f PE |
4972 | || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5 |
4973 | echo "$as_me: error: libtool tag configuration failed" >&2;} | |
4974 | { (exit 1); exit 1; }; } | |
3df64633 AO |
4975 | CC="$lt_save_CC" |
4976 | CFLAGS="$lt_save_CFLAGS" | |
4977 | ||
4978 | # Redirect the config.log output again, so that the ltconfig log is not | |
4979 | # clobbered by the next message. | |
4980 | exec 5>>./config.log | |
4981 | ||
3df64633 | 4982 | |
34791641 PE |
4983 | |
4984 | ||
33590f13 | 4985 | |
ff66d28f PE |
4986 | |
4987 | ||
4988 | ||
ff66d28f | 4989 | |
92eabea2 | 4990 | # Possibly disable most of the library. |
347669a0 | 4991 | ## TODO: Consider skipping unncessary tests altogether in this case, rather |
92eabea2 PE |
4992 | ## than just ignoring the results. Faster /and/ more correct, win win. |
4993 | ||
4994 | # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given. | |
4995 | if test "${enable_hosted_libstdcxx+set}" = set; then | |
4996 | enableval="$enable_hosted_libstdcxx" | |
4997 | ||
4998 | else | |
4c24b21a MM |
4999 | case "$host" in |
5000 | arm*-*-symbianelf*) | |
5001 | enable_hosted_libstdcxx=no | |
5002 | ;; | |
5003 | *) | |
5004 | enable_hosted_libstdcxx=yes | |
5005 | ;; | |
5006 | esac | |
92eabea2 PE |
5007 | fi; |
5008 | if test "$enable_hosted_libstdcxx" = no; then | |
5009 | { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5 | |
5010 | echo "$as_me: Only freestanding libraries will be built" >&6;} | |
5011 | is_hosted=no | |
3660e02f | 5012 | hosted_define=0 |
92eabea2 PE |
5013 | enable_abi_check=no |
5014 | enable_libstdcxx_pch=no | |
5015 | else | |
5016 | is_hosted=yes | |
3660e02f | 5017 | hosted_define=1 |
92eabea2 PE |
5018 | fi |
5019 | ||
5020 | ||
3660e02f PE |
5021 | cat >>confdefs.h <<_ACEOF |
5022 | #define _GLIBCXX_HOSTED $hosted_define | |
5023 | _ACEOF | |
5024 | ||
5025 | ||
92eabea2 | 5026 | |
347669a0 | 5027 | # Check for compiler support that doesn't require linking. |
5780a46b | 5028 | |
ff66d28f PE |
5029 | echo "$as_me:$LINENO: checking for exception model to use" >&5 |
5030 | echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6 | |
249ed716 | 5031 | |
ff66d28f PE |
5032 | |
5033 | ac_ext=cc | |
44f0760e | 5034 | ac_cpp='$CXXCPP $CPPFLAGS' |
ff66d28f PE |
5035 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5036 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5037 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
44f0760e | 5038 | |
ff66d28f | 5039 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. |
44f0760e BK |
5040 | if test "${enable_sjlj_exceptions+set}" = set; then |
5041 | enableval="$enable_sjlj_exceptions" | |
1260d70f PE |
5042 | |
5043 | case "$enableval" in | |
5044 | yes|no|auto) ;; | |
5045 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5 | |
5046 | echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;} | |
5047 | { (exit 1); exit 1; }; } ;; | |
5048 | esac | |
5049 | ||
44f0760e | 5050 | else |
1260d70f | 5051 | enable_sjlj_exceptions=auto |
ff66d28f | 5052 | fi; |
44f0760e | 5053 | |
1260d70f PE |
5054 | |
5055 | if test $enable_sjlj_exceptions = auto; then | |
5056 | # Botheration. Now we've got to detect the exception model. Link tests | |
5057 | # against libgcc.a are problematic since we've not been given proper -L | |
5058 | # bits for single-tree newlib and libgloss. | |
5059 | # | |
5060 | # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. | |
5061 | cat > conftest.$ac_ext << EOF | |
6dab073b | 5062 | #line 5062 "configure" |
1260d70f PE |
5063 | struct S { ~S(); }; |
5064 | void bar(); | |
5065 | void foo() | |
5066 | { | |
5067 | S s; | |
5068 | bar(); | |
5069 | } | |
5070 | EOF | |
5071 | old_CXXFLAGS="$CXXFLAGS" | |
5072 | CXXFLAGS=-S | |
5073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5074 | (eval $ac_compile) 2>&5 | |
5075 | ac_status=$? | |
5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5077 | (exit $ac_status); }; then | |
5078 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then | |
5079 | enable_sjlj_exceptions=yes | |
5080 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | |
5081 | enable_sjlj_exceptions=no | |
617a1b71 PB |
5082 | elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then |
5083 | enable_sjlj_exceptions=no | |
1260d70f PE |
5084 | fi |
5085 | fi | |
5086 | CXXFLAGS="$old_CXXFLAGS" | |
5087 | rm -f conftest* | |
5088 | fi | |
5089 | ||
5090 | # This is a tad weird, for hysterical raisins. We have to map enable/disable | |
5091 | # to two different models. | |
5092 | case $enable_sjlj_exceptions in | |
5093 | yes) | |
44f0760e | 5094 | |
ff66d28f PE |
5095 | cat >>confdefs.h <<\_ACEOF |
5096 | #define _GLIBCXX_SJLJ_EXCEPTIONS 1 | |
5097 | _ACEOF | |
5098 | ||
1260d70f PE |
5099 | ac_exception_model_name=sjlj |
5100 | ;; | |
5101 | no) | |
5102 | ac_exception_model_name="call frame" | |
5103 | ;; | |
5104 | *) | |
5105 | { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5 | |
ff66d28f PE |
5106 | echo "$as_me: error: unable to detect exception model" >&2;} |
5107 | { (exit 1); exit 1; }; } | |
1260d70f PE |
5108 | ;; |
5109 | esac | |
ff66d28f | 5110 | ac_ext=c |
44f0760e | 5111 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
5112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
44f0760e | 5115 | |
ff66d28f PE |
5116 | echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5 |
5117 | echo "${ECHO_T}$ac_exception_model_name" >&6 | |
44f0760e BK |
5118 | |
5119 | ||
ff66d28f PE |
5120 | echo "$as_me:$LINENO: checking for enabled PCH" >&5 |
5121 | echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6 | |
5122 | # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given. | |
d8d81f62 BK |
5123 | if test "${enable_libstdcxx_pch+set}" = set; then |
5124 | enableval="$enable_libstdcxx_pch" | |
ff66d28f PE |
5125 | |
5126 | case "$enableval" in | |
5127 | yes|no) ;; | |
5128 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5 | |
5129 | echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;} | |
5130 | { (exit 1); exit 1; }; } ;; | |
5131 | esac | |
5132 | ||
44f0760e | 5133 | else |
92eabea2 | 5134 | enable_libstdcxx_pch=$is_hosted |
ff66d28f | 5135 | fi; |
44f0760e | 5136 | |
ff66d28f PE |
5137 | echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5 |
5138 | echo "${ECHO_T}$enable_libstdcxx_pch" >&6 | |
5139 | ||
5140 | if test $enable_libstdcxx_pch = yes; then | |
5141 | echo "$as_me:$LINENO: checking for compiler with PCH support" >&5 | |
5142 | echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6 | |
5143 | if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then | |
5144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
249ed716 | 5145 | else |
ff66d28f PE |
5146 | ac_save_CXXFLAGS="$CXXFLAGS" |
5147 | CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated" | |
5148 | ||
5149 | ||
5150 | ac_ext=cc | |
249ed716 | 5151 | ac_cpp='$CXXCPP $CPPFLAGS' |
ff66d28f PE |
5152 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5153 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5154 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5155 | ||
5156 | echo '#include <math.h>' > conftest.h | |
5157 | if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \ | |
5158 | -o conftest.h.gch 1>&5 2>&1 && | |
5159 | echo '#error "pch failed"' > conftest.h && | |
5160 | echo '#include "conftest.h"' > conftest.cc && | |
5161 | $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ; | |
5162 | then | |
5163 | glibcxx_cv_prog_CXX_pch=yes | |
5164 | else | |
5165 | glibcxx_cv_prog_CXX_pch=no | |
5166 | fi | |
5167 | rm -f conftest* | |
5168 | CXXFLAGS=$ac_save_CXXFLAGS | |
5169 | ac_ext=c | |
249ed716 | 5170 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
5171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
249ed716 | 5174 | |
249ed716 | 5175 | |
ff66d28f PE |
5176 | fi |
5177 | echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5 | |
5178 | echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6 | |
5179 | enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch | |
44f0760e BK |
5180 | fi |
5181 | ||
44f0760e | 5182 | |
ff66d28f PE |
5183 | if test $enable_libstdcxx_pch = yes; then |
5184 | glibcxx_PCHFLAGS="-include bits/stdc++.h" | |
bddc3107 | 5185 | else |
ff66d28f | 5186 | glibcxx_PCHFLAGS="" |
bddc3107 | 5187 | fi |
249ed716 | 5188 | |
04e78786 | 5189 | |
ff66d28f PE |
5190 | |
5191 | # Enable all the variable C++ runtime options. | |
58ac1d7f | 5192 | |
ff66d28f PE |
5193 | echo "$as_me:$LINENO: checking for underlying I/O to use" >&5 |
5194 | echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6 | |
5195 | # Check whether --enable-cstdio or --disable-cstdio was given. | |
58ac1d7f BK |
5196 | if test "${enable_cstdio+set}" = set; then |
5197 | enableval="$enable_cstdio" | |
ff66d28f PE |
5198 | |
5199 | case "$enableval" in | |
5200 | stdio) ;; | |
5201 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5 | |
5202 | echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;} | |
5203 | { (exit 1); exit 1; }; } ;; | |
5204 | esac | |
5205 | ||
58ac1d7f BK |
5206 | else |
5207 | enable_cstdio=stdio | |
ff66d28f | 5208 | fi; |
58ac1d7f BK |
5209 | |
5210 | ||
ff66d28f PE |
5211 | # Now that libio has been removed, you can have any color you want as long |
5212 | # as it's black. This is one big no-op until other packages are added, but | |
5213 | # showing the framework never hurts. | |
5214 | case ${enable_cstdio} in | |
5215 | stdio) | |
58ac1d7f BK |
5216 | CSTDIO_H=config/io/c_io_stdio.h |
5217 | BASIC_FILE_H=config/io/basic_file_stdio.h | |
5218 | BASIC_FILE_CC=config/io/basic_file_stdio.cc | |
ff66d28f PE |
5219 | echo "$as_me:$LINENO: result: stdio" >&5 |
5220 | echo "${ECHO_T}stdio" >&6 | |
58ac1d7f BK |
5221 | ;; |
5222 | esac | |
cc5112c9 | 5223 | |
ff66d28f PE |
5224 | |
5225 | ||
5226 | ||
5227 | ||
5228 | ac_ext=c | |
5229 | ac_cpp='$CPP $CPPFLAGS' | |
5230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5233 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5234 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
c470c17d BK |
5235 | # On Suns, sometimes $CPP names a directory. |
5236 | if test -n "$CPP" && test -d "$CPP"; then | |
5237 | CPP= | |
5238 | fi | |
5239 | if test -z "$CPP"; then | |
ff66d28f PE |
5240 | if test "${ac_cv_prog_CPP+set}" = set; then |
5241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5242 | else | |
5243 | # Double quotes because CPP needs to be expanded | |
5244 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5245 | do | |
5246 | ac_preproc_ok=false | |
5247 | for ac_c_preproc_warn_flag in '' yes | |
5248 | do | |
5249 | # Use a header file that comes with gcc, so configuring glibc | |
5250 | # with a fresh cross-compiler works. | |
5251 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5252 | # <limits.h> exists even on freestanding compilers. | |
5253 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5254 | # not just through cpp. "Syntax error" is here to catch this case. | |
5255 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5256 | /* confdefs.h. */ |
5257 | _ACEOF | |
5258 | cat confdefs.h >>conftest.$ac_ext | |
5259 | cat >>conftest.$ac_ext <<_ACEOF | |
5260 | /* end confdefs.h. */ | |
5261 | #ifdef __STDC__ | |
5262 | # include <limits.h> | |
5263 | #else | |
5264 | # include <assert.h> | |
5265 | #endif | |
ec2075e9 | 5266 | Syntax error |
ff66d28f PE |
5267 | _ACEOF |
5268 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5269 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5270 | ac_status=$? | |
5271 | grep -v '^ *+' conftest.er1 >conftest.err | |
5272 | rm -f conftest.er1 | |
5273 | cat conftest.err >&5 | |
5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5275 | (exit $ac_status); } >/dev/null; then | |
5276 | if test -s conftest.err; then | |
5277 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5278 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5279 | else |
5280 | ac_cpp_err= | |
5281 | fi | |
5282 | else | |
5283 | ac_cpp_err=yes | |
5284 | fi | |
5285 | if test -z "$ac_cpp_err"; then | |
5286 | : | |
5287 | else | |
5288 | echo "$as_me: failed program was:" >&5 | |
5289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5290 | ||
5291 | # Broken: fails on valid input. | |
5292 | continue | |
5293 | fi | |
5294 | rm -f conftest.err conftest.$ac_ext | |
5295 | ||
5296 | # OK, works on sane cases. Now check whether non-existent headers | |
5297 | # can be detected and how. | |
5298 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5299 | /* confdefs.h. */ |
5300 | _ACEOF | |
5301 | cat confdefs.h >>conftest.$ac_ext | |
5302 | cat >>conftest.$ac_ext <<_ACEOF | |
5303 | /* end confdefs.h. */ | |
5304 | #include <ac_nonexistent.h> | |
5305 | _ACEOF | |
5306 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5307 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5308 | ac_status=$? | |
5309 | grep -v '^ *+' conftest.er1 >conftest.err | |
5310 | rm -f conftest.er1 | |
5311 | cat conftest.err >&5 | |
5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5313 | (exit $ac_status); } >/dev/null; then | |
5314 | if test -s conftest.err; then | |
5315 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5316 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5317 | else |
5318 | ac_cpp_err= | |
5319 | fi | |
5320 | else | |
5321 | ac_cpp_err=yes | |
5322 | fi | |
5323 | if test -z "$ac_cpp_err"; then | |
5324 | # Broken: success on invalid input. | |
5325 | continue | |
5326 | else | |
5327 | echo "$as_me: failed program was:" >&5 | |
5328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5329 | ||
5330 | # Passes both tests. | |
5331 | ac_preproc_ok=: | |
5332 | break | |
5333 | fi | |
5334 | rm -f conftest.err conftest.$ac_ext | |
5335 | ||
5336 | done | |
5337 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5338 | rm -f conftest.err conftest.$ac_ext | |
5339 | if $ac_preproc_ok; then | |
5340 | break | |
5341 | fi | |
5342 | ||
5343 | done | |
5344 | ac_cv_prog_CPP=$CPP | |
5345 | ||
5346 | fi | |
5347 | CPP=$ac_cv_prog_CPP | |
b2dad0e3 | 5348 | else |
ff66d28f PE |
5349 | ac_cv_prog_CPP=$CPP |
5350 | fi | |
5351 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5352 | echo "${ECHO_T}$CPP" >&6 | |
5353 | ac_preproc_ok=false | |
5354 | for ac_c_preproc_warn_flag in '' yes | |
5355 | do | |
5356 | # Use a header file that comes with gcc, so configuring glibc | |
5357 | # with a fresh cross-compiler works. | |
5358 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5359 | # <limits.h> exists even on freestanding compilers. | |
c470c17d | 5360 | # On the NeXT, cc -E runs the code through the compiler's parser, |
ff66d28f PE |
5361 | # not just through cpp. "Syntax error" is here to catch this case. |
5362 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5363 | /* confdefs.h. */ |
5364 | _ACEOF | |
5365 | cat confdefs.h >>conftest.$ac_ext | |
5366 | cat >>conftest.$ac_ext <<_ACEOF | |
5367 | /* end confdefs.h. */ | |
5368 | #ifdef __STDC__ | |
5369 | # include <limits.h> | |
5370 | #else | |
5371 | # include <assert.h> | |
5372 | #endif | |
ec2075e9 | 5373 | Syntax error |
ff66d28f PE |
5374 | _ACEOF |
5375 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5376 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5377 | ac_status=$? | |
5378 | grep -v '^ *+' conftest.er1 >conftest.err | |
5379 | rm -f conftest.er1 | |
5380 | cat conftest.err >&5 | |
5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5382 | (exit $ac_status); } >/dev/null; then | |
5383 | if test -s conftest.err; then | |
5384 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5385 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5386 | else |
5387 | ac_cpp_err= | |
5388 | fi | |
5389 | else | |
5390 | ac_cpp_err=yes | |
5391 | fi | |
5392 | if test -z "$ac_cpp_err"; then | |
b2dad0e3 BK |
5393 | : |
5394 | else | |
ff66d28f PE |
5395 | echo "$as_me: failed program was:" >&5 |
5396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5397 | ||
5398 | # Broken: fails on valid input. | |
5399 | continue | |
5400 | fi | |
5401 | rm -f conftest.err conftest.$ac_ext | |
5402 | ||
5403 | # OK, works on sane cases. Now check whether non-existent headers | |
5404 | # can be detected and how. | |
5405 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5406 | /* confdefs.h. */ |
5407 | _ACEOF | |
5408 | cat confdefs.h >>conftest.$ac_ext | |
5409 | cat >>conftest.$ac_ext <<_ACEOF | |
5410 | /* end confdefs.h. */ | |
5411 | #include <ac_nonexistent.h> | |
5412 | _ACEOF | |
5413 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5414 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5415 | ac_status=$? | |
5416 | grep -v '^ *+' conftest.er1 >conftest.err | |
5417 | rm -f conftest.er1 | |
5418 | cat conftest.err >&5 | |
5419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5420 | (exit $ac_status); } >/dev/null; then | |
5421 | if test -s conftest.err; then | |
5422 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5423 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5424 | else |
5425 | ac_cpp_err= | |
5426 | fi | |
5427 | else | |
5428 | ac_cpp_err=yes | |
5429 | fi | |
5430 | if test -z "$ac_cpp_err"; then | |
5431 | # Broken: success on invalid input. | |
5432 | continue | |
5433 | else | |
5434 | echo "$as_me: failed program was:" >&5 | |
5435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5436 | ||
5437 | # Passes both tests. | |
5438 | ac_preproc_ok=: | |
5439 | break | |
5440 | fi | |
5441 | rm -f conftest.err conftest.$ac_ext | |
5442 | ||
5443 | done | |
5444 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5445 | rm -f conftest.err conftest.$ac_ext | |
5446 | if $ac_preproc_ok; then | |
c470c17d BK |
5447 | : |
5448 | else | |
ff66d28f PE |
5449 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5450 | See \`config.log' for more details." >&5 | |
5451 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5452 | See \`config.log' for more details." >&2;} | |
5453 | { (exit 1); exit 1; }; } | |
5454 | fi | |
5455 | ||
5456 | ac_ext=c | |
5457 | ac_cpp='$CPP $CPPFLAGS' | |
5458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5461 | ||
5462 | ||
5463 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5464 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5465 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5467 | else | |
5468 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5469 | then ac_cv_prog_egrep='grep -E' | |
5470 | else ac_cv_prog_egrep='egrep' | |
5471 | fi | |
5472 | fi | |
5473 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5474 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5475 | EGREP=$ac_cv_prog_egrep | |
5476 | ||
5477 | ||
5478 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5479 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5480 | if test "${ac_cv_header_stdc+set}" = set; then | |
5481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5482 | else | |
5483 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5484 | /* confdefs.h. */ |
5485 | _ACEOF | |
5486 | cat confdefs.h >>conftest.$ac_ext | |
5487 | cat >>conftest.$ac_ext <<_ACEOF | |
5488 | /* end confdefs.h. */ | |
5489 | #include <stdlib.h> | |
5490 | #include <stdarg.h> | |
5491 | #include <string.h> | |
5492 | #include <float.h> | |
5493 | ||
5494 | int | |
5495 | main () | |
5496 | { | |
5497 | ||
5498 | ; | |
5499 | return 0; | |
5500 | } | |
5501 | _ACEOF | |
5502 | rm -f conftest.$ac_objext | |
5503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 5504 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 5505 | ac_status=$? |
ec2075e9 BK |
5506 | grep -v '^ *+' conftest.er1 >conftest.err |
5507 | rm -f conftest.er1 | |
5508 | cat conftest.err >&5 | |
ff66d28f PE |
5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5510 | (exit $ac_status); } && | |
780028b6 BK |
5511 | { ac_try='test -z "$ac_c_werror_flag" |
5512 | || test ! -s conftest.err' | |
ec2075e9 BK |
5513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5514 | (eval $ac_try) 2>&5 | |
5515 | ac_status=$? | |
5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5517 | (exit $ac_status); }; } && | |
5518 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
5519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5520 | (eval $ac_try) 2>&5 | |
5521 | ac_status=$? | |
5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5523 | (exit $ac_status); }; }; then | |
5524 | ac_cv_header_stdc=yes | |
5525 | else | |
5526 | echo "$as_me: failed program was:" >&5 | |
5527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5528 | ||
5529 | ac_cv_header_stdc=no | |
5530 | fi | |
ec2075e9 | 5531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
5532 | |
5533 | if test $ac_cv_header_stdc = yes; then | |
5534 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5535 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5536 | /* confdefs.h. */ |
5537 | _ACEOF | |
5538 | cat confdefs.h >>conftest.$ac_ext | |
5539 | cat >>conftest.$ac_ext <<_ACEOF | |
5540 | /* end confdefs.h. */ | |
5541 | #include <string.h> | |
5542 | ||
5543 | _ACEOF | |
5544 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5545 | $EGREP "memchr" >/dev/null 2>&1; then | |
c470c17d BK |
5546 | : |
5547 | else | |
ff66d28f PE |
5548 | ac_cv_header_stdc=no |
5549 | fi | |
5550 | rm -f conftest* | |
5551 | ||
5552 | fi | |
5553 | ||
5554 | if test $ac_cv_header_stdc = yes; then | |
5555 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5556 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5557 | /* confdefs.h. */ |
5558 | _ACEOF | |
5559 | cat confdefs.h >>conftest.$ac_ext | |
5560 | cat >>conftest.$ac_ext <<_ACEOF | |
5561 | /* end confdefs.h. */ | |
5562 | #include <stdlib.h> | |
5563 | ||
5564 | _ACEOF | |
5565 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5566 | $EGREP "free" >/dev/null 2>&1; then | |
5567 | : | |
5568 | else | |
5569 | ac_cv_header_stdc=no | |
5570 | fi | |
5571 | rm -f conftest* | |
5572 | ||
5573 | fi | |
5574 | ||
5575 | if test $ac_cv_header_stdc = yes; then | |
5576 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5577 | if test "$cross_compiling" = yes; then | |
5578 | : | |
5579 | else | |
5580 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5581 | /* confdefs.h. */ |
5582 | _ACEOF | |
5583 | cat confdefs.h >>conftest.$ac_ext | |
5584 | cat >>conftest.$ac_ext <<_ACEOF | |
5585 | /* end confdefs.h. */ | |
5586 | #include <ctype.h> | |
5587 | #if ((' ' & 0x0FF) == 0x020) | |
5588 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5589 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5590 | #else | |
5591 | # define ISLOWER(c) \ | |
ec2075e9 BK |
5592 | (('a' <= (c) && (c) <= 'i') \ |
5593 | || ('j' <= (c) && (c) <= 'r') \ | |
5594 | || ('s' <= (c) && (c) <= 'z')) | |
ff66d28f PE |
5595 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5596 | #endif | |
5597 | ||
5598 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5599 | int | |
5600 | main () | |
5601 | { | |
5602 | int i; | |
5603 | for (i = 0; i < 256; i++) | |
5604 | if (XOR (islower (i), ISLOWER (i)) | |
ec2075e9 | 5605 | || toupper (i) != TOUPPER (i)) |
ff66d28f PE |
5606 | exit(2); |
5607 | exit (0); | |
5608 | } | |
5609 | _ACEOF | |
5610 | rm -f conftest$ac_exeext | |
5611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5612 | (eval $ac_link) 2>&5 | |
5613 | ac_status=$? | |
5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5615 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5617 | (eval $ac_try) 2>&5 | |
5618 | ac_status=$? | |
5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5620 | (exit $ac_status); }; }; then | |
5621 | : | |
5622 | else | |
5623 | echo "$as_me: program exited with status $ac_status" >&5 | |
5624 | echo "$as_me: failed program was:" >&5 | |
5625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5626 | ||
5627 | ( exit $ac_status ) | |
5628 | ac_cv_header_stdc=no | |
b2dad0e3 | 5629 | fi |
ec2075e9 | 5630 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b2dad0e3 | 5631 | fi |
33590f13 | 5632 | fi |
33590f13 | 5633 | fi |
ff66d28f PE |
5634 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5635 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5636 | if test $ac_cv_header_stdc = yes; then | |
5637 | ||
5638 | cat >>confdefs.h <<\_ACEOF | |
5639 | #define STDC_HEADERS 1 | |
5640 | _ACEOF | |
5641 | ||
5642 | fi | |
5643 | ||
5644 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5645 | ||
5646 | ||
5647 | ||
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ec2075e9 | 5655 | inttypes.h stdint.h unistd.h |
ff66d28f PE |
5656 | do |
5657 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5658 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5662 | else | |
5663 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5664 | /* confdefs.h. */ |
5665 | _ACEOF | |
5666 | cat confdefs.h >>conftest.$ac_ext | |
5667 | cat >>conftest.$ac_ext <<_ACEOF | |
5668 | /* end confdefs.h. */ | |
5669 | $ac_includes_default | |
5670 | ||
5671 | #include <$ac_header> | |
5672 | _ACEOF | |
5673 | rm -f conftest.$ac_objext | |
5674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 5675 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 5676 | ac_status=$? |
ec2075e9 BK |
5677 | grep -v '^ *+' conftest.er1 >conftest.err |
5678 | rm -f conftest.er1 | |
5679 | cat conftest.err >&5 | |
ff66d28f PE |
5680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5681 | (exit $ac_status); } && | |
780028b6 BK |
5682 | { ac_try='test -z "$ac_c_werror_flag" |
5683 | || test ! -s conftest.err' | |
ec2075e9 BK |
5684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5685 | (eval $ac_try) 2>&5 | |
5686 | ac_status=$? | |
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5688 | (exit $ac_status); }; } && | |
5689 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
5690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5691 | (eval $ac_try) 2>&5 | |
5692 | ac_status=$? | |
5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5694 | (exit $ac_status); }; }; then | |
5695 | eval "$as_ac_Header=yes" | |
5696 | else | |
5697 | echo "$as_me: failed program was:" >&5 | |
5698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5699 | ||
5700 | eval "$as_ac_Header=no" | |
5701 | fi | |
ec2075e9 | 5702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
5703 | fi |
5704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5705 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5706 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5707 | cat >>confdefs.h <<_ACEOF | |
5708 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5709 | _ACEOF | |
5710 | ||
33590f13 | 5711 | fi |
ff66d28f PE |
5712 | |
5713 | done | |
5714 | ||
33590f13 BK |
5715 | |
5716 | ||
ff66d28f PE |
5717 | echo "$as_me:$LINENO: checking for C locale to use" >&5 |
5718 | echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6 | |
5719 | # Check whether --enable-clocale or --disable-clocale was given. | |
4e10943d BK |
5720 | if test "${enable_clocale+set}" = set; then |
5721 | enableval="$enable_clocale" | |
ff66d28f PE |
5722 | |
5723 | case "$enableval" in | |
5724 | generic|gnu|ieee_1003.1-2001|yes|no|auto) ;; | |
5725 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5 | |
5726 | echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;} | |
5727 | { (exit 1); exit 1; }; } ;; | |
5728 | esac | |
5729 | ||
b2dad0e3 | 5730 | else |
ff66d28f PE |
5731 | enable_clocale=auto |
5732 | fi; | |
b2dad0e3 | 5733 | |
20427c6b | 5734 | |
ff66d28f PE |
5735 | # If they didn't use this option switch, or if they specified --enable |
5736 | # with no specific model, we'll have to look for one. If they | |
5737 | # specified --disable (???), do likewise. | |
5738 | if test $enable_clocale = no || test $enable_clocale = yes; then | |
5739 | enable_clocale=auto | |
5740 | fi | |
5741 | ||
5742 | # Either a known package, or "auto" | |
4e10943d | 5743 | enable_clocale_flag=$enable_clocale |
dd75251f | 5744 | |
ff66d28f PE |
5745 | # Probe for locale support if no specific model is specified. |
5746 | # Default to "generic". | |
5747 | if test $enable_clocale_flag = auto; then | |
7d3998a4 PE |
5748 | case ${target_os} in |
5749 | linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu) | |
ff66d28f | 5750 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
5751 | /* confdefs.h. */ |
5752 | _ACEOF | |
5753 | cat confdefs.h >>conftest.$ac_ext | |
5754 | cat >>conftest.$ac_ext <<_ACEOF | |
5755 | /* end confdefs.h. */ | |
56deb74c BK |
5756 | |
5757 | #include <features.h> | |
37bc6ca2 | 5758 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) |
3d7c150e | 5759 | _GLIBCXX_ok |
56deb74c | 5760 | #endif |
ff66d28f PE |
5761 | |
5762 | _ACEOF | |
56deb74c | 5763 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ff66d28f | 5764 | $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then |
56deb74c BK |
5765 | enable_clocale_flag=gnu |
5766 | else | |
56deb74c BK |
5767 | enable_clocale_flag=generic |
5768 | fi | |
5769 | rm -f conftest* | |
5770 | ||
1451a492 | 5771 | |
ff66d28f | 5772 | # Test for bugs early in glibc-2.2.x series |
7d3998a4 | 5773 | if test $enable_clocale_flag = gnu; then |
ff66d28f | 5774 | if test "$cross_compiling" = yes; then |
1451a492 BK |
5775 | enable_clocale_flag=generic |
5776 | else | |
ff66d28f | 5777 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
5778 | /* confdefs.h. */ |
5779 | _ACEOF | |
5780 | cat confdefs.h >>conftest.$ac_ext | |
5781 | cat >>conftest.$ac_ext <<_ACEOF | |
5782 | /* end confdefs.h. */ | |
5783 | ||
5784 | #define _GNU_SOURCE 1 | |
5785 | #include <locale.h> | |
5786 | #include <string.h> | |
5787 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | |
5788 | extern __typeof(newlocale) __newlocale; | |
5789 | extern __typeof(duplocale) __duplocale; | |
5790 | extern __typeof(strcoll_l) __strcoll_l; | |
5791 | #endif | |
5792 | int main() | |
5793 | { | |
5794 |