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