]>
Commit | Line | Data |
---|---|---|
cd6ede75 | 1 | #! /bin/sh |
3a12e572 UD |
2 | # From configure.in CVSid. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
8f73811b | 4 | # Generated by GNU Autoconf 2.57 for GNU C Library (see version.h). |
f4b07664 RM |
5 | # |
6 | # Report bugs to <glibc>. | |
3a12e572 | 7 | # |
8f73811b RM |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
9 | # Free Software Foundation, Inc. | |
3a12e572 UD |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
3a12e572 UD |
12 | ## --------------------- ## |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
cd6ede75 | 15 | |
3a12e572 UD |
16 | # Be Bourne compatible |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
f4b07664 RM |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
3a12e572 UD |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
24 | set -o posix | |
25 | fi | |
cd6ede75 | 26 | |
3a12e572 | 27 | # Support unset when possible. |
8f73811b | 28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
3a12e572 UD |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
f4b07664 RM |
34 | |
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
2abf9ff1 RM |
42 | for as_var in \ |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
f4b07664 | 46 | do |
8f73811b | 47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
f4b07664 RM |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
3a12e572 UD |
66 | |
67 | ||
68 | # Name of the executable. | |
f4b07664 | 69 | as_me=`$as_basename "$0" || |
3a12e572 UD |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
f4b07664 | 80 | |
3a12e572 UD |
81 | # PATH needs CR, and LINENO needs CR and PATH. |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
2abf9ff1 RM |
91 | echo "#! /bin/sh" >conf$$.sh |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3a12e572 UD |
95 | PATH_SEPARATOR=';' |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
2abf9ff1 | 99 | rm -f conf$$.sh |
3a12e572 | 100 | fi |
cd6ede75 UD |
101 | |
102 | ||
3a12e572 UD |
103 | as_lineno_1=$LINENO |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
650425ce | 119 | |
3a12e572 UD |
120 | ;; |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
f4b07664 RM |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
3a12e572 UD |
149 | CONFIG_SHELL=$as_dir/$as_base |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
650425ce | 158 | |
3a12e572 UD |
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
650425ce UD |
188 | |
189 | ||
3a12e572 UD |
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
63bda0c1 | 196 | |
3a12e572 UD |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
f4b07664 RM |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
224 | as_mkdir_p=false | |
225 | fi | |
226 | ||
3a12e572 UD |
227 | as_executable_p="test -f" |
228 | ||
229 | # Sed expression to map a string onto a valid CPP name. | |
8f73811b | 230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
3a12e572 UD |
231 | |
232 | # Sed expression to map a string onto a valid variable name. | |
8f73811b | 233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
3a12e572 UD |
234 | |
235 | ||
236 | # IFS | |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
241 | ||
242 | # CDPATH. | |
f4b07664 | 243 | $as_unset CDPATH |
63bda0c1 | 244 | |
cd6ede75 | 245 | |
3a12e572 UD |
246 | # Name of the host. |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
250 | ||
251 | exec 6>&1 | |
252 | ||
253 | # | |
254 | # Initializations. | |
255 | # | |
cd6ede75 | 256 | ac_default_prefix=/usr/local |
f4b07664 | 257 | ac_config_libobj_dir=. |
3a12e572 UD |
258 | cross_compiling=no |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
f4b07664 RM |
270 | PACKAGE_NAME='GNU C Library' |
271 | PACKAGE_TARNAME='c-library' | |
272 | PACKAGE_VERSION='(see version.h)' | |
273 | PACKAGE_STRING='GNU C Library (see version.h)' | |
274 | PACKAGE_BUGREPORT='glibc' | |
3a12e572 UD |
275 | |
276 | ac_unique_file="include/features.h" | |
a1ceed7a | 277 | ac_subdirs_all="$ac_subdirs_all " |
3a12e572 UD |
278 | # Factoring default headers for most tests. |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
8f73811b | 315 | 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 with_fp with_cvs enable_check_abi oldest_abi bindnow force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os subdirs add_ons base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP CXX CXXFLAGS ac_ct_CXX AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_cc_with_libunwind libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_z_relro libc_cv_Bgroup libc_cv_libgcc_s_suffix libc_cv_as_needed ASFLAGS_config libc_cv_z_combreloc libc_cv_z_execstack libc_cv_fpie fno_unit_at_a_time libc_cv_have_initfini libc_cv_cpp_asm_debuginfo no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir libc_cv_forced_unwind use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS' |
f4b07664 | 316 | ac_subst_files='' |
cd6ede75 UD |
317 | |
318 | # Initialize some variables set by options. | |
3a12e572 UD |
319 | ac_init_help= |
320 | ac_init_version=false | |
cd6ede75 UD |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
3a12e572 | 323 | cache_file=/dev/null |
cd6ede75 | 324 | exec_prefix=NONE |
cd6ede75 | 325 | no_create= |
cd6ede75 UD |
326 | no_recursion= |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
cd6ede75 UD |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
3a12e572 UD |
337 | |
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
cd6ede75 UD |
343 | bindir='${exec_prefix}/bin' |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
cd6ede75 UD |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
cd6ede75 UD |
359 | # If the previous option needs an argument, assign it. |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
3a12e572 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
cd6ede75 UD |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
3a12e572 | 370 | case $ac_option in |
cd6ede75 UD |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
3a12e572 | 375 | bindir=$ac_optarg ;; |
cd6ede75 UD |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
3a12e572 | 378 | ac_prev=build_alias ;; |
cd6ede75 | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
3a12e572 | 380 | build_alias=$ac_optarg ;; |
cd6ede75 UD |
381 | |
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3a12e572 UD |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
cd6ede75 UD |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
3a12e572 | 396 | datadir=$ac_optarg ;; |
cd6ede75 UD |
397 | |
398 | -disable-* | --disable-*) | |
3a12e572 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
cd6ede75 | 400 | # Reject names that are not valid shell variable names. |
3a12e572 UD |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
cd6ede75 UD |
406 | |
407 | -enable-* | --enable-*) | |
3a12e572 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
cd6ede75 | 409 | # Reject names that are not valid shell variable names. |
3a12e572 UD |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
cd6ede75 UD |
416 | *) ac_optarg=yes ;; |
417 | esac | |
3a12e572 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
cd6ede75 UD |
419 | |
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
3a12e572 | 427 | exec_prefix=$ac_optarg ;; |
cd6ede75 UD |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
3a12e572 UD |
433 | -help | --help | --hel | --he | -h) |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
cd6ede75 UD |
439 | |
440 | -host | --host | --hos | --ho) | |
3a12e572 | 441 | ac_prev=host_alias ;; |
cd6ede75 | 442 | -host=* | --host=* | --hos=* | --ho=*) |
3a12e572 | 443 | host_alias=$ac_optarg ;; |
cd6ede75 UD |
444 | |
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
3a12e572 | 450 | includedir=$ac_optarg ;; |
cd6ede75 UD |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
3a12e572 | 455 | infodir=$ac_optarg ;; |
cd6ede75 UD |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
3a12e572 | 460 | libdir=$ac_optarg ;; |
cd6ede75 UD |
461 | |
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
3a12e572 | 467 | libexecdir=$ac_optarg ;; |
cd6ede75 UD |
468 | |
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
3a12e572 | 476 | localstatedir=$ac_optarg ;; |
cd6ede75 UD |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
3a12e572 | 481 | mandir=$ac_optarg ;; |
cd6ede75 UD |
482 | |
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
3a12e572 | 488 | | --no-cr | --no-c | -n) |
cd6ede75 UD |
489 | no_create=yes ;; |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
3a12e572 | 502 | oldincludedir=$ac_optarg ;; |
cd6ede75 UD |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
3a12e572 | 507 | prefix=$ac_optarg ;; |
cd6ede75 UD |
508 | |
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
3a12e572 | 514 | program_prefix=$ac_optarg ;; |
cd6ede75 UD |
515 | |
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
3a12e572 | 521 | program_suffix=$ac_optarg ;; |
cd6ede75 UD |
522 | |
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
3a12e572 | 538 | program_transform_name=$ac_optarg ;; |
cd6ede75 UD |
539 | |
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
3a12e572 | 548 | sbindir=$ac_optarg ;; |
cd6ede75 UD |
549 | |
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
3a12e572 | 559 | sharedstatedir=$ac_optarg ;; |
cd6ede75 UD |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
3a12e572 | 564 | site=$ac_optarg ;; |
cd6ede75 UD |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3a12e572 | 569 | srcdir=$ac_optarg ;; |
cd6ede75 UD |
570 | |
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
3a12e572 | 576 | sysconfdir=$ac_optarg ;; |
cd6ede75 UD |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
3a12e572 | 579 | ac_prev=target_alias ;; |
cd6ede75 | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
3a12e572 | 581 | target_alias=$ac_optarg ;; |
cd6ede75 UD |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
3a12e572 UD |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
cd6ede75 UD |
588 | |
589 | -with-* | --with-*) | |
3a12e572 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
cd6ede75 | 591 | # Reject names that are not valid shell variable names. |
3a12e572 UD |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
cd6ede75 | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
3a12e572 UD |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
cd6ede75 UD |
598 | *) ac_optarg=yes ;; |
599 | esac | |
3a12e572 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
cd6ede75 UD |
601 | |
602 | -without-* | --without-*) | |
3a12e572 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
cd6ede75 | 604 | # Reject names that are not valid shell variable names. |
3a12e572 UD |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
cd6ede75 UD |
610 | |
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
3a12e572 | 620 | x_includes=$ac_optarg ;; |
cd6ede75 UD |
621 | |
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
3a12e572 | 627 | x_libraries=$ac_optarg ;; |
cd6ede75 | 628 | |
3a12e572 UD |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
632 | ;; |
633 | ||
3a12e572 UD |
634 | *=*) |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
cd6ede75 | 644 | *) |
3a12e572 UD |
645 | # FIXME: should be removed in autoconf 3.0. |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
cd6ede75 UD |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
3a12e572 UD |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
cd6ede75 | 659 | fi |
cd6ede75 | 660 | |
3a12e572 UD |
661 | # Be sure to have absolute paths. |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
668 | { (exit 1); exit 1; }; };; | |
669 | esac | |
670 | done | |
cd6ede75 | 671 | |
3a12e572 UD |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
8f73811b | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
cd6ede75 | 675 | do |
3a12e572 UD |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
680 | { (exit 1); exit 1; }; };; | |
cd6ede75 UD |
681 | esac |
682 | done | |
683 | ||
3a12e572 UD |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
686 | # FIXME: To remove some day. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if test "x$host_alias" != x; then | |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
cd6ede75 | 701 | |
3a12e572 UD |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
cd6ede75 | 706 | |
cd6ede75 UD |
707 | |
708 | # Find the source files, if location was not specified. | |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
3a12e572 UD |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8f73811b RM |
714 | X"$0" : 'X\(//\)[^/]' \| \ |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
3a12e572 UD |
718 | echo X"$0" | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
cd6ede75 UD |
724 | srcdir=$ac_confdir |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
3a12e572 UD |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
734 | { (exit 1); exit 1; }; } | |
cd6ede75 | 735 | else |
3a12e572 UD |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
737 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
738 | fi |
739 | fi | |
f4b07664 RM |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
3a12e572 UD |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
925c3c5c UD |
776 | ac_env_CXX_set=${CXX+set} |
777 | ac_env_CXX_value=$CXX | |
778 | ac_cv_env_CXX_set=${CXX+set} | |
779 | ac_cv_env_CXX_value=$CXX | |
780 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
781 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
782 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
783 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
3a12e572 UD |
784 | |
785 | # | |
786 | # Report the --help message. | |
787 | # | |
788 | if test "$ac_init_help" = "long"; then | |
789 | # Omit some internal or obsolete options to make the list less imposing. | |
790 | # This message is too long to be a string in the A/UX 3.1 sh. | |
791 | cat <<_ACEOF | |
f4b07664 | 792 | \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. |
3a12e572 UD |
793 | |
794 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
795 | ||
796 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
797 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
798 | ||
799 | Defaults for the options are specified in brackets. | |
800 | ||
801 | Configuration: | |
802 | -h, --help display this help and exit | |
803 | --help=short display options specific to this package | |
804 | --help=recursive display the short help of all the included packages | |
805 | -V, --version display version information and exit | |
806 | -q, --quiet, --silent do not print \`checking...' messages | |
807 | --cache-file=FILE cache test results in FILE [disabled] | |
808 | -C, --config-cache alias for \`--cache-file=config.cache' | |
809 | -n, --no-create do not create output files | |
810 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
811 | ||
812 | _ACEOF | |
813 | ||
814 | cat <<_ACEOF | |
815 | Installation directories: | |
816 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8f73811b | 817 | [$ac_default_prefix] |
3a12e572 | 818 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8f73811b | 819 | [PREFIX] |
3a12e572 UD |
820 | |
821 | By default, \`make install' will install all the files in | |
822 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
823 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
824 | for instance \`--prefix=\$HOME'. | |
825 | ||
826 | For better control, use the options below. | |
827 | ||
828 | Fine tuning of the installation directories: | |
829 | --bindir=DIR user executables [EPREFIX/bin] | |
830 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
831 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
832 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
833 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
834 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
835 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
836 | --libdir=DIR object code libraries [EPREFIX/lib] | |
837 | --includedir=DIR C header files [PREFIX/include] | |
838 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
839 | --infodir=DIR info documentation [PREFIX/info] | |
840 | --mandir=DIR man documentation [PREFIX/man] | |
841 | _ACEOF | |
842 | ||
843 | cat <<\_ACEOF | |
844 | ||
845 | System types: | |
846 | --build=BUILD configure for building on BUILD [guessed] | |
847 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
848 | _ACEOF | |
849 | fi | |
cd6ede75 | 850 | |
3a12e572 | 851 | if test -n "$ac_init_help"; then |
f4b07664 RM |
852 | case $ac_init_help in |
853 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
854 | esac | |
3a12e572 UD |
855 | cat <<\_ACEOF |
856 | ||
857 | Optional Features: | |
858 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
859 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6b7f6183 RM |
860 | --disable-sanity-checks really do not use threads (should not be used except |
861 | in special situations) [default=yes] | |
fd54683c RM |
862 | --enable-check-abi do "make check-abi" in "make check" (no/warn/yes) |
863 | [default=no] | |
6b7f6183 RM |
864 | --enable-shared build shared library [default=yes if GNU ld & |
865 | ELF] | |
866 | --enable-profile build profiled library [default=yes] | |
867 | --enable-omitfp build undebuggable optimized library | |
868 | [default=no] | |
869 | --enable-bounded build with runtime bounds checking | |
870 | [default=no] | |
871 | --disable-versioning do not include versioning information in the library | |
872 | objects [default=yes if supported] | |
873 | --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2] | |
874 | [default=glibc default] | |
875 | --enable-add-ons[=DIRS...] | |
876 | configure and build add-ons in DIR1,DIR2,... search | |
877 | for add-ons if no parameter given | |
3a12e572 | 878 | --disable-hidden-plt do not hide internal function calls to avoid PLT |
4df8c11d | 879 | --enable-bind-now disable lazy relocations in DSOs |
6b7f6183 | 880 | --enable-static-nss build static NSS modules [default=no] |
3a12e572 | 881 | --disable-force-install don't force installation of files from this package, |
6b7f6183 RM |
882 | even if they are older than the installed files |
883 | --enable-kernel=VERSION compile for compatibility with kernel not older than | |
884 | VERSION | |
3a12e572 UD |
885 | --enable-all-warnings enable all useful warnings gcc can issue |
886 | ||
887 | Optional Packages: | |
888 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
889 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
6b7f6183 | 890 | --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed) |
3a12e572 UD |
891 | --with-gd=DIR find libgd include dir and library with prefix DIR |
892 | --with-gd-include=DIR find libgd include files in DIR | |
893 | --with-gd-lib=DIR find libgd library files in DIR | |
6b7f6183 RM |
894 | --with-fp if using floating-point hardware [default=yes] |
895 | --with-binutils=PATH specify location of binutils (as and ld) | |
896 | --with-elf if using the ELF object format | |
897 | --with-xcoff if using the XCOFF object format | |
3a12e572 | 898 | --without-cvs if CVS should not be used |
6b7f6183 RM |
899 | --with-headers=PATH location of system headers to use (for example |
900 | /usr/src/linux/include) [default=compiler | |
901 | default] | |
3a12e572 UD |
902 | --with-tls enable support for TLS |
903 | --without-__thread do not use TLS features even when supporting them | |
904 | ||
905 | Some influential environment variables: | |
906 | CC C compiler command | |
907 | CFLAGS C compiler flags | |
908 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
909 | nonstandard directory <lib dir> | |
910 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
911 | headers in a nonstandard directory <include dir> | |
912 | CPP C preprocessor | |
925c3c5c UD |
913 | CXX C++ compiler command |
914 | CXXFLAGS C++ compiler flags | |
3a12e572 UD |
915 | |
916 | Use these variables to override the choices made by `configure' or to help | |
917 | it to find libraries and programs with nonstandard names/locations. | |
918 | ||
f4b07664 | 919 | Report bugs to <glibc>. |
3a12e572 UD |
920 | _ACEOF |
921 | fi | |
922 | ||
923 | if test "$ac_init_help" = "recursive"; then | |
924 | # If there are subdirs, report their specific --help. | |
925 | ac_popdir=`pwd` | |
926 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
927 | test -d $ac_dir || continue | |
928 | ac_builddir=. | |
929 | ||
930 | if test "$ac_dir" != .; then | |
931 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
932 | # A "../" for each directory in $ac_dir_suffix. | |
933 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
934 | else | |
935 | ac_dir_suffix= ac_top_builddir= | |
936 | fi | |
937 | ||
938 | case $srcdir in | |
939 | .) # No --srcdir option. We are building in place. | |
940 | ac_srcdir=. | |
941 | if test -z "$ac_top_builddir"; then | |
942 | ac_top_srcdir=. | |
943 | else | |
944 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
945 | fi ;; | |
946 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
947 | ac_srcdir=$srcdir$ac_dir_suffix; | |
948 | ac_top_srcdir=$srcdir ;; | |
949 | *) # Relative path. | |
950 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
951 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
952 | esac | |
8f73811b RM |
953 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
954 | # absolute. | |
955 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
956 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
957 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
958 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
3a12e572 UD |
959 | |
960 | cd $ac_dir | |
961 | # Check for guested configure; otherwise get Cygnus style configure. | |
962 | if test -f $ac_srcdir/configure.gnu; then | |
963 | echo | |
964 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
965 | elif test -f $ac_srcdir/configure; then | |
966 | echo | |
967 | $SHELL $ac_srcdir/configure --help=recursive | |
968 | elif test -f $ac_srcdir/configure.ac || | |
8f73811b | 969 | test -f $ac_srcdir/configure.in; then |
3a12e572 UD |
970 | echo |
971 | $ac_configure --help | |
972 | else | |
973 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
974 | fi | |
975 | cd $ac_popdir | |
976 | done | |
977 | fi | |
978 | ||
979 | test -n "$ac_init_help" && exit 0 | |
980 | if $ac_init_version; then | |
981 | cat <<\_ACEOF | |
f4b07664 | 982 | GNU C Library configure (see version.h) |
8f73811b | 983 | generated by GNU Autoconf 2.57 |
3a12e572 | 984 | |
8f73811b RM |
985 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
986 | Free Software Foundation, Inc. | |
3a12e572 UD |
987 | This configure script is free software; the Free Software Foundation |
988 | gives unlimited permission to copy, distribute and modify it. | |
989 | _ACEOF | |
990 | exit 0 | |
991 | fi | |
992 | exec 5>config.log | |
993 | cat >&5 <<_ACEOF | |
994 | This file contains any messages produced by compilers while | |
995 | running configure, to aid debugging if configure makes a mistake. | |
996 | ||
f4b07664 | 997 | It was created by GNU C Library $as_me (see version.h), which was |
8f73811b | 998 | generated by GNU Autoconf 2.57. Invocation command line was |
3a12e572 UD |
999 | |
1000 | $ $0 $@ | |
1001 | ||
1002 | _ACEOF | |
1003 | { | |
1004 | cat <<_ASUNAME | |
1005 | ## --------- ## | |
1006 | ## Platform. ## | |
1007 | ## --------- ## | |
1008 | ||
1009 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1010 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1011 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1012 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1013 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1014 | ||
1015 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1016 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1017 | ||
1018 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1019 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1020 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1021 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1022 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1023 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1024 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1025 | ||
1026 | _ASUNAME | |
1027 | ||
1028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1029 | for as_dir in $PATH | |
1030 | do | |
1031 | IFS=$as_save_IFS | |
1032 | test -z "$as_dir" && as_dir=. | |
1033 | echo "PATH: $as_dir" | |
1034 | done | |
1035 | ||
1036 | } >&5 | |
1037 | ||
1038 | cat >&5 <<_ACEOF | |
1039 | ||
1040 | ||
1041 | ## ----------- ## | |
1042 | ## Core tests. ## | |
1043 | ## ----------- ## | |
1044 | ||
1045 | _ACEOF | |
1046 | ||
1047 | ||
1048 | # Keep a trace of the command line. | |
1049 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2abf9ff1 | 1050 | # Strip out --silent because we don't want to record it for future runs. |
3a12e572 | 1051 | # Also quote any args containing shell meta-characters. |
2abf9ff1 | 1052 | # Make two passes to allow for proper duplicate-argument suppression. |
3a12e572 | 1053 | ac_configure_args= |
2abf9ff1 RM |
1054 | ac_configure_args0= |
1055 | ac_configure_args1= | |
3a12e572 | 1056 | ac_sep= |
2abf9ff1 RM |
1057 | ac_must_keep_next=false |
1058 | for ac_pass in 1 2 | |
3a12e572 | 1059 | do |
2abf9ff1 RM |
1060 | for ac_arg |
1061 | do | |
1062 | case $ac_arg in | |
1063 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1064 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1065 | | -silent | --silent | --silen | --sile | --sil) | |
1066 | continue ;; | |
1067 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1068 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1069 | esac | |
1070 | case $ac_pass in | |
1071 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1072 | 2) | |
1073 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1074 | if test $ac_must_keep_next = true; then | |
8f73811b | 1075 | ac_must_keep_next=false # Got value, back to normal. |
2abf9ff1 | 1076 | else |
8f73811b RM |
1077 | case $ac_arg in |
1078 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1079 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1080 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1081 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1082 | case "$ac_configure_args0 " in | |
1083 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1084 | esac | |
1085 | ;; | |
1086 | -* ) ac_must_keep_next=true ;; | |
1087 | esac | |
2abf9ff1 RM |
1088 | fi |
1089 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1090 | # Get rid of the leading space. | |
1091 | ac_sep=" " | |
1092 | ;; | |
1093 | esac | |
1094 | done | |
3a12e572 | 1095 | done |
2abf9ff1 RM |
1096 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1097 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
3a12e572 UD |
1098 | |
1099 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1100 | # config.log. We remove comments because anyway the quotes in there | |
1101 | # would cause problems or look ugly. | |
1102 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1103 | # such as our DU 5.0 friend, will then `close' the trap. | |
1104 | trap 'exit_status=$? | |
1105 | # Save into config.log some information that might help in debugging. | |
1106 | { | |
1107 | echo | |
f4b07664 | 1108 | |
3a12e572 UD |
1109 | cat <<\_ASBOX |
1110 | ## ---------------- ## | |
1111 | ## Cache variables. ## | |
1112 | ## ---------------- ## | |
1113 | _ASBOX | |
1114 | echo | |
1115 | # The following way of writing the cache mishandles newlines in values, | |
1116 | { | |
1117 | (set) 2>&1 | | |
1118 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1119 | *ac_space=\ *) | |
1120 | sed -n \ | |
8f73811b RM |
1121 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1122 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
3a12e572 UD |
1123 | ;; |
1124 | *) | |
1125 | sed -n \ | |
8f73811b | 1126 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
3a12e572 UD |
1127 | ;; |
1128 | esac; | |
1129 | } | |
1130 | echo | |
f4b07664 RM |
1131 | |
1132 | cat <<\_ASBOX | |
1133 | ## ----------------- ## | |
1134 | ## Output variables. ## | |
1135 | ## ----------------- ## | |
1136 | _ASBOX | |
1137 | echo | |
1138 | for ac_var in $ac_subst_vars | |
1139 | do | |
1140 | eval ac_val=$`echo $ac_var` | |
1141 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1142 | done | sort | |
1143 | echo | |
1144 | ||
1145 | if test -n "$ac_subst_files"; then | |
1146 | cat <<\_ASBOX | |
1147 | ## ------------- ## | |
1148 | ## Output files. ## | |
1149 | ## ------------- ## | |
1150 | _ASBOX | |
1151 | echo | |
1152 | for ac_var in $ac_subst_files | |
1153 | do | |
1154 | eval ac_val=$`echo $ac_var` | |
8f73811b | 1155 | echo "$ac_var='"'"'$ac_val'"'"'" |
f4b07664 RM |
1156 | done | sort |
1157 | echo | |
1158 | fi | |
1159 | ||
3a12e572 UD |
1160 | if test -s confdefs.h; then |
1161 | cat <<\_ASBOX | |
1162 | ## ----------- ## | |
1163 | ## confdefs.h. ## | |
1164 | ## ----------- ## | |
1165 | _ASBOX | |
1166 | echo | |
f4b07664 | 1167 | sed "/^$/d" confdefs.h | sort |
3a12e572 UD |
1168 | echo |
1169 | fi | |
1170 | test "$ac_signal" != 0 && | |
1171 | echo "$as_me: caught signal $ac_signal" | |
1172 | echo "$as_me: exit $exit_status" | |
1173 | } >&5 | |
8f73811b | 1174 | rm -f core core.* *.core && |
3a12e572 UD |
1175 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1176 | exit $exit_status | |
1177 | ' 0 | |
1178 | for ac_signal in 1 2 13 15; do | |
1179 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1180 | done | |
1181 | ac_signal=0 | |
1182 | ||
1183 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1184 | rm -rf conftest* confdefs.h | |
1185 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1186 | echo >confdefs.h | |
1187 | ||
1188 | # Predefined preprocessor variables. | |
1189 | ||
1190 | cat >>confdefs.h <<_ACEOF | |
1191 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1192 | _ACEOF | |
1193 | ||
1194 | ||
1195 | cat >>confdefs.h <<_ACEOF | |
1196 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | cat >>confdefs.h <<_ACEOF | |
1201 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1202 | _ACEOF | |
1203 | ||
1204 | ||
1205 | cat >>confdefs.h <<_ACEOF | |
1206 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1207 | _ACEOF | |
1208 | ||
1209 | ||
1210 | cat >>confdefs.h <<_ACEOF | |
1211 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1212 | _ACEOF | |
1213 | ||
1214 | ||
1215 | # Let the site file select an alternate cache file if it wants to. | |
cd6ede75 UD |
1216 | # Prefer explicitly selected file to automatically selected ones. |
1217 | if test -z "$CONFIG_SITE"; then | |
1218 | if test "x$prefix" != xNONE; then | |
1219 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1220 | else | |
1221 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1222 | fi | |
1223 | fi | |
1224 | for ac_site_file in $CONFIG_SITE; do | |
1225 | if test -r "$ac_site_file"; then | |
3a12e572 UD |
1226 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1227 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1228 | sed 's/^/| /' "$ac_site_file" >&5 | |
cd6ede75 UD |
1229 | . "$ac_site_file" |
1230 | fi | |
1231 | done | |
1232 | ||
1233 | if test -r "$cache_file"; then | |
3a12e572 UD |
1234 | # Some versions of bash will fail to source /dev/null (special |
1235 | # files actually), so we avoid doing that. | |
1236 | if test -f "$cache_file"; then | |
1237 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1238 | echo "$as_me: loading cache $cache_file" >&6;} | |
1239 | case $cache_file in | |
1240 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1241 | *) . ./$cache_file;; | |
1242 | esac | |
1243 | fi | |
cd6ede75 | 1244 | else |
3a12e572 UD |
1245 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1246 | echo "$as_me: creating cache $cache_file" >&6;} | |
1247 | >$cache_file | |
1248 | fi | |
1249 | ||
1250 | # Check that the precious variables saved in the cache have kept the same | |
1251 | # value. | |
1252 | ac_cache_corrupted=false | |
1253 | for ac_var in `(set) 2>&1 | | |
8f73811b | 1254 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
3a12e572 UD |
1255 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1256 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1257 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1258 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1259 | case $ac_old_set,$ac_new_set in | |
1260 | set,) | |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1262 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1263 | ac_cache_corrupted=: ;; | |
1264 | ,set) | |
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1266 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1267 | ac_cache_corrupted=: ;; | |
1268 | ,);; | |
1269 | *) | |
1270 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8f73811b | 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
3a12e572 | 1272 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
8f73811b | 1273 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
3a12e572 | 1274 | echo "$as_me: former value: $ac_old_val" >&2;} |
8f73811b | 1275 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
3a12e572 | 1276 | echo "$as_me: current value: $ac_new_val" >&2;} |
8f73811b | 1277 | ac_cache_corrupted=: |
3a12e572 UD |
1278 | fi;; |
1279 | esac | |
1280 | # Pass precious variables to config.status. | |
1281 | if test "$ac_new_set" = set; then | |
1282 | case $ac_new_val in | |
1283 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1284 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1285 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1286 | esac | |
1287 | case " $ac_configure_args " in | |
1288 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1289 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1290 | esac | |
1291 | fi | |
1292 | done | |
1293 | if $ac_cache_corrupted; then | |
1294 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1295 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1296 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1297 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1298 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
1299 | fi |
1300 | ||
1301 | ac_ext=c | |
cd6ede75 | 1302 | ac_cpp='$CPP $CPPFLAGS' |
3a12e572 UD |
1303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1306 | ||
1307 | ||
1308 | ||
cd6ede75 | 1309 | |
63bda0c1 | 1310 | |
cd6ede75 UD |
1311 | |
1312 | ||
3a12e572 UD |
1313 | |
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
f4b07664 RM |
1324 | |
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ac_config_headers="$ac_config_headers config.h" | |
3a12e572 | 1335 | |
444518fe UD |
1336 | ac_aux_dir= |
1337 | for ac_dir in scripts $srcdir/scripts; do | |
1338 | if test -f $ac_dir/install-sh; then | |
1339 | ac_aux_dir=$ac_dir | |
1340 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1341 | break | |
1342 | elif test -f $ac_dir/install.sh; then | |
1343 | ac_aux_dir=$ac_dir | |
1344 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1345 | break | |
3a12e572 UD |
1346 | elif test -f $ac_dir/shtool; then |
1347 | ac_aux_dir=$ac_dir | |
1348 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1349 | break | |
444518fe UD |
1350 | fi |
1351 | done | |
1352 | if test -z "$ac_aux_dir"; then | |
3a12e572 UD |
1353 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5 |
1354 | echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;} | |
1355 | { (exit 1); exit 1; }; } | |
444518fe | 1356 | fi |
3a12e572 UD |
1357 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1358 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1359 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
444518fe | 1360 | |
cd6ede75 | 1361 | |
c72637d4 RM |
1362 | if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then |
1363 | { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5 | |
1364 | echo "$as_me: error: you must configure in a separate build directory" >&2;} | |
1365 | { (exit 1); exit 1; }; } | |
1366 | fi | |
1367 | ||
cd6ede75 UD |
1368 | # This will get text that should go into config.make. |
1369 | config_vars= | |
1370 | ||
1371 | # Check for a --with-gmp argument and set gmp-srcdir in config.make. | |
3a12e572 | 1372 | |
cd6ede75 UD |
1373 | # Check whether --with-gmp or --without-gmp was given. |
1374 | if test "${with_gmp+set}" = set; then | |
1375 | withval="$with_gmp" | |
6b7f6183 RM |
1376 | |
1377 | case "$with_gmp" in | |
3a12e572 UD |
1378 | yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5 |
1379 | echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;} | |
1380 | { (exit 1); exit 1; }; } ;; | |
cd6ede75 UD |
1381 | ''|no) ;; |
1382 | *) config_vars="$config_vars | |
1383 | gmp-srcdir = $withval" ;; | |
1384 | esac | |
1385 | ||
3a12e572 | 1386 | fi; |
c8f3e6db | 1387 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. |
3a12e572 | 1388 | |
c8f3e6db UD |
1389 | # Check whether --with-gd or --without-gd was given. |
1390 | if test "${with_gd+set}" = set; then | |
1391 | withval="$with_gd" | |
1392 | case "$with_gd" in | |
e41db95b UD |
1393 | yes|''|no) ;; |
1394 | *) libgd_include="-I$withval/include" | |
c8f3e6db UD |
1395 | libgd_ldflags="-L$withval/lib" ;; |
1396 | esac | |
1397 | ||
3a12e572 | 1398 | fi; |
c8f3e6db | 1399 | |
e41db95b UD |
1400 | # Check whether --with-gd-include or --without-gd-include was given. |
1401 | if test "${with_gd_include+set}" = set; then | |
1402 | withval="$with_gd_include" | |
1403 | case "$with_gd_include" in | |
1404 | ''|no) ;; | |
1405 | *) libgd_include="-I$withval" ;; | |
1406 | esac | |
1407 | ||
3a12e572 | 1408 | fi; |
e41db95b UD |
1409 | |
1410 | # Check whether --with-gd-lib or --without-gd-lib was given. | |
1411 | if test "${with_gd_lib+set}" = set; then | |
1412 | withval="$with_gd_lib" | |
1413 | case "$with_gd_lib" in | |
1414 | ''|no) ;; | |
1415 | *) libgd_ldflags="-L$withval" ;; | |
1416 | esac | |
1417 | ||
3a12e572 | 1418 | fi; |
e41db95b UD |
1419 | |
1420 | if test -n "$libgd_include"; then | |
1421 | config_vars="$config_vars | |
cf90163d | 1422 | CFLAGS-memusagestat.c = $libgd_include" |
e41db95b UD |
1423 | fi |
1424 | if test -n "$libgd_ldflags"; then | |
1425 | config_vars="$config_vars | |
1426 | libgd-LDFLAGS = $libgd_ldflags" | |
1427 | fi | |
cd6ede75 | 1428 | |
3a12e572 | 1429 | |
cd6ede75 UD |
1430 | # Check whether --with-fp or --without-fp was given. |
1431 | if test "${with_fp+set}" = set; then | |
1432 | withval="$with_fp" | |
1433 | with_fp=$withval | |
1434 | else | |
1435 | with_fp=yes | |
3a12e572 | 1436 | fi; |
cd6ede75 | 1437 | |
675322a5 | 1438 | |
650425ce UD |
1439 | # Check whether --with-binutils or --without-binutils was given. |
1440 | if test "${with_binutils+set}" = set; then | |
1441 | withval="$with_binutils" | |
a5a0310d UD |
1442 | path_binutils=$withval |
1443 | else | |
650425ce | 1444 | path_binutils='' |
3a12e572 | 1445 | fi; |
cd6ede75 | 1446 | |
cd6ede75 UD |
1447 | # Check whether --with-elf or --without-elf was given. |
1448 | if test "${with_elf+set}" = set; then | |
1449 | withval="$with_elf" | |
1450 | elf=$withval | |
1451 | else | |
1452 | elf=no | |
3a12e572 | 1453 | fi; |
cd6ede75 | 1454 | |
5af3245a UD |
1455 | # Check whether --with-xcoff or --without-xcoff was given. |
1456 | if test "${with_xcoff+set}" = set; then | |
1457 | withval="$with_xcoff" | |
1458 | xcoff=$withval | |
1459 | else | |
1460 | xcoff=no | |
3a12e572 | 1461 | fi; |
5af3245a | 1462 | |
d67281a7 UD |
1463 | # Check whether --with-cvs or --without-cvs was given. |
1464 | if test "${with_cvs+set}" = set; then | |
1465 | withval="$with_cvs" | |
1466 | with_cvs=$withval | |
1467 | else | |
1468 | with_cvs=yes | |
3a12e572 | 1469 | fi; |
6b3f2b3d UD |
1470 | if test "$with_cvs" = yes; then |
1471 | if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null | |
1472 | then | |
1473 | with_cvs=no | |
1474 | fi | |
4442d7e8 | 1475 | fi |
d67281a7 | 1476 | |
cd6ede75 | 1477 | |
3a12e572 | 1478 | |
3c720987 UD |
1479 | # Check whether --with-headers or --without-headers was given. |
1480 | if test "${with_headers+set}" = set; then | |
1481 | withval="$with_headers" | |
1482 | sysheaders=$withval | |
1483 | else | |
1484 | sysheaders='' | |
3a12e572 | 1485 | fi; |
3c720987 | 1486 | |
cd6ede75 UD |
1487 | # Check whether --enable-sanity-checks or --disable-sanity-checks was given. |
1488 | if test "${enable_sanity_checks+set}" = set; then | |
1489 | enableval="$enable_sanity_checks" | |
1490 | enable_sanity=$enableval | |
1491 | else | |
1492 | enable_sanity=yes | |
3a12e572 | 1493 | fi; |
cd6ede75 | 1494 | |
7dbde9db RM |
1495 | |
1496 | # Check whether --enable-check-abi or --disable-check-abi was given. | |
1497 | if test "${enable_check_abi+set}" = set; then | |
1498 | enableval="$enable_check_abi" | |
1499 | enable_check_abi=$enableval | |
1500 | else | |
fd54683c | 1501 | enable_check_abi=no |
7dbde9db RM |
1502 | fi; |
1503 | ||
5c2a0669 | 1504 | static=yes |
cd6ede75 UD |
1505 | # Check whether --enable-shared or --disable-shared was given. |
1506 | if test "${enable_shared+set}" = set; then | |
1507 | enableval="$enable_shared" | |
1508 | shared=$enableval | |
1509 | else | |
1510 | shared=default | |
3a12e572 | 1511 | fi; |
cd6ede75 UD |
1512 | # Check whether --enable-profile or --disable-profile was given. |
1513 | if test "${enable_profile+set}" = set; then | |
1514 | enableval="$enable_profile" | |
1515 | profile=$enableval | |
1516 | else | |
1517 | profile=yes | |
3a12e572 | 1518 | fi; |
cd6ede75 UD |
1519 | # Check whether --enable-omitfp or --disable-omitfp was given. |
1520 | if test "${enable_omitfp+set}" = set; then | |
1521 | enableval="$enable_omitfp" | |
1522 | omitfp=$enableval | |
1523 | else | |
1524 | omitfp=no | |
3a12e572 | 1525 | fi; |
cd6ede75 UD |
1526 | # Check whether --enable-bounded or --disable-bounded was given. |
1527 | if test "${enable_bounded+set}" = set; then | |
1528 | enableval="$enable_bounded" | |
1529 | bounded=$enableval | |
1530 | else | |
1531 | bounded=no | |
3a12e572 | 1532 | fi; |
650425ce UD |
1533 | # Check whether --enable-versioning or --disable-versioning was given. |
1534 | if test "${enable_versioning+set}" = set; then | |
1535 | enableval="$enable_versioning" | |
1536 | enable_versioning=$enableval | |
1537 | else | |
1538 | enable_versioning=yes | |
3a12e572 | 1539 | fi; |
cd6ede75 | 1540 | |
62ab42d6 UD |
1541 | # Check whether --enable-oldest-abi or --disable-oldest-abi was given. |
1542 | if test "${enable_oldest_abi+set}" = set; then | |
1543 | enableval="$enable_oldest_abi" | |
1544 | oldest_abi=$enableval | |
1545 | else | |
1546 | oldest_abi=no | |
3a12e572 | 1547 | fi; |
62ab42d6 UD |
1548 | if test "$oldest_abi" = yes || test "$oldest_abi" = no; then |
1549 | oldest_abi=default | |
1550 | else | |
3a12e572 | 1551 | cat >>confdefs.h <<_ACEOF |
62ab42d6 | 1552 | #define GLIBC_OLDEST_ABI "$oldest_abi" |
3a12e572 | 1553 | _ACEOF |
62ab42d6 UD |
1554 | |
1555 | fi | |
1556 | ||
1557 | ||
cd6ede75 UD |
1558 | # Check whether --enable-add-ons or --disable-add-ons was given. |
1559 | if test "${enable_add_ons+set}" = set; then | |
1560 | enableval="$enable_add_ons" | |
61952351 | 1561 | case "$enableval" in |
9c4c0024 UD |
1562 | yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'` |
1563 | test "$add_ons" = "*" && add_ons= ;; | |
61952351 UD |
1564 | *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;; |
1565 | esac | |
cd6ede75 UD |
1566 | else |
1567 | add_ons= | |
3a12e572 | 1568 | fi; |
cd6ede75 | 1569 | |
61952351 | 1570 | |
8d4b5a8a UD |
1571 | # Check whether --with-tls or --without-tls was given. |
1572 | if test "${with_tls+set}" = set; then | |
1573 | withval="$with_tls" | |
1574 | usetls=$withval | |
1575 | else | |
9cce206e | 1576 | usetls=no |
3a12e572 | 1577 | fi; |
8d4b5a8a UD |
1578 | |
1579 | ||
5b8f26b4 RM |
1580 | # Check whether --with-__thread or --without-__thread was given. |
1581 | if test "${with___thread+set}" = set; then | |
1582 | withval="$with___thread" | |
1583 | use__thread=$withval | |
1584 | else | |
1585 | use__thread=yes | |
3a12e572 | 1586 | fi; |
5b8f26b4 | 1587 | |
749a9a4f RM |
1588 | # Check whether --enable-hidden-plt or --disable-hidden-plt was given. |
1589 | if test "${enable_hidden_plt+set}" = set; then | |
1590 | enableval="$enable_hidden_plt" | |
1591 | hidden=$enableval | |
1592 | else | |
1593 | hidden=yes | |
3a12e572 | 1594 | fi; |
749a9a4f | 1595 | if test "x$hidden" = xno; then |
3a12e572 | 1596 | cat >>confdefs.h <<\_ACEOF |
749a9a4f | 1597 | #define NO_HIDDEN 1 |
3a12e572 | 1598 | _ACEOF |
749a9a4f RM |
1599 | |
1600 | fi | |
1601 | ||
4df8c11d UD |
1602 | # Check whether --enable-bind-now or --disable-bind-now was given. |
1603 | if test "${enable_bind_now+set}" = set; then | |
1604 | enableval="$enable_bind_now" | |
1605 | bindnow=$enableval | |
1606 | else | |
1607 | bindnow=no | |
1608 | fi; | |
1609 | ||
1610 | ||
cd6ede75 UD |
1611 | # Check whether --enable-static-nss or --disable-static-nss was given. |
1612 | if test "${enable_static_nss+set}" = set; then | |
1613 | enableval="$enable_static_nss" | |
1614 | static_nss=$enableval | |
1615 | else | |
1616 | static_nss=no | |
3a12e572 | 1617 | fi; |
834cef7c | 1618 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
3172f58f | 1619 | static_nss=yes |
3a12e572 | 1620 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 1621 | #define DO_STATIC_NSS 1 |
3a12e572 | 1622 | _ACEOF |
cd6ede75 UD |
1623 | |
1624 | fi | |
1625 | ||
73237de3 UD |
1626 | # Check whether --enable-force-install or --disable-force-install was given. |
1627 | if test "${enable_force_install+set}" = set; then | |
1628 | enableval="$enable_force_install" | |
1629 | force_install=$enableval | |
1630 | else | |
1631 | force_install=yes | |
3a12e572 | 1632 | fi; |
73237de3 UD |
1633 | |
1634 | ||
958f238f UD |
1635 | # Check whether --enable-kernel or --disable-kernel was given. |
1636 | if test "${enable_kernel+set}" = set; then | |
1637 | enableval="$enable_kernel" | |
1638 | minimum_kernel=$enableval | |
3a12e572 | 1639 | fi; |
654de60c UD |
1640 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then |
1641 | # Better nothing than this. | |
1642 | minimum_kernel="" | |
78bba25c UD |
1643 | else |
1644 | if test "$minimum_kernel" = current; then | |
1645 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
1646 | fi | |
654de60c | 1647 | fi |
958f238f | 1648 | |
6cc7d725 UD |
1649 | # Check whether --enable-all-warnings or --disable-all-warnings was given. |
1650 | if test "${enable_all_warnings+set}" = set; then | |
1651 | enableval="$enable_all_warnings" | |
1652 | all_warnings=$enableval | |
3a12e572 | 1653 | fi; |
958f238f | 1654 | |
2a068d20 | 1655 | |
958f238f | 1656 | # Make sure we can run config.sub. |
3a12e572 UD |
1657 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1658 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1659 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1660 | { (exit 1); exit 1; }; } | |
1661 | ||
1662 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1663 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1664 | if test "${ac_cv_build+set}" = set; then | |
1665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1666 | else | |
1667 | ac_cv_build_alias=$build_alias | |
1668 | test -z "$ac_cv_build_alias" && | |
1669 | ac_cv_build_alias=`$ac_config_guess` | |
1670 | test -z "$ac_cv_build_alias" && | |
1671 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1672 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1673 | { (exit 1); exit 1; }; } | |
1674 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1675 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1676 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1677 | { (exit 1); exit 1; }; } | |
1678 | ||
1679 | fi | |
1680 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1681 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1682 | build=$ac_cv_build | |
1683 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1684 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1685 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1686 | ||
1687 | ||
1688 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1689 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1690 | if test "${ac_cv_host+set}" = set; then | |
1691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1692 | else | |
1693 | ac_cv_host_alias=$host_alias | |
1694 | test -z "$ac_cv_host_alias" && | |
1695 | ac_cv_host_alias=$ac_cv_build_alias | |
1696 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1697 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1698 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1699 | { (exit 1); exit 1; }; } | |
1700 | ||
1701 | fi | |
1702 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1703 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1704 | host=$ac_cv_host | |
1705 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1706 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1707 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
cd6ede75 | 1708 | |
cd6ede75 UD |
1709 | |
1710 | ||
1711 | # The way shlib-versions is used to generate soversions.mk uses a | |
1712 | # fairly simplistic model for name recognition that can't distinguish | |
1713 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
1714 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
1715 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
1716 | case "$host_os" in | |
1717 | linux*) | |
1718 | ;; | |
1719 | gnu*) | |
1720 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
1721 | ;; | |
1722 | esac | |
1723 | ||
1724 | # We keep the original values in `$config_*' and never modify them, so we | |
1725 | # can write them unchanged into config.make. Everything else uses | |
1726 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
1727 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
1728 | ||
0816838f UD |
1729 | # Don't allow vendor == "unknown" |
1730 | test "$config_vendor" = unknown && config_vendor= | |
1731 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
1732 | ||
cd6ede75 UD |
1733 | # Some configurations imply other options. |
1734 | case "$host_os" in | |
1735 | gnu* | linux* | bsd4.4* | netbsd* | freebsd*) | |
1736 | # These systems always use GNU tools. | |
1737 | gnu_ld=yes gnu_as=yes ;; | |
1738 | esac | |
1739 | case "$host_os" in | |
1740 | # i586-linuxaout is mangled into i586-pc-linux-gnuaout | |
1741 | linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*) | |
1742 | ;; | |
ffa8d2a0 | 1743 | gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*) |
cd6ede75 UD |
1744 | # These systems (almost) always use the ELF format. |
1745 | elf=yes | |
1746 | ;; | |
5af3245a UD |
1747 | aix*) |
1748 | # These systems are always xcoff | |
1749 | xcoff=yes | |
a711b01d | 1750 | elf=no |
5af3245a | 1751 | ;; |
cd6ede75 UD |
1752 | esac |
1753 | ||
8f73811b RM |
1754 | # The configure fragment of an add-on port can modify these to supplement |
1755 | # or override the table in the case statement below. No fragment should | |
1756 | # ever change the config_* variables, however. | |
cd6ede75 UD |
1757 | machine=$config_machine |
1758 | vendor=$config_vendor | |
1759 | os=$config_os | |
1760 | ||
a808d541 UD |
1761 | # config.guess on some IBM machines says `rs6000' instead of `powerpc'. |
1762 | # Unify this here. | |
1763 | if test "$machine" = rs6000; then | |
1764 | machine="powerpc" | |
1765 | fi | |
1766 | ||
f4b07664 RM |
1767 | # Braindead PowerPC box with absolutely no FPU. |
1768 | case "$machine-$host_os" in | |
1769 | powerpc*-*soft) | |
1770 | with_fp=no | |
1771 | ;; | |
1772 | esac | |
1773 | ||
8f73811b RM |
1774 | |
1775 | # An add-on can set this when it the tuple to disable the sanity check below. | |
1776 | libc_config_ok=no | |
1777 | ||
1778 | ||
1779 | ||
1780 | subdirs="$subdirs " | |
1781 | ||
1782 | ||
1783 | add_ons_sfx= | |
1784 | add_ons_pfx= | |
1785 | if test x"$add_ons" != x; then | |
1786 | for f in $add_ons; do | |
1787 | # Some sanity checks | |
1788 | case "$f" in | |
1789 | crypt) | |
1790 | { { echo "$as_me:$LINENO: error: | |
1791 | *** It seems that you're using an old \`crypt' add-on. crypt is now | |
1792 | *** part of glibc and using the old add-on will not work with this | |
1793 | *** release. Start again with fresh sources and without the old | |
1794 | *** \`crypt' add-on." >&5 | |
1795 | echo "$as_me: error: | |
1796 | *** It seems that you're using an old \`crypt' add-on. crypt is now | |
1797 | *** part of glibc and using the old add-on will not work with this | |
1798 | *** release. Start again with fresh sources and without the old | |
1799 | *** \`crypt' add-on." >&2;} | |
1800 | { (exit 1); exit 1; }; } | |
1801 | ;; | |
1802 | localedata) | |
1803 | { { echo "$as_me:$LINENO: error: | |
1804 | *** It seems that you're using an old \`localedata' add-on. localedata | |
1805 | *** is now part of glibc and using the old add-on will not work with | |
1806 | *** this release. Start again with fresh sources and without the old | |
1807 | *** \`localedata' add-on." >&5 | |
1808 | echo "$as_me: error: | |
1809 | *** It seems that you're using an old \`localedata' add-on. localedata | |
1810 | *** is now part of glibc and using the old add-on will not work with | |
1811 | *** this release. Start again with fresh sources and without the old | |
1812 | *** \`localedata' add-on." >&2;} | |
1813 | { (exit 1); exit 1; }; } | |
1814 | ;; | |
1815 | esac | |
1816 | ||
1817 | # Test whether such a subdir really exists. | |
1818 | if test -d $srcdir/$f; then | |
1819 | add_ons_pfx="$add_ons_pfx $f/" | |
1820 | add_ons_sfx="$add_ons_sfx /$f" | |
1821 | else | |
1822 | { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5 | |
1823 | echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;} | |
1824 | { (exit 1); exit 1; }; } | |
1825 | fi | |
1826 | done | |
1827 | ||
1828 | for f in $add_ons; do | |
1829 | frag=$srcdir/$f/configure | |
1830 | if test -r $frag; then | |
1831 | echo "$as_me:$LINENO: result: running configure fragment for add-on $f" >&5 | |
1832 | echo "${ECHO_T}running configure fragment for add-on $f" >&6 | |
1833 | . $frag | |
1834 | else | |
1835 | { echo "$as_me:$LINENO: WARNING: add-on fragment $frag missing" >&5 | |
1836 | echo "$as_me: WARNING: add-on fragment $frag missing" >&2;} | |
1837 | fi | |
1838 | done | |
1839 | fi | |
1840 | ||
1841 | ||
1842 | ||
7efb9bd1 UD |
1843 | ### |
1844 | ### I put this here to prevent those annoying emails from people who cannot | |
1845 | ### read and try to compile glibc on unsupported platforms. --drepper | |
1846 | ### | |
1847 | ### By using the undocumented --enable-hacker-mode option for configure | |
1848 | ### one can skip this test to make the configuration not fail for unsupported | |
1849 | ### platforms. | |
1850 | ### | |
8f73811b | 1851 | if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then |
7efb9bd1 | 1852 | case "$machine-$host_os" in |
f0d8cfd7 | 1853 | *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*) |
7efb9bd1 UD |
1854 | ;; |
1855 | *) | |
1856 | echo "*** The GNU C library is currently not available for this platform." | |
1857 | echo "*** So far nobody cared to port it and if there is no volunteer it" | |
1858 | echo "*** might never happen. So, if you have interest to see glibc on" | |
1859 | echo "*** this platform visit" | |
1860 | echo "*** http://www.gnu.org/software/libc/porting.html" | |
1861 | echo "*** and join the group of porters" | |
1862 | exit 1 | |
1863 | ;; | |
1864 | esac | |
1865 | fi | |
1866 | ||
cd6ede75 | 1867 | # Expand the configuration machine name into a subdirectory by architecture |
8f73811b RM |
1868 | # type and particular chip. If an add-on configure fragment already set |
1869 | # base_machine, we don't change it. | |
1870 | test -n "$base_machine" || case "$machine" in | |
cd6ede75 UD |
1871 | a29k | am29000) base_machine=a29k machine=a29k ;; |
1872 | alpha*) base_machine=alpha machine=alpha/$machine ;; | |
0c8b61e6 | 1873 | arm*) base_machine=arm machine=arm/arm32/$machine ;; |
60c96635 UD |
1874 | c3[012]) base_machine=cx0 machine=cx0/c30 ;; |
1875 | c4[04]) base_machine=cx0 machine=cx0/c40 ;; | |
b15cb495 UD |
1876 | hppa*64*) base_machine=hppa machine=hppa/hppa64 ;; |
1877 | hppa*) base_machine=hppa machine=hppa/hppa1.1 ;; | |
cd6ede75 | 1878 | i[3456]86) base_machine=i386 machine=i386/$machine ;; |
9dfa9a5a | 1879 | ia64) base_machine=ia64 machine=ia64 ;; |
cd6ede75 UD |
1880 | m680?0) base_machine=m68k machine=m68k/$machine ;; |
1881 | m68k) base_machine=m68k machine=m68k/m68020 ;; | |
1882 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
1883 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
e077d10d | 1884 | mips64*) base_machine=mips64 |
3217788f | 1885 | case "$CC $CFLAGS $CPPFLAGS " in |
e077d10d AO |
1886 | *" -mabi=n32 "*) mips_cc_abi=n32 ;; |
1887 | *" -mabi=64 "*|*" -mabi=n64 "*) mips_cc_abi=64 ;; | |
1888 | *" -mabi=32 "*|*" -mabi=o32 "*) mips_cc_abi=32 ;; | |
1889 | *) mips_cc_abi=default ;; | |
1890 | esac | |
1891 | case $config_os in | |
1892 | *abin32*) mips_config_abi=n32 ;; | |
1893 | *abi64*|*abin64*) mips_config_abi=64 ;; | |
1894 | *abi32*|*abio32*) mips_config_abi=32 ;; | |
1895 | *) mips_config_abi=$mips_cc_abi ;; | |
1896 | esac | |
1897 | case $mips_config_abi in | |
1898 | default) machine=mips/mips64/n32 mips_config_abi=n32 ;; | |
1899 | n32) machine=mips/mips64/n32 ;; | |
1900 | 64) machine=mips/mips64/n64 ;; | |
1901 | 32) machine=mips/mips32/kern64 ;; | |
1902 | esac | |
1903 | machine=$machine/$config_machine | |
1904 | if test $mips_config_abi != $mips_cc_abi; then | |
1905 | # This won't make it to config.make, but we want to | |
1906 | # set this in case configure tests depend on it. | |
1907 | CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi" | |
1908 | fi | |
1909 | ;; | |
1910 | mips*) base_machine=mips machine=mips/mips32/$machine ;; | |
a8a20be0 UD |
1911 | powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;; |
1912 | powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;; | |
136d4332 UD |
1913 | s390) base_machine=s390 machine=s390/s390-32 ;; |
1914 | s390x) base_machine=s390 machine=s390/s390-64 ;; | |
0da2f50b UD |
1915 | sh3*) base_machine=sh machine=sh/sh3 ;; |
1916 | sh4*) base_machine=sh machine=sh/sh4 ;; | |
ca34d7a7 UD |
1917 | sparc | sparcv[67]) |
1918 | base_machine=sparc machine=sparc/sparc32 ;; | |
1919 | sparcv8 | supersparc | hypersparc) | |
1920 | base_machine=sparc machine=sparc/sparc32/sparcv8 ;; | |
ae6b8730 RH |
1921 | sparcv8plus | sparcv8plusa | sparcv9) |
1922 | base_machine=sparc machine=sparc/sparc32/sparcv9 ;; | |
bb769ab6 UD |
1923 | sparcv8plusb | sparcv9b) |
1924 | base_machine=sparc machine=sparc/sparc32/sparcv9b ;; | |
ca34d7a7 UD |
1925 | sparc64 | ultrasparc) |
1926 | base_machine=sparc machine=sparc/sparc64 ;; | |
bb769ab6 UD |
1927 | sparc64b | ultrasparc3) |
1928 | base_machine=sparc machine=sparc/sparc64/sparcv9b ;; | |
0c8b61e6 | 1929 | thumb*) base_machine=thumb machine=arm/thumb/$machine ;; |
3a2832a0 | 1930 | *) base_machine=$machine ;; |
cd6ede75 UD |
1931 | esac |
1932 | ||
1933 | ||
dfd2257a | 1934 | if test "$base_machine" = "i386"; then |
3a12e572 | 1935 | cat >>confdefs.h <<\_ACEOF |
dfd2257a | 1936 | #define USE_REGPARMS 1 |
3a12e572 | 1937 | _ACEOF |
dfd2257a UD |
1938 | |
1939 | fi | |
1940 | ||
cd6ede75 UD |
1941 | # Compute the list of sysdep directories for this configuration. |
1942 | # This can take a while to compute. | |
1943 | sysdep_dir=$srcdir/sysdeps | |
3a12e572 UD |
1944 | echo "$as_me:$LINENO: checking sysdep dirs" >&5 |
1945 | echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6 | |
cd6ede75 UD |
1946 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
1947 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
1948 | ||
1949 | case "$os" in | |
1950 | gnu*) | |
1951 | base_os=mach/hurd ;; | |
1952 | netbsd* | 386bsd* | freebsd* | bsdi*) | |
1953 | base_os=unix/bsd/bsd4.4 ;; | |
1954 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) | |
1955 | base_os=unix/bsd ;; | |
1956 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) | |
1957 | base_os=unix/sysv ;; | |
9a97d1f7 UD |
1958 | irix6*) |
1959 | base_os=unix/sysv/irix6/$os ;; | |
cd6ede75 UD |
1960 | solaris[2-9]*) |
1961 | base_os=unix/sysv/sysv4 ;; | |
908c3d5b UD |
1962 | hpux*) |
1963 | base_os=unix/sysv/hpux/$os ;; | |
f0d8cfd7 UD |
1964 | aix4.3*) |
1965 | base_os=unix/sysv/aix/aix4.3 ;; | |
cd6ede75 UD |
1966 | none) |
1967 | base_os=standalone ;; | |
1968 | *) | |
1969 | base_os='' ;; | |
1970 | esac | |
1971 | ||
1972 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
1973 | tail=$os | |
1974 | ostry=$os | |
1975 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
1976 | ostry="$ostry /$o" | |
1977 | tail=$o | |
1978 | done | |
1979 | o=`echo $tail | sed 's/[0-9]*$//'` | |
1980 | if test $o != $tail; then | |
1981 | ostry="$ostry /$o" | |
1982 | fi | |
1983 | # For linux-gnu, try linux-gnu, then linux. | |
1984 | o=`echo $tail | sed 's/-.*$//'` | |
1985 | if test $o != $tail; then | |
1986 | ostry="$ostry /$o" | |
1987 | fi | |
1988 | ||
1989 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
1990 | base= | |
1991 | tail=$base_os | |
1992 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
1993 | set $b | |
1994 | base="$base /$1" | |
1995 | tail="$2" | |
1996 | done | |
1997 | ||
ae6b8730 | 1998 | # For sparc/sparc32, try sparc/sparc32 and then sparc. |
cd6ede75 UD |
1999 | mach= |
2000 | tail=$machine | |
2001 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
2002 | set $m | |
2003 | # Prepend the machine's FPU directory unless --without-fp. | |
2004 | if test "$with_fp" = yes; then | |
2005 | mach="$mach /$1/fpu" | |
f4b07664 RM |
2006 | else |
2007 | mach="$mach /$1/nofpu" | |
cd6ede75 UD |
2008 | fi |
2009 | mach="$mach /$1" | |
2010 | tail="$2" | |
2011 | done | |
2012 | ||
2013 | ||
2014 | # Find what sysdep directories exist. | |
2015 | sysnames= | |
2016 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2017 | for d in $add_ons_pfx ''; do | |
2018 | for b in $base ''; do | |
2019 | for m0 in $mach ''; do | |
2020 | for v in /$vendor ''; do | |
ae828bc6 | 2021 | test "$v" = / && continue |
cd6ede75 | 2022 | for o in /$ostry ''; do |
ae828bc6 | 2023 | test "$o" = / && continue |
cd6ede75 | 2024 | for m in $mach ''; do |
8f73811b RM |
2025 | for a in $add_ons_sfx ''; do |
2026 | if test "$m0$b$v$o$m"; then | |
2027 | try="${d}sysdeps$m0$b$v$o$m$a" | |
2028 | test -n "$enable_debug_configure" && | |
2029 | echo "$0 DEBUG: try $try" >&2 | |
2030 | if test -d $srcdir/$try; then | |
2031 | sysnames="$sysnames $try" | |
2032 | { test -n "$o" || test -n "$b"; } && os_used=t | |
2033 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
2034 | fi | |
cd6ede75 | 2035 | fi |
8f73811b | 2036 | done |
cd6ede75 UD |
2037 | done |
2038 | done | |
2039 | done | |
2040 | done | |
2041 | done | |
2042 | done | |
2043 | IFS="$ac_save_ifs" | |
2044 | ||
2045 | if test -z "$os_used" && test "$os" != none; then | |
3a12e572 UD |
2046 | { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5 |
2047 | echo "$as_me: error: Operating system $os is not supported." >&2;} | |
2048 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
2049 | fi |
2050 | if test -z "$machine_used" && test "$machine" != none; then | |
3a12e572 UD |
2051 | { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5 |
2052 | echo "$as_me: error: The $machine is not supported." >&2;} | |
2053 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
2054 | fi |
2055 | ||
2056 | # We have now validated the configuration. | |
2057 | ||
2058 | ||
2059 | # If using ELF, look for an `elf' subdirectory of each machine directory. | |
2060 | # We prepend these rather than inserting them whereever the machine appears | |
2061 | # because things specified by the machine's ELF ABI should override | |
2062 | # OS-specific things, and should always be the same for any OS on the | |
2063 | # machine (otherwise what's the point of an ABI?). | |
2064 | if test "$elf" = yes; then | |
2065 | elf_dirs= | |
2066 | for d in $add_ons_pfx ''; do | |
cd6ede75 | 2067 | for m in $mach; do |
9c4c0024 | 2068 | if test -d $srcdir/${d}sysdeps$m/elf; then |
cd6ede75 UD |
2069 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" |
2070 | fi | |
2071 | done | |
2072 | done | |
2073 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" | |
2074 | fi | |
2075 | ||
2076 | ||
2077 | # Expand the list of system names into a full list of directories | |
2078 | # from each element's parent name and Implies file (if present). | |
2079 | set $sysnames | |
2080 | names= | |
2081 | while test $# -gt 0; do | |
2082 | name=$1 | |
2083 | shift | |
2084 | ||
2085 | case " $names " in *" $name "*) | |
2086 | # Already in the list. | |
2087 | continue | |
2088 | esac | |
2089 | ||
2090 | # Report each name as we discover it, so there is no long pause in output. | |
3a12e572 | 2091 | echo $ECHO_N "$name $ECHO_C" >&6 |
cd6ede75 UD |
2092 | |
2093 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` | |
2094 | ||
2095 | case $name in | |
2096 | /*) xsrcdir= ;; | |
2097 | *) xsrcdir=$srcdir/ ;; | |
2098 | esac | |
2099 | test -n "$enable_debug_configure" && | |
2100 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
2101 | ||
2102 | if test -f $xsrcdir$name/Implies; then | |
2103 | # Collect more names from the `Implies' file (removing comments). | |
2104 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" | |
2105 | implied= | |
2106 | for x in $implied_candidate; do | |
636ccfc8 | 2107 | found=no |
cd6ede75 UD |
2108 | if test -d $xsrcdir$name_base/$x; then |
2109 | implied="$implied $name_base/$x"; | |
636ccfc8 UD |
2110 | found=yes |
2111 | fi | |
2112 | for d in $add_ons_pfx ''; do | |
2113 | try="${d}sysdeps/$x" | |
2114 | case $d in | |
2115 | /*) try_srcdir= ;; | |
2116 | *) try_srcdir=$srcdir/ ;; | |
2117 | esac | |
2118 | test -n "$enable_debug_configure" && | |
2119 | echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2 | |
2120 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
2121 | then | |
2122 | implied="$implied $try" | |
2123 | found=yes | |
2124 | fi | |
2125 | done | |
2126 | if test $found = no; then | |
3a12e572 UD |
2127 | { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5 |
2128 | echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;} | |
cd6ede75 UD |
2129 | fi |
2130 | done | |
2131 | else | |
2132 | implied= | |
2133 | fi | |
2134 | ||
2135 | # Add NAME to the list of names. | |
2136 | names="$names $name" | |
2137 | ||
2138 | # Find the parent of NAME, using the empty string if it has none. | |
2139 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
2140 | ||
2141 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
2142 | # the list of names to be processed (the argument list). We prepend the | |
2143 | # implied names to the list and append the parent. We want implied | |
2144 | # directories to come before further directories inferred from the | |
2145 | # configuration components; this ensures that for sysv4, unix/common | |
2146 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
2147 | # after sysv4). | |
2148 | sysnames="`echo $implied $* $parent`" | |
2149 | test -n "$sysnames" && set $sysnames | |
2150 | done | |
2151 | ||
2152 | # Add the default directories. | |
a3a4a74e | 2153 | default_sysnames=sysdeps/generic |
2de7874e | 2154 | if test "$elf" = yes; then |
a3a4a74e | 2155 | default_sysnames="sysdeps/generic/elf $default_sysnames" |
2de7874e | 2156 | fi |
a3a4a74e | 2157 | sysnames="$names $default_sysnames" |
cd6ede75 UD |
2158 | |
2159 | # The other names were emitted during the scan. | |
3a12e572 UD |
2160 | echo "$as_me:$LINENO: result: $default_sysnames" >&5 |
2161 | echo "${ECHO_T}$default_sysnames" >&6 | |
cd6ede75 UD |
2162 | |
2163 | ||
2164 | ### Locate tools. | |
2165 | ||
2166 | # Find a good install program. We prefer a C program (faster), | |
2167 | # so one script is as good as another. But avoid the broken or | |
2168 | # incompatible versions: | |
2169 | # SysV /etc/install, /usr/sbin/install | |
2170 | # SunOS /usr/etc/install | |
2171 | # IRIX /sbin/install | |
2172 | # AIX /bin/install | |
3a12e572 | 2173 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
5c2a0669 | 2174 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
cd6ede75 UD |
2175 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2176 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2177 | # ./install, which can be erroneously created by make from ./install.sh. | |
3a12e572 UD |
2178 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2179 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
cd6ede75 | 2180 | if test -z "$INSTALL"; then |
3a12e572 UD |
2181 | if test "${ac_cv_path_install+set}" = set; then |
2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2183 | else | |
2184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2185 | for as_dir in $PATH | |
2186 | do | |
2187 | IFS=$as_save_IFS | |
2188 | test -z "$as_dir" && as_dir=. | |
2189 | # Account for people who put trailing slashes in PATH elements. | |
2190 | case $as_dir/ in | |
2191 | ./ | .// | /cC/* | \ | |
2192 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2193 | /usr/ucb/* ) ;; | |
2194 | *) | |
2195 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2196 | # Don't use installbsd from OSF since it installs stuff as root | |
2197 | # by default. | |
2198 | for ac_prog in ginstall scoinst install; do | |
2199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8f73811b RM |
2200 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2201 | if test $ac_prog = install && | |
2202 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2203 | # AIX install. It has an incompatible calling convention. | |
2204 | : | |
2205 | elif test $ac_prog = install && | |
2206 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2207 | # program-specific install script used by HP pwplus--don't use. | |
2208 | : | |
2209 | else | |
2210 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2211 | break 3 | |
2212 | fi | |
2213 | fi | |
cd6ede75 | 2214 | done |
3a12e572 UD |
2215 | done |
2216 | ;; | |
2217 | esac | |
2218 | done | |
2219 | ||
cd6ede75 UD |
2220 | |
2221 | fi | |
2222 | if test "${ac_cv_path_install+set}" = set; then | |
3a12e572 | 2223 | INSTALL=$ac_cv_path_install |
cd6ede75 UD |
2224 | else |
2225 | # As a last resort, use the slow shell script. We don't cache a | |
2226 | # path for INSTALL within a source directory, because that will | |
2227 | # break other packages using the cache if that directory is | |
2228 | # removed, or if the path is relative. | |
3a12e572 | 2229 | INSTALL=$ac_install_sh |
cd6ede75 UD |
2230 | fi |
2231 | fi | |
3a12e572 UD |
2232 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2233 | echo "${ECHO_T}$INSTALL" >&6 | |
cd6ede75 UD |
2234 | |
2235 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2236 | # It thinks the first close brace ends the variable substitution. | |
2237 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2238 | ||
3a12e572 | 2239 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5c2a0669 | 2240 | |
cd6ede75 UD |
2241 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2242 | ||
ed9c47d9 | 2243 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then |
cd6ede75 | 2244 | # The makefiles need to use a different form to find it in $srcdir. |
ed9c47d9 | 2245 | INSTALL='\$(..)./scripts/install-sh -c' |
cd6ede75 | 2246 | fi |
3a12e572 UD |
2247 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2248 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2249 | LN_S=$as_ln_s | |
2250 | if test "$LN_S" = "ln -s"; then | |
2251 | echo "$as_me:$LINENO: result: yes" >&5 | |
2252 | echo "${ECHO_T}yes" >&6 | |
cd6ede75 | 2253 | else |
3a12e572 UD |
2254 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2255 | echo "${ECHO_T}no, using $LN_S" >&6 | |
cd6ede75 UD |
2256 | fi |
2257 | ||
63bda0c1 | 2258 | |
4baa087a RM |
2259 | ac_ext=c |
2260 | ac_cpp='$CPP $CPPFLAGS' | |
2261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2264 | if test -n "$ac_tool_prefix"; then | |
2265 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2266 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3a12e572 UD |
2267 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2269 | if test "${ac_cv_prog_CC+set}" = set; then | |
2270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2271 | else |
63bda0c1 UD |
2272 | if test -n "$CC"; then |
2273 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 2274 | else |
3a12e572 UD |
2275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2276 | for as_dir in $PATH | |
2277 | do | |
2278 | IFS=$as_save_IFS | |
2279 | test -z "$as_dir" && as_dir=. | |
2280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 2282 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3a12e572 UD |
2283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2284 | break 2 | |
2285 | fi | |
2286 | done | |
2287 | done | |
2288 | ||
cd6ede75 UD |
2289 | fi |
2290 | fi | |
3a12e572 | 2291 | CC=$ac_cv_prog_CC |
4bca4c17 | 2292 | if test -n "$CC"; then |
3a12e572 UD |
2293 | echo "$as_me:$LINENO: result: $CC" >&5 |
2294 | echo "${ECHO_T}$CC" >&6 | |
4bca4c17 | 2295 | else |
3a12e572 UD |
2296 | echo "$as_me:$LINENO: result: no" >&5 |
2297 | echo "${ECHO_T}no" >&6 | |
4bca4c17 UD |
2298 | fi |
2299 | ||
ae828bc6 | 2300 | fi |
4baa087a RM |
2301 | if test -z "$ac_cv_prog_CC"; then |
2302 | ac_ct_CC=$CC | |
2303 | # Extract the first word of "gcc", so it can be a program name with args. | |
2304 | set dummy gcc; ac_word=$2 | |
3a12e572 UD |
2305 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4baa087a | 2307 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3a12e572 | 2308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
04be94a8 | 2309 | else |
4baa087a RM |
2310 | if test -n "$ac_ct_CC"; then |
2311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
04be94a8 | 2312 | else |
3a12e572 UD |
2313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2314 | for as_dir in $PATH | |
2315 | do | |
2316 | IFS=$as_save_IFS | |
2317 | test -z "$as_dir" && as_dir=. | |
2318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 2320 | ac_cv_prog_ac_ct_CC="gcc" |
3a12e572 UD |
2321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2322 | break 2 | |
2323 | fi | |
2324 | done | |
2325 | done | |
2326 | ||
04be94a8 UD |
2327 | fi |
2328 | fi | |
4baa087a RM |
2329 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2330 | if test -n "$ac_ct_CC"; then | |
2331 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2332 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4bca4c17 | 2333 | else |
3a12e572 UD |
2334 | echo "$as_me:$LINENO: result: no" >&5 |
2335 | echo "${ECHO_T}no" >&6 | |
4bca4c17 UD |
2336 | fi |
2337 | ||
4baa087a | 2338 | CC=$ac_ct_CC |
63bda0c1 | 2339 | else |
4baa087a | 2340 | CC="$ac_cv_prog_CC" |
04be94a8 | 2341 | fi |
cd6ede75 | 2342 | |
4baa087a RM |
2343 | if test -z "$CC"; then |
2344 | if test -n "$ac_tool_prefix"; then | |
2345 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2346 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3a12e572 UD |
2347 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4baa087a | 2349 | if test "${ac_cv_prog_CC+set}" = set; then |
3a12e572 | 2350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
cd6ede75 | 2351 | else |
4baa087a RM |
2352 | if test -n "$CC"; then |
2353 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 2354 | else |
3a12e572 UD |
2355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2356 | for as_dir in $PATH | |
2357 | do | |
2358 | IFS=$as_save_IFS | |
2359 | test -z "$as_dir" && as_dir=. | |
2360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 2362 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3a12e572 UD |
2363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2364 | break 2 | |
2365 | fi | |
2366 | done | |
2367 | done | |
2368 | ||
cd6ede75 UD |
2369 | fi |
2370 | fi | |
4baa087a RM |
2371 | CC=$ac_cv_prog_CC |
2372 | if test -n "$CC"; then | |
2373 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2374 | echo "${ECHO_T}$CC" >&6 | |
4bca4c17 | 2375 | else |
3a12e572 UD |
2376 | echo "$as_me:$LINENO: result: no" >&5 |
2377 | echo "${ECHO_T}no" >&6 | |
4bca4c17 UD |
2378 | fi |
2379 | ||
cd6ede75 | 2380 | fi |
4baa087a RM |
2381 | if test -z "$ac_cv_prog_CC"; then |
2382 | ac_ct_CC=$CC | |
2383 | # Extract the first word of "cc", so it can be a program name with args. | |
2384 | set dummy cc; ac_word=$2 | |
3a12e572 UD |
2385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4baa087a | 2387 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3a12e572 | 2388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
cd6ede75 | 2389 | else |
4baa087a RM |
2390 | if test -n "$ac_ct_CC"; then |
2391 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
cd6ede75 | 2392 | else |
3a12e572 UD |
2393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2394 | for as_dir in $PATH | |
2395 | do | |
2396 | IFS=$as_save_IFS | |
2397 | test -z "$as_dir" && as_dir=. | |
2398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 2400 | ac_cv_prog_ac_ct_CC="cc" |
3a12e572 UD |
2401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2402 | break 2 | |
2403 | fi | |
2404 | done | |
2405 | done | |
2406 | ||
cd6ede75 UD |
2407 | fi |
2408 | fi | |
4baa087a RM |
2409 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2410 | if test -n "$ac_ct_CC"; then | |
2411 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2412 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4bca4c17 | 2413 | else |
3a12e572 UD |
2414 | echo "$as_me:$LINENO: result: no" >&5 |
2415 | echo "${ECHO_T}no" >&6 | |
4bca4c17 UD |
2416 | fi |
2417 | ||
4baa087a | 2418 | CC=$ac_ct_CC |
63bda0c1 | 2419 | else |
4baa087a | 2420 | CC="$ac_cv_prog_CC" |
cd6ede75 UD |
2421 | fi |
2422 | ||
4baa087a RM |
2423 | fi |
2424 | if test -z "$CC"; then | |
2425 | # Extract the first word of "cc", so it can be a program name with args. | |
2426 | set dummy cc; ac_word=$2 | |
3a12e572 UD |
2427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4baa087a | 2429 | if test "${ac_cv_prog_CC+set}" = set; then |
3a12e572 | 2430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
aec103d3 | 2431 | else |
4baa087a RM |
2432 | if test -n "$CC"; then |
2433 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
aec103d3 | 2434 | else |
4baa087a | 2435 | ac_prog_rejected=no |
3a12e572 UD |
2436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2437 | for as_dir in $PATH | |
2438 | do | |
2439 | IFS=$as_save_IFS | |
2440 | test -z "$as_dir" && as_dir=. | |
2441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a RM |
2443 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2444 | ac_prog_rejected=yes | |
2445 | continue | |
2446 | fi | |
2447 | ac_cv_prog_CC="cc" | |
3a12e572 UD |
2448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2449 | break 2 | |
2450 | fi | |
2451 | done | |
2452 | done | |
2453 | ||
4baa087a RM |
2454 | if test $ac_prog_rejected = yes; then |
2455 | # We found a bogon in the path, so make sure we never use it. | |
2456 | set dummy $ac_cv_prog_CC | |
2457 | shift | |
2458 | if test $# != 0; then | |
2459 | # We chose a different compiler from the bogus one. | |
2460 | # However, it has the same basename, so the bogon will be chosen | |
2461 | # first if we set CC to just the basename; use the full file name. | |
2462 | shift | |
2463 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3a12e572 | 2464 | fi |
14519931 | 2465 | fi |
3a12e572 UD |
2466 | fi |
2467 | fi | |
2468 | CC=$ac_cv_prog_CC | |
2469 | if test -n "$CC"; then | |
2470 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2471 | echo "${ECHO_T}$CC" >&6 | |
cd6ede75 | 2472 | else |
3a12e572 UD |
2473 | echo "$as_me:$LINENO: result: no" >&5 |
2474 | echo "${ECHO_T}no" >&6 | |
cd6ede75 | 2475 | fi |
cd6ede75 | 2476 | |
63bda0c1 | 2477 | fi |
3a12e572 UD |
2478 | if test -z "$CC"; then |
2479 | if test -n "$ac_tool_prefix"; then | |
4baa087a RM |
2480 | for ac_prog in cl |
2481 | do | |
2482 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2483 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3a12e572 UD |
2484 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2486 | if test "${ac_cv_prog_CC+set}" = set; then | |
2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2488 | else | |
2489 | if test -n "$CC"; then | |
2490 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2491 | else | |
2492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2493 | for as_dir in $PATH | |
2494 | do | |
2495 | IFS=$as_save_IFS | |
2496 | test -z "$as_dir" && as_dir=. | |
2497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2498 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 2499 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3a12e572 UD |
2500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2501 | break 2 | |
2502 | fi | |
2503 | done | |
2504 | done | |
cd6ede75 | 2505 | |
3a12e572 UD |
2506 | fi |
2507 | fi | |
2508 | CC=$ac_cv_prog_CC | |
2509 | if test -n "$CC"; then | |
2510 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2511 | echo "${ECHO_T}$CC" >&6 | |
2512 | else | |
2513 | echo "$as_me:$LINENO: result: no" >&5 | |
2514 | echo "${ECHO_T}no" >&6 | |
2515 | fi | |
cd6ede75 | 2516 | |
4baa087a RM |
2517 | test -n "$CC" && break |
2518 | done | |
3a12e572 | 2519 | fi |
4baa087a | 2520 | if test -z "$CC"; then |
3a12e572 | 2521 | ac_ct_CC=$CC |
4baa087a RM |
2522 | for ac_prog in cl |
2523 | do | |
2524 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2525 | set dummy $ac_prog; ac_word=$2 | |
3a12e572 UD |
2526 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2528 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2530 | else |
3a12e572 UD |
2531 | if test -n "$ac_ct_CC"; then |
2532 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2533 | else | |
2534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2535 | for as_dir in $PATH | |
2536 | do | |
2537 | IFS=$as_save_IFS | |
2538 | test -z "$as_dir" && as_dir=. | |
2539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2540 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 2541 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3a12e572 UD |
2542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2543 | break 2 | |
2544 | fi | |
2545 | done | |
2546 | done | |
2547 | ||
2548 | fi | |
2549 | fi | |
2550 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2551 | if test -n "$ac_ct_CC"; then | |
2552 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2553 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
cd6ede75 | 2554 | else |
3a12e572 UD |
2555 | echo "$as_me:$LINENO: result: no" >&5 |
2556 | echo "${ECHO_T}no" >&6 | |
cd6ede75 | 2557 | fi |
4baa087a RM |
2558 | |
2559 | test -n "$ac_ct_CC" && break | |
2560 | done | |
cd6ede75 | 2561 | |
3a12e572 | 2562 | CC=$ac_ct_CC |
cd6ede75 UD |
2563 | fi |
2564 | ||
cd6ede75 | 2565 | fi |
3a12e572 UD |
2566 | |
2567 | ||
2abf9ff1 RM |
2568 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2569 | See \`config.log' for more details." >&5 | |
2570 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2571 | See \`config.log' for more details." >&2;} | |
3a12e572 UD |
2572 | { (exit 1); exit 1; }; } |
2573 | ||
2574 | # Provide some information about the compiler. | |
2575 | echo "$as_me:$LINENO:" \ | |
2576 | "checking for C compiler version" >&5 | |
2577 | ac_compiler=`set X $ac_compile; echo $2` | |
2578 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2579 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2580 | ac_status=$? | |
2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2582 | (exit $ac_status); } | |
2583 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2584 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2585 | ac_status=$? | |
2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2587 | (exit $ac_status); } | |
2588 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2589 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2590 | ac_status=$? | |
2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2592 | (exit $ac_status); } | |
2593 | ||
2594 | EXEEXT= | |
2595 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2596 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2597 | if test "${ac_cv_objext+set}" = set; then | |
2598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2599 | else |
3a12e572 | 2600 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 2601 | #line $LINENO "configure" |
2abf9ff1 RM |
2602 | /* confdefs.h. */ |
2603 | _ACEOF | |
2604 | cat confdefs.h >>conftest.$ac_ext | |
2605 | cat >>conftest.$ac_ext <<_ACEOF | |
2606 | /* end confdefs.h. */ | |
3a12e572 | 2607 | |
3a12e572 UD |
2608 | int |
2609 | main () | |
2610 | { | |
2611 | ||
2612 | ; | |
2613 | return 0; | |
2614 | } | |
2615 | _ACEOF | |
2616 | rm -f conftest.o conftest.obj | |
2617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2618 | (eval $ac_compile) 2>&5 | |
2619 | ac_status=$? | |
2620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2621 | (exit $ac_status); }; then | |
2622 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2623 | case $ac_file in | |
f4b07664 | 2624 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
3a12e572 UD |
2625 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2626 | break;; | |
2627 | esac | |
2628 | done | |
2629 | else | |
2630 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
2631 | sed 's/^/| /' conftest.$ac_ext >&5 |
2632 | ||
2633 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2634 | See \`config.log' for more details." >&5 | |
2635 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2636 | See \`config.log' for more details." >&2;} | |
3a12e572 UD |
2637 | { (exit 1); exit 1; }; } |
2638 | fi | |
2639 | ||
2640 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2641 | fi | |
2642 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2643 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2644 | OBJEXT=$ac_cv_objext | |
2645 | ac_objext=$OBJEXT | |
2646 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2647 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2648 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2650 | else | |
2651 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 2652 | #line $LINENO "configure" |
2abf9ff1 RM |
2653 | /* confdefs.h. */ |
2654 | _ACEOF | |
2655 | cat confdefs.h >>conftest.$ac_ext | |
2656 | cat >>conftest.$ac_ext <<_ACEOF | |
2657 | /* end confdefs.h. */ | |
3a12e572 | 2658 | |
3a12e572 UD |
2659 | int |
2660 | main () | |
2661 | { | |
2662 | #ifndef __GNUC__ | |
2663 | choke me | |
2664 | #endif | |
2665 | ||
2666 | ; | |
2667 | return 0; | |
2668 | } | |
2669 | _ACEOF | |
2670 | rm -f conftest.$ac_objext | |
2671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 2672 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
2673 | ac_status=$? |
2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2675 | (exit $ac_status); } && | |
8f73811b | 2676 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
2677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2678 | (eval $ac_try) 2>&5 | |
2679 | ac_status=$? | |
2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2681 | (exit $ac_status); }; }; then | |
2682 | ac_compiler_gnu=yes | |
2683 | else | |
2684 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
2685 | sed 's/^/| /' conftest.$ac_ext >&5 |
2686 | ||
3a12e572 UD |
2687 | ac_compiler_gnu=no |
2688 | fi | |
8f73811b | 2689 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
2690 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2691 | ||
2692 | fi | |
2693 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2694 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2695 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2696 | ac_test_CFLAGS=${CFLAGS+set} | |
2697 | ac_save_CFLAGS=$CFLAGS | |
2698 | CFLAGS="-g" | |
2699 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2700 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2701 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2703 | else | |
2704 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 2705 | #line $LINENO "configure" |
2abf9ff1 RM |
2706 | /* confdefs.h. */ |
2707 | _ACEOF | |
2708 | cat confdefs.h >>conftest.$ac_ext | |
2709 | cat >>conftest.$ac_ext <<_ACEOF | |
2710 | /* end confdefs.h. */ | |
3a12e572 | 2711 | |
3a12e572 UD |
2712 | int |
2713 | main () | |
2714 | { | |
2715 | ||
2716 | ; | |
2717 | return 0; | |
2718 | } | |
2719 | _ACEOF | |
2720 | rm -f conftest.$ac_objext | |
2721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 2722 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
2723 | ac_status=$? |
2724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2725 | (exit $ac_status); } && | |
8f73811b | 2726 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
2727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2728 | (eval $ac_try) 2>&5 | |
2729 | ac_status=$? | |
2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2731 | (exit $ac_status); }; }; then | |
2732 | ac_cv_prog_cc_g=yes | |
2733 | else | |
2734 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
2735 | sed 's/^/| /' conftest.$ac_ext >&5 |
2736 | ||
3a12e572 UD |
2737 | ac_cv_prog_cc_g=no |
2738 | fi | |
8f73811b | 2739 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
2740 | fi |
2741 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2742 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2743 | if test "$ac_test_CFLAGS" = set; then | |
2744 | CFLAGS=$ac_save_CFLAGS | |
2745 | elif test $ac_cv_prog_cc_g = yes; then | |
2746 | if test "$GCC" = yes; then | |
2747 | CFLAGS="-g -O2" | |
2748 | else | |
2749 | CFLAGS="-g" | |
2750 | fi | |
2751 | else | |
2752 | if test "$GCC" = yes; then | |
2753 | CFLAGS="-O2" | |
2754 | else | |
2755 | CFLAGS= | |
2756 | fi | |
2757 | fi | |
f4b07664 RM |
2758 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2759 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2760 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2762 | else | |
2763 | ac_cv_prog_cc_stdc=no | |
2764 | ac_save_CC=$CC | |
2765 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 2766 | #line $LINENO "configure" |
2abf9ff1 RM |
2767 | /* confdefs.h. */ |
2768 | _ACEOF | |
2769 | cat confdefs.h >>conftest.$ac_ext | |
2770 | cat >>conftest.$ac_ext <<_ACEOF | |
2771 | /* end confdefs.h. */ | |
f4b07664 RM |
2772 | #include <stdarg.h> |
2773 | #include <stdio.h> | |
2774 | #include <sys/types.h> | |
2775 | #include <sys/stat.h> | |
2776 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2777 | struct buf { int x; }; | |
2778 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2779 | static char *e (p, i) | |
2780 | char **p; | |
2781 | int i; | |
2782 | { | |
2783 | return p[i]; | |
2784 | } | |
2785 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2786 | { | |
2787 | char *s; | |
2788 | va_list v; | |
2789 | va_start (v,p); | |
2790 | s = g (p, va_arg (v,int)); | |
2791 | va_end (v); | |
2792 | return s; | |
2793 | } | |
2794 | int test (int i, double x); | |
2795 | struct s1 {int (*f) (int a);}; | |
2796 | struct s2 {int (*f) (double a);}; | |
2797 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2798 | int argc; | |
2799 | char **argv; | |
2800 | int | |
2801 | main () | |
2802 | { | |
2803 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2804 | ; | |
2805 | return 0; | |
2806 | } | |
2807 | _ACEOF | |
2808 | # Don't try gcc -ansi; that turns off useful extensions and | |
2809 | # breaks some systems' header files. | |
2810 | # AIX -qlanglvl=ansi | |
2811 | # Ultrix and OSF/1 -std1 | |
2812 | # HP-UX 10.20 and later -Ae | |
2813 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2814 | # SVR4 -Xc -D__EXTENSIONS__ | |
2815 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2816 | do | |
2817 | CC="$ac_save_CC $ac_arg" | |
2818 | rm -f conftest.$ac_objext | |
2819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 2820 | (eval $ac_compile) 2>&5 |
f4b07664 RM |
2821 | ac_status=$? |
2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2823 | (exit $ac_status); } && | |
8f73811b | 2824 | { ac_try='test -s conftest.$ac_objext' |
f4b07664 RM |
2825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2826 | (eval $ac_try) 2>&5 | |
2827 | ac_status=$? | |
2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2829 | (exit $ac_status); }; }; then | |
2830 | ac_cv_prog_cc_stdc=$ac_arg | |
2831 | break | |
2832 | else | |
2833 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
2834 | sed 's/^/| /' conftest.$ac_ext >&5 |
2835 | ||
f4b07664 | 2836 | fi |
8f73811b | 2837 | rm -f conftest.$ac_objext |
f4b07664 RM |
2838 | done |
2839 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2840 | CC=$ac_save_CC | |
2841 | ||
2842 | fi | |
2843 | ||
2844 | case "x$ac_cv_prog_cc_stdc" in | |
2845 | x|xno) | |
2846 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2847 | echo "${ECHO_T}none needed" >&6 ;; | |
2848 | *) | |
2849 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2850 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2851 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2852 | esac | |
2853 | ||
3a12e572 UD |
2854 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2855 | # in C++ we need to declare it. In case someone uses the same compiler | |
2856 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2857 | # the declaration of exit, since it's the most demanding environment. | |
2858 | cat >conftest.$ac_ext <<_ACEOF | |
2859 | #ifndef __cplusplus | |
2860 | choke me | |
2861 | #endif | |
2862 | _ACEOF | |
2863 | rm -f conftest.$ac_objext | |
2864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 2865 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
2866 | ac_status=$? |
2867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2868 | (exit $ac_status); } && | |
8f73811b | 2869 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
2870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2871 | (eval $ac_try) 2>&5 | |
2872 | ac_status=$? | |
2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2874 | (exit $ac_status); }; }; then | |
2875 | for ac_declaration in \ | |
8f73811b RM |
2876 | ''\ |
2877 | '#include <stdlib.h>' \ | |
3a12e572 UD |
2878 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2879 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2880 | 'extern "C" void exit (int) throw ();' \ | |
2881 | 'extern "C" void exit (int);' \ | |
2882 | 'void exit (int);' | |
2883 | do | |
2884 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 2885 | #line $LINENO "configure" |
2abf9ff1 RM |
2886 | /* confdefs.h. */ |
2887 | _ACEOF | |
2888 | cat confdefs.h >>conftest.$ac_ext | |
2889 | cat >>conftest.$ac_ext <<_ACEOF | |
2890 | /* end confdefs.h. */ | |
ec5a15a3 | 2891 | #include <stdlib.h> |
8f73811b | 2892 | $ac_declaration |
3a12e572 UD |
2893 | int |
2894 | main () | |
2895 | { | |
2896 | exit (42); | |
2897 | ; | |
2898 | return 0; | |
2899 | } | |
2900 | _ACEOF | |
2901 | rm -f conftest.$ac_objext | |
2902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 2903 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
2904 | ac_status=$? |
2905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2906 | (exit $ac_status); } && | |
8f73811b | 2907 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
2908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2909 | (eval $ac_try) 2>&5 | |
2910 | ac_status=$? | |
2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2912 | (exit $ac_status); }; }; then | |
5c2a0669 UD |
2913 | : |
2914 | else | |
3a12e572 | 2915 | echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
2916 | sed 's/^/| /' conftest.$ac_ext >&5 |
2917 | ||
3a12e572 UD |
2918 | continue |
2919 | fi | |
8f73811b | 2920 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 | 2921 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 2922 | #line $LINENO "configure" |
2abf9ff1 RM |
2923 | /* confdefs.h. */ |
2924 | _ACEOF | |
2925 | cat confdefs.h >>conftest.$ac_ext | |
2926 | cat >>conftest.$ac_ext <<_ACEOF | |
2927 | /* end confdefs.h. */ | |
3a12e572 | 2928 | $ac_declaration |
3a12e572 UD |
2929 | int |
2930 | main () | |
2931 | { | |
2932 | exit (42); | |
2933 | ; | |
2934 | return 0; | |
2935 | } | |
2936 | _ACEOF | |
2937 | rm -f conftest.$ac_objext | |
2938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 2939 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
2940 | ac_status=$? |
2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2942 | (exit $ac_status); } && | |
8f73811b | 2943 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
2944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2945 | (eval $ac_try) 2>&5 | |
2946 | ac_status=$? | |
2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2948 | (exit $ac_status); }; }; then | |
2949 | break | |
2950 | else | |
2951 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
2952 | sed 's/^/| /' conftest.$ac_ext >&5 |
2953 | ||
3a12e572 | 2954 | fi |
8f73811b | 2955 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
2956 | done |
2957 | rm -f conftest* | |
2958 | if test -n "$ac_declaration"; then | |
2959 | echo '#ifdef __cplusplus' >>confdefs.h | |
2960 | echo $ac_declaration >>confdefs.h | |
2961 | echo '#endif' >>confdefs.h | |
2962 | fi | |
2963 | ||
2964 | else | |
2965 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
2966 | sed 's/^/| /' conftest.$ac_ext >&5 |
2967 | ||
3a12e572 | 2968 | fi |
8f73811b | 2969 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
2970 | ac_ext=c |
2971 | ac_cpp='$CPP $CPPFLAGS' | |
2972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2975 | ||
2976 | if test $host != $build; then | |
2977 | for ac_prog in gcc cc | |
2978 | do | |
2979 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2980 | set dummy $ac_prog; ac_word=$2 | |
2981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2983 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | |
2984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2985 | else | |
2986 | if test -n "$BUILD_CC"; then | |
2987 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
2988 | else | |
2989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2990 | for as_dir in $PATH | |
2991 | do | |
2992 | IFS=$as_save_IFS | |
2993 | test -z "$as_dir" && as_dir=. | |
2994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2995 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2996 | ac_cv_prog_BUILD_CC="$ac_prog" | |
2997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2998 | break 2 | |
2999 | fi | |
3000 | done | |
3001 | done | |
3002 | ||
3003 | fi | |
3004 | fi | |
3005 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
3006 | if test -n "$BUILD_CC"; then | |
3007 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | |
3008 | echo "${ECHO_T}$BUILD_CC" >&6 | |
3009 | else | |
3010 | echo "$as_me:$LINENO: result: no" >&5 | |
3011 | echo "${ECHO_T}no" >&6 | |
3012 | fi | |
3013 | ||
3014 | test -n "$BUILD_CC" && break | |
3015 | done | |
3016 | ||
3017 | fi | |
3018 | ||
3019 | ac_ext=c | |
3020 | ac_cpp='$CPP $CPPFLAGS' | |
3021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3024 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3025 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3026 | # On Suns, sometimes $CPP names a directory. | |
3027 | if test -n "$CPP" && test -d "$CPP"; then | |
3028 | CPP= | |
3029 | fi | |
3030 | if test -z "$CPP"; then | |
3031 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3033 | else | |
3034 | # Double quotes because CPP needs to be expanded | |
3035 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3036 | do | |
3037 | ac_preproc_ok=false | |
3038 | for ac_c_preproc_warn_flag in '' yes | |
3039 | do | |
3040 | # Use a header file that comes with gcc, so configuring glibc | |
3041 | # with a fresh cross-compiler works. | |
2abf9ff1 RM |
3042 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3043 | # <limits.h> exists even on freestanding compilers. | |
3a12e572 UD |
3044 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3045 | # not just through cpp. "Syntax error" is here to catch this case. | |
3046 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 3047 | #line $LINENO "configure" |
2abf9ff1 RM |
3048 | /* confdefs.h. */ |
3049 | _ACEOF | |
3050 | cat confdefs.h >>conftest.$ac_ext | |
3051 | cat >>conftest.$ac_ext <<_ACEOF | |
3052 | /* end confdefs.h. */ | |
3053 | #ifdef __STDC__ | |
3054 | # include <limits.h> | |
3055 | #else | |
3056 | # include <assert.h> | |
3057 | #endif | |
8f73811b | 3058 | Syntax error |
3a12e572 UD |
3059 | _ACEOF |
3060 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3061 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3062 | ac_status=$? | |
f4b07664 | 3063 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
3064 | rm -f conftest.er1 |
3065 | cat conftest.err >&5 | |
3066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3067 | (exit $ac_status); } >/dev/null; then | |
3068 | if test -s conftest.err; then | |
3069 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3070 | else | |
3071 | ac_cpp_err= | |
3072 | fi | |
3073 | else | |
3074 | ac_cpp_err=yes | |
3075 | fi | |
3076 | if test -z "$ac_cpp_err"; then | |
cd6ede75 UD |
3077 | : |
3078 | else | |
3a12e572 | 3079 | echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
3080 | sed 's/^/| /' conftest.$ac_ext >&5 |
3081 | ||
3a12e572 UD |
3082 | # Broken: fails on valid input. |
3083 | continue | |
cd6ede75 | 3084 | fi |
3a12e572 UD |
3085 | rm -f conftest.err conftest.$ac_ext |
3086 | ||
3087 | # OK, works on sane cases. Now check whether non-existent headers | |
3088 | # can be detected and how. | |
3089 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 3090 | #line $LINENO "configure" |
2abf9ff1 RM |
3091 | /* confdefs.h. */ |
3092 | _ACEOF | |
3093 | cat confdefs.h >>conftest.$ac_ext | |
3094 | cat >>conftest.$ac_ext <<_ACEOF | |
3095 | /* end confdefs.h. */ | |
3a12e572 UD |
3096 | #include <ac_nonexistent.h> |
3097 | _ACEOF | |
3098 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3099 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3100 | ac_status=$? | |
f4b07664 | 3101 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
3102 | rm -f conftest.er1 |
3103 | cat conftest.err >&5 | |
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3105 | (exit $ac_status); } >/dev/null; then | |
3106 | if test -s conftest.err; then | |
3107 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3108 | else | |
3109 | ac_cpp_err= | |
3110 | fi | |
3111 | else | |
3112 | ac_cpp_err=yes | |
cd6ede75 | 3113 | fi |
3a12e572 UD |
3114 | if test -z "$ac_cpp_err"; then |
3115 | # Broken: success on invalid input. | |
3116 | continue | |
3117 | else | |
3118 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
3119 | sed 's/^/| /' conftest.$ac_ext >&5 |
3120 | ||
3a12e572 UD |
3121 | # Passes both tests. |
3122 | ac_preproc_ok=: | |
3123 | break | |
5c2a0669 | 3124 | fi |
3a12e572 UD |
3125 | rm -f conftest.err conftest.$ac_ext |
3126 | ||
3127 | done | |
3128 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3129 | rm -f conftest.err conftest.$ac_ext | |
3130 | if $ac_preproc_ok; then | |
3131 | break | |
3132 | fi | |
3133 | ||
3134 | done | |
3135 | ac_cv_prog_CPP=$CPP | |
3136 | ||
3137 | fi | |
3138 | CPP=$ac_cv_prog_CPP | |
3139 | else | |
3140 | ac_cv_prog_CPP=$CPP | |
3141 | fi | |
3142 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3143 | echo "${ECHO_T}$CPP" >&6 | |
3144 | ac_preproc_ok=false | |
3145 | for ac_c_preproc_warn_flag in '' yes | |
3146 | do | |
3147 | # Use a header file that comes with gcc, so configuring glibc | |
3148 | # with a fresh cross-compiler works. | |
2abf9ff1 RM |
3149 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3150 | # <limits.h> exists even on freestanding compilers. | |
3a12e572 UD |
3151 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3152 | # not just through cpp. "Syntax error" is here to catch this case. | |
3153 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 3154 | #line $LINENO "configure" |
2abf9ff1 RM |
3155 | /* confdefs.h. */ |
3156 | _ACEOF | |
3157 | cat confdefs.h >>conftest.$ac_ext | |
3158 | cat >>conftest.$ac_ext <<_ACEOF | |
3159 | /* end confdefs.h. */ | |
3160 | #ifdef __STDC__ | |
3161 | # include <limits.h> | |
3162 | #else | |
3163 | # include <assert.h> | |
3164 | #endif | |
8f73811b | 3165 | Syntax error |
3a12e572 UD |
3166 | _ACEOF |
3167 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3168 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3169 | ac_status=$? | |
f4b07664 | 3170 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
3171 | rm -f conftest.er1 |
3172 | cat conftest.err >&5 | |
3173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3174 | (exit $ac_status); } >/dev/null; then | |
3175 | if test -s conftest.err; then | |
3176 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3177 | else | |
3178 | ac_cpp_err= | |
3179 | fi | |
3180 | else | |
3181 | ac_cpp_err=yes | |
3182 | fi | |
3183 | if test -z "$ac_cpp_err"; then | |
3184 | : | |
3185 | else | |
3186 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
3187 | sed 's/^/| /' conftest.$ac_ext >&5 |
3188 | ||
3a12e572 UD |
3189 | # Broken: fails on valid input. |
3190 | continue | |
3191 | fi | |
3192 | rm -f conftest.err conftest.$ac_ext | |
3193 | ||
3194 | # OK, works on sane cases. Now check whether non-existent headers | |
3195 | # can be detected and how. | |
3196 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 3197 | #line $LINENO "configure" |
2abf9ff1 RM |
3198 | /* confdefs.h. */ |
3199 | _ACEOF | |
3200 | cat confdefs.h >>conftest.$ac_ext | |
3201 | cat >>conftest.$ac_ext <<_ACEOF | |
3202 | /* end confdefs.h. */ | |
3a12e572 UD |
3203 | #include <ac_nonexistent.h> |
3204 | _ACEOF | |
3205 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3206 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3207 | ac_status=$? | |
f4b07664 | 3208 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
3209 | rm -f conftest.er1 |
3210 | cat conftest.err >&5 | |
3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3212 | (exit $ac_status); } >/dev/null; then | |
3213 | if test -s conftest.err; then | |
3214 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3215 | else | |
3216 | ac_cpp_err= | |
3217 | fi | |
3218 | else | |
3219 | ac_cpp_err=yes | |
3220 | fi | |
3221 | if test -z "$ac_cpp_err"; then | |
3222 | # Broken: success on invalid input. | |
3223 | continue | |
3224 | else | |
3225 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
3226 | sed 's/^/| /' conftest.$ac_ext >&5 |
3227 | ||
3a12e572 UD |
3228 | # Passes both tests. |
3229 | ac_preproc_ok=: | |
3230 | break | |
cd6ede75 | 3231 | fi |
3a12e572 UD |
3232 | rm -f conftest.err conftest.$ac_ext |
3233 | ||
3234 | done | |
3235 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3236 | rm -f conftest.err conftest.$ac_ext | |
3237 | if $ac_preproc_ok; then | |
3238 | : | |
cd6ede75 | 3239 | else |
2abf9ff1 RM |
3240 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3241 | See \`config.log' for more details." >&5 | |
3242 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3243 | See \`config.log' for more details." >&2;} | |
3a12e572 | 3244 | { (exit 1); exit 1; }; } |
cd6ede75 | 3245 | fi |
3a12e572 UD |
3246 | |
3247 | ac_ext=c | |
3248 | ac_cpp='$CPP $CPPFLAGS' | |
3249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
cd6ede75 | 3252 | |
925c3c5c UD |
3253 | # We need the C++ compiler only for testing. |
3254 | ac_ext=cc | |
3255 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3256 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3257 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3258 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3259 | if test -n "$ac_tool_prefix"; then | |
3260 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3261 | do | |
3262 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3263 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3264 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3266 | if test "${ac_cv_prog_CXX+set}" = set; then | |
3267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3268 | else | |
3269 | if test -n "$CXX"; then | |
3270 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3271 | else | |
3272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3273 | for as_dir in $PATH | |
3274 | do | |
3275 | IFS=$as_save_IFS | |
3276 | test -z "$as_dir" && as_dir=. | |
3277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3279 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3281 | break 2 | |
3282 | fi | |
3283 | done | |
3284 | done | |
3285 | ||
3286 | fi | |
3287 | fi | |
3288 | CXX=$ac_cv_prog_CXX | |
3289 | if test -n "$CXX"; then | |
3290 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
3291 | echo "${ECHO_T}$CXX" >&6 | |
3292 | else | |
3293 | echo "$as_me:$LINENO: result: no" >&5 | |
3294 | echo "${ECHO_T}no" >&6 | |
3295 | fi | |
3296 | ||
3297 | test -n "$CXX" && break | |
3298 | done | |
3299 | fi | |
3300 | if test -z "$CXX"; then | |
3301 | ac_ct_CXX=$CXX | |
3302 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3303 | do | |
3304 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3305 | set dummy $ac_prog; ac_word=$2 | |
3306 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3308 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3310 | else | |
3311 | if test -n "$ac_ct_CXX"; then | |
3312 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3313 | else | |
3314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3315 | for as_dir in $PATH | |
3316 | do | |
3317 | IFS=$as_save_IFS | |
3318 | test -z "$as_dir" && as_dir=. | |
3319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3321 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3323 | break 2 | |
3324 | fi | |
3325 | done | |
3326 | done | |
3327 | ||
3328 | fi | |
3329 | fi | |
3330 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3331 | if test -n "$ac_ct_CXX"; then | |
3332 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3333 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
3334 | else | |
3335 | echo "$as_me:$LINENO: result: no" >&5 | |
3336 | echo "${ECHO_T}no" >&6 | |
3337 | fi | |
3338 | ||
3339 | test -n "$ac_ct_CXX" && break | |
3340 | done | |
3341 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
3342 | ||
3343 | CXX=$ac_ct_CXX | |
3344 | fi | |
3345 | ||
3346 | ||
3347 | # Provide some information about the compiler. | |
3348 | echo "$as_me:$LINENO:" \ | |
3349 | "checking for C++ compiler version" >&5 | |
3350 | ac_compiler=`set X $ac_compile; echo $2` | |
3351 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3352 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3353 | ac_status=$? | |
3354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3355 | (exit $ac_status); } | |
3356 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3357 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3358 | ac_status=$? | |
3359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3360 | (exit $ac_status); } | |
3361 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3362 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3363 | ac_status=$? | |
3364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3365 | (exit $ac_status); } | |
3366 | ||
3367 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3368 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3369 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3371 | else | |
3372 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 3373 | #line $LINENO "configure" |
2abf9ff1 RM |
3374 | /* confdefs.h. */ |
3375 | _ACEOF | |
3376 | cat confdefs.h >>conftest.$ac_ext | |
3377 | cat >>conftest.$ac_ext <<_ACEOF | |
3378 | /* end confdefs.h. */ | |
925c3c5c UD |
3379 | |
3380 | int | |
3381 | main () | |
3382 | { | |
3383 | #ifndef __GNUC__ | |
3384 | choke me | |
3385 | #endif | |
3386 | ||
3387 | ; | |
3388 | return 0; | |
3389 | } | |
3390 | _ACEOF | |
3391 | rm -f conftest.$ac_objext | |
3392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 3393 | (eval $ac_compile) 2>&5 |
925c3c5c UD |
3394 | ac_status=$? |
3395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3396 | (exit $ac_status); } && | |
8f73811b | 3397 | { ac_try='test -s conftest.$ac_objext' |
925c3c5c UD |
3398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3399 | (eval $ac_try) 2>&5 | |
3400 | ac_status=$? | |
3401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3402 | (exit $ac_status); }; }; then | |
3403 | ac_compiler_gnu=yes | |
3404 | else | |
3405 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
3406 | sed 's/^/| /' conftest.$ac_ext >&5 |
3407 | ||
925c3c5c UD |
3408 | ac_compiler_gnu=no |
3409 | fi | |
8f73811b | 3410 | rm -f conftest.$ac_objext conftest.$ac_ext |
925c3c5c UD |
3411 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3412 | ||
3413 | fi | |
3414 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3415 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3416 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3417 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3418 | ac_save_CXXFLAGS=$CXXFLAGS | |
3419 | CXXFLAGS="-g" | |
3420 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3421 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3422 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3424 | else | |
3425 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 3426 | #line $LINENO "configure" |
2abf9ff1 RM |
3427 | /* confdefs.h. */ |
3428 | _ACEOF | |
3429 | cat confdefs.h >>conftest.$ac_ext | |
3430 | cat >>conftest.$ac_ext <<_ACEOF | |
3431 | /* end confdefs.h. */ | |
925c3c5c UD |
3432 | |
3433 | int | |
3434 | main () | |
3435 | { | |
3436 | ||
3437 | ; | |
3438 | return 0; | |
3439 | } | |
3440 | _ACEOF | |
3441 | rm -f conftest.$ac_objext | |
3442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 3443 | (eval $ac_compile) 2>&5 |
925c3c5c UD |
3444 | ac_status=$? |
3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3446 | (exit $ac_status); } && | |
8f73811b | 3447 | { ac_try='test -s conftest.$ac_objext' |
925c3c5c UD |
3448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3449 | (eval $ac_try) 2>&5 | |
3450 | ac_status=$? | |
3451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3452 | (exit $ac_status); }; }; then | |
3453 | ac_cv_prog_cxx_g=yes | |
3454 | else | |
3455 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
3456 | sed 's/^/| /' conftest.$ac_ext >&5 |
3457 | ||
925c3c5c UD |
3458 | ac_cv_prog_cxx_g=no |
3459 | fi | |
8f73811b | 3460 | rm -f conftest.$ac_objext conftest.$ac_ext |
925c3c5c UD |
3461 | fi |
3462 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3463 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3464 | if test "$ac_test_CXXFLAGS" = set; then | |
3465 | CXXFLAGS=$ac_save_CXXFLAGS | |
3466 | elif test $ac_cv_prog_cxx_g = yes; then | |
3467 | if test "$GXX" = yes; then | |
3468 | CXXFLAGS="-g -O2" | |
3469 | else | |
3470 | CXXFLAGS="-g" | |
3471 | fi | |
3472 | else | |
3473 | if test "$GXX" = yes; then | |
3474 | CXXFLAGS="-O2" | |
3475 | else | |
3476 | CXXFLAGS= | |
3477 | fi | |
3478 | fi | |
3479 | for ac_declaration in \ | |
8f73811b RM |
3480 | ''\ |
3481 | '#include <stdlib.h>' \ | |
925c3c5c UD |
3482 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3483 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3484 | 'extern "C" void exit (int) throw ();' \ | |
3485 | 'extern "C" void exit (int);' \ | |
3486 | 'void exit (int);' | |
3487 | do | |
3488 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 3489 | #line $LINENO "configure" |
2abf9ff1 RM |
3490 | /* confdefs.h. */ |
3491 | _ACEOF | |
3492 | cat confdefs.h >>conftest.$ac_ext | |
3493 | cat >>conftest.$ac_ext <<_ACEOF | |
3494 | /* end confdefs.h. */ | |
ec5a15a3 | 3495 | #include <stdlib.h> |
8f73811b | 3496 | $ac_declaration |
925c3c5c UD |
3497 | int |
3498 | main () | |
3499 | { | |
3500 | exit (42); | |
3501 | ; | |
3502 | return 0; | |
3503 | } | |
3504 | _ACEOF | |
3505 | rm -f conftest.$ac_objext | |
3506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 3507 | (eval $ac_compile) 2>&5 |
925c3c5c UD |
3508 | ac_status=$? |
3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3510 | (exit $ac_status); } && | |
8f73811b | 3511 | { ac_try='test -s conftest.$ac_objext' |
925c3c5c UD |
3512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3513 | (eval $ac_try) 2>&5 | |
3514 | ac_status=$? | |
3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3516 | (exit $ac_status); }; }; then | |
3517 | : | |
3518 | else | |
3519 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
3520 | sed 's/^/| /' conftest.$ac_ext >&5 |
3521 | ||
925c3c5c UD |
3522 | continue |
3523 | fi | |
8f73811b | 3524 | rm -f conftest.$ac_objext conftest.$ac_ext |
925c3c5c | 3525 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 3526 | #line $LINENO "configure" |
2abf9ff1 RM |
3527 | /* confdefs.h. */ |
3528 | _ACEOF | |
3529 | cat confdefs.h >>conftest.$ac_ext | |
3530 | cat >>conftest.$ac_ext <<_ACEOF | |
3531 | /* end confdefs.h. */ | |
925c3c5c UD |
3532 | $ac_declaration |
3533 | int | |
3534 | main () | |
3535 | { | |
3536 | exit (42); | |
3537 | ; | |
3538 | return 0; | |
3539 | } | |
3540 | _ACEOF | |
3541 | rm -f conftest.$ac_objext | |
3542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 3543 | (eval $ac_compile) 2>&5 |
925c3c5c UD |
3544 | ac_status=$? |
3545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3546 | (exit $ac_status); } && | |
8f73811b | 3547 | { ac_try='test -s conftest.$ac_objext' |
925c3c5c UD |
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); }; }; then | |
3553 | break | |
3554 | else | |
3555 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
3556 | sed 's/^/| /' conftest.$ac_ext >&5 |
3557 | ||
925c3c5c | 3558 | fi |
8f73811b | 3559 | rm -f conftest.$ac_objext conftest.$ac_ext |
925c3c5c UD |
3560 | done |
3561 | rm -f conftest* | |
3562 | if test -n "$ac_declaration"; then | |
3563 | echo '#ifdef __cplusplus' >>confdefs.h | |
3564 | echo $ac_declaration >>confdefs.h | |
3565 | echo '#endif' >>confdefs.h | |
3566 | fi | |
3567 | ||
3568 | ac_ext=c | |
3569 | ac_cpp='$CPP $CPPFLAGS' | |
3570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3573 | ||
650425ce UD |
3574 | # Was a --with-binutils option given? |
3575 | if test -n "$path_binutils"; then | |
3576 | # Make absolute; ensure a single trailing slash. | |
3577 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
63bda0c1 | 3578 | CC="$CC -B$path_binutils" |
650425ce | 3579 | fi |
27a5bb33 UD |
3580 | AS=`$CC -print-prog-name=as` |
3581 | LD=`$CC -print-prog-name=ld` | |
5edb9387 | 3582 | AR=`$CC -print-prog-name=ar` |
cd6ede75 | 3583 | |
4baa087a RM |
3584 | OBJDUMP=`$CC -print-prog-name=objdump` |
3585 | ||
3586 | ||
3587 | # ranlib has to be treated a bit differently since it might not exist at all. | |
3588 | ac_ranlib=`$CC -print-prog-name=ranlib` | |
3589 | if test "x$ac_ranlib" = xranlib; then | |
3590 | # This extra check has to happen since gcc simply echos the parameter in | |
3591 | # case it cannot find the value in its own directories. | |
3592 | if test -n "$ac_tool_prefix"; then | |
3593 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3594 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3597 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3599 | else | |
3600 | if test -n "$RANLIB"; then | |
3601 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3602 | else | |
3603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3604 | for as_dir in $PATH | |
3605 | do | |
3606 | IFS=$as_save_IFS | |
3607 | test -z "$as_dir" && as_dir=. | |
3608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3610 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3612 | break 2 | |
3613 | fi | |
3614 | done | |
3615 | done | |
3616 | ||
3617 | fi | |
3618 | fi | |
3619 | RANLIB=$ac_cv_prog_RANLIB | |
3620 | if test -n "$RANLIB"; then | |
3621 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3622 | echo "${ECHO_T}$RANLIB" >&6 | |
3623 | else | |
3624 | echo "$as_me:$LINENO: result: no" >&5 | |
3625 | echo "${ECHO_T}no" >&6 | |
3626 | fi | |
3627 | ||
3628 | fi | |
3629 | if test -z "$ac_cv_prog_RANLIB"; then | |
3630 | ac_ct_RANLIB=$RANLIB | |
3631 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3632 | set dummy ranlib; ac_word=$2 | |
3633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3635 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3637 | else | |
3638 | if test -n "$ac_ct_RANLIB"; then | |
3639 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3640 | else | |
3641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3642 | for as_dir in $PATH | |
3643 | do | |
3644 | IFS=$as_save_IFS | |
3645 | test -z "$as_dir" && as_dir=. | |
3646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3648 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3650 | break 2 | |
3651 | fi | |
3652 | done | |
3653 | done | |
3654 | ||
3655 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3656 | fi | |
3657 | fi | |
3658 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3659 | if test -n "$ac_ct_RANLIB"; then | |
3660 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3661 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3662 | else | |
3663 | echo "$as_me:$LINENO: result: no" >&5 | |
3664 | echo "${ECHO_T}no" >&6 | |
3665 | fi | |
3666 | ||
3667 | RANLIB=$ac_ct_RANLIB | |
3668 | else | |
3669 | RANLIB="$ac_cv_prog_RANLIB" | |
3670 | fi | |
3671 | ||
3672 | else | |
3673 | RANLIB=$ac_ranlib | |
3674 | fi | |
3675 | ||
3676 | ||
3677 | # Determine whether we are using GNU binutils. | |
3678 | echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5 | |
3679 | echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6 | |
3680 | if test "${libc_cv_prog_as_gnu+set}" = set; then | |
3681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3682 | else | |
3683 | # Most GNU programs take a -v and spit out some text including | |
3684 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
3685 | if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
3686 | libc_cv_prog_as_gnu=yes | |
3687 | else | |
3688 | libc_cv_prog_as_gnu=no | |
3689 | fi | |
3690 | rm -fr contest* | |
3691 | fi | |
3692 | echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5 | |
3693 | echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6 | |
3694 | rm -f a.out | |
3695 | gnu_as=$libc_cv_prog_as_gnu | |
3696 | ||
3697 | echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5 | |
3698 | echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6 | |
3699 | if test "${libc_cv_prog_ld_gnu+set}" = set; then | |
3700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3701 | else | |
3702 | # Most GNU programs take a -v and spit out some text including | |
3703 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
3704 | if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
3705 | libc_cv_prog_ld_gnu=yes | |
3706 | else | |
3707 | libc_cv_prog_ld_gnu=no | |
3708 | fi | |
3709 | rm -fr contest* | |
3710 | fi | |
3711 | echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5 | |
3712 | echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6 | |
3713 | gnu_ld=$libc_cv_prog_ld_gnu | |
3714 | ||
3715 | ||
3716 | # Accept binutils 2.13 or newer. | |
3717 | for ac_prog in $AS | |
3718 | do | |
3719 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3720 | set dummy $ac_prog; ac_word=$2 | |
3721 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3723 | if test "${ac_cv_prog_AS+set}" = set; then | |
3724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3725 | else | |
3726 | if test -n "$AS"; then | |
3727 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3728 | else | |
3729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3730 | for as_dir in $PATH | |
3731 | do | |
3732 | IFS=$as_save_IFS | |
3733 | test -z "$as_dir" && as_dir=. | |
3734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3736 | ac_cv_prog_AS="$ac_prog" | |
3737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3738 | break 2 | |
3739 | fi | |
3740 | done | |
3741 | done | |
3742 | ||
3743 | fi | |
3744 | fi | |
3745 | AS=$ac_cv_prog_AS | |
3746 | if test -n "$AS"; then | |
3747 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3748 | echo "${ECHO_T}$AS" >&6 | |
3749 | else | |
3750 | echo "$as_me:$LINENO: result: no" >&5 | |
3751 | echo "${ECHO_T}no" >&6 | |
3752 | fi | |
3753 | ||
3754 | test -n "$AS" && break | |
3755 | done | |
3756 | ||
3757 | if test -z "$AS"; then | |
3758 | ac_verc_fail=yes | |
3759 | else | |
3760 | # Found it, now check the version. | |
3761 | echo "$as_me:$LINENO: checking version of $AS" >&5 | |
3762 | echo $ECHO_N "checking version of $AS... $ECHO_C" >&6 | |
3763 | ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
3764 | case $ac_prog_version in | |
3765 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
3766 | 2.1[3-9]*) | |
3767 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
3768 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
3769 | ||
3770 | esac | |
3771 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
3772 | echo "${ECHO_T}$ac_prog_version" >&6 | |
3773 | fi | |
3774 | if test $ac_verc_fail = yes; then | |
73588175 | 3775 | AS=: critic_missing="$critic_missing as" |
4baa087a RM |
3776 | fi |
3777 | ||
3778 | for ac_prog in $LD | |
3779 | do | |
3780 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3781 | set dummy $ac_prog; ac_word=$2 | |
3782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3784 | if test "${ac_cv_prog_LD+set}" = set; then | |
3785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3786 | else | |
3787 | if test -n "$LD"; then | |
3788 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
3789 | else | |
3790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3791 | for as_dir in $PATH | |
3792 | do | |
3793 | IFS=$as_save_IFS | |
3794 | test -z "$as_dir" && as_dir=. | |
3795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3797 | ac_cv_prog_LD="$ac_prog" | |
3798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3799 | break 2 | |
3800 | fi | |
3801 | done | |
3802 | done | |
3803 | ||
3804 | fi | |
3805 | fi | |
3806 | LD=$ac_cv_prog_LD | |
3807 | if test -n "$LD"; then | |
3808 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3809 | echo "${ECHO_T}$LD" >&6 | |
3810 | else | |
3811 | echo "$as_me:$LINENO: result: no" >&5 | |
3812 | echo "${ECHO_T}no" >&6 | |
3813 | fi | |
3814 | ||
3815 | test -n "$LD" && break | |
3816 | done | |
3817 | ||
3818 | if test -z "$LD"; then | |
3819 | ac_verc_fail=yes | |
3820 | else | |
3821 | # Found it, now check the version. | |
3822 | echo "$as_me:$LINENO: checking version of $LD" >&5 | |
3823 | echo $ECHO_N "checking version of $LD... $ECHO_C" >&6 | |
3824 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` | |
3825 | case $ac_prog_version in | |
3826 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
3827 | 2.1[3-9]*) | |
3828 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
3829 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
3830 | ||
3831 | esac | |
3832 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
3833 | echo "${ECHO_T}$ac_prog_version" >&6 | |
3834 | fi | |
3835 | if test $ac_verc_fail = yes; then | |
73588175 | 3836 | LD=: critic_missing="$critic_missing ld" |
4baa087a RM |
3837 | fi |
3838 | ||
3839 | ||
3840 | # We need the physical current working directory. We cannot use the | |
3841 | # "pwd -P" shell builtin since that's not portable. Instead we try to | |
3842 | # find a pwd binary. Note that assigning to the PWD environment | |
3843 | # variable might have some interesting side effects, so we don't do | |
3844 | # that. | |
3845 | # Extract the first word of "pwd", so it can be a program name with args. | |
3846 | set dummy pwd; ac_word=$2 | |
3847 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3849 | if test "${ac_cv_path_PWD_P+set}" = set; then | |
3850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3851 | else | |
3852 | case $PWD_P in | |
3853 | [\\/]* | ?:[\\/]*) | |
3854 | ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path. | |
3855 | ;; | |
3856 | *) | |
3857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3858 | for as_dir in $PATH | |
3859 | do | |
3860 | IFS=$as_save_IFS | |
3861 | test -z "$as_dir" && as_dir=. | |
3862 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3864 | ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext" | |
3865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3866 | break 2 | |
3867 | fi | |
3868 | done | |
3869 | done | |
3870 | ||
3871 | test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no" | |
3872 | ;; | |
3873 | esac | |
3874 | fi | |
3875 | PWD_P=$ac_cv_path_PWD_P | |
3876 | ||
3877 | if test -n "$PWD_P"; then | |
3878 | echo "$as_me:$LINENO: result: $PWD_P" >&5 | |
3879 | echo "${ECHO_T}$PWD_P" >&6 | |
3880 | else | |
3881 | echo "$as_me:$LINENO: result: no" >&5 | |
3882 | echo "${ECHO_T}no" >&6 | |
3883 | fi | |
3884 | ||
3885 | if test "$PWD_P" = no; then | |
3886 | { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5 | |
3887 | echo "$as_me: error: *** A pwd binary could not be found." >&2;} | |
3888 | { (exit 1); exit 1; }; } | |
3889 | fi | |
3890 | ||
3891 | # These programs are version sensitive. | |
3892 | ||
3893 | for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc | |
3894 | do | |
3895 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3896 | set dummy $ac_prog; ac_word=$2 | |
3897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3899 | if test "${ac_cv_prog_CC+set}" = set; then | |
3900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3901 | else | |
3902 | if test -n "$CC"; then | |
3903 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3904 | else | |
3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3906 | for as_dir in $PATH | |
3907 | do | |
3908 | IFS=$as_save_IFS | |
3909 | test -z "$as_dir" && as_dir=. | |
3910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3912 | ac_cv_prog_CC="$ac_prog" | |
3913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3914 | break 2 | |
3915 | fi | |
3916 | done | |
3917 | done | |
3918 | ||
3919 | fi | |
3920 | fi | |
3921 | CC=$ac_cv_prog_CC | |
3922 | if test -n "$CC"; then | |
3923 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3924 | echo "${ECHO_T}$CC" >&6 | |
3925 | else | |
3926 | echo "$as_me:$LINENO: result: no" >&5 | |
3927 | echo "${ECHO_T}no" >&6 | |
3928 | fi | |
3929 | ||
3930 | test -n "$CC" && break | |
3931 | done | |
3932 | ||
3933 | if test -z "$CC"; then | |
3934 | ac_verc_fail=yes | |
3935 | else | |
3936 | # Found it, now check the version. | |
3937 | echo "$as_me:$LINENO: checking version of $CC" >&5 | |
3938 | echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 | |
3939 | ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'` | |
3940 | case $ac_prog_version in | |
3941 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
3942 | 3.[2-9]*) | |
3943 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
3944 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
3945 | ||
3946 | esac | |
3947 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
3948 | echo "${ECHO_T}$ac_prog_version" >&6 | |
3949 | fi | |
3950 | if test $ac_verc_fail = yes; then | |
3951 | critic_missing="$critic_missing gcc" | |
3952 | fi | |
3953 | ||
3954 | for ac_prog in gnumake gmake make | |
3955 | do | |
3956 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3957 | set dummy $ac_prog; ac_word=$2 | |
3958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3960 | if test "${ac_cv_prog_MAKE+set}" = set; then | |
3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3962 | else | |
3963 | if test -n "$MAKE"; then | |
3964 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
3965 | else | |
3966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3967 | for as_dir in $PATH | |
3968 | do | |
3969 | IFS=$as_save_IFS | |
3970 | test -z "$as_dir" && as_dir=. | |
3971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3973 | ac_cv_prog_MAKE="$ac_prog" | |
3974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3975 | break 2 | |
3976 | fi | |
3977 | done | |
3978 | done | |
3979 | ||
3980 | fi | |
3981 | fi | |
3982 | MAKE=$ac_cv_prog_MAKE | |
3983 | if test -n "$MAKE"; then | |
3984 | echo "$as_me:$LINENO: result: $MAKE" >&5 | |
3985 | echo "${ECHO_T}$MAKE" >&6 | |
3986 | else | |
3987 | echo "$as_me:$LINENO: result: no" >&5 | |
3988 | echo "${ECHO_T}no" >&6 | |
3989 | fi | |
3990 | ||
3991 | test -n "$MAKE" && break | |
3992 | done | |
3993 | ||
3994 | if test -z "$MAKE"; then | |
3995 | ac_verc_fail=yes | |
3996 | else | |
3997 | # Found it, now check the version. | |
3998 | echo "$as_me:$LINENO: checking version of $MAKE" >&5 | |
3999 | echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6 | |
4000 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` | |
4001 | case $ac_prog_version in | |
4002 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4003 | 3.79* | 3.[89]*) | |
4004 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4005 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4006 | ||
4007 | esac | |
4008 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
4009 | echo "${ECHO_T}$ac_prog_version" >&6 | |
4010 | fi | |
4011 | if test $ac_verc_fail = yes; then | |
4012 | critic_missing="$critic_missing make" | |
4013 | fi | |
6e3d59bc | 4014 | |
cd6ede75 | 4015 | |
4baa087a RM |
4016 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
4017 | do | |
4018 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4019 | set dummy $ac_prog; ac_word=$2 | |
3a12e572 UD |
4020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4baa087a | 4022 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
3a12e572 | 4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
cd6ede75 | 4024 | else |
4baa087a RM |
4025 | if test -n "$MSGFMT"; then |
4026 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
cd6ede75 | 4027 | else |
3a12e572 UD |
4028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4029 | for as_dir in $PATH | |
4030 | do | |
4031 | IFS=$as_save_IFS | |
4032 | test -z "$as_dir" && as_dir=. | |
4033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 4035 | ac_cv_prog_MSGFMT="$ac_prog" |
3a12e572 UD |
4036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4037 | break 2 | |
4038 | fi | |
4039 | done | |
4040 | done | |
4041 | ||
cd6ede75 UD |
4042 | fi |
4043 | fi | |
4baa087a RM |
4044 | MSGFMT=$ac_cv_prog_MSGFMT |
4045 | if test -n "$MSGFMT"; then | |
4046 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
4047 | echo "${ECHO_T}$MSGFMT" >&6 | |
cd6ede75 | 4048 | else |
3a12e572 UD |
4049 | echo "$as_me:$LINENO: result: no" >&5 |
4050 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
4051 | fi |
4052 | ||
4baa087a RM |
4053 | test -n "$MSGFMT" && break |
4054 | done | |
4055 | ||
4056 | if test -z "$MSGFMT"; then | |
4057 | ac_verc_fail=yes | |
4058 | else | |
4059 | # Found it, now check the version. | |
4060 | echo "$as_me:$LINENO: checking version of $MSGFMT" >&5 | |
4061 | echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6 | |
4062 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
4063 | case $ac_prog_version in | |
4064 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4065 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) | |
4066 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4067 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4068 | ||
4069 | esac | |
4070 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
4071 | echo "${ECHO_T}$ac_prog_version" >&6 | |
3a12e572 | 4072 | fi |
4baa087a RM |
4073 | if test $ac_verc_fail = yes; then |
4074 | MSGFMT=: aux_missing="$aux_missing msgfmt" | |
4075 | fi | |
4076 | ||
4077 | for ac_prog in makeinfo | |
4078 | do | |
4079 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4080 | set dummy $ac_prog; ac_word=$2 | |
3a12e572 UD |
4081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4baa087a | 4083 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
3a12e572 | 4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
cd6ede75 | 4085 | else |
4baa087a RM |
4086 | if test -n "$MAKEINFO"; then |
4087 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
cd6ede75 | 4088 | else |
3a12e572 UD |
4089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4090 | for as_dir in $PATH | |
4091 | do | |
4092 | IFS=$as_save_IFS | |
4093 | test -z "$as_dir" && as_dir=. | |
4094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 4096 | ac_cv_prog_MAKEINFO="$ac_prog" |
3a12e572 UD |
4097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4098 | break 2 | |
4099 | fi | |
4100 | done | |
4101 | done | |
4102 | ||
cd6ede75 UD |
4103 | fi |
4104 | fi | |
4baa087a RM |
4105 | MAKEINFO=$ac_cv_prog_MAKEINFO |
4106 | if test -n "$MAKEINFO"; then | |
4107 | echo "$as_me:$LINENO: result: $MAKEINFO" >&5 | |
4108 | echo "${ECHO_T}$MAKEINFO" >&6 | |
cd6ede75 | 4109 | else |
3a12e572 UD |
4110 | echo "$as_me:$LINENO: result: no" >&5 |
4111 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
4112 | fi |
4113 | ||
4baa087a RM |
4114 | test -n "$MAKEINFO" && break |
4115 | done | |
5edb9387 | 4116 | |
4baa087a RM |
4117 | if test -z "$MAKEINFO"; then |
4118 | ac_verc_fail=yes | |
5edb9387 | 4119 | else |
4baa087a RM |
4120 | # Found it, now check the version. |
4121 | echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5 | |
4122 | echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6 | |
4123 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
4124 | case $ac_prog_version in | |
4125 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4126 | 4.*) | |
4127 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4128 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5edb9387 | 4129 | |
4baa087a RM |
4130 | esac |
4131 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
4132 | echo "${ECHO_T}$ac_prog_version" >&6 | |
5edb9387 | 4133 | fi |
4baa087a RM |
4134 | if test $ac_verc_fail = yes; then |
4135 | MAKEINFO=: aux_missing="$aux_missing makeinfo" | |
5edb9387 | 4136 | fi |
cd6ede75 | 4137 | |
4baa087a | 4138 | for ac_prog in sed |
c4d23330 RM |
4139 | do |
4140 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4141 | set dummy $ac_prog; ac_word=$2 | |
4142 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4baa087a | 4144 | if test "${ac_cv_prog_SED+set}" = set; then |
c4d23330 RM |
4145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4146 | else | |
4baa087a RM |
4147 | if test -n "$SED"; then |
4148 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
c4d23330 RM |
4149 | else |
4150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4151 | for as_dir in $PATH | |
4152 | do | |
4153 | IFS=$as_save_IFS | |
4154 | test -z "$as_dir" && as_dir=. | |
4155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 4157 | ac_cv_prog_SED="$ac_prog" |
c4d23330 RM |
4158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4159 | break 2 | |
4160 | fi | |
4161 | done | |
4162 | done | |
4163 | ||
4164 | fi | |
4165 | fi | |
4baa087a RM |
4166 | SED=$ac_cv_prog_SED |
4167 | if test -n "$SED"; then | |
4168 | echo "$as_me:$LINENO: result: $SED" >&5 | |
4169 | echo "${ECHO_T}$SED" >&6 | |
c4d23330 RM |
4170 | else |
4171 | echo "$as_me:$LINENO: result: no" >&5 | |
4172 | echo "${ECHO_T}no" >&6 | |
4173 | fi | |
4174 | ||
4baa087a | 4175 | test -n "$SED" && break |
c4d23330 RM |
4176 | done |
4177 | ||
4baa087a | 4178 | if test -z "$SED"; then |
c4d23330 RM |
4179 | ac_verc_fail=yes |
4180 | else | |
4181 | # Found it, now check the version. | |
4baa087a RM |
4182 | echo "$as_me:$LINENO: checking version of $SED" >&5 |
4183 | echo $ECHO_N "checking version of $SED... $ECHO_C" >&6 | |
4184 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
c4d23330 RM |
4185 | case $ac_prog_version in |
4186 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4baa087a | 4187 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
c4d23330 RM |
4188 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4189 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4190 | ||
4191 | esac | |
4192 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
4193 | echo "${ECHO_T}$ac_prog_version" >&6 | |
4194 | fi | |
4195 | if test $ac_verc_fail = yes; then | |
4baa087a | 4196 | SED=: aux_missing="$aux_missing sed" |
c4d23330 RM |
4197 | fi |
4198 | ||
4baa087a | 4199 | |
476e7d78 | 4200 | for ac_prog in autoconf |
c4d23330 RM |
4201 | do |
4202 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4203 | set dummy $ac_prog; ac_word=$2 | |
4204 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4baa087a | 4206 | if test "${ac_cv_prog_AUTOCONF+set}" = set; then |
c4d23330 RM |
4207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4208 | else | |
4baa087a RM |
4209 | if test -n "$AUTOCONF"; then |
4210 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
c4d23330 RM |
4211 | else |
4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4213 | for as_dir in $PATH | |
4214 | do | |
4215 | IFS=$as_save_IFS | |
4216 | test -z "$as_dir" && as_dir=. | |
4217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4218 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4baa087a | 4219 | ac_cv_prog_AUTOCONF="$ac_prog" |
c4d23330 RM |
4220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4221 | break 2 | |
4222 | fi | |
4223 | done | |
4224 | done | |
4225 | ||
4226 | fi | |
4227 | fi | |
4baa087a RM |
4228 | AUTOCONF=$ac_cv_prog_AUTOCONF |
4229 | if test -n "$AUTOCONF"; then | |
4230 | echo "$as_me:$LINENO: result: $AUTOCONF" >&5 | |
4231 | echo "${ECHO_T}$AUTOCONF" >&6 | |
c4d23330 RM |
4232 | else |
4233 | echo "$as_me:$LINENO: result: no" >&5 | |
4234 | echo "${ECHO_T}no" >&6 | |
4235 | fi | |
4236 | ||
4baa087a | 4237 | test -n "$AUTOCONF" && break |
c4d23330 | 4238 | done |
4baa087a | 4239 | test -n "$AUTOCONF" || AUTOCONF="no" |
c4d23330 | 4240 | |
476e7d78 RM |
4241 | case "x$AUTOCONF" in |
4242 | xno|x|x:) AUTOCONF=no ;; | |
4243 | *) | |
4244 | echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5 | |
4baa087a RM |
4245 | echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6 |
4246 | if test "${libc_cv_autoconf_works+set}" = set; then | |
4247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4d23330 | 4248 | else |
476e7d78 RM |
4249 | if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then |
4250 | libc_cv_autoconf_works=yes | |
4251 | else | |
4252 | libc_cv_autoconf_works=no | |
4253 | fi | |
c4d23330 | 4254 | fi |
4baa087a RM |
4255 | echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5 |
4256 | echo "${ECHO_T}$libc_cv_autoconf_works" >&6 | |
476e7d78 RM |
4257 | test $libc_cv_autoconf_works = yes || AUTOCONF=no |
4258 | ;; | |
4259 | esac | |
4260 | if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then | |
4261 | # If --without-cvs they probably won't change configure.in, so no complaints. | |
4262 | aux_missing="$aux_missing autoconf" | |
c4d23330 RM |
4263 | fi |
4264 | ||
32a448ed RM |
4265 | test -n "$critic_missing" && { { echo "$as_me:$LINENO: error: |
4266 | *** These critical programs are missing or too old:$critic_missing | |
4267 | *** Check the INSTALL file for required versions." >&5 | |
4268 | echo "$as_me: error: | |
4269 | *** These critical programs are missing or too old:$critic_missing | |
4270 | *** Check the INSTALL file for required versions." >&2;} | |
4271 | { (exit 1); exit 1; }; } | |
4272 | ||
3a12e572 | 4273 | test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING: |
9c6fffc0 | 4274 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
ea9f119b | 4275 | *** some features will be disabled. |
3a12e572 UD |
4276 | *** Check the INSTALL file for required versions." >&5 |
4277 | echo "$as_me: WARNING: | |
4278 | *** These auxiliary programs are missing or incompatible versions:$aux_missing | |
4279 | *** some features will be disabled. | |
4280 | *** Check the INSTALL file for required versions." >&2;} | |
ea9f119b | 4281 | |
3c720987 UD |
4282 | # if using special system headers, find out the compiler's sekrit |
4283 | # header directory and add that to the list. NOTE: Only does the right | |
4284 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
4285 | if test -n "$sysheaders"; then | |
4286 | ccheaders=`$CC -print-file-name=include` | |
4287 | SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders" | |
4288 | fi | |
4289 | ||
4290 | ||
f89ac85c | 4291 | # check if ranlib is necessary |
3a12e572 UD |
4292 | echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5 |
4293 | echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6 | |
4294 | if test "${libc_cv_ranlib_necessary+set}" = set; then | |
4295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f38931a9 | 4296 | else |
f89ac85c UD |
4297 | cat > conftest.c <<EOF |
4298 | int a; | |
4299 | char b; | |
4300 | void c(void) {} | |
4301 | EOF | |
3217788f | 4302 | $CC $CFLAGS $CPPFLAGS -c conftest.c |
5bbfc1ea | 4303 | $AR cr conftest.a conftest.o |
f89ac85c UD |
4304 | cp conftest.a conftest2.a |
4305 | $RANLIB conftest.a | |
4306 | if cmp -s conftest.a conftest2.a; then | |
4307 | libc_cv_ranlib_necessary=no | |
f38931a9 | 4308 | else |
f89ac85c | 4309 | libc_cv_ranlib_necessary=yes |
f38931a9 | 4310 | fi |
f89ac85c | 4311 | rm -rf conftest* |
f38931a9 | 4312 | fi |
3a12e572 UD |
4313 | echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5 |
4314 | echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6 | |
f89ac85c UD |
4315 | if test "$libc_cv_ranlib_necessary" = no; then |
4316 | RANLIB=: | |
4317 | fi | |
f38931a9 | 4318 | |
3911660e UD |
4319 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
4320 | # since this would lead to problems installing/building glibc. | |
4321 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
4322 | # is true: | |
4323 | # - one of the terminals (":" and ";") is the first or last sign | |
4324 | # - two terminals occur directly after each other | |
4325 | # - the path contains an element with a dot in it | |
3a12e572 UD |
4326 | echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5 |
4327 | echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6 | |
3911660e UD |
4328 | case ${LD_LIBRARY_PATH} in |
4329 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 4330 | ld_library_path_setting="contains current directory" |
3911660e UD |
4331 | ;; |
4332 | *) | |
4333 | ld_library_path_setting="ok" | |
4334 | ;; | |
4335 | esac | |
3a12e572 UD |
4336 | echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5 |
4337 | echo "${ECHO_T}$ld_library_path_setting" >&6 | |
3911660e | 4338 | if test "$ld_library_path_setting" != "ok"; then |
3a12e572 UD |
4339 | { { echo "$as_me:$LINENO: error: |
4340 | *** LD_LIBRARY_PATH shouldn't contain the current directory when | |
4341 | *** building glibc. Please change the environment variable | |
4342 | *** and run configure again." >&5 | |
4343 | echo "$as_me: error: | |
63bda0c1 UD |
4344 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
4345 | *** building glibc. Please change the environment variable | |
3a12e572 UD |
4346 | *** and run configure again." >&2;} |
4347 | { (exit 1); exit 1; }; } | |
3911660e UD |
4348 | fi |
4349 | ||
3a12e572 UD |
4350 | echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5 |
4351 | echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6 | |
4352 | if test "${libc_cv_gcc_static_libgcc+set}" = set; then | |
4353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
74bd2300 UD |
4354 | else |
4355 | if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then | |
4356 | libc_cv_gcc_static_libgcc= | |
4357 | else | |
4358 | libc_cv_gcc_static_libgcc=-static-libgcc | |
4359 | fi | |
4360 | fi | |
3a12e572 UD |
4361 | echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5 |
4362 | echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6 | |
74bd2300 UD |
4363 | |
4364 | ||
cd6ede75 UD |
4365 | # Extract the first word of "bash", so it can be a program name with args. |
4366 | set dummy bash; ac_word=$2 | |
3a12e572 UD |
4367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4369 | if test "${ac_cv_path_BASH+set}" = set; then | |
4370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 4371 | else |
3a12e572 UD |
4372 | case $BASH in |
4373 | [\\/]* | ?:[\\/]*) | |
cd6ede75 UD |
4374 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. |
4375 | ;; | |
4376 | *) | |
3a12e572 UD |
4377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4378 | for as_dir in $PATH | |
4379 | do | |
4380 | IFS=$as_save_IFS | |
4381 | test -z "$as_dir" && as_dir=. | |
4382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4383 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4384 | ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" | |
4385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4386 | break 2 | |
4387 | fi | |
4388 | done | |
4389 | done | |
4390 | ||
cd6ede75 UD |
4391 | test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" |
4392 | ;; | |
4393 | esac | |
4394 | fi | |
3a12e572 UD |
4395 | BASH=$ac_cv_path_BASH |
4396 | ||
cd6ede75 | 4397 | if test -n "$BASH"; then |
3a12e572 UD |
4398 | echo "$as_me:$LINENO: result: $BASH" >&5 |
4399 | echo "${ECHO_T}$BASH" >&6 | |
cd6ede75 | 4400 | else |
3a12e572 UD |
4401 | echo "$as_me:$LINENO: result: no" >&5 |
4402 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
4403 | fi |
4404 | ||
4405 | if test "$BASH" != no && | |
f43ce637 | 4406 | $BASH -c 'test "$BASH_VERSINFO" \ |
6973fc01 | 4407 | && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then |
cd6ede75 UD |
4408 | libc_cv_have_bash2=yes |
4409 | else | |
4410 | libc_cv_have_bash2=no | |
4411 | fi | |
4412 | ||
4413 | ||
4414 | if test "$BASH" = no; then | |
4415 | # Extract the first word of "ksh", so it can be a program name with args. | |
4416 | set dummy ksh; ac_word=$2 | |
3a12e572 UD |
4417 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4419 | if test "${ac_cv_path_KSH+set}" = set; then | |
4420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 4421 | else |
3a12e572 UD |
4422 | case $KSH in |
4423 | [\\/]* | ?:[\\/]*) | |
cd6ede75 UD |
4424 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
4425 | ;; | |
4426 | *) | |
3a12e572 UD |
4427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4428 | for as_dir in $PATH | |
4429 | do | |
4430 | IFS=$as_save_IFS | |
4431 | test -z "$as_dir" && as_dir=. | |
4432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4433 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4434 | ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext" | |
4435 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4436 | break 2 | |
4437 | fi | |
4438 | done | |
4439 | done | |
4440 | ||
cd6ede75 UD |
4441 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" |
4442 | ;; | |
4443 | esac | |
4444 | fi | |
3a12e572 UD |
4445 | KSH=$ac_cv_path_KSH |
4446 | ||
cd6ede75 | 4447 | if test -n "$KSH"; then |
3a12e572 UD |
4448 | echo "$as_me:$LINENO: result: $KSH" >&5 |
4449 | echo "${ECHO_T}$KSH" >&6 | |
cd6ede75 | 4450 | else |
3a12e572 UD |
4451 | echo "$as_me:$LINENO: result: no" >&5 |
4452 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
4453 | fi |
4454 | ||
4455 | if test "$KSH" = no; then | |
4456 | libc_cv_have_ksh=no | |
4457 | else | |
4458 | libc_cv_have_ksh=yes | |
4459 | fi | |
4460 | else | |
4461 | KSH="$BASH" | |
3a12e572 | 4462 | |
cd6ede75 UD |
4463 | libc_cv_have_ksh=yes |
4464 | fi | |
4465 | ||
4466 | ||
a8c01776 | 4467 | for ac_prog in gawk mawk nawk awk |
a2b08ee5 | 4468 | do |
3a12e572 | 4469 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a2b08ee5 | 4470 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
4471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4473 | if test "${ac_cv_prog_AWK+set}" = set; then | |
4474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aa8ff62 UD |
4475 | else |
4476 | if test -n "$AWK"; then | |
4477 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4478 | else | |
3a12e572 UD |
4479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4480 | for as_dir in $PATH | |
4481 | do | |
4482 | IFS=$as_save_IFS | |
4483 | test -z "$as_dir" && as_dir=. | |
4484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4486 | ac_cv_prog_AWK="$ac_prog" | |
4487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4488 | break 2 | |
4489 | fi | |
4490 | done | |
4491 | done | |
4492 | ||
5aa8ff62 UD |
4493 | fi |
4494 | fi | |
3a12e572 | 4495 | AWK=$ac_cv_prog_AWK |
5aa8ff62 | 4496 | if test -n "$AWK"; then |
3a12e572 UD |
4497 | echo "$as_me:$LINENO: result: $AWK" >&5 |
4498 | echo "${ECHO_T}$AWK" >&6 | |
5aa8ff62 | 4499 | else |
3a12e572 UD |
4500 | echo "$as_me:$LINENO: result: no" >&5 |
4501 | echo "${ECHO_T}no" >&6 | |
5aa8ff62 UD |
4502 | fi |
4503 | ||
3a12e572 | 4504 | test -n "$AWK" && break |
5aa8ff62 UD |
4505 | done |
4506 | ||
c0016081 UD |
4507 | # Extract the first word of "perl", so it can be a program name with args. |
4508 | set dummy perl; ac_word=$2 | |
3a12e572 UD |
4509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4511 | if test "${ac_cv_path_PERL+set}" = set; then | |
4512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a2b08ee5 | 4513 | else |
3a12e572 UD |
4514 | case $PERL in |
4515 | [\\/]* | ?:[\\/]*) | |
a2b08ee5 UD |
4516 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
4517 | ;; | |
4518 | *) | |
3a12e572 UD |
4519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4520 | for as_dir in $PATH | |
4521 | do | |
4522 | IFS=$as_save_IFS | |
4523 | test -z "$as_dir" && as_dir=. | |
4524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4525 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4526 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
4527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4528 | break 2 | |
4529 | fi | |
4530 | done | |
4531 | done | |
4532 | ||
c0016081 | 4533 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
4534 | ;; |
4535 | esac | |
4536 | fi | |
3a12e572 UD |
4537 | PERL=$ac_cv_path_PERL |
4538 | ||
a2b08ee5 | 4539 | if test -n "$PERL"; then |
3a12e572 UD |
4540 | echo "$as_me:$LINENO: result: $PERL" >&5 |
4541 | echo "${ECHO_T}$PERL" >&6 | |
a2b08ee5 | 4542 | else |
3a12e572 UD |
4543 | echo "$as_me:$LINENO: result: no" >&5 |
4544 | echo "${ECHO_T}no" >&6 | |
a2b08ee5 UD |
4545 | fi |
4546 | ||
2fd5d029 RM |
4547 | if test "$PERL" != no && |
4548 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
4549 | PERL=no | |
fc304e02 | 4550 | fi |
c0016081 UD |
4551 | # Extract the first word of "install-info", so it can be a program name with args. |
4552 | set dummy install-info; ac_word=$2 | |
3a12e572 UD |
4553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4555 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0016081 | 4557 | else |
3a12e572 UD |
4558 | case $INSTALL_INFO in |
4559 | [\\/]* | ?:[\\/]*) | |
c0016081 UD |
4560 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
4561 | ;; | |
4562 | *) | |
3a12e572 | 4563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
4564 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
4565 | for as_dir in $as_dummy | |
3a12e572 UD |
4566 | do |
4567 | IFS=$as_save_IFS | |
4568 | test -z "$as_dir" && as_dir=. | |
4569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4571 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4573 | break 2 | |
4574 | fi | |
4575 | done | |
4576 | done | |
4577 | ||
c0016081 UD |
4578 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" |
4579 | ;; | |
4580 | esac | |
4581 | fi | |
3a12e572 UD |
4582 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
4583 | ||
c0016081 | 4584 | if test -n "$INSTALL_INFO"; then |
3a12e572 UD |
4585 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
4586 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
c0016081 | 4587 | else |
3a12e572 UD |
4588 | echo "$as_me:$LINENO: result: no" >&5 |
4589 | echo "${ECHO_T}no" >&6 | |
c0016081 UD |
4590 | fi |
4591 | ||
ae113383 UD |
4592 | # Extract the first word of "bison", so it can be a program name with args. |
4593 | set dummy bison; ac_word=$2 | |
3a12e572 UD |
4594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4596 | if test "${ac_cv_path_BISON+set}" = set; then | |
4597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ae113383 | 4598 | else |
3a12e572 UD |
4599 | case $BISON in |
4600 | [\\/]* | ?:[\\/]*) | |
ae113383 UD |
4601 | ac_cv_path_BISON="$BISON" # Let the user override the test with a path. |
4602 | ;; | |
ae113383 | 4603 | *) |
3a12e572 | 4604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
4605 | as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin" |
4606 | for as_dir in $as_dummy | |
3a12e572 UD |
4607 | do |
4608 | IFS=$as_save_IFS | |
4609 | test -z "$as_dir" && as_dir=. | |
4610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4612 | ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" | |
4613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4614 | break 2 | |
4615 | fi | |
4616 | done | |
4617 | done | |
4618 | ||
ae113383 UD |
4619 | test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no" |
4620 | ;; | |
4621 | esac | |
4622 | fi | |
3a12e572 UD |
4623 | BISON=$ac_cv_path_BISON |
4624 | ||
ae113383 | 4625 | if test -n "$BISON"; then |
3a12e572 UD |
4626 | echo "$as_me:$LINENO: result: $BISON" >&5 |
4627 | echo "${ECHO_T}$BISON" >&6 | |
ae113383 | 4628 | else |
3a12e572 UD |
4629 | echo "$as_me:$LINENO: result: no" >&5 |
4630 | echo "${ECHO_T}no" >&6 | |
ae113383 UD |
4631 | fi |
4632 | ||
4633 | ||
3a12e572 UD |
4634 | echo "$as_me:$LINENO: checking for signed size_t type" >&5 |
4635 | echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6 | |
4636 | if test "${libc_cv_signed_size_t+set}" = set; then | |
4637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4638 | else |
4639 | echo '#include <stddef.h> | |
4640 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
4641 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
4642 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
4643 | libc_cv_signed_size_t=no | |
4644 | else | |
4645 | libc_cv_signed_size_t=yes | |
4646 | fi | |
4647 | rm -f conftest* | |
4648 | fi | |
3a12e572 UD |
4649 | echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5 |
4650 | echo "${ECHO_T}$libc_cv_signed_size_t" >&6 | |
cd6ede75 UD |
4651 | if test $libc_cv_signed_size_t = yes; then |
4652 | cat >> confdefs.h <<\EOF | |
4653 | #undef __SIZE_TYPE__ | |
4654 | #define __SIZE_TYPE__ unsigned | |
4655 | EOF | |
4656 | fi | |
4657 | ||
f4b07664 | 4658 | |
3a12e572 UD |
4659 | echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5 |
4660 | echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6 | |
4661 | if test "${libc_cv_friendly_stddef+set}" = set; then | |
4662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 4663 | else |
f4b07664 | 4664 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 4665 | #line $LINENO "configure" |
2abf9ff1 RM |
4666 | /* confdefs.h. */ |
4667 | _ACEOF | |
4668 | cat confdefs.h >>conftest.$ac_ext | |
4669 | cat >>conftest.$ac_ext <<_ACEOF | |
4670 | /* end confdefs.h. */ | |
cd6ede75 UD |
4671 | #define __need_size_t |
4672 | #define __need_wchar_t | |
4673 | #include <stddef.h> | |
4674 | #define __need_NULL | |
4675 | #include <stddef.h> | |
3a12e572 UD |
4676 | int |
4677 | main () | |
4678 | { | |
cd6ede75 UD |
4679 | size_t size; wchar_t wchar; |
4680 | #ifdef offsetof | |
4681 | #error stddef.h ignored __need_* | |
4682 | #endif | |
4683 | if (&size == NULL || &wchar == NULL) abort (); | |
3a12e572 UD |
4684 | ; |
4685 | return 0; | |
4686 | } | |
4687 | _ACEOF | |
4688 | rm -f conftest.$ac_objext | |
4689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 4690 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
4691 | ac_status=$? |
4692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4693 | (exit $ac_status); } && | |
8f73811b | 4694 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
4695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4696 | (eval $ac_try) 2>&5 | |
4697 | ac_status=$? | |
4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4699 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4700 | libc_cv_friendly_stddef=yes |
4701 | else | |
3a12e572 | 4702 | echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
4703 | sed 's/^/| /' conftest.$ac_ext >&5 |
4704 | ||
3a12e572 | 4705 | libc_cv_friendly_stddef=no |
cd6ede75 | 4706 | fi |
8f73811b | 4707 | rm -f conftest.$ac_objext conftest.$ac_ext |
cd6ede75 | 4708 | fi |
3a12e572 UD |
4709 | echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5 |
4710 | echo "${ECHO_T}$libc_cv_friendly_stddef" >&6 | |
cd6ede75 UD |
4711 | if test $libc_cv_friendly_stddef = yes; then |
4712 | config_vars="$config_vars | |
4713 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
4714 | fi | |
4715 | ||
3a12e572 UD |
4716 | echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5 |
4717 | echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6 | |
4718 | if test "${libc_cv_need_minus_P+set}" = set; then | |
4719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4720 | else |
4721 | cat > conftest.S <<EOF | |
4722 | #include "confdefs.h" | |
4723 | /* Nothing whatsoever. */ | |
4724 | EOF | |
3217788f | 4725 | if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5' |
61cea1c3 RM |
4726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4727 | (eval $ac_try) 2>&5 | |
4728 | ac_status=$? | |
4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4730 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4731 | libc_cv_need_minus_P=no |
4732 | else | |
4733 | libc_cv_need_minus_P=yes | |
4734 | fi | |
4735 | rm -f conftest* | |
4736 | fi | |
3a12e572 UD |
4737 | echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5 |
4738 | echo "${ECHO_T}$libc_cv_need_minus_P" >&6 | |
cd6ede75 UD |
4739 | if test $libc_cv_need_minus_P = yes; then |
4740 | config_vars="$config_vars | |
4741 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
4742 | fi | |
4743 | ||
3a12e572 UD |
4744 | echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5 |
4745 | echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6 | |
4746 | if test "${libc_cv_dot_text+set}" = set; then | |
4747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2293395f UD |
4748 | else |
4749 | cat > conftest.s <<EOF | |
4750 | .text | |
4751 | EOF | |
4752 | libc_cv_dot_text= | |
3217788f | 4753 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
4754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4755 | (eval $ac_try) 2>&5 | |
4756 | ac_status=$? | |
4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4758 | (exit $ac_status); }; }; then | |
2293395f UD |
4759 | libc_cv_dot_text=.text |
4760 | fi | |
4761 | rm -f conftest* | |
4762 | fi | |
4763 | ||
4764 | if test -z "$libc_cv_dot_text"; then | |
3a12e572 UD |
4765 | echo "$as_me:$LINENO: result: no" >&5 |
4766 | echo "${ECHO_T}no" >&6 | |
2293395f | 4767 | else |
3a12e572 UD |
4768 | echo "$as_me:$LINENO: result: yes" >&5 |
4769 | echo "${ECHO_T}yes" >&6 | |
2293395f UD |
4770 | fi |
4771 | ||
3a12e572 UD |
4772 | echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5 |
4773 | echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6 | |
4774 | if test "${libc_cv_asm_global_directive+set}" = set; then | |
4775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4776 | else |
4777 | libc_cv_asm_global_directive=UNKNOWN | |
908c3d5b | 4778 | for ac_globl in .globl .global .EXPORT; do |
cd6ede75 | 4779 | cat > conftest.s <<EOF |
2293395f | 4780 | ${libc_cv_dot_text} |
908c3d5b | 4781 | ${ac_globl} foo |
cd6ede75 UD |
4782 | foo: |
4783 | EOF | |
3217788f | 4784 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
4785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4786 | (eval $ac_try) 2>&5 | |
4787 | ac_status=$? | |
4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4789 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4790 | libc_cv_asm_global_directive=${ac_globl} |
4791 | fi | |
4792 | rm -f conftest* | |
4793 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
4794 | done | |
4795 | fi | |
3a12e572 UD |
4796 | echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5 |
4797 | echo "${ECHO_T}$libc_cv_asm_global_directive" >&6 | |
cd6ede75 | 4798 | if test $libc_cv_asm_global_directive = UNKNOWN; then |
3a12e572 UD |
4799 | { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5 |
4800 | echo "$as_me: error: cannot determine asm global directive" >&2;} | |
4801 | { (exit 1); exit 1; }; } | |
cd6ede75 | 4802 | else |
3a12e572 | 4803 | cat >>confdefs.h <<_ACEOF |
cd6ede75 | 4804 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} |
3a12e572 | 4805 | _ACEOF |
cd6ede75 UD |
4806 | |
4807 | fi | |
4808 | ||
3a12e572 UD |
4809 | echo "$as_me:$LINENO: checking for .set assembler directive" >&5 |
4810 | echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6 | |
4811 | if test "${libc_cv_asm_set_directive+set}" = set; then | |
4812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4813 | else |
4814 | cat > conftest.s <<EOF | |
2293395f | 4815 | ${libc_cv_dot_text} |
cd6ede75 UD |
4816 | foo: |
4817 | .set glibc_conftest_frobozz,foo | |
4818 | $libc_cv_asm_global_directive glibc_conftest_frobozz | |
4819 | EOF | |
4820 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
4821 | # (but it doesn't work), so we must do a linking check to be sure. | |
4822 | cat > conftest1.c <<\EOF | |
4823 | extern int glibc_conftest_frobozz; | |
640f0119 | 4824 | void _start() { glibc_conftest_frobozz = 1; } |
cd6ede75 UD |
4825 | EOF |
4826 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
640f0119 | 4827 | -nostartfiles -nostdlib \ |
cd6ede75 UD |
4828 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then |
4829 | libc_cv_asm_set_directive=yes | |
4830 | else | |
4831 | libc_cv_asm_set_directive=no | |
4832 | fi | |
4833 | rm -f conftest* | |
4834 | fi | |
3a12e572 UD |
4835 | echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5 |
4836 | echo "${ECHO_T}$libc_cv_asm_set_directive" >&6 | |
cd6ede75 | 4837 | if test $libc_cv_asm_set_directive = yes; then |
3a12e572 | 4838 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 4839 | #define HAVE_ASM_SET_DIRECTIVE 1 |
3a12e572 | 4840 | _ACEOF |
cd6ede75 UD |
4841 | |
4842 | fi | |
4843 | ||
3a12e572 UD |
4844 | echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5 |
4845 | echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6 | |
4846 | if test "${libc_cv_asm_type_prefix+set}" = set; then | |
4847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b88ac073 RM |
4848 | else |
4849 | libc_cv_asm_type_prefix=no | |
4850 | for ac_try_prefix in '@' '%' '#'; do | |
4851 | cat > conftest.s <<EOF | |
4852 | ${libc_cv_dot_text} | |
4853 | ${libc_cv_asm_global_directive} foo | |
4854 | .type foo, ${ac_try_prefix}object | |
4855 | .size foo, 1 | |
4856 | foo: | |
4857 | .byte 1 | |
4858 | EOF | |
3217788f | 4859 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
4860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4861 | (eval $ac_try) 2>&5 | |
4862 | ac_status=$? | |
4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4864 | (exit $ac_status); }; }; then | |
b88ac073 RM |
4865 | libc_cv_asm_type_prefix=${ac_try_prefix} |
4866 | fi | |
4867 | rm -f conftest* | |
4868 | test "x$libc_cv_asm_type_prefix" != xno && break | |
4869 | done | |
4870 | fi | |
3a12e572 UD |
4871 | echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5 |
4872 | echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6 | |
b88ac073 | 4873 | if test "x$libc_cv_asm_type_prefix" != xno; then |
3a12e572 | 4874 | cat >>confdefs.h <<_ACEOF |
b88ac073 | 4875 | #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix} |
3a12e572 | 4876 | _ACEOF |
b88ac073 RM |
4877 | |
4878 | fi | |
4879 | ||
2aa15430 | 4880 | # The Aix ld uses global .symbol_names instead of symbol_names. |
a8a20be0 UD |
4881 | # Unfortunately also used in the PPC64 ELF ABI. |
4882 | case "${os}${machine}" in | |
4883 | aix4.3* | linux*powerpc/powerpc64*) | |
3a12e572 | 4884 | cat >>confdefs.h <<\_ACEOF |
2aa15430 | 4885 | #define HAVE_ASM_GLOBAL_DOT_NAME 1 |
3a12e572 | 4886 | _ACEOF |
2aa15430 UD |
4887 | |
4888 | esac | |
4889 | ||
3a12e572 UD |
4890 | echo "$as_me:$LINENO: checking for .symver assembler directive" >&5 |
4891 | echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6 | |
4892 | if test "${libc_cv_asm_symver_directive+set}" = set; then | |
4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4894 | else |
4895 | cat > conftest.s <<EOF | |
2293395f | 4896 | ${libc_cv_dot_text} |
cd6ede75 UD |
4897 | _sym: |
4898 | .symver _sym,sym@VERS | |
4899 | EOF | |
3217788f | 4900 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then |
cd6ede75 UD |
4901 | libc_cv_asm_symver_directive=yes |
4902 | else | |
4903 | libc_cv_asm_symver_directive=no | |
4904 | fi | |
4905 | rm -f conftest* | |
4906 | fi | |
3a12e572 UD |
4907 | echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5 |
4908 | echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6 | |
4909 | echo "$as_me:$LINENO: checking for ld --version-script" >&5 | |
4910 | echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6 | |
4911 | if test "${libc_cv_ld_version_script_option+set}" = set; then | |
4912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4913 | else |
4914 | if test $libc_cv_asm_symver_directive = yes; then | |
4915 | cat > conftest.s <<EOF | |
2293395f | 4916 | ${libc_cv_dot_text} |
cd6ede75 UD |
4917 | _sym: |
4918 | .symver _sym,sym@VERS | |
4919 | EOF | |
4920 | cat > conftest.map <<EOF | |
f43ce637 | 4921 | VERS_1 { |
cd6ede75 UD |
4922 | global: sym; |
4923 | }; | |
f43ce637 UD |
4924 | |
4925 | VERS_2 { | |
4926 | global: sym; | |
4927 | } VERS_1; | |
cd6ede75 | 4928 | EOF |
3217788f RM |
4929 | if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then |
4930 | if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared | |
4931 | -o conftest.so conftest.o | |
4932 | -nostartfiles -nostdlib | |
4933 | -Wl,--version-script,conftest.map | |
3a12e572 UD |
4934 | 1>&5' |
4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4936 | (eval $ac_try) 2>&5 | |
4937 | ac_status=$? | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4939 | (exit $ac_status); }; }; | |
cd6ede75 UD |
4940 | then |
4941 | libc_cv_ld_version_script_option=yes | |
4942 | else | |
4943 | libc_cv_ld_version_script_option=no | |
4944 | fi | |
4945 | else | |
4946 | libc_cv_ld_version_script_option=no | |
4947 | fi | |
4948 | else | |
4949 | libc_cv_ld_version_script_option=no | |
4950 | fi | |
4951 | rm -f conftest* | |
4952 | fi | |
3a12e572 UD |
4953 | echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5 |
4954 | echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6 | |
7499a22a RM |
4955 | if test $shared != no && |
4956 | test $libc_cv_asm_symver_directive = yes && | |
650425ce UD |
4957 | test $libc_cv_ld_version_script_option = yes && |
4958 | test $enable_versioning = yes; then | |
cd6ede75 | 4959 | VERSIONING=yes |
3a12e572 | 4960 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 4961 | #define DO_VERSIONING 1 |
3a12e572 | 4962 | _ACEOF |
cd6ede75 UD |
4963 | |
4964 | else | |
4965 | VERSIONING=no | |
4966 | fi | |
4967 | ||
4968 | ||
22af13de | 4969 | if test $elf = yes && test $shared != no && test $VERSIONING = no; then |
f43ce637 | 4970 | echo "\ |
f4017d20 | 4971 | *** WARNING: You should not compile GNU libc without versioning. Not using |
f43ce637 UD |
4972 | *** versioning will introduce incompatibilities so that old binaries |
4973 | *** will not run anymore. | |
08a0d60a | 4974 | *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)." |
f43ce637 | 4975 | fi |
cd6ede75 | 4976 | if test $elf = yes; then |
3a12e572 UD |
4977 | echo "$as_me:$LINENO: checking for .previous assembler directive" >&5 |
4978 | echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6 | |
4979 | if test "${libc_cv_asm_previous_directive+set}" = set; then | |
4980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4981 | else |
4982 | cat > conftest.s <<EOF | |
4983 | .section foo_section | |
4984 | .previous | |
4985 | EOF | |
3217788f | 4986 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
3a12e572 UD |
4987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4988 | (eval $ac_try) 2>&5 | |
4989 | ac_status=$? | |
4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4991 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4992 | libc_cv_asm_previous_directive=yes |
4993 | else | |
4994 | libc_cv_asm_previous_directive=no | |
4995 | fi | |
4996 | rm -f conftest* | |
4997 | fi | |
3a12e572 UD |
4998 | echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5 |
4999 | echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6 | |
cd6ede75 | 5000 | if test $libc_cv_asm_previous_directive = yes; then |
3a12e572 | 5001 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5002 | #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 |
3a12e572 | 5003 | _ACEOF |
cd6ede75 UD |
5004 | |
5005 | else | |
3a12e572 UD |
5006 | echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5 |
5007 | echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6 | |
5008 | if test "${libc_cv_asm_popsection_directive+set}" = set; then | |
5009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
5010 | else |
5011 | cat > conftest.s <<EOF | |
5012 | .pushsection foo_section | |
5013 | .popsection | |
5014 | EOF | |
3217788f | 5015 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
3a12e572 UD |
5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5017 | (eval $ac_try) 2>&5 | |
5018 | ac_status=$? | |
5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5020 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
5021 | libc_cv_asm_popsection_directive=yes |
5022 | else | |
5023 | libc_cv_asm_popsection_directive=no | |
5024 | fi | |
5025 | rm -f conftest* | |
5026 | fi | |
3a12e572 UD |
5027 | echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5 |
5028 | echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6 | |
cd6ede75 | 5029 | if test $libc_cv_asm_popsection_directive = yes; then |
3a12e572 | 5030 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5031 | #define HAVE_ASM_POPSECTION_DIRECTIVE 1 |
3a12e572 | 5032 | _ACEOF |
cd6ede75 UD |
5033 | |
5034 | fi | |
5035 | fi | |
3a12e572 UD |
5036 | echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5 |
5037 | echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6 | |
5038 | if test "${libc_cv_asm_protected_directive+set}" = set; then | |
5039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2d499f55 UD |
5040 | else |
5041 | cat > conftest.s <<EOF | |
5042 | .protected foo | |
5043 | foo: | |
5044 | .hidden bar | |
5045 | bar: | |
5046 | EOF | |
3217788f | 5047 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
3a12e572 UD |
5048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5049 | (eval $ac_try) 2>&5 | |
5050 | ac_status=$? | |
5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5052 | (exit $ac_status); }; }; then | |
2d499f55 UD |
5053 | libc_cv_asm_protected_directive=yes |
5054 | else | |
5055 | libc_cv_asm_protected_directive=no | |
5056 | fi | |
5057 | rm -f conftest* | |
5058 | fi | |
3a12e572 UD |
5059 | echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5 |
5060 | echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6 | |
2d499f55 | 5061 | |
3a12e572 | 5062 | cat >>confdefs.h <<\_ACEOF |
5688da55 | 5063 | #define HAVE_PROTECTED 1 |
3a12e572 | 5064 | _ACEOF |
5688da55 | 5065 | |
3a12e572 | 5066 | cat >>confdefs.h <<\_ACEOF |
9bd64602 | 5067 | #define HAVE_HIDDEN 1 |
3a12e572 | 5068 | _ACEOF |
9bd64602 | 5069 | |
2f54c82d | 5070 | |
0d01dace | 5071 | if test $libc_cv_asm_protected_directive = yes; then |
3a12e572 UD |
5072 | echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5 |
5073 | echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6 | |
5074 | if test "${libc_cv_visibility_attribute+set}" = set; then | |
5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d01dace UD |
5076 | else |
5077 | cat > conftest.c <<EOF | |
5078 | int foo __attribute__ ((visibility ("hidden"))) = 1; | |
5079 | int bar __attribute__ ((visibility ("protected"))) = 1; | |
5080 | EOF | |
5081 | libc_cv_visibility_attribute=no | |
61cea1c3 RM |
5082 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' |
5083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5084 | (eval $ac_try) 2>&5 | |
5085 | ac_status=$? | |
5086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5087 | (exit $ac_status); }; }; then | |
0d01dace UD |
5088 | if grep '\.hidden.*foo' conftest.s >/dev/null; then |
5089 | if grep '\.protected.*bar' conftest.s >/dev/null; then | |
5090 | libc_cv_visibility_attribute=yes | |
5091 | fi | |
5092 | fi | |
5093 | fi | |
5094 | rm -f conftest.cs | |
0d01dace | 5095 | |
3a12e572 UD |
5096 | fi |
5097 | echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5 | |
5098 | echo "${ECHO_T}$libc_cv_visibility_attribute" >&6 | |
0d01dace | 5099 | if test $libc_cv_visibility_attribute = yes; then |
3a12e572 | 5100 | cat >>confdefs.h <<\_ACEOF |
0d01dace | 5101 | #define HAVE_VISIBILITY_ATTRIBUTE 1 |
3a12e572 | 5102 | _ACEOF |
0d01dace UD |
5103 | |
5104 | fi | |
5105 | fi | |
5106 | ||
37ba7d66 | 5107 | if test $libc_cv_visibility_attribute = yes; then |
3a12e572 UD |
5108 | echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5 |
5109 | echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6 | |
5110 | if test "${libc_cv_broken_visibility_attribute+set}" = set; then | |
5111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37ba7d66 UD |
5112 | else |
5113 | cat > conftest.c <<EOF | |
5114 | int foo (int x); | |
5115 | int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden"))); | |
5116 | int bar (int x) { return x; } | |
5117 | EOF | |
5118 | libc_cv_broken_visibility_attribute=yes | |
61cea1c3 RM |
5119 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5' |
5120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5121 | (eval $ac_try) 2>&5 | |
5122 | ac_status=$? | |
5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5124 | (exit $ac_status); }; }; then | |
37ba7d66 UD |
5125 | if grep '\.hidden[ _]foo' conftest.s >/dev/null; then |
5126 | libc_cv_broken_visibility_attribute=no | |
5127 | fi | |
5128 | fi | |
5129 | rm -f conftest.c conftest.s | |
37ba7d66 | 5130 | |
3a12e572 UD |
5131 | fi |
5132 | echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5 | |
5133 | echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6 | |
37ba7d66 | 5134 | if test $libc_cv_broken_visibility_attribute = yes; then |
3a12e572 | 5135 | cat >>confdefs.h <<\_ACEOF |
37ba7d66 | 5136 | #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1 |
3a12e572 | 5137 | _ACEOF |
37ba7d66 UD |
5138 | |
5139 | fi | |
5140 | fi | |
5141 | ||
3a12e572 UD |
5142 | echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5 |
5143 | echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6 | |
5144 | if test "${libc_cv_broken_alias_attribute+set}" = set; then | |
5145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37ba7d66 UD |
5146 | else |
5147 | cat > conftest.c <<EOF | |
5148 | extern int foo (int x) __asm ("xyzzy"); | |
5149 | int bar (int x) { return x; } | |
48b8e846 UD |
5150 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); |
5151 | extern int dfoo; | |
5152 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
5153 | int dfoo = 1; | |
37ba7d66 UD |
5154 | EOF |
5155 | libc_cv_broken_alias_attribute=yes | |
61cea1c3 RM |
5156 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' |
5157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5158 | (eval $ac_try) 2>&5 | |
5159 | ac_status=$? | |
5160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5161 | (exit $ac_status); }; }; then | |
48b8e846 UD |
5162 | if grep 'xyzzy' conftest.s >/dev/null && |
5163 | grep 'abccb' conftest.s >/dev/null; then | |
37ba7d66 UD |
5164 | libc_cv_broken_alias_attribute=no |
5165 | fi | |
5166 | fi | |
5167 | rm -f conftest.c conftest.s | |
37ba7d66 | 5168 | |
3a12e572 UD |
5169 | fi |
5170 | echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5 | |
5171 | echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6 | |
37ba7d66 | 5172 | if test $libc_cv_broken_alias_attribute = yes; then |
3a12e572 | 5173 | cat >>confdefs.h <<\_ACEOF |
37ba7d66 | 5174 | #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1 |
3a12e572 | 5175 | _ACEOF |
37ba7d66 UD |
5176 | |
5177 | fi | |
5178 | ||
0d01dace | 5179 | if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then |
3a12e572 UD |
5180 | echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5 |
5181 | echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6 | |
5182 | if test "${libc_cv_have_sdata_section+set}" = set; then | |
5183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d01dace UD |
5184 | else |
5185 | echo "int i;" > conftest.c | |
5186 | libc_cv_have_sdata_section=no | |
3217788f | 5187 | if ${CC-cc} $LDFLAGS -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ |
0d01dace UD |
5188 | | grep '\.sdata' >/dev/null; then |
5189 | libc_cv_have_sdata_section=yes | |
5190 | fi | |
5191 | rm -f conftest.c conftest.so | |
0d01dace | 5192 | |
3a12e572 UD |
5193 | fi |
5194 | echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5 | |
5195 | echo "${ECHO_T}$libc_cv_have_sdata_section" >&6 | |
0d01dace | 5196 | if test $libc_cv_have_sdata_section = yes; then |
3a12e572 | 5197 | cat >>confdefs.h <<\_ACEOF |
0d01dace | 5198 | #define HAVE_SDATA_SECTION 1 |
3a12e572 | 5199 | _ACEOF |
0d01dace UD |
5200 | |
5201 | fi | |
5202 | fi | |
5203 | ||
3a12e572 UD |
5204 | echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5 |
5205 | echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6 | |
5206 | if test "${libc_cv_initfinit_array+set}" = set; then | |
5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2c617417 UD |
5208 | else |
5209 | cat > conftest.c <<EOF | |
5210 | int _start (void) { return 0; } | |
5211 | int __start (void) { return 0; } | |
5212 | int foo (void) { return 1; } | |
5213 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
5214 | EOF | |
3217788f | 5215 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c |
3a12e572 UD |
5216 | -static -nostartfiles -nostdlib 1>&5' |
5217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5218 | (eval $ac_try) 2>&5 | |
5219 | ac_status=$? | |
5220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5221 | (exit $ac_status); }; } | |
2c617417 UD |
5222 | then |
5223 | if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then | |
5224 | libc_cv_initfinit_array=yes | |
5225 | else | |
5226 | libc_cv_initfinit_array=no | |
5227 | fi | |
5228 | else | |
5229 | libc_cv_initfinit_array=no | |
5230 | fi | |
5231 | rm -f conftest* | |
5232 | fi | |
3a12e572 UD |
5233 | echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5 |
5234 | echo "${ECHO_T}$libc_cv_initfinit_array" >&6 | |
2c617417 | 5235 | |
2c617417 | 5236 | if test $libc_cv_initfinit_array = yes; then |
3a12e572 | 5237 | cat >>confdefs.h <<\_ACEOF |
2c617417 | 5238 | #define HAVE_INITFINI_ARRAY 1 |
3a12e572 | 5239 | _ACEOF |
2c617417 UD |
5240 | |
5241 | fi | |
5242 | ||
c776b3d7 UD |
5243 | echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5 |
5244 | echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6 | |
5245 | if test "${libc_cv_cc_with_libunwind+set}" = set; then | |
5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5247 | else | |
5248 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 5249 | #line $LINENO "configure" |
c776b3d7 UD |
5250 | /* confdefs.h. */ |
5251 | _ACEOF | |
5252 | cat confdefs.h >>conftest.$ac_ext | |
5253 | cat >>conftest.$ac_ext <<_ACEOF | |
5254 | /* end confdefs.h. */ | |
5255 | #include <libunwind.h> | |
5256 | int | |
5257 | main () | |
5258 | { | |
5259 | ||
5260 | unw_context_t uc; | |
5261 | unw_cursor_t c; | |
5262 | unw_getcontext (&uc); | |
5263 | unw_init_local (&c, &uc) | |
5264 | ; | |
5265 | return 0; | |
5266 | } | |
5267 | _ACEOF | |
5268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8f73811b | 5270 | (eval $ac_link) 2>&5 |
c776b3d7 | 5271 | ac_status=$? |
c776b3d7 UD |
5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5273 | (exit $ac_status); } && | |
8f73811b | 5274 | { ac_try='test -s conftest$ac_exeext' |
c776b3d7 UD |
5275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5276 | (eval $ac_try) 2>&5 | |
5277 | ac_status=$? | |
5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5279 | (exit $ac_status); }; }; then | |
5280 | libc_cv_cc_with_libunwind=yes | |
5281 | else | |
5282 | echo "$as_me: failed program was:" >&5 | |
5283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5284 | ||
5285 | libc_cv_cc_with_libunwind=no | |
5286 | fi | |
8f73811b | 5287 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
c776b3d7 UD |
5288 | fi |
5289 | echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5 | |
5290 | echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6 | |
5291 | ||
5292 | if test $libc_cv_cc_with_libunwind = yes; then | |
5293 | cat >>confdefs.h <<\_ACEOF | |
5294 | #define HAVE_CC_WITH_LIBUNWIND 1 | |
5295 | _ACEOF | |
5296 | ||
5297 | fi | |
5298 | ||
3a12e572 UD |
5299 | echo "$as_me:$LINENO: checking for -z nodelete option" >&5 |
5300 | echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6 | |
5301 | if test "${libc_cv_z_nodelete+set}" = set; then | |
5302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f54c82d UD |
5303 | else |
5304 | cat > conftest.c <<EOF | |
5305 | int _start (void) { return 42; } | |
5306 | EOF | |
3217788f RM |
5307 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
5308 | -shared -o conftest.so conftest.c | |
35cd3c97 | 5309 | -nostartfiles -nostdlib |
3a12e572 UD |
5310 | -Wl,--enable-new-dtags,-z,nodelete 1>&5' |
5311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5312 | (eval $ac_try) 2>&5 | |
5313 | ac_status=$? | |
5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5315 | (exit $ac_status); }; } | |
2f54c82d UD |
5316 | then |
5317 | libc_cv_z_nodelete=yes | |
5318 | else | |
5319 | libc_cv_z_nodelete=no | |
5320 | fi | |
5321 | rm -f conftest* | |
5322 | fi | |
3a12e572 UD |
5323 | echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5 |
5324 | echo "${ECHO_T}$libc_cv_z_nodelete" >&6 | |
2f54c82d | 5325 | |
2f54c82d | 5326 | |
3a12e572 UD |
5327 | echo "$as_me:$LINENO: checking for -z nodlopen option" >&5 |
5328 | echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6 | |
5329 | if test "${libc_cv_z_nodlopen+set}" = set; then | |
5330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f54c82d UD |
5331 | else |
5332 | cat > conftest.c <<EOF | |
5333 | int _start (void) { return 42; } | |
5334 | EOF | |
3217788f RM |
5335 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
5336 | -shared -o conftest.so conftest.c | |
35cd3c97 | 5337 | -nostartfiles -nostdlib |
3a12e572 UD |
5338 | -Wl,--enable-new-dtags,-z,nodlopen 1>&5' |
5339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5340 | (eval $ac_try) 2>&5 | |
5341 | ac_status=$? | |
5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5343 | (exit $ac_status); }; } | |
2f54c82d UD |
5344 | then |
5345 | libc_cv_z_nodlopen=yes | |
5346 | else | |
5347 | libc_cv_z_nodlopen=no | |
5348 | fi | |
5349 | rm -f conftest* | |
5350 | fi | |
3a12e572 UD |
5351 | echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5 |
5352 | echo "${ECHO_T}$libc_cv_z_nodlopen" >&6 | |
2f54c82d | 5353 | |
5d916713 | 5354 | |
3a12e572 UD |
5355 | echo "$as_me:$LINENO: checking for -z initfirst option" >&5 |
5356 | echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6 | |
5357 | if test "${libc_cv_z_initfirst+set}" = set; then | |
5358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d916713 UD |
5359 | else |
5360 | cat > conftest.c <<EOF | |
5361 | int _start (void) { return 42; } | |
5362 | EOF | |
3217788f RM |
5363 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
5364 | -shared -o conftest.so conftest.c | |
35cd3c97 | 5365 | -nostartfiles -nostdlib |
3a12e572 UD |
5366 | -Wl,--enable-new-dtags,-z,initfirst 1>&5' |
5367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5368 | (eval $ac_try) 2>&5 | |
5369 | ac_status=$? | |
5370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5371 | (exit $ac_status); }; } | |
5d916713 UD |
5372 | then |
5373 | libc_cv_z_initfirst=yes | |
5374 | else | |
5375 | libc_cv_z_initfirst=no | |
5376 | fi | |
5377 | rm -f conftest* | |
5378 | fi | |
3a12e572 UD |
5379 | echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5 |
5380 | echo "${ECHO_T}$libc_cv_z_initfirst" >&6 | |
5d916713 | 5381 | |
639c3248 | 5382 | |
ed20b3d9 UD |
5383 | echo "$as_me:$LINENO: checking for -z relro option" >&5 |
5384 | echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6 | |
5385 | if test "${libc_cv_z_relro+set}" = set; then | |
5386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5387 | else | |
5388 | if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5' | |
5389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5390 | (eval $ac_try) 2>&5 | |
5391 | ac_status=$? | |
5392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5393 | (exit $ac_status); }; } | |
5394 | then | |
5395 | libc_cv_z_relro=yes | |
5396 | else | |
5397 | libc_cv_z_relro=no | |
5398 | fi | |
5399 | fi | |
5400 | echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5 | |
5401 | echo "${ECHO_T}$libc_cv_z_relro" >&6 | |
5402 | ||
392a6b52 UD |
5403 | if test $libc_cv_z_relro = yes; then |
5404 | cat >>confdefs.h <<\_ACEOF | |
5405 | #define HAVE_Z_RELRO 1 | |
5406 | _ACEOF | |
5407 | ||
5408 | fi | |
ed20b3d9 | 5409 | |
3a12e572 UD |
5410 | echo "$as_me:$LINENO: checking for -Bgroup option" >&5 |
5411 | echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6 | |
5412 | if test "${libc_cv_Bgroup+set}" = set; then | |
5413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
639c3248 UD |
5414 | else |
5415 | cat > conftest.c <<EOF | |
5416 | int _start (void) { return 42; } | |
5417 | EOF | |
3217788f RM |
5418 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
5419 | -shared -o conftest.so conftest.c | |
5420 | -Wl,-Bgroup -nostdlib 1>&5' | |
3a12e572 UD |
5421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5422 | (eval $ac_try) 2>&5 | |
5423 | ac_status=$? | |
5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5425 | (exit $ac_status); }; } | |
639c3248 UD |
5426 | then |
5427 | libc_cv_Bgroup=yes | |
5428 | else | |
5429 | libc_cv_Bgroup=no | |
5430 | fi | |
5431 | rm -f conftest* | |
5432 | fi | |
3a12e572 UD |
5433 | echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5 |
5434 | echo "${ECHO_T}$libc_cv_Bgroup" >&6 | |
639c3248 | 5435 | |
a711b01d | 5436 | |
66b3d198 UD |
5437 | echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5 |
5438 | echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6 | |
5439 | if test "${libc_cv_libgcc_s_suffix+set}" = set; then | |
5440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5441 | else | |
5442 | cat > conftest.c <<EOF | |
5443 | int main (void) { return 0; } | |
5444 | EOF | |
5445 | libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
5446 | -shared -shared-libgcc -o conftest.so \ | |
5447 | conftest.c -v 2>&1 >/dev/null \ | |
5448 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
5449 | rm -f conftest* | |
5450 | fi | |
5451 | echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5 | |
5452 | echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6 | |
5453 | ||
5454 | ||
78ec7d8c UD |
5455 | echo "$as_me:$LINENO: checking for --as-needed option" >&5 |
5456 | echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6 | |
5457 | if test "${libc_cv_as_needed+set}" = set; then | |
5458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5459 | else | |
5460 | cat > conftest.c <<EOF | |
5461 | int main (void) { return 0; } | |
5462 | EOF | |
5463 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
66b3d198 UD |
5464 | -shared -o conftest.so conftest.c |
5465 | -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed | |
5466 | -nostdlib 1>&5' | |
78ec7d8c UD |
5467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5468 | (eval $ac_try) 2>&5 | |
5469 | ac_status=$? | |
5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5471 | (exit $ac_status); }; } | |
5472 | then | |
5473 | libc_cv_as_needed=yes | |
5474 | else | |
5475 | libc_cv_as_needed=no | |
5476 | fi | |
5477 | rm -f conftest* | |
5478 | fi | |
5479 | echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5 | |
5480 | echo "${ECHO_T}$libc_cv_as_needed" >&6 | |
5481 | ||
5482 | ||
35915ec8 UD |
5483 | ASFLAGS_config= |
5484 | echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5 | |
5485 | echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6 | |
5486 | if test "${libc_cv_as_noexecstack+set}" = set; then | |
5487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5488 | else | |
5489 | cat > conftest.c <<EOF | |
5490 | void foo (void) { } | |
5491 | EOF | |
5492 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS | |
5493 | -S -o conftest.s conftest.c 1>&5' | |
5494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5495 | (eval $ac_try) 2>&5 | |
5496 | ac_status=$? | |
5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5498 | (exit $ac_status); }; } \ | |
5499 | && grep -q .note.GNU-stack conftest.s \ | |
5500 | && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack | |
5501 | -c -o conftest.o conftest.s 1>&5' | |
5502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5503 | (eval $ac_try) 2>&5 | |
5504 | ac_status=$? | |
5505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5506 | (exit $ac_status); }; } | |
5507 | then | |
5508 | libc_cv_as_noexecstack=yes | |
5509 | else | |
5510 | libc_cv_as_noexecstack=no | |
5511 | fi | |
5512 | rm -f conftest* | |
5513 | fi | |
5514 | echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5 | |
5515 | echo "${ECHO_T}$libc_cv_as_noexecstack" >&6 | |
5516 | if test $libc_cv_as_noexecstack = yes; then | |
5517 | ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack" | |
5518 | fi | |
5519 | ||
2abf9ff1 | 5520 | |
3a12e572 UD |
5521 | echo "$as_me:$LINENO: checking for -z combreloc" >&5 |
5522 | echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6 | |
5523 | if test "${libc_cv_z_combreloc+set}" = set; then | |
5524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a711b01d UD |
5525 | else |
5526 | cat > conftest.c <<EOF | |
d555194c UD |
5527 | extern int bar (int); |
5528 | extern int mumble; | |
5529 | int foo (void) { return bar (mumble); } | |
a711b01d | 5530 | EOF |
3217788f RM |
5531 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
5532 | -shared -o conftest.so conftest.c | |
35cd3c97 | 5533 | -nostdlib -nostartfiles |
3a12e572 UD |
5534 | -Wl,-z,combreloc 1>&5' |
5535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5536 | (eval $ac_try) 2>&5 | |
5537 | ac_status=$? | |
5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5539 | (exit $ac_status); }; } | |
a711b01d | 5540 | then |
fdde8349 UD |
5541 | if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then |
5542 | libc_cv_z_combreloc=yes | |
5543 | else | |
5544 | libc_cv_z_combreloc=no | |
a711b01d | 5545 | fi |
fdde8349 UD |
5546 | else |
5547 | libc_cv_z_combreloc=no | |
a711b01d UD |
5548 | fi |
5549 | rm -f conftest* | |
5550 | fi | |
3a12e572 UD |
5551 | echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5 |
5552 | echo "${ECHO_T}$libc_cv_z_combreloc" >&6 | |
fdde8349 | 5553 | if test "$libc_cv_z_combreloc" = yes; then |
3a12e572 | 5554 | cat >>confdefs.h <<\_ACEOF |
fdde8349 | 5555 | #define HAVE_Z_COMBRELOC 1 |
3a12e572 | 5556 | _ACEOF |
fdde8349 UD |
5557 | |
5558 | fi | |
2abf9ff1 RM |
5559 | |
5560 | ||
5561 | echo "$as_me:$LINENO: checking for -z execstack" >&5 | |
5562 | echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6 | |
5563 | if test "${libc_cv_z_execstack+set}" = set; then | |
5564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5565 | else | |
5566 | cat > conftest.c <<EOF | |
5567 | int _start (void) { return 42; } | |
5568 | EOF | |
5569 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
5570 | -shared -o conftest.so conftest.c | |
5571 | -Wl,-z,execstack -nostdlib | |
5572 | 1>&5' | |
5573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5574 | (eval $ac_try) 2>&5 | |
5575 | ac_status=$? | |
5576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5577 | (exit $ac_status); }; } | |
5578 | then | |
5579 | libc_cv_z_execstack=yes | |
5580 | else | |
5581 | libc_cv_z_execstack=no | |
5582 | fi | |
5583 | rm -f conftest* | |
cd6ede75 | 5584 | fi |
2abf9ff1 RM |
5585 | echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5 |
5586 | echo "${ECHO_T}$libc_cv_z_execstack" >&6 | |
cd6ede75 | 5587 | |
0f124303 UD |
5588 | |
5589 | echo "$as_me:$LINENO: checking for -fpie" >&5 | |
5590 | echo $ECHO_N "checking for -fpie... $ECHO_C" >&6 | |
5591 | if test "${libc_cv_fpie+set}" = set; then | |
5592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5593 | else | |
5594 | cat > conftest.c <<EOF | |
5595 | int foo; | |
49803108 | 5596 | main () { return 0;} |
0f124303 UD |
5597 | EOF |
5598 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie | |
5599 | -o conftest conftest.c 1>&5' | |
5600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5601 | (eval $ac_try) 2>&5 | |
5602 | ac_status=$? | |
5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5604 | (exit $ac_status); }; } | |
5605 | then | |
5606 | libc_cv_fpie=yes | |
5607 | else | |
5608 | libc_cv_fpie=no | |
5609 | fi | |
5610 | rm -f conftest* | |
5611 | fi | |
5612 | echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5 | |
5613 | echo "${ECHO_T}$libc_cv_fpie" >&6 | |
5614 | ||
5615 | ||
2abf9ff1 | 5616 | fi |
f13df7c7 | 5617 | |
49803108 AJ |
5618 | echo "$as_me:$LINENO: checking for -fno-unit-at-a-time" >&5 |
5619 | echo $ECHO_N "checking for -fno-unit-at-a-time... $ECHO_C" >&6 | |
5620 | if test "${libc_cv_fno_unit_at_a_time+set}" = set; then | |
5621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5622 | else | |
5623 | cat > conftest.c <<EOF | |
5624 | int foo; | |
5625 | EOF | |
5626 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time | |
5627 | conftest.c 1>&5' | |
5628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5629 | (eval $ac_try) 2>&5 | |
5630 | ac_status=$? | |
5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5632 | (exit $ac_status); }; } | |
5633 | then | |
5634 | libc_cv_fno_unit_at_a_time=yes | |
5635 | else | |
5636 | libc_cv_fno_unit_at_a_time=no | |
5637 | fi | |
5638 | rm -f conftest* | |
5639 | fi | |
5640 | echo "$as_me:$LINENO: result: $libc_cv_fno_unit_at_a_time" >&5 | |
5641 | echo "${ECHO_T}$libc_cv_fno_unit_at_a_time" >&6 | |
5642 | if test $libc_cv_fno_unit_at_a_time = yes; then | |
5643 | fno_unit_at_a_time=-fno-unit-at-a-time | |
5644 | fi | |
5645 | ||
5646 | ||
cd6ede75 | 5647 | if test $elf != yes; then |
3a12e572 UD |
5648 | echo "$as_me:$LINENO: checking for .init and .fini sections" >&5 |
5649 | echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6 | |
5650 | if test "${libc_cv_have_initfini+set}" = set; then | |
5651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 5652 | else |
3a12e572 | 5653 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 5654 | #line $LINENO "configure" |
2abf9ff1 RM |
5655 | /* confdefs.h. */ |
5656 | _ACEOF | |
5657 | cat confdefs.h >>conftest.$ac_ext | |
5658 | cat >>conftest.$ac_ext <<_ACEOF | |
5659 | /* end confdefs.h. */ | |
cd6ede75 | 5660 | |
3a12e572 UD |
5661 | int |
5662 | main () | |
5663 | { | |
cd6ede75 UD |
5664 | asm (".section .init"); |
5665 | asm (".section .fini"); | |
2293395f | 5666 | asm ("${libc_cv_dot_text}"); |
3a12e572 UD |
5667 | ; |
5668 | return 0; | |
5669 | } | |
5670 | _ACEOF | |
5671 | rm -f conftest.$ac_objext | |
5672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 5673 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
5674 | ac_status=$? |
5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5676 | (exit $ac_status); } && | |
8f73811b | 5677 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
5678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5679 | (eval $ac_try) 2>&5 | |
5680 | ac_status=$? | |
5681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5682 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
5683 | libc_cv_have_initfini=yes |
5684 | else | |
3a12e572 | 5685 | echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
5686 | sed 's/^/| /' conftest.$ac_ext >&5 |
5687 | ||
3a12e572 | 5688 | libc_cv_have_initfini=no |
cd6ede75 | 5689 | fi |
8f73811b | 5690 | rm -f conftest.$ac_objext conftest.$ac_ext |
cd6ede75 | 5691 | fi |
3a12e572 UD |
5692 | echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5 |
5693 | echo "${ECHO_T}$libc_cv_have_initfini" >&6 | |
cd6ede75 | 5694 | if test $libc_cv_have_initfini = yes; then |
3a12e572 | 5695 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5696 | #define HAVE_INITFINI 1 |
3a12e572 | 5697 | _ACEOF |
cd6ede75 UD |
5698 | |
5699 | fi | |
5700 | fi | |
5701 | ||
e26dd47f | 5702 | if test $elf = yes -a $gnu_ld = yes; then |
3a12e572 UD |
5703 | echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5 |
5704 | echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6 | |
5705 | if test "${libc_cv_have_section_quotes+set}" = set; then | |
5706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e26dd47f UD |
5707 | else |
5708 | cat > conftest.c <<EOF | |
5709 | static const int foo | |
5710 | __attribute__ ((section ("bar"))) = 1; | |
5711 | EOF | |
5712 | if ${CC-cc} -S conftest.c -o conftest.s; then | |
5713 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
5714 | libc_cv_have_section_quotes=yes | |
5715 | else | |
5716 | libc_cv_have_section_quotes=no | |
5717 | fi | |
5718 | else | |
5719 | libc_cv_have_section_quotes=unknown | |
5720 | fi | |
5721 | rm -f conftest.cs | |
e26dd47f | 5722 | |
3a12e572 UD |
5723 | fi |
5724 | echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5 | |
5725 | echo "${ECHO_T}$libc_cv_have_section_quotes" >&6 | |
e26dd47f | 5726 | if test $libc_cv_have_section_quotes = yes; then |
3a12e572 | 5727 | cat >>confdefs.h <<\_ACEOF |
e26dd47f | 5728 | #define HAVE_SECTION_QUOTES 1 |
3a12e572 | 5729 | _ACEOF |
e26dd47f UD |
5730 | |
5731 | fi | |
5732 | fi | |
5733 | ||
9a0a462c UD |
5734 | |
5735 | ||
cd6ede75 UD |
5736 | if test $elf = yes; then |
5737 | libc_cv_asm_underscores=no | |
5738 | else | |
9a0a462c | 5739 | if test $ac_cv_prog_cc_works = yes; then |
3a12e572 UD |
5740 | echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5 |
5741 | echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6 | |
5742 | if test "${libc_cv_asm_underscores+set}" = set; then | |
5743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 5744 | else |
3a12e572 | 5745 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 5746 | #line $LINENO "configure" |
2abf9ff1 RM |
5747 | /* confdefs.h. */ |
5748 | _ACEOF | |
5749 | cat confdefs.h >>conftest.$ac_ext | |
5750 | cat >>conftest.$ac_ext <<_ACEOF | |
5751 | /* end confdefs.h. */ | |
cd6ede75 | 5752 | asm ("_glibc_foobar:"); |
3a12e572 UD |
5753 | int |
5754 | main () | |
5755 | { | |
cd6ede75 | 5756 | glibc_foobar (); |
3a12e572 UD |
5757 | ; |
5758 | return 0; | |
5759 | } | |
5760 | _ACEOF | |
5761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8f73811b | 5763 | (eval $ac_link) 2>&5 |
3a12e572 UD |
5764 | ac_status=$? |
5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5766 | (exit $ac_status); } && | |
8f73811b | 5767 | { ac_try='test -s conftest$ac_exeext' |
3a12e572 UD |
5768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5769 | (eval $ac_try) 2>&5 | |
5770 | ac_status=$? | |
5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5772 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
5773 | libc_cv_asm_underscores=yes |
5774 | else | |
3a12e572 | 5775 | echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
5776 | sed 's/^/| /' conftest.$ac_ext >&5 |
5777 | ||
3a12e572 | 5778 | libc_cv_asm_underscores=no |
cd6ede75 | 5779 | fi |
8f73811b | 5780 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
cd6ede75 | 5781 | fi |
3a12e572 UD |
5782 | echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5 |
5783 | echo "${ECHO_T}$libc_cv_asm_underscores" >&6 | |
9a0a462c | 5784 | else |
3a12e572 UD |
5785 | echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5 |
5786 | echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6 | |
5787 | if test "${libc_cv_asm_underscores+set}" = set; then | |
5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a0a462c UD |
5789 | else |
5790 | cat > conftest.$ac_ext <<EOF | |
85dd1003 | 5791 | #line $LINENO "configure" |
9a0a462c UD |
5792 | #include "confdefs.h" |
5793 | void underscore_test(void) { | |
5794 | return; } | |
5795 | EOF | |
3a12e572 UD |
5796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5797 | (eval $ac_compile) 2>&5 | |
5798 | ac_status=$? | |
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5800 | (exit $ac_status); }; then | |
9a0a462c UD |
5801 | if grep _underscore_test conftest* >/dev/null; then |
5802 | rm -f conftest* | |
5803 | libc_cv_asm_underscores=yes | |
5804 | else | |
5805 | rm -f conftest* | |
5806 | libc_cv_asm_underscores=no | |
5807 | fi | |
5808 | else | |
5809 | echo "configure: failed program was:" >&5 | |
5810 | cat conftest.$ac_ext >&5 | |
5811 | rm -f conftest* | |
5812 | libc_cv_asm_underscores=no | |
5813 | fi | |
5814 | rm -f conftest* | |
5815 | fi | |
3a12e572 UD |
5816 | echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5 |
5817 | echo "${ECHO_T}$libc_cv_asm_underscores" >&6 | |
9a0a462c | 5818 | fi |
cd6ede75 UD |
5819 | fi |
5820 | if test $libc_cv_asm_underscores = no; then | |
3a12e572 | 5821 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5822 | #define NO_UNDERSCORES 1 |
3a12e572 | 5823 | _ACEOF |
cd6ede75 UD |
5824 | |
5825 | fi | |
5826 | ||
5827 | if test $elf = yes; then | |
5828 | libc_cv_weak_symbols=yes | |
9a97d1f7 UD |
5829 | fi |
5830 | ||
3a12e572 UD |
5831 | echo "$as_me:$LINENO: checking for assembler .weak directive" >&5 |
5832 | echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6 | |
5833 | if test "${libc_cv_asm_weak_directive+set}" = set; then | |
5834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
5835 | else |
5836 | cat > conftest.s <<EOF | |
2293395f | 5837 | ${libc_cv_dot_text} |
cd6ede75 UD |
5838 | ${libc_cv_asm_global_directive} foo |
5839 | foo: | |
5840 | .weak foo | |
5841 | .weak bar; bar = foo | |
5842 | EOF | |
3217788f | 5843 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
5844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5845 | (eval $ac_try) 2>&5 | |
5846 | ac_status=$? | |
5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5848 | (exit $ac_status); }; }; then | |
9a97d1f7 UD |
5849 | libc_cv_asm_weak_directive=yes |
5850 | else | |
5851 | libc_cv_asm_weak_directive=no | |
5852 | fi | |
5853 | rm -f conftest* | |
cd6ede75 | 5854 | fi |
3a12e572 UD |
5855 | echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5 |
5856 | echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6 | |
cd6ede75 UD |
5857 | |
5858 | if test $libc_cv_asm_weak_directive = no; then | |
3a12e572 UD |
5859 | echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5 |
5860 | echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6 | |
5861 | if test "${libc_cv_asm_weakext_directive+set}" = set; then | |
5862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
5863 | else |
5864 | cat > conftest.s <<EOF | |
2293395f | 5865 | ${libc_cv_dot_text} |
cd6ede75 UD |
5866 | ${libc_cv_asm_global_directive} foo |
5867 | foo: | |
9a97d1f7 UD |
5868 | .weakext bar foo |
5869 | .weakext baz | |
5870 | ${libc_cv_asm_global_directive} baz | |
5871 | baz: | |
cd6ede75 | 5872 | EOF |
3217788f | 5873 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' |
61cea1c3 RM |
5874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5875 | (eval $ac_try) 2>&5 | |
5876 | ac_status=$? | |
5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5878 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
5879 | libc_cv_asm_weakext_directive=yes |
5880 | else | |
5881 | libc_cv_asm_weakext_directive=no | |
5882 | fi | |
5883 | rm -f conftest* | |
5884 | fi | |
3a12e572 UD |
5885 | echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5 |
5886 | echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6 | |
cd6ede75 | 5887 | |
9a97d1f7 | 5888 | fi # no .weak |
cd6ede75 UD |
5889 | |
5890 | if test $libc_cv_asm_weak_directive = yes; then | |
3a12e572 | 5891 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5892 | #define HAVE_ASM_WEAK_DIRECTIVE 1 |
3a12e572 | 5893 | _ACEOF |
cd6ede75 UD |
5894 | |
5895 | elif test $libc_cv_asm_weakext_directive = yes; then | |
3a12e572 | 5896 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5897 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 |
3a12e572 | 5898 | _ACEOF |
cd6ede75 UD |
5899 | |
5900 | fi | |
5901 | ||
b15cb495 | 5902 | case "${host_cpu}-${host_os}" in |
eacde9d0 UD |
5903 | cris*) |
5904 | libc_cv_asm_line_sep='@' | |
3a12e572 | 5905 | cat >>confdefs.h <<_ACEOF |
eacde9d0 | 5906 | #define ASM_LINE_SEP $libc_cv_asm_line_sep |
3a12e572 | 5907 | _ACEOF |
eacde9d0 UD |
5908 | |
5909 | ;; | |
b15cb495 | 5910 | hppa*linux*) |
3a12e572 UD |
5911 | echo "$as_me:$LINENO: checking for assembler line separator" >&5 |
5912 | echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6 | |
5913 | if test "${libc_cv_asm_line_sep+set}" = set; then | |
5914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b15cb495 UD |
5915 | else |
5916 | cat > conftest.s <<EOF | |
5917 | nop ; is_old_puffin | |
5918 | EOF | |
3217788f | 5919 | if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' |
3a12e572 UD |
5920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5921 | (eval $ac_try) 2>&5 | |
5922 | ac_status=$? | |
5923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5924 | (exit $ac_status); }; }; then | |
b15cb495 UD |
5925 | libc_cv_asm_line_sep='!' |
5926 | else | |
5927 | if test -z "$enable_hacker_mode"; then | |
5928 | echo "*** You need a newer assembler to compile glibc" | |
5929 | rm -f conftest* | |
5930 | exit 1 | |
5931 | fi | |
5932 | libc_cv_asm_line_sep=';' | |
5933 | fi | |
5934 | rm -f conftest* | |
5935 | fi | |
3a12e572 UD |
5936 | echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5 |
5937 | echo "${ECHO_T}$libc_cv_asm_line_sep" >&6 | |
5938 | cat >>confdefs.h <<_ACEOF | |
b15cb495 | 5939 | #define ASM_LINE_SEP $libc_cv_asm_line_sep |
3a12e572 | 5940 | _ACEOF |
b15cb495 UD |
5941 | |
5942 | ;; | |
5943 | esac | |
5944 | ||
50189569 AJ |
5945 | echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5 |
5946 | echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6 | |
5947 | if test "${libc_cv_asm_cfi_directives+set}" = set; then | |
5948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5949 | else | |
5950 | cat > conftest.s <<EOF | |
5951 | .text | |
5952 | .type func,@function | |
5953 | func: | |
5954 | .cfi_startproc | |
f212e8dc | 5955 | .cfi_remember_state |
fbd90f6c | 5956 | .cfi_rel_offset 1, 0 |
50189569 AJ |
5957 | .cfi_endproc |
5958 | EOF | |
5959 | if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5' | |
5960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5961 | (eval $ac_try) 2>&5 | |
5962 | ac_status=$? | |
5963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5964 | (exit $ac_status); }; }; then | |
5965 | libc_cv_asm_cfi_directives=yes | |
5966 | else | |
5967 | libc_cv_asm_cfi_directives=no | |
5968 | fi | |
5969 | rm -f conftest* | |
5970 | fi | |
5971 | echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5 | |
5972 | echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6 | |
5973 | if test $libc_cv_asm_cfi_directives = yes; then | |
5974 | cat >>confdefs.h <<\_ACEOF | |
5975 | #define HAVE_ASM_CFI_DIRECTIVES 1 | |
5976 | _ACEOF | |
5977 | ||
5978 | fi | |
5979 | ||
073e82bf RM |
5980 | echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5 |
5981 | echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6 | |
5982 | if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then | |
5983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5984 | else | |
5985 | cat > conftest.S <<EOF | |
5986 | #include "confdefs.h" | |
5987 | ||
5988 | /* comment on | |
5989 | two lines */ | |
5990 | ${libc_cv_dot_text} | |
5991 | ${libc_cv_asm_global_directive} foo | |
5992 | foo: | |
5993 | /* Unfortunately this test only works for a real instruction, | |
5994 | not for any of the machine-independent pseudo-ops. | |
5995 | So we just have to assume everybody has a "nop". */ | |
5996 | nop | |
5997 | /* comment */ | |
5998 | nop | |
5999 | /* comment */ | |
6000 | nop | |
6001 | EOF | |
3217788f | 6002 | if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&5' |
073e82bf RM |
6003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6004 | (eval $ac_try) 2>&5 | |
6005 | ac_status=$? | |
6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6007 | (exit $ac_status); }; } && | |
6008 | ac_pattern='conftest\.S' | |
6009 | { ac_try='readelf --debug-dump=line conftest.o | | |
6010 | grep $ac_pattern 1>&5' | |
6011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6012 | (eval $ac_try) 2>&5 | |
6013 | ac_status=$? | |
6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6015 | (exit $ac_status); }; }; then | |
6016 | libc_cv_cpp_asm_debuginfo=yes | |
6017 | else | |
6018 | libc_cv_cpp_asm_debuginfo=no | |
6019 | fi | |
6020 | rm -f conftest* | |
6021 | fi | |
6022 | echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5 | |
6023 | echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6 | |
6024 | if test $libc_cv_cpp_asm_debuginfo = yes; then | |
6025 | cat >>confdefs.h <<\_ACEOF | |
6026 | #define HAVE_CPP_ASM_DEBUGINFO 1 | |
6027 | _ACEOF | |
6028 | ||
6029 | fi | |
6030 | ||
3a12e572 UD |
6031 | echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5 |
6032 | echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6 | |
6033 | if test "${libc_cv_ld_no_whole_archive+set}" = set; then | |
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
6035 | else |
6036 | cat > conftest.c <<\EOF | |
6037 | _start () {} | |
6038 | int __eh_pc; | |
6039 | __throw () {} | |
6040 | EOF | |
3217788f | 6041 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
cd6ede75 | 6042 | -nostdlib -nostartfiles -Wl,--no-whole-archive |
3a12e572 UD |
6043 | -o conftest conftest.c 1>&5' |
6044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6045 | (eval $ac_try) 2>&5 | |
6046 | ac_status=$? | |
6047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6048 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
6049 | libc_cv_ld_no_whole_archive=yes |
6050 | else | |
6051 | libc_cv_ld_no_whole_archive=no | |
6052 | fi | |
6053 | rm -f conftest* | |
6054 | fi | |
3a12e572 UD |
6055 | echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5 |
6056 | echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6 | |
b17277cf UD |
6057 | if test $libc_cv_ld_no_whole_archive = yes; then |
6058 | no_whole_archive=-Wl,--no-whole-archive | |
6059 | fi | |
cd6ede75 | 6060 | |
3a12e572 UD |
6061 | echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5 |
6062 | echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6 | |
6063 | if test "${libc_cv_gcc_exceptions+set}" = set; then | |
6064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
6065 | else |
6066 | cat > conftest.c <<\EOF | |
6067 | _start () {} | |
6068 | int __eh_pc; | |
6069 | __throw () {} | |
6070 | EOF | |
3217788f | 6071 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS |
dff14448 | 6072 | -nostdlib -nostartfiles -fexceptions |
3a12e572 UD |
6073 | -o conftest conftest.c 1>&5' |
6074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6075 | (eval $ac_try) 2>&5 | |
6076 | ac_status=$? | |
6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6078 | (exit $ac_status); }; }; then | |
dff14448 | 6079 | libc_cv_gcc_exceptions=yes |
cd6ede75 | 6080 | else |
dff14448 | 6081 | libc_cv_gcc_exceptions=no |
cd6ede75 UD |
6082 | fi |
6083 | rm -f conftest* | |
6084 | fi | |
3a12e572 UD |
6085 | echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5 |
6086 | echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6 | |
dff14448 UD |
6087 | if test $libc_cv_gcc_exceptions = yes; then |
6088 | exceptions=-fexceptions | |
b17277cf | 6089 | fi |
cd6ede75 | 6090 | |
ebcd12d4 UD |
6091 | if test "$host_cpu" = powerpc ; then |
6092 | # Check for a bug present in at least versions 2.8.x of GCC | |
6093 | # and versions 1.0.x of EGCS. | |
3a12e572 UD |
6094 | echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5 |
6095 | echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6 | |
6096 | if test "${libc_cv_c_asmcr0_bug+set}" = set; then | |
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ebcd12d4 | 6098 | else |
3a12e572 | 6099 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 6100 | #line $LINENO "configure" |
2abf9ff1 RM |
6101 | /* confdefs.h. */ |
6102 | _ACEOF | |
6103 | cat confdefs.h >>conftest.$ac_ext | |
6104 | cat >>conftest.$ac_ext <<_ACEOF | |
6105 | /* end confdefs.h. */ | |
ebcd12d4 | 6106 | int tester(int x) { asm ("" : : : "cc"); return x & 123; } |
3a12e572 UD |
6107 | int |
6108 | main () | |
6109 | { | |
ebcd12d4 | 6110 | |
3a12e572 UD |
6111 | ; |
6112 | return 0; | |
6113 | } | |
6114 | _ACEOF | |
6115 | rm -f conftest.$ac_objext | |
6116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6117 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
6118 | ac_status=$? |
6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6120 | (exit $ac_status); } && | |
8f73811b | 6121 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
6122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6123 | (eval $ac_try) 2>&5 | |
6124 | ac_status=$? | |
6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6126 | (exit $ac_status); }; }; then | |
ebcd12d4 UD |
6127 | libc_cv_c_asmcr0_bug='no' |
6128 | else | |
3a12e572 | 6129 | echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
6130 | sed 's/^/| /' conftest.$ac_ext >&5 |
6131 | ||
3a12e572 | 6132 | libc_cv_c_asmcr0_bug='yes' |
ebcd12d4 | 6133 | fi |
8f73811b | 6134 | rm -f conftest.$ac_objext conftest.$ac_ext |
ebcd12d4 | 6135 | fi |
3a12e572 UD |
6136 | echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5 |
6137 | echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6 | |
ebcd12d4 | 6138 | if test "$libc_cv_c_asmcr0_bug" != 'no'; then |
3a12e572 | 6139 | cat >>confdefs.h <<\_ACEOF |
ebcd12d4 | 6140 | #define BROKEN_PPC_ASM_CR0 1 |
3a12e572 | 6141 | _ACEOF |
ebcd12d4 UD |
6142 | |
6143 | fi | |
6144 | fi | |
6145 | ||
3a12e572 UD |
6146 | echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5 |
6147 | echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6 | |
6148 | if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then | |
6149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
650425ce UD |
6150 | else |
6151 | cat > conftest.c <<EOF | |
85dd1003 | 6152 | #line $LINENO "configure" |
2b904739 | 6153 | static char *__EH_FRAME_BEGIN__; |
650425ce UD |
6154 | _start () |
6155 | { | |
9756dfe1 | 6156 | #ifdef CHECK__register_frame |
650425ce UD |
6157 | __register_frame (__EH_FRAME_BEGIN__); |
6158 | __deregister_frame (__EH_FRAME_BEGIN__); | |
9756dfe1 UD |
6159 | #endif |
6160 | #ifdef CHECK__register_frame_info | |
6161 | __register_frame_info (__EH_FRAME_BEGIN__); | |
6162 | __deregister_frame_info (__EH_FRAME_BEGIN__); | |
6163 | #endif | |
650425ce UD |
6164 | } |
6165 | int __eh_pc; | |
6166 | __throw () {} | |
6167 | /* FIXME: this is fragile. */ | |
6168 | malloc () {} | |
6169 | strcmp () {} | |
6170 | strlen () {} | |
6171 | memcpy () {} | |
6172 | memset () {} | |
6173 | free () {} | |
6174 | abort () {} | |
dfd2257a | 6175 | __bzero () {} |
7ae4abe9 | 6176 | dl_iterate_phdr () {} |
650425ce | 6177 | EOF |
3217788f RM |
6178 | libc_unwind_check="${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame_info \ |
6179 | $LDFLAGS \ | |
42607429 RM |
6180 | -nostdlib -nostartfiles -o conftest conftest.c \ |
6181 | -lgcc" | |
6182 | # Some platforms' specs put -lgcc first. The second one doesn't hurt. | |
6183 | if { ac_try='$libc_unwind_check >&5' | |
3a12e572 UD |
6184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6185 | (eval $ac_try) 2>&5 | |
6186 | ac_status=$? | |
6187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42607429 RM |
6188 | (exit $ac_status); }; } || |
6189 | { ac_try='$libc_unwind_check -lgcc_eh -lgcc >&5' | |
3a12e572 UD |
6190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6191 | (eval $ac_try) 2>&5 | |
6192 | ac_status=$? | |
6193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42607429 RM |
6194 | (exit $ac_status); }; } |
6195 | then | |
cd925327 | 6196 | if $libc_unwind_check -v 2>&1 >/dev/null \ |
083dc54a | 6197 | | grep -- --eh-frame-hdr 2>&1 >/dev/null; then |
2b904739 AJ |
6198 | libc_cv_gcc_dwarf2_unwind_info=no_registry_needed |
6199 | else | |
6200 | libc_cv_gcc_dwarf2_unwind_info=static | |
6201 | fi | |
6202 | else | |
6203 | libc_cv_gcc_dwarf2_unwind_info=no | |
6204 | fi | |
9756dfe1 | 6205 | if test $libc_cv_gcc_dwarf2_unwind_info = no; then |
3217788f RM |
6206 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame |
6207 | $LDFLAGS -nostdlib -nostartfiles | |
3a12e572 UD |
6208 | -o conftest conftest.c -lgcc >&5' |
6209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6210 | (eval $ac_try) 2>&5 | |
6211 | ac_status=$? | |
6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6213 | (exit $ac_status); }; }; then | |
9756dfe1 UD |
6214 | libc_cv_gcc_dwarf2_unwind_info=yes |
6215 | else | |
6216 | libc_cv_gcc_dwarf2_unwind_info=no | |
6217 | fi | |
6218 | fi | |
650425ce UD |
6219 | rm -f conftest* |
6220 | fi | |
3a12e572 UD |
6221 | echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5 |
6222 | echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6 | |
9756dfe1 UD |
6223 | case $libc_cv_gcc_dwarf2_unwind_info in |
6224 | yes) | |
3a12e572 | 6225 | cat >>confdefs.h <<\_ACEOF |
650425ce | 6226 | #define HAVE_DWARF2_UNWIND_INFO 1 |
3a12e572 | 6227 | _ACEOF |
650425ce | 6228 | |
9756dfe1 UD |
6229 | ;; |
6230 | static) | |
3a12e572 | 6231 | cat >>confdefs.h <<\_ACEOF |
9756dfe1 | 6232 | #define HAVE_DWARF2_UNWIND_INFO 1 |
3a12e572 | 6233 | _ACEOF |
9756dfe1 | 6234 | |
3a12e572 | 6235 | cat >>confdefs.h <<\_ACEOF |
9756dfe1 | 6236 | #define HAVE_DWARF2_UNWIND_INFO_STATIC 1 |
3a12e572 | 6237 | _ACEOF |
9756dfe1 UD |
6238 | |
6239 | ;; | |
6240 | esac | |
650425ce | 6241 | |
3a12e572 UD |
6242 | echo "$as_me:$LINENO: checking for __builtin_expect" >&5 |
6243 | echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6 | |
6244 | if test "${libc_cv_gcc_builtin_expect+set}" = set; then | |
6245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a8eab8b1 UD |
6246 | else |
6247 | cat > conftest.c <<EOF | |
85dd1003 | 6248 | #line $LINENO "configure" |
a8eab8b1 UD |
6249 | int foo (int a) |
6250 | { | |
6251 | a = __builtin_expect (a, 10); | |
6252 | return a == 10 ? 0 : 1; | |
6253 | } | |
6254 | EOF | |
3217788f | 6255 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles |
3a12e572 UD |
6256 | -o conftest conftest.c -lgcc >&5' |
6257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6258 | (eval $ac_try) 2>&5 | |
6259 | ac_status=$? | |
6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6261 | (exit $ac_status); }; }; then | |
a8eab8b1 UD |
6262 | libc_cv_gcc_builtin_expect=yes |
6263 | else | |
6264 | libc_cv_gcc_builtin_expect=no | |
6265 | fi | |
6266 | rm -f conftest* | |
6267 | fi | |
3a12e572 UD |
6268 | echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5 |
6269 | echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6 | |
a8eab8b1 | 6270 | if test "$libc_cv_gcc_builtin_expect" = yes; then |
3a12e572 | 6271 | cat >>confdefs.h <<\_ACEOF |
a8eab8b1 | 6272 | #define HAVE_BUILTIN_EXPECT 1 |
3a12e572 | 6273 | _ACEOF |
a8eab8b1 UD |
6274 | |
6275 | fi | |
6276 | ||
3a12e572 UD |
6277 | echo "$as_me:$LINENO: checking for __builtin_memset" >&5 |
6278 | echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6 | |
6279 | if test "${libc_cv_gcc_builtin_memset+set}" = set; then | |
6280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d555194c UD |
6281 | else |
6282 | cat > conftest.c <<\EOF | |
6283 | void zero (void *x) | |
6284 | { | |
a52d1562 | 6285 | __builtin_memset (x, 0, 1000); |
d555194c UD |
6286 | } |
6287 | EOF | |
3a12e572 UD |
6288 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null' |
6289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6290 | (eval $ac_try) 2>&5 | |
6291 | ac_status=$? | |
6292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6293 | (exit $ac_status); }; }; | |
d555194c UD |
6294 | then |
6295 | libc_cv_gcc_builtin_memset=no | |
6296 | else | |
6297 | libc_cv_gcc_builtin_memset=yes | |
6298 | fi | |
3a12e572 | 6299 | rm -f conftest* |
d555194c | 6300 | fi |
3a12e572 UD |
6301 | echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5 |
6302 | echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6 | |
d555194c | 6303 | if test "$libc_cv_gcc_builtin_memset" = yes ; then |
3a12e572 | 6304 | cat >>confdefs.h <<\_ACEOF |
d555194c | 6305 | #define HAVE_BUILTIN_MEMSET 1 |
3a12e572 | 6306 | _ACEOF |
d555194c UD |
6307 | |
6308 | fi | |
6309 | ||
85dd1003 UD |
6310 | echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5 |
6311 | echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6 | |
6312 | if test "${libc_cv_gcc_builtin_redirection+set}" = set; then | |
6313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6314 | else | |
6315 | cat > conftest.c <<\EOF | |
6316 | extern char *strstr (const char *, const char *) __asm ("my_strstr"); | |
6317 | char *foo (const char *a, const char *b) | |
6318 | { | |
6319 | return __builtin_strstr (a, b); | |
6320 | } | |
6321 | EOF | |
6322 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null' | |
6323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6324 | (eval $ac_try) 2>&5 | |
6325 | ac_status=$? | |
6326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6327 | (exit $ac_status); }; }; | |
6328 | then | |
6329 | libc_cv_gcc_builtin_redirection=yes | |
6330 | else | |
6331 | libc_cv_gcc_builtin_redirection=no | |
6332 | fi | |
6333 | rm -f conftest* | |
6334 | fi | |
6335 | echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5 | |
6336 | echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6 | |
6337 | if test "$libc_cv_gcc_builtin_redirection" = yes ; then | |
6338 | cat >>confdefs.h <<\_ACEOF | |
6339 | #define HAVE_BUILTIN_REDIRECTION 1 | |
6340 | _ACEOF | |
6341 | ||
6342 | fi | |
6343 | ||
3a12e572 UD |
6344 | echo "$as_me:$LINENO: checking for local label subtraction" >&5 |
6345 | echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6 | |
6346 | if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then | |
6347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3d558f4e UD |
6348 | else |
6349 | cat > conftest.c <<EOF | |
85dd1003 | 6350 | #line $LINENO "configure" |
3d558f4e UD |
6351 | int foo (int a) |
6352 | { | |
6353 | static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 }; | |
6354 | void *p = &&l1 + ar[a]; | |
6355 | goto *p; | |
6356 | l1: | |
6357 | return 1; | |
6358 | l2: | |
6359 | return 2; | |
6360 | } | |
6361 | EOF | |
3217788f | 6362 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles |
3a12e572 UD |
6363 | -o conftest conftest.c -lgcc >&5' |
6364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6365 | (eval $ac_try) 2>&5 | |
6366 | ac_status=$? | |
6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6368 | (exit $ac_status); }; }; then | |
3d558f4e UD |
6369 | libc_cv_gcc_subtract_local_labels=yes |
6370 | else | |
6371 | libc_cv_gcc_subtract_local_labels=no | |
6372 | fi | |
6373 | rm -f conftest* | |
6374 | fi | |
3a12e572 UD |
6375 | echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5 |
6376 | echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6 | |
3d558f4e | 6377 | if test "$libc_cv_gcc_subtract_local_labels" = yes; then |
3a12e572 | 6378 | cat >>confdefs.h <<\_ACEOF |
3d558f4e | 6379 | #define HAVE_SUBTRACT_LOCAL_LABELS 1 |
3a12e572 | 6380 | _ACEOF |
3d558f4e UD |
6381 | |
6382 | fi | |
6383 | ||
5b8f26b4 | 6384 | if test "x$use__thread" != xno; then |
3a12e572 UD |
6385 | echo "$as_me:$LINENO: checking for __thread" >&5 |
6386 | echo $ECHO_N "checking for __thread... $ECHO_C" >&6 | |
6387 | if test "${libc_cv_gcc___thread+set}" = set; then | |
6388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
739d440d | 6389 | else |
5bbfc1ea | 6390 | cat > conftest.c <<\EOF |
fbb18522 RM |
6391 | __thread int a = 42; |
6392 | EOF | |
3217788f | 6393 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5' |
3a12e572 UD |
6394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6395 | (eval $ac_try) 2>&5 | |
6396 | ac_status=$? | |
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6398 | (exit $ac_status); }; }; then | |
5b8f26b4 RM |
6399 | libc_cv_gcc___thread=yes |
6400 | else | |
6401 | libc_cv_gcc___thread=no | |
6402 | fi | |
6403 | rm -f conftest* | |
739d440d | 6404 | fi |
3a12e572 UD |
6405 | echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5 |
6406 | echo "${ECHO_T}$libc_cv_gcc___thread" >&6 | |
5b8f26b4 | 6407 | if test "$libc_cv_gcc___thread" = yes; then |
3a12e572 | 6408 | cat >>confdefs.h <<\_ACEOF |
739d440d | 6409 | #define HAVE___THREAD 1 |
3a12e572 | 6410 | _ACEOF |
739d440d | 6411 | |
5b8f26b4 | 6412 | fi |
fbb18522 RM |
6413 | else |
6414 | libc_cv_gcc___thread=no | |
739d440d UD |
6415 | fi |
6416 | ||
9b21e6bc | 6417 | if test "$libc_cv_gcc___thread" = yes; then |
3a12e572 UD |
6418 | echo "$as_me:$LINENO: checking for tls_model attribute" >&5 |
6419 | echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6 | |
6420 | if test "${libc_cv_gcc_tls_model_attr+set}" = set; then | |
6421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9b21e6bc RM |
6422 | else |
6423 | cat > conftest.c <<\EOF | |
6424 | extern __thread int a __attribute__((tls_model ("initial-exec"))); | |
6425 | EOF | |
3217788f | 6426 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5' |
3a12e572 UD |
6427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6428 | (eval $ac_try) 2>&5 | |
6429 | ac_status=$? | |
6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6431 | (exit $ac_status); }; }; then | |
9b21e6bc RM |
6432 | libc_cv_gcc_tls_model_attr=yes |
6433 | else | |
6434 | libc_cv_gcc_tls_model_attr=no | |
6435 | fi | |
6436 | rm -f conftest* | |
6437 | fi | |
3a12e572 UD |
6438 | echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5 |
6439 | echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6 | |
9b21e6bc | 6440 | if test "$libc_cv_gcc_tls_model_attr" = yes; then |
3a12e572 | 6441 | cat >>confdefs.h <<\_ACEOF |
9b21e6bc | 6442 | #define HAVE_TLS_MODEL_ATTRIBUTE 1 |
3a12e572 | 6443 | _ACEOF |
9b21e6bc RM |
6444 | |
6445 | fi | |
6446 | fi | |
739d440d | 6447 | |
3a12e572 UD |
6448 | echo "$as_me:$LINENO: checking for libgd" >&5 |
6449 | echo $ECHO_N "checking for libgd... $ECHO_C" >&6 | |
6dab8688 UD |
6450 | if test "$with_gd" != "no"; then |
6451 | old_CFLAGS="$CFLAGS" | |
6452 | CFLAGS="$CFLAGS $libgd_include" | |
6453 | old_LDFLAGS="$LDFLAGS" | |
6454 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
6455 | old_LIBS="$LIBS" | |
6456 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
3a12e572 | 6457 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 6458 | #line $LINENO "configure" |
2abf9ff1 RM |
6459 | /* confdefs.h. */ |
6460 | _ACEOF | |
6461 | cat confdefs.h >>conftest.$ac_ext | |
6462 | cat >>conftest.$ac_ext <<_ACEOF | |
6463 | /* end confdefs.h. */ | |
c8f3e6db | 6464 | #include <gd.h> |
3a12e572 UD |
6465 | int |
6466 | main () | |
6467 | { | |
c8f3e6db | 6468 | gdImagePng (0, 0) |
3a12e572 UD |
6469 | ; |
6470 | return 0; | |
6471 | } | |
6472 | _ACEOF | |
6473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8f73811b | 6475 | (eval $ac_link) 2>&5 |
3a12e572 UD |
6476 | ac_status=$? |
6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6478 | (exit $ac_status); } && | |
8f73811b | 6479 | { ac_try='test -s conftest$ac_exeext' |
3a12e572 UD |
6480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6481 | (eval $ac_try) 2>&5 | |
6482 | ac_status=$? | |
6483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6484 | (exit $ac_status); }; }; then | |
c8f3e6db UD |
6485 | LIBGD=yes |
6486 | else | |
3a12e572 | 6487 | echo "$as_me: failed program was:" >&5 |
2abf9ff1 RM |
6488 | sed 's/^/| /' conftest.$ac_ext >&5 |
6489 | ||
3a12e572 | 6490 | LIBGD=no |
c8f3e6db | 6491 | fi |
8f73811b | 6492 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6dab8688 UD |
6493 | CFLAGS="$old_CFLAGS" |
6494 | LDFLAGS="$old_LDFLAGS" | |
6495 | LIBS="$old_LIBS" | |
6496 | else | |
6497 | LIBGD=no | |
6498 | fi | |
3a12e572 UD |
6499 | echo "$as_me:$LINENO: result: $LIBGD" >&5 |
6500 | echo "${ECHO_T}$LIBGD" >&6 | |
6501 | ||
6502 | ||
6503 | ||
f4b07664 RM |
6504 | echo "$as_me:$LINENO: checking for egrep" >&5 |
6505 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
6506 | if test "${ac_cv_prog_egrep+set}" = set; then | |
6507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6508 | else | |
6509 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
6510 | then ac_cv_prog_egrep='grep -E' | |
6511 | else ac_cv_prog_egrep='egrep' | |
6512 | fi | |
6513 | fi | |
6514 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
6515 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
6516 | EGREP=$ac_cv_prog_egrep | |
6517 | ||
6518 | ||
3a12e572 UD |
6519 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6520 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6521 | if test "${ac_cv_header_stdc+set}" = set; then | |
6522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6523 | else | |
6524 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6525 | #line $LINENO "configure" |
2abf9ff1 RM |
6526 | /* confdefs.h. */ |
6527 | _ACEOF | |
6528 | cat confdefs.h >>conftest.$ac_ext | |
6529 | cat >>conftest.$ac_ext <<_ACEOF | |
6530 | /* end confdefs.h. */ | |
3a12e572 UD |
6531 | #include <stdlib.h> |
6532 | #include <stdarg.h> | |
6533 | #include <string.h> | |
6534 | #include <float.h> | |
6535 | ||
2abf9ff1 RM |
6536 | int |
6537 | main () | |
6538 | { | |
6539 | ||
6540 | ; | |
6541 | return 0; | |
6542 | } | |
3a12e572 | 6543 | _ACEOF |
2abf9ff1 RM |
6544 | rm -f conftest.$ac_objext |
6545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6546 | (eval $ac_compile) 2>&5 |
32a448ed RM |
6547 | ac_status=$? |
6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2abf9ff1 | 6549 | (exit $ac_status); } && |
8f73811b | 6550 | { ac_try='test -s conftest.$ac_objext' |
2abf9ff1 RM |
6551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6552 | (eval $ac_try) 2>&5 | |
6553 | ac_status=$? | |
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6555 | (exit $ac_status); }; }; then | |
3a12e572 UD |
6556 | ac_cv_header_stdc=yes |
6557 | else | |
6558 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
6559 | sed 's/^/| /' conftest.$ac_ext >&5 |
6560 | ||
6561 | ac_cv_header_stdc=no | |
3a12e572 | 6562 | fi |
8f73811b | 6563 | rm -f conftest.$ac_objext conftest.$ac_ext |
c8f3e6db | 6564 | |
3a12e572 UD |
6565 | if test $ac_cv_header_stdc = yes; then |
6566 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6567 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6568 | #line $LINENO "configure" |
2abf9ff1 RM |
6569 | /* confdefs.h. */ |
6570 | _ACEOF | |
6571 | cat confdefs.h >>conftest.$ac_ext | |
6572 | cat >>conftest.$ac_ext <<_ACEOF | |
6573 | /* end confdefs.h. */ | |
3a12e572 | 6574 | #include <string.h> |
3d558f4e | 6575 | |
3a12e572 UD |
6576 | _ACEOF |
6577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
f4b07664 | 6578 | $EGREP "memchr" >/dev/null 2>&1; then |
3a12e572 | 6579 | : |
8ed1e7d5 | 6580 | else |
3a12e572 UD |
6581 | ac_cv_header_stdc=no |
6582 | fi | |
6583 | rm -f conftest* | |
6584 | ||
6585 | fi | |
6586 | ||
6587 | if test $ac_cv_header_stdc = yes; then | |
6588 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6589 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6590 | #line $LINENO "configure" |
2abf9ff1 RM |
6591 | /* confdefs.h. */ |
6592 | _ACEOF | |
6593 | cat confdefs.h >>conftest.$ac_ext | |
6594 | cat >>conftest.$ac_ext <<_ACEOF | |
6595 | /* end confdefs.h. */ | |
3a12e572 UD |
6596 | #include <stdlib.h> |
6597 | ||
6598 | _ACEOF | |
6599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
f4b07664 | 6600 | $EGREP "free" >/dev/null 2>&1; then |
3a12e572 UD |
6601 | : |
6602 | else | |
6603 | ac_cv_header_stdc=no | |
6604 | fi | |
6605 | rm -f conftest* | |
6606 | ||
6607 | fi | |
6608 | ||
6609 | if test $ac_cv_header_stdc = yes; then | |
6610 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8ed1e7d5 | 6611 | if test "$cross_compiling" = yes; then |
3a12e572 | 6612 | : |
8ed1e7d5 | 6613 | else |
3a12e572 | 6614 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 6615 | #line $LINENO "configure" |
2abf9ff1 RM |
6616 | /* confdefs.h. */ |
6617 | _ACEOF | |
6618 | cat confdefs.h >>conftest.$ac_ext | |
6619 | cat >>conftest.$ac_ext <<_ACEOF | |
6620 | /* end confdefs.h. */ | |
3a12e572 UD |
6621 | #include <ctype.h> |
6622 | #if ((' ' & 0x0FF) == 0x020) | |
6623 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6624 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6625 | #else | |
2abf9ff1 | 6626 | # define ISLOWER(c) \ |
8f73811b RM |
6627 | (('a' <= (c) && (c) <= 'i') \ |
6628 | || ('j' <= (c) && (c) <= 'r') \ | |
6629 | || ('s' <= (c) && (c) <= 'z')) | |
3a12e572 UD |
6630 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6631 | #endif | |
6632 | ||
6633 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6634 | int | |
6635 | main () | |
8ed1e7d5 | 6636 | { |
3a12e572 UD |
6637 | int i; |
6638 | for (i = 0; i < 256; i++) | |
6639 | if (XOR (islower (i), ISLOWER (i)) | |
8f73811b | 6640 | || toupper (i) != TOUPPER (i)) |
3a12e572 UD |
6641 | exit(2); |
6642 | exit (0); | |
8ed1e7d5 | 6643 | } |
3a12e572 UD |
6644 | _ACEOF |
6645 | rm -f conftest$ac_exeext | |
6646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6647 | (eval $ac_link) 2>&5 | |
6648 | ac_status=$? | |
6649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6650 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6652 | (eval $ac_try) 2>&5 | |
6653 | ac_status=$? | |
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6655 | (exit $ac_status); }; }; then | |
6656 | : | |
8ed1e7d5 | 6657 | else |
3a12e572 UD |
6658 | echo "$as_me: program exited with status $ac_status" >&5 |
6659 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
6660 | sed 's/^/| /' conftest.$ac_ext >&5 |
6661 | ||
3a12e572 UD |
6662 | ( exit $ac_status ) |
6663 | ac_cv_header_stdc=no | |
6664 | fi | |
8f73811b | 6665 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8ed1e7d5 | 6666 | fi |
8ed1e7d5 | 6667 | fi |
3a12e572 UD |
6668 | fi |
6669 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6670 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6671 | if test $ac_cv_header_stdc = yes; then | |
6672 | ||
6673 | cat >>confdefs.h <<\_ACEOF | |
6674 | #define STDC_HEADERS 1 | |
6675 | _ACEOF | |
6676 | ||
6677 | fi | |
6678 | ||
6679 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6680 | ||
6681 | ||
6682 | ||
6683 | ||
6684 | ||
6685 | ||
6686 | ||
6687 | ||
6688 | ||
6689 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8f73811b | 6690 | inttypes.h stdint.h unistd.h |
3a12e572 UD |
6691 | do |
6692 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6693 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6697 | else | |
6698 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6699 | #line $LINENO "configure" |
2abf9ff1 RM |
6700 | /* confdefs.h. */ |
6701 | _ACEOF | |
6702 | cat confdefs.h >>conftest.$ac_ext | |
6703 | cat >>conftest.$ac_ext <<_ACEOF | |
6704 | /* end confdefs.h. */ | |
3a12e572 UD |
6705 | $ac_includes_default |
6706 | ||
6707 | #include <$ac_header> | |
6708 | _ACEOF | |
6709 | rm -f conftest.$ac_objext | |
6710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6711 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
6712 | ac_status=$? |
6713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6714 | (exit $ac_status); } && | |
8f73811b | 6715 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
6716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6717 | (eval $ac_try) 2>&5 | |
6718 | ac_status=$? | |
6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6720 | (exit $ac_status); }; }; then | |
6721 | eval "$as_ac_Header=yes" | |
6722 | else | |
6723 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
6724 | sed 's/^/| /' conftest.$ac_ext >&5 |
6725 | ||
3a12e572 UD |
6726 | eval "$as_ac_Header=no" |
6727 | fi | |
8f73811b | 6728 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
6729 | fi |
6730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6732 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6733 | cat >>confdefs.h <<_ACEOF | |
6734 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6735 | _ACEOF | |
8ed1e7d5 GK |
6736 | |
6737 | fi | |
3a12e572 UD |
6738 | |
6739 | done | |
6740 | ||
6741 | ||
6742 | echo "$as_me:$LINENO: checking for long double" >&5 | |
6743 | echo $ECHO_N "checking for long double... $ECHO_C" >&6 | |
6744 | if test "${ac_cv_type_long_double+set}" = set; then | |
6745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6746 | else | |
6747 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6748 | #line $LINENO "configure" |
2abf9ff1 RM |
6749 | /* confdefs.h. */ |
6750 | _ACEOF | |
6751 | cat confdefs.h >>conftest.$ac_ext | |
6752 | cat >>conftest.$ac_ext <<_ACEOF | |
6753 | /* end confdefs.h. */ | |
3a12e572 | 6754 | $ac_includes_default |
3a12e572 UD |
6755 | int |
6756 | main () | |
6757 | { | |
6758 | if ((long double *) 0) | |
6759 | return 0; | |
6760 | if (sizeof (long double)) | |
6761 | return 0; | |
6762 | ; | |
6763 | return 0; | |
6764 | } | |
6765 | _ACEOF | |
6766 | rm -f conftest.$ac_objext | |
6767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6768 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
6769 | ac_status=$? |
6770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6771 | (exit $ac_status); } && | |
8f73811b | 6772 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
6773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6774 | (eval $ac_try) 2>&5 | |
6775 | ac_status=$? | |
6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6777 | (exit $ac_status); }; }; then | |
6778 | ac_cv_type_long_double=yes | |
6779 | else | |
6780 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
6781 | sed 's/^/| /' conftest.$ac_ext >&5 |
6782 | ||
3a12e572 UD |
6783 | ac_cv_type_long_double=no |
6784 | fi | |
8f73811b | 6785 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
6786 | fi |
6787 | echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | |
6788 | echo "${ECHO_T}$ac_cv_type_long_double" >&6 | |
6789 | ||
6790 | echo "$as_me:$LINENO: checking size of long double" >&5 | |
6791 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6 | |
6792 | if test "${ac_cv_sizeof_long_double+set}" = set; then | |
6793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6794 | else | |
6795 | if test "$ac_cv_type_long_double" = yes; then | |
6796 | # The cast to unsigned long works around a bug in the HP C Compiler | |
6797 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6798 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6799 | # This bug is HP SR number 8606223364. | |
6800 | if test "$cross_compiling" = yes; then | |
6801 | # Depending upon the size, compute the lo and hi bounds. | |
6802 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6803 | #line $LINENO "configure" |
2abf9ff1 RM |
6804 | /* confdefs.h. */ |
6805 | _ACEOF | |
6806 | cat confdefs.h >>conftest.$ac_ext | |
6807 | cat >>conftest.$ac_ext <<_ACEOF | |
6808 | /* end confdefs.h. */ | |
3a12e572 | 6809 | $ac_includes_default |
3a12e572 UD |
6810 | int |
6811 | main () | |
6812 | { | |
6813 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)]; | |
6814 | test_array [0] = 0 | |
6815 | ||
6816 | ; | |
6817 | return 0; | |
6818 | } | |
6819 | _ACEOF | |
6820 | rm -f conftest.$ac_objext | |
6821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6822 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
6823 | ac_status=$? |
6824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6825 | (exit $ac_status); } && | |
8f73811b | 6826 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
6827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6828 | (eval $ac_try) 2>&5 | |
6829 | ac_status=$? | |
6830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6831 | (exit $ac_status); }; }; then | |
6832 | ac_lo=0 ac_mid=0 | |
6833 | while :; do | |
6834 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6835 | #line $LINENO "configure" |
2abf9ff1 RM |
6836 | /* confdefs.h. */ |
6837 | _ACEOF | |
6838 | cat confdefs.h >>conftest.$ac_ext | |
6839 | cat >>conftest.$ac_ext <<_ACEOF | |
6840 | /* end confdefs.h. */ | |
3a12e572 | 6841 | $ac_includes_default |
3a12e572 UD |
6842 | int |
6843 | main () | |
6844 | { | |
6845 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)]; | |
6846 | test_array [0] = 0 | |
6847 | ||
6848 | ; | |
6849 | return 0; | |
6850 | } | |
6851 | _ACEOF | |
6852 | rm -f conftest.$ac_objext | |
6853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6854 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
6855 | ac_status=$? |
6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6857 | (exit $ac_status); } && | |
8f73811b | 6858 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
6859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6860 | (eval $ac_try) 2>&5 | |
6861 | ac_status=$? | |
6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6863 | (exit $ac_status); }; }; then | |
6864 | ac_hi=$ac_mid; break | |
6865 | else | |
6866 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
6867 | sed 's/^/| /' conftest.$ac_ext >&5 |
6868 | ||
3a12e572 | 6869 | ac_lo=`expr $ac_mid + 1` |
8f73811b RM |
6870 | if test $ac_lo -le $ac_mid; then |
6871 | ac_lo= ac_hi= | |
6872 | break | |
6873 | fi | |
6874 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
3a12e572 | 6875 | fi |
8f73811b | 6876 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
6877 | done |
6878 | else | |
6879 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
6880 | sed 's/^/| /' conftest.$ac_ext >&5 |
6881 | ||
3a12e572 | 6882 | cat >conftest.$ac_ext <<_ACEOF |
8f73811b | 6883 | #line $LINENO "configure" |
2abf9ff1 RM |
6884 | /* confdefs.h. */ |
6885 | _ACEOF | |
6886 | cat confdefs.h >>conftest.$ac_ext | |
6887 | cat >>conftest.$ac_ext <<_ACEOF | |
6888 | /* end confdefs.h. */ | |
3a12e572 | 6889 | $ac_includes_default |
3a12e572 UD |
6890 | int |
6891 | main () | |
6892 | { | |
6893 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)]; | |
6894 | test_array [0] = 0 | |
6895 | ||
6896 | ; | |
6897 | return 0; | |
6898 | } | |
6899 | _ACEOF | |
6900 | rm -f conftest.$ac_objext | |
6901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6902 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
6903 | ac_status=$? |
6904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6905 | (exit $ac_status); } && | |
8f73811b | 6906 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
6907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6908 | (eval $ac_try) 2>&5 | |
6909 | ac_status=$? | |
6910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6911 | (exit $ac_status); }; }; then | |
6912 | ac_hi=-1 ac_mid=-1 | |
6913 | while :; do | |
6914 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6915 | #line $LINENO "configure" |
2abf9ff1 RM |
6916 | /* confdefs.h. */ |
6917 | _ACEOF | |
6918 | cat confdefs.h >>conftest.$ac_ext | |
6919 | cat >>conftest.$ac_ext <<_ACEOF | |
6920 | /* end confdefs.h. */ | |
3a12e572 | 6921 | $ac_includes_default |
3a12e572 UD |
6922 | int |
6923 | main () | |
6924 | { | |
6925 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)]; | |
6926 | test_array [0] = 0 | |
6927 | ||
6928 | ; | |
6929 | return 0; | |
6930 | } | |
6931 | _ACEOF | |
6932 | rm -f conftest.$ac_objext | |
6933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6934 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
6935 | ac_status=$? |
6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6937 | (exit $ac_status); } && | |
8f73811b | 6938 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
6939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6940 | (eval $ac_try) 2>&5 | |
6941 | ac_status=$? | |
6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6943 | (exit $ac_status); }; }; then | |
6944 | ac_lo=$ac_mid; break | |
6945 | else | |
6946 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
6947 | sed 's/^/| /' conftest.$ac_ext >&5 |
6948 | ||
3a12e572 | 6949 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8f73811b RM |
6950 | if test $ac_mid -le $ac_hi; then |
6951 | ac_lo= ac_hi= | |
6952 | break | |
6953 | fi | |
6954 | ac_mid=`expr 2 '*' $ac_mid` | |
3a12e572 | 6955 | fi |
8f73811b | 6956 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
6957 | done |
6958 | else | |
6959 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
6960 | sed 's/^/| /' conftest.$ac_ext >&5 |
6961 | ||
3a12e572 UD |
6962 | ac_lo= ac_hi= |
6963 | fi | |
8f73811b | 6964 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 | 6965 | fi |
8f73811b | 6966 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
6967 | # Binary search between lo and hi bounds. |
6968 | while test "x$ac_lo" != "x$ac_hi"; do | |
6969 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6970 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 6971 | #line $LINENO "configure" |
2abf9ff1 RM |
6972 | /* confdefs.h. */ |
6973 | _ACEOF | |
6974 | cat confdefs.h >>conftest.$ac_ext | |
6975 | cat >>conftest.$ac_ext <<_ACEOF | |
6976 | /* end confdefs.h. */ | |
3a12e572 | 6977 | $ac_includes_default |
3a12e572 UD |
6978 | int |
6979 | main () | |
6980 | { | |
6981 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)]; | |
6982 | test_array [0] = 0 | |
6983 | ||
6984 | ; | |
6985 | return 0; | |
6986 | } | |
6987 | _ACEOF | |
6988 | rm -f conftest.$ac_objext | |
6989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8f73811b | 6990 | (eval $ac_compile) 2>&5 |
3a12e572 UD |
6991 | ac_status=$? |
6992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6993 | (exit $ac_status); } && | |
8f73811b | 6994 | { ac_try='test -s conftest.$ac_objext' |
3a12e572 UD |
6995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6996 | (eval $ac_try) 2>&5 | |
6997 | ac_status=$? | |
6998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6999 | (exit $ac_status); }; }; then | |
7000 | ac_hi=$ac_mid | |
7001 | else | |
7002 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
7003 | sed 's/^/| /' conftest.$ac_ext >&5 |
7004 | ||
3a12e572 UD |
7005 | ac_lo=`expr '(' $ac_mid ')' + 1` |
7006 | fi | |
8f73811b | 7007 | rm -f conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
7008 | done |
7009 | case $ac_lo in | |
7010 | ?*) ac_cv_sizeof_long_double=$ac_lo;; | |
2abf9ff1 RM |
7011 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77 |
7012 | See \`config.log' for more details." >&5 | |
7013 | echo "$as_me: error: cannot compute sizeof (long double), 77 | |
7014 | See \`config.log' for more details." >&2;} | |
3a12e572 UD |
7015 | { (exit 1); exit 1; }; } ;; |
7016 | esac | |
7017 | else | |
7018 | if test "$cross_compiling" = yes; then | |
2abf9ff1 RM |
7019 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
7020 | See \`config.log' for more details." >&5 | |
7021 | echo "$as_me: error: cannot run test program while cross compiling | |
7022 | See \`config.log' for more details." >&2;} | |
3a12e572 UD |
7023 | { (exit 1); exit 1; }; } |
7024 | else | |
7025 | cat >conftest.$ac_ext <<_ACEOF | |
8f73811b | 7026 | #line $LINENO "configure" |
2abf9ff1 RM |
7027 | /* confdefs.h. */ |
7028 | _ACEOF | |
7029 | cat confdefs.h >>conftest.$ac_ext | |
7030 | cat >>conftest.$ac_ext <<_ACEOF | |
7031 | /* end confdefs.h. */ | |
3a12e572 UD |
7032 | $ac_includes_default |
7033 | long longval () { return (long) (sizeof (long double)); } | |
7034 | unsigned long ulongval () { return (long) (sizeof (long double)); } | |
7035 | #include <stdio.h> | |
7036 | #include <stdlib.h> | |
3a12e572 UD |
7037 | int |
7038 | main () | |
7039 | { | |
7040 | ||
7041 | FILE *f = fopen ("conftest.val", "w"); | |
7042 | if (! f) | |
7043 | exit (1); | |
7044 | if (((long) (sizeof (long double))) < 0) | |
7045 | { | |
7046 | long i = longval (); | |
7047 | if (i != ((long) (sizeof (long double)))) | |
7048 | exit (1); | |
7049 | fprintf (f, "%ld\n", i); | |
7050 | } | |
7051 | else | |
7052 | { | |
7053 | unsigned long i = ulongval (); | |
7054 | if (i != ((long) (sizeof (long double)))) | |
7055 | exit (1); | |
7056 | fprintf (f, "%lu\n", i); | |
7057 | } | |
7058 | exit (ferror (f) || fclose (f) != 0); | |
7059 | ||
7060 | ; | |
7061 | return 0; | |
7062 | } | |
7063 | _ACEOF | |
7064 | rm -f conftest$ac_exeext | |
7065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7066 | (eval $ac_link) 2>&5 | |
7067 | ac_status=$? | |
7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7071 | (eval $ac_try) 2>&5 | |
7072 | ac_status=$? | |
7073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7074 | (exit $ac_status); }; }; then | |
7075 | ac_cv_sizeof_long_double=`cat conftest.val` | |
7076 | else | |
7077 | echo "$as_me: program exited with status $ac_status" >&5 | |
7078 | echo "$as_me: failed program was:" >&5 | |
2abf9ff1 RM |
7079 | sed 's/^/| /' conftest.$ac_ext >&5 |
7080 | ||
3a12e572 | 7081 | ( exit $ac_status ) |
2abf9ff1 RM |
7082 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77 |
7083 | See \`config.log' for more details." >&5 | |
7084 | echo "$as_me: error: cannot compute sizeof (long double), 77 | |
7085 | See \`config.log' for more details." >&2;} | |
3a12e572 UD |
7086 | { (exit 1); exit 1; }; } |
7087 | fi | |
8f73811b | 7088 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
7089 | fi |
7090 | fi | |
7091 | rm -f conftest.val | |
7092 | else | |
7093 | ac_cv_sizeof_long_double=0 | |
7094 | fi | |
7095 | fi | |
7096 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 | |
7097 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6 | |
7098 | cat >>confdefs.h <<_ACEOF | |
8ed1e7d5 | 7099 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
3a12e572 | 7100 | _ACEOF |
8ed1e7d5 GK |
7101 | |
7102 | ||
7103 | sizeof_long_double=$ac_cv_sizeof_long_double | |
7104 | ||
7105 | ||
cd6ede75 UD |
7106 | ### End of automated tests. |
7107 | ### Now run sysdeps configure fragments. | |
7108 | ||
cb343854 | 7109 | # They also can set these variables. |
b43b13ac | 7110 | use_ldconfig=no |
cb343854 | 7111 | ldd_rewrite_script=no |
77259608 | 7112 | libc_cv_sysconfdir=$sysconfdir |
74bd2300 | 7113 | libc_cv_gcc_unwind_find_fde=no |
e2fd3cbe | 7114 | libc_cv_idn=no |
cb343854 | 7115 | |
cd6ede75 UD |
7116 | # Iterate over all the sysdep directories we will use, running their |
7117 | # configure fragments, and looking for a uname implementation. | |
7118 | uname= | |
7119 | for dir in $sysnames; do | |
7120 | case $dir in | |
7121 | /*) dest=$dir ;; | |
7122 | *) dest=$srcdir/$dir ;; | |
7123 | esac | |
7124 | if test -r $dest/configure; then | |
d1149385 RM |
7125 | echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5 |
7126 | echo "${ECHO_T}running configure fragment for $dir" >&6 | |
cd6ede75 UD |
7127 | . $dest/configure |
7128 | fi | |
7129 | ||
7130 | if test -z "$uname"; then | |
7131 | if test -r $dest/uname.c || | |
7132 | test -r $dest/uname.S || | |
7133 | { test -r $dest/syscalls.list && | |
7134 | grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then | |
7135 | uname=$dir | |
7136 | fi | |
7137 | fi | |
7138 | done | |
7139 | ||
74bd2300 | 7140 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
3a12e572 | 7141 | cat >>confdefs.h <<\_ACEOF |
74bd2300 | 7142 | #define EXPORT_UNWIND_FIND_FDE 1 |
3a12e572 | 7143 | _ACEOF |
74bd2300 UD |
7144 | |
7145 | fi | |
7146 | ||
7147 | ||
cd6ede75 UD |
7148 | # If we will use the generic uname implementation, we must figure out what |
7149 | # it will say by examining the system, and write the results in config-name.h. | |
7150 | if test "$uname" = "sysdeps/generic"; then | |
7151 | ||
7152 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
7153 | if test $uname_sysname != $config_os; then | |
7154 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
7155 | fi | |
7156 | ||
3a12e572 UD |
7157 | echo "$as_me:$LINENO: checking OS release for uname" >&5 |
7158 | echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6 | |
7159 | if test "${libc_cv_uname_release+set}" = set; then | |
7160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 7161 | else |
3a12e572 UD |
7162 | if test -r /vmunix; then |
7163 | kernel_id=`strings /vmunix | grep UNIX` | |
7164 | elif test -r /dynix; then | |
7165 | kernel_id=`strings /dynix | grep DYNIX` | |
7166 | else | |
7167 | kernel_id= | |
7168 | fi | |
7169 | ||
7170 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
cd6ede75 UD |
7171 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ |
7172 | != x$config_release; then | |
7173 | # The configuration release is a substring of the kernel release. | |
7174 | libc_cv_uname_release=$kernel_release | |
7175 | elif test x$config_release != x; then | |
7176 | libc_cv_uname_release=$config_release | |
7177 | elif test x$kernel_release != x; then | |
7178 | libc_cv_uname_release=$kernel_release | |
7179 | else | |
7180 | libc_cv_uname_release=unknown | |
7181 | fi | |
7182 | fi | |
3a12e572 UD |
7183 | echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5 |
7184 | echo "${ECHO_T}$libc_cv_uname_release" >&6 | |
cd6ede75 UD |
7185 | uname_release="$libc_cv_uname_release" |
7186 | ||
3a12e572 UD |
7187 | echo "$as_me:$LINENO: checking OS version for uname" >&5 |
7188 | echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6 | |
7189 | if test "${libc_cv_uname_version+set}" = set; then | |
7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 7191 | else |
3a12e572 UD |
7192 | if test -r /vmunix; then |
7193 | kernel_id=`strings /vmunix | grep UNIX` | |
7194 | elif test -r /dynix; then | |
7195 | kernel_id=`strings /dynix | grep DYNIX` | |
7196 | else | |
7197 | kernel_id= | |
7198 | fi | |
7199 | ||
7200 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
cd6ede75 UD |
7201 | if test -n "$kernel_version"; then |
7202 | libc_cv_uname_version="$kernel_version" | |
7203 | else | |
7204 | libc_cv_uname_version=unknown | |
7205 | fi | |
7206 | fi | |
3a12e572 UD |
7207 | echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5 |
7208 | echo "${ECHO_T}$libc_cv_uname_version" >&6 | |
cd6ede75 UD |
7209 | uname_version="$libc_cv_uname_version" |
7210 | ||
7211 | config_uname=config-name.h:config-name.in | |
7212 | else | |
7213 | # For non-generic uname, we don't need to create config-name.h at all. | |
7214 | config_uname= | |
7215 | fi | |
7216 | ||
3a12e572 | 7217 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 7218 | #define USE_IN_LIBIO 1 |
3a12e572 | 7219 | _ACEOF |
a8c01776 | 7220 | |
cd6ede75 | 7221 | |
a53bad16 UD |
7222 | # Test for old glibc 2.0.x headers so that they can be removed properly |
7223 | # Search only in includedir. | |
3a12e572 UD |
7224 | echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5 |
7225 | echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6 | |
011ce8ed | 7226 | if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h" |
a53bad16 UD |
7227 | then |
7228 | old_glibc_headers=yes | |
7229 | else | |
7230 | old_glibc_headers=no | |
7231 | fi | |
3a12e572 UD |
7232 | echo "$as_me:$LINENO: result: $old_glibc_headers" >&5 |
7233 | echo "${ECHO_T}$old_glibc_headers" >&6 | |
a53bad16 | 7234 | if test ${old_glibc_headers} = yes; then |
3a12e572 UD |
7235 | { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5 |
7236 | echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;} | |
7237 | { echo "$as_me:$LINENO: WARNING: *** be removed." >&5 | |
7238 | echo "$as_me: WARNING: *** be removed." >&2;} | |
a53bad16 | 7239 | fi |
26b4d766 | 7240 | |
cd6ede75 UD |
7241 | |
7242 | ||
7243 | ||
7244 | ||
7245 | ||
7246 | ||
cb343854 | 7247 | |
dff14448 | 7248 | |
77259608 | 7249 | |
3a12e572 | 7250 | |
bcd5f356 | 7251 | |
cd6ede75 | 7252 | if test $gnu_ld = yes; then |
3a12e572 | 7253 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 7254 | #define HAVE_GNU_LD 1 |
3a12e572 | 7255 | _ACEOF |
cd6ede75 UD |
7256 | |
7257 | fi | |
7258 | if test $gnu_as = yes; then | |
3a12e572 | 7259 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 7260 | #define HAVE_GNU_AS 1 |
3a12e572 | 7261 | _ACEOF |
cd6ede75 UD |
7262 | |
7263 | fi | |
7264 | if test $elf = yes; then | |
3a12e572 | 7265 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 7266 | #define HAVE_ELF 1 |
3a12e572 | 7267 | _ACEOF |
cd6ede75 UD |
7268 | |
7269 | fi | |
5af3245a | 7270 | if test $xcoff = yes; then |
3a12e572 | 7271 | cat >>confdefs.h <<\_ACEOF |
5af3245a | 7272 | #define HAVE_XCOFF 1 |
3a12e572 | 7273 | _ACEOF |
5af3245a UD |
7274 | |
7275 | fi | |
cd6ede75 UD |
7276 | |
7277 | ||
650425ce | 7278 | |
cd6ede75 UD |
7279 | if test $shared = default; then |
7280 | if test $gnu_ld = yes; then | |
7281 | shared=$elf | |
7282 | else | |
7283 | # For now we do not assume shared libs are available. In future more | |
7284 | # tests might become available. | |
7285 | shared=no | |
7286 | fi | |
7287 | fi | |
7288 | ||
e2fd3cbe UD |
7289 | if test x"$libc_cv_idn" = xyes; then |
7290 | cat >>confdefs.h <<\_ACEOF | |
7291 | #define HAVE_LIBIDN 1 | |
7292 | _ACEOF | |
7293 | ||
7294 | fi | |
7295 | ||
3a12e572 UD |
7296 | echo "$as_me:$LINENO: checking whether -fPIC is default" >&5 |
7297 | echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6 | |
7298 | if test "${pic_default+set}" = set; then | |
7299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cc3fa755 UD |
7300 | else |
7301 | pic_default=yes | |
7302 | cat > conftest.c <<EOF | |
9756dfe1 | 7303 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
7304 | # error PIC is default. |
7305 | #endif | |
7306 | EOF | |
7307 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
7308 | pic_default=no | |
7309 | fi | |
7310 | rm -f conftest.* | |
7311 | fi | |
3a12e572 UD |
7312 | echo "$as_me:$LINENO: result: $pic_default" >&5 |
7313 | echo "${ECHO_T}$pic_default" >&6 | |
cc3fa755 UD |
7314 | |
7315 | ||
7316 | ||
cd6ede75 UD |
7317 | |
7318 | ||
7319 | ||
7320 | ||
7321 | ||
7322 | ||
7323 | ||
7cabd57c UD |
7324 | case "$add_ons" in |
7325 | *door*) linux_doors=yes ;; | |
7326 | *) linux_doors=no ;; | |
7327 | esac | |
7328 | ||
7329 | ||
746f4007 RM |
7330 | |
7331 | ||
cd6ede75 UD |
7332 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then |
7333 | config_makefile= | |
7334 | else | |
7335 | config_makefile=Makefile | |
7336 | fi | |
7337 | ||
ee74a442 UD |
7338 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
7339 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
7340 | ||
cd6ede75 UD |
7341 | |
7342 | ||
4df8c11d | 7343 | ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}" |
f4b07664 RM |
7344 | |
7345 | ac_config_commands="$ac_config_commands default" | |
7346 | ||
3a12e572 | 7347 | cat >confcache <<\_ACEOF |
cd6ede75 UD |
7348 | # This file is a shell script that caches the results of configure |
7349 | # tests run on this system so they can be shared between configure | |
3a12e572 UD |
7350 | # scripts and configure runs, see configure's option --config-cache. |
7351 | # It is not useful on other systems. If it contains results you don't | |
7352 | # want to keep, you may remove or edit it. | |
cd6ede75 | 7353 | # |
3a12e572 UD |
7354 | # config.status only pays attention to the cache file if you give it |
7355 | # the --recheck option to rerun configure. | |
cd6ede75 | 7356 | # |
f4b07664 | 7357 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3a12e572 UD |
7358 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
7359 | # following values. | |
7360 | ||
7361 | _ACEOF | |
7362 | ||
cd6ede75 UD |
7363 | # The following way of writing the cache mishandles newlines in values, |
7364 | # but we know of no workaround that is simple, portable, and efficient. | |
7365 | # So, don't put newlines in cache variables' values. | |
7366 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7367 | # and sets the high bit in the cache file unless we assign to the vars. | |
3a12e572 UD |
7368 | { |
7369 | (set) 2>&1 | | |
7370 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7371 | *ac_space=\ *) | |
7372 | # `set' does not quote correctly, so add quotes (double-quote | |
7373 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7374 | sed -n \ | |
8f73811b RM |
7375 | "s/'/'\\\\''/g; |
7376 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3a12e572 UD |
7377 | ;; |
7378 | *) | |
7379 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7380 | sed -n \ | |
8f73811b | 7381 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
3a12e572 UD |
7382 | ;; |
7383 | esac; | |
7384 | } | | |
7385 | sed ' | |
7386 | t clear | |
7387 | : clear | |
7388 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7389 | t end | |
7390 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7391 | : end' >>confcache | |
2abf9ff1 | 7392 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
cd6ede75 | 7393 | if test -w $cache_file; then |
3a12e572 UD |
7394 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7395 | cat confcache >$cache_file | |
cd6ede75 UD |
7396 | else |
7397 | echo "not updating unwritable cache $cache_file" | |
7398 | fi | |
7399 | fi | |
7400 | rm -f confcache | |
7401 | ||
cd6ede75 UD |
7402 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7403 | # Let make expand exec_prefix. | |
7404 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7405 | ||
3a12e572 UD |
7406 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7407 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7408 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7409 | # (actually we leave an empty line to preserve line numbers). | |
cd6ede75 | 7410 | if test "x$srcdir" = x.; then |
8f73811b | 7411 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
3a12e572 UD |
7412 | s/:*\$(srcdir):*/:/; |
7413 | s/:*\${srcdir}:*/:/; | |
7414 | s/:*@srcdir@:*/:/; | |
8f73811b | 7415 | s/^\([^=]*=[ ]*\):*/\1/; |
3a12e572 | 7416 | s/:*$//; |
8f73811b | 7417 | s/^[^=]*=[ ]*$//; |
3a12e572 | 7418 | }' |
cd6ede75 UD |
7419 | fi |
7420 | ||
cd6ede75 UD |
7421 | DEFS=-DHAVE_CONFIG_H |
7422 | ||
f4b07664 RM |
7423 | ac_libobjs= |
7424 | ac_ltlibobjs= | |
7425 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7426 | # 1. Remove the extension, and $U if already installed. | |
7427 | ac_i=`echo "$ac_i" | | |
8f73811b | 7428 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
f4b07664 RM |
7429 | # 2. Add them. |
7430 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7431 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7432 | done | |
7433 | LIBOBJS=$ac_libobjs | |
7434 | ||
7435 | LTLIBOBJS=$ac_ltlibobjs | |
7436 | ||
7437 | ||
cd6ede75 | 7438 | |
3a12e572 UD |
7439 | : ${CONFIG_STATUS=./config.status} |
7440 | ac_clean_files_save=$ac_clean_files | |
7441 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7442 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
7443 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7444 | cat >$CONFIG_STATUS <<_ACEOF | |
7445 | #! $SHELL | |
7446 | # Generated by $as_me. | |
cd6ede75 | 7447 | # Run this file to recreate the current configuration. |
cd6ede75 | 7448 | # Compiler output produced by configure, useful for debugging |
3a12e572 | 7449 | # configure, is in config.log if it exists. |
cd6ede75 | 7450 | |
3a12e572 | 7451 | debug=false |
2abf9ff1 RM |
7452 | ac_cs_recheck=false |
7453 | ac_cs_silent=false | |
3a12e572 UD |
7454 | SHELL=\${CONFIG_SHELL-$SHELL} |
7455 | _ACEOF | |
7456 | ||
7457 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3a12e572 UD |
7458 | ## --------------------- ## |
7459 | ## M4sh Initialization. ## | |
7460 | ## --------------------- ## | |
7461 | ||
7462 | # Be Bourne compatible | |
7463 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7464 | emulate sh | |
7465 | NULLCMD=: | |
f4b07664 RM |
7466 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
7467 | # is contrary to our usage. Disable this feature. | |
7468 | alias -g '${1+"$@"}'='"$@"' | |
3a12e572 UD |
7469 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
7470 | set -o posix | |
7471 | fi | |
7472 | ||
3a12e572 | 7473 | # Support unset when possible. |
8f73811b | 7474 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
3a12e572 UD |
7475 | as_unset=unset |
7476 | else | |
7477 | as_unset=false | |
7478 | fi | |
7479 | ||
f4b07664 RM |
7480 | |
7481 | # Work around bugs in pre-3.0 UWIN ksh. | |
7482 | $as_unset ENV MAIL MAILPATH | |
7483 | PS1='$ ' | |
7484 | PS2='> ' | |
7485 | PS4='+ ' | |
7486 | ||
7487 | # NLS nuisances. | |
2abf9ff1 RM |
7488 | for as_var in \ |
7489 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7490 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7491 | LC_TELEPHONE LC_TIME | |
f4b07664 | 7492 | do |
8f73811b | 7493 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
f4b07664 RM |
7494 | eval $as_var=C; export $as_var |
7495 | else | |
7496 | $as_unset $as_var | |
7497 | fi | |
7498 | done | |
7499 | ||
7500 | # Required to use basename. | |
7501 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7502 | as_expr=expr | |
7503 | else | |
7504 | as_expr=false | |
7505 | fi | |
7506 | ||
7507 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
7508 | as_basename=basename | |
7509 | else | |
7510 | as_basename=false | |
7511 | fi | |
3a12e572 UD |
7512 | |
7513 | ||
7514 | # Name of the executable. | |
f4b07664 | 7515 | as_me=`$as_basename "$0" || |
3a12e572 UD |
7516 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7517 | X"$0" : 'X\(//\)$' \| \ | |
7518 | X"$0" : 'X\(/\)$' \| \ | |
7519 | . : '\(.\)' 2>/dev/null || | |
7520 | echo X/"$0" | | |
7521 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7522 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7523 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7524 | s/.*/./; q'` | |
7525 | ||
f4b07664 | 7526 | |
3a12e572 UD |
7527 | # PATH needs CR, and LINENO needs CR and PATH. |
7528 | # Avoid depending upon Character Ranges. | |
7529 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7530 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7531 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7532 | as_cr_digits='0123456789' | |
7533 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7534 | ||
7535 | # The user is always right. | |
7536 | if test "${PATH_SEPARATOR+set}" != set; then | |
2abf9ff1 RM |
7537 | echo "#! /bin/sh" >conf$$.sh |
7538 | echo "exit 0" >>conf$$.sh | |
7539 | chmod +x conf$$.sh | |
7540 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3a12e572 UD |
7541 | PATH_SEPARATOR=';' |
7542 | else | |
7543 | PATH_SEPARATOR=: | |
7544 | fi | |
2abf9ff1 | 7545 | rm -f conf$$.sh |
3a12e572 UD |
7546 | fi |
7547 | ||
7548 | ||
7549 | as_lineno_1=$LINENO | |
7550 | as_lineno_2=$LINENO | |
7551 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7552 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7553 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7554 | # Find who we are. Look in the path if we contain no path at all | |
7555 | # relative or not. | |
7556 | case $0 in | |
7557 | *[\\/]* ) as_myself=$0 ;; | |
7558 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7559 | for as_dir in $PATH | |
cd6ede75 | 7560 | do |
3a12e572 UD |
7561 | IFS=$as_save_IFS |
7562 | test -z "$as_dir" && as_dir=. | |
7563 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7564 | done | |
7565 | ||
7566 | ;; | |
cd6ede75 | 7567 | esac |
3a12e572 UD |
7568 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
7569 | # in which case we are not to be found in the path. | |
7570 | if test "x$as_myself" = x; then | |
7571 | as_myself=$0 | |
7572 | fi | |
7573 | if test ! -f "$as_myself"; then | |
7574 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7575 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7576 | { (exit 1); exit 1; }; } | |
7577 | fi | |
7578 | case $CONFIG_SHELL in | |
7579 | '') | |
7580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7581 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7582 | do | |
7583 | IFS=$as_save_IFS | |
7584 | test -z "$as_dir" && as_dir=. | |
7585 | for as_base in sh bash ksh sh5; do | |
7586 | case $as_dir in | |
7587 | /*) | |
7588 | if ("$as_dir/$as_base" -c ' | |
7589 | as_lineno_1=$LINENO | |
7590 | as_lineno_2=$LINENO | |
7591 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7592 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7593 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
f4b07664 RM |
7594 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
7595 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
3a12e572 UD |
7596 | CONFIG_SHELL=$as_dir/$as_base |
7597 | export CONFIG_SHELL | |
7598 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7599 | fi;; | |
7600 | esac | |
7601 | done | |
cd6ede75 | 7602 | done |
3a12e572 UD |
7603 | ;; |
7604 | esac | |
cd6ede75 | 7605 | |
3a12e572 UD |
7606 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
7607 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7608 | # line-number line before each line; the second 'sed' does the real | |
7609 | # work. The second script uses 'N' to pair each line-number line | |
7610 | # with the numbered line, and appends trailing '-' during | |
7611 | # substitution so that $LINENO is not a special case at line end. | |
7612 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7613 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7614 | sed '=' <$as_myself | | |
7615 | sed ' | |
7616 | N | |
7617 | s,$,-, | |
7618 | : loop | |
7619 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7620 | t loop | |
7621 | s,-$,, | |
7622 | s,^['$as_cr_digits']*\n,, | |
7623 | ' >$as_me.lineno && | |
7624 | chmod +x $as_me.lineno || | |
7625 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7626 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7627 | { (exit 1); exit 1; }; } | |
7628 | ||
7629 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7630 | # (the dirname of $[0] is not the place where we might find the | |
7631 | # original and so on. Autoconf is especially sensible to this). | |
7632 | . ./$as_me.lineno | |
7633 | # Exit status is that of the last command. | |
7634 | exit | |
7635 | } | |
cd6ede75 | 7636 | |
cd6ede75 | 7637 | |
3a12e572 UD |
7638 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
7639 | *c*,-n*) ECHO_N= ECHO_C=' | |
7640 | ' ECHO_T=' ' ;; | |
7641 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7642 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7643 | esac | |
cd6ede75 | 7644 | |
3a12e572 UD |
7645 | if expr a : '\(a\)' >/dev/null 2>&1; then |
7646 | as_expr=expr | |
7647 | else | |
7648 | as_expr=false | |
7649 | fi | |
cd6ede75 | 7650 | |
3a12e572 UD |
7651 | rm -f conf$$ conf$$.exe conf$$.file |
7652 | echo >conf$$.file | |
7653 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7654 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7655 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7656 | if test -f conf$$.exe; then | |
7657 | # Don't use ln at all; we don't have any links | |
7658 | as_ln_s='cp -p' | |
cd6ede75 | 7659 | else |
3a12e572 | 7660 | as_ln_s='ln -s' |
cd6ede75 | 7661 | fi |
3a12e572 UD |
7662 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7663 | as_ln_s=ln | |
7664 | else | |
7665 | as_ln_s='cp -p' | |
cd6ede75 | 7666 | fi |
3a12e572 | 7667 | rm -f conf$$ conf$$.exe conf$$.file |
cd6ede75 | 7668 | |
f4b07664 RM |
7669 | if mkdir -p . 2>/dev/null; then |
7670 | as_mkdir_p=: | |
7671 | else | |
7672 | as_mkdir_p=false | |
7673 | fi | |
7674 | ||
3a12e572 | 7675 | as_executable_p="test -f" |
cd6ede75 | 7676 | |
3a12e572 | 7677 | # Sed expression to map a string onto a valid CPP name. |
8f73811b | 7678 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
3a12e572 UD |
7679 | |
7680 | # Sed expression to map a string onto a valid variable name. | |
8f73811b | 7681 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
3a12e572 UD |
7682 | |
7683 | ||
7684 | # IFS | |
7685 | # We need space, tab and new line, in precisely that order. | |
7686 | as_nl=' | |
7687 | ' | |
7688 | IFS=" $as_nl" | |
7689 | ||
7690 | # CDPATH. | |
f4b07664 | 7691 | $as_unset CDPATH |
3a12e572 UD |
7692 | |
7693 | exec 6>&1 | |
7694 | ||
7695 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
7696 | # report actual input values of CONFIG_FILES etc. instead of their | |
7697 | # values after options handling. Logging --version etc. is OK. | |
7698 | exec 5>>config.log | |
7699 | { | |
7700 | echo | |
7701 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7702 | ## Running $as_me. ## | |
7703 | _ASBOX | |
7704 | } >&5 | |
7705 | cat >&5 <<_CSEOF | |
7706 | ||
f4b07664 | 7707 | This file was extended by GNU C Library $as_me (see version.h), which was |
8f73811b | 7708 | generated by GNU Autoconf 2.57. Invocation command line was |
3a12e572 UD |
7709 | |
7710 | CONFIG_FILES = $CONFIG_FILES | |
7711 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7712 | CONFIG_LINKS = $CONFIG_LINKS | |
7713 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7714 | $ $0 $@ | |
7715 | ||
7716 | _CSEOF | |
7717 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7718 | echo >&5 | |
7719 | _ACEOF | |
7720 | ||
7721 | # Files that config.status was made for. | |
7722 | if test -n "$ac_config_files"; then | |
7723 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7724 | fi | |
7725 | ||
7726 | if test -n "$ac_config_headers"; then | |
7727 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7728 | fi | |
7729 | ||
7730 | if test -n "$ac_config_links"; then | |
7731 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7732 | fi | |
7733 | ||
7734 | if test -n "$ac_config_commands"; then | |
7735 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7736 | fi | |
7737 | ||
7738 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7739 | ||
7740 | ac_cs_usage="\ | |
7741 | \`$as_me' instantiates files from templates according to the | |
7742 | current configuration. | |
7743 | ||
7744 | Usage: $0 [OPTIONS] [FILE]... | |
7745 | ||
7746 | -h, --help print this help, then exit | |
7747 | -V, --version print version number, then exit | |
2abf9ff1 | 7748 | -q, --quiet do not print progress messages |
3a12e572 UD |
7749 | -d, --debug don't remove temporary files |
7750 | --recheck update $as_me by reconfiguring in the same conditions | |
7751 | --file=FILE[:TEMPLATE] | |
8f73811b | 7752 | instantiate the configuration file FILE |
3a12e572 | 7753 | --header=FILE[:TEMPLATE] |
8f73811b | 7754 | instantiate the configuration header FILE |
3a12e572 UD |
7755 | |
7756 | Configuration files: | |
7757 | $config_files | |
7758 | ||
7759 | Configuration headers: | |
7760 | $config_headers | |
7761 | ||
3a12e572 UD |
7762 | Configuration commands: |
7763 | $config_commands | |
7764 | ||
7765 | Report bugs to <bug-autoconf@gnu.org>." | |
7766 | _ACEOF | |
7767 | ||
7768 | cat >>$CONFIG_STATUS <<_ACEOF | |
7769 | ac_cs_version="\\ | |
f4b07664 | 7770 | GNU C Library config.status (see version.h) |
8f73811b | 7771 | configured by $0, generated by GNU Autoconf 2.57, |
3a12e572 UD |
7772 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
7773 | ||
8f73811b RM |
7774 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
7775 | Free Software Foundation, Inc. | |
3a12e572 UD |
7776 | This config.status script is free software; the Free Software Foundation |
7777 | gives unlimited permission to copy, distribute and modify it." | |
7778 | srcdir=$srcdir | |
7779 | INSTALL="$INSTALL" | |
7780 | _ACEOF | |
7781 | ||
7782 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7783 | # If no file are specified by the user, then we need to provide default | |
7784 | # value. By we need to know if files were specified by the user. | |
7785 | ac_need_defaults=: | |
7786 | while test $# != 0 | |
7787 | do | |
7788 | case $1 in | |
7789 | --*=*) | |
7790 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7791 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
f4b07664 RM |
7792 | ac_shift=: |
7793 | ;; | |
7794 | -*) | |
7795 | ac_option=$1 | |
7796 | ac_optarg=$2 | |
7797 | ac_shift=shift | |
3a12e572 | 7798 | ;; |
3a12e572 UD |
7799 | *) # This is not an option, so the user has probably given explicit |
7800 | # arguments. | |
f4b07664 | 7801 | ac_option=$1 |
3a12e572 | 7802 | ac_need_defaults=false;; |
cd6ede75 UD |
7803 | esac |
7804 | ||
f4b07664 | 7805 | case $ac_option in |
3a12e572 UD |
7806 | # Handling of the options. |
7807 | _ACEOF | |
fbd90f6c | 7808 | cat >>$CONFIG_STATUS <<\_ACEOF |
2abf9ff1 RM |
7809 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7810 | ac_cs_recheck=: ;; | |
3a12e572 UD |
7811 | --version | --vers* | -V ) |
7812 | echo "$ac_cs_version"; exit 0 ;; | |
7813 | --he | --h) | |
7814 | # Conflict between --help and --header | |
7815 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
7816 | Try \`$0 --help' for more information." >&5 | |
7817 | echo "$as_me: error: ambiguous option: $1 | |
7818 | Try \`$0 --help' for more information." >&2;} | |
7819 | { (exit 1); exit 1; }; };; | |
7820 | --help | --hel | -h ) | |
7821 | echo "$ac_cs_usage"; exit 0 ;; | |
7822 | --debug | --d* | -d ) | |
7823 | debug=: ;; | |
7824 | --file | --fil | --fi | --f ) | |
f4b07664 RM |
7825 | $ac_shift |
7826 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
3a12e572 UD |
7827 | ac_need_defaults=false;; |
7828 | --header | --heade | --head | --hea ) | |
f4b07664 RM |
7829 | $ac_shift |
7830 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
3a12e572 | 7831 | ac_need_defaults=false;; |
2abf9ff1 RM |
7832 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7833 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7834 | ac_cs_silent=: ;; | |
3a12e572 UD |
7835 | |
7836 | # This is an error. | |
7837 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7838 | Try \`$0 --help' for more information." >&5 | |
7839 | echo "$as_me: error: unrecognized option: $1 | |
7840 | Try \`$0 --help' for more information." >&2;} | |
7841 | { (exit 1); exit 1; }; } ;; | |
7842 | ||
7843 | *) ac_config_targets="$ac_config_targets $1" ;; | |
cd6ede75 | 7844 | |
3a12e572 UD |
7845 | esac |
7846 | shift | |
7847 | done | |
7848 | ||
2abf9ff1 RM |
7849 | ac_configure_extra_args= |
7850 | ||
7851 | if $ac_cs_silent; then | |
7852 | exec 6>/dev/null | |
7853 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7854 | fi | |
7855 | ||
7856 | _ACEOF | |
7857 | cat >>$CONFIG_STATUS <<_ACEOF | |
7858 | if \$ac_cs_recheck; then | |
7859 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7860 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7861 | fi | |
7862 | ||
3a12e572 UD |
7863 | _ACEOF |
7864 | ||
7865 | cat >>$CONFIG_STATUS <<_ACEOF | |
7866 | # | |
7867 | # INIT-COMMANDS section. | |
7868 | # | |
7869 | ||
7870 | config_vars='$config_vars' | |
7871 | ||
7872 | _ACEOF | |
7873 | ||
7874 | ||
7875 | ||
7876 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7877 | for ac_config_target in $ac_config_targets | |
7878 | do | |
7879 | case "$ac_config_target" in | |
7880 | # Handling of arguments. | |
7881 | "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
3a12e572 UD |
7882 | "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;; |
7883 | "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;; | |
3a12e572 UD |
7884 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
7885 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7886 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7887 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7888 | { (exit 1); exit 1; }; };; | |
7889 | esac | |
7890 | done | |
7891 | ||
7892 | # If the user did not use the arguments to specify the items to instantiate, | |
7893 | # then the envvar interface is used. Set only those that are not. | |
7894 | # We use the long form for the default assignment because of an extremely | |
7895 | # bizarre bug on SunOS 4.1.3. | |
7896 | if $ac_need_defaults; then | |
7897 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7898 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3a12e572 UD |
7899 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
7900 | fi | |
7901 | ||
2abf9ff1 RM |
7902 | # Have a temporary directory for convenience. Make it in the build tree |
7903 | # simply because there is no reason to put it here, and in addition, | |
7904 | # creating and moving files from /tmp can sometimes cause problems. | |
3a12e572 UD |
7905 | # Create a temporary directory, and hook for its removal unless debugging. |
7906 | $debug || | |
7907 | { | |
7908 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7909 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7910 | } | |
7911 | ||
7912 | # Create a (secure) tmp directory for tmp files. | |
2abf9ff1 | 7913 | |
3a12e572 | 7914 | { |
2abf9ff1 | 7915 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
3a12e572 UD |
7916 | test -n "$tmp" && test -d "$tmp" |
7917 | } || | |
7918 | { | |
2abf9ff1 | 7919 | tmp=./confstat$$-$RANDOM |
3a12e572 UD |
7920 | (umask 077 && mkdir $tmp) |
7921 | } || | |
7922 | { | |
2abf9ff1 | 7923 | echo "$me: cannot create a temporary directory in ." >&2 |
3a12e572 UD |
7924 | { (exit 1); exit 1; } |
7925 | } | |
7926 | ||
7927 | _ACEOF | |
7928 | ||
7929 | cat >>$CONFIG_STATUS <<_ACEOF | |
7930 | ||
7931 | # | |
7932 | # CONFIG_FILES section. | |
7933 | # | |
7934 | ||
7935 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7936 | # This happens for instance when ./config.status config.h | |
7937 | if test -n "\$CONFIG_FILES"; then | |
7938 | # Protect against being on the right side of a sed subst in config.status. | |
7939 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7940 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7941 | s,@SHELL@,$SHELL,;t t | |
7942 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7943 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7944 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7945 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7946 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7947 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7948 | s,@exec_prefix@,$exec_prefix,;t t | |
7949 | s,@prefix@,$prefix,;t t | |
7950 | s,@program_transform_name@,$program_transform_name,;t t | |
7951 | s,@bindir@,$bindir,;t t | |
7952 | s,@sbindir@,$sbindir,;t t | |
7953 | s,@libexecdir@,$libexecdir,;t t | |
7954 | s,@datadir@,$datadir,;t t | |
7955 | s,@sysconfdir@,$sysconfdir,;t t | |
7956 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7957 | s,@localstatedir@,$localstatedir,;t t | |
7958 | s,@libdir@,$libdir,;t t | |
7959 | s,@includedir@,$includedir,;t t | |
7960 | s,@oldincludedir@,$oldincludedir,;t t | |
7961 | s,@infodir@,$infodir,;t t | |
7962 | s,@mandir@,$mandir,;t t | |
7963 | s,@build_alias@,$build_alias,;t t | |
7964 | s,@host_alias@,$host_alias,;t t | |
7965 | s,@target_alias@,$target_alias,;t t | |
7966 | s,@DEFS@,$DEFS,;t t | |
7967 | s,@ECHO_C@,$ECHO_C,;t t | |
7968 | s,@ECHO_N@,$ECHO_N,;t t | |
7969 | s,@ECHO_T@,$ECHO_T,;t t | |
7970 | s,@LIBS@,$LIBS,;t t | |
7971 | s,@with_fp@,$with_fp,;t t | |
7972 | s,@with_cvs@,$with_cvs,;t t | |
7dbde9db | 7973 | s,@enable_check_abi@,$enable_check_abi,;t t |
3a12e572 | 7974 | s,@oldest_abi@,$oldest_abi,;t t |
4df8c11d | 7975 | s,@bindnow@,$bindnow,;t t |
3a12e572 UD |
7976 | s,@force_install@,$force_install,;t t |
7977 | s,@all_warnings@,$all_warnings,;t t | |
7978 | s,@build@,$build,;t t | |
7979 | s,@build_cpu@,$build_cpu,;t t | |
7980 | s,@build_vendor@,$build_vendor,;t t | |
7981 | s,@build_os@,$build_os,;t t | |
7982 | s,@host@,$host,;t t | |
7983 | s,@host_cpu@,$host_cpu,;t t | |
7984 | s,@host_vendor@,$host_vendor,;t t | |
7985 | s,@host_os@,$host_os,;t t | |
8f73811b RM |
7986 | s,@subdirs@,$subdirs,;t t |
7987 | s,@add_ons@,$add_ons,;t t | |
3a12e572 UD |
7988 | s,@base_machine@,$base_machine,;t t |
7989 | s,@sysnames@,$sysnames,;t t | |
7990 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7991 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7992 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7993 | s,@LN_S@,$LN_S,;t t | |
3a12e572 | 7994 | s,@CC@,$CC,;t t |
3a12e572 UD |
7995 | s,@CFLAGS@,$CFLAGS,;t t |
7996 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7997 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7998 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7999 | s,@OBJEXT@,$OBJEXT,;t t | |
8000 | s,@BUILD_CC@,$BUILD_CC,;t t | |
8001 | s,@cross_compiling@,$cross_compiling,;t t | |
8002 | s,@CPP@,$CPP,;t t | |
925c3c5c UD |
8003 | s,@CXX@,$CXX,;t t |
8004 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
8005 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
3a12e572 | 8006 | s,@AR@,$AR,;t t |
6e3d59bc | 8007 | s,@OBJDUMP@,$OBJDUMP,;t t |
3a12e572 UD |
8008 | s,@RANLIB@,$RANLIB,;t t |
8009 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8010 | s,@MIG@,$MIG,;t t | |
c4d23330 RM |
8011 | s,@AS@,$AS,;t t |
8012 | s,@LD@,$LD,;t t | |
4baa087a RM |
8013 | s,@PWD_P@,$PWD_P,;t t |
8014 | s,@MAKE@,$MAKE,;t t | |
8015 | s,@MSGFMT@,$MSGFMT,;t t | |
8016 | s,@MAKEINFO@,$MAKEINFO,;t t | |
8017 | s,@SED@,$SED,;t t | |
8018 | s,@AUTOCONF@,$AUTOCONF,;t t | |
3a12e572 UD |
8019 | s,@SYSINCLUDES@,$SYSINCLUDES,;t t |
8020 | s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t | |
8021 | s,@BASH@,$BASH,;t t | |
8022 | s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t | |
8023 | s,@KSH@,$KSH,;t t | |
8024 | s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t | |
8025 | s,@AWK@,$AWK,;t t | |
8026 | s,@PERL@,$PERL,;t t | |
8027 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t | |
3a12e572 UD |
8028 | s,@BISON@,$BISON,;t t |
8029 | s,@VERSIONING@,$VERSIONING,;t t | |
8030 | s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t | |
8031 | s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t | |
c776b3d7 | 8032 | s,@libc_cv_cc_with_libunwind@,$libc_cv_cc_with_libunwind,;t t |
3a12e572 UD |
8033 | s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t |
8034 | s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t | |
8035 | s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t | |
ed20b3d9 | 8036 | s,@libc_cv_z_relro@,$libc_cv_z_relro,;t t |
3a12e572 | 8037 | s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t |
66b3d198 | 8038 | s,@libc_cv_libgcc_s_suffix@,$libc_cv_libgcc_s_suffix,;t t |
78ec7d8c | 8039 | s,@libc_cv_as_needed@,$libc_cv_as_needed,;t t |
35915ec8 | 8040 | s,@ASFLAGS_config@,$ASFLAGS_config,;t t |
3a12e572 | 8041 | s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t |
2abf9ff1 | 8042 | s,@libc_cv_z_execstack@,$libc_cv_z_execstack,;t t |
0f124303 | 8043 | s,@libc_cv_fpie@,$libc_cv_fpie,;t t |
49803108 | 8044 | s,@fno_unit_at_a_time@,$fno_unit_at_a_time,;t t |
3a12e572 | 8045 | s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t |
073e82bf | 8046 | s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t |
3a12e572 UD |
8047 | s,@no_whole_archive@,$no_whole_archive,;t t |
8048 | s,@exceptions@,$exceptions,;t t | |
8049 | s,@LIBGD@,$LIBGD,;t t | |
f4b07664 | 8050 | s,@EGREP@,$EGREP,;t t |
3a12e572 UD |
8051 | s,@sizeof_long_double@,$sizeof_long_double,;t t |
8052 | s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t | |
8053 | s,@uname_sysname@,$uname_sysname,;t t | |
8054 | s,@uname_release@,$uname_release,;t t | |
8055 | s,@uname_version@,$uname_version,;t t | |
8056 | s,@old_glibc_headers@,$old_glibc_headers,;t t | |
8057 | s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t | |
8058 | s,@libc_cv_localedir@,$libc_cv_localedir,;t t | |
8059 | s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t | |
8060 | s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t | |
bcd5f356 | 8061 | s,@libc_cv_forced_unwind@,$libc_cv_forced_unwind,;t t |
3a12e572 UD |
8062 | s,@use_ldconfig@,$use_ldconfig,;t t |
8063 | s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t | |
8064 | s,@gnu_ld@,$gnu_ld,;t t | |
8065 | s,@gnu_as@,$gnu_as,;t t | |
8066 | s,@elf@,$elf,;t t | |
8067 | s,@xcoff@,$xcoff,;t t | |
8068 | s,@static@,$static,;t t | |
8069 | s,@shared@,$shared,;t t | |
8070 | s,@pic_default@,$pic_default,;t t | |
8071 | s,@profile@,$profile,;t t | |
8072 | s,@omitfp@,$omitfp,;t t | |
8073 | s,@bounded@,$bounded,;t t | |
8074 | s,@static_nss@,$static_nss,;t t | |
8075 | s,@nopic_initfini@,$nopic_initfini,;t t | |
8076 | s,@DEFINES@,$DEFINES,;t t | |
8077 | s,@linux_doors@,$linux_doors,;t t | |
8078 | s,@mach_interface_list@,$mach_interface_list,;t t | |
8079 | s,@VERSION@,$VERSION,;t t | |
8080 | s,@RELEASE@,$RELEASE,;t t | |
f4b07664 RM |
8081 | s,@LIBOBJS@,$LIBOBJS,;t t |
8082 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
3a12e572 UD |
8083 | CEOF |
8084 | ||
8085 | _ACEOF | |
8086 | ||
8087 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8088 | # Split the substitutions into bite-sized pieces for seds with | |
8089 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8090 | ac_max_sed_lines=48 | |
8091 | ac_sed_frag=1 # Number of current file. | |
8092 | ac_beg=1 # First line for current file. | |
8093 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8094 | ac_more_lines=: | |
8095 | ac_sed_cmds= | |
8096 | while $ac_more_lines; do | |
8097 | if test $ac_beg -gt 1; then | |
8098 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8099 | else | |
8100 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8101 | fi | |
8102 | if test ! -s $tmp/subs.frag; then | |
8103 | ac_more_lines=false | |
8104 | else | |
8105 | # The purpose of the label and of the branching condition is to | |
8106 | # speed up the sed processing (if there are no `@' at all, there | |
8107 | # is no need to browse any of the substitutions). | |
8108 | # These are the two extra sed commands mentioned above. | |
8109 | (echo ':t | |
8110 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8111 | if test -z "$ac_sed_cmds"; then | |
8f73811b | 8112 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
3a12e572 | 8113 | else |
8f73811b | 8114 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
3a12e572 UD |
8115 | fi |
8116 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8117 | ac_beg=$ac_end | |
8118 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
8119 | fi | |
8120 | done | |
8121 | if test -z "$ac_sed_cmds"; then | |
8122 | ac_sed_cmds=cat | |
cd6ede75 | 8123 | fi |
3a12e572 | 8124 | fi # test -n "$CONFIG_FILES" |
cd6ede75 | 8125 | |
3a12e572 UD |
8126 | _ACEOF |
8127 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8128 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
8129 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
8130 | case $ac_file in | |
8131 | - | *:- | *:-:* ) # input from stdin | |
8f73811b RM |
8132 | cat >$tmp/stdin |
8133 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8134 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3a12e572 | 8135 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8f73811b | 8136 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
3a12e572 | 8137 | * ) ac_file_in=$ac_file.in ;; |
cd6ede75 UD |
8138 | esac |
8139 | ||
3a12e572 UD |
8140 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8141 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8142 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8f73811b RM |
8143 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
8144 | X"$ac_file" : 'X\(//\)$' \| \ | |
8145 | X"$ac_file" : 'X\(/\)' \| \ | |
8146 | . : '\(.\)' 2>/dev/null || | |
3a12e572 UD |
8147 | echo X"$ac_file" | |
8148 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8149 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8150 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8151 | /^X\(\/\).*/{ s//\1/; q; } | |
8152 | s/.*/./; q'` | |
f4b07664 RM |
8153 | { if $as_mkdir_p; then |
8154 | mkdir -p "$ac_dir" | |
8155 | else | |
8156 | as_dir="$ac_dir" | |
8157 | as_dirs= | |
8158 | while test ! -d "$as_dir"; do | |
8159 | as_dirs="$as_dir $as_dirs" | |
8160 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8161 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8f73811b RM |
8162 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8163 | X"$as_dir" : 'X\(//\)$' \| \ | |
8164 | X"$as_dir" : 'X\(/\)' \| \ | |
8165 | . : '\(.\)' 2>/dev/null || | |
f4b07664 RM |
8166 | echo X"$as_dir" | |
8167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8168 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8169 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8170 | /^X\(\/\).*/{ s//\1/; q; } | |
8171 | s/.*/./; q'` | |
8172 | done | |
8173 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8174 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8175 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8176 | { (exit 1); exit 1; }; }; } | |
3a12e572 UD |
8177 | |
8178 | ac_builddir=. | |
8179 | ||
8180 | if test "$ac_dir" != .; then | |
8181 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8182 | # A "../" for each directory in $ac_dir_suffix. | |
8183 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8184 | else | |
8185 | ac_dir_suffix= ac_top_builddir= | |
8186 | fi | |
8187 | ||
8188 | case $srcdir in | |
8189 | .) # No --srcdir option. We are building in place. | |
8190 | ac_srcdir=. | |
8191 | if test -z "$ac_top_builddir"; then | |
8192 | ac_top_srcdir=. | |
8193 | else | |
8194 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8195 | fi ;; | |
8196 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8197 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8198 | ac_top_srcdir=$srcdir ;; | |
8199 | *) # Relative path. | |
8200 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8201 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8202 | esac | |
8f73811b RM |
8203 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
8204 | # absolute. | |
8205 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
8206 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
8207 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
8208 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
cd6ede75 | 8209 | |
3a12e572 UD |
8210 | |
8211 | case $INSTALL in | |
8212 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8213 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
cd6ede75 UD |
8214 | esac |
8215 | ||
3a12e572 UD |
8216 | if test x"$ac_file" != x-; then |
8217 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8218 | echo "$as_me: creating $ac_file" >&6;} | |
8219 | rm -f "$ac_file" | |
8220 | fi | |
8221 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8222 | # use $as_me), people would be surprised to read: | |
8223 | # /* config.h. Generated by config.status. */ | |
8224 | if test x"$ac_file" = x-; then | |
8225 | configure_input= | |
8226 | else | |
8227 | configure_input="$ac_file. " | |
8228 | fi | |
8229 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8f73811b | 8230 | sed 's,.*/,,'` by configure." |
3a12e572 UD |
8231 | |
8232 | # First look for the input files in the build tree, otherwise in the | |
8233 | # src tree. | |
8234 | ac_file_inputs=`IFS=: | |
8235 | for f in $ac_file_in; do | |
8236 | case $f in | |
8237 | -) echo $tmp/stdin ;; | |
8238 | [\\/$]*) | |
8f73811b RM |
8239 | # Absolute (can't be DOS-style, as IFS=:) |
8240 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3a12e572 UD |
8241 | echo "$as_me: error: cannot find input file: $f" >&2;} |
8242 | { (exit 1); exit 1; }; } | |
8f73811b | 8243 | echo $f;; |
3a12e572 | 8244 | *) # Relative |
8f73811b RM |
8245 | if test -f "$f"; then |
8246 | # Build tree | |
8247 | echo $f | |
8248 | elif test -f "$srcdir/$f"; then | |
8249 | # Source tree | |
8250 | echo $srcdir/$f | |
8251 | else | |
8252 | # /dev/null tree | |
8253 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3a12e572 UD |
8254 | echo "$as_me: error: cannot find input file: $f" >&2;} |
8255 | { (exit 1); exit 1; }; } | |
8f73811b | 8256 | fi;; |
3a12e572 UD |
8257 | esac |
8258 | done` || { (exit 1); exit 1; } | |
8259 | _ACEOF | |
8260 | cat >>$CONFIG_STATUS <<_ACEOF | |
8261 | sed "$ac_vpsub | |
8262 | $extrasub | |
8263 | _ACEOF | |
8264 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8265 | :t | |
8266 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8267 | s,@configure_input@,$configure_input,;t t | |
8268 | s,@srcdir@,$ac_srcdir,;t t | |
8269 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
8270 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8271 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
8272 | s,@builddir@,$ac_builddir,;t t | |
8273 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
8274 | s,@top_builddir@,$ac_top_builddir,;t t | |
8275 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
8276 | s,@INSTALL@,$ac_INSTALL,;t t | |
8277 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8278 | rm -f $tmp/stdin | |
8279 | if test x"$ac_file" != x-; then | |
8280 | mv $tmp/out $ac_file | |
8281 | else | |
8282 | cat $tmp/out | |
8283 | rm -f $tmp/out | |
8284 | fi | |
8285 | ||
8286 | done | |
8287 | _ACEOF | |
8288 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8289 | ||
8290 | # | |
8291 | # CONFIG_HEADER section. | |
8292 | # | |
cd6ede75 UD |
8293 | |
8294 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8295 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8296 | # | |
8297 | # ac_d sets the value in "#define NAME VALUE" lines. | |
8f73811b RM |
8298 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8299 | ac_dB='[ ].*$,\1#\2' | |
3a12e572 UD |
8300 | ac_dC=' ' |
8301 | ac_dD=',;t' | |
8302 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8f73811b | 8303 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
3a12e572 | 8304 | ac_uB='$,\1#\2define\3' |
cd6ede75 | 8305 | ac_uC=' ' |
3a12e572 UD |
8306 | ac_uD=',;t' |
8307 | ||
8308 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
cd6ede75 | 8309 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
3a12e572 UD |
8310 | case $ac_file in |
8311 | - | *:- | *:-:* ) # input from stdin | |
8f73811b RM |
8312 | cat >$tmp/stdin |
8313 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8314 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3a12e572 | 8315 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8f73811b | 8316 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
3a12e572 | 8317 | * ) ac_file_in=$ac_file.in ;; |
cd6ede75 UD |
8318 | esac |
8319 | ||
3a12e572 UD |
8320 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
8321 | echo "$as_me: creating $ac_file" >&6;} | |
8322 | ||
8323 | # First look for the input files in the build tree, otherwise in the | |
8324 | # src tree. | |
8325 | ac_file_inputs=`IFS=: | |
8326 | for f in $ac_file_in; do | |
8327 | case $f in | |
8328 | -) echo $tmp/stdin ;; | |
8329 | [\\/$]*) | |
8f73811b RM |
8330 | # Absolute (can't be DOS-style, as IFS=:) |
8331 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3a12e572 UD |
8332 | echo "$as_me: error: cannot find input file: $f" >&2;} |
8333 | { (exit 1); exit 1; }; } | |
8f73811b | 8334 | echo $f;; |
3a12e572 | 8335 | *) # Relative |
8f73811b RM |
8336 | if test -f "$f"; then |
8337 | # Build tree | |
8338 | echo $f | |
8339 | elif test -f "$srcdir/$f"; then | |
8340 | # Source tree | |
8341 | echo $srcdir/$f | |
8342 | else | |
8343 | # /dev/null tree | |
8344 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3a12e572 UD |
8345 | echo "$as_me: error: cannot find input file: $f" >&2;} |
8346 | { (exit 1); exit 1; }; } | |
8f73811b | 8347 | fi;; |
3a12e572 UD |
8348 | esac |
8349 | done` || { (exit 1); exit 1; } | |
8350 | # Remove the trailing spaces. | |
8f73811b | 8351 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
3a12e572 UD |
8352 | |
8353 | _ACEOF | |
8354 | ||
8355 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
8356 | # `conftest.undefs', that substitutes the proper values into | |
8357 | # config.h.in to produce config.h. The first handles `#define' | |
8358 | # templates, and the second `#undef' templates. | |
8359 | # And first: Protect against being on the right side of a sed subst in | |
8360 | # config.status. Protect against being in an unquoted here document | |
8361 | # in config.status. | |
8362 | rm -f conftest.defines conftest.undefs | |
8363 | # Using a here document instead of a string reduces the quoting nightmare. | |
8364 | # Putting comments in sed scripts is not portable. | |
8365 | # | |
8366 | # `end' is used to avoid that the second main sed command (meant for | |
8367 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8368 | # See the Autoconf documentation for `clear'. | |
8369 | cat >confdef2sed.sed <<\_ACEOF | |
8370 | s/[\\&,]/\\&/g | |
8371 | s,[\\$`],\\&,g | |
8372 | t clear | |
8373 | : clear | |
8f73811b | 8374 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
3a12e572 | 8375 | t end |
8f73811b | 8376 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
3a12e572 UD |
8377 | : end |
8378 | _ACEOF | |
8379 | # If some macros were called several times there might be several times | |
8380 | # the same #defines, which is useless. Nevertheless, we may not want to | |
8381 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
8382 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
8383 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
8384 | rm -f confdef2sed.sed | |
cd6ede75 UD |
8385 | |
8386 | # This sed command replaces #undef with comments. This is necessary, for | |
8387 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
8388 | # on some systems where configure will not decide to define it. | |
3a12e572 | 8389 | cat >>conftest.undefs <<\_ACEOF |
8f73811b | 8390 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
3a12e572 UD |
8391 | _ACEOF |
8392 | ||
8393 | # Break up conftest.defines because some shells have a limit on the size | |
8394 | # of here documents, and old seds have small limits too (100 cmds). | |
8395 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8f73811b | 8396 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
3a12e572 UD |
8397 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
8398 | echo ' :' >>$CONFIG_STATUS | |
8399 | rm -f conftest.tail | |
8400 | while grep . conftest.defines >/dev/null | |
8401 | do | |
8402 | # Write a limited-size here document to $tmp/defines.sed. | |
8403 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
8404 | # Speed up: don't consider the non `#define' lines. | |
8f73811b | 8405 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
3a12e572 UD |
8406 | # Work around the forget-to-reset-the-flag bug. |
8407 | echo 't clr' >>$CONFIG_STATUS | |
8408 | echo ': clr' >>$CONFIG_STATUS | |
8409 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
8410 | echo 'CEOF | |
8411 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
8412 | rm -f $tmp/in | |
8413 | mv $tmp/out $tmp/in | |
8414 | ' >>$CONFIG_STATUS | |
8415 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
8416 | rm -f conftest.defines | |
8417 | mv conftest.tail conftest.defines | |
8418 | done | |
8419 | rm -f conftest.defines | |
f4b07664 | 8420 | echo ' fi # grep' >>$CONFIG_STATUS |
3a12e572 | 8421 | echo >>$CONFIG_STATUS |
cd6ede75 | 8422 | |
3a12e572 UD |
8423 | # Break up conftest.undefs because some shells have a limit on the size |
8424 | # of here documents, and old seds have small limits too (100 cmds). | |
8425 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
cd6ede75 | 8426 | rm -f conftest.tail |
3a12e572 | 8427 | while grep . conftest.undefs >/dev/null |
cd6ede75 | 8428 | do |
3a12e572 UD |
8429 | # Write a limited-size here document to $tmp/undefs.sed. |
8430 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
8431 | # Speed up: don't consider the non `#undef' | |
8f73811b | 8432 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
3a12e572 UD |
8433 | # Work around the forget-to-reset-the-flag bug. |
8434 | echo 't clr' >>$CONFIG_STATUS | |
8435 | echo ': clr' >>$CONFIG_STATUS | |
8436 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
cd6ede75 | 8437 | echo 'CEOF |
3a12e572 UD |
8438 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8439 | rm -f $tmp/in | |
8440 | mv $tmp/out $tmp/in | |
8441 | ' >>$CONFIG_STATUS | |
8442 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8443 | rm -f conftest.undefs | |
8444 | mv conftest.tail conftest.undefs | |
cd6ede75 | 8445 | done |
3a12e572 UD |
8446 | rm -f conftest.undefs |
8447 | ||
8448 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8449 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8450 | # use $as_me), people would be surprised to read: | |
8451 | # /* config.h. Generated by config.status. */ | |
8452 | if test x"$ac_file" = x-; then | |
8453 | echo "/* Generated by configure. */" >$tmp/config.h | |
cd6ede75 | 8454 | else |
3a12e572 UD |
8455 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
8456 | fi | |
8457 | cat $tmp/in >>$tmp/config.h | |
8458 | rm -f $tmp/in | |
8459 | if test x"$ac_file" != x-; then | |
2abf9ff1 | 8460 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
3a12e572 UD |
8461 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
8462 | echo "$as_me: $ac_file is unchanged" >&6;} | |
8463 | else | |
8464 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8465 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8f73811b RM |
8466 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
8467 | X"$ac_file" : 'X\(//\)$' \| \ | |
8468 | X"$ac_file" : 'X\(/\)' \| \ | |
8469 | . : '\(.\)' 2>/dev/null || | |
3a12e572 UD |
8470 | echo X"$ac_file" | |
8471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8472 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8473 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8474 | /^X\(\/\).*/{ s//\1/; q; } | |
8475 | s/.*/./; q'` | |
f4b07664 RM |
8476 | { if $as_mkdir_p; then |
8477 | mkdir -p "$ac_dir" | |
3a12e572 | 8478 | else |
f4b07664 RM |
8479 | as_dir="$ac_dir" |
8480 | as_dirs= | |
8481 | while test ! -d "$as_dir"; do | |
8482 | as_dirs="$as_dir $as_dirs" | |
8483 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8484 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8f73811b RM |
8485 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8486 | X"$as_dir" : 'X\(//\)$' \| \ | |
8487 | X"$as_dir" : 'X\(/\)' \| \ | |
8488 | . : '\(.\)' 2>/dev/null || | |
f4b07664 | 8489 | echo X"$as_dir" | |
3a12e572 UD |
8490 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
8491 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8492 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8493 | /^X\(\/\).*/{ s//\1/; q; } | |
8494 | s/.*/./; q'` | |
f4b07664 RM |
8495 | done |
8496 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8497 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8498 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8499 | { (exit 1); exit 1; }; }; } | |
cd6ede75 | 8500 | |
f4b07664 RM |
8501 | rm -f $ac_file |
8502 | mv $tmp/config.h $ac_file | |
8503 | fi | |
8504 | else | |
8505 | cat $tmp/config.h | |
8506 | rm -f $tmp/config.h | |
8507 | fi | |
cd6ede75 | 8508 | done |
3a12e572 UD |
8509 | _ACEOF |
8510 | cat >>$CONFIG_STATUS <<\_ACEOF | |
cd6ede75 | 8511 | |
3a12e572 UD |
8512 | # |
8513 | # CONFIG_COMMANDS section. | |
8514 | # | |
8515 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8516 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8517 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8518 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
8519 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8f73811b RM |
8520 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
8521 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8522 | X"$ac_dest" : 'X\(/\)' \| \ | |
8523 | . : '\(.\)' 2>/dev/null || | |
3a12e572 UD |
8524 | echo X"$ac_dest" | |
8525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8526 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8527 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8528 | /^X\(\/\).*/{ s//\1/; q; } | |
8529 | s/.*/./; q'` | |
8530 | ac_builddir=. | |
8531 | ||
8532 | if test "$ac_dir" != .; then | |
8533 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8534 | # A "../" for each directory in $ac_dir_suffix. | |
8535 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8536 | else | |
8537 | ac_dir_suffix= ac_top_builddir= | |
8538 | fi | |
8539 | ||
8540 | case $srcdir in | |
8541 | .) # No --srcdir option. We are building in place. | |
8542 | ac_srcdir=. | |
8543 | if test -z "$ac_top_builddir"; then | |
8544 | ac_top_srcdir=. | |
8545 | else | |
8546 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8547 | fi ;; | |
8548 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8549 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8550 | ac_top_srcdir=$srcdir ;; | |
8551 | *) # Relative path. | |
8552 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8553 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8554 | esac | |
8f73811b RM |
8555 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
8556 | # absolute. | |
8557 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
8558 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
8559 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
8560 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
3a12e572 UD |
8561 | |
8562 | ||
8563 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
8564 | echo "$as_me: executing $ac_dest commands" >&6;} | |
8565 | case $ac_dest in | |
8566 | default ) | |
c0fb8a56 UD |
8567 | case $CONFIG_FILES in *config.make*) |
8568 | echo "$config_vars" >> config.make;; | |
8569 | esac | |
3a12e572 UD |
8570 | test -d bits || mkdir bits ;; |
8571 | esac | |
8572 | done | |
8573 | _ACEOF | |
8574 | ||
8575 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8576 | ||
8577 | { (exit 0); exit 0; } | |
8578 | _ACEOF | |
cd6ede75 | 8579 | chmod +x $CONFIG_STATUS |
3a12e572 UD |
8580 | ac_clean_files=$ac_clean_files_save |
8581 | ||
8582 | ||
8583 | # configure is writing to config.log, and then calls config.status. | |
8584 | # config.status does its own redirection, appending to config.log. | |
8585 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8586 | # by configure, so config.status won't be able to write to it; its | |
8587 | # output is simply discarded. So we exec the FD to /dev/null, | |
8588 | # effectively closing config.log, so it can be properly (re)opened and | |
8589 | # appended to by config.status. When coming back to configure, we | |
8590 | # need to make the FD available again. | |
8591 | if test "$no_create" != yes; then | |
8592 | ac_cs_success=: | |
2abf9ff1 RM |
8593 | ac_config_status_args= |
8594 | test "$silent" = yes && | |
8595 | ac_config_status_args="$ac_config_status_args --quiet" | |
3a12e572 | 8596 | exec 5>/dev/null |
2abf9ff1 | 8597 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3a12e572 UD |
8598 | exec 5>>config.log |
8599 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8600 | # would make configure fail if this is the last instruction. | |
8601 | $ac_cs_success || { (exit 1); exit 1; } | |
8602 | fi | |
cd6ede75 | 8603 | |
3a12e572 UD |
8604 | # |
8605 | # CONFIG_SUBDIRS section. | |
8606 | # | |
cd6ede75 UD |
8607 | if test "$no_recursion" != yes; then |
8608 | ||
8609 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
8610 | ac_sub_configure_args= | |
8611 | ac_prev= | |
8612 | for ac_arg in $ac_configure_args; do | |
8613 | if test -n "$ac_prev"; then | |
8614 | ac_prev= | |
8615 | continue | |
8616 | fi | |
3a12e572 | 8617 | case $ac_arg in |
cd6ede75 UD |
8618 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
8619 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
8620 | ac_prev=cache_file ;; | |
8621 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3a12e572 UD |
8622 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
8623 | | --c=*) | |
8624 | ;; | |
8625 | --config-cache | -C) | |
cd6ede75 UD |
8626 | ;; |
8627 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
8628 | ac_prev=srcdir ;; | |
8629 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
8630 | ;; | |
3a12e572 UD |
8631 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
8632 | ac_prev=prefix ;; | |
8633 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
8634 | ;; | |
cd6ede75 UD |
8635 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
8636 | esac | |
8637 | done | |
8638 | ||
3a12e572 UD |
8639 | # Always prepend --prefix to ensure using the same prefix |
8640 | # in subdir configurations. | |
8641 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
8642 | ||
8643 | ac_popdir=`pwd` | |
8644 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
cd6ede75 UD |
8645 | |
8646 | # Do not complain, so a configure script can configure whichever | |
8647 | # parts of a large source tree are present. | |
3a12e572 | 8648 | test -d $srcdir/$ac_dir || continue |
cd6ede75 | 8649 | |
3a12e572 UD |
8650 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
8651 | echo "$as_me: configuring in $ac_dir" >&6;} | |
f4b07664 RM |
8652 | { if $as_mkdir_p; then |
8653 | mkdir -p "$ac_dir" | |
8654 | else | |
8655 | as_dir="$ac_dir" | |
8656 | as_dirs= | |
8657 | while test ! -d "$as_dir"; do | |
8658 | as_dirs="$as_dir $as_dirs" | |
8659 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8660 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8f73811b RM |
8661 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8662 | X"$as_dir" : 'X\(//\)$' \| \ | |
8663 | X"$as_dir" : 'X\(/\)' \| \ | |
8664 | . : '\(.\)' 2>/dev/null || | |
f4b07664 RM |
8665 | echo X"$as_dir" | |
8666 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8667 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8668 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8669 | /^X\(\/\).*/{ s//\1/; q; } | |
8670 | s/.*/./; q'` | |
8671 | done | |
8672 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8673 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8674 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8675 | { (exit 1); exit 1; }; }; } | |
cd6ede75 | 8676 | |
3a12e572 | 8677 | ac_builddir=. |
cd6ede75 | 8678 | |
3a12e572 UD |
8679 | if test "$ac_dir" != .; then |
8680 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8681 | # A "../" for each directory in $ac_dir_suffix. | |
8682 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8683 | else | |
8684 | ac_dir_suffix= ac_top_builddir= | |
8685 | fi | |
cd6ede75 | 8686 | |
3a12e572 UD |
8687 | case $srcdir in |
8688 | .) # No --srcdir option. We are building in place. | |
8689 | ac_srcdir=. | |
8690 | if test -z "$ac_top_builddir"; then | |
8691 | ac_top_srcdir=. | |
8692 | else | |
8693 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8694 | fi ;; | |
8695 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8696 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8697 | ac_top_srcdir=$srcdir ;; | |
8698 | *) # Relative path. | |
8699 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8700 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8701 | esac | |
8f73811b RM |
8702 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
8703 | # absolute. | |
8704 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
8705 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
8706 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
8707 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
3a12e572 UD |
8708 | |
8709 | ||
8710 | cd $ac_dir | |
cd6ede75 UD |
8711 | |
8712 | # Check for guested configure; otherwise get Cygnus style configure. | |
3a12e572 UD |
8713 | if test -f $ac_srcdir/configure.gnu; then |
8714 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
8715 | elif test -f $ac_srcdir/configure; then | |
8716 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
8717 | elif test -f $ac_srcdir/configure.in; then | |
cd6ede75 UD |
8718 | ac_sub_configure=$ac_configure |
8719 | else | |
3a12e572 UD |
8720 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
8721 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
cd6ede75 UD |
8722 | ac_sub_configure= |
8723 | fi | |
8724 | ||
8725 | # The recursion is here. | |
8726 | if test -n "$ac_sub_configure"; then | |
cd6ede75 | 8727 | # Make the cache file name correct relative to the subdirectory. |
3a12e572 UD |
8728 | case $cache_file in |
8729 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
cd6ede75 | 8730 | *) # Relative path. |
8f73811b | 8731 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
cd6ede75 | 8732 | esac |
cd6ede75 | 8733 | |
3a12e572 UD |
8734 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
8735 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
cd6ede75 | 8736 | # The eval makes quoting arguments work. |
3a12e572 | 8737 | eval $ac_sub_configure $ac_sub_configure_args \ |
8f73811b RM |
8738 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
8739 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
3a12e572 UD |
8740 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
8741 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
8742 | fi |
8743 | ||
8744 | cd $ac_popdir | |
8745 | done | |
8746 | fi | |
8747 |