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