Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
42ecbf5e | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
42ecbf5e | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
42ecbf5e DJ |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 248 | |
42ecbf5e DJ |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
42ecbf5e DJ |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="ar.c" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
20e95c23 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME CPP EGREP ALLOCA NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
42ecbf5e | 313 | ac_subst_files='' |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
42ecbf5e DJ |
316 | ac_init_help= |
317 | ac_init_version=false | |
252b5132 RH |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
42ecbf5e | 320 | cache_file=/dev/null |
252b5132 | 321 | exec_prefix=NONE |
252b5132 | 322 | no_create= |
252b5132 RH |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
252b5132 RH |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
42ecbf5e DJ |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
252b5132 RH |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
252b5132 RH |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
42ecbf5e | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
42ecbf5e | 367 | case $ac_option in |
252b5132 RH |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 377 | build_alias=$ac_optarg ;; |
252b5132 RH |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
252b5132 RH |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
42ecbf5e | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
42ecbf5e | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
403 | |
404 | -enable-* | --enable-*) | |
42ecbf5e | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
413 | *) ac_optarg=yes ;; |
414 | esac | |
42ecbf5e | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
42ecbf5e DJ |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
252b5132 RH |
436 | |
437 | -host | --host | --hos | --ho) | |
42ecbf5e | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 440 | host_alias=$ac_optarg ;; |
252b5132 RH |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 447 | includedir=$ac_optarg ;; |
252b5132 RH |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 457 | libdir=$ac_optarg ;; |
252b5132 RH |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 464 | libexecdir=$ac_optarg ;; |
252b5132 RH |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
42ecbf5e | 473 | localstatedir=$ac_optarg ;; |
252b5132 RH |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 478 | mandir=$ac_optarg ;; |
252b5132 RH |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 485 | | --no-cr | --no-c | -n) |
252b5132 RH |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 499 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 504 | prefix=$ac_optarg ;; |
252b5132 RH |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 511 | program_prefix=$ac_optarg ;; |
252b5132 RH |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 518 | program_suffix=$ac_optarg ;; |
252b5132 RH |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 535 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
42ecbf5e | 545 | sbindir=$ac_optarg ;; |
252b5132 RH |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
42ecbf5e | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 561 | site=$ac_optarg ;; |
252b5132 RH |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 566 | srcdir=$ac_optarg ;; |
252b5132 RH |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
42ecbf5e DJ |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
42ecbf5e | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
252b5132 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
42ecbf5e DJ |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
42ecbf5e | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
42ecbf5e | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 617 | x_includes=$ac_optarg ;; |
252b5132 RH |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
42ecbf5e DJ |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
252b5132 RH |
629 | ;; |
630 | ||
42ecbf5e DJ |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
252b5132 | 641 | *) |
42ecbf5e DJ |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
42ecbf5e DJ |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
252b5132 RH |
656 | fi |
657 | ||
42ecbf5e DJ |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
252b5132 | 668 | |
42ecbf5e DJ |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 672 | do |
42ecbf5e DJ |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
678 | esac |
679 | done | |
680 | ||
42ecbf5e DJ |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
e5a52504 | 698 | |
42ecbf5e DJ |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 703 | |
252b5132 RH |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
42ecbf5e DJ |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
252b5132 RH |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
42ecbf5e DJ |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
42ecbf5e DJ |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
252b5132 RH |
735 | fi |
736 | fi | |
42ecbf5e DJ |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
252b5132 | 773 | |
42ecbf5e DJ |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 782 | |
42ecbf5e | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
42ecbf5e DJ |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 787 | |
42ecbf5e | 788 | Defaults for the options are specified in brackets. |
ac48eca1 | 789 | |
42ecbf5e DJ |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
ac48eca1 | 809 | |
42ecbf5e DJ |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 814 | |
42ecbf5e | 815 | For better control, use the options below. |
ac48eca1 | 816 | |
42ecbf5e DJ |
817 | Fine tuning of the installation directories: |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
ac48eca1 | 831 | |
42ecbf5e | 832 | cat <<\_ACEOF |
252b5132 | 833 | |
42ecbf5e DJ |
834 | Program names: |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 838 | |
42ecbf5e DJ |
839 | System types: |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
252b5132 | 844 | fi |
252b5132 | 845 | |
42ecbf5e | 846 | if test -n "$ac_init_help"; then |
252b5132 | 847 | |
42ecbf5e | 848 | cat <<\_ACEOF |
252b5132 | 849 | |
42ecbf5e DJ |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
853 | --disable-dependency-tracking speeds up one-time build | |
854 | --enable-dependency-tracking do not reject slow dependency extractors | |
855 | --enable-shared=PKGS build shared libraries default=yes | |
856 | --enable-static=PKGS build static libraries default=yes | |
857 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
858 | --disable-libtool-lock avoid locking (might break parallel builds) | |
859 | --enable-targets alternative target configurations | |
860 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
241a6c40 AM |
861 | --enable-werror treat compile warnings as errors |
862 | --enable-build-warnings enable build-time compiler warnings | |
42ecbf5e DJ |
863 | --disable-nls do not use Native Language Support |
864 | --enable-maintainer-mode enable make rules and dependencies not useful | |
865 | (and sometimes confusing) to the casual installer | |
866 | ||
867 | Optional Packages: | |
868 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
869 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
870 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
871 | --with-pic try to use only PIC/non-PIC objects default=use both | |
252b5132 | 872 | |
42ecbf5e DJ |
873 | Some influential environment variables: |
874 | CC C compiler command | |
875 | CFLAGS C compiler flags | |
876 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
877 | nonstandard directory <lib dir> | |
878 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
879 | headers in a nonstandard directory <include dir> | |
880 | CPP C preprocessor | |
e5a52504 | 881 | |
42ecbf5e DJ |
882 | Use these variables to override the choices made by `configure' or to help |
883 | it to find libraries and programs with nonstandard names/locations. | |
884 | ||
885 | _ACEOF | |
252b5132 RH |
886 | fi |
887 | ||
42ecbf5e DJ |
888 | if test "$ac_init_help" = "recursive"; then |
889 | # If there are subdirs, report their specific --help. | |
890 | ac_popdir=`pwd` | |
891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
892 | test -d $ac_dir || continue | |
893 | ac_builddir=. | |
894 | ||
895 | if test "$ac_dir" != .; then | |
896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
897 | # A "../" for each directory in $ac_dir_suffix. | |
898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
899 | else | |
900 | ac_dir_suffix= ac_top_builddir= | |
901 | fi | |
252b5132 | 902 | |
42ecbf5e DJ |
903 | case $srcdir in |
904 | .) # No --srcdir option. We are building in place. | |
905 | ac_srcdir=. | |
906 | if test -z "$ac_top_builddir"; then | |
907 | ac_top_srcdir=. | |
908 | else | |
909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
252b5132 | 910 | fi ;; |
42ecbf5e DJ |
911 | [\\/]* | ?:[\\/]* ) # Absolute path. |
912 | ac_srcdir=$srcdir$ac_dir_suffix; | |
913 | ac_top_srcdir=$srcdir ;; | |
914 | *) # Relative path. | |
915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
916 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
252b5132 RH |
917 | esac |
918 | ||
42ecbf5e DJ |
919 | # Do not use `cd foo && pwd` to compute absolute paths, because |
920 | # the directories may not exist. | |
921 | case `pwd` in | |
922 | .) ac_abs_builddir="$ac_dir";; | |
923 | *) | |
924 | case "$ac_dir" in | |
925 | .) ac_abs_builddir=`pwd`;; | |
926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
927 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
928 | esac;; | |
252b5132 | 929 | esac |
42ecbf5e DJ |
930 | case $ac_abs_builddir in |
931 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
932 | *) | |
933 | case ${ac_top_builddir}. in | |
934 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
937 | esac;; | |
938 | esac | |
939 | case $ac_abs_builddir in | |
940 | .) ac_abs_srcdir=$ac_srcdir;; | |
941 | *) | |
942 | case $ac_srcdir in | |
943 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
946 | esac;; | |
947 | esac | |
948 | case $ac_abs_builddir in | |
949 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
950 | *) | |
951 | case $ac_top_srcdir in | |
952 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
955 | esac;; | |
d15b04bd | 956 | esac |
5d64ca4e | 957 | |
42ecbf5e DJ |
958 | cd $ac_dir |
959 | # Check for guested configure; otherwise get Cygnus style configure. | |
960 | if test -f $ac_srcdir/configure.gnu; then | |
961 | echo | |
962 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
963 | elif test -f $ac_srcdir/configure; then | |
964 | echo | |
965 | $SHELL $ac_srcdir/configure --help=recursive | |
966 | elif test -f $ac_srcdir/configure.ac || | |
967 | test -f $ac_srcdir/configure.in; then | |
968 | echo | |
969 | $ac_configure --help | |
970 | else | |
971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
972 | fi | |
b7d4af3a | 973 | cd $ac_popdir |
42ecbf5e DJ |
974 | done |
975 | fi | |
5d64ca4e | 976 | |
42ecbf5e DJ |
977 | test -n "$ac_init_help" && exit 0 |
978 | if $ac_init_version; then | |
979 | cat <<\_ACEOF | |
5d64ca4e | 980 | |
42ecbf5e DJ |
981 | Copyright (C) 2003 Free Software Foundation, Inc. |
982 | This configure script is free software; the Free Software Foundation | |
983 | gives unlimited permission to copy, distribute and modify it. | |
984 | _ACEOF | |
985 | exit 0 | |
986 | fi | |
987 | exec 5>config.log | |
988 | cat >&5 <<_ACEOF | |
989 | This file contains any messages produced by compilers while | |
990 | running configure, to aid debugging if configure makes a mistake. | |
429cc0ae | 991 | |
42ecbf5e DJ |
992 | It was created by $as_me, which was |
993 | generated by GNU Autoconf 2.59. Invocation command line was | |
252b5132 | 994 | |
42ecbf5e | 995 | $ $0 $@ |
e5a52504 | 996 | |
42ecbf5e DJ |
997 | _ACEOF |
998 | { | |
999 | cat <<_ASUNAME | |
1000 | ## --------- ## | |
1001 | ## Platform. ## | |
1002 | ## --------- ## | |
1003 | ||
1004 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1005 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1006 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1007 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1008 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1009 | ||
1010 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1011 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1012 | ||
1013 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1014 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1015 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1016 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1017 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1018 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1019 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1020 | ||
1021 | _ASUNAME | |
1022 | ||
1023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1024 | for as_dir in $PATH | |
1025 | do | |
1026 | IFS=$as_save_IFS | |
1027 | test -z "$as_dir" && as_dir=. | |
1028 | echo "PATH: $as_dir" | |
1029 | done | |
e5a52504 | 1030 | |
42ecbf5e | 1031 | } >&5 |
ceae3e33 | 1032 | |
42ecbf5e | 1033 | cat >&5 <<_ACEOF |
e5a52504 | 1034 | |
42ecbf5e DJ |
1035 | |
1036 | ## ----------- ## | |
1037 | ## Core tests. ## | |
1038 | ## ----------- ## | |
1039 | ||
1040 | _ACEOF | |
1041 | ||
1042 | ||
1043 | # Keep a trace of the command line. | |
1044 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1045 | # Strip out --silent because we don't want to record it for future runs. | |
1046 | # Also quote any args containing shell meta-characters. | |
1047 | # Make two passes to allow for proper duplicate-argument suppression. | |
1048 | ac_configure_args= | |
1049 | ac_configure_args0= | |
1050 | ac_configure_args1= | |
1051 | ac_sep= | |
1052 | ac_must_keep_next=false | |
1053 | for ac_pass in 1 2 | |
1054 | do | |
1055 | for ac_arg | |
1056 | do | |
1057 | case $ac_arg in | |
1058 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1060 | | -silent | --silent | --silen | --sile | --sil) | |
1061 | continue ;; | |
1062 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1063 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1064 | esac | |
1065 | case $ac_pass in | |
1066 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1067 | 2) | |
1068 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1069 | if test $ac_must_keep_next = true; then | |
1070 | ac_must_keep_next=false # Got value, back to normal. | |
1071 | else | |
1072 | case $ac_arg in | |
1073 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1074 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1075 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1076 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1077 | case "$ac_configure_args0 " in | |
1078 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1079 | esac | |
1080 | ;; | |
1081 | -* ) ac_must_keep_next=true ;; | |
1082 | esac | |
1083 | fi | |
1084 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1085 | # Get rid of the leading space. | |
1086 | ac_sep=" " | |
1087 | ;; | |
1088 | esac | |
1089 | done | |
1090 | done | |
1091 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1092 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1093 | ||
1094 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1095 | # config.log. We remove comments because anyway the quotes in there | |
1096 | # would cause problems or look ugly. | |
1097 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1098 | # such as our DU 5.0 friend, will then `close' the trap. | |
1099 | trap 'exit_status=$? | |
1100 | # Save into config.log some information that might help in debugging. | |
1101 | { | |
1102 | echo | |
1103 | ||
1104 | cat <<\_ASBOX | |
1105 | ## ---------------- ## | |
1106 | ## Cache variables. ## | |
1107 | ## ---------------- ## | |
1108 | _ASBOX | |
1109 | echo | |
1110 | # The following way of writing the cache mishandles newlines in values, | |
1111 | { | |
1112 | (set) 2>&1 | | |
1113 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1114 | *ac_space=\ *) | |
1115 | sed -n \ | |
1116 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1118 | ;; | |
1119 | *) | |
1120 | sed -n \ | |
1121 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1122 | ;; | |
1123 | esac; | |
1124 | } | |
1125 | echo | |
1126 | ||
1127 | cat <<\_ASBOX | |
1128 | ## ----------------- ## | |
1129 | ## Output variables. ## | |
1130 | ## ----------------- ## | |
1131 | _ASBOX | |
1132 | echo | |
1133 | for ac_var in $ac_subst_vars | |
1134 | do | |
1135 | eval ac_val=$`echo $ac_var` | |
1136 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1137 | done | sort | |
1138 | echo | |
1139 | ||
1140 | if test -n "$ac_subst_files"; then | |
1141 | cat <<\_ASBOX | |
1142 | ## ------------- ## | |
1143 | ## Output files. ## | |
1144 | ## ------------- ## | |
1145 | _ASBOX | |
1146 | echo | |
1147 | for ac_var in $ac_subst_files | |
1148 | do | |
1149 | eval ac_val=$`echo $ac_var` | |
1150 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1151 | done | sort | |
1152 | echo | |
1153 | fi | |
1154 | ||
1155 | if test -s confdefs.h; then | |
1156 | cat <<\_ASBOX | |
1157 | ## ----------- ## | |
1158 | ## confdefs.h. ## | |
1159 | ## ----------- ## | |
1160 | _ASBOX | |
1161 | echo | |
1162 | sed "/^$/d" confdefs.h | sort | |
1163 | echo | |
1164 | fi | |
1165 | test "$ac_signal" != 0 && | |
1166 | echo "$as_me: caught signal $ac_signal" | |
1167 | echo "$as_me: exit $exit_status" | |
1168 | } >&5 | |
1169 | rm -f core *.core && | |
1170 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1171 | exit $exit_status | |
1172 | ' 0 | |
1173 | for ac_signal in 1 2 13 15; do | |
1174 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1175 | done | |
1176 | ac_signal=0 | |
1177 | ||
1178 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1179 | rm -rf conftest* confdefs.h | |
1180 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1181 | echo >confdefs.h | |
1182 | ||
1183 | # Predefined preprocessor variables. | |
1184 | ||
1185 | cat >>confdefs.h <<_ACEOF | |
1186 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1187 | _ACEOF | |
1188 | ||
1189 | ||
1190 | cat >>confdefs.h <<_ACEOF | |
1191 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1192 | _ACEOF | |
1193 | ||
1194 | ||
1195 | cat >>confdefs.h <<_ACEOF | |
1196 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | cat >>confdefs.h <<_ACEOF | |
1201 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1202 | _ACEOF | |
1203 | ||
1204 | ||
1205 | cat >>confdefs.h <<_ACEOF | |
1206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1207 | _ACEOF | |
1208 | ||
1209 | ||
1210 | # Let the site file select an alternate cache file if it wants to. | |
1211 | # Prefer explicitly selected file to automatically selected ones. | |
1212 | if test -z "$CONFIG_SITE"; then | |
1213 | if test "x$prefix" != xNONE; then | |
1214 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1215 | else | |
1216 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1217 | fi | |
1218 | fi | |
1219 | for ac_site_file in $CONFIG_SITE; do | |
1220 | if test -r "$ac_site_file"; then | |
1221 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1222 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1223 | sed 's/^/| /' "$ac_site_file" >&5 | |
1224 | . "$ac_site_file" | |
1225 | fi | |
1226 | done | |
1227 | ||
1228 | if test -r "$cache_file"; then | |
1229 | # Some versions of bash will fail to source /dev/null (special | |
1230 | # files actually), so we avoid doing that. | |
1231 | if test -f "$cache_file"; then | |
1232 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1233 | echo "$as_me: loading cache $cache_file" >&6;} | |
1234 | case $cache_file in | |
1235 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1236 | *) . ./$cache_file;; | |
1237 | esac | |
1238 | fi | |
1239 | else | |
1240 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1241 | echo "$as_me: creating cache $cache_file" >&6;} | |
1242 | >$cache_file | |
1243 | fi | |
1244 | ||
1245 | # Check that the precious variables saved in the cache have kept the same | |
1246 | # value. | |
1247 | ac_cache_corrupted=false | |
1248 | for ac_var in `(set) 2>&1 | | |
1249 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1250 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1251 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1252 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1253 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1254 | case $ac_old_set,$ac_new_set in | |
1255 | set,) | |
1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1257 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1258 | ac_cache_corrupted=: ;; | |
1259 | ,set) | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1262 | ac_cache_corrupted=: ;; | |
1263 | ,);; | |
1264 | *) | |
1265 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1266 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1267 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1268 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1269 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1270 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1271 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1272 | ac_cache_corrupted=: | |
1273 | fi;; | |
1274 | esac | |
1275 | # Pass precious variables to config.status. | |
1276 | if test "$ac_new_set" = set; then | |
1277 | case $ac_new_val in | |
1278 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1279 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1280 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1281 | esac | |
1282 | case " $ac_configure_args " in | |
1283 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1284 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1285 | esac | |
1286 | fi | |
1287 | done | |
1288 | if $ac_cache_corrupted; then | |
1289 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1290 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1291 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1292 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1293 | { (exit 1); exit 1; }; } | |
1294 | fi | |
1295 | ||
1296 | ac_ext=c | |
1297 | ac_cpp='$CPP $CPPFLAGS' | |
1298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ac_aux_dir= | |
1322 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1323 | if test -f $ac_dir/install-sh; then | |
1324 | ac_aux_dir=$ac_dir | |
1325 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1326 | break | |
1327 | elif test -f $ac_dir/install.sh; then | |
1328 | ac_aux_dir=$ac_dir | |
1329 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1330 | break | |
1331 | elif test -f $ac_dir/shtool; then | |
1332 | ac_aux_dir=$ac_dir | |
1333 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1334 | break | |
1335 | fi | |
1336 | done | |
1337 | if test -z "$ac_aux_dir"; then | |
1338 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1339 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1340 | { (exit 1); exit 1; }; } | |
1341 | fi | |
1342 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1343 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1344 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1345 | ||
1346 | # Make sure we can run config.sub. | |
1347 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1348 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1349 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1350 | { (exit 1); exit 1; }; } | |
1351 | ||
1352 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1353 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1354 | if test "${ac_cv_build+set}" = set; then | |
1355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1356 | else | |
1357 | ac_cv_build_alias=$build_alias | |
1358 | test -z "$ac_cv_build_alias" && | |
1359 | ac_cv_build_alias=`$ac_config_guess` | |
1360 | test -z "$ac_cv_build_alias" && | |
1361 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1362 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1363 | { (exit 1); exit 1; }; } | |
1364 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1365 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1366 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1367 | { (exit 1); exit 1; }; } | |
1368 | ||
1369 | fi | |
1370 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1371 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1372 | build=$ac_cv_build | |
1373 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1374 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1375 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1376 | ||
1377 | ||
1378 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1379 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1380 | if test "${ac_cv_host+set}" = set; then | |
1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1382 | else | |
1383 | ac_cv_host_alias=$host_alias | |
1384 | test -z "$ac_cv_host_alias" && | |
1385 | ac_cv_host_alias=$ac_cv_build_alias | |
1386 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1387 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1388 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1389 | { (exit 1); exit 1; }; } | |
1390 | ||
1391 | fi | |
1392 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1393 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1394 | host=$ac_cv_host | |
1395 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1396 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1397 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1398 | ||
1399 | ||
1400 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1401 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1402 | if test "${ac_cv_target+set}" = set; then | |
1403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1404 | else | |
1405 | ac_cv_target_alias=$target_alias | |
1406 | test "x$ac_cv_target_alias" = "x" && | |
1407 | ac_cv_target_alias=$ac_cv_host_alias | |
1408 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1409 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1410 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1411 | { (exit 1); exit 1; }; } | |
1412 | ||
1413 | fi | |
1414 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1415 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1416 | target=$ac_cv_target | |
1417 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1418 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1419 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1420 | ||
1421 | ||
1422 | # The aliases save the names the user supplied, while $host etc. | |
1423 | # will get canonicalized. | |
1424 | test -n "$target_alias" && | |
1425 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1426 | NONENONEs,x,x, && | |
1427 | program_prefix=${target_alias}- | |
1428 | ac_ext=c | |
1429 | ac_cpp='$CPP $CPPFLAGS' | |
1430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1433 | if test -n "$ac_tool_prefix"; then | |
1434 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1435 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1436 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1438 | if test "${ac_cv_prog_CC+set}" = set; then | |
1439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1440 | else | |
1441 | if test -n "$CC"; then | |
1442 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1443 | else | |
1444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1445 | for as_dir in $PATH | |
1446 | do | |
1447 | IFS=$as_save_IFS | |
1448 | test -z "$as_dir" && as_dir=. | |
1449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1451 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1453 | break 2 | |
1454 | fi | |
1455 | done | |
1456 | done | |
1457 | ||
1458 | fi | |
1459 | fi | |
1460 | CC=$ac_cv_prog_CC | |
1461 | if test -n "$CC"; then | |
1462 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1463 | echo "${ECHO_T}$CC" >&6 | |
1464 | else | |
1465 | echo "$as_me:$LINENO: result: no" >&5 | |
1466 | echo "${ECHO_T}no" >&6 | |
1467 | fi | |
1468 | ||
1469 | fi | |
1470 | if test -z "$ac_cv_prog_CC"; then | |
1471 | ac_ct_CC=$CC | |
1472 | # Extract the first word of "gcc", so it can be a program name with args. | |
1473 | set dummy gcc; ac_word=$2 | |
1474 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1476 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1478 | else | |
1479 | if test -n "$ac_ct_CC"; then | |
1480 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1481 | else | |
1482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1483 | for as_dir in $PATH | |
1484 | do | |
1485 | IFS=$as_save_IFS | |
1486 | test -z "$as_dir" && as_dir=. | |
1487 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1488 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1489 | ac_cv_prog_ac_ct_CC="gcc" | |
1490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1491 | break 2 | |
1492 | fi | |
1493 | done | |
1494 | done | |
1495 | ||
1496 | fi | |
1497 | fi | |
1498 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1499 | if test -n "$ac_ct_CC"; then | |
1500 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1501 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1502 | else | |
1503 | echo "$as_me:$LINENO: result: no" >&5 | |
1504 | echo "${ECHO_T}no" >&6 | |
1505 | fi | |
1506 | ||
1507 | CC=$ac_ct_CC | |
1508 | else | |
1509 | CC="$ac_cv_prog_CC" | |
1510 | fi | |
1511 | ||
1512 | if test -z "$CC"; then | |
1513 | if test -n "$ac_tool_prefix"; then | |
1514 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1515 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1518 | if test "${ac_cv_prog_CC+set}" = set; then | |
1519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1520 | else | |
1521 | if test -n "$CC"; then | |
1522 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1523 | else | |
1524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1525 | for as_dir in $PATH | |
1526 | do | |
1527 | IFS=$as_save_IFS | |
1528 | test -z "$as_dir" && as_dir=. | |
1529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1531 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1533 | break 2 | |
1534 | fi | |
1535 | done | |
1536 | done | |
1537 | ||
1538 | fi | |
1539 | fi | |
1540 | CC=$ac_cv_prog_CC | |
1541 | if test -n "$CC"; then | |
1542 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1543 | echo "${ECHO_T}$CC" >&6 | |
1544 | else | |
1545 | echo "$as_me:$LINENO: result: no" >&5 | |
1546 | echo "${ECHO_T}no" >&6 | |
1547 | fi | |
1548 | ||
1549 | fi | |
1550 | if test -z "$ac_cv_prog_CC"; then | |
1551 | ac_ct_CC=$CC | |
1552 | # Extract the first word of "cc", so it can be a program name with args. | |
1553 | set dummy cc; ac_word=$2 | |
1554 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1556 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1558 | else | |
1559 | if test -n "$ac_ct_CC"; then | |
1560 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1561 | else | |
1562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1563 | for as_dir in $PATH | |
1564 | do | |
1565 | IFS=$as_save_IFS | |
1566 | test -z "$as_dir" && as_dir=. | |
1567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1568 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1569 | ac_cv_prog_ac_ct_CC="cc" | |
1570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1571 | break 2 | |
1572 | fi | |
1573 | done | |
1574 | done | |
1575 | ||
1576 | fi | |
1577 | fi | |
1578 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1579 | if test -n "$ac_ct_CC"; then | |
1580 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1581 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1582 | else | |
1583 | echo "$as_me:$LINENO: result: no" >&5 | |
1584 | echo "${ECHO_T}no" >&6 | |
1585 | fi | |
1586 | ||
1587 | CC=$ac_ct_CC | |
1588 | else | |
1589 | CC="$ac_cv_prog_CC" | |
1590 | fi | |
1591 | ||
1592 | fi | |
1593 | if test -z "$CC"; then | |
1594 | # Extract the first word of "cc", so it can be a program name with args. | |
1595 | set dummy cc; ac_word=$2 | |
1596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1598 | if test "${ac_cv_prog_CC+set}" = set; then | |
1599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1600 | else | |
1601 | if test -n "$CC"; then | |
1602 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1603 | else | |
1604 | ac_prog_rejected=no | |
1605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1606 | for as_dir in $PATH | |
1607 | do | |
1608 | IFS=$as_save_IFS | |
1609 | test -z "$as_dir" && as_dir=. | |
1610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1612 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1613 | ac_prog_rejected=yes | |
1614 | continue | |
1615 | fi | |
1616 | ac_cv_prog_CC="cc" | |
1617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1618 | break 2 | |
1619 | fi | |
1620 | done | |
1621 | done | |
1622 | ||
1623 | if test $ac_prog_rejected = yes; then | |
1624 | # We found a bogon in the path, so make sure we never use it. | |
1625 | set dummy $ac_cv_prog_CC | |
1626 | shift | |
1627 | if test $# != 0; then | |
1628 | # We chose a different compiler from the bogus one. | |
1629 | # However, it has the same basename, so the bogon will be chosen | |
1630 | # first if we set CC to just the basename; use the full file name. | |
1631 | shift | |
1632 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1633 | fi | |
1634 | fi | |
1635 | fi | |
1636 | fi | |
1637 | CC=$ac_cv_prog_CC | |
1638 | if test -n "$CC"; then | |
1639 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1640 | echo "${ECHO_T}$CC" >&6 | |
1641 | else | |
1642 | echo "$as_me:$LINENO: result: no" >&5 | |
1643 | echo "${ECHO_T}no" >&6 | |
1644 | fi | |
1645 | ||
1646 | fi | |
1647 | if test -z "$CC"; then | |
1648 | if test -n "$ac_tool_prefix"; then | |
1649 | for ac_prog in cl | |
1650 | do | |
1651 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1652 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1655 | if test "${ac_cv_prog_CC+set}" = set; then | |
1656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1657 | else | |
1658 | if test -n "$CC"; then | |
1659 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1660 | else | |
1661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1662 | for as_dir in $PATH | |
1663 | do | |
1664 | IFS=$as_save_IFS | |
1665 | test -z "$as_dir" && as_dir=. | |
1666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1668 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1670 | break 2 | |
1671 | fi | |
1672 | done | |
1673 | done | |
1674 | ||
1675 | fi | |
1676 | fi | |
1677 | CC=$ac_cv_prog_CC | |
1678 | if test -n "$CC"; then | |
1679 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1680 | echo "${ECHO_T}$CC" >&6 | |
1681 | else | |
1682 | echo "$as_me:$LINENO: result: no" >&5 | |
1683 | echo "${ECHO_T}no" >&6 | |
1684 | fi | |
1685 | ||
1686 | test -n "$CC" && break | |
1687 | done | |
1688 | fi | |
1689 | if test -z "$CC"; then | |
1690 | ac_ct_CC=$CC | |
1691 | for ac_prog in cl | |
1692 | do | |
1693 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1694 | set dummy $ac_prog; ac_word=$2 | |
1695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1697 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1699 | else | |
1700 | if test -n "$ac_ct_CC"; then | |
1701 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1702 | else | |
1703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1704 | for as_dir in $PATH | |
1705 | do | |
1706 | IFS=$as_save_IFS | |
1707 | test -z "$as_dir" && as_dir=. | |
1708 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1709 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1710 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1712 | break 2 | |
1713 | fi | |
1714 | done | |
1715 | done | |
1716 | ||
1717 | fi | |
1718 | fi | |
1719 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1720 | if test -n "$ac_ct_CC"; then | |
1721 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1722 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1723 | else | |
1724 | echo "$as_me:$LINENO: result: no" >&5 | |
1725 | echo "${ECHO_T}no" >&6 | |
1726 | fi | |
1727 | ||
1728 | test -n "$ac_ct_CC" && break | |
1729 | done | |
1730 | ||
1731 | CC=$ac_ct_CC | |
1732 | fi | |
1733 | ||
1734 | fi | |
1735 | ||
1736 | ||
1737 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1738 | See \`config.log' for more details." >&5 | |
1739 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1740 | See \`config.log' for more details." >&2;} | |
1741 | { (exit 1); exit 1; }; } | |
1742 | ||
1743 | # Provide some information about the compiler. | |
1744 | echo "$as_me:$LINENO:" \ | |
1745 | "checking for C compiler version" >&5 | |
1746 | ac_compiler=`set X $ac_compile; echo $2` | |
1747 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1748 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1749 | ac_status=$? | |
1750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1751 | (exit $ac_status); } | |
1752 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1753 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1754 | ac_status=$? | |
1755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1756 | (exit $ac_status); } | |
1757 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1758 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1759 | ac_status=$? | |
1760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1761 | (exit $ac_status); } | |
1762 | ||
1763 | cat >conftest.$ac_ext <<_ACEOF | |
1764 | /* confdefs.h. */ | |
1765 | _ACEOF | |
1766 | cat confdefs.h >>conftest.$ac_ext | |
1767 | cat >>conftest.$ac_ext <<_ACEOF | |
1768 | /* end confdefs.h. */ | |
1769 | ||
1770 | int | |
1771 | main () | |
1772 | { | |
1773 | ||
1774 | ; | |
1775 | return 0; | |
1776 | } | |
1777 | _ACEOF | |
1778 | ac_clean_files_save=$ac_clean_files | |
1779 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1780 | # Try to create an executable without -o first, disregard a.out. | |
1781 | # It will help us diagnose broken compilers, and finding out an intuition | |
1782 | # of exeext. | |
1783 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1784 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1785 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1786 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1787 | (eval $ac_link_default) 2>&5 | |
1788 | ac_status=$? | |
1789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1790 | (exit $ac_status); }; then | |
1791 | # Find the output, starting from the most likely. This scheme is | |
1792 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1793 | # resort. | |
1794 | ||
1795 | # Be careful to initialize this variable, since it used to be cached. | |
1796 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1797 | ac_cv_exeext= | |
1798 | # b.out is created by i960 compilers. | |
1799 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1800 | do | |
1801 | test -f "$ac_file" || continue | |
1802 | case $ac_file in | |
1803 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1804 | ;; | |
1805 | conftest.$ac_ext ) | |
1806 | # This is the source file. | |
1807 | ;; | |
1808 | [ab].out ) | |
1809 | # We found the default executable, but exeext='' is most | |
1810 | # certainly right. | |
1811 | break;; | |
1812 | *.* ) | |
1813 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1814 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1815 | # but it would be cool to find out if it's true. Does anybody | |
1816 | # maintain Libtool? --akim. | |
1817 | export ac_cv_exeext | |
1818 | break;; | |
1819 | * ) | |
1820 | break;; | |
1821 | esac | |
1822 | done | |
1823 | else | |
1824 | echo "$as_me: failed program was:" >&5 | |
1825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1826 | ||
1827 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1828 | See \`config.log' for more details." >&5 | |
1829 | echo "$as_me: error: C compiler cannot create executables | |
1830 | See \`config.log' for more details." >&2;} | |
1831 | { (exit 77); exit 77; }; } | |
1832 | fi | |
1833 | ||
1834 | ac_exeext=$ac_cv_exeext | |
1835 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1836 | echo "${ECHO_T}$ac_file" >&6 | |
1837 | ||
1838 | # Check the compiler produces executables we can run. If not, either | |
1839 | # the compiler is broken, or we cross compile. | |
1840 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1841 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1842 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1843 | # If not cross compiling, check that we can run a simple program. | |
1844 | if test "$cross_compiling" != yes; then | |
1845 | if { ac_try='./$ac_file' | |
1846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1847 | (eval $ac_try) 2>&5 | |
1848 | ac_status=$? | |
1849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1850 | (exit $ac_status); }; }; then | |
1851 | cross_compiling=no | |
1852 | else | |
1853 | if test "$cross_compiling" = maybe; then | |
1854 | cross_compiling=yes | |
1855 | else | |
1856 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1857 | If you meant to cross compile, use \`--host'. | |
1858 | See \`config.log' for more details." >&5 | |
1859 | echo "$as_me: error: cannot run C compiled programs. | |
1860 | If you meant to cross compile, use \`--host'. | |
1861 | See \`config.log' for more details." >&2;} | |
1862 | { (exit 1); exit 1; }; } | |
1863 | fi | |
1864 | fi | |
1865 | fi | |
1866 | echo "$as_me:$LINENO: result: yes" >&5 | |
1867 | echo "${ECHO_T}yes" >&6 | |
1868 | ||
1869 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1870 | ac_clean_files=$ac_clean_files_save | |
1871 | # Check the compiler produces executables we can run. If not, either | |
1872 | # the compiler is broken, or we cross compile. | |
1873 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1874 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1875 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1876 | echo "${ECHO_T}$cross_compiling" >&6 | |
1877 | ||
1878 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1879 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1881 | (eval $ac_link) 2>&5 | |
1882 | ac_status=$? | |
1883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1884 | (exit $ac_status); }; then | |
1885 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1886 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1887 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1888 | # `rm'. | |
1889 | for ac_file in conftest.exe conftest conftest.*; do | |
1890 | test -f "$ac_file" || continue | |
1891 | case $ac_file in | |
1892 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1893 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1894 | export ac_cv_exeext | |
1895 | break;; | |
1896 | * ) break;; | |
1897 | esac | |
1898 | done | |
1899 | else | |
1900 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1901 | See \`config.log' for more details." >&5 | |
1902 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1903 | See \`config.log' for more details." >&2;} | |
1904 | { (exit 1); exit 1; }; } | |
1905 | fi | |
1906 | ||
1907 | rm -f conftest$ac_cv_exeext | |
1908 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1909 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1910 | ||
1911 | rm -f conftest.$ac_ext | |
1912 | EXEEXT=$ac_cv_exeext | |
1913 | ac_exeext=$EXEEXT | |
1914 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1915 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1916 | if test "${ac_cv_objext+set}" = set; then | |
1917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1918 | else | |
1919 | cat >conftest.$ac_ext <<_ACEOF | |
1920 | /* confdefs.h. */ | |
1921 | _ACEOF | |
1922 | cat confdefs.h >>conftest.$ac_ext | |
1923 | cat >>conftest.$ac_ext <<_ACEOF | |
1924 | /* end confdefs.h. */ | |
1925 | ||
1926 | int | |
1927 | main () | |
1928 | { | |
1929 | ||
1930 | ; | |
1931 | return 0; | |
1932 | } | |
1933 | _ACEOF | |
1934 | rm -f conftest.o conftest.obj | |
1935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1936 | (eval $ac_compile) 2>&5 | |
1937 | ac_status=$? | |
1938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1939 | (exit $ac_status); }; then | |
1940 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1941 | case $ac_file in | |
1942 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1943 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1944 | break;; | |
1945 | esac | |
1946 | done | |
1947 | else | |
1948 | echo "$as_me: failed program was:" >&5 | |
1949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1950 | ||
1951 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1952 | See \`config.log' for more details." >&5 | |
1953 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1954 | See \`config.log' for more details." >&2;} | |
1955 | { (exit 1); exit 1; }; } | |
1956 | fi | |
1957 | ||
1958 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1959 | fi | |
1960 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1961 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1962 | OBJEXT=$ac_cv_objext | |
1963 | ac_objext=$OBJEXT | |
1964 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1965 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1966 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1968 | else | |
1969 | cat >conftest.$ac_ext <<_ACEOF | |
1970 | /* confdefs.h. */ | |
1971 | _ACEOF | |
1972 | cat confdefs.h >>conftest.$ac_ext | |
1973 | cat >>conftest.$ac_ext <<_ACEOF | |
1974 | /* end confdefs.h. */ | |
1975 | ||
1976 | int | |
1977 | main () | |
1978 | { | |
1979 | #ifndef __GNUC__ | |
1980 | choke me | |
1981 | #endif | |
1982 | ||
1983 | ; | |
1984 | return 0; | |
1985 | } | |
1986 | _ACEOF | |
1987 | rm -f conftest.$ac_objext | |
1988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1989 | (eval $ac_compile) 2>conftest.er1 | |
1990 | ac_status=$? | |
1991 | grep -v '^ *+' conftest.er1 >conftest.err | |
1992 | rm -f conftest.er1 | |
1993 | cat conftest.err >&5 | |
1994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1995 | (exit $ac_status); } && | |
b7d4af3a JW |
1996 | { ac_try='test -z "$ac_c_werror_flag" |
1997 | || test ! -s conftest.err' | |
42ecbf5e DJ |
1998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1999 | (eval $ac_try) 2>&5 | |
2000 | ac_status=$? | |
2001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2002 | (exit $ac_status); }; } && | |
2003 | { ac_try='test -s conftest.$ac_objext' | |
2004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2005 | (eval $ac_try) 2>&5 | |
2006 | ac_status=$? | |
2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2008 | (exit $ac_status); }; }; then | |
2009 | ac_compiler_gnu=yes | |
2010 | else | |
2011 | echo "$as_me: failed program was:" >&5 | |
2012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2013 | ||
2014 | ac_compiler_gnu=no | |
2015 | fi | |
2016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2017 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2018 | ||
2019 | fi | |
2020 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2021 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2022 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2023 | ac_test_CFLAGS=${CFLAGS+set} | |
2024 | ac_save_CFLAGS=$CFLAGS | |
2025 | CFLAGS="-g" | |
2026 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2027 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2028 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2030 | else | |
2031 | cat >conftest.$ac_ext <<_ACEOF | |
2032 | /* confdefs.h. */ | |
2033 | _ACEOF | |
2034 | cat confdefs.h >>conftest.$ac_ext | |
2035 | cat >>conftest.$ac_ext <<_ACEOF | |
2036 | /* end confdefs.h. */ | |
2037 | ||
2038 | int | |
2039 | main () | |
2040 | { | |
2041 | ||
2042 | ; | |
2043 | return 0; | |
2044 | } | |
2045 | _ACEOF | |
2046 | rm -f conftest.$ac_objext | |
2047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2048 | (eval $ac_compile) 2>conftest.er1 | |
2049 | ac_status=$? | |
2050 | grep -v '^ *+' conftest.er1 >conftest.err | |
2051 | rm -f conftest.er1 | |
2052 | cat conftest.err >&5 | |
2053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2054 | (exit $ac_status); } && | |
b7d4af3a JW |
2055 | { ac_try='test -z "$ac_c_werror_flag" |
2056 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2058 | (eval $ac_try) 2>&5 | |
2059 | ac_status=$? | |
2060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2061 | (exit $ac_status); }; } && | |
2062 | { ac_try='test -s conftest.$ac_objext' | |
2063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2064 | (eval $ac_try) 2>&5 | |
2065 | ac_status=$? | |
2066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2067 | (exit $ac_status); }; }; then | |
2068 | ac_cv_prog_cc_g=yes | |
2069 | else | |
2070 | echo "$as_me: failed program was:" >&5 | |
2071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2072 | ||
2073 | ac_cv_prog_cc_g=no | |
2074 | fi | |
2075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2076 | fi | |
2077 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2078 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2079 | if test "$ac_test_CFLAGS" = set; then | |
2080 | CFLAGS=$ac_save_CFLAGS | |
2081 | elif test $ac_cv_prog_cc_g = yes; then | |
2082 | if test "$GCC" = yes; then | |
2083 | CFLAGS="-g -O2" | |
2084 | else | |
2085 | CFLAGS="-g" | |
2086 | fi | |
2087 | else | |
2088 | if test "$GCC" = yes; then | |
2089 | CFLAGS="-O2" | |
2090 | else | |
2091 | CFLAGS= | |
2092 | fi | |
2093 | fi | |
2094 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2095 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2096 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2098 | else | |
2099 | ac_cv_prog_cc_stdc=no | |
2100 | ac_save_CC=$CC | |
2101 | cat >conftest.$ac_ext <<_ACEOF | |
2102 | /* confdefs.h. */ | |
2103 | _ACEOF | |
2104 | cat confdefs.h >>conftest.$ac_ext | |
2105 | cat >>conftest.$ac_ext <<_ACEOF | |
2106 | /* end confdefs.h. */ | |
2107 | #include <stdarg.h> | |
2108 | #include <stdio.h> | |
2109 | #include <sys/types.h> | |
2110 | #include <sys/stat.h> | |
2111 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2112 | struct buf { int x; }; | |
2113 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2114 | static char *e (p, i) | |
2115 | char **p; | |
2116 | int i; | |
2117 | { | |
2118 | return p[i]; | |
2119 | } | |
2120 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2121 | { | |
2122 | char *s; | |
2123 | va_list v; | |
2124 | va_start (v,p); | |
2125 | s = g (p, va_arg (v,int)); | |
2126 | va_end (v); | |
2127 | return s; | |
2128 | } | |
2129 | ||
2130 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2131 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2132 | These don't provoke an error unfortunately, instead are silently treated | |
2133 | as 'x'. The following induces an error, until -std1 is added to get | |
2134 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2135 | array size at least. It's necessary to write '\x00'==0 to get something | |
2136 | that's true only with -std1. */ | |
2137 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2138 | ||
2139 | int test (int i, double x); | |
2140 | struct s1 {int (*f) (int a);}; | |
2141 | struct s2 {int (*f) (double a);}; | |
2142 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2143 | int argc; | |
2144 | char **argv; | |
2145 | int | |
2146 | main () | |
2147 | { | |
2148 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2149 | ; | |
2150 | return 0; | |
2151 | } | |
2152 | _ACEOF | |
2153 | # Don't try gcc -ansi; that turns off useful extensions and | |
2154 | # breaks some systems' header files. | |
2155 | # AIX -qlanglvl=ansi | |
2156 | # Ultrix and OSF/1 -std1 | |
2157 | # HP-UX 10.20 and later -Ae | |
2158 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2159 | # SVR4 -Xc -D__EXTENSIONS__ | |
2160 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2161 | do | |
2162 | CC="$ac_save_CC $ac_arg" | |
2163 | rm -f conftest.$ac_objext | |
2164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2165 | (eval $ac_compile) 2>conftest.er1 | |
2166 | ac_status=$? | |
2167 | grep -v '^ *+' conftest.er1 >conftest.err | |
2168 | rm -f conftest.er1 | |
2169 | cat conftest.err >&5 | |
2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2171 | (exit $ac_status); } && | |
b7d4af3a JW |
2172 | { ac_try='test -z "$ac_c_werror_flag" |
2173 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2175 | (eval $ac_try) 2>&5 | |
2176 | ac_status=$? | |
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2178 | (exit $ac_status); }; } && | |
2179 | { ac_try='test -s conftest.$ac_objext' | |
2180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2181 | (eval $ac_try) 2>&5 | |
2182 | ac_status=$? | |
2183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2184 | (exit $ac_status); }; }; then | |
2185 | ac_cv_prog_cc_stdc=$ac_arg | |
2186 | break | |
2187 | else | |
2188 | echo "$as_me: failed program was:" >&5 | |
2189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2190 | ||
2191 | fi | |
2192 | rm -f conftest.err conftest.$ac_objext | |
2193 | done | |
2194 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2195 | CC=$ac_save_CC | |
2196 | ||
2197 | fi | |
2198 | ||
2199 | case "x$ac_cv_prog_cc_stdc" in | |
2200 | x|xno) | |
2201 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2202 | echo "${ECHO_T}none needed" >&6 ;; | |
2203 | *) | |
2204 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2205 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2206 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2207 | esac | |
2208 | ||
2209 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2210 | # in C++ we need to declare it. In case someone uses the same compiler | |
2211 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2212 | # the declaration of exit, since it's the most demanding environment. | |
2213 | cat >conftest.$ac_ext <<_ACEOF | |
2214 | #ifndef __cplusplus | |
2215 | choke me | |
2216 | #endif | |
2217 | _ACEOF | |
2218 | rm -f conftest.$ac_objext | |
2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2220 | (eval $ac_compile) 2>conftest.er1 | |
2221 | ac_status=$? | |
2222 | grep -v '^ *+' conftest.er1 >conftest.err | |
2223 | rm -f conftest.er1 | |
2224 | cat conftest.err >&5 | |
2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2226 | (exit $ac_status); } && | |
b7d4af3a JW |
2227 | { ac_try='test -z "$ac_c_werror_flag" |
2228 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2230 | (eval $ac_try) 2>&5 | |
2231 | ac_status=$? | |
2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2233 | (exit $ac_status); }; } && | |
2234 | { ac_try='test -s conftest.$ac_objext' | |
2235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2236 | (eval $ac_try) 2>&5 | |
2237 | ac_status=$? | |
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2239 | (exit $ac_status); }; }; then | |
2240 | for ac_declaration in \ | |
2241 | '' \ | |
2242 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2243 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2244 | 'extern "C" void exit (int) throw ();' \ | |
2245 | 'extern "C" void exit (int);' \ | |
2246 | 'void exit (int);' | |
2247 | do | |
2248 | cat >conftest.$ac_ext <<_ACEOF | |
2249 | /* confdefs.h. */ | |
2250 | _ACEOF | |
2251 | cat confdefs.h >>conftest.$ac_ext | |
2252 | cat >>conftest.$ac_ext <<_ACEOF | |
2253 | /* end confdefs.h. */ | |
2254 | $ac_declaration | |
2255 | #include <stdlib.h> | |
2256 | int | |
2257 | main () | |
2258 | { | |
2259 | exit (42); | |
2260 | ; | |
2261 | return 0; | |
2262 | } | |
2263 | _ACEOF | |
2264 | rm -f conftest.$ac_objext | |
2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2266 | (eval $ac_compile) 2>conftest.er1 | |
2267 | ac_status=$? | |
2268 | grep -v '^ *+' conftest.er1 >conftest.err | |
2269 | rm -f conftest.er1 | |
2270 | cat conftest.err >&5 | |
2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2272 | (exit $ac_status); } && | |
b7d4af3a JW |
2273 | { ac_try='test -z "$ac_c_werror_flag" |
2274 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2276 | (eval $ac_try) 2>&5 | |
2277 | ac_status=$? | |
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2279 | (exit $ac_status); }; } && | |
2280 | { ac_try='test -s conftest.$ac_objext' | |
2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2282 | (eval $ac_try) 2>&5 | |
2283 | ac_status=$? | |
2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2285 | (exit $ac_status); }; }; then | |
2286 | : | |
2287 | else | |
2288 | echo "$as_me: failed program was:" >&5 | |
2289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2290 | ||
2291 | continue | |
2292 | fi | |
2293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2294 | cat >conftest.$ac_ext <<_ACEOF | |
2295 | /* confdefs.h. */ | |
2296 | _ACEOF | |
2297 | cat confdefs.h >>conftest.$ac_ext | |
2298 | cat >>conftest.$ac_ext <<_ACEOF | |
2299 | /* end confdefs.h. */ | |
2300 | $ac_declaration | |
2301 | int | |
2302 | main () | |
2303 | { | |
2304 | exit (42); | |
2305 | ; | |
2306 | return 0; | |
2307 | } | |
2308 | _ACEOF | |
2309 | rm -f conftest.$ac_objext | |
2310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2311 | (eval $ac_compile) 2>conftest.er1 | |
2312 | ac_status=$? | |
2313 | grep -v '^ *+' conftest.er1 >conftest.err | |
2314 | rm -f conftest.er1 | |
2315 | cat conftest.err >&5 | |
2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2317 | (exit $ac_status); } && | |
b7d4af3a JW |
2318 | { ac_try='test -z "$ac_c_werror_flag" |
2319 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2321 | (eval $ac_try) 2>&5 | |
2322 | ac_status=$? | |
2323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2324 | (exit $ac_status); }; } && | |
2325 | { ac_try='test -s conftest.$ac_objext' | |
2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2327 | (eval $ac_try) 2>&5 | |
2328 | ac_status=$? | |
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2330 | (exit $ac_status); }; }; then | |
2331 | break | |
2332 | else | |
2333 | echo "$as_me: failed program was:" >&5 | |
2334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2335 | ||
2336 | fi | |
2337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2338 | done | |
2339 | rm -f conftest* | |
2340 | if test -n "$ac_declaration"; then | |
2341 | echo '#ifdef __cplusplus' >>confdefs.h | |
2342 | echo $ac_declaration >>confdefs.h | |
2343 | echo '#endif' >>confdefs.h | |
2344 | fi | |
2345 | ||
2346 | else | |
2347 | echo "$as_me: failed program was:" >&5 | |
2348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2349 | ||
2350 | fi | |
2351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2352 | ac_ext=c | |
2353 | ac_cpp='$CPP $CPPFLAGS' | |
2354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2357 | ||
2358 | ||
2359 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2360 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2361 | if test "${ac_cv_search_strerror+set}" = set; then | |
2362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2363 | else | |
2364 | ac_func_search_save_LIBS=$LIBS | |
2365 | ac_cv_search_strerror=no | |
2366 | cat >conftest.$ac_ext <<_ACEOF | |
2367 | /* confdefs.h. */ | |
2368 | _ACEOF | |
2369 | cat confdefs.h >>conftest.$ac_ext | |
2370 | cat >>conftest.$ac_ext <<_ACEOF | |
2371 | /* end confdefs.h. */ | |
2372 | ||
2373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2374 | #ifdef __cplusplus | |
2375 | extern "C" | |
2376 | #endif | |
2377 | /* We use char because int might match the return type of a gcc2 | |
2378 | builtin and then its argument prototype would still apply. */ | |
2379 | char strerror (); | |
2380 | int | |
2381 | main () | |
2382 | { | |
2383 | strerror (); | |
2384 | ; | |
2385 | return 0; | |
2386 | } | |
2387 | _ACEOF | |
2388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2390 | (eval $ac_link) 2>conftest.er1 | |
2391 | ac_status=$? | |
2392 | grep -v '^ *+' conftest.er1 >conftest.err | |
2393 | rm -f conftest.er1 | |
2394 | cat conftest.err >&5 | |
2395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2396 | (exit $ac_status); } && | |
b7d4af3a JW |
2397 | { ac_try='test -z "$ac_c_werror_flag" |
2398 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2400 | (eval $ac_try) 2>&5 | |
2401 | ac_status=$? | |
2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2403 | (exit $ac_status); }; } && | |
2404 | { ac_try='test -s conftest$ac_exeext' | |
2405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2406 | (eval $ac_try) 2>&5 | |
2407 | ac_status=$? | |
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2409 | (exit $ac_status); }; }; then | |
2410 | ac_cv_search_strerror="none required" | |
2411 | else | |
2412 | echo "$as_me: failed program was:" >&5 | |
2413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2414 | ||
2415 | fi | |
2416 | rm -f conftest.err conftest.$ac_objext \ | |
2417 | conftest$ac_exeext conftest.$ac_ext | |
2418 | if test "$ac_cv_search_strerror" = no; then | |
2419 | for ac_lib in cposix; do | |
2420 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2421 | cat >conftest.$ac_ext <<_ACEOF | |
2422 | /* confdefs.h. */ | |
2423 | _ACEOF | |
2424 | cat confdefs.h >>conftest.$ac_ext | |
2425 | cat >>conftest.$ac_ext <<_ACEOF | |
2426 | /* end confdefs.h. */ | |
2427 | ||
2428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2429 | #ifdef __cplusplus | |
2430 | extern "C" | |
2431 | #endif | |
2432 | /* We use char because int might match the return type of a gcc2 | |
2433 | builtin and then its argument prototype would still apply. */ | |
2434 | char strerror (); | |
2435 | int | |
2436 | main () | |
2437 | { | |
2438 | strerror (); | |
2439 | ; | |
2440 | return 0; | |
2441 | } | |
2442 | _ACEOF | |
2443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2445 | (eval $ac_link) 2>conftest.er1 | |
2446 | ac_status=$? | |
2447 | grep -v '^ *+' conftest.er1 >conftest.err | |
2448 | rm -f conftest.er1 | |
2449 | cat conftest.err >&5 | |
2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2451 | (exit $ac_status); } && | |
b7d4af3a JW |
2452 | { ac_try='test -z "$ac_c_werror_flag" |
2453 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2455 | (eval $ac_try) 2>&5 | |
2456 | ac_status=$? | |
2457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2458 | (exit $ac_status); }; } && | |
2459 | { ac_try='test -s conftest$ac_exeext' | |
2460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2461 | (eval $ac_try) 2>&5 | |
2462 | ac_status=$? | |
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2464 | (exit $ac_status); }; }; then | |
2465 | ac_cv_search_strerror="-l$ac_lib" | |
2466 | break | |
2467 | else | |
2468 | echo "$as_me: failed program was:" >&5 | |
2469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2470 | ||
2471 | fi | |
2472 | rm -f conftest.err conftest.$ac_objext \ | |
2473 | conftest$ac_exeext conftest.$ac_ext | |
2474 | done | |
2475 | fi | |
2476 | LIBS=$ac_func_search_save_LIBS | |
2477 | fi | |
2478 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2479 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2480 | if test "$ac_cv_search_strerror" != no; then | |
2481 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2482 | ||
2483 | fi | |
2484 | ||
2485 | ||
2486 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
2487 | am__api_version="1.9" | |
2488 | # Find a good install program. We prefer a C program (faster), | |
2489 | # so one script is as good as another. But avoid the broken or | |
2490 | # incompatible versions: | |
2491 | # SysV /etc/install, /usr/sbin/install | |
2492 | # SunOS /usr/etc/install | |
2493 | # IRIX /sbin/install | |
2494 | # AIX /bin/install | |
2495 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2496 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2497 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2498 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2499 | # OS/2's system install, which has a completely different semantic | |
2500 | # ./install, which can be erroneously created by make from ./install.sh. | |
2501 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2502 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2503 | if test -z "$INSTALL"; then | |
2504 | if test "${ac_cv_path_install+set}" = set; then | |
2505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2506 | else | |
2507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2508 | for as_dir in $PATH | |
2509 | do | |
2510 | IFS=$as_save_IFS | |
2511 | test -z "$as_dir" && as_dir=. | |
2512 | # Account for people who put trailing slashes in PATH elements. | |
2513 | case $as_dir/ in | |
2514 | ./ | .// | /cC/* | \ | |
2515 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2516 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2517 | /usr/ucb/* ) ;; | |
2518 | *) | |
2519 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2520 | # Don't use installbsd from OSF since it installs stuff as root | |
2521 | # by default. | |
2522 | for ac_prog in ginstall scoinst install; do | |
2523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2524 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2525 | if test $ac_prog = install && | |
2526 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
252b5132 RH |
2527 | # AIX install. It has an incompatible calling convention. |
2528 | : | |
42ecbf5e DJ |
2529 | elif test $ac_prog = install && |
2530 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2531 | # program-specific install script used by HP pwplus--don't use. | |
2532 | : | |
252b5132 | 2533 | else |
42ecbf5e DJ |
2534 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2535 | break 3 | |
252b5132 RH |
2536 | fi |
2537 | fi | |
d15b04bd | 2538 | done |
42ecbf5e DJ |
2539 | done |
2540 | ;; | |
2541 | esac | |
2542 | done | |
2543 | ||
252b5132 RH |
2544 | |
2545 | fi | |
2546 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 2547 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2548 | else |
2549 | # As a last resort, use the slow shell script. We don't cache a | |
2550 | # path for INSTALL within a source directory, because that will | |
2551 | # break other packages using the cache if that directory is | |
2552 | # removed, or if the path is relative. | |
42ecbf5e | 2553 | INSTALL=$ac_install_sh |
252b5132 RH |
2554 | fi |
2555 | fi | |
42ecbf5e DJ |
2556 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2557 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2558 | |
2559 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2560 | # It thinks the first close brace ends the variable substitution. | |
2561 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2562 | ||
42ecbf5e | 2563 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2564 | |
2565 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2566 | ||
42ecbf5e DJ |
2567 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2568 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2569 | # Just in case |
2570 | sleep 1 | |
42ecbf5e | 2571 | echo timestamp > conftest.file |
252b5132 RH |
2572 | # Do `set' in a subshell so we don't clobber the current shell's |
2573 | # arguments. Must try -L first in case configure is actually a | |
2574 | # symlink; some systems play weird games with the mod time of symlinks | |
2575 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2576 | # directory). | |
2577 | if ( | |
42ecbf5e | 2578 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2579 | if test "$*" = "X"; then |
2580 | # -L didn't work. | |
42ecbf5e | 2581 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2582 | fi |
42ecbf5e DJ |
2583 | rm -f conftest.file |
2584 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2585 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2586 | |
2587 | # If neither matched, then we have a broken ls. This can happen | |
2588 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2589 | # broken ls alias from the environment. This has actually | |
2590 | # happened. Such a system could not be considered "sane". | |
42ecbf5e DJ |
2591 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2592 | alias in your environment" >&5 | |
2593 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2594 | alias in your environment" >&2;} | |
2595 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2596 | fi |
2597 | ||
42ecbf5e | 2598 | test "$2" = conftest.file |
252b5132 RH |
2599 | ) |
2600 | then | |
2601 | # Ok. | |
2602 | : | |
2603 | else | |
42ecbf5e DJ |
2604 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2605 | Check your system clock" >&5 | |
2606 | echo "$as_me: error: newly created file is older than distributed files! | |
2607 | Check your system clock" >&2;} | |
2608 | { (exit 1); exit 1; }; } | |
2609 | fi | |
2610 | echo "$as_me:$LINENO: result: yes" >&5 | |
2611 | echo "${ECHO_T}yes" >&6 | |
2612 | test "$program_prefix" != NONE && | |
2613 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
2614 | # Use a double $ so make ignores it. | |
2615 | test "$program_suffix" != NONE && | |
2616 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
2617 | # Double any \ or $. echo might interpret backslashes. | |
2618 | # By default was `s,x,x', remove it if useless. | |
2619 | cat <<\_ACEOF >conftest.sed | |
2620 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2621 | _ACEOF | |
2622 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2623 | rm conftest.sed | |
2624 | ||
2625 | # expand $ac_aux_dir to an absolute path | |
2626 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2627 | ||
2628 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2629 | # Use eval to expand $SHELL | |
2630 | if eval "$MISSING --run true"; then | |
2631 | am_missing_run="$MISSING --run " | |
2632 | else | |
2633 | am_missing_run= | |
2634 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2635 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2636 | fi | |
2637 | ||
2638 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2639 | # We used to keeping the `.' as first argument, in order to | |
2640 | # allow $(mkdir_p) to be used without argument. As in | |
2641 | # $(mkdir_p) $(somedir) | |
2642 | # where $(somedir) is conditionally defined. However this is wrong | |
2643 | # for two reasons: | |
2644 | # 1. if the package is installed by a user who cannot write `.' | |
2645 | # make install will fail, | |
2646 | # 2. the above comment should most certainly read | |
2647 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2648 | # so it does not work when $(somedir) is undefined and | |
2649 | # $(DESTDIR) is not. | |
2650 | # To support the latter case, we have to write | |
2651 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2652 | # so the `.' trick is pointless. | |
2653 | mkdir_p='mkdir -p --' | |
2654 | else | |
2655 | # On NextStep and OpenStep, the `mkdir' command does not | |
2656 | # recognize any option. It will interpret all options as | |
2657 | # directories to create, and then abort because `.' already | |
2658 | # exists. | |
2659 | for d in ./-p ./--version; | |
2660 | do | |
2661 | test -d $d && rmdir $d | |
2662 | done | |
2663 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2664 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2665 | mkdir_p='$(mkinstalldirs)' | |
2666 | else | |
2667 | mkdir_p='$(install_sh) -d' | |
2668 | fi | |
2669 | fi | |
2670 | ||
2671 | for ac_prog in gawk mawk nawk awk | |
2672 | do | |
2673 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2674 | set dummy $ac_prog; ac_word=$2 | |
2675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2677 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2679 | else | |
2680 | if test -n "$AWK"; then | |
2681 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2682 | else | |
2683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2684 | for as_dir in $PATH | |
2685 | do | |
2686 | IFS=$as_save_IFS | |
2687 | test -z "$as_dir" && as_dir=. | |
2688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2690 | ac_cv_prog_AWK="$ac_prog" | |
2691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2692 | break 2 | |
2693 | fi | |
2694 | done | |
2695 | done | |
2696 | ||
2697 | fi | |
2698 | fi | |
2699 | AWK=$ac_cv_prog_AWK | |
2700 | if test -n "$AWK"; then | |
2701 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2702 | echo "${ECHO_T}$AWK" >&6 | |
2703 | else | |
2704 | echo "$as_me:$LINENO: result: no" >&5 | |
2705 | echo "${ECHO_T}no" >&6 | |
2706 | fi | |
2707 | ||
2708 | test -n "$AWK" && break | |
2709 | done | |
2710 | ||
2711 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2712 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2713 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2714 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2716 | else | |
2717 | cat >conftest.make <<\_ACEOF | |
2718 | all: | |
2719 | @echo 'ac_maketemp="$(MAKE)"' | |
2720 | _ACEOF | |
2721 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2722 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2723 | if test -n "$ac_maketemp"; then | |
2724 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2725 | else | |
2726 | eval ac_cv_prog_make_${ac_make}_set=no | |
2727 | fi | |
2728 | rm -f conftest.make | |
2729 | fi | |
2730 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2731 | echo "$as_me:$LINENO: result: yes" >&5 | |
2732 | echo "${ECHO_T}yes" >&6 | |
2733 | SET_MAKE= | |
2734 | else | |
2735 | echo "$as_me:$LINENO: result: no" >&5 | |
2736 | echo "${ECHO_T}no" >&6 | |
2737 | SET_MAKE="MAKE=${MAKE-make}" | |
2738 | fi | |
2739 | ||
2740 | rm -rf .tst 2>/dev/null | |
2741 | mkdir .tst 2>/dev/null | |
2742 | if test -d .tst; then | |
2743 | am__leading_dot=. | |
2744 | else | |
2745 | am__leading_dot=_ | |
2746 | fi | |
2747 | rmdir .tst 2>/dev/null | |
2748 | ||
2749 | DEPDIR="${am__leading_dot}deps" | |
2750 | ||
2751 | ac_config_commands="$ac_config_commands depfiles" | |
2752 | ||
2753 | ||
2754 | am_make=${MAKE-make} | |
2755 | cat > confinc << 'END' | |
2756 | am__doit: | |
2757 | @echo done | |
2758 | .PHONY: am__doit | |
2759 | END | |
2760 | # If we don't find an include directive, just comment out the code. | |
2761 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2762 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2763 | am__include="#" | |
2764 | am__quote= | |
2765 | _am_result=none | |
2766 | # First try GNU make style include. | |
2767 | echo "include confinc" > confmf | |
2768 | # We grep out `Entering directory' and `Leaving directory' | |
2769 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2770 | # In particular we don't look at `^make:' because GNU make might | |
2771 | # be invoked under some other name (usually "gmake"), in which | |
2772 | # case it prints its new name instead of `make'. | |
2773 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2774 | am__include=include | |
2775 | am__quote= | |
2776 | _am_result=GNU | |
2777 | fi | |
2778 | # Now try BSD make style include. | |
2779 | if test "$am__include" = "#"; then | |
2780 | echo '.include "confinc"' > confmf | |
2781 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2782 | am__include=.include | |
2783 | am__quote="\"" | |
2784 | _am_result=BSD | |
2785 | fi | |
2786 | fi | |
2787 | ||
2788 | ||
2789 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2790 | echo "${ECHO_T}$_am_result" >&6 | |
2791 | rm -f confinc confmf | |
2792 | ||
2793 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2794 | if test "${enable_dependency_tracking+set}" = set; then | |
2795 | enableval="$enable_dependency_tracking" | |
2796 | ||
2797 | fi; | |
2798 | if test "x$enable_dependency_tracking" != xno; then | |
2799 | am_depcomp="$ac_aux_dir/depcomp" | |
2800 | AMDEPBACKSLASH='\' | |
2801 | fi | |
2802 | ||
2803 | ||
2804 | if test "x$enable_dependency_tracking" != xno; then | |
2805 | AMDEP_TRUE= | |
2806 | AMDEP_FALSE='#' | |
2807 | else | |
2808 | AMDEP_TRUE='#' | |
2809 | AMDEP_FALSE= | |
2810 | fi | |
2811 | ||
2812 | ||
2813 | ||
2814 | # test to see if srcdir already configured | |
2815 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2816 | test -f $srcdir/config.status; then | |
2817 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2818 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2819 | { (exit 1); exit 1; }; } | |
2820 | fi | |
2821 | ||
2822 | # test whether we have cygpath | |
2823 | if test -z "$CYGPATH_W"; then | |
2824 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2825 | CYGPATH_W='cygpath -w' | |
2826 | else | |
2827 | CYGPATH_W=echo | |
2828 | fi | |
2829 | fi | |
2830 | ||
2831 | ||
2832 | # Define the identity of the package. | |
2833 | PACKAGE=binutils | |
2834 | VERSION=${BFD_VERSION} | |
2835 | ||
2836 | ||
2837 | cat >>confdefs.h <<_ACEOF | |
2838 | #define PACKAGE "$PACKAGE" | |
2839 | _ACEOF | |
2840 | ||
2841 | ||
2842 | cat >>confdefs.h <<_ACEOF | |
2843 | #define VERSION "$VERSION" | |
2844 | _ACEOF | |
2845 | ||
2846 | # Some tools Automake needs. | |
2847 | ||
2848 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2849 | ||
2850 | ||
2851 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2852 | ||
2853 | ||
2854 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2855 | ||
2856 | ||
2857 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2858 | ||
2859 | ||
2860 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2861 | ||
2862 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2863 | ||
2864 | # Installed binaries are usually stripped using `strip' when the user | |
2865 | # run `make install-strip'. However `strip' might not be the right | |
2866 | # tool to use in cross-compilation environments, therefore Automake | |
2867 | # will honor the `STRIP' environment variable to overrule this program. | |
2868 | if test "$cross_compiling" != no; then | |
2869 | if test -n "$ac_tool_prefix"; then | |
2870 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2871 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2874 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2876 | else | |
2877 | if test -n "$STRIP"; then | |
2878 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2879 | else | |
2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2881 | for as_dir in $PATH | |
2882 | do | |
2883 | IFS=$as_save_IFS | |
2884 | test -z "$as_dir" && as_dir=. | |
2885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2887 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2889 | break 2 | |
2890 | fi | |
2891 | done | |
2892 | done | |
2893 | ||
252b5132 | 2894 | fi |
42ecbf5e DJ |
2895 | fi |
2896 | STRIP=$ac_cv_prog_STRIP | |
2897 | if test -n "$STRIP"; then | |
2898 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2899 | echo "${ECHO_T}$STRIP" >&6 | |
d15b04bd | 2900 | else |
42ecbf5e DJ |
2901 | echo "$as_me:$LINENO: result: no" >&5 |
2902 | echo "${ECHO_T}no" >&6 | |
d15b04bd | 2903 | fi |
d15b04bd | 2904 | |
42ecbf5e DJ |
2905 | fi |
2906 | if test -z "$ac_cv_prog_STRIP"; then | |
2907 | ac_ct_STRIP=$STRIP | |
2908 | # Extract the first word of "strip", so it can be a program name with args. | |
2909 | set dummy strip; ac_word=$2 | |
2910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2912 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd | 2914 | else |
42ecbf5e DJ |
2915 | if test -n "$ac_ct_STRIP"; then |
2916 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
252b5132 | 2917 | else |
42ecbf5e DJ |
2918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2919 | for as_dir in $PATH | |
2920 | do | |
2921 | IFS=$as_save_IFS | |
2922 | test -z "$as_dir" && as_dir=. | |
2923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2925 | ac_cv_prog_ac_ct_STRIP="strip" | |
2926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2927 | break 2 | |
2928 | fi | |
2929 | done | |
2930 | done | |
2931 | ||
2932 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
252b5132 | 2933 | fi |
252b5132 | 2934 | fi |
42ecbf5e DJ |
2935 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2936 | if test -n "$ac_ct_STRIP"; then | |
2937 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2938 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2939 | else |
42ecbf5e DJ |
2940 | echo "$as_me:$LINENO: result: no" >&5 |
2941 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2942 | fi |
2943 | ||
42ecbf5e DJ |
2944 | STRIP=$ac_ct_STRIP |
2945 | else | |
2946 | STRIP="$ac_cv_prog_STRIP" | |
2947 | fi | |
252b5132 | 2948 | |
42ecbf5e DJ |
2949 | fi |
2950 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
252b5132 | 2951 | |
42ecbf5e DJ |
2952 | # We need awk for the "check" target. The system "awk" is bad on |
2953 | # some platforms. | |
2954 | # Always define AMTAR for backward compatibility. | |
252b5132 | 2955 | |
42ecbf5e | 2956 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
252b5132 | 2957 | |
42ecbf5e | 2958 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
252b5132 RH |
2959 | |
2960 | ||
2961 | ||
252b5132 | 2962 | |
42ecbf5e DJ |
2963 | depcc="$CC" am_compiler_list= |
2964 | ||
2965 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2966 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2967 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2969 | else |
42ecbf5e DJ |
2970 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2971 | # We make a subdir and do the tests there. Otherwise we can end up | |
2972 | # making bogus files that we don't know about and never remove. For | |
2973 | # instance it was reported that on HP-UX the gcc test will end up | |
2974 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2975 | # in D'. | |
2976 | mkdir conftest.dir | |
2977 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2978 | # using a relative directory. | |
2979 | cp "$am_depcomp" conftest.dir | |
2980 | cd conftest.dir | |
2981 | # We will build objects and dependencies in a subdirectory because | |
2982 | # it helps to detect inapplicable dependency modes. For instance | |
2983 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2984 | # side effect of compilation, but ICC will put the dependencies in | |
2985 | # the current directory while Tru64 will put them in the object | |
2986 | # directory. | |
2987 | mkdir sub | |
252b5132 | 2988 | |
42ecbf5e DJ |
2989 | am_cv_CC_dependencies_compiler_type=none |
2990 | if test "$am_compiler_list" = ""; then | |
2991 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2992 | fi | |
2993 | for depmode in $am_compiler_list; do | |
2994 | # Setup a source with many dependencies, because some compilers | |
2995 | # like to wrap large dependency lists on column 80 (with \), and | |
2996 | # we should not choose a depcomp mode which is confused by this. | |
2997 | # | |
2998 | # We need to recreate these files for each test, as the compiler may | |
2999 | # overwrite some of them when testing with obscure command lines. | |
3000 | # This happens at least with the AIX C compiler. | |
3001 | : > sub/conftest.c | |
3002 | for i in 1 2 3 4 5 6; do | |
3003 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3004 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3005 | # Solaris 8's {/usr,}/bin/sh. | |
3006 | touch sub/conftst$i.h | |
3007 | done | |
3008 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3009 | ||
3010 | case $depmode in | |
3011 | nosideeffect) | |
3012 | # after this tag, mechanisms are not by side-effect, so they'll | |
3013 | # only be used when explicitly requested | |
3014 | if test "x$enable_dependency_tracking" = xyes; then | |
3015 | continue | |
3016 | else | |
3017 | break | |
3018 | fi | |
3019 | ;; | |
3020 | none) break ;; | |
3021 | esac | |
3022 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3023 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3024 | # handle `-M -o', and we need to detect this. | |
3025 | if depmode=$depmode \ | |
3026 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3027 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3028 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3029 | >/dev/null 2>conftest.err && | |
3030 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3031 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3032 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3033 | # icc doesn't choke on unknown options, it will just issue warnings | |
3034 | # or remarks (even with -Werror). So we grep stderr for any message | |
3035 | # that says an option was ignored or not supported. | |
3036 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3037 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3038 | # The diagnosis changed in icc 8.0: | |
3039 | # icc: Command line remark: option '-MP' not supported | |
3040 | if (grep 'ignoring option' conftest.err || | |
3041 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3042 | am_cv_CC_dependencies_compiler_type=$depmode | |
3043 | break | |
3044 | fi | |
3045 | fi | |
3046 | done | |
3047 | ||
3048 | cd .. | |
3049 | rm -rf conftest.dir | |
252b5132 | 3050 | else |
42ecbf5e | 3051 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3052 | fi |
3053 | ||
252b5132 | 3054 | fi |
42ecbf5e DJ |
3055 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3056 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3057 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3058 | ||
3059 | ||
252b5132 | 3060 | |
42ecbf5e DJ |
3061 | if |
3062 | test "x$enable_dependency_tracking" != xno \ | |
3063 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3064 | am__fastdepCC_TRUE= | |
3065 | am__fastdepCC_FALSE='#' | |
252b5132 | 3066 | else |
42ecbf5e DJ |
3067 | am__fastdepCC_TRUE='#' |
3068 | am__fastdepCC_FALSE= | |
252b5132 RH |
3069 | fi |
3070 | ||
3071 | ||
3072 | ||
42ecbf5e | 3073 | |
252b5132 RH |
3074 | # Check whether --enable-shared or --disable-shared was given. |
3075 | if test "${enable_shared+set}" = set; then | |
3076 | enableval="$enable_shared" | |
3077 | p=${PACKAGE-default} | |
6be7c12c | 3078 | case $enableval in |
252b5132 RH |
3079 | yes) enable_shared=yes ;; |
3080 | no) enable_shared=no ;; | |
3081 | *) | |
3082 | enable_shared=no | |
3083 | # Look at the argument we got. We use all the common list separators. | |
3084 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3085 | for pkg in $enableval; do | |
3086 | if test "X$pkg" = "X$p"; then | |
3087 | enable_shared=yes | |
3088 | fi | |
3089 | done | |
3090 | IFS="$ac_save_ifs" | |
3091 | ;; | |
3092 | esac | |
3093 | else | |
3094 | enable_shared=yes | |
42ecbf5e | 3095 | fi; |
252b5132 RH |
3096 | # Check whether --enable-static or --disable-static was given. |
3097 | if test "${enable_static+set}" = set; then | |
3098 | enableval="$enable_static" | |
3099 | p=${PACKAGE-default} | |
6be7c12c | 3100 | case $enableval in |
252b5132 RH |
3101 | yes) enable_static=yes ;; |
3102 | no) enable_static=no ;; | |
3103 | *) | |
3104 | enable_static=no | |
3105 | # Look at the argument we got. We use all the common list separators. | |
3106 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3107 | for pkg in $enableval; do | |
3108 | if test "X$pkg" = "X$p"; then | |
3109 | enable_static=yes | |
3110 | fi | |
3111 | done | |
3112 | IFS="$ac_save_ifs" | |
3113 | ;; | |
3114 | esac | |
3115 | else | |
3116 | enable_static=yes | |
42ecbf5e | 3117 | fi; |
252b5132 RH |
3118 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3119 | if test "${enable_fast_install+set}" = set; then | |
3120 | enableval="$enable_fast_install" | |
3121 | p=${PACKAGE-default} | |
6be7c12c | 3122 | case $enableval in |
252b5132 RH |
3123 | yes) enable_fast_install=yes ;; |
3124 | no) enable_fast_install=no ;; | |
3125 | *) | |
3126 | enable_fast_install=no | |
3127 | # Look at the argument we got. We use all the common list separators. | |
e5a52504 MM |
3128 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
3129 | for pkg in $enableval; do | |
3130 | if test "X$pkg" = "X$p"; then | |
3131 | enable_fast_install=yes | |
1a09a22c NC |
3132 | fi |
3133 | done | |
3134 | IFS="$ac_save_ifs" | |
e5a52504 MM |
3135 | ;; |
3136 | esac | |
1a09a22c | 3137 | else |
e5a52504 | 3138 | enable_fast_install=yes |
42ecbf5e | 3139 | fi; |
ceae3e33 | 3140 | |
252b5132 RH |
3141 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3142 | if test "${with_gnu_ld+set}" = set; then | |
3143 | withval="$with_gnu_ld" | |
3144 | test "$withval" = no || with_gnu_ld=yes | |
3145 | else | |
3146 | with_gnu_ld=no | |
42ecbf5e | 3147 | fi; |
252b5132 | 3148 | ac_prog=ld |
6be7c12c | 3149 | if test "$GCC" = yes; then |
252b5132 | 3150 | # Check if gcc -print-prog-name=ld gives a path. |
42ecbf5e DJ |
3151 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3152 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3153 | case $host in |
3154 | *-*-mingw*) | |
3155 | # gcc leaves a trailing carriage return which upsets mingw | |
3156 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3157 | *) | |
3158 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3159 | esac | |
6be7c12c | 3160 | case $ac_prog in |
252b5132 | 3161 | # Accept absolute paths. |
a74801ba | 3162 | [\\/]* | [A-Za-z]:[\\/]*) |
252b5132 RH |
3163 | re_direlt='/[^/][^/]*/\.\./' |
3164 | # Canonicalize the path of ld | |
3165 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3166 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3167 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3168 | done | |
3169 | test -z "$LD" && LD="$ac_prog" | |
3170 | ;; | |
3171 | "") | |
3172 | # If it fails, then pretend we aren't using GCC. | |
3173 | ac_prog=ld | |
3174 | ;; | |
3175 | *) | |
3176 | # If it is relative, then search for the first ld in PATH. | |
3177 | with_gnu_ld=unknown | |
3178 | ;; | |
3179 | esac | |
3180 | elif test "$with_gnu_ld" = yes; then | |
42ecbf5e DJ |
3181 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3182 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3183 | else |
42ecbf5e DJ |
3184 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3185 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3186 | fi |
42ecbf5e DJ |
3187 | if test "${lt_cv_path_LD+set}" = set; then |
3188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3189 | else |
3190 | if test -z "$LD"; then | |
a74801ba | 3191 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3192 | for ac_dir in $PATH; do |
3193 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3194 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
6be7c12c | 3195 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3196 | # Check to see if the program is GNU ld. I'd rather use --version, |
3197 | # but apparently some GNU ld's only accept -v. | |
3198 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6be7c12c | 3199 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3200 | test "$with_gnu_ld" != no && break |
3201 | else | |
3202 | test "$with_gnu_ld" != yes && break | |
3203 | fi | |
3204 | fi | |
3205 | done | |
3206 | IFS="$ac_save_ifs" | |
3207 | else | |
6be7c12c | 3208 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3209 | fi |
3210 | fi | |
3211 | ||
6be7c12c | 3212 | LD="$lt_cv_path_LD" |
252b5132 | 3213 | if test -n "$LD"; then |
42ecbf5e DJ |
3214 | echo "$as_me:$LINENO: result: $LD" >&5 |
3215 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3216 | else |
42ecbf5e DJ |
3217 | echo "$as_me:$LINENO: result: no" >&5 |
3218 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3219 | fi |
42ecbf5e DJ |
3220 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3221 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3222 | { (exit 1); exit 1; }; } | |
3223 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3224 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3225 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3227 | else |
3228 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3229 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
6be7c12c | 3230 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3231 | else |
6be7c12c | 3232 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3233 | fi |
3234 | fi | |
42ecbf5e DJ |
3235 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3236 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
6be7c12c | 3237 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 RH |
3238 | |
3239 | ||
42ecbf5e DJ |
3240 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3241 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3242 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3244 | else |
3245 | lt_cv_ld_reload_flag='-r' | |
3246 | fi | |
42ecbf5e DJ |
3247 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3248 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3249 | reload_flag=$lt_cv_ld_reload_flag |
3250 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3251 | ||
42ecbf5e DJ |
3252 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3253 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3254 | if test "${lt_cv_path_NM+set}" = set; then | |
3255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3256 | else |
3257 | if test -n "$NM"; then | |
3258 | # Let the user override the test. | |
6be7c12c | 3259 | lt_cv_path_NM="$NM" |
252b5132 | 3260 | else |
a74801ba | 3261 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3262 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3263 | test -z "$ac_dir" && ac_dir=. | |
ac48eca1 AO |
3264 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3265 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3266 | # Check to see if the nm accepts a BSD-compat flag. |
3267 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3268 | # nm: unknown option "B" ignored | |
58cccadb AO |
3269 | # Tru64's nm complains that /dev/null is an invalid object file |
3270 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
6be7c12c | 3271 | lt_cv_path_NM="$tmp_nm -B" |
252b5132 | 3272 | break |
ac48eca1 | 3273 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
6be7c12c | 3274 | lt_cv_path_NM="$tmp_nm -p" |
252b5132 RH |
3275 | break |
3276 | else | |
6be7c12c | 3277 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
252b5132 RH |
3278 | continue # so that we can try to find one that supports BSD flags |
3279 | fi | |
3280 | fi | |
3281 | done | |
3282 | IFS="$ac_save_ifs" | |
6be7c12c | 3283 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3284 | fi |
3285 | fi | |
3286 | ||
6be7c12c | 3287 | NM="$lt_cv_path_NM" |
42ecbf5e DJ |
3288 | echo "$as_me:$LINENO: result: $NM" >&5 |
3289 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3290 | |
42ecbf5e DJ |
3291 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3292 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3293 | LN_S=$as_ln_s | |
3294 | if test "$LN_S" = "ln -s"; then | |
3295 | echo "$as_me:$LINENO: result: yes" >&5 | |
3296 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 3297 | else |
42ecbf5e DJ |
3298 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3299 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3300 | fi |
3301 | ||
42ecbf5e DJ |
3302 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3303 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3304 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3306 | else |
d64552c5 | 3307 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3308 | lt_cv_file_magic_test_file= |
3309 | lt_cv_deplibs_check_method='unknown' | |
3310 | # Need to set the preceding variable on all platforms that support | |
3311 | # interlibrary dependencies. | |
3312 | # 'none' -- dependencies not supported. | |
3313 | # `unknown' -- same as none, but documents that we really don't know. | |
3314 | # 'pass_all' -- all dependencies passed with no checks. | |
3315 | # 'test_compile' -- check by making test program. | |
3316 | # 'file_magic [regex]' -- check by looking for files in library path | |
3317 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3318 | # If you have `file' or equivalent on your system and you're not sure | |
3319 | # whether `pass_all' will *always* work, you probably want this one. | |
3320 | ||
6be7c12c AO |
3321 | case $host_os in |
3322 | aix*) | |
ac48eca1 AO |
3323 | lt_cv_deplibs_check_method=pass_all |
3324 | ;; | |
3325 | ||
3326 | beos*) | |
3327 | lt_cv_deplibs_check_method=pass_all | |
3328 | ;; | |
3329 | ||
3330 | bsdi4*) | |
6be7c12c AO |
3331 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3332 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3333 | lt_cv_file_magic_test_file=/shlib/libc.so |
3334 | ;; | |
3335 | ||
d64552c5 | 3336 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3337 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3338 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3339 | ;; |
3340 | ||
6be7c12c | 3341 | darwin* | rhapsody*) |
bdcfeba5 | 3342 | # this will be overwritten by pass_all, but leave it in just in case |
6be7c12c AO |
3343 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
3344 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3345 | case "$host_os" in | |
3346 | rhapsody* | darwin1.012) | |
3347 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3348 | ;; | |
3349 | *) # Darwin 1.3 on | |
3350 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3351 | ;; | |
3352 | esac | |
bdcfeba5 | 3353 | lt_cv_deplibs_check_method=pass_all |
6be7c12c AO |
3354 | ;; |
3355 | ||
d15b04bd | 3356 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3357 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
6be7c12c | 3358 | case $host_cpu in |
ac48eca1 | 3359 | i*86 ) |
58cccadb AO |
3360 | # Not sure whether the presence of OpenBSD here was a mistake. |
3361 | # Let's accept both of them until this is cleared up. | |
6be7c12c AO |
3362 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3363 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3364 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3365 | ;; | |
3366 | esac | |
3367 | else | |
3368 | lt_cv_deplibs_check_method=pass_all | |
3369 | fi | |
3370 | ;; | |
3371 | ||
3372 | gnu*) | |
3373 | lt_cv_deplibs_check_method=pass_all | |
3374 | ;; | |
3375 | ||
6be7c12c | 3376 | hpux10.20*|hpux11*) |
4867be41 DJ |
3377 | case $host_cpu in |
3378 | hppa*) | |
3379 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3380 | lt_cv_file_magic_cmd=/usr/bin/file | |
3381 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3382 | ;; | |
3383 | ia64*) | |
3384 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3385 | lt_cv_file_magic_cmd=/usr/bin/file | |
3386 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3387 | ;; | |
3388 | esac | |
ac48eca1 AO |
3389 | ;; |
3390 | ||
3391 | irix5* | irix6*) | |
6be7c12c | 3392 | case $host_os in |
ac48eca1 AO |
3393 | irix5*) |
3394 | # this will be overridden with pass_all, but let us keep it just in case | |
3395 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3396 | ;; | |
3397 | *) | |
6be7c12c | 3398 | case $LD in |
ac48eca1 AO |
3399 | *-32|*"-32 ") libmagic=32-bit;; |
3400 | *-n32|*"-n32 ") libmagic=N32;; | |
3401 | *-64|*"-64 ") libmagic=64-bit;; | |
3402 | *) libmagic=never-match;; | |
3403 | esac | |
3404 | # this will be overridden with pass_all, but let us keep it just in case | |
6be7c12c AO |
3405 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3406 | ;; | |
ac48eca1 AO |
3407 | esac |
3408 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3409 | lt_cv_deplibs_check_method=pass_all | |
3410 | ;; | |
3411 | ||
3412 | # This must be Linux ELF. | |
58cccadb | 3413 | linux-gnu*) |
bdcfeba5 | 3414 | lt_cv_deplibs_check_method=pass_all |
ac48eca1 AO |
3415 | ;; |
3416 | ||
d15b04bd | 3417 | netbsd* | knetbsd*-gnu) |
6be7c12c AO |
3418 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3419 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
ac48eca1 | 3420 | else |
6be7c12c | 3421 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 AO |
3422 | fi |
3423 | ;; | |
3424 | ||
6be7c12c AO |
3425 | newsos6) |
3426 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3427 | lt_cv_file_magic_cmd=/usr/bin/file | |
3428 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3429 | ;; | |
3430 | ||
ac48eca1 AO |
3431 | osf3* | osf4* | osf5*) |
3432 | # this will be overridden with pass_all, but let us keep it just in case | |
3433 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3434 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3435 | lt_cv_deplibs_check_method=pass_all | |
3436 | ;; | |
3437 | ||
3438 | sco3.2v5*) | |
3439 | lt_cv_deplibs_check_method=pass_all | |
3440 | ;; | |
3441 | ||
3442 | solaris*) | |
3443 | lt_cv_deplibs_check_method=pass_all | |
3444 | lt_cv_file_magic_test_file=/lib/libc.so | |
3445 | ;; | |
3446 | ||
6be7c12c AO |
3447 | sysv5uw[78]* | sysv4*uw2*) |
3448 | lt_cv_deplibs_check_method=pass_all | |
3449 | ;; | |
3450 | ||
ac48eca1 | 3451 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6be7c12c | 3452 | case $host_vendor in |
ac48eca1 AO |
3453 | ncr) |
3454 | lt_cv_deplibs_check_method=pass_all | |
3455 | ;; | |
3456 | motorola) | |
6be7c12c AO |
3457 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
3458 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3459 | ;; |
3460 | esac | |
3461 | ;; | |
3462 | esac | |
3463 | ||
3464 | fi | |
42ecbf5e DJ |
3465 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3466 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3467 | file_magic_cmd=$lt_cv_file_magic_cmd |
3468 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3469 | ||
ac48eca1 | 3470 | |
ac48eca1 | 3471 | |
ac48eca1 AO |
3472 | |
3473 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3474 | ||
bdcfeba5 NC |
3475 | # find the maximum length of command line arguments |
3476 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3477 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3478 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3480 | else | |
3481 | i=0 | |
3482 | teststring="ABCD" | |
3483 | ||
3484 | case $build_os in | |
3485 | msdosdjgpp*) | |
3486 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3487 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3488 | # during glob expansion). Even if it were fixed, the result of this | |
3489 | # check would be larger than it should be. | |
3490 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3491 | ;; | |
3492 | ||
3493 | cygwin* | mingw*) | |
3494 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3495 | # about 5 minutes as the teststring grows exponentially. | |
3496 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3497 | # you end up with a "frozen" computer, even though with patience | |
3498 | # the test eventually succeeds (with a max line length of 256k). | |
3499 | # Instead, let's just punt: use the minimum linelength reported by | |
3500 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3501 | lt_cv_sys_max_cmd_len=8192; | |
3502 | ;; | |
3503 | ||
3504 | amigaos*) | |
3505 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3506 | # So we just punt and use a minimum line length of 8192. | |
3507 | lt_cv_sys_max_cmd_len=8192; | |
3508 | ;; | |
3509 | ||
3510 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3511 | # This has been around since 386BSD, at least. Likely further. | |
3512 | if test -x /sbin/sysctl; then | |
3513 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3514 | elif test -x /usr/sbin/sysctl; then | |
3515 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3516 | else | |
3517 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3518 | fi | |
3519 | # And add a safety zone | |
3520 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
3521 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
3522 | ;; | |
3523 | esac | |
3524 | ||
3525 | fi | |
3526 | ||
3527 | if test -n "$lt_cv_sys_max_cmd_len" ; then | |
3528 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
3529 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
3530 | else | |
3531 | echo "$as_me:$LINENO: result: none" >&5 | |
3532 | echo "${ECHO_T}none" >&6 | |
3533 | fi | |
3534 | ||
3535 | ||
ac48eca1 | 3536 | # Only perform the check for file, if the check method requires it |
6be7c12c | 3537 | case $deplibs_check_method in |
ac48eca1 | 3538 | file_magic*) |
d64552c5 | 3539 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
42ecbf5e DJ |
3540 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3541 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3542 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3544 | else |
6be7c12c | 3545 | case $MAGIC_CMD in |
ac48eca1 | 3546 | /*) |
d64552c5 | 3547 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3548 | ;; |
3549 | ?:/*) | |
d64552c5 | 3550 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3551 | ;; |
3552 | *) | |
d64552c5 | 3553 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3554 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3555 | ac_dummy="/usr/bin:$PATH" | |
3556 | for ac_dir in $ac_dummy; do | |
3557 | test -z "$ac_dir" && ac_dir=. | |
3558 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3559 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3560 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3561 | case $deplibs_check_method in |
ac48eca1 AO |
3562 | "file_magic "*) |
3563 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3564 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3565 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3566 | egrep "$file_magic_regex" > /dev/null; then | |
3567 | : | |
3568 | else | |
3569 | cat <<EOF 1>&2 | |
3570 | ||
3571 | *** Warning: the command libtool uses to detect shared libraries, | |
3572 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3573 | *** The result is that libtool may fail to recognize shared libraries | |
3574 | *** as such. This will affect the creation of libtool libraries that | |
3575 | *** depend on shared libraries, but programs linked with such libtool | |
3576 | *** libraries will work regardless of this problem. Nevertheless, you | |
3577 | *** may want to report the problem to your system manager and/or to | |
3578 | *** bug-libtool@gnu.org | |
3579 | ||
3580 | EOF | |
3581 | fi ;; | |
3582 | esac | |
3583 | fi | |
3584 | break | |
3585 | fi | |
3586 | done | |
3587 | IFS="$ac_save_ifs" | |
d64552c5 | 3588 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3589 | ;; |
3590 | esac | |
3591 | fi | |
3592 | ||
d64552c5 AO |
3593 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3594 | if test -n "$MAGIC_CMD"; then | |
42ecbf5e DJ |
3595 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3596 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3597 | else |
42ecbf5e DJ |
3598 | echo "$as_me:$LINENO: result: no" >&5 |
3599 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3600 | fi |
3601 | ||
d64552c5 | 3602 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3603 | if test -n "$ac_tool_prefix"; then |
42ecbf5e DJ |
3604 | echo "$as_me:$LINENO: checking for file" >&5 |
3605 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3606 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3608 | else |
6be7c12c | 3609 | case $MAGIC_CMD in |
ac48eca1 | 3610 | /*) |
d64552c5 | 3611 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3612 | ;; |
3613 | ?:/*) | |
d64552c5 | 3614 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3615 | ;; |
3616 | *) | |
d64552c5 | 3617 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3619 | ac_dummy="/usr/bin:$PATH" | |
3620 | for ac_dir in $ac_dummy; do | |
3621 | test -z "$ac_dir" && ac_dir=. | |
3622 | if test -f $ac_dir/file; then | |
d64552c5 | 3623 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3624 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3625 | case $deplibs_check_method in |
ac48eca1 AO |
3626 | "file_magic "*) |
3627 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3628 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3629 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3630 | egrep "$file_magic_regex" > /dev/null; then | |
3631 | : | |
3632 | else | |
3633 | cat <<EOF 1>&2 | |
3634 | ||
3635 | *** Warning: the command libtool uses to detect shared libraries, | |
3636 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3637 | *** The result is that libtool may fail to recognize shared libraries | |
3638 | *** as such. This will affect the creation of libtool libraries that | |
3639 | *** depend on shared libraries, but programs linked with such libtool | |
3640 | *** libraries will work regardless of this problem. Nevertheless, you | |
3641 | *** may want to report the problem to your system manager and/or to | |
3642 | *** bug-libtool@gnu.org | |
3643 | ||
3644 | EOF | |
3645 | fi ;; | |
3646 | esac | |
3647 | fi | |
3648 | break | |
3649 | fi | |
3650 | done | |
3651 | IFS="$ac_save_ifs" | |
d64552c5 | 3652 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3653 | ;; |
3654 | esac | |
3655 | fi | |
3656 | ||
d64552c5 AO |
3657 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3658 | if test -n "$MAGIC_CMD"; then | |
42ecbf5e DJ |
3659 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3660 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3661 | else |
42ecbf5e DJ |
3662 | echo "$as_me:$LINENO: result: no" >&5 |
3663 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3664 | fi |
3665 | ||
3666 | else | |
d64552c5 | 3667 | MAGIC_CMD=: |
ac48eca1 AO |
3668 | fi |
3669 | fi | |
252b5132 | 3670 | |
ac48eca1 AO |
3671 | fi |
3672 | ;; | |
a74801ba | 3673 | esac |
252b5132 | 3674 | |
42ecbf5e DJ |
3675 | if test -n "$ac_tool_prefix"; then |
3676 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3677 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
42ecbf5e DJ |
3678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3680 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3682 | else |
3683 | if test -n "$RANLIB"; then | |
3684 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3685 | else | |
42ecbf5e DJ |
3686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3687 | for as_dir in $PATH | |
3688 | do | |
3689 | IFS=$as_save_IFS | |
3690 | test -z "$as_dir" && as_dir=. | |
3691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3692 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3693 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3695 | break 2 | |
3696 | fi | |
3697 | done | |
3698 | done | |
3699 | ||
ac48eca1 AO |
3700 | fi |
3701 | fi | |
42ecbf5e | 3702 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3703 | if test -n "$RANLIB"; then |
42ecbf5e DJ |
3704 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3705 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3706 | else |
42ecbf5e DJ |
3707 | echo "$as_me:$LINENO: result: no" >&5 |
3708 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3709 | fi |
3710 | ||
42ecbf5e | 3711 | fi |
ac48eca1 | 3712 | if test -z "$ac_cv_prog_RANLIB"; then |
42ecbf5e | 3713 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3714 | # Extract the first word of "ranlib", so it can be a program name with args. |
3715 | set dummy ranlib; ac_word=$2 | |
42ecbf5e DJ |
3716 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3717 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3718 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3720 | else |
42ecbf5e DJ |
3721 | if test -n "$ac_ct_RANLIB"; then |
3722 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3723 | else | |
3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3725 | for as_dir in $PATH | |
3726 | do | |
3727 | IFS=$as_save_IFS | |
3728 | test -z "$as_dir" && as_dir=. | |
3729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3730 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3731 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3733 | break 2 | |
3734 | fi | |
3735 | done | |
3736 | done | |
3737 | ||
3738 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3739 | fi |
3740 | fi | |
42ecbf5e DJ |
3741 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3742 | if test -n "$ac_ct_RANLIB"; then | |
3743 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3744 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3745 | else |
42ecbf5e DJ |
3746 | echo "$as_me:$LINENO: result: no" >&5 |
3747 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3748 | fi |
3749 | ||
42ecbf5e | 3750 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3751 | else |
42ecbf5e | 3752 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3753 | fi |
3754 | ||
42ecbf5e DJ |
3755 | if test -n "$ac_tool_prefix"; then |
3756 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3757 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
42ecbf5e DJ |
3758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3760 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3762 | else |
3763 | if test -n "$STRIP"; then | |
3764 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3765 | else | |
42ecbf5e DJ |
3766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3767 | for as_dir in $PATH | |
3768 | do | |
3769 | IFS=$as_save_IFS | |
3770 | test -z "$as_dir" && as_dir=. | |
3771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3772 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3773 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3775 | break 2 | |
3776 | fi | |
3777 | done | |
3778 | done | |
3779 | ||
ac48eca1 AO |
3780 | fi |
3781 | fi | |
42ecbf5e | 3782 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3783 | if test -n "$STRIP"; then |
42ecbf5e DJ |
3784 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3785 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3786 | else |
42ecbf5e DJ |
3787 | echo "$as_me:$LINENO: result: no" >&5 |
3788 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3789 | fi |
3790 | ||
42ecbf5e | 3791 | fi |
ac48eca1 | 3792 | if test -z "$ac_cv_prog_STRIP"; then |
42ecbf5e | 3793 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3794 | # Extract the first word of "strip", so it can be a program name with args. |
3795 | set dummy strip; ac_word=$2 | |
42ecbf5e DJ |
3796 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3798 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3800 | else |
42ecbf5e DJ |
3801 | if test -n "$ac_ct_STRIP"; then |
3802 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
ac48eca1 | 3803 | else |
42ecbf5e DJ |
3804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3805 | for as_dir in $PATH | |
3806 | do | |
3807 | IFS=$as_save_IFS | |
3808 | test -z "$as_dir" && as_dir=. | |
3809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3810 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3811 | ac_cv_prog_ac_ct_STRIP="strip" | |
3812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3813 | break 2 | |
3814 | fi | |
3815 | done | |
3816 | done | |
3817 | ||
3818 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3819 | fi |
3820 | fi | |
42ecbf5e DJ |
3821 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3822 | if test -n "$ac_ct_STRIP"; then | |
3823 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3824 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3825 | else |
42ecbf5e DJ |
3826 | echo "$as_me:$LINENO: result: no" >&5 |
3827 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3828 | fi |
3829 | ||
42ecbf5e | 3830 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3831 | else |
42ecbf5e | 3832 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 AO |
3833 | fi |
3834 | ||
3835 | ||
252b5132 RH |
3836 | # Check for any special flags to pass to ltconfig. |
3837 | libtool_flags="--cache-file=$cache_file" | |
3838 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3839 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3840 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
6be7c12c AO |
3841 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3842 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3843 | |
a74801ba ILT |
3844 | |
3845 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3846 | if test "${enable_libtool_lock+set}" = set; then | |
3847 | enableval="$enable_libtool_lock" | |
a74801ba | 3848 | |
42ecbf5e | 3849 | fi; |
a74801ba ILT |
3850 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3851 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3852 | ||
42ecbf5e | 3853 | |
ac48eca1 AO |
3854 | # Check whether --with-pic or --without-pic was given. |
3855 | if test "${with_pic+set}" = set; then | |
3856 | withval="$with_pic" | |
3857 | pic_mode="$withval" | |
3858 | else | |
3859 | pic_mode=default | |
42ecbf5e | 3860 | fi; |
ac48eca1 AO |
3861 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3862 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3863 | ||
252b5132 RH |
3864 | # Some flags need to be propagated to the compiler or linker for good |
3865 | # libtool support. | |
6be7c12c | 3866 | case $host in |
252b5132 RH |
3867 | *-*-irix6*) |
3868 | # Find out which ABI we are using. | |
20e95c23 | 3869 | echo '#line 3869 "configure"' > conftest.$ac_ext |
42ecbf5e DJ |
3870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3871 | (eval $ac_compile) 2>&5 | |
3872 | ac_status=$? | |
3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3874 | (exit $ac_status); }; then | |
27a710e5 NC |
3875 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3876 | case `/usr/bin/file conftest.$ac_objext` in | |
3877 | *32-bit*) | |
3878 | LD="${LD-ld} -melf32bsmip" | |
3879 | ;; | |
3880 | *N32*) | |
3881 | LD="${LD-ld} -melf32bmipn32" | |
3882 | ;; | |
3883 | *64-bit*) | |
3884 | LD="${LD-ld} -melf64bmip" | |
3885 | ;; | |
3886 | esac | |
3887 | else | |
6be7c12c | 3888 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3889 | *32-bit*) |
3890 | LD="${LD-ld} -32" | |
3891 | ;; | |
3892 | *N32*) | |
3893 | LD="${LD-ld} -n32" | |
3894 | ;; | |
3895 | *64-bit*) | |
3896 | LD="${LD-ld} -64" | |
3897 | ;; | |
3898 | esac | |
27a710e5 | 3899 | fi |
252b5132 RH |
3900 | fi |
3901 | rm -rf conftest* | |
3902 | ;; | |
3903 | ||
4867be41 DJ |
3904 | ia64-*-hpux*) |
3905 | # Find out which ABI we are using. | |
3906 | echo 'int i;' > conftest.$ac_ext | |
42ecbf5e DJ |
3907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3908 | (eval $ac_compile) 2>&5 | |
3909 | ac_status=$? | |
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3911 | (exit $ac_status); }; then | |
4867be41 DJ |
3912 | case "`/usr/bin/file conftest.o`" in |
3913 | *ELF-32*) | |
3914 | HPUX_IA64_MODE="32" | |
3915 | ;; | |
3916 | *ELF-64*) | |
3917 | HPUX_IA64_MODE="64" | |
3918 | ;; | |
3919 | esac | |
3920 | fi | |
3921 | rm -rf conftest* | |
3922 | ;; | |
3923 | ||
bdcfeba5 NC |
3924 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3925 | # Find out which ABI we are using. | |
3926 | echo 'int i;' > conftest.$ac_ext | |
3927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3928 | (eval $ac_compile) 2>&5 | |
3929 | ac_status=$? | |
3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3931 | (exit $ac_status); }; then | |
3932 | case "`/usr/bin/file conftest.o`" in | |
3933 | *32-bit*) | |
3934 | case $host in | |
3935 | x86_64-*linux*) | |
3936 | LD="${LD-ld} -m elf_i386" | |
3937 | ;; | |
3938 | ppc64-*linux*|powerpc64-*linux*) | |
3939 | LD="${LD-ld} -m elf32ppclinux" | |
3940 | ;; | |
3941 | s390x-*linux*) | |
3942 | LD="${LD-ld} -m elf_s390" | |
3943 | ;; | |
3944 | sparc64-*linux*) | |
3945 | LD="${LD-ld} -m elf32_sparc" | |
3946 | ;; | |
3947 | esac | |
3948 | ;; | |
3949 | *64-bit*) | |
3950 | case $host in | |
3951 | x86_64-*linux*) | |
3952 | LD="${LD-ld} -m elf_x86_64" | |
3953 | ;; | |
3954 | ppc*-*linux*|powerpc*-*linux*) | |
3955 | LD="${LD-ld} -m elf64ppc" | |
3956 | ;; | |
3957 | s390*-*linux*) | |
3958 | LD="${LD-ld} -m elf64_s390" | |
3959 | ;; | |
3960 | sparc*-*linux*) | |
3961 | LD="${LD-ld} -m elf64_sparc" | |
3962 | ;; | |
3963 | esac | |
3964 | ;; | |
3965 | esac | |
3966 | fi | |
3967 | rm -rf conftest* | |
3968 | ;; | |
3969 | ||
252b5132 RH |
3970 | *-*-sco3.2v5*) |
3971 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3972 | SAVE_CFLAGS="$CFLAGS" | |
3973 | CFLAGS="$CFLAGS -belf" | |
42ecbf5e DJ |
3974 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3975 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3976 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3978 | else |
42ecbf5e DJ |
3979 | |
3980 | ||
ac48eca1 | 3981 | ac_ext=c |
ac48eca1 | 3982 | ac_cpp='$CPP $CPPFLAGS' |
42ecbf5e DJ |
3983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3986 | |
42ecbf5e DJ |
3987 | cat >conftest.$ac_ext <<_ACEOF |
3988 | /* confdefs.h. */ | |
3989 | _ACEOF | |
3990 | cat confdefs.h >>conftest.$ac_ext | |
3991 | cat >>conftest.$ac_ext <<_ACEOF | |
3992 | /* end confdefs.h. */ | |
252b5132 | 3993 | |
42ecbf5e DJ |
3994 | int |
3995 | main () | |
3996 | { | |
252b5132 | 3997 | |
42ecbf5e DJ |
3998 | ; |
3999 | return 0; | |
4000 | } | |
4001 | _ACEOF | |
4002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4004 | (eval $ac_link) 2>conftest.er1 | |
4005 | ac_status=$? | |
4006 | grep -v '^ *+' conftest.er1 >conftest.err | |
4007 | rm -f conftest.er1 | |
4008 | cat conftest.err >&5 | |
4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4010 | (exit $ac_status); } && | |
b7d4af3a JW |
4011 | { ac_try='test -z "$ac_c_werror_flag" |
4012 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4014 | (eval $ac_try) 2>&5 | |
4015 | ac_status=$? | |
4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4017 | (exit $ac_status); }; } && | |
4018 | { ac_try='test -s conftest$ac_exeext' | |
4019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4020 | (eval $ac_try) 2>&5 | |
4021 | ac_status=$? | |
4022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4023 | (exit $ac_status); }; }; then | |
252b5132 RH |
4024 | lt_cv_cc_needs_belf=yes |
4025 | else | |
42ecbf5e DJ |
4026 | echo "$as_me: failed program was:" >&5 |
4027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4028 | ||
4029 | lt_cv_cc_needs_belf=no | |
252b5132 | 4030 | fi |
42ecbf5e DJ |
4031 | rm -f conftest.err conftest.$ac_objext \ |
4032 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 4033 | ac_ext=c |
ac48eca1 | 4034 | ac_cpp='$CPP $CPPFLAGS' |
42ecbf5e DJ |
4035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4038 | |
252b5132 | 4039 | fi |
42ecbf5e DJ |
4040 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4041 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
252b5132 RH |
4042 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4043 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4044 | CFLAGS="$SAVE_CFLAGS" | |
4045 | fi | |
4046 | ;; | |
4047 | ||
252b5132 RH |
4048 | |
4049 | esac | |
4050 | ||
252b5132 RH |
4051 | |
4052 | # Save cache, so that ltconfig can load it | |
42ecbf5e | 4053 | cat >confcache <<\_ACEOF |
252b5132 RH |
4054 | # This file is a shell script that caches the results of configure |
4055 | # tests run on this system so they can be shared between configure | |
42ecbf5e DJ |
4056 | # scripts and configure runs, see configure's option --config-cache. |
4057 | # It is not useful on other systems. If it contains results you don't | |
4058 | # want to keep, you may remove or edit it. | |
252b5132 | 4059 | # |
42ecbf5e DJ |
4060 | # config.status only pays attention to the cache file if you give it |
4061 | # the --recheck option to rerun configure. | |
252b5132 | 4062 | # |
42ecbf5e DJ |
4063 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4064 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4065 | # following values. | |
4066 | ||
4067 | _ACEOF | |
4068 | ||
252b5132 RH |
4069 | # The following way of writing the cache mishandles newlines in values, |
4070 | # but we know of no workaround that is simple, portable, and efficient. | |
4071 | # So, don't put newlines in cache variables' values. | |
4072 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4073 | # and sets the high bit in the cache file unless we assign to the vars. | |
42ecbf5e DJ |
4074 | { |
4075 | (set) 2>&1 | | |
4076 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4077 | *ac_space=\ *) | |
4078 | # `set' does not quote correctly, so add quotes (double-quote | |
4079 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4080 | sed -n \ | |
4081 | "s/'/'\\\\''/g; | |
4082 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4083 | ;; | |
4084 | *) | |
4085 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4086 | sed -n \ | |
4087 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4088 | ;; | |
4089 | esac; | |
4090 | } | | |
4091 | sed ' | |
4092 | t clear | |
4093 | : clear | |
4094 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4095 | t end | |
4096 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4097 | : end' >>confcache | |
4098 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
252b5132 | 4099 | if test -w $cache_file; then |
42ecbf5e DJ |
4100 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4101 | cat confcache >$cache_file | |
252b5132 RH |
4102 | else |
4103 | echo "not updating unwritable cache $cache_file" | |
4104 | fi | |
4105 | fi | |
4106 | rm -f confcache | |
4107 | ||
252b5132 | 4108 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4109 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4110 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4111 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4112 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4113 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4114 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4115 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4116 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
42ecbf5e DJ |
4117 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4118 | echo "$as_me: error: libtool configure failed" >&2;} | |
4119 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4120 | |
4121 | # Reload cache, that may have been modified by ltconfig | |
4122 | if test -r "$cache_file"; then | |
42ecbf5e DJ |
4123 | # Some versions of bash will fail to source /dev/null (special |
4124 | # files actually), so we avoid doing that. | |
4125 | if test -f "$cache_file"; then | |
4126 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4127 | echo "$as_me: loading cache $cache_file" >&6;} | |
4128 | case $cache_file in | |
4129 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4130 | *) . ./$cache_file;; | |
4131 | esac | |
4132 | fi | |
252b5132 | 4133 | else |
42ecbf5e DJ |
4134 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4135 | echo "$as_me: creating cache $cache_file" >&6;} | |
4136 | >$cache_file | |
252b5132 RH |
4137 | fi |
4138 | ||
4139 | ||
4140 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 4141 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
252b5132 RH |
4142 | |
4143 | # Always use our own libtool. | |
4144 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4145 | ||
4146 | # Redirect the config.log output again, so that the ltconfig log is not | |
4147 | # clobbered by the next message. | |
4148 | exec 5>>./config.log | |
4149 | ||
ac48eca1 | 4150 | |
42ecbf5e DJ |
4151 | |
4152 | ||
4153 | ||
4154 | ||
ac48eca1 | 4155 | |
252b5132 RH |
4156 | # Check whether --enable-targets or --disable-targets was given. |
4157 | if test "${enable_targets+set}" = set; then | |
4158 | enableval="$enable_targets" | |
4159 | case "${enableval}" in | |
42ecbf5e DJ |
4160 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4161 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4162 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4163 | ;; |
4164 | no) enable_targets= ;; | |
4165 | *) enable_targets=$enableval ;; | |
4166 | esac | |
42ecbf5e | 4167 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
4168 | if test "${enable_commonbfdlib+set}" = set; then |
4169 | enableval="$enable_commonbfdlib" | |
4170 | case "${enableval}" in | |
4171 | yes) commonbfdlib=true ;; | |
4172 | no) commonbfdlib=false ;; | |
42ecbf5e DJ |
4173 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
4174 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
4175 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4176 | esac |
42ecbf5e | 4177 | fi; |
398ee8f1 | 4178 | |
a541e3ce | 4179 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
1ad12f97 | 4180 | |
569acd2c NC |
4181 | # Check whether --enable-werror or --disable-werror was given. |
4182 | if test "${enable_werror+set}" = set; then | |
4183 | enableval="$enable_werror" | |
1ad12f97 NC |
4184 | case "${enableval}" in |
4185 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4186 | no | n) ERROR_ON_WARNING="no" ;; | |
42ecbf5e DJ |
4187 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
4188 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
4189 | { (exit 1); exit 1; }; } ;; | |
1ad12f97 | 4190 | esac |
42ecbf5e | 4191 | fi; |
1ad12f97 | 4192 | |
9e9b66a9 AM |
4193 | # Enable -Werror by default when using gcc |
4194 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4195 | ERROR_ON_WARNING=yes | |
1ad12f97 | 4196 | fi |
569acd2c | 4197 | |
9e9b66a9 AM |
4198 | NO_WERROR= |
4199 | if test "${ERROR_ON_WARNING}" = yes ; then | |
a541e3ce | 4200 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
9e9b66a9 AM |
4201 | NO_WERROR="-Wno-error" |
4202 | fi | |
42ecbf5e | 4203 | |
a541e3ce SE |
4204 | if test "${GCC}" = yes ; then |
4205 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
4206 | fi | |
4207 | ||
a2d91340 AC |
4208 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4209 | if test "${enable_build_warnings+set}" = set; then | |
4210 | enableval="$enable_build_warnings" | |
4211 | case "${enableval}" in | |
a541e3ce SE |
4212 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
4213 | no) if test "${GCC}" = yes ; then | |
4214 | WARN_CFLAGS="-w" | |
4215 | fi;; | |
a2d91340 | 4216 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 4217 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; |
a2d91340 | 4218 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 4219 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; |
9e9b66a9 | 4220 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
d15b04bd | 4221 | esac |
42ecbf5e | 4222 | fi; |
9e9b66a9 AM |
4223 | |
4224 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4225 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
d15b04bd | 4226 | fi |
9e9b66a9 AM |
4227 | |
4228 | ||
e5a52504 | 4229 | |
e5a52504 | 4230 | |
398ee8f1 | 4231 | |
42ecbf5e | 4232 | ac_config_headers="$ac_config_headers config.h:config.in" |
d15b04bd L |
4233 | |
4234 | ||
4235 | if test -z "$target" ; then | |
42ecbf5e DJ |
4236 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
4237 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
4238 | { (exit 1); exit 1; }; } | |
d15b04bd L |
4239 | fi |
4240 | if test -z "$host" ; then | |
42ecbf5e DJ |
4241 | { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5 |
4242 | echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;} | |
4243 | { (exit 1); exit 1; }; } | |
4244 | fi | |
4245 | ||
4246 | ac_ext=c | |
4247 | ac_cpp='$CPP $CPPFLAGS' | |
4248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4251 | if test -n "$ac_tool_prefix"; then | |
4252 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4253 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4254 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4256 | if test "${ac_cv_prog_CC+set}" = set; then | |
4257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4258 | else | |
4259 | if test -n "$CC"; then | |
4260 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4261 | else | |
4262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4263 | for as_dir in $PATH | |
4264 | do | |
4265 | IFS=$as_save_IFS | |
4266 | test -z "$as_dir" && as_dir=. | |
4267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4268 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4269 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4271 | break 2 | |
4272 | fi | |
4273 | done | |
4274 | done | |
4275 | ||
4276 | fi | |
4277 | fi | |
4278 | CC=$ac_cv_prog_CC | |
4279 | if test -n "$CC"; then | |
4280 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4281 | echo "${ECHO_T}$CC" >&6 | |
4282 | else | |
4283 | echo "$as_me:$LINENO: result: no" >&5 | |
4284 | echo "${ECHO_T}no" >&6 | |
d15b04bd L |
4285 | fi |
4286 | ||
42ecbf5e DJ |
4287 | fi |
4288 | if test -z "$ac_cv_prog_CC"; then | |
4289 | ac_ct_CC=$CC | |
4290 | # Extract the first word of "gcc", so it can be a program name with args. | |
d15b04bd | 4291 | set dummy gcc; ac_word=$2 |
42ecbf5e DJ |
4292 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4294 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4296 | else | |
4297 | if test -n "$ac_ct_CC"; then | |
4298 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4299 | else | |
4300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4301 | for as_dir in $PATH | |
4302 | do | |
4303 | IFS=$as_save_IFS | |
4304 | test -z "$as_dir" && as_dir=. | |
4305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4306 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4307 | ac_cv_prog_ac_ct_CC="gcc" | |
4308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4309 | break 2 | |
4310 | fi | |
4311 | done | |
4312 | done | |
4313 | ||
4314 | fi | |
4315 | fi | |
4316 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4317 | if test -n "$ac_ct_CC"; then | |
4318 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4319 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4320 | else | |
4321 | echo "$as_me:$LINENO: result: no" >&5 | |
4322 | echo "${ECHO_T}no" >&6 | |
4323 | fi | |
4324 | ||
4325 | CC=$ac_ct_CC | |
4326 | else | |
4327 | CC="$ac_cv_prog_CC" | |
4328 | fi | |
4329 | ||
4330 | if test -z "$CC"; then | |
4331 | if test -n "$ac_tool_prefix"; then | |
4332 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4333 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4336 | if test "${ac_cv_prog_CC+set}" = set; then | |
4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 4338 | else |
d15b04bd L |
4339 | if test -n "$CC"; then |
4340 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
e5a52504 | 4341 | else |
42ecbf5e DJ |
4342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4343 | for as_dir in $PATH | |
4344 | do | |
4345 | IFS=$as_save_IFS | |
4346 | test -z "$as_dir" && as_dir=. | |
4347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4349 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4351 | break 2 | |
4352 | fi | |
4353 | done | |
4354 | done | |
4355 | ||
252b5132 | 4356 | fi |
e5a52504 | 4357 | fi |
42ecbf5e | 4358 | CC=$ac_cv_prog_CC |
d15b04bd | 4359 | if test -n "$CC"; then |
42ecbf5e DJ |
4360 | echo "$as_me:$LINENO: result: $CC" >&5 |
4361 | echo "${ECHO_T}$CC" >&6 | |
4362 | else | |
4363 | echo "$as_me:$LINENO: result: no" >&5 | |
4364 | echo "${ECHO_T}no" >&6 | |
4365 | fi | |
4366 | ||
4367 | fi | |
4368 | if test -z "$ac_cv_prog_CC"; then | |
4369 | ac_ct_CC=$CC | |
4370 | # Extract the first word of "cc", so it can be a program name with args. | |
4371 | set dummy cc; ac_word=$2 | |
4372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4374 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4376 | else | |
4377 | if test -n "$ac_ct_CC"; then | |
4378 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4379 | else | |
4380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4381 | for as_dir in $PATH | |
4382 | do | |
4383 | IFS=$as_save_IFS | |
4384 | test -z "$as_dir" && as_dir=. | |
4385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4387 | ac_cv_prog_ac_ct_CC="cc" | |
4388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4389 | break 2 | |
4390 | fi | |
4391 | done | |
4392 | done | |
4393 | ||
4394 | fi | |
4395 | fi | |
4396 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4397 | if test -n "$ac_ct_CC"; then | |
4398 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4399 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4400 | else | |
4401 | echo "$as_me:$LINENO: result: no" >&5 | |
4402 | echo "${ECHO_T}no" >&6 | |
4403 | fi | |
4404 | ||
4405 | CC=$ac_ct_CC | |
252b5132 | 4406 | else |
42ecbf5e | 4407 | CC="$ac_cv_prog_CC" |
252b5132 | 4408 | fi |
e5a52504 | 4409 | |
42ecbf5e | 4410 | fi |
d15b04bd L |
4411 | if test -z "$CC"; then |
4412 | # Extract the first word of "cc", so it can be a program name with args. | |
4413 | set dummy cc; ac_word=$2 | |
42ecbf5e DJ |
4414 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4416 | if test "${ac_cv_prog_CC+set}" = set; then | |
4417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4418 | else |
d15b04bd L |
4419 | if test -n "$CC"; then |
4420 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4421 | else |
d15b04bd | 4422 | ac_prog_rejected=no |
42ecbf5e DJ |
4423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4424 | for as_dir in $PATH | |
4425 | do | |
4426 | IFS=$as_save_IFS | |
4427 | test -z "$as_dir" && as_dir=. | |
4428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4430 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4431 | ac_prog_rejected=yes | |
4432 | continue | |
4433 | fi | |
4434 | ac_cv_prog_CC="cc" | |
4435 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4436 | break 2 | |
4437 | fi | |
4438 | done | |
4439 | done | |
4440 | ||
d15b04bd L |
4441 | if test $ac_prog_rejected = yes; then |
4442 | # We found a bogon in the path, so make sure we never use it. | |
4443 | set dummy $ac_cv_prog_CC | |
4444 | shift | |
42ecbf5e | 4445 | if test $# != 0; then |
d15b04bd L |
4446 | # We chose a different compiler from the bogus one. |
4447 | # However, it has the same basename, so the bogon will be chosen | |
4448 | # first if we set CC to just the basename; use the full file name. | |
4449 | shift | |
42ecbf5e | 4450 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
e5a52504 | 4451 | fi |
252b5132 RH |
4452 | fi |
4453 | fi | |
d15b04bd | 4454 | fi |
42ecbf5e | 4455 | CC=$ac_cv_prog_CC |
d15b04bd | 4456 | if test -n "$CC"; then |
42ecbf5e DJ |
4457 | echo "$as_me:$LINENO: result: $CC" >&5 |
4458 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4459 | else |
42ecbf5e DJ |
4460 | echo "$as_me:$LINENO: result: no" >&5 |
4461 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4462 | fi |
4463 | ||
42ecbf5e DJ |
4464 | fi |
4465 | if test -z "$CC"; then | |
4466 | if test -n "$ac_tool_prefix"; then | |
4467 | for ac_prog in cl | |
4468 | do | |
4469 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4470 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
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_CC+set}" = set; then | |
4474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4475 | else |
d15b04bd L |
4476 | if test -n "$CC"; then |
4477 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4478 | else |
42ecbf5e DJ |
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_CC="$ac_tool_prefix$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 | ||
252b5132 RH |
4493 | fi |
4494 | fi | |
42ecbf5e | 4495 | CC=$ac_cv_prog_CC |
d15b04bd | 4496 | if test -n "$CC"; then |
42ecbf5e DJ |
4497 | echo "$as_me:$LINENO: result: $CC" >&5 |
4498 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4499 | else |
42ecbf5e DJ |
4500 | echo "$as_me:$LINENO: result: no" >&5 |
4501 | echo "${ECHO_T}no" >&6 | |
d15b04bd | 4502 | fi |
42ecbf5e DJ |
4503 | |
4504 | test -n "$CC" && break | |
4505 | done | |
4506 | fi | |
4507 | if test -z "$CC"; then | |
4508 | ac_ct_CC=$CC | |
4509 | for ac_prog in cl | |
4510 | do | |
4511 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4512 | set dummy $ac_prog; ac_word=$2 | |
4513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4515 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4517 | else | |
4518 | if test -n "$ac_ct_CC"; then | |
4519 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4520 | else | |
4521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4522 | for as_dir in $PATH | |
4523 | do | |
4524 | IFS=$as_save_IFS | |
4525 | test -z "$as_dir" && as_dir=. | |
4526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4528 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4530 | break 2 | |
d15b04bd | 4531 | fi |
42ecbf5e DJ |
4532 | done |
4533 | done | |
4534 | ||
4535 | fi | |
4536 | fi | |
4537 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4538 | if test -n "$ac_ct_CC"; then | |
4539 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4540 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4541 | else | |
4542 | echo "$as_me:$LINENO: result: no" >&5 | |
4543 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4544 | fi |
4545 | ||
42ecbf5e DJ |
4546 | test -n "$ac_ct_CC" && break |
4547 | done | |
e5a52504 | 4548 | |
42ecbf5e DJ |
4549 | CC=$ac_ct_CC |
4550 | fi | |
4551 | ||
4552 | fi | |
4553 | ||
4554 | ||
4555 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4556 | See \`config.log' for more details." >&5 | |
4557 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4558 | See \`config.log' for more details." >&2;} | |
4559 | { (exit 1); exit 1; }; } | |
4560 | ||
4561 | # Provide some information about the compiler. | |
4562 | echo "$as_me:$LINENO:" \ | |
4563 | "checking for C compiler version" >&5 | |
4564 | ac_compiler=`set X $ac_compile; echo $2` | |
4565 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4566 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4567 | ac_status=$? | |
4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4569 | (exit $ac_status); } | |
4570 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4571 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4572 | ac_status=$? | |
4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4574 | (exit $ac_status); } | |
4575 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4576 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4577 | ac_status=$? | |
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4579 | (exit $ac_status); } | |
4580 | ||
4581 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4582 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4583 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4585 | else | |
4586 | cat >conftest.$ac_ext <<_ACEOF | |
4587 | /* confdefs.h. */ | |
4588 | _ACEOF | |
4589 | cat confdefs.h >>conftest.$ac_ext | |
4590 | cat >>conftest.$ac_ext <<_ACEOF | |
4591 | /* end confdefs.h. */ | |
4592 | ||
4593 | int | |
4594 | main () | |
4595 | { | |
4596 | #ifndef __GNUC__ | |
4597 | choke me | |
4598 | #endif | |
e5a52504 | 4599 | |
42ecbf5e DJ |
4600 | ; |
4601 | return 0; | |
4602 | } | |
4603 | _ACEOF | |
4604 | rm -f conftest.$ac_objext | |
4605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4606 | (eval $ac_compile) 2>conftest.er1 | |
4607 | ac_status=$? | |
4608 | grep -v '^ *+' conftest.er1 >conftest.err | |
4609 | rm -f conftest.er1 | |
4610 | cat conftest.err >&5 | |
4611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4612 | (exit $ac_status); } && | |
b7d4af3a JW |
4613 | { ac_try='test -z "$ac_c_werror_flag" |
4614 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4616 | (eval $ac_try) 2>&5 | |
4617 | ac_status=$? | |
4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4619 | (exit $ac_status); }; } && | |
4620 | { ac_try='test -s conftest.$ac_objext' | |
4621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4622 | (eval $ac_try) 2>&5 | |
4623 | ac_status=$? | |
4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4625 | (exit $ac_status); }; }; then | |
4626 | ac_compiler_gnu=yes | |
4627 | else | |
4628 | echo "$as_me: failed program was:" >&5 | |
4629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4630 | ||
4631 | ac_compiler_gnu=no | |
4632 | fi | |
4633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4634 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4635 | ||
4636 | fi | |
4637 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4638 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4639 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4640 | ac_test_CFLAGS=${CFLAGS+set} | |
4641 | ac_save_CFLAGS=$CFLAGS | |
4642 | CFLAGS="-g" | |
4643 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4644 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4645 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4647 | else | |
4648 | cat >conftest.$ac_ext <<_ACEOF | |
4649 | /* confdefs.h. */ | |
4650 | _ACEOF | |
4651 | cat confdefs.h >>conftest.$ac_ext | |
4652 | cat >>conftest.$ac_ext <<_ACEOF | |
4653 | /* end confdefs.h. */ | |
252b5132 | 4654 | |
42ecbf5e DJ |
4655 | int |
4656 | main () | |
4657 | { | |
d15b04bd | 4658 | |
42ecbf5e DJ |
4659 | ; |
4660 | return 0; | |
4661 | } | |
4662 | _ACEOF | |
4663 | rm -f conftest.$ac_objext | |
4664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4665 | (eval $ac_compile) 2>conftest.er1 | |
4666 | ac_status=$? | |
4667 | grep -v '^ *+' conftest.er1 >conftest.err | |
4668 | rm -f conftest.er1 | |
4669 | cat conftest.err >&5 | |
4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4671 | (exit $ac_status); } && | |
b7d4af3a JW |
4672 | { ac_try='test -z "$ac_c_werror_flag" |
4673 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4675 | (eval $ac_try) 2>&5 | |
4676 | ac_status=$? | |
4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4678 | (exit $ac_status); }; } && | |
4679 | { ac_try='test -s conftest.$ac_objext' | |
4680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4681 | (eval $ac_try) 2>&5 | |
4682 | ac_status=$? | |
4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4684 | (exit $ac_status); }; }; then | |
4685 | ac_cv_prog_cc_g=yes | |
4686 | else | |
4687 | echo "$as_me: failed program was:" >&5 | |
4688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4689 | ||
4690 | ac_cv_prog_cc_g=no | |
4691 | fi | |
4692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4693 | fi | |
4694 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4695 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
4696 | if test "$ac_test_CFLAGS" = set; then | |
4697 | CFLAGS=$ac_save_CFLAGS | |
4698 | elif test $ac_cv_prog_cc_g = yes; then | |
4699 | if test "$GCC" = yes; then | |
4700 | CFLAGS="-g -O2" | |
d15b04bd | 4701 | else |
42ecbf5e | 4702 | CFLAGS="-g" |
d15b04bd | 4703 | fi |
252b5132 | 4704 | else |
42ecbf5e DJ |
4705 | if test "$GCC" = yes; then |
4706 | CFLAGS="-O2" | |
4707 | else | |
4708 | CFLAGS= | |
4709 | fi | |
252b5132 | 4710 | fi |
42ecbf5e DJ |
4711 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
4712 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4713 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4715 | else | |
4716 | ac_cv_prog_cc_stdc=no | |
4717 | ac_save_CC=$CC | |
4718 | cat >conftest.$ac_ext <<_ACEOF | |
4719 | /* confdefs.h. */ | |
4720 | _ACEOF | |
4721 | cat confdefs.h >>conftest.$ac_ext | |
4722 | cat >>conftest.$ac_ext <<_ACEOF | |
4723 | /* end confdefs.h. */ | |
4724 | #include <stdarg.h> | |
4725 | #include <stdio.h> | |
4726 | #include <sys/types.h> | |
4727 | #include <sys/stat.h> | |
4728 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4729 | struct buf { int x; }; | |
4730 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4731 | static char *e (p, i) | |
4732 | char **p; | |
4733 | int i; | |
4734 | { | |
4735 | return p[i]; | |
4736 | } | |
4737 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4738 | { | |
4739 | char *s; | |
4740 | va_list v; | |
4741 | va_start (v,p); | |
4742 | s = g (p, va_arg (v,int)); | |
4743 | va_end (v); | |
4744 | return s; | |
4745 | } | |
252b5132 | 4746 | |
42ecbf5e DJ |
4747 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4748 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4749 | These don't provoke an error unfortunately, instead are silently treated | |
4750 | as 'x'. The following induces an error, until -std1 is added to get | |
4751 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4752 | array size at least. It's necessary to write '\x00'==0 to get something | |
4753 | that's true only with -std1. */ | |
4754 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4755 | ||
4756 | int test (int i, double x); | |
4757 | struct s1 {int (*f) (int a);}; | |
4758 | struct s2 {int (*f) (double a);}; | |
4759 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4760 | int argc; | |
4761 | char **argv; | |
4762 | int | |
4763 | main () | |
4764 | { | |
4765 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4766 | ; | |
4767 | return 0; | |
4768 | } | |
4769 | _ACEOF | |
4770 | # Don't try gcc -ansi; that turns off useful extensions and | |
4771 | # breaks some systems' header files. | |
4772 | # AIX -qlanglvl=ansi | |
4773 | # Ultrix and OSF/1 -std1 | |
4774 | # HP-UX 10.20 and later -Ae | |
4775 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4776 | # SVR4 -Xc -D__EXTENSIONS__ | |
4777 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4778 | do | |
4779 | CC="$ac_save_CC $ac_arg" | |
4780 | rm -f conftest.$ac_objext | |
4781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4782 | (eval $ac_compile) 2>conftest.er1 | |
4783 | ac_status=$? | |
4784 | grep -v '^ *+' conftest.er1 >conftest.err | |
4785 | rm -f conftest.er1 | |
4786 | cat conftest.err >&5 | |
4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4788 | (exit $ac_status); } && | |
b7d4af3a JW |
4789 | { ac_try='test -z "$ac_c_werror_flag" |
4790 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4792 | (eval $ac_try) 2>&5 | |
4793 | ac_status=$? | |
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4795 | (exit $ac_status); }; } && | |
4796 | { ac_try='test -s conftest.$ac_objext' | |
4797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4798 | (eval $ac_try) 2>&5 | |
4799 | ac_status=$? | |
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4801 | (exit $ac_status); }; }; then | |
4802 | ac_cv_prog_cc_stdc=$ac_arg | |
4803 | break | |
252b5132 | 4804 | else |
42ecbf5e DJ |
4805 | echo "$as_me: failed program was:" >&5 |
4806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4807 | ||
252b5132 | 4808 | fi |
42ecbf5e DJ |
4809 | rm -f conftest.err conftest.$ac_objext |
4810 | done | |
4811 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4812 | CC=$ac_save_CC | |
4813 | ||
252b5132 | 4814 | fi |
e5a52504 | 4815 | |
42ecbf5e DJ |
4816 | case "x$ac_cv_prog_cc_stdc" in |
4817 | x|xno) | |
4818 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4819 | echo "${ECHO_T}none needed" >&6 ;; | |
4820 | *) | |
4821 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4822 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4823 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4824 | esac | |
e5a52504 | 4825 | |
42ecbf5e DJ |
4826 | # Some people use a C++ compiler to compile C. Since we use `exit', |
4827 | # in C++ we need to declare it. In case someone uses the same compiler | |
4828 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4829 | # the declaration of exit, since it's the most demanding environment. | |
4830 | cat >conftest.$ac_ext <<_ACEOF | |
4831 | #ifndef __cplusplus | |
4832 | choke me | |
4833 | #endif | |
4834 | _ACEOF | |
4835 | rm -f conftest.$ac_objext | |
4836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4837 | (eval $ac_compile) 2>conftest.er1 | |
4838 | ac_status=$? | |
4839 | grep -v '^ *+' conftest.er1 >conftest.err | |
4840 | rm -f conftest.er1 | |
4841 | cat conftest.err >&5 | |
4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4843 | (exit $ac_status); } && | |
b7d4af3a JW |
4844 | { ac_try='test -z "$ac_c_werror_flag" |
4845 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4847 | (eval $ac_try) 2>&5 | |
4848 | ac_status=$? | |
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4850 | (exit $ac_status); }; } && | |
4851 | { ac_try='test -s conftest.$ac_objext' | |
4852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4853 | (eval $ac_try) 2>&5 | |
4854 | ac_status=$? | |
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4856 | (exit $ac_status); }; }; then | |
4857 | for ac_declaration in \ | |
4858 | '' \ | |
4859 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4860 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4861 | 'extern "C" void exit (int) throw ();' \ | |
4862 | 'extern "C" void exit (int);' \ | |
4863 | 'void exit (int);' | |
4864 | do | |
4865 | cat >conftest.$ac_ext <<_ACEOF | |
4866 | /* confdefs.h. */ | |
4867 | _ACEOF | |
4868 | cat confdefs.h >>conftest.$ac_ext | |
4869 | cat >>conftest.$ac_ext <<_ACEOF | |
4870 | /* end confdefs.h. */ | |
4871 | $ac_declaration | |
4872 | #include <stdlib.h> | |
4873 | int | |
4874 | main () | |
4875 | { | |
4876 | exit (42); | |
4877 | ; | |
4878 | return 0; | |
4879 | } | |
4880 | _ACEOF | |
4881 | rm -f conftest.$ac_objext | |
4882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4883 | (eval $ac_compile) 2>conftest.er1 | |
4884 | ac_status=$? | |
4885 | grep -v '^ *+' conftest.er1 >conftest.err | |
4886 | rm -f conftest.er1 | |
4887 | cat conftest.err >&5 | |
4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4889 | (exit $ac_status); } && | |
b7d4af3a JW |
4890 | { ac_try='test -z "$ac_c_werror_flag" |
4891 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4893 | (eval $ac_try) 2>&5 | |
4894 | ac_status=$? | |
4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4896 | (exit $ac_status); }; } && | |
4897 | { ac_try='test -s conftest.$ac_objext' | |
4898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4899 | (eval $ac_try) 2>&5 | |
4900 | ac_status=$? | |
4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4902 | (exit $ac_status); }; }; then | |
4903 | : | |
d15b04bd | 4904 | else |
42ecbf5e DJ |
4905 | echo "$as_me: failed program was:" >&5 |
4906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 4907 | |
42ecbf5e DJ |
4908 | continue |
4909 | fi | |
4910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4911 | cat >conftest.$ac_ext <<_ACEOF | |
4912 | /* confdefs.h. */ | |
4913 | _ACEOF | |
4914 | cat confdefs.h >>conftest.$ac_ext | |
4915 | cat >>conftest.$ac_ext <<_ACEOF | |
4916 | /* end confdefs.h. */ | |
4917 | $ac_declaration | |
4918 | int | |
4919 | main () | |
4920 | { | |
4921 | exit (42); | |
4922 | ; | |
4923 | return 0; | |
4924 | } | |
4925 | _ACEOF | |
4926 | rm -f conftest.$ac_objext | |
4927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4928 | (eval $ac_compile) 2>conftest.er1 | |
4929 | ac_status=$? | |
4930 | grep -v '^ *+' conftest.er1 >conftest.err | |
4931 | rm -f conftest.er1 | |
4932 | cat conftest.err >&5 | |
4933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4934 | (exit $ac_status); } && | |
b7d4af3a JW |
4935 | { ac_try='test -z "$ac_c_werror_flag" |
4936 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4938 | (eval $ac_try) 2>&5 | |
4939 | ac_status=$? | |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4941 | (exit $ac_status); }; } && | |
4942 | { ac_try='test -s conftest.$ac_objext' | |
4943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4944 | (eval $ac_try) 2>&5 | |
4945 | ac_status=$? | |
4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4947 | (exit $ac_status); }; }; then | |
4948 | break | |
d15b04bd | 4949 | else |
42ecbf5e DJ |
4950 | echo "$as_me: failed program was:" >&5 |
4951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4952 | ||
252b5132 | 4953 | fi |
42ecbf5e DJ |
4954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4955 | done | |
d15b04bd | 4956 | rm -f conftest* |
42ecbf5e DJ |
4957 | if test -n "$ac_declaration"; then |
4958 | echo '#ifdef __cplusplus' >>confdefs.h | |
4959 | echo $ac_declaration >>confdefs.h | |
4960 | echo '#endif' >>confdefs.h | |
d15b04bd | 4961 | fi |
252b5132 | 4962 | |
ac48eca1 | 4963 | else |
42ecbf5e DJ |
4964 | echo "$as_me: failed program was:" >&5 |
4965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4966 | ||
d15b04bd | 4967 | fi |
42ecbf5e DJ |
4968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4969 | ac_ext=c | |
4970 | ac_cpp='$CPP $CPPFLAGS' | |
4971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
e5a52504 | 4974 | |
d15b04bd | 4975 | |
3e321448 L |
4976 | cat >>confdefs.h <<\_ACEOF |
4977 | #define _GNU_SOURCE 1 | |
4978 | _ACEOF | |
4979 | ||
4980 | ||
4981 | ||
d15b04bd L |
4982 | for ac_prog in 'bison -y' byacc |
4983 | do | |
42ecbf5e | 4984 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
d15b04bd | 4985 | set dummy $ac_prog; ac_word=$2 |
42ecbf5e DJ |
4986 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4988 | if test "${ac_cv_prog_YACC+set}" = set; then | |
4989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd L |
4990 | else |
4991 | if test -n "$YACC"; then | |
4992 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4993 | else | |
42ecbf5e DJ |
4994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4995 | for as_dir in $PATH | |
4996 | do | |
4997 | IFS=$as_save_IFS | |
4998 | test -z "$as_dir" && as_dir=. | |
4999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5001 | ac_cv_prog_YACC="$ac_prog" | |
5002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5003 | break 2 | |
5004 | fi | |
5005 | done | |
5006 | done | |
5007 | ||
ac48eca1 AO |
5008 | fi |
5009 | fi | |
42ecbf5e | 5010 | YACC=$ac_cv_prog_YACC |
d15b04bd | 5011 | if test -n "$YACC"; then |
42ecbf5e DJ |
5012 | echo "$as_me:$LINENO: result: $YACC" >&5 |
5013 | echo "${ECHO_T}$YACC" >&6 | |
e5a52504 | 5014 | else |
42ecbf5e DJ |
5015 | echo "$as_me:$LINENO: result: no" >&5 |
5016 | echo "${ECHO_T}no" >&6 | |
e5a52504 MM |
5017 | fi |
5018 | ||
42ecbf5e | 5019 | test -n "$YACC" && break |
d15b04bd L |
5020 | done |
5021 | test -n "$YACC" || YACC="yacc" | |
5022 | ||
d15b04bd L |
5023 | for ac_prog in flex lex |
5024 | do | |
42ecbf5e | 5025 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
d15b04bd | 5026 | set dummy $ac_prog; ac_word=$2 |
42ecbf5e DJ |
5027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5029 | if test "${ac_cv_prog_LEX+set}" = set; then | |
5030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd L |
5031 | else |
5032 | if test -n "$LEX"; then | |
5033 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
5034 | else | |
42ecbf5e DJ |
5035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5036 | for as_dir in $PATH | |
5037 | do | |
5038 | IFS=$as_save_IFS | |
5039 | test -z "$as_dir" && as_dir=. | |
5040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5042 | ac_cv_prog_LEX="$ac_prog" | |
5043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5044 | break 2 | |
5045 | fi | |
5046 | done | |
d15b04bd | 5047 | done |
d15b04bd | 5048 | |
d15b04bd | 5049 | fi |
e5a52504 | 5050 | fi |
42ecbf5e | 5051 | LEX=$ac_cv_prog_LEX |
d15b04bd | 5052 | if test -n "$LEX"; then |
42ecbf5e DJ |
5053 | echo "$as_me:$LINENO: result: $LEX" >&5 |
5054 | echo "${ECHO_T}$LEX" >&6 | |
e5a52504 | 5055 | else |
42ecbf5e DJ |
5056 | echo "$as_me:$LINENO: result: no" >&5 |
5057 | echo "${ECHO_T}no" >&6 | |
e5a52504 | 5058 | fi |
e5a52504 | 5059 | |
42ecbf5e DJ |
5060 | test -n "$LEX" && break |
5061 | done | |
5062 | test -n "$LEX" || LEX=":" | |
5063 | ||
d15b04bd L |
5064 | if test -z "$LEXLIB" |
5065 | then | |
42ecbf5e DJ |
5066 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
5067 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
5068 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
5069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5070 | else | |
5071 | ac_check_lib_save_LIBS=$LIBS | |
5072 | LIBS="-lfl $LIBS" | |
5073 | cat >conftest.$ac_ext <<_ACEOF | |
5074 | /* confdefs.h. */ | |
5075 | _ACEOF | |
5076 | cat confdefs.h >>conftest.$ac_ext | |
5077 | cat >>conftest.$ac_ext <<_ACEOF | |
5078 | /* end confdefs.h. */ | |
5079 | ||
d15b04bd | 5080 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
5081 | #ifdef __cplusplus |
5082 | extern "C" | |
5083 | #endif | |
d15b04bd | 5084 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
5085 | builtin and then its argument prototype would still apply. */ |
5086 | char yywrap (); | |
5087 | int | |
5088 | main () | |
5089 | { | |
5090 | yywrap (); | |
5091 | ; | |
5092 | return 0; | |
5093 | } | |
5094 | _ACEOF | |
5095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5097 | (eval $ac_link) 2>conftest.er1 | |
5098 | ac_status=$? | |
5099 | grep -v '^ *+' conftest.er1 >conftest.err | |
5100 | rm -f conftest.er1 | |
5101 | cat conftest.err >&5 | |
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5103 | (exit $ac_status); } && | |
b7d4af3a JW |
5104 | { ac_try='test -z "$ac_c_werror_flag" |
5105 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5107 | (eval $ac_try) 2>&5 | |
5108 | ac_status=$? | |
5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5110 | (exit $ac_status); }; } && | |
5111 | { ac_try='test -s conftest$ac_exeext' | |
5112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5113 | (eval $ac_try) 2>&5 | |
5114 | ac_status=$? | |
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5116 | (exit $ac_status); }; }; then | |
5117 | ac_cv_lib_fl_yywrap=yes | |
5118 | else | |
5119 | echo "$as_me: failed program was:" >&5 | |
5120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5121 | ||
5122 | ac_cv_lib_fl_yywrap=no | |
5123 | fi | |
5124 | rm -f conftest.err conftest.$ac_objext \ | |
5125 | conftest$ac_exeext conftest.$ac_ext | |
5126 | LIBS=$ac_check_lib_save_LIBS | |
5127 | fi | |
5128 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
5129 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
5130 | if test $ac_cv_lib_fl_yywrap = yes; then | |
5131 | LEXLIB="-lfl" | |
5132 | else | |
5133 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
5134 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
5135 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5137 | else | |
5138 | ac_check_lib_save_LIBS=$LIBS | |
5139 | LIBS="-ll $LIBS" | |
5140 | cat >conftest.$ac_ext <<_ACEOF | |
5141 | /* confdefs.h. */ | |
5142 | _ACEOF | |
5143 | cat confdefs.h >>conftest.$ac_ext | |
5144 | cat >>conftest.$ac_ext <<_ACEOF | |
5145 | /* end confdefs.h. */ | |
d15b04bd | 5146 | |
42ecbf5e DJ |
5147 | /* Override any gcc2 internal prototype to avoid an error. */ |
5148 | #ifdef __cplusplus | |
5149 | extern "C" | |
5150 | #endif | |
5151 | /* We use char because int might match the return type of a gcc2 | |
5152 | builtin and then its argument prototype would still apply. */ | |
5153 | char yywrap (); | |
5154 | int | |
5155 | main () | |
5156 | { | |
5157 | yywrap (); | |
5158 | ; | |
5159 | return 0; | |
5160 | } | |
5161 | _ACEOF | |
5162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5164 | (eval $ac_link) 2>conftest.er1 | |
5165 | ac_status=$? | |
5166 | grep -v '^ *+' conftest.er1 >conftest.err | |
5167 | rm -f conftest.er1 | |
5168 | cat conftest.err >&5 | |
5169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5170 | (exit $ac_status); } && | |
b7d4af3a JW |
5171 | { ac_try='test -z "$ac_c_werror_flag" |
5172 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5174 | (eval $ac_try) 2>&5 | |
5175 | ac_status=$? | |
5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5177 | (exit $ac_status); }; } && | |
5178 | { ac_try='test -s conftest$ac_exeext' | |
5179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5180 | (eval $ac_try) 2>&5 | |
5181 | ac_status=$? | |
5182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5183 | (exit $ac_status); }; }; then | |
5184 | ac_cv_lib_l_yywrap=yes | |
5185 | else | |
5186 | echo "$as_me: failed program was:" >&5 | |
5187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5188 | ||
5189 | ac_cv_lib_l_yywrap=no | |
5190 | fi | |
5191 | rm -f conftest.err conftest.$ac_objext \ | |
5192 | conftest$ac_exeext conftest.$ac_ext | |
5193 | LIBS=$ac_check_lib_save_LIBS | |
5194 | fi | |
5195 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
5196 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
5197 | if test $ac_cv_lib_l_yywrap = yes; then | |
5198 | LEXLIB="-ll" | |
5199 | fi | |
5200 | ||
5201 | fi | |
5202 | ||
5203 | fi | |
5204 | ||
5205 | if test "x$LEX" != "x:"; then | |
5206 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
5207 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
5208 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
5209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 5210 | else |
d15b04bd L |
5211 | # The minimal lex program is just a single line: %%. But some broken lexes |
5212 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
42ecbf5e DJ |
5213 | cat >conftest.l <<_ACEOF |
5214 | %% | |
5215 | %% | |
5216 | _ACEOF | |
5217 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
5218 | (eval $LEX conftest.l) 2>&5 | |
5219 | ac_status=$? | |
5220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5221 | (exit $ac_status); } | |
d15b04bd L |
5222 | if test -f lex.yy.c; then |
5223 | ac_cv_prog_lex_root=lex.yy | |
5224 | elif test -f lexyy.c; then | |
5225 | ac_cv_prog_lex_root=lexyy | |
e5a52504 | 5226 | else |
42ecbf5e DJ |
5227 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
5228 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
5229 | { (exit 1); exit 1; }; } | |
e5a52504 | 5230 | fi |
d15b04bd | 5231 | fi |
42ecbf5e DJ |
5232 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
5233 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
5234 | rm -f conftest.l | |
d15b04bd L |
5235 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
5236 | ||
42ecbf5e DJ |
5237 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
5238 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
5239 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
5240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 5241 | else |
d15b04bd L |
5242 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5243 | # default is implementation-dependent. Figure out which it is, since | |
5244 | # not all implementations provide the %pointer and %array declarations. | |
5245 | ac_cv_prog_lex_yytext_pointer=no | |
5246 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
42ecbf5e | 5247 | ac_save_LIBS=$LIBS |
d15b04bd | 5248 | LIBS="$LIBS $LEXLIB" |
42ecbf5e | 5249 | cat >conftest.$ac_ext <<_ACEOF |
d15b04bd | 5250 | `cat $LEX_OUTPUT_ROOT.c` |
42ecbf5e DJ |
5251 | _ACEOF |
5252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5254 | (eval $ac_link) 2>conftest.er1 | |
5255 | ac_status=$? | |
5256 | grep -v '^ *+' conftest.er1 >conftest.err | |
5257 | rm -f conftest.er1 | |
5258 | cat conftest.err >&5 | |
5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5260 | (exit $ac_status); } && | |
b7d4af3a JW |
5261 | { ac_try='test -z "$ac_c_werror_flag" |
5262 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5264 | (eval $ac_try) 2>&5 | |
5265 | ac_status=$? | |
5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5267 | (exit $ac_status); }; } && | |
5268 | { ac_try='test -s conftest$ac_exeext' | |
5269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5270 | (eval $ac_try) 2>&5 | |
5271 | ac_status=$? | |
5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5273 | (exit $ac_status); }; }; then | |
d15b04bd L |
5274 | ac_cv_prog_lex_yytext_pointer=yes |
5275 | else | |
42ecbf5e DJ |
5276 | echo "$as_me: failed program was:" >&5 |
5277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5278 | ||
e5a52504 | 5279 | fi |
42ecbf5e DJ |
5280 | rm -f conftest.err conftest.$ac_objext \ |
5281 | conftest$ac_exeext conftest.$ac_ext | |
5282 | LIBS=$ac_save_LIBS | |
d15b04bd | 5283 | rm -f "${LEX_OUTPUT_ROOT}.c" |
e5a52504 | 5284 | |
e5a52504 | 5285 | fi |
42ecbf5e DJ |
5286 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5287 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
d15b04bd | 5288 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
42ecbf5e DJ |
5289 | |
5290 | cat >>confdefs.h <<\_ACEOF | |
d15b04bd | 5291 | #define YYTEXT_POINTER 1 |
42ecbf5e | 5292 | _ACEOF |
d15b04bd L |
5293 | |
5294 | fi | |
e5a52504 | 5295 | |
42ecbf5e DJ |
5296 | fi |
5297 | if test "$LEX" = :; then | |
5298 | LEX=${am_missing_run}flex | |
5299 | fi | |
e5a52504 | 5300 | |
bdcfeba5 | 5301 | ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi" |
20e95c23 DJ |
5302 | # If we haven't got the data from the intl directory, |
5303 | # assume NLS is disabled. | |
5304 | USE_NLS=no | |
5305 | LIBINTL= | |
5306 | LIBINTL_DEP= | |
5307 | INCINTL= | |
5308 | XGETTEXT= | |
5309 | GMSGFMT= | |
5310 | POSUB= | |
7148cc28 NC |
5311 | |
5312 | if test -f ../intl/config.intl; then | |
5313 | . ../intl/config.intl | |
20e95c23 DJ |
5314 | fi |
5315 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
5316 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
5317 | if test x"$USE_NLS" != xyes; then | |
5318 | echo "$as_me:$LINENO: result: no" >&5 | |
5319 | echo "${ECHO_T}no" >&6 | |
e5a52504 | 5320 | else |
20e95c23 DJ |
5321 | echo "$as_me:$LINENO: result: yes" >&5 |
5322 | echo "${ECHO_T}yes" >&6 | |
5323 | ||
5324 | cat >>confdefs.h <<\_ACEOF | |
5325 | #define ENABLE_NLS 1 | |
5326 | _ACEOF | |
5327 | ||
5328 | ||
5329 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5330 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5331 | # Look for .po and .gmo files in the source directory. | |
5332 | CATALOGS= | |
5333 | XLINGUAS= | |
5334 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5335 | # If there aren't any .gmo files the shell will give us the | |
5336 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5337 | # weeded out. | |
5338 | case "$cat" in *\**) | |
5339 | continue;; | |
5340 | esac | |
5341 | # The quadruple backslash is collapsed to a double backslash | |
5342 | # by the backticks, then collapsed again by the double quotes, | |
5343 | # leaving us with one backslash in the sed expression (right | |
5344 | # before the dot that mustn't act as a wildcard). | |
5345 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5346 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5347 | # The user is allowed to set LINGUAS to a list of languages to | |
5348 | # install catalogs for. If it's empty that means "all of them." | |
5349 | if test "x$LINGUAS" = x; then | |
5350 | CATALOGS="$CATALOGS $cat" | |
5351 | XLINGUAS="$XLINGUAS $lang" | |
5352 | else | |
5353 | case "$LINGUAS" in *$lang*) | |
5354 | CATALOGS="$CATALOGS $cat" | |
5355 | XLINGUAS="$XLINGUAS $lang" | |
5356 | ;; | |
5357 | esac | |
5358 | fi | |
5359 | done | |
5360 | LINGUAS="$XLINGUAS" | |
5361 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5362 | echo "${ECHO_T}$LINGUAS" >&6 | |
5363 | ||
5364 | ||
5365 | DATADIRNAME=share | |
5366 | ||
5367 | INSTOBJEXT=.mo | |
5368 | ||
5369 | GENCAT=gencat | |
5370 | ||
5371 | CATOBJEXT=.gmo | |
5372 | ||
5373 | fi | |
5374 | ||
5375 | MKINSTALLDIRS= | |
5376 | if test -n "$ac_aux_dir"; then | |
5377 | case "$ac_aux_dir" in | |
5378 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5379 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5380 | esac | |
5381 | fi | |
5382 | if test -z "$MKINSTALLDIRS"; then | |
5383 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5384 | fi | |
5385 | ||
5386 | ||
5387 | ||
5388 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
5389 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
5390 | # Check whether --enable-nls or --disable-nls was given. | |
5391 | if test "${enable_nls+set}" = set; then | |
5392 | enableval="$enable_nls" | |
5393 | USE_NLS=$enableval | |
d15b04bd | 5394 | else |
20e95c23 DJ |
5395 | USE_NLS=yes |
5396 | fi; | |
5397 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
5398 | echo "${ECHO_T}$USE_NLS" >&6 | |
5399 | ||
5400 | ||
5401 | ||
5402 | ||
5403 | ||
5404 | ||
5405 | # Prepare PATH_SEPARATOR. | |
5406 | # The user is always right. | |
5407 | if test "${PATH_SEPARATOR+set}" != set; then | |
5408 | echo "#! /bin/sh" >conf$$.sh | |
5409 | echo "exit 0" >>conf$$.sh | |
5410 | chmod +x conf$$.sh | |
5411 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5412 | PATH_SEPARATOR=';' | |
5413 | else | |
5414 | PATH_SEPARATOR=: | |
42ecbf5e | 5415 | fi |
20e95c23 DJ |
5416 | rm -f conf$$.sh |
5417 | fi | |
42ecbf5e | 5418 | |
20e95c23 DJ |
5419 | # Find out how to test for executable files. Don't use a zero-byte file, |
5420 | # as systems may use methods other than mode bits to determine executability. | |
5421 | cat >conf$$.file <<_ASEOF | |
5422 | #! /bin/sh | |
5423 | exit 0 | |
5424 | _ASEOF | |
5425 | chmod +x conf$$.file | |
5426 | if test -x conf$$.file >/dev/null 2>&1; then | |
5427 | ac_executable_p="test -x" | |
5428 | else | |
5429 | ac_executable_p="test -f" | |
d15b04bd | 5430 | fi |
20e95c23 DJ |
5431 | rm -f conf$$.file |
5432 | ||
5433 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5434 | set dummy msgfmt; ac_word=$2 | |
5435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5437 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5439 | else | |
5440 | case "$MSGFMT" in | |
5441 | [\\/]* | ?:[\\/]*) | |
5442 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5443 | ;; | |
5444 | *) | |
5445 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5446 | for ac_dir in $PATH; do | |
5447 | IFS="$ac_save_IFS" | |
5448 | test -z "$ac_dir" && ac_dir=. | |
5449 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5450 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5451 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5452 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5453 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5454 | break 2 | |
5455 | fi | |
5456 | fi | |
5457 | done | |
5458 | done | |
5459 | IFS="$ac_save_IFS" | |
5460 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5461 | ;; | |
5462 | esac | |
d15b04bd | 5463 | fi |
20e95c23 DJ |
5464 | MSGFMT="$ac_cv_path_MSGFMT" |
5465 | if test "$MSGFMT" != ":"; then | |
5466 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5467 | echo "${ECHO_T}$MSGFMT" >&6 | |
42ecbf5e DJ |
5468 | else |
5469 | echo "$as_me:$LINENO: result: no" >&5 | |
5470 | echo "${ECHO_T}no" >&6 | |
5471 | fi | |
5472 | ||
20e95c23 DJ |
5473 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
5474 | set dummy gmsgfmt; ac_word=$2 | |
42ecbf5e DJ |
5475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20e95c23 | 5477 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
42ecbf5e DJ |
5478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5479 | else | |
20e95c23 DJ |
5480 | case $GMSGFMT in |
5481 | [\\/]* | ?:[\\/]*) | |
5482 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5483 | ;; | |
5484 | *) | |
5485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42ecbf5e DJ |
5486 | for as_dir in $PATH |
5487 | do | |
5488 | IFS=$as_save_IFS | |
5489 | test -z "$as_dir" && as_dir=. | |
5490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5491 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20e95c23 | 5492 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
42ecbf5e DJ |
5493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5494 | break 2 | |
5495 | fi | |
5496 | done | |
5497 | done | |
5498 | ||
20e95c23 DJ |
5499 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5500 | ;; | |
5501 | esac | |
42ecbf5e | 5502 | fi |
20e95c23 DJ |
5503 | GMSGFMT=$ac_cv_path_GMSGFMT |
5504 | ||
5505 | if test -n "$GMSGFMT"; then | |
5506 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5507 | echo "${ECHO_T}$GMSGFMT" >&6 | |
42ecbf5e DJ |
5508 | else |
5509 | echo "$as_me:$LINENO: result: no" >&5 | |
5510 | echo "${ECHO_T}no" >&6 | |
5511 | fi | |
5512 | ||
20e95c23 DJ |
5513 | |
5514 | ||
5515 | # Prepare PATH_SEPARATOR. | |
5516 | # The user is always right. | |
5517 | if test "${PATH_SEPARATOR+set}" != set; then | |
5518 | echo "#! /bin/sh" >conf$$.sh | |
5519 | echo "exit 0" >>conf$$.sh | |
5520 | chmod +x conf$$.sh | |
5521 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5522 | PATH_SEPARATOR=';' | |
5523 | else | |
5524 | PATH_SEPARATOR=: | |
5525 | fi | |
5526 | rm -f conf$$.sh | |
42ecbf5e DJ |
5527 | fi |
5528 | ||
20e95c23 DJ |
5529 | # Find out how to test for executable files. Don't use a zero-byte file, |
5530 | # as systems may use methods other than mode bits to determine executability. | |
5531 | cat >conf$$.file <<_ASEOF | |
5532 | #! /bin/sh | |
5533 | exit 0 | |
5534 | _ASEOF | |
5535 | chmod +x conf$$.file | |
5536 | if test -x conf$$.file >/dev/null 2>&1; then | |
5537 | ac_executable_p="test -x" | |
5538 | else | |
5539 | ac_executable_p="test -f" | |
42ecbf5e | 5540 | fi |
20e95c23 DJ |
5541 | rm -f conf$$.file |
5542 | ||
5543 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5544 | set dummy xgettext; ac_word=$2 | |
5545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5547 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
42ecbf5e DJ |
5548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5549 | else | |
20e95c23 DJ |
5550 | case "$XGETTEXT" in |
5551 | [\\/]* | ?:[\\/]*) | |
5552 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5553 | ;; | |
5554 | *) | |
5555 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5556 | for ac_dir in $PATH; do | |
5557 | IFS="$ac_save_IFS" | |
5558 | test -z "$ac_dir" && ac_dir=. | |
5559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5560 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5561 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5562 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5563 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5564 | break 2 | |
5565 | fi | |
5566 | fi | |
5567 | done | |
5568 | done | |
5569 | IFS="$ac_save_IFS" | |
5570 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5571 | ;; | |
5572 | esac | |
5573 | fi | |
5574 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5575 | if test "$XGETTEXT" != ":"; then | |
5576 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5577 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5578 | else | |
5579 | echo "$as_me:$LINENO: result: no" >&5 | |
5580 | echo "${ECHO_T}no" >&6 | |
5581 | fi | |
5582 | ||
5583 | rm -f messages.po | |
5584 | ||
5585 | ||
5586 | # Prepare PATH_SEPARATOR. | |
5587 | # The user is always right. | |
5588 | if test "${PATH_SEPARATOR+set}" != set; then | |
5589 | echo "#! /bin/sh" >conf$$.sh | |
5590 | echo "exit 0" >>conf$$.sh | |
5591 | chmod +x conf$$.sh | |
5592 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5593 | PATH_SEPARATOR=';' | |
42ecbf5e | 5594 | else |
20e95c23 | 5595 | PATH_SEPARATOR=: |
42ecbf5e | 5596 | fi |
20e95c23 | 5597 | rm -f conf$$.sh |
42ecbf5e | 5598 | fi |
42ecbf5e | 5599 | |
20e95c23 DJ |
5600 | # Find out how to test for executable files. Don't use a zero-byte file, |
5601 | # as systems may use methods other than mode bits to determine executability. | |
5602 | cat >conf$$.file <<_ASEOF | |
5603 | #! /bin/sh | |
5604 | exit 0 | |
5605 | _ASEOF | |
5606 | chmod +x conf$$.file | |
5607 | if test -x conf$$.file >/dev/null 2>&1; then | |
5608 | ac_executable_p="test -x" | |
5609 | else | |
5610 | ac_executable_p="test -f" | |
42ecbf5e | 5611 | fi |
20e95c23 | 5612 | rm -f conf$$.file |
42ecbf5e | 5613 | |
20e95c23 DJ |
5614 | # Extract the first word of "msgmerge", so it can be a program name with args. |
5615 | set dummy msgmerge; ac_word=$2 | |
5616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5618 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
5619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42ecbf5e | 5620 | else |
20e95c23 DJ |
5621 | case "$MSGMERGE" in |
5622 | [\\/]* | ?:[\\/]*) | |
5623 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5624 | ;; | |
5625 | *) | |
5626 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5627 | for ac_dir in $PATH; do | |
5628 | IFS="$ac_save_IFS" | |
5629 | test -z "$ac_dir" && ac_dir=. | |
5630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5631 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5632 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5633 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5634 | break 2 | |
5635 | fi | |
5636 | fi | |
5637 | done | |
5638 | done | |
5639 | IFS="$ac_save_IFS" | |
5640 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5641 | ;; | |
5642 | esac | |
42ecbf5e | 5643 | fi |
20e95c23 DJ |
5644 | MSGMERGE="$ac_cv_path_MSGMERGE" |
5645 | if test "$MSGMERGE" != ":"; then | |
5646 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
5647 | echo "${ECHO_T}$MSGMERGE" >&6 | |
42ecbf5e | 5648 | else |
20e95c23 DJ |
5649 | echo "$as_me:$LINENO: result: no" >&5 |
5650 | echo "${ECHO_T}no" >&6 | |
42ecbf5e | 5651 | fi |
42ecbf5e | 5652 | |
42ecbf5e | 5653 | |
20e95c23 DJ |
5654 | if test "$GMSGFMT" != ":"; then |
5655 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5656 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5657 | : ; | |
5658 | else | |
5659 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5660 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5661 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
5662 | GMSGFMT=":" | |
5663 | fi | |
5664 | fi | |
42ecbf5e | 5665 | |
20e95c23 DJ |
5666 | if test "$XGETTEXT" != ":"; then |
5667 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5668 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5669 | : ; | |
5670 | else | |
5671 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5672 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
5673 | XGETTEXT=":" | |
5674 | fi | |
5675 | rm -f messages.po | |
42ecbf5e | 5676 | fi |
42ecbf5e | 5677 | |
20e95c23 | 5678 | ac_config_commands="$ac_config_commands default-1" |
42ecbf5e | 5679 | |
42ecbf5e | 5680 | |
42ecbf5e | 5681 | |
20e95c23 DJ |
5682 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
5683 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
5684 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
5685 | if test "${enable_maintainer_mode+set}" = set; then | |
5686 | enableval="$enable_maintainer_mode" | |
5687 | USE_MAINTAINER_MODE=$enableval | |
42ecbf5e | 5688 | else |
20e95c23 DJ |
5689 | USE_MAINTAINER_MODE=no |
5690 | fi; | |
5691 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
5692 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
42ecbf5e DJ |
5693 | |
5694 | ||
20e95c23 DJ |
5695 | if test $USE_MAINTAINER_MODE = yes; then |
5696 | MAINTAINER_MODE_TRUE= | |
5697 | MAINTAINER_MODE_FALSE='#' | |
d15b04bd | 5698 | else |
20e95c23 DJ |
5699 | MAINTAINER_MODE_TRUE='#' |
5700 | MAINTAINER_MODE_FALSE= | |
e5a52504 | 5701 | fi |
42ecbf5e | 5702 | |
20e95c23 | 5703 | MAINT=$MAINTAINER_MODE_TRUE |
ac48eca1 | 5704 | |
42ecbf5e | 5705 | |
42ecbf5e | 5706 | |
20e95c23 DJ |
5707 | if test -n "$EXEEXT"; then |
5708 | ||
5709 | cat >>confdefs.h <<\_ACEOF | |
5710 | #define HAVE_EXECUTABLE_SUFFIX 1 | |
42ecbf5e | 5711 | _ACEOF |
42ecbf5e | 5712 | |
252b5132 | 5713 | fi |
252b5132 | 5714 | |
20e95c23 DJ |
5715 | cat >>confdefs.h <<_ACEOF |
5716 | #define EXECUTABLE_SUFFIX "${EXEEXT}" | |
42ecbf5e | 5717 | _ACEOF |
42ecbf5e | 5718 | |
252b5132 | 5719 | |
20e95c23 | 5720 | # host-specific stuff: |
252b5132 | 5721 | |
20e95c23 | 5722 | HDEFINES= |
42ecbf5e | 5723 | |
20e95c23 | 5724 | . ${srcdir}/../bfd/configure.host |
252b5132 | 5725 | |
252b5132 | 5726 | |
20e95c23 | 5727 | AR=${AR-ar} |
d15b04bd | 5728 | |
20e95c23 DJ |
5729 | if test -n "$ac_tool_prefix"; then |
5730 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5731 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5734 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5736 | else |
20e95c23 DJ |
5737 | if test -n "$RANLIB"; then |
5738 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5739 | else | |
5740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5741 | for as_dir in $PATH | |
5742 | do | |
5743 | IFS=$as_save_IFS | |
5744 | test -z "$as_dir" && as_dir=. | |
5745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5747 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5749 | break 2 | |
5750 | fi | |
5751 | done | |
5752 | done | |
42ecbf5e | 5753 | |
252b5132 | 5754 | fi |
252b5132 | 5755 | fi |
20e95c23 DJ |
5756 | RANLIB=$ac_cv_prog_RANLIB |
5757 | if test -n "$RANLIB"; then | |
5758 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5759 | echo "${ECHO_T}$RANLIB" >&6 | |
5760 | else | |
5761 | echo "$as_me:$LINENO: result: no" >&5 | |
5762 | echo "${ECHO_T}no" >&6 | |
252b5132 | 5763 | fi |
252b5132 RH |
5764 | |
5765 | fi | |
20e95c23 DJ |
5766 | if test -z "$ac_cv_prog_RANLIB"; then |
5767 | ac_ct_RANLIB=$RANLIB | |
5768 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5769 | set dummy ranlib; ac_word=$2 | |
5770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5772 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
42ecbf5e DJ |
5773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5774 | else | |
20e95c23 DJ |
5775 | if test -n "$ac_ct_RANLIB"; then |
5776 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
252b5132 | 5777 | else |
20e95c23 DJ |
5778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5779 | for as_dir in $PATH | |
5780 | do | |
5781 | IFS=$as_save_IFS | |
5782 | test -z "$as_dir" && as_dir=. | |
5783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5785 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5787 | break 2 | |
5788 | fi | |
5789 | done | |
5790 | done | |
42ecbf5e | 5791 | |
20e95c23 | 5792 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
252b5132 | 5793 | fi |
252b5132 | 5794 | fi |
20e95c23 DJ |
5795 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5796 | if test -n "$ac_ct_RANLIB"; then | |
5797 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5798 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 5799 | else |
20e95c23 DJ |
5800 | echo "$as_me:$LINENO: result: no" >&5 |
5801 | echo "${ECHO_T}no" >&6 | |
252b5132 | 5802 | fi |
252b5132 | 5803 | |
20e95c23 DJ |
5804 | RANLIB=$ac_ct_RANLIB |
5805 | else | |
5806 | RANLIB="$ac_cv_prog_RANLIB" | |
252b5132 | 5807 | fi |
42ecbf5e | 5808 | |
20e95c23 DJ |
5809 | # Find a good install program. We prefer a C program (faster), |
5810 | # so one script is as good as another. But avoid the broken or | |
5811 | # incompatible versions: | |
5812 | # SysV /etc/install, /usr/sbin/install | |
5813 | # SunOS /usr/etc/install | |
5814 | # IRIX /sbin/install | |
5815 | # AIX /bin/install | |
5816 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5817 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5818 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5819 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5820 | # OS/2's system install, which has a completely different semantic | |
5821 | # ./install, which can be erroneously created by make from ./install.sh. | |
5822 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
5823 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
5824 | if test -z "$INSTALL"; then | |
5825 | if test "${ac_cv_path_install+set}" = set; then | |
5826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42ecbf5e | 5827 | else |
20e95c23 DJ |
5828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5829 | for as_dir in $PATH | |
5830 | do | |
5831 | IFS=$as_save_IFS | |
5832 | test -z "$as_dir" && as_dir=. | |
5833 | # Account for people who put trailing slashes in PATH elements. | |
5834 | case $as_dir/ in | |
5835 | ./ | .// | /cC/* | \ | |
5836 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5837 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5838 | /usr/ucb/* ) ;; | |
5839 | *) | |
5840 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5841 | # Don't use installbsd from OSF since it installs stuff as root | |
5842 | # by default. | |
5843 | for ac_prog in ginstall scoinst install; do | |
5844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5845 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
5846 | if test $ac_prog = install && | |
5847 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5848 | # AIX install. It has an incompatible calling convention. | |
5849 | : | |
5850 | elif test $ac_prog = install && | |
5851 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5852 | # program-specific install script used by HP pwplus--don't use. | |
5853 | : | |
5854 | else | |
5855 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5856 | break 3 | |
5857 | fi | |
5858 | fi | |
5859 | done | |
5860 | done | |
42ecbf5e DJ |
5861 | ;; |
5862 | esac | |
20e95c23 | 5863 | done |
42ecbf5e | 5864 | |
42ecbf5e | 5865 | |
42ecbf5e | 5866 | fi |
20e95c23 DJ |
5867 | if test "${ac_cv_path_install+set}" = set; then |
5868 | INSTALL=$ac_cv_path_install | |
5869 | else | |
5870 | # As a last resort, use the slow shell script. We don't cache a | |
5871 | # path for INSTALL within a source directory, because that will | |
5872 | # break other packages using the cache if that directory is | |
5873 | # removed, or if the path is relative. | |
5874 | INSTALL=$ac_install_sh | |
5875 | fi | |
42ecbf5e | 5876 | fi |
20e95c23 DJ |
5877 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5878 | echo "${ECHO_T}$INSTALL" >&6 | |
42ecbf5e | 5879 | |
20e95c23 DJ |
5880 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5881 | # It thinks the first close brace ends the variable substitution. | |
5882 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
252b5132 | 5883 | |
20e95c23 | 5884 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 | 5885 | |
20e95c23 | 5886 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
42ecbf5e | 5887 | |
252b5132 | 5888 | |
20e95c23 DJ |
5889 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
5890 | if test -z "$CC_FOR_BUILD"; then | |
5891 | if test "x$cross_compiling" = "xno"; then | |
5892 | CC_FOR_BUILD='$(CC)' | |
5893 | else | |
5894 | CC_FOR_BUILD=gcc | |
5895 | fi | |
5896 | fi | |
5897 | ||
5898 | # Also set EXEEXT_FOR_BUILD. | |
5899 | if test "x$cross_compiling" = "xno"; then | |
5900 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
5901 | else | |
5902 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 | |
5903 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
5904 | if test "${bfd_cv_build_exeext+set}" = set; then | |
42ecbf5e | 5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 5906 | else |
20e95c23 DJ |
5907 | rm -f conftest* |
5908 | echo 'int main () { return 0; }' > conftest.c | |
5909 | bfd_cv_build_exeext= | |
5910 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
5911 | for file in conftest.*; do | |
5912 | case $file in | |
5913 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
5914 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
5915 | esac | |
5916 | done | |
5917 | rm -f conftest* | |
5918 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 5919 | fi |
20e95c23 DJ |
5920 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
5921 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
5922 | EXEEXT_FOR_BUILD="" | |
5923 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
252b5132 | 5924 | fi |
42ecbf5e | 5925 | |
20e95c23 DJ |
5926 | |
5927 | DEMANGLER_NAME=c++filt | |
5928 | case "${host}" in | |
5929 | *-*-go32* | *-*-msdos*) | |
5930 | DEMANGLER_NAME=cxxfilt | |
5931 | esac | |
5932 | ||
5933 | ||
5934 | ac_ext=c | |
5935 | ac_cpp='$CPP $CPPFLAGS' | |
5936 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5937 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5938 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5939 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5940 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5941 | # On Suns, sometimes $CPP names a directory. | |
5942 | if test -n "$CPP" && test -d "$CPP"; then | |
5943 | CPP= | |
5944 | fi | |
5945 | if test -z "$CPP"; then | |
5946 | if test "${ac_cv_prog_CPP+set}" = set; then | |
42ecbf5e DJ |
5947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5948 | else | |
20e95c23 DJ |
5949 | # Double quotes because CPP needs to be expanded |
5950 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5951 | do | |
5952 | ac_preproc_ok=false | |
5953 | for ac_c_preproc_warn_flag in '' yes | |
5954 | do | |
5955 | # Use a header file that comes with gcc, so configuring glibc | |
5956 | # with a fresh cross-compiler works. | |
5957 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5958 | # <limits.h> exists even on freestanding compilers. | |
5959 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5960 | # not just through cpp. "Syntax error" is here to catch this case. | |
42ecbf5e DJ |
5961 | cat >conftest.$ac_ext <<_ACEOF |
5962 | /* confdefs.h. */ | |
5963 | _ACEOF | |
5964 | cat confdefs.h >>conftest.$ac_ext | |
5965 | cat >>conftest.$ac_ext <<_ACEOF | |
5966 | /* end confdefs.h. */ | |
42ecbf5e DJ |
5967 | #ifdef __STDC__ |
5968 | # include <limits.h> | |
5969 | #else | |
5970 | # include <assert.h> | |
5971 | #endif | |
20e95c23 | 5972 | Syntax error |
42ecbf5e | 5973 | _ACEOF |
20e95c23 DJ |
5974 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5975 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42ecbf5e DJ |
5976 | ac_status=$? |
5977 | grep -v '^ *+' conftest.er1 >conftest.err | |
5978 | rm -f conftest.er1 | |
5979 | cat conftest.err >&5 | |
5980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
5981 | (exit $ac_status); } >/dev/null; then |
5982 | if test -s conftest.err; then | |
5983 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5984 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5985 | else | |
5986 | ac_cpp_err= | |
42ecbf5e | 5987 | fi |
252b5132 | 5988 | else |
20e95c23 | 5989 | ac_cpp_err=yes |
252b5132 | 5990 | fi |
20e95c23 DJ |
5991 | if test -z "$ac_cpp_err"; then |
5992 | : | |
252b5132 | 5993 | else |
20e95c23 DJ |
5994 | echo "$as_me: failed program was:" >&5 |
5995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5996 | ||
5997 | # Broken: fails on valid input. | |
5998 | continue | |
252b5132 | 5999 | fi |
20e95c23 | 6000 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 6001 | |
20e95c23 DJ |
6002 | # OK, works on sane cases. Now check whether non-existent headers |
6003 | # can be detected and how. | |
6004 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
6005 | /* confdefs.h. */ |
6006 | _ACEOF | |
6007 | cat confdefs.h >>conftest.$ac_ext | |
6008 | cat >>conftest.$ac_ext <<_ACEOF | |
6009 | /* end confdefs.h. */ | |
20e95c23 | 6010 | #include <ac_nonexistent.h> |
42ecbf5e | 6011 | _ACEOF |
20e95c23 DJ |
6012 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6013 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42ecbf5e DJ |
6014 | ac_status=$? |
6015 | grep -v '^ *+' conftest.er1 >conftest.err | |
6016 | rm -f conftest.er1 | |
6017 | cat conftest.err >&5 | |
6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
6019 | (exit $ac_status); } >/dev/null; then |
6020 | if test -s conftest.err; then | |
6021 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6022 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6023 | else | |
6024 | ac_cpp_err= | |
6025 | fi | |
6026 | else | |
6027 | ac_cpp_err=yes | |
6028 | fi | |
6029 | if test -z "$ac_cpp_err"; then | |
6030 | # Broken: success on invalid input. | |
6031 | continue | |
252b5132 | 6032 | else |
42ecbf5e DJ |
6033 | echo "$as_me: failed program was:" >&5 |
6034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6035 | ||
20e95c23 DJ |
6036 | # Passes both tests. |
6037 | ac_preproc_ok=: | |
6038 | break | |
252b5132 | 6039 | fi |
20e95c23 | 6040 | rm -f conftest.err conftest.$ac_ext |
42ecbf5e | 6041 | |
20e95c23 DJ |
6042 | done |
6043 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6044 | rm -f conftest.err conftest.$ac_ext | |
6045 | if $ac_preproc_ok; then | |
6046 | break | |
252b5132 RH |
6047 | fi |
6048 | ||
20e95c23 DJ |
6049 | done |
6050 | ac_cv_prog_CPP=$CPP | |
252b5132 | 6051 | |
252b5132 | 6052 | fi |
20e95c23 | 6053 | CPP=$ac_cv_prog_CPP |
252b5132 | 6054 | else |
20e95c23 | 6055 | ac_cv_prog_CPP=$CPP |
252b5132 | 6056 | fi |
20e95c23 DJ |
6057 | echo "$as_me:$LINENO: result: $CPP" >&5 |
6058 | echo "${ECHO_T}$CPP" >&6 | |
6059 | ac_preproc_ok=false | |
6060 | for ac_c_preproc_warn_flag in '' yes | |
42ecbf5e | 6061 | do |
20e95c23 DJ |
6062 | # Use a header file that comes with gcc, so configuring glibc |
6063 | # with a fresh cross-compiler works. | |
6064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6065 | # <limits.h> exists even on freestanding compilers. | |
6066 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6067 | # not just through cpp. "Syntax error" is here to catch this case. | |
6068 | cat >conftest.$ac_ext <<_ACEOF | |
6069 | /* confdefs.h. */ | |
6070 | _ACEOF | |
6071 | cat confdefs.h >>conftest.$ac_ext | |
6072 | cat >>conftest.$ac_ext <<_ACEOF | |
6073 | /* end confdefs.h. */ | |
6074 | #ifdef __STDC__ | |
6075 | # include <limits.h> | |
6076 | #else | |
6077 | # include <assert.h> | |
6078 | #endif | |
6079 | Syntax error | |
6080 | _ACEOF | |
6081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6083 | ac_status=$? | |
6084 | grep -v '^ *+' conftest.er1 >conftest.err | |
6085 | rm -f conftest.er1 | |
6086 | cat conftest.err >&5 | |
6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6088 | (exit $ac_status); } >/dev/null; then | |
6089 | if test -s conftest.err; then | |
6090 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6091 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6092 | else | |
6093 | ac_cpp_err= | |
42ecbf5e | 6094 | fi |
20e95c23 DJ |
6095 | else |
6096 | ac_cpp_err=yes | |
252b5132 | 6097 | fi |
20e95c23 DJ |
6098 | if test -z "$ac_cpp_err"; then |
6099 | : | |
252b5132 | 6100 | else |
20e95c23 DJ |
6101 | echo "$as_me: failed program was:" >&5 |
6102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6103 | ||
6104 | # Broken: fails on valid input. | |
6105 | continue | |
252b5132 | 6106 | fi |
20e95c23 | 6107 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 6108 | |
20e95c23 DJ |
6109 | # OK, works on sane cases. Now check whether non-existent headers |
6110 | # can be detected and how. | |
6111 | cat >conftest.$ac_ext <<_ACEOF | |
6112 | /* confdefs.h. */ | |
6113 | _ACEOF | |
6114 | cat confdefs.h >>conftest.$ac_ext | |
6115 | cat >>conftest.$ac_ext <<_ACEOF | |
6116 | /* end confdefs.h. */ | |
6117 | #include <ac_nonexistent.h> | |
6118 | _ACEOF | |
6119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6120 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6121 | ac_status=$? | |
6122 | grep -v '^ *+' conftest.er1 >conftest.err | |
6123 | rm -f conftest.er1 | |
6124 | cat conftest.err >&5 | |
6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6126 | (exit $ac_status); } >/dev/null; then | |
6127 | if test -s conftest.err; then | |
6128 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6129 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6130 | else | |
6131 | ac_cpp_err= | |
6132 | fi | |
252b5132 | 6133 | else |
20e95c23 | 6134 | ac_cpp_err=yes |
252b5132 | 6135 | fi |
20e95c23 DJ |
6136 | if test -z "$ac_cpp_err"; then |
6137 | # Broken: success on invalid input. | |
6138 | continue | |
252b5132 | 6139 | else |
20e95c23 DJ |
6140 | echo "$as_me: failed program was:" >&5 |
6141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c46f8c51 | 6142 | |
20e95c23 DJ |
6143 | # Passes both tests. |
6144 | ac_preproc_ok=: | |
6145 | break | |
6146 | fi | |
6147 | rm -f conftest.err conftest.$ac_ext | |
42ecbf5e | 6148 | |
20e95c23 DJ |
6149 | done |
6150 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6151 | rm -f conftest.err conftest.$ac_ext | |
6152 | if $ac_preproc_ok; then | |
6153 | : | |
6154 | else | |
6155 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6156 | See \`config.log' for more details." >&5 | |
6157 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6158 | See \`config.log' for more details." >&2;} | |
6159 | { (exit 1); exit 1; }; } | |
6160 | fi | |
252b5132 | 6161 | |
20e95c23 DJ |
6162 | ac_ext=c |
6163 | ac_cpp='$CPP $CPPFLAGS' | |
6164 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6165 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6166 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 | 6167 | |
252b5132 | 6168 | |
20e95c23 DJ |
6169 | echo "$as_me:$LINENO: checking for egrep" >&5 |
6170 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
6171 | if test "${ac_cv_prog_egrep+set}" = set; then | |
6172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6173 | else | |
6174 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
6175 | then ac_cv_prog_egrep='grep -E' | |
6176 | else ac_cv_prog_egrep='egrep' | |
6177 | fi | |
6178 | fi | |
6179 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
6180 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
6181 | EGREP=$ac_cv_prog_egrep | |
42ecbf5e | 6182 | |
252b5132 | 6183 | |
20e95c23 DJ |
6184 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6185 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6186 | if test "${ac_cv_header_stdc+set}" = set; then | |
42ecbf5e | 6187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
42ecbf5e | 6188 | else |
20e95c23 | 6189 | cat >conftest.$ac_ext <<_ACEOF |
42ecbf5e DJ |
6190 | /* confdefs.h. */ |
6191 | _ACEOF | |
6192 | cat confdefs.h >>conftest.$ac_ext | |
6193 | cat >>conftest.$ac_ext <<_ACEOF | |
6194 | /* end confdefs.h. */ | |
20e95c23 DJ |
6195 | #include <stdlib.h> |
6196 | #include <stdarg.h> | |
6197 | #include <string.h> | |
6198 | #include <float.h> | |
6199 | ||
6200 | int | |
6201 | main () | |
6202 | { | |
6203 | ||
6204 | ; | |
6205 | return 0; | |
6206 | } | |
42ecbf5e DJ |
6207 | _ACEOF |
6208 | rm -f conftest.$ac_objext | |
6209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6210 | (eval $ac_compile) 2>conftest.er1 | |
6211 | ac_status=$? | |
6212 | grep -v '^ *+' conftest.er1 >conftest.err | |
6213 | rm -f conftest.er1 | |
6214 | cat conftest.err >&5 | |
6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6216 | (exit $ac_status); } && | |
b7d4af3a JW |
6217 | { ac_try='test -z "$ac_c_werror_flag" |
6218 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6220 | (eval $ac_try) 2>&5 | |
6221 | ac_status=$? | |
6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6223 | (exit $ac_status); }; } && | |
6224 | { ac_try='test -s conftest.$ac_objext' | |
6225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6226 | (eval $ac_try) 2>&5 | |
6227 | ac_status=$? | |
6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6229 | (exit $ac_status); }; }; then | |
20e95c23 | 6230 | ac_cv_header_stdc=yes |
42ecbf5e DJ |
6231 | else |
6232 | echo "$as_me: failed program was:" >&5 | |
6233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6234 | ||
20e95c23 | 6235 | ac_cv_header_stdc=no |
42ecbf5e DJ |
6236 | fi |
6237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42ecbf5e | 6238 | |
20e95c23 DJ |
6239 | if test $ac_cv_header_stdc = yes; then |
6240 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6241 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
6242 | /* confdefs.h. */ |
6243 | _ACEOF | |
6244 | cat confdefs.h >>conftest.$ac_ext | |
6245 | cat >>conftest.$ac_ext <<_ACEOF | |
6246 | /* end confdefs.h. */ | |
20e95c23 | 6247 | #include <string.h> |
42ecbf5e | 6248 | |
20e95c23 DJ |
6249 | _ACEOF |
6250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6251 | $EGREP "memchr" >/dev/null 2>&1; then | |
6252 | : | |
42ecbf5e | 6253 | else |
20e95c23 | 6254 | ac_cv_header_stdc=no |
e5a52504 | 6255 | fi |
20e95c23 | 6256 | rm -f conftest* |
42ecbf5e DJ |
6257 | |
6258 | fi | |
252b5132 | 6259 | |
20e95c23 DJ |
6260 | if test $ac_cv_header_stdc = yes; then |
6261 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6262 | cat >conftest.$ac_ext <<_ACEOF | |
6263 | /* confdefs.h. */ | |
6264 | _ACEOF | |
6265 | cat confdefs.h >>conftest.$ac_ext | |
6266 | cat >>conftest.$ac_ext <<_ACEOF | |
6267 | /* end confdefs.h. */ | |
6268 | #include <stdlib.h> | |
252b5132 | 6269 | |
20e95c23 DJ |
6270 | _ACEOF |
6271 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6272 | $EGREP "free" >/dev/null 2>&1; then | |
6273 | : | |
252b5132 | 6274 | else |
20e95c23 | 6275 | ac_cv_header_stdc=no |
252b5132 | 6276 | fi |
20e95c23 | 6277 | rm -f conftest* |
2481e6a2 ILT |
6278 | |
6279 | fi | |
42ecbf5e | 6280 | |
20e95c23 DJ |
6281 | if test $ac_cv_header_stdc = yes; then |
6282 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6283 | if test "$cross_compiling" = yes; then | |
6284 | : | |
252b5132 | 6285 | else |
20e95c23 DJ |
6286 | cat >conftest.$ac_ext <<_ACEOF |
6287 | /* confdefs.h. */ | |
6288 | _ACEOF | |
6289 | cat confdefs.h >>conftest.$ac_ext | |
6290 | cat >>conftest.$ac_ext <<_ACEOF | |
6291 | /* end confdefs.h. */ | |
6292 | #include <ctype.h> | |
6293 | #if ((' ' & 0x0FF) == 0x020) | |
6294 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6295 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6296 | #else | |
6297 | # define ISLOWER(c) \ | |
6298 | (('a' <= (c) && (c) <= 'i') \ | |
6299 | || ('j' <= (c) && (c) <= 'r') \ | |
6300 | || ('s' <= (c) && (c) <= 'z')) | |
6301 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6302 | #endif | |
42ecbf5e | 6303 | |
20e95c23 DJ |
6304 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6305 | int | |
6306 | main () | |
6307 | { | |
6308 | int i; | |
6309 | for (i = 0; i < 256; i++) | |
6310 | if (XOR (islower (i), ISLOWER (i)) | |
6311 | || toupper (i) != TOUPPER (i)) | |
6312 | exit(2); | |
6313 | exit (0); | |
6314 | } | |
6315 | _ACEOF | |
6316 | rm -f conftest$ac_exeext | |
6317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6318 | (eval $ac_link) 2>&5 | |
6319 | ac_status=$? | |
6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6323 | (eval $ac_try) 2>&5 | |
6324 | ac_status=$? | |
6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6326 | (exit $ac_status); }; }; then | |
6327 | : | |
42ecbf5e | 6328 | else |
20e95c23 DJ |
6329 | echo "$as_me: program exited with status $ac_status" >&5 |
6330 | echo "$as_me: failed program was:" >&5 | |
6331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 6332 | |
20e95c23 DJ |
6333 | ( exit $ac_status ) |
6334 | ac_cv_header_stdc=no | |
42ecbf5e | 6335 | fi |
20e95c23 | 6336 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
42ecbf5e DJ |
6337 | fi |
6338 | fi | |
42ecbf5e | 6339 | fi |
20e95c23 DJ |
6340 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6341 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6342 | if test $ac_cv_header_stdc = yes; then | |
6343 | ||
6344 | cat >>confdefs.h <<\_ACEOF | |
6345 | #define STDC_HEADERS 1 | |
6346 | _ACEOF | |
42ecbf5e | 6347 | |
252b5132 RH |
6348 | fi |
6349 | ||
20e95c23 | 6350 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
42ecbf5e | 6351 | |
252b5132 | 6352 | |
252b5132 | 6353 | |
252b5132 | 6354 | |
252b5132 | 6355 | |
252b5132 RH |
6356 | |
6357 | ||
252b5132 | 6358 | |
20e95c23 DJ |
6359 | |
6360 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6361 | inttypes.h stdint.h unistd.h | |
6362 | do | |
6363 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42ecbf5e | 6367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 6368 | else |
20e95c23 DJ |
6369 | cat >conftest.$ac_ext <<_ACEOF |
6370 | /* confdefs.h. */ | |
6371 | _ACEOF | |
6372 | cat confdefs.h >>conftest.$ac_ext | |
6373 | cat >>conftest.$ac_ext <<_ACEOF | |
6374 | /* end confdefs.h. */ | |
6375 | $ac_includes_default | |
6376 | ||
6377 | #include <$ac_header> | |
6378 | _ACEOF | |
6379 | rm -f conftest.$ac_objext | |
6380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6381 | (eval $ac_compile) 2>conftest.er1 | |
6382 | ac_status=$? | |
6383 | grep -v '^ *+' conftest.er1 >conftest.err | |
6384 | rm -f conftest.er1 | |
6385 | cat conftest.err >&5 | |
6386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6387 | (exit $ac_status); } && | |
6388 | { ac_try='test -z "$ac_c_werror_flag" | |
6389 | || test ! -s conftest.err' | |
6390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6391 | (eval $ac_try) 2>&5 | |
6392 | ac_status=$? | |
6393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6394 | (exit $ac_status); }; } && | |
6395 | { ac_try='test -s conftest.$ac_objext' | |
6396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6397 | (eval $ac_try) 2>&5 | |
6398 | ac_status=$? | |
6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6400 | (exit $ac_status); }; }; then | |
6401 | eval "$as_ac_Header=yes" | |
6402 | else | |
6403 | echo "$as_me: failed program was:" >&5 | |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6405 | ||
6406 | eval "$as_ac_Header=no" | |
252b5132 | 6407 | fi |
20e95c23 | 6408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6409 | fi |
20e95c23 DJ |
6410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6411 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6413 | cat >>confdefs.h <<_ACEOF | |
6414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6415 | _ACEOF | |
252b5132 | 6416 | |
20e95c23 | 6417 | fi |
252b5132 | 6418 | |
20e95c23 | 6419 | done |
8a965946 ILT |
6420 | |
6421 | ||
42ecbf5e DJ |
6422 | |
6423 | ||
6424 | ||
6425 | ||
6426 | ||
6427 | ||
6428 | for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h | |
252b5132 | 6429 | do |
42ecbf5e DJ |
6430 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6432 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6436 | fi | |
6437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6439 | else | |
6440 | # Is the header compilable? | |
6441 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6442 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6443 | cat >conftest.$ac_ext <<_ACEOF | |
6444 | /* confdefs.h. */ | |
6445 | _ACEOF | |
6446 | cat confdefs.h >>conftest.$ac_ext | |
6447 | cat >>conftest.$ac_ext <<_ACEOF | |
6448 | /* end confdefs.h. */ | |
6449 | $ac_includes_default | |
6450 | #include <$ac_header> | |
6451 | _ACEOF | |
6452 | rm -f conftest.$ac_objext | |
6453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6454 | (eval $ac_compile) 2>conftest.er1 | |
6455 | ac_status=$? | |
6456 | grep -v '^ *+' conftest.er1 >conftest.err | |
6457 | rm -f conftest.er1 | |
6458 | cat conftest.err >&5 | |
6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6460 | (exit $ac_status); } && | |
b7d4af3a JW |
6461 | { ac_try='test -z "$ac_c_werror_flag" |
6462 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6464 | (eval $ac_try) 2>&5 | |
6465 | ac_status=$? | |
6466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6467 | (exit $ac_status); }; } && | |
6468 | { ac_try='test -s conftest.$ac_objext' | |
6469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6470 | (eval $ac_try) 2>&5 | |
6471 | ac_status=$? | |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6473 | (exit $ac_status); }; }; then | |
6474 | ac_header_compiler=yes | |
6475 | else | |
6476 | echo "$as_me: failed program was:" >&5 | |
6477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6478 | ||
6479 | ac_header_compiler=no | |
6480 | fi | |
6481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6482 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6483 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6484 | ||
6485 | # Is the header present? | |
6486 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6487 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6488 | cat >conftest.$ac_ext <<_ACEOF | |
6489 | /* confdefs.h. */ | |
6490 | _ACEOF | |
6491 | cat confdefs.h >>conftest.$ac_ext | |
6492 | cat >>conftest.$ac_ext <<_ACEOF | |
6493 | /* end confdefs.h. */ | |
6494 | #include <$ac_header> | |
6495 | _ACEOF | |
6496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6498 | ac_status=$? | |
6499 | grep -v '^ *+' conftest.er1 >conftest.err | |
6500 | rm -f conftest.er1 | |
6501 | cat conftest.err >&5 | |
6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6503 | (exit $ac_status); } >/dev/null; then | |
6504 | if test -s conftest.err; then | |
6505 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6507 | else | |
6508 | ac_cpp_err= | |
6509 | fi | |
252b5132 | 6510 | else |
42ecbf5e | 6511 | ac_cpp_err=yes |
252b5132 | 6512 | fi |
42ecbf5e DJ |
6513 | if test -z "$ac_cpp_err"; then |
6514 | ac_header_preproc=yes | |
6515 | else | |
6516 | echo "$as_me: failed program was:" >&5 | |
6517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6518 | ||
6519 | ac_header_preproc=no | |
252b5132 | 6520 | fi |
42ecbf5e DJ |
6521 | rm -f conftest.err conftest.$ac_ext |
6522 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6523 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6524 | ||
6525 | # So? What about this header? | |
6526 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6527 | yes:no: ) | |
6528 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6529 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6531 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6532 | ac_header_preproc=yes | |
6533 | ;; | |
6534 | no:yes:* ) | |
6535 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6536 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6537 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6538 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6539 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6540 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6541 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6542 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6545 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6546 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6547 | ( | |
6548 | cat <<\_ASBOX | |
6549 | ## ------------------------------------------ ## | |
6550 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6551 | ## ------------------------------------------ ## | |
6552 | _ASBOX | |
6553 | ) | | |
6554 | sed "s/^/$as_me: WARNING: /" >&2 | |
6555 | ;; | |
6556 | esac | |
6557 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6559 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6561 | else |
42ecbf5e DJ |
6562 | eval "$as_ac_Header=\$ac_header_preproc" |
6563 | fi | |
6564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6565 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6566 | ||
252b5132 | 6567 | fi |
42ecbf5e DJ |
6568 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6569 | cat >>confdefs.h <<_ACEOF | |
6570 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6571 | _ACEOF | |
6572 | ||
6573 | fi | |
6574 | ||
252b5132 RH |
6575 | done |
6576 | ||
42ecbf5e DJ |
6577 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
6578 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
6579 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
6580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6581 | else | |
6582 | cat >conftest.$ac_ext <<_ACEOF | |
6583 | /* confdefs.h. */ | |
6584 | _ACEOF | |
6585 | cat confdefs.h >>conftest.$ac_ext | |
6586 | cat >>conftest.$ac_ext <<_ACEOF | |
6587 | /* end confdefs.h. */ | |
252b5132 RH |
6588 | #include <sys/types.h> |
6589 | #include <sys/wait.h> | |
6590 | #ifndef WEXITSTATUS | |
42ecbf5e | 6591 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
252b5132 RH |
6592 | #endif |
6593 | #ifndef WIFEXITED | |
42ecbf5e | 6594 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
252b5132 | 6595 | #endif |
42ecbf5e DJ |
6596 | |
6597 | int | |
6598 | main () | |
6599 | { | |
6600 | int s; | |
6601 | wait (&s); | |
6602 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
6603 | ; | |
6604 | return 0; | |
6605 | } | |
6606 | _ACEOF | |
6607 | rm -f conftest.$ac_objext | |
6608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6609 | (eval $ac_compile) 2>conftest.er1 | |
6610 | ac_status=$? | |
6611 | grep -v '^ *+' conftest.er1 >conftest.err | |
6612 | rm -f conftest.er1 | |
6613 | cat conftest.err >&5 | |
6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6615 | (exit $ac_status); } && | |
b7d4af3a JW |
6616 | { ac_try='test -z "$ac_c_werror_flag" |
6617 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6619 | (eval $ac_try) 2>&5 | |
6620 | ac_status=$? | |
6621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6622 | (exit $ac_status); }; } && | |
6623 | { ac_try='test -s conftest.$ac_objext' | |
6624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6625 | (eval $ac_try) 2>&5 | |
6626 | ac_status=$? | |
6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6628 | (exit $ac_status); }; }; then | |
252b5132 RH |
6629 | ac_cv_header_sys_wait_h=yes |
6630 | else | |
42ecbf5e DJ |
6631 | echo "$as_me: failed program was:" >&5 |
6632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6633 | ||
6634 | ac_cv_header_sys_wait_h=no | |
252b5132 | 6635 | fi |
42ecbf5e | 6636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6637 | fi |
42ecbf5e DJ |
6638 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
6639 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
d15b04bd | 6640 | if test $ac_cv_header_sys_wait_h = yes; then |
42ecbf5e DJ |
6641 | |
6642 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6643 | #define HAVE_SYS_WAIT_H 1 |
42ecbf5e | 6644 | _ACEOF |
252b5132 RH |
6645 | |
6646 | fi | |
6647 | ||
6648 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6649 | # for constant arguments. Useless! | |
42ecbf5e DJ |
6650 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6651 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
6652 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
6653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6654 | else | |
6655 | cat >conftest.$ac_ext <<_ACEOF | |
6656 | /* confdefs.h. */ | |
6657 | _ACEOF | |
6658 | cat confdefs.h >>conftest.$ac_ext | |
6659 | cat >>conftest.$ac_ext <<_ACEOF | |
6660 | /* end confdefs.h. */ | |
252b5132 | 6661 | #include <alloca.h> |
42ecbf5e DJ |
6662 | int |
6663 | main () | |
6664 | { | |
6665 | char *p = (char *) alloca (2 * sizeof (int)); | |
6666 | ; | |
6667 | return 0; | |
6668 | } | |
6669 | _ACEOF | |
6670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6672 | (eval $ac_link) 2>conftest.er1 | |
6673 | ac_status=$? | |
6674 | grep -v '^ *+' conftest.er1 >conftest.err | |
6675 | rm -f conftest.er1 | |
6676 | cat conftest.err >&5 | |
6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6678 | (exit $ac_status); } && | |
b7d4af3a JW |
6679 | { ac_try='test -z "$ac_c_werror_flag" |
6680 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6682 | (eval $ac_try) 2>&5 | |
6683 | ac_status=$? | |
6684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6685 | (exit $ac_status); }; } && | |
6686 | { ac_try='test -s conftest$ac_exeext' | |
6687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6688 | (eval $ac_try) 2>&5 | |
6689 | ac_status=$? | |
6690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6691 | (exit $ac_status); }; }; then | |
6692 | ac_cv_working_alloca_h=yes | |
6693 | else | |
6694 | echo "$as_me: failed program was:" >&5 | |
6695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6696 | ||
6697 | ac_cv_working_alloca_h=no | |
6698 | fi | |
6699 | rm -f conftest.err conftest.$ac_objext \ | |
6700 | conftest$ac_exeext conftest.$ac_ext | |
6701 | fi | |
6702 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
6703 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
6704 | if test $ac_cv_working_alloca_h = yes; then | |
6705 | ||
6706 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6707 | #define HAVE_ALLOCA_H 1 |
42ecbf5e | 6708 | _ACEOF |
252b5132 RH |
6709 | |
6710 | fi | |
6711 | ||
42ecbf5e DJ |
6712 | echo "$as_me:$LINENO: checking for alloca" >&5 |
6713 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
6714 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
6715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6716 | else |
42ecbf5e DJ |
6717 | cat >conftest.$ac_ext <<_ACEOF |
6718 | /* confdefs.h. */ | |
6719 | _ACEOF | |
6720 | cat confdefs.h >>conftest.$ac_ext | |
6721 | cat >>conftest.$ac_ext <<_ACEOF | |
6722 | /* end confdefs.h. */ | |
252b5132 RH |
6723 | #ifdef __GNUC__ |
6724 | # define alloca __builtin_alloca | |
6725 | #else | |
6726 | # ifdef _MSC_VER | |
6727 | # include <malloc.h> | |
6728 | # define alloca _alloca | |
6729 | # else | |
6730 | # if HAVE_ALLOCA_H | |
6731 | # include <alloca.h> | |
6732 | # else | |
6733 | # ifdef _AIX | |
6734 | #pragma alloca | |
6735 | # else | |
6736 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6737 | char *alloca (); | |
6738 | # endif | |
6739 | # endif | |
6740 | # endif | |
6741 | # endif | |
6742 | #endif | |
6743 | ||
42ecbf5e DJ |
6744 | int |
6745 | main () | |
6746 | { | |
6747 | char *p = (char *) alloca (1); | |
6748 | ; | |
6749 | return 0; | |
6750 | } | |
6751 | _ACEOF | |
6752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6754 | (eval $ac_link) 2>conftest.er1 | |
6755 | ac_status=$? | |
6756 | grep -v '^ *+' conftest.er1 >conftest.err | |
6757 | rm -f conftest.er1 | |
6758 | cat conftest.err >&5 | |
6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6760 | (exit $ac_status); } && | |
b7d4af3a JW |
6761 | { ac_try='test -z "$ac_c_werror_flag" |
6762 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6764 | (eval $ac_try) 2>&5 | |
6765 | ac_status=$? | |
6766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6767 | (exit $ac_status); }; } && | |
6768 | { ac_try='test -s conftest$ac_exeext' | |
6769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6770 | (eval $ac_try) 2>&5 | |
6771 | ac_status=$? | |
6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6773 | (exit $ac_status); }; }; then | |
252b5132 RH |
6774 | ac_cv_func_alloca_works=yes |
6775 | else | |
42ecbf5e DJ |
6776 | echo "$as_me: failed program was:" >&5 |
6777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6778 | ||
6779 | ac_cv_func_alloca_works=no | |
252b5132 | 6780 | fi |
42ecbf5e DJ |
6781 | rm -f conftest.err conftest.$ac_objext \ |
6782 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 6783 | fi |
42ecbf5e DJ |
6784 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6785 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 6786 | |
252b5132 | 6787 | if test $ac_cv_func_alloca_works = yes; then |
e5a52504 | 6788 | |
42ecbf5e DJ |
6789 | cat >>confdefs.h <<\_ACEOF |
6790 | #define HAVE_ALLOCA 1 | |
6791 | _ACEOF | |
e5a52504 | 6792 | |
42ecbf5e | 6793 | else |
d15b04bd | 6794 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
42ecbf5e DJ |
6795 | # that cause trouble. Some versions do not even contain alloca or |
6796 | # contain a buggy version. If you still want to use their alloca, | |
6797 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6798 | ||
6799 | ALLOCA=alloca.$ac_objext | |
6800 | ||
6801 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6802 | #define C_ALLOCA 1 |
42ecbf5e | 6803 | _ACEOF |
252b5132 RH |
6804 | |
6805 | ||
42ecbf5e DJ |
6806 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6807 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
6808 | if test "${ac_cv_os_cray+set}" = set; then | |
6809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6810 | else |
42ecbf5e DJ |
6811 | cat >conftest.$ac_ext <<_ACEOF |
6812 | /* confdefs.h. */ | |
6813 | _ACEOF | |
6814 | cat confdefs.h >>conftest.$ac_ext | |
6815 | cat >>conftest.$ac_ext <<_ACEOF | |
6816 | /* end confdefs.h. */ | |
252b5132 RH |
6817 | #if defined(CRAY) && ! defined(CRAY2) |
6818 | webecray | |
6819 | #else | |
6820 | wenotbecray | |
6821 | #endif | |
6822 | ||
42ecbf5e | 6823 | _ACEOF |
252b5132 | 6824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
42ecbf5e | 6825 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
6826 | ac_cv_os_cray=yes |
6827 | else | |
252b5132 RH |
6828 | ac_cv_os_cray=no |
6829 | fi | |
6830 | rm -f conftest* | |
6831 | ||
6832 | fi | |
42ecbf5e DJ |
6833 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6834 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
d15b04bd | 6835 | if test $ac_cv_os_cray = yes; then |
42ecbf5e DJ |
6836 | for ac_func in _getb67 GETB67 getb67; do |
6837 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6838 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6839 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6840 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6842 | else | |
6843 | cat >conftest.$ac_ext <<_ACEOF | |
6844 | /* confdefs.h. */ | |
6845 | _ACEOF | |
6846 | cat confdefs.h >>conftest.$ac_ext | |
6847 | cat >>conftest.$ac_ext <<_ACEOF | |
6848 | /* end confdefs.h. */ | |
6849 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6850 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6851 | #define $ac_func innocuous_$ac_func | |
6852 | ||
252b5132 | 6853 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
6854 | which can conflict with char $ac_func (); below. |
6855 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6856 | <limits.h> exists even on freestanding compilers. */ | |
6857 | ||
6858 | #ifdef __STDC__ | |
6859 | # include <limits.h> | |
6860 | #else | |
6861 | # include <assert.h> | |
6862 | #endif | |
d15b04bd | 6863 | |
42ecbf5e | 6864 | #undef $ac_func |
d15b04bd | 6865 | |
42ecbf5e DJ |
6866 | /* Override any gcc2 internal prototype to avoid an error. */ |
6867 | #ifdef __cplusplus | |
6868 | extern "C" | |
6869 | { | |
6870 | #endif | |
6871 | /* We use char because int might match the return type of a gcc2 | |
6872 | builtin and then its argument prototype would still apply. */ | |
6873 | char $ac_func (); | |
252b5132 RH |
6874 | /* The GNU C library defines this for functions which it implements |
6875 | to always fail with ENOSYS. Some functions are actually named | |
6876 | something starting with __ and the normal name is an alias. */ | |
6877 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6878 | choke me | |
6879 | #else | |
42ecbf5e DJ |
6880 | char (*f) () = $ac_func; |
6881 | #endif | |
6882 | #ifdef __cplusplus | |
6883 | } | |
252b5132 RH |
6884 | #endif |
6885 | ||
42ecbf5e DJ |
6886 | int |
6887 | main () | |
6888 | { | |
6889 | return f != $ac_func; | |
6890 | ; | |
6891 | return 0; | |
6892 | } | |
6893 | _ACEOF | |
6894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6896 | (eval $ac_link) 2>conftest.er1 | |
6897 | ac_status=$? | |
6898 | grep -v '^ *+' conftest.er1 >conftest.err | |
6899 | rm -f conftest.er1 | |
6900 | cat conftest.err >&5 | |
6901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6902 | (exit $ac_status); } && | |
b7d4af3a JW |
6903 | { ac_try='test -z "$ac_c_werror_flag" |
6904 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6906 | (eval $ac_try) 2>&5 | |
6907 | ac_status=$? | |
6908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6909 | (exit $ac_status); }; } && | |
6910 | { ac_try='test -s conftest$ac_exeext' | |
6911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6912 | (eval $ac_try) 2>&5 | |
6913 | ac_status=$? | |
6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6915 | (exit $ac_status); }; }; then | |
6916 | eval "$as_ac_var=yes" | |
6917 | else | |
6918 | echo "$as_me: failed program was:" >&5 | |
6919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6920 | ||
6921 | eval "$as_ac_var=no" | |
6922 | fi | |
6923 | rm -f conftest.err conftest.$ac_objext \ | |
6924 | conftest$ac_exeext conftest.$ac_ext | |
6925 | fi | |
6926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6927 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6928 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6929 | ||
6930 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6931 | #define CRAY_STACKSEG_END $ac_func |
42ecbf5e | 6932 | _ACEOF |
252b5132 | 6933 | |
42ecbf5e | 6934 | break |
252b5132 RH |
6935 | fi |
6936 | ||
42ecbf5e | 6937 | done |
252b5132 RH |
6938 | fi |
6939 | ||
42ecbf5e DJ |
6940 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6941 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6942 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6944 | else |
6945 | if test "$cross_compiling" = yes; then | |
6946 | ac_cv_c_stack_direction=0 | |
6947 | else | |
42ecbf5e DJ |
6948 | cat >conftest.$ac_ext <<_ACEOF |
6949 | /* confdefs.h. */ | |
6950 | _ACEOF | |
6951 | cat confdefs.h >>conftest.$ac_ext | |
6952 | cat >>conftest.$ac_ext <<_ACEOF | |
6953 | /* end confdefs.h. */ | |
6954 | int | |
252b5132 RH |
6955 | find_stack_direction () |
6956 | { | |
6957 | static char *addr = 0; | |
6958 | auto char dummy; | |
6959 | if (addr == 0) | |
6960 | { | |
6961 | addr = &dummy; | |
6962 | return find_stack_direction (); | |
6963 | } | |
6964 | else | |
6965 | return (&dummy > addr) ? 1 : -1; | |
6966 | } | |
42ecbf5e DJ |
6967 | |
6968 | int | |
252b5132 RH |
6969 | main () |
6970 | { | |
42ecbf5e | 6971 | exit (find_stack_direction () < 0); |
252b5132 | 6972 | } |
42ecbf5e DJ |
6973 | _ACEOF |
6974 | rm -f conftest$ac_exeext | |
6975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6976 | (eval $ac_link) 2>&5 | |
6977 | ac_status=$? | |
6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6981 | (eval $ac_try) 2>&5 | |
6982 | ac_status=$? | |
6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6984 | (exit $ac_status); }; }; then | |
252b5132 RH |
6985 | ac_cv_c_stack_direction=1 |
6986 | else | |
42ecbf5e DJ |
6987 | echo "$as_me: program exited with status $ac_status" >&5 |
6988 | echo "$as_me: failed program was:" >&5 | |
6989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6990 | ||
6991 | ( exit $ac_status ) | |
6992 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6993 | fi |
42ecbf5e | 6994 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6995 | fi |
252b5132 | 6996 | fi |
42ecbf5e DJ |
6997 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6998 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6999 | |
42ecbf5e | 7000 | cat >>confdefs.h <<_ACEOF |
252b5132 | 7001 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
42ecbf5e DJ |
7002 | _ACEOF |
7003 | ||
252b5132 RH |
7004 | |
7005 | fi | |
7006 | ||
42ecbf5e DJ |
7007 | |
7008 | ||
7009 | ||
7010 | ||
7011 | ||
9710509e | 7012 | for ac_func in sbrk utimes setmode getc_unlocked strcoll |
252b5132 | 7013 | do |
42ecbf5e DJ |
7014 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7015 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7016 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7017 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7019 | else | |
7020 | cat >conftest.$ac_ext <<_ACEOF | |
7021 | /* confdefs.h. */ | |
7022 | _ACEOF | |
7023 | cat confdefs.h >>conftest.$ac_ext | |
7024 | cat >>conftest.$ac_ext <<_ACEOF | |
7025 | /* end confdefs.h. */ | |
7026 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7027 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7028 | #define $ac_func innocuous_$ac_func | |
7029 | ||
252b5132 | 7030 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
7031 | which can conflict with char $ac_func (); below. |
7032 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7033 | <limits.h> exists even on freestanding compilers. */ | |
7034 | ||
7035 | #ifdef __STDC__ | |
7036 | # include <limits.h> | |
7037 | #else | |
7038 | # include <assert.h> | |
7039 | #endif | |
d15b04bd | 7040 | |
42ecbf5e | 7041 | #undef $ac_func |
d15b04bd | 7042 | |
42ecbf5e DJ |
7043 | /* Override any gcc2 internal prototype to avoid an error. */ |
7044 | #ifdef __cplusplus | |
7045 | extern "C" | |
7046 | { | |
7047 | #endif | |
7048 | /* We use char because int might match the return type of a gcc2 | |
7049 | builtin and then its argument prototype would still apply. */ | |
7050 | char $ac_func (); | |
252b5132 RH |
7051 | /* The GNU C library defines this for functions which it implements |
7052 | to always fail with ENOSYS. Some functions are actually named | |
7053 | something starting with __ and the normal name is an alias. */ | |
7054 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7055 | choke me | |
7056 | #else | |
42ecbf5e DJ |
7057 | char (*f) () = $ac_func; |
7058 | #endif | |
7059 | #ifdef __cplusplus | |
7060 | } | |
252b5132 RH |
7061 | #endif |
7062 | ||
42ecbf5e DJ |
7063 | int |
7064 | main () | |
7065 | { | |
7066 | return f != $ac_func; | |
7067 | ; | |
7068 | return 0; | |
7069 | } | |
7070 | _ACEOF | |
7071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7073 | (eval $ac_link) 2>conftest.er1 | |
7074 | ac_status=$? | |
7075 | grep -v '^ *+' conftest.er1 >conftest.err | |
7076 | rm -f conftest.er1 | |
7077 | cat conftest.err >&5 | |
7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7079 | (exit $ac_status); } && | |
b7d4af3a JW |
7080 | { ac_try='test -z "$ac_c_werror_flag" |
7081 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7083 | (eval $ac_try) 2>&5 | |
7084 | ac_status=$? | |
7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7086 | (exit $ac_status); }; } && | |
7087 | { ac_try='test -s conftest$ac_exeext' | |
7088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7089 | (eval $ac_try) 2>&5 | |
7090 | ac_status=$? | |
7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7092 | (exit $ac_status); }; }; then | |
7093 | eval "$as_ac_var=yes" | |
7094 | else | |
7095 | echo "$as_me: failed program was:" >&5 | |
7096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7097 | ||
7098 | eval "$as_ac_var=no" | |
7099 | fi | |
7100 | rm -f conftest.err conftest.$ac_objext \ | |
7101 | conftest$ac_exeext conftest.$ac_ext | |
7102 | fi | |
7103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7104 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7105 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7106 | cat >>confdefs.h <<_ACEOF | |
7107 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7108 | _ACEOF | |
252b5132 | 7109 | |
252b5132 RH |
7110 | fi |
7111 | done | |
7112 | ||
7113 | ||
cedd9a58 JJ |
7114 | # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE |
7115 | # needs to be defined for it | |
42ecbf5e DJ |
7116 | echo "$as_me:$LINENO: checking for fopen64" >&5 |
7117 | echo $ECHO_N "checking for fopen64... $ECHO_C" >&6 | |
7118 | if test "${bu_cv_have_fopen64+set}" = set; then | |
7119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7120 | else | |
7121 | cat >conftest.$ac_ext <<_ACEOF | |
7122 | /* confdefs.h. */ | |
7123 | _ACEOF | |
7124 | cat confdefs.h >>conftest.$ac_ext | |
7125 | cat >>conftest.$ac_ext <<_ACEOF | |
7126 | /* end confdefs.h. */ | |
cedd9a58 | 7127 | #include <stdio.h> |
42ecbf5e DJ |
7128 | int |
7129 | main () | |
7130 | { | |
cedd9a58 | 7131 | FILE *f = fopen64 ("/tmp/foo","r"); |
42ecbf5e DJ |
7132 | ; |
7133 | return 0; | |
7134 | } | |
7135 | _ACEOF | |
7136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7138 | (eval $ac_link) 2>conftest.er1 | |
7139 | ac_status=$? | |
7140 | grep -v '^ *+' conftest.er1 >conftest.err | |
7141 | rm -f conftest.er1 | |
7142 | cat conftest.err >&5 | |
7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7144 | (exit $ac_status); } && | |
b7d4af3a JW |
7145 | { ac_try='test -z "$ac_c_werror_flag" |
7146 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7148 | (eval $ac_try) 2>&5 | |
7149 | ac_status=$? | |
7150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7151 | (exit $ac_status); }; } && | |
7152 | { ac_try='test -s conftest$ac_exeext' | |
7153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7154 | (eval $ac_try) 2>&5 | |
7155 | ac_status=$? | |
7156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7157 | (exit $ac_status); }; }; then | |
cedd9a58 JJ |
7158 | bu_cv_have_fopen64=yes |
7159 | else | |
42ecbf5e DJ |
7160 | echo "$as_me: failed program was:" >&5 |
7161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7162 | ||
7163 | saved_CPPFLAGS=$CPPFLAGS | |
cedd9a58 | 7164 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
42ecbf5e DJ |
7165 | cat >conftest.$ac_ext <<_ACEOF |
7166 | /* confdefs.h. */ | |
7167 | _ACEOF | |
7168 | cat confdefs.h >>conftest.$ac_ext | |
7169 | cat >>conftest.$ac_ext <<_ACEOF | |
7170 | /* end confdefs.h. */ | |
cedd9a58 | 7171 | #include <stdio.h> |
42ecbf5e DJ |
7172 | int |
7173 | main () | |
7174 | { | |
cedd9a58 | 7175 | FILE *f = fopen64 ("/tmp/foo","r"); |
42ecbf5e DJ |
7176 | ; |
7177 | return 0; | |
7178 | } | |
7179 | _ACEOF | |
7180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7182 | (eval $ac_link) 2>conftest.er1 | |
7183 | ac_status=$? | |
7184 | grep -v '^ *+' conftest.er1 >conftest.err | |
7185 | rm -f conftest.er1 | |
7186 | cat conftest.err >&5 | |
7187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7188 | (exit $ac_status); } && | |
b7d4af3a JW |
7189 | { ac_try='test -z "$ac_c_werror_flag" |
7190 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7192 | (eval $ac_try) 2>&5 | |
7193 | ac_status=$? | |
7194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7195 | (exit $ac_status); }; } && | |
7196 | { ac_try='test -s conftest$ac_exeext' | |
7197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7198 | (eval $ac_try) 2>&5 | |
7199 | ac_status=$? | |
7200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7201 | (exit $ac_status); }; }; then | |
cedd9a58 JJ |
7202 | bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE" |
7203 | else | |
42ecbf5e DJ |
7204 | echo "$as_me: failed program was:" >&5 |
7205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7206 | ||
7207 | bu_cv_have_fopen64=no | |
cedd9a58 | 7208 | fi |
42ecbf5e DJ |
7209 | rm -f conftest.err conftest.$ac_objext \ |
7210 | conftest$ac_exeext conftest.$ac_ext | |
17a5a5c3 | 7211 | CPPFLAGS=$saved_CPPFLAGS |
cedd9a58 | 7212 | fi |
42ecbf5e DJ |
7213 | rm -f conftest.err conftest.$ac_objext \ |
7214 | conftest$ac_exeext conftest.$ac_ext | |
cedd9a58 | 7215 | fi |
cedd9a58 | 7216 | |
42ecbf5e DJ |
7217 | echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5 |
7218 | echo "${ECHO_T}$bu_cv_have_fopen64" >&6 | |
6db7a086 | 7219 | if test "$bu_cv_have_fopen64" != no; then |
42ecbf5e DJ |
7220 | |
7221 | cat >>confdefs.h <<\_ACEOF | |
cedd9a58 | 7222 | #define HAVE_FOPEN64 1 |
42ecbf5e | 7223 | _ACEOF |
cedd9a58 | 7224 | |
fb5b5478 | 7225 | fi |
42ecbf5e DJ |
7226 | echo "$as_me:$LINENO: checking for stat64" >&5 |
7227 | echo $ECHO_N "checking for stat64... $ECHO_C" >&6 | |
7228 | if test "${bu_cv_have_stat64+set}" = set; then | |
7229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fb5b5478 | 7230 | else |
42ecbf5e DJ |
7231 | cat >conftest.$ac_ext <<_ACEOF |
7232 | /* confdefs.h. */ | |
7233 | _ACEOF | |
7234 | cat confdefs.h >>conftest.$ac_ext | |
7235 | cat >>conftest.$ac_ext <<_ACEOF | |
7236 | /* end confdefs.h. */ | |
fb5b5478 | 7237 | #include <sys/stat.h> |
42ecbf5e DJ |
7238 | int |
7239 | main () | |
7240 | { | |
fb5b5478 | 7241 | struct stat64 st; stat64 ("/tmp/foo", &st); |
42ecbf5e DJ |
7242 | ; |
7243 | return 0; | |
7244 | } | |
7245 | _ACEOF | |
7246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7248 | (eval $ac_link) 2>conftest.er1 | |
7249 | ac_status=$? | |
7250 | grep -v '^ *+' conftest.er1 >conftest.err | |
7251 | rm -f conftest.er1 | |
7252 | cat conftest.err >&5 | |
7253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7254 | (exit $ac_status); } && | |
b7d4af3a JW |
7255 | { ac_try='test -z "$ac_c_werror_flag" |
7256 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7258 | (eval $ac_try) 2>&5 | |
7259 | ac_status=$? | |
7260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7261 | (exit $ac_status); }; } && | |
7262 | { ac_try='test -s conftest$ac_exeext' | |
7263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7264 | (eval $ac_try) 2>&5 | |
7265 | ac_status=$? | |
7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7267 | (exit $ac_status); }; }; then | |
fb5b5478 JJ |
7268 | bu_cv_have_stat64=yes |
7269 | else | |
42ecbf5e DJ |
7270 | echo "$as_me: failed program was:" >&5 |
7271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7272 | ||
7273 | saved_CPPFLAGS=$CPPFLAGS | |
fb5b5478 | 7274 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
42ecbf5e DJ |
7275 | cat >conftest.$ac_ext <<_ACEOF |
7276 | /* confdefs.h. */ | |
7277 | _ACEOF | |
7278 | cat confdefs.h >>conftest.$ac_ext | |
7279 | cat >>conftest.$ac_ext <<_ACEOF | |
7280 | /* end confdefs.h. */ | |
fb5b5478 | 7281 | #include <sys/stat.h> |
42ecbf5e DJ |
7282 | int |
7283 | main () | |
7284 | { | |
fb5b5478 | 7285 | struct stat64 st; stat64 ("/tmp/foo", &st); |
42ecbf5e DJ |
7286 | ; |
7287 | return 0; | |
7288 | } | |
7289 | _ACEOF | |
7290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7292 | (eval $ac_link) 2>conftest.er1 | |
7293 | ac_status=$? | |
7294 | grep -v '^ *+' conftest.er1 >conftest.err | |
7295 | rm -f conftest.er1 | |
7296 | cat conftest.err >&5 | |
7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7298 | (exit $ac_status); } && | |
b7d4af3a JW |
7299 | { ac_try='test -z "$ac_c_werror_flag" |
7300 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7302 | (eval $ac_try) 2>&5 | |
7303 | ac_status=$? | |
7304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7305 | (exit $ac_status); }; } && | |
7306 | { ac_try='test -s conftest$ac_exeext' | |
7307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7308 | (eval $ac_try) 2>&5 | |
7309 | ac_status=$? | |
7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7311 | (exit $ac_status); }; }; then | |
fb5b5478 JJ |
7312 | bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE" |
7313 | else | |
42ecbf5e DJ |
7314 | echo "$as_me: failed program was:" >&5 |
7315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7316 | ||
7317 | bu_cv_have_stat64=no | |
fb5b5478 | 7318 | fi |
42ecbf5e DJ |
7319 | rm -f conftest.err conftest.$ac_objext \ |
7320 | conftest$ac_exeext conftest.$ac_ext | |
fb5b5478 JJ |
7321 | CPPFLAGS=$saved_CPPFLAGS |
7322 | fi | |
42ecbf5e DJ |
7323 | rm -f conftest.err conftest.$ac_objext \ |
7324 | conftest$ac_exeext conftest.$ac_ext | |
fb5b5478 JJ |
7325 | fi |
7326 | ||
42ecbf5e DJ |
7327 | echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5 |
7328 | echo "${ECHO_T}$bu_cv_have_stat64" >&6 | |
fb5b5478 | 7329 | if test "$bu_cv_have_stat64" != no; then |
42ecbf5e DJ |
7330 | |
7331 | cat >>confdefs.h <<\_ACEOF | |
fb5b5478 | 7332 | #define HAVE_STAT64 1 |
42ecbf5e | 7333 | _ACEOF |
fb5b5478 JJ |
7334 | |
7335 | fi | |
7336 | if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \ | |
7337 | || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then | |
42ecbf5e DJ |
7338 | |
7339 | cat >>confdefs.h <<\_ACEOF | |
cedd9a58 | 7340 | #define _LARGEFILE64_SOURCE 1 |
42ecbf5e | 7341 | _ACEOF |
cedd9a58 | 7342 | |
fb5b5478 | 7343 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
cedd9a58 JJ |
7344 | fi |
7345 | ||
f353eb8a | 7346 | # Some systems have frexp only in -lm, not in -lc. |
42ecbf5e DJ |
7347 | echo "$as_me:$LINENO: checking for library containing frexp" >&5 |
7348 | echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6 | |
7349 | if test "${ac_cv_search_frexp+set}" = set; then | |
7350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7351 | else | |
7352 | ac_func_search_save_LIBS=$LIBS | |
7353 | ac_cv_search_frexp=no | |
7354 | cat >conftest.$ac_ext <<_ACEOF | |
7355 | /* confdefs.h. */ | |
7356 | _ACEOF | |
7357 | cat confdefs.h >>conftest.$ac_ext | |
7358 | cat >>conftest.$ac_ext <<_ACEOF | |
7359 | /* end confdefs.h. */ | |
f353eb8a | 7360 | |
f353eb8a | 7361 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
7362 | #ifdef __cplusplus |
7363 | extern "C" | |
7364 | #endif | |
f353eb8a | 7365 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
7366 | builtin and then its argument prototype would still apply. */ |
7367 | char frexp (); | |
7368 | int | |
7369 | main () | |
7370 | { | |
7371 | frexp (); | |
7372 | ; | |
7373 | return 0; | |
7374 | } | |
7375 | _ACEOF | |
7376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7378 | (eval $ac_link) 2>conftest.er1 | |
7379 | ac_status=$? | |
7380 | grep -v '^ *+' conftest.er1 >conftest.err | |
7381 | rm -f conftest.er1 | |
7382 | cat conftest.err >&5 | |
7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7384 | (exit $ac_status); } && | |
b7d4af3a JW |
7385 | { ac_try='test -z "$ac_c_werror_flag" |
7386 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7388 | (eval $ac_try) 2>&5 | |
7389 | ac_status=$? | |
7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7391 | (exit $ac_status); }; } && | |
7392 | { ac_try='test -s conftest$ac_exeext' | |
7393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7394 | (eval $ac_try) 2>&5 | |
7395 | ac_status=$? | |
7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7397 | (exit $ac_status); }; }; then | |
f353eb8a ILT |
7398 | ac_cv_search_frexp="none required" |
7399 | else | |
42ecbf5e DJ |
7400 | echo "$as_me: failed program was:" >&5 |
7401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7402 | ||
f353eb8a | 7403 | fi |
42ecbf5e DJ |
7404 | rm -f conftest.err conftest.$ac_objext \ |
7405 | conftest$ac_exeext conftest.$ac_ext | |
7406 | if test "$ac_cv_search_frexp" = no; then | |
7407 | for ac_lib in m; do | |
7408 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7409 | cat >conftest.$ac_ext <<_ACEOF | |
7410 | /* confdefs.h. */ | |
7411 | _ACEOF | |
7412 | cat confdefs.h >>conftest.$ac_ext | |
7413 | cat >>conftest.$ac_ext <<_ACEOF | |
7414 | /* end confdefs.h. */ | |
7415 | ||
f353eb8a | 7416 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
7417 | #ifdef __cplusplus |
7418 | extern "C" | |
7419 | #endif | |
f353eb8a | 7420 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
7421 | builtin and then its argument prototype would still apply. */ |
7422 | char frexp (); | |
7423 | int | |
7424 | main () | |
7425 | { | |
7426 | frexp (); | |
7427 | ; | |
7428 | return 0; | |
7429 | } | |
7430 | _ACEOF | |
7431 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7433 | (eval $ac_link) 2>conftest.er1 | |
7434 | ac_status=$? | |
7435 | grep -v '^ *+' conftest.er1 >conftest.err | |
7436 | rm -f conftest.er1 | |
7437 | cat conftest.err >&5 | |
7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7439 | (exit $ac_status); } && | |
b7d4af3a JW |
7440 | { ac_try='test -z "$ac_c_werror_flag" |
7441 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7443 | (eval $ac_try) 2>&5 | |
7444 | ac_status=$? | |
7445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7446 | (exit $ac_status); }; } && | |
7447 | { ac_try='test -s conftest$ac_exeext' | |
7448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7449 | (eval $ac_try) 2>&5 | |
7450 | ac_status=$? | |
7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7452 | (exit $ac_status); }; }; then | |
7453 | ac_cv_search_frexp="-l$ac_lib" | |
f353eb8a ILT |
7454 | break |
7455 | else | |
42ecbf5e DJ |
7456 | echo "$as_me: failed program was:" >&5 |
7457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7458 | ||
f353eb8a | 7459 | fi |
42ecbf5e DJ |
7460 | rm -f conftest.err conftest.$ac_objext \ |
7461 | conftest$ac_exeext conftest.$ac_ext | |
7462 | done | |
e5a52504 | 7463 | fi |
42ecbf5e DJ |
7464 | LIBS=$ac_func_search_save_LIBS |
7465 | fi | |
7466 | echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5 | |
7467 | echo "${ECHO_T}$ac_cv_search_frexp" >&6 | |
7468 | if test "$ac_cv_search_frexp" != no; then | |
d15b04bd | 7469 | test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS" |
42ecbf5e | 7470 | |
f353eb8a ILT |
7471 | fi |
7472 | ||
42ecbf5e DJ |
7473 | |
7474 | echo "$as_me:$LINENO: checking for time_t in time.h" >&5 | |
7475 | echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6 | |
7476 | if test "${bu_cv_decl_time_t_time_h+set}" = set; then | |
7477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7478 | else |
42ecbf5e DJ |
7479 | cat >conftest.$ac_ext <<_ACEOF |
7480 | /* confdefs.h. */ | |
7481 | _ACEOF | |
7482 | cat confdefs.h >>conftest.$ac_ext | |
7483 | cat >>conftest.$ac_ext <<_ACEOF | |
7484 | /* end confdefs.h. */ | |
252b5132 | 7485 | #include <time.h> |
42ecbf5e DJ |
7486 | int |
7487 | main () | |
7488 | { | |
252b5132 | 7489 | time_t i; |
42ecbf5e DJ |
7490 | ; |
7491 | return 0; | |
7492 | } | |
7493 | _ACEOF | |
7494 | rm -f conftest.$ac_objext | |
7495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7496 | (eval $ac_compile) 2>conftest.er1 | |
7497 | ac_status=$? | |
7498 | grep -v '^ *+' conftest.er1 >conftest.err | |
7499 | rm -f conftest.er1 | |
7500 | cat conftest.err >&5 | |
7501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7502 | (exit $ac_status); } && | |
b7d4af3a JW |
7503 | { ac_try='test -z "$ac_c_werror_flag" |
7504 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7506 | (eval $ac_try) 2>&5 | |
7507 | ac_status=$? | |
7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7509 | (exit $ac_status); }; } && | |
7510 | { ac_try='test -s conftest.$ac_objext' | |
7511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7512 | (eval $ac_try) 2>&5 | |
7513 | ac_status=$? | |
7514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7515 | (exit $ac_status); }; }; then | |
252b5132 RH |
7516 | bu_cv_decl_time_t_time_h=yes |
7517 | else | |
42ecbf5e DJ |
7518 | echo "$as_me: failed program was:" >&5 |
7519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7520 | ||
7521 | bu_cv_decl_time_t_time_h=no | |
252b5132 | 7522 | fi |
42ecbf5e | 7523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7524 | fi |
7525 | ||
42ecbf5e DJ |
7526 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5 |
7527 | echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6 | |
252b5132 | 7528 | if test $bu_cv_decl_time_t_time_h = yes; then |
42ecbf5e DJ |
7529 | |
7530 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7531 | #define HAVE_TIME_T_IN_TIME_H 1 |
42ecbf5e | 7532 | _ACEOF |
252b5132 RH |
7533 | |
7534 | fi | |
7535 | ||
42ecbf5e DJ |
7536 | echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5 |
7537 | echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6 | |
7538 | if test "${bu_cv_decl_time_t_types_h+set}" = set; then | |
7539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7540 | else |
42ecbf5e DJ |
7541 | cat >conftest.$ac_ext <<_ACEOF |
7542 | /* confdefs.h. */ | |
7543 | _ACEOF | |
7544 | cat confdefs.h >>conftest.$ac_ext | |
7545 | cat >>conftest.$ac_ext <<_ACEOF | |
7546 | /* end confdefs.h. */ | |
252b5132 | 7547 | #include <sys/types.h> |
42ecbf5e DJ |
7548 | int |
7549 | main () | |
7550 | { | |
252b5132 | 7551 | time_t i; |
42ecbf5e DJ |
7552 | ; |
7553 | return 0; | |
7554 | } | |
7555 | _ACEOF | |
7556 | rm -f conftest.$ac_objext | |
7557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7558 | (eval $ac_compile) 2>conftest.er1 | |
7559 | ac_status=$? | |
7560 | grep -v '^ *+' conftest.er1 >conftest.err | |
7561 | rm -f conftest.er1 | |
7562 | cat conftest.err >&5 | |
7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7564 | (exit $ac_status); } && | |
b7d4af3a JW |
7565 | { ac_try='test -z "$ac_c_werror_flag" |
7566 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7568 | (eval $ac_try) 2>&5 | |
7569 | ac_status=$? | |
7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7571 | (exit $ac_status); }; } && | |
7572 | { ac_try='test -s conftest.$ac_objext' | |
7573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7574 | (eval $ac_try) 2>&5 | |
7575 | ac_status=$? | |
7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7577 | (exit $ac_status); }; }; then | |
252b5132 RH |
7578 | bu_cv_decl_time_t_types_h=yes |
7579 | else | |
42ecbf5e DJ |
7580 | echo "$as_me: failed program was:" >&5 |
7581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7582 | ||
7583 | bu_cv_decl_time_t_types_h=no | |
252b5132 | 7584 | fi |
42ecbf5e | 7585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7586 | fi |
7587 | ||
42ecbf5e DJ |
7588 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5 |
7589 | echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6 | |
252b5132 | 7590 | if test $bu_cv_decl_time_t_types_h = yes; then |
42ecbf5e DJ |
7591 | |
7592 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7593 | #define HAVE_TIME_T_IN_TYPES_H 1 |
42ecbf5e | 7594 | _ACEOF |
252b5132 RH |
7595 | |
7596 | fi | |
7597 | ||
42ecbf5e DJ |
7598 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
7599 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
7600 | if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then | |
7601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e46eba98 | 7602 | else |
42ecbf5e DJ |
7603 | cat >conftest.$ac_ext <<_ACEOF |
7604 | /* confdefs.h. */ | |
7605 | _ACEOF | |
7606 | cat confdefs.h >>conftest.$ac_ext | |
7607 | cat >>conftest.$ac_ext <<_ACEOF | |
7608 | /* end confdefs.h. */ | |
e46eba98 | 7609 | #include <unistd.h> |
42ecbf5e DJ |
7610 | int |
7611 | main () | |
7612 | { | |
e46eba98 | 7613 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
7614 | ; |
7615 | return 0; | |
7616 | } | |
7617 | _ACEOF | |
7618 | rm -f conftest.$ac_objext | |
7619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7620 | (eval $ac_compile) 2>conftest.er1 | |
7621 | ac_status=$? | |
7622 | grep -v '^ *+' conftest.er1 >conftest.err | |
7623 | rm -f conftest.er1 | |
7624 | cat conftest.err >&5 | |
7625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7626 | (exit $ac_status); } && | |
b7d4af3a JW |
7627 | { ac_try='test -z "$ac_c_werror_flag" |
7628 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7630 | (eval $ac_try) 2>&5 | |
7631 | ac_status=$? | |
7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7633 | (exit $ac_status); }; } && | |
7634 | { ac_try='test -s conftest.$ac_objext' | |
7635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7636 | (eval $ac_try) 2>&5 | |
7637 | ac_status=$? | |
7638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7639 | (exit $ac_status); }; }; then | |
e46eba98 NC |
7640 | bu_cv_decl_getopt_unistd_h=yes |
7641 | else | |
42ecbf5e DJ |
7642 | echo "$as_me: failed program was:" >&5 |
7643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7644 | ||
7645 | bu_cv_decl_getopt_unistd_h=no | |
e46eba98 | 7646 | fi |
42ecbf5e | 7647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e46eba98 NC |
7648 | fi |
7649 | ||
42ecbf5e DJ |
7650 | echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5 |
7651 | echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6 | |
e46eba98 | 7652 | if test $bu_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e DJ |
7653 | |
7654 | cat >>confdefs.h <<\_ACEOF | |
e46eba98 | 7655 | #define HAVE_DECL_GETOPT 1 |
42ecbf5e | 7656 | _ACEOF |
e46eba98 NC |
7657 | |
7658 | fi | |
7659 | ||
252b5132 RH |
7660 | # Under Next 3.2 <utime.h> apparently does not define struct utimbuf |
7661 | # by default. | |
42ecbf5e DJ |
7662 | echo "$as_me:$LINENO: checking for utime.h" >&5 |
7663 | echo $ECHO_N "checking for utime.h... $ECHO_C" >&6 | |
7664 | if test "${bu_cv_header_utime_h+set}" = set; then | |
7665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7666 | else | |
7667 | cat >conftest.$ac_ext <<_ACEOF | |
7668 | /* confdefs.h. */ | |
7669 | _ACEOF | |
7670 | cat confdefs.h >>conftest.$ac_ext | |
7671 | cat >>conftest.$ac_ext <<_ACEOF | |
7672 | /* end confdefs.h. */ | |
252b5132 RH |
7673 | #include <sys/types.h> |
7674 | #ifdef HAVE_TIME_H | |
7675 | #include <time.h> | |
7676 | #endif | |
7677 | #include <utime.h> | |
42ecbf5e DJ |
7678 | int |
7679 | main () | |
7680 | { | |
252b5132 | 7681 | struct utimbuf s; |
42ecbf5e DJ |
7682 | ; |
7683 | return 0; | |
7684 | } | |
7685 | _ACEOF | |
7686 | rm -f conftest.$ac_objext | |
7687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7688 | (eval $ac_compile) 2>conftest.er1 | |
7689 | ac_status=$? | |
7690 | grep -v '^ *+' conftest.er1 >conftest.err | |
7691 | rm -f conftest.er1 | |
7692 | cat conftest.err >&5 | |
7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7694 | (exit $ac_status); } && | |
b7d4af3a JW |
7695 | { ac_try='test -z "$ac_c_werror_flag" |
7696 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7698 | (eval $ac_try) 2>&5 | |
7699 | ac_status=$? | |
7700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7701 | (exit $ac_status); }; } && | |
7702 | { ac_try='test -s conftest.$ac_objext' | |
7703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7704 | (eval $ac_try) 2>&5 | |
7705 | ac_status=$? | |
7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7707 | (exit $ac_status); }; }; then | |
252b5132 RH |
7708 | bu_cv_header_utime_h=yes |
7709 | else | |
42ecbf5e DJ |
7710 | echo "$as_me: failed program was:" >&5 |
7711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7712 | ||
7713 | bu_cv_header_utime_h=no | |
252b5132 | 7714 | fi |
42ecbf5e | 7715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
7716 | fi |
7717 | ||
42ecbf5e DJ |
7718 | echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5 |
7719 | echo "${ECHO_T}$bu_cv_header_utime_h" >&6 | |
252b5132 | 7720 | if test $bu_cv_header_utime_h = yes; then |
42ecbf5e DJ |
7721 | |
7722 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7723 | #define HAVE_GOOD_UTIME_H 1 |
42ecbf5e | 7724 | _ACEOF |
252b5132 RH |
7725 | |
7726 | fi | |
7727 | ||
398ee8f1 SE |
7728 | echo "$as_me:$LINENO: checking whether fprintf is declared" >&5 |
7729 | echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6 | |
7730 | if test "${ac_cv_have_decl_fprintf+set}" = set; then | |
42ecbf5e | 7731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7732 | else |
42ecbf5e DJ |
7733 | cat >conftest.$ac_ext <<_ACEOF |
7734 | /* confdefs.h. */ | |
7735 | _ACEOF | |
7736 | cat confdefs.h >>conftest.$ac_ext | |
7737 | cat >>conftest.$ac_ext <<_ACEOF | |
7738 | /* end confdefs.h. */ | |
398ee8f1 | 7739 | $ac_includes_default |
42ecbf5e DJ |
7740 | int |
7741 | main () | |
7742 | { | |
398ee8f1 SE |
7743 | #ifndef fprintf |
7744 | char *p = (char *) fprintf; | |
7745 | #endif | |
7746 | ||
42ecbf5e DJ |
7747 | ; |
7748 | return 0; | |
7749 | } | |
7750 | _ACEOF | |
7751 | rm -f conftest.$ac_objext | |
7752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7753 | (eval $ac_compile) 2>conftest.er1 | |
7754 | ac_status=$? | |
7755 | grep -v '^ *+' conftest.er1 >conftest.err | |
7756 | rm -f conftest.er1 | |
7757 | cat conftest.err >&5 | |
7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7759 | (exit $ac_status); } && | |
b7d4af3a JW |
7760 | { ac_try='test -z "$ac_c_werror_flag" |
7761 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7763 | (eval $ac_try) 2>&5 | |
7764 | ac_status=$? | |
7765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7766 | (exit $ac_status); }; } && | |
7767 | { ac_try='test -s conftest.$ac_objext' | |
7768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7769 | (eval $ac_try) 2>&5 | |
7770 | ac_status=$? | |
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7772 | (exit $ac_status); }; }; then | |
398ee8f1 | 7773 | ac_cv_have_decl_fprintf=yes |
252b5132 | 7774 | else |
42ecbf5e DJ |
7775 | echo "$as_me: failed program was:" >&5 |
7776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7777 | ||
398ee8f1 | 7778 | ac_cv_have_decl_fprintf=no |
252b5132 | 7779 | fi |
42ecbf5e | 7780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7781 | fi |
398ee8f1 SE |
7782 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5 |
7783 | echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6 | |
7784 | if test $ac_cv_have_decl_fprintf = yes; then | |
252b5132 | 7785 | |
398ee8f1 SE |
7786 | cat >>confdefs.h <<_ACEOF |
7787 | #define HAVE_DECL_FPRINTF 1 | |
7788 | _ACEOF | |
42ecbf5e | 7789 | |
398ee8f1 SE |
7790 | |
7791 | else | |
7792 | cat >>confdefs.h <<_ACEOF | |
7793 | #define HAVE_DECL_FPRINTF 0 | |
42ecbf5e | 7794 | _ACEOF |
252b5132 | 7795 | |
252b5132 | 7796 | |
3e321448 L |
7797 | fi |
7798 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 | |
7799 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
7800 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
7801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7802 | else | |
7803 | cat >conftest.$ac_ext <<_ACEOF | |
7804 | /* confdefs.h. */ | |
7805 | _ACEOF | |
7806 | cat confdefs.h >>conftest.$ac_ext | |
7807 | cat >>conftest.$ac_ext <<_ACEOF | |
7808 | /* end confdefs.h. */ | |
7809 | $ac_includes_default | |
7810 | int | |
7811 | main () | |
7812 | { | |
7813 | #ifndef stpcpy | |
7814 | char *p = (char *) stpcpy; | |
7815 | #endif | |
7816 | ||
7817 | ; | |
7818 | return 0; | |
7819 | } | |
7820 | _ACEOF | |
7821 | rm -f conftest.$ac_objext | |
7822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7823 | (eval $ac_compile) 2>conftest.er1 | |
7824 | ac_status=$? | |
7825 | grep -v '^ *+' conftest.er1 >conftest.err | |
7826 | rm -f conftest.er1 | |
7827 | cat conftest.err >&5 | |
7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7829 | (exit $ac_status); } && | |
7830 | { ac_try='test -z "$ac_c_werror_flag" | |
7831 | || test ! -s conftest.err' | |
7832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7833 | (eval $ac_try) 2>&5 | |
7834 | ac_status=$? | |
7835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7836 | (exit $ac_status); }; } && | |
7837 | { ac_try='test -s conftest.$ac_objext' | |
7838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7839 | (eval $ac_try) 2>&5 | |
7840 | ac_status=$? | |
7841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7842 | (exit $ac_status); }; }; then | |
7843 | ac_cv_have_decl_stpcpy=yes | |
7844 | else | |
7845 | echo "$as_me: failed program was:" >&5 | |
7846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7847 | ||
7848 | ac_cv_have_decl_stpcpy=no | |
7849 | fi | |
7850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7851 | fi | |
7852 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 | |
7853 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
7854 | if test $ac_cv_have_decl_stpcpy = yes; then | |
7855 | ||
7856 | cat >>confdefs.h <<_ACEOF | |
7857 | #define HAVE_DECL_STPCPY 1 | |
7858 | _ACEOF | |
7859 | ||
7860 | ||
7861 | else | |
7862 | cat >>confdefs.h <<_ACEOF | |
7863 | #define HAVE_DECL_STPCPY 0 | |
7864 | _ACEOF | |
7865 | ||
7866 | ||
398ee8f1 SE |
7867 | fi |
7868 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 | |
7869 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
7870 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
42ecbf5e | 7871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7872 | else |
42ecbf5e DJ |
7873 | cat >conftest.$ac_ext <<_ACEOF |
7874 | /* confdefs.h. */ | |
7875 | _ACEOF | |
7876 | cat confdefs.h >>conftest.$ac_ext | |
7877 | cat >>conftest.$ac_ext <<_ACEOF | |
7878 | /* end confdefs.h. */ | |
398ee8f1 | 7879 | $ac_includes_default |
42ecbf5e DJ |
7880 | int |
7881 | main () | |
7882 | { | |
398ee8f1 SE |
7883 | #ifndef strstr |
7884 | char *p = (char *) strstr; | |
7885 | #endif | |
7886 | ||
42ecbf5e DJ |
7887 | ; |
7888 | return 0; | |
7889 | } | |
7890 | _ACEOF | |
7891 | rm -f conftest.$ac_objext | |
7892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7893 | (eval $ac_compile) 2>conftest.er1 | |
7894 | ac_status=$? | |
7895 | grep -v '^ *+' conftest.er1 >conftest.err | |
7896 | rm -f conftest.er1 | |
7897 | cat conftest.err >&5 | |
7898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7899 | (exit $ac_status); } && | |
b7d4af3a JW |
7900 | { ac_try='test -z "$ac_c_werror_flag" |
7901 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7903 | (eval $ac_try) 2>&5 | |
7904 | ac_status=$? | |
7905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7906 | (exit $ac_status); }; } && | |
7907 | { ac_try='test -s conftest.$ac_objext' | |
7908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7909 | (eval $ac_try) 2>&5 | |
7910 | ac_status=$? | |
7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7912 | (exit $ac_status); }; }; then | |
398ee8f1 | 7913 | ac_cv_have_decl_strstr=yes |
252b5132 | 7914 | else |
42ecbf5e DJ |
7915 | echo "$as_me: failed program was:" >&5 |
7916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7917 | ||
398ee8f1 | 7918 | ac_cv_have_decl_strstr=no |
252b5132 | 7919 | fi |
42ecbf5e | 7920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7921 | fi |
398ee8f1 SE |
7922 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
7923 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
7924 | if test $ac_cv_have_decl_strstr = yes; then | |
252b5132 | 7925 | |
398ee8f1 SE |
7926 | cat >>confdefs.h <<_ACEOF |
7927 | #define HAVE_DECL_STRSTR 1 | |
7928 | _ACEOF | |
42ecbf5e | 7929 | |
398ee8f1 SE |
7930 | |
7931 | else | |
7932 | cat >>confdefs.h <<_ACEOF | |
7933 | #define HAVE_DECL_STRSTR 0 | |
42ecbf5e | 7934 | _ACEOF |
252b5132 | 7935 | |
252b5132 | 7936 | |
398ee8f1 SE |
7937 | fi |
7938 | echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 | |
7939 | echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6 | |
7940 | if test "${ac_cv_have_decl_sbrk+set}" = set; then | |
42ecbf5e | 7941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7942 | else |
42ecbf5e DJ |
7943 | cat >conftest.$ac_ext <<_ACEOF |
7944 | /* confdefs.h. */ | |
7945 | _ACEOF | |
7946 | cat confdefs.h >>conftest.$ac_ext | |
7947 | cat >>conftest.$ac_ext <<_ACEOF | |
7948 | /* end confdefs.h. */ | |
398ee8f1 | 7949 | $ac_includes_default |
42ecbf5e DJ |
7950 | int |
7951 | main () | |
7952 | { | |
398ee8f1 SE |
7953 | #ifndef sbrk |
7954 | char *p = (char *) sbrk; | |
7955 | #endif | |
7956 | ||
42ecbf5e DJ |
7957 | ; |
7958 | return 0; | |
7959 | } | |
7960 | _ACEOF | |
7961 | rm -f conftest.$ac_objext | |
7962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7963 | (eval $ac_compile) 2>conftest.er1 | |
7964 | ac_status=$? | |
7965 | grep -v '^ *+' conftest.er1 >conftest.err | |
7966 | rm -f conftest.er1 | |
7967 | cat conftest.err >&5 | |
7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7969 | (exit $ac_status); } && | |
b7d4af3a JW |
7970 | { ac_try='test -z "$ac_c_werror_flag" |
7971 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7973 | (eval $ac_try) 2>&5 | |
7974 | ac_status=$? | |
7975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7976 | (exit $ac_status); }; } && | |
7977 | { ac_try='test -s conftest.$ac_objext' | |
7978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7979 | (eval $ac_try) 2>&5 | |
7980 | ac_status=$? | |
7981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7982 | (exit $ac_status); }; }; then | |
398ee8f1 | 7983 | ac_cv_have_decl_sbrk=yes |
252b5132 | 7984 | else |
42ecbf5e DJ |
7985 | echo "$as_me: failed program was:" >&5 |
7986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7987 | ||
398ee8f1 | 7988 | ac_cv_have_decl_sbrk=no |
252b5132 | 7989 | fi |
42ecbf5e | 7990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7991 | fi |
398ee8f1 SE |
7992 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
7993 | echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6 | |
7994 | if test $ac_cv_have_decl_sbrk = yes; then | |
252b5132 | 7995 | |
398ee8f1 SE |
7996 | cat >>confdefs.h <<_ACEOF |
7997 | #define HAVE_DECL_SBRK 1 | |
7998 | _ACEOF | |
42ecbf5e | 7999 | |
398ee8f1 SE |
8000 | |
8001 | else | |
8002 | cat >>confdefs.h <<_ACEOF | |
8003 | #define HAVE_DECL_SBRK 0 | |
42ecbf5e | 8004 | _ACEOF |
252b5132 | 8005 | |
252b5132 | 8006 | |
398ee8f1 SE |
8007 | fi |
8008 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
8009 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
8010 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
42ecbf5e | 8011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 8012 | else |
42ecbf5e DJ |
8013 | cat >conftest.$ac_ext <<_ACEOF |
8014 | /* confdefs.h. */ | |
8015 | _ACEOF | |
8016 | cat confdefs.h >>conftest.$ac_ext | |
8017 | cat >>conftest.$ac_ext <<_ACEOF | |
8018 | /* end confdefs.h. */ | |
398ee8f1 | 8019 | $ac_includes_default |
42ecbf5e DJ |
8020 | int |
8021 | main () | |
8022 | { | |
398ee8f1 SE |
8023 | #ifndef getenv |
8024 | char *p = (char *) getenv; | |
8025 | #endif | |
8026 | ||
42ecbf5e DJ |
8027 | ; |
8028 | return 0; | |
8029 | } | |
8030 | _ACEOF | |
8031 | rm -f conftest.$ac_objext | |
8032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8033 | (eval $ac_compile) 2>conftest.er1 | |
8034 | ac_status=$? | |
8035 | grep -v '^ *+' conftest.er1 >conftest.err | |
8036 | rm -f conftest.er1 | |
8037 | cat conftest.err >&5 | |
8038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8039 | (exit $ac_status); } && | |
b7d4af3a JW |
8040 | { ac_try='test -z "$ac_c_werror_flag" |
8041 | || test ! -s conftest.err' | |
42ecbf5e DJ |
8042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8043 | (eval $ac_try) 2>&5 | |
8044 | ac_status=$? | |
8045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8046 | (exit $ac_status); }; } && | |
8047 | { ac_try='test -s conftest.$ac_objext' | |
8048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8049 | (eval $ac_try) 2>&5 | |
8050 | ac_status=$? | |
8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8052 | (exit $ac_status); }; }; then | |
398ee8f1 | 8053 | ac_cv_have_decl_getenv=yes |
252b5132 | 8054 | else |
42ecbf5e DJ |
8055 | echo "$as_me: failed program was:" >&5 |
8056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8057 | ||
398ee8f1 | 8058 | ac_cv_have_decl_getenv=no |
252b5132 | 8059 | fi |
42ecbf5e | 8060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8061 | fi |
398ee8f1 SE |
8062 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
8063 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
8064 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 8065 | |
398ee8f1 SE |
8066 | cat >>confdefs.h <<_ACEOF |
8067 | #define HAVE_DECL_GETENV 1 | |
8068 | _ACEOF | |
42ecbf5e | 8069 | |
398ee8f1 SE |
8070 | |
8071 | else | |
8072 | cat >>confdefs.h <<_ACEOF | |
8073 | #define HAVE_DECL_GETENV 0 | |
42ecbf5e | 8074 | _ACEOF |
252b5132 | 8075 | |
252b5132 | 8076 | |
398ee8f1 SE |
8077 | fi |
8078 | echo "$as_me:$LINENO: checking whether environ is declared" >&5 | |
8079 | echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6 | |
8080 | if test "${ac_cv_have_decl_environ+set}" = set; then | |
42ecbf5e | 8081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 8082 | else |
42ecbf5e DJ |
8083 | cat >conftest.$ac_ext <<_ACEOF |
8084 | /* confdefs.h. */ | |
8085 | _ACEOF | |
8086 | cat confdefs.h >>conftest.$ac_ext | |
8087 | cat >>conftest.$ac_ext <<_ACEOF | |
8088 | /* end confdefs.h. */ | |
398ee8f1 | 8089 | $ac_includes_default |
42ecbf5e DJ |
8090 | int |
8091 | main () | |
8092 | { | |
398ee8f1 SE |
8093 | #ifndef environ |
8094 | char *p = (char *) environ; | |
8095 | #endif | |
8096 | ||
42ecbf5e DJ |
8097 | ; |
8098 | return 0; | |
8099 | } | |
8100 | _ACEOF | |
8101 | rm -f conftest.$ac_objext | |
8102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8103 | (eval $ac_compile) 2>conftest.er1 | |
8104 | ac_status=$? | |
8105 | grep -v '^ *+' conftest.er1 >conftest.err | |
8106 | rm -f conftest.er1 | |
8107 | cat conftest.err >&5 | |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8109 | (exit $ac_status); } && | |
b7d4af3a JW |
8110 | { ac_try='test -z "$ac_c_werror_flag" |
8111 | || test ! -s conftest.err' | |
42ecbf5e DJ |
8112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8113 | (eval $ac_try) 2>&5 | |
8114 | ac_status=$? | |
8115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8116 | (exit $ac_status); }; } && | |
8117 | { ac_try='test -s conftest.$ac_objext' | |
8118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8119 | (eval $ac_try) 2>&5 | |
8120 | ac_status=$? | |
8121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8122 | (exit $ac_status); }; }; then | |
398ee8f1 | 8123 | ac_cv_have_decl_environ=yes |
252b5132 | 8124 | else |
42ecbf5e DJ |
8125 | echo "$as_me: failed program was:" >&5 |
8126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8127 | ||
398ee8f1 | 8128 | ac_cv_have_decl_environ=no |
252b5132 | 8129 | fi |
42ecbf5e | 8130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8131 | fi |
398ee8f1 SE |
8132 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5 |
8133 | echo "${ECHO_T}$ac_cv_have_decl_environ" >&6 | |
8134 | if test $ac_cv_have_decl_environ = yes; then | |
252b5132 | 8135 | |
398ee8f1 SE |
8136 | cat >>confdefs.h <<_ACEOF |
8137 | #define HAVE_DECL_ENVIRON 1 | |
8138 | _ACEOF | |
42ecbf5e | 8139 | |
398ee8f1 SE |
8140 | |
8141 | else | |
8142 | cat >>confdefs.h <<_ACEOF | |
8143 | #define HAVE_DECL_ENVIRON 0 | |
42ecbf5e | 8144 | _ACEOF |
252b5132 | 8145 | |
252b5132 | 8146 | |
398ee8f1 | 8147 | fi |
b7d4af3a JW |
8148 | echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
8149 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 | |
8150 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then | |
8151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8152 | else | |
8153 | cat >conftest.$ac_ext <<_ACEOF | |
8154 | /* confdefs.h. */ | |
8155 | _ACEOF | |
8156 | cat confdefs.h >>conftest.$ac_ext | |
8157 | cat >>conftest.$ac_ext <<_ACEOF | |
8158 | /* end confdefs.h. */ | |
8159 | $ac_includes_default | |
8160 | int | |
8161 | main () | |
8162 | { | |
8163 | #ifndef getc_unlocked | |
8164 | char *p = (char *) getc_unlocked; | |
8165 | #endif | |
8166 | ||
8167 | ; | |
8168 | return 0; | |
8169 | } | |
8170 | _ACEOF | |
8171 | rm -f conftest.$ac_objext | |
8172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8173 | (eval $ac_compile) 2>conftest.er1 | |
8174 | ac_status=$? | |
8175 | grep -v '^ *+' conftest.er1 >conftest.err | |
8176 | rm -f conftest.er1 | |
8177 | cat conftest.err >&5 | |
8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8179 | (exit $ac_status); } && | |
8180 | { ac_try='test -z "$ac_c_werror_flag" | |
8181 | || test ! -s conftest.err' | |
8182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8183 | (eval $ac_try) 2>&5 | |
8184 | ac_status=$? | |
8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8186 | (exit $ac_status); }; } && | |
8187 | { ac_try='test -s conftest.$ac_objext' | |
8188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8189 | (eval $ac_try) 2>&5 | |
8190 | ac_status=$? | |
8191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8192 | (exit $ac_status); }; }; then | |
8193 | ac_cv_have_decl_getc_unlocked=yes | |
8194 | else | |
8195 | echo "$as_me: failed program was:" >&5 | |
8196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8197 | ||
8198 | ac_cv_have_decl_getc_unlocked=no | |
8199 | fi | |
8200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8201 | fi | |
8202 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 | |
8203 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 | |
8204 | if test $ac_cv_have_decl_getc_unlocked = yes; then | |
8205 | ||
8206 | cat >>confdefs.h <<_ACEOF | |
8207 | #define HAVE_DECL_GETC_UNLOCKED 1 | |
8208 | _ACEOF | |
8209 | ||
8210 | ||
8211 | else | |
8212 | cat >>confdefs.h <<_ACEOF | |
8213 | #define HAVE_DECL_GETC_UNLOCKED 0 | |
8214 | _ACEOF | |
8215 | ||
8216 | ||
db50c840 EB |
8217 | fi |
8218 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 | |
8219 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
8220 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
8221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8222 | else | |
8223 | cat >conftest.$ac_ext <<_ACEOF | |
8224 | /* confdefs.h. */ | |
8225 | _ACEOF | |
8226 | cat confdefs.h >>conftest.$ac_ext | |
8227 | cat >>conftest.$ac_ext <<_ACEOF | |
8228 | /* end confdefs.h. */ | |
8229 | $ac_includes_default | |
8230 | int | |
8231 | main () | |
8232 | { | |
8233 | #ifndef snprintf | |
8234 | char *p = (char *) snprintf; | |
8235 | #endif | |
8236 | ||
8237 | ; | |
8238 | return 0; | |
8239 | } | |
8240 | _ACEOF | |
8241 | rm -f conftest.$ac_objext | |
8242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8243 | (eval $ac_compile) 2>conftest.er1 | |
8244 | ac_status=$? | |
8245 | grep -v '^ *+' conftest.er1 >conftest.err | |
8246 | rm -f conftest.er1 | |
8247 | cat conftest.err >&5 | |
8248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8249 | (exit $ac_status); } && | |
8250 | { ac_try='test -z "$ac_c_werror_flag" | |
8251 | || test ! -s conftest.err' | |
8252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8253 | (eval $ac_try) 2>&5 | |
8254 | ac_status=$? | |
8255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8256 | (exit $ac_status); }; } && | |
8257 | { ac_try='test -s conftest.$ac_objext' | |
8258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8259 | (eval $ac_try) 2>&5 | |
8260 | ac_status=$? | |
8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8262 | (exit $ac_status); }; }; then | |
8263 | ac_cv_have_decl_snprintf=yes | |
8264 | else | |
8265 | echo "$as_me: failed program was:" >&5 | |
8266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8267 | ||
8268 | ac_cv_have_decl_snprintf=no | |
8269 | fi | |
8270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8271 | fi | |
8272 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
8273 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
8274 | if test $ac_cv_have_decl_snprintf = yes; then | |
8275 | ||
8276 | cat >>confdefs.h <<_ACEOF | |
8277 | #define HAVE_DECL_SNPRINTF 1 | |
8278 | _ACEOF | |
8279 | ||
8280 | ||
8281 | else | |
8282 | cat >>confdefs.h <<_ACEOF | |
8283 | #define HAVE_DECL_SNPRINTF 0 | |
8284 | _ACEOF | |
8285 | ||
8286 | ||
8287 | fi | |
8288 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
8289 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
8290 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
8291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8292 | else | |
8293 | cat >conftest.$ac_ext <<_ACEOF | |
8294 | /* confdefs.h. */ | |
8295 | _ACEOF | |
8296 | cat confdefs.h >>conftest.$ac_ext | |
8297 | cat >>conftest.$ac_ext <<_ACEOF | |
8298 | /* end confdefs.h. */ | |
8299 | $ac_includes_default | |
8300 | int | |
8301 | main () | |
8302 | { | |
8303 | #ifndef vsnprintf | |
8304 | char *p = (char *) vsnprintf; | |
8305 | #endif | |
8306 | ||
8307 | ; | |
8308 | return 0; | |
8309 | } | |
8310 | _ACEOF | |
8311 | rm -f conftest.$ac_objext | |
8312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8313 | (eval $ac_compile) 2>conftest.er1 | |
8314 | ac_status=$? | |
8315 | grep -v '^ *+' conftest.er1 >conftest.err | |
8316 | rm -f conftest.er1 | |
8317 | cat conftest.err >&5 | |
8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8319 | (exit $ac_status); } && | |
8320 | { ac_try='test -z "$ac_c_werror_flag" | |
8321 | || test ! -s conftest.err' | |
8322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8323 | (eval $ac_try) 2>&5 | |
8324 | ac_status=$? | |
8325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8326 | (exit $ac_status); }; } && | |
8327 | { ac_try='test -s conftest.$ac_objext' | |
8328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8329 | (eval $ac_try) 2>&5 | |
8330 | ac_status=$? | |
8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8332 | (exit $ac_status); }; }; then | |
8333 | ac_cv_have_decl_vsnprintf=yes | |
8334 | else | |
8335 | echo "$as_me: failed program was:" >&5 | |
8336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8337 | ||
8338 | ac_cv_have_decl_vsnprintf=no | |
8339 | fi | |
8340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8341 | fi | |
8342 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
8343 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
8344 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
8345 | ||
8346 | cat >>confdefs.h <<_ACEOF | |
8347 | #define HAVE_DECL_VSNPRINTF 1 | |
8348 | _ACEOF | |
8349 | ||
8350 | ||
8351 | else | |
8352 | cat >>confdefs.h <<_ACEOF | |
8353 | #define HAVE_DECL_VSNPRINTF 0 | |
8354 | _ACEOF | |
8355 | ||
8356 | ||
b7d4af3a JW |
8357 | fi |
8358 | ||
8359 | ||
252b5132 RH |
8360 | |
8361 | ||
8362 | case "${host}" in | |
8a965946 | 8363 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e DJ |
8364 | |
8365 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8366 | #define USE_BINARY_FOPEN 1 |
42ecbf5e | 8367 | _ACEOF |
252b5132 RH |
8368 | ;; |
8369 | esac | |
8370 | ||
8371 | # target-specific stuff: | |
8372 | ||
8373 | # Canonicalize the secondary target names. | |
8374 | if test -n "$enable_targets"; then | |
8375 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
8376 | do | |
6d83c84b | 8377 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
8378 | if test -n "$result"; then |
8379 | canon_targets="$canon_targets $result" | |
8380 | else | |
8381 | # Allow targets that config.sub doesn't recognize, like "all". | |
8382 | canon_targets="$canon_targets $targ" | |
8383 | fi | |
8384 | done | |
8385 | fi | |
8386 | ||
8387 | all_targets=false | |
8388 | BUILD_NLMCONV= | |
8389 | NLMCONV_DEFS= | |
8390 | BUILD_SRCONV= | |
8391 | BUILD_DLLTOOL= | |
8392 | DLLTOOL_DEFS= | |
8393 | BUILD_WINDRES= | |
8394 | BUILD_DLLWRAP= | |
8395 | BUILD_MISC= | |
8b1e6df3 | 8396 | OBJDUMP_DEFS= |
252b5132 RH |
8397 | |
8398 | for targ in $target $canon_targets | |
8399 | do | |
8400 | if test "x$targ" = "xall"; then | |
8401 | all_targets=true | |
8402 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
8403 | BUILD_SRCONV='$(SRCONV_PROG)' | |
8404 | NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" | |
8405 | else | |
8406 | case $targ in | |
42ecbf5e | 8407 | i[3-7]86*-*-netware*) |
252b5132 RH |
8408 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
8409 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386" | |
8410 | ;; | |
8411 | alpha*-*-netware*) | |
8412 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
8413 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA" | |
8414 | ;; | |
8415 | powerpc*-*-netware*) | |
8416 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
8417 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC" | |
8418 | ;; | |
8419 | sparc*-*-netware*) | |
8420 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
8421 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC" | |
8422 | ;; | |
8423 | esac | |
8424 | case $targ in | |
8425 | *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; | |
8426 | esac | |
8427 | case $targ in | |
a8c548cb NC |
8428 | arm-epoc-pe*) |
8429 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
8430 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" | |
8431 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
8432 | ;; | |
7148cc28 NC |
8433 | arm-wince-pe* | arm-*-wince) |
8434 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
8435 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM" | |
8436 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
8437 | ;; | |
8438 | arm-*-pe*) | |
252b5132 RH |
8439 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
8440 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" | |
8441 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 8442 | ;; |
27a710e5 | 8443 | thumb-*-pe*) |
252b5132 RH |
8444 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
8445 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" | |
8446 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 8447 | ;; |
80c7c40a | 8448 | i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*) |
252b5132 RH |
8449 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
8450 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
8451 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
8452 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' | |
7a7b06ef | 8453 | ;; |
80c7c40a | 8454 | i[3-7]86-*-interix) |
7a7b06ef ILT |
8455 | BUILD_DLLTOOL='$(DLLTOOL_PROG)' |
8456 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
8457 | ;; | |
f0660b73 NC |
8458 | powerpc*-aix5.[01]) |
8459 | ;; | |
8460 | powerpc*-aix5.*) | |
8461 | OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" | |
8462 | ;; | |
e1d5b1e7 | 8463 | powerpc*-*-pe* | powerpc*-*-cygwin*) |
252b5132 RH |
8464 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
8465 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" | |
8466 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
8a0e0f38 | 8467 | ;; |
e1d5b1e7 | 8468 | sh*-*-pe) |
8a0e0f38 NC |
8469 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
8470 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" | |
8471 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
8472 | ;; | |
e1d5b1e7 | 8473 | mips*-*-pe) |
8a0e0f38 NC |
8474 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
8475 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS" | |
8476 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 8477 | ;; |
27a710e5 | 8478 | mcore-*-pe) |
661016bb NC |
8479 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
8480 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" | |
8481 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 8482 | ;; |
27a710e5 | 8483 | mcore-*-elf) |
661016bb NC |
8484 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
8485 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" | |
7a7b06ef | 8486 | ;; |
252b5132 RH |
8487 | esac |
8488 | fi | |
8489 | done | |
8490 | ||
42ecbf5e DJ |
8491 | if test "${with_windres+set}" = set; then |
8492 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
8493 | fi | |
8494 | ||
8495 | ||
8496 | ||
8497 | ||
8498 | ||
8499 | ||
8500 | ||
8501 | ||
8502 | ||
8503 | ||
8504 | ||
8505 | ||
8506 | cat >>confdefs.h <<_ACEOF | |
8507 | #define TARGET "${target}" | |
8508 | _ACEOF | |
8509 | ||
8510 | ||
8511 | targ=$target | |
8512 | . $srcdir/../bfd/config.bfd | |
8513 | if test "x$targ_underscore" = "xyes"; then | |
8514 | UNDERSCORE=1 | |
8515 | else | |
8516 | UNDERSCORE=0 | |
8517 | fi | |
8518 | ||
8519 | cat >>confdefs.h <<_ACEOF | |
8520 | #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE | |
8521 | _ACEOF | |
8522 | ||
8523 | ||
8524 | # Emulation | |
8525 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` | |
8526 | do | |
8527 | # Canonicalize the secondary target names. | |
8528 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
8529 | if test -n "$result"; then | |
8530 | targ=$result | |
8531 | else | |
8532 | targ=$targ_alias | |
8533 | fi | |
8534 | ||
8535 | . ${srcdir}/configure.tgt | |
8536 | ||
8537 | EMULATION=$targ_emul | |
8538 | EMULATION_VECTOR=$targ_emul_vector | |
8539 | done | |
8540 | ||
8541 | ||
8542 | ||
8543 | ||
108a6f8e CD |
8544 | # Required for html and install-html |
8545 | ||
8546 | ||
8547 | ||
8548 | ||
42ecbf5e | 8549 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
42ecbf5e DJ |
8550 | cat >confcache <<\_ACEOF |
8551 | # This file is a shell script that caches the results of configure | |
8552 | # tests run on this system so they can be shared between configure | |
8553 | # scripts and configure runs, see configure's option --config-cache. | |
8554 | # It is not useful on other systems. If it contains results you don't | |
8555 | # want to keep, you may remove or edit it. | |
8556 | # | |
8557 | # config.status only pays attention to the cache file if you give it | |
8558 | # the --recheck option to rerun configure. | |
8559 | # | |
8560 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
8561 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8562 | # following values. | |
8563 | ||
8564 | _ACEOF | |
8565 | ||
8566 | # The following way of writing the cache mishandles newlines in values, | |
8567 | # but we know of no workaround that is simple, portable, and efficient. | |
8568 | # So, don't put newlines in cache variables' values. | |
8569 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8570 | # and sets the high bit in the cache file unless we assign to the vars. | |
8571 | { | |
8572 | (set) 2>&1 | | |
8573 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8574 | *ac_space=\ *) | |
8575 | # `set' does not quote correctly, so add quotes (double-quote | |
8576 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8577 | sed -n \ | |
8578 | "s/'/'\\\\''/g; | |
8579 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
8580 | ;; | |
8581 | *) | |
8582 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8583 | sed -n \ | |
8584 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8585 | ;; | |
8586 | esac; | |
8587 | } | | |
8588 | sed ' | |
8589 | t clear | |
8590 | : clear | |
8591 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8592 | t end | |
8593 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8594 | : end' >>confcache | |
8595 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
8596 | if test -w $cache_file; then | |
8597 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
8598 | cat confcache >$cache_file | |
8599 | else | |
8600 | echo "not updating unwritable cache $cache_file" | |
8601 | fi | |
8602 | fi | |
8603 | rm -f confcache | |
8604 | ||
8605 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8606 | # Let make expand exec_prefix. | |
8607 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8608 | ||
8609 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
8610 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8611 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8612 | # (actually we leave an empty line to preserve line numbers). | |
8613 | if test "x$srcdir" = x.; then | |
8614 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8615 | s/:*\$(srcdir):*/:/; | |
8616 | s/:*\${srcdir}:*/:/; | |
8617 | s/:*@srcdir@:*/:/; | |
8618 | s/^\([^=]*=[ ]*\):*/\1/; | |
8619 | s/:*$//; | |
8620 | s/^[^=]*=[ ]*$//; | |
8621 | }' | |
8622 | fi | |
8623 | ||
8624 | DEFS=-DHAVE_CONFIG_H | |
8625 | ||
8626 | ac_libobjs= | |
8627 | ac_ltlibobjs= | |
8628 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8629 | # 1. Remove the extension, and $U if already installed. | |
8630 | ac_i=`echo "$ac_i" | | |
8631 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
8632 | # 2. Add them. | |
8633 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
8634 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
8635 | done | |
8636 | LIBOBJS=$ac_libobjs | |
8637 | ||
8638 | LTLIBOBJS=$ac_ltlibobjs | |
8639 | ||
8640 | ||
8641 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
8642 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
8643 | Usually this means the macro was only invoked conditionally." >&5 | |
8644 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
8645 | Usually this means the macro was only invoked conditionally." >&2;} | |
8646 | { (exit 1); exit 1; }; } | |
8647 | fi | |
8648 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
8649 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
8650 | Usually this means the macro was only invoked conditionally." >&5 | |
8651 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
8652 | Usually this means the macro was only invoked conditionally." >&2;} | |
8653 | { (exit 1); exit 1; }; } | |
8654 | fi | |
8655 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
8656 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
8657 | Usually this means the macro was only invoked conditionally." >&5 | |
8658 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
8659 | Usually this means the macro was only invoked conditionally." >&2;} | |
8660 | { (exit 1); exit 1; }; } | |
8661 | fi | |
8662 | ||
8663 | : ${CONFIG_STATUS=./config.status} | |
8664 | ac_clean_files_save=$ac_clean_files | |
8665 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8666 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
8667 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8668 | cat >$CONFIG_STATUS <<_ACEOF | |
8669 | #! $SHELL | |
8670 | # Generated by $as_me. | |
8671 | # Run this file to recreate the current configuration. | |
8672 | # Compiler output produced by configure, useful for debugging | |
8673 | # configure, is in config.log if it exists. | |
8674 | ||
8675 | debug=false | |
8676 | ac_cs_recheck=false | |
8677 | ac_cs_silent=false | |
8678 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8679 | _ACEOF | |
252b5132 | 8680 | |
42ecbf5e DJ |
8681 | cat >>$CONFIG_STATUS <<\_ACEOF |
8682 | ## --------------------- ## | |
8683 | ## M4sh Initialization. ## | |
8684 | ## --------------------- ## | |
252b5132 | 8685 | |
42ecbf5e DJ |
8686 | # Be Bourne compatible |
8687 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8688 | emulate sh | |
8689 | NULLCMD=: | |
8690 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
8691 | # is contrary to our usage. Disable this feature. | |
8692 | alias -g '${1+"$@"}'='"$@"' | |
8693 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8694 | set -o posix | |
8695 | fi | |
8696 | DUALCASE=1; export DUALCASE # for MKS sh | |
252b5132 | 8697 | |
42ecbf5e DJ |
8698 | # Support unset when possible. |
8699 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8700 | as_unset=unset | |
8701 | else | |
8702 | as_unset=false | |
8703 | fi | |
252b5132 RH |
8704 | |
8705 | ||
42ecbf5e DJ |
8706 | # Work around bugs in pre-3.0 UWIN ksh. |
8707 | $as_unset ENV MAIL MAILPATH | |
8708 | PS1='$ ' | |
8709 | PS2='> ' | |
8710 | PS4='+ ' | |
252b5132 | 8711 | |
42ecbf5e DJ |
8712 | # NLS nuisances. |
8713 | for as_var in \ | |
8714 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
8715 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
8716 | LC_TELEPHONE LC_TIME | |
8717 | do | |
8718 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
8719 | eval $as_var=C; export $as_var | |
8720 | else | |
8721 | $as_unset $as_var | |
8722 | fi | |
8723 | done | |
252b5132 | 8724 | |
42ecbf5e DJ |
8725 | # Required to use basename. |
8726 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8727 | as_expr=expr | |
8728 | else | |
8729 | as_expr=false | |
8730 | fi | |
252b5132 | 8731 | |
42ecbf5e DJ |
8732 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
8733 | as_basename=basename | |
8734 | else | |
8735 | as_basename=false | |
8736 | fi | |
252b5132 | 8737 | |
8b1e6df3 | 8738 | |
42ecbf5e DJ |
8739 | # Name of the executable. |
8740 | as_me=`$as_basename "$0" || | |
8741 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
8742 | X"$0" : 'X\(//\)$' \| \ | |
8743 | X"$0" : 'X\(/\)$' \| \ | |
8744 | . : '\(.\)' 2>/dev/null || | |
8745 | echo X/"$0" | | |
8746 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
8747 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
8748 | /^X\/\(\/\).*/{ s//\1/; q; } | |
8749 | s/.*/./; q'` | |
0218d1e4 | 8750 | |
252b5132 | 8751 | |
42ecbf5e DJ |
8752 | # PATH needs CR, and LINENO needs CR and PATH. |
8753 | # Avoid depending upon Character Ranges. | |
8754 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8755 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8756 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8757 | as_cr_digits='0123456789' | |
8758 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
252b5132 | 8759 | |
42ecbf5e DJ |
8760 | # The user is always right. |
8761 | if test "${PATH_SEPARATOR+set}" != set; then | |
8762 | echo "#! /bin/sh" >conf$$.sh | |
8763 | echo "exit 0" >>conf$$.sh | |
8764 | chmod +x conf$$.sh | |
8765 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8766 | PATH_SEPARATOR=';' | |
8767 | else | |
8768 | PATH_SEPARATOR=: | |
8769 | fi | |
8770 | rm -f conf$$.sh | |
252b5132 RH |
8771 | fi |
8772 | ||
8773 | ||
42ecbf5e DJ |
8774 | as_lineno_1=$LINENO |
8775 | as_lineno_2=$LINENO | |
8776 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8777 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8778 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
8779 | # Find who we are. Look in the path if we contain no path at all | |
8780 | # relative or not. | |
8781 | case $0 in | |
8782 | *[\\/]* ) as_myself=$0 ;; | |
8783 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8784 | for as_dir in $PATH | |
eb1e0e80 | 8785 | do |
42ecbf5e DJ |
8786 | IFS=$as_save_IFS |
8787 | test -z "$as_dir" && as_dir=. | |
8788 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8789 | done | |
eb1e0e80 | 8790 | |
42ecbf5e DJ |
8791 | ;; |
8792 | esac | |
8793 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8794 | # in which case we are not to be found in the path. | |
8795 | if test "x$as_myself" = x; then | |
8796 | as_myself=$0 | |
8797 | fi | |
8798 | if test ! -f "$as_myself"; then | |
8799 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
8800 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
8801 | { (exit 1); exit 1; }; } | |
8802 | fi | |
8803 | case $CONFIG_SHELL in | |
8804 | '') | |
8805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8806 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
8807 | do | |
8808 | IFS=$as_save_IFS | |
8809 | test -z "$as_dir" && as_dir=. | |
8810 | for as_base in sh bash ksh sh5; do | |
8811 | case $as_dir in | |
8812 | /*) | |
8813 | if ("$as_dir/$as_base" -c ' | |
8814 | as_lineno_1=$LINENO | |
8815 | as_lineno_2=$LINENO | |
8816 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8817 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8818 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
8819 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
8820 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
8821 | CONFIG_SHELL=$as_dir/$as_base | |
8822 | export CONFIG_SHELL | |
8823 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
8824 | fi;; | |
8825 | esac | |
8826 | done | |
eb1e0e80 | 8827 | done |
42ecbf5e DJ |
8828 | ;; |
8829 | esac | |
eb1e0e80 | 8830 | |
42ecbf5e DJ |
8831 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
8832 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8833 | # line-number line before each line; the second 'sed' does the real | |
8834 | # work. The second script uses 'N' to pair each line-number line | |
8835 | # with the numbered line, and appends trailing '-' during | |
8836 | # substitution so that $LINENO is not a special case at line end. | |
8837 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
8838 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
8839 | sed '=' <$as_myself | | |
8840 | sed ' | |
8841 | N | |
8842 | s,$,-, | |
8843 | : loop | |
8844 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
8845 | t loop | |
8846 | s,-$,, | |
8847 | s,^['$as_cr_digits']*\n,, | |
8848 | ' >$as_me.lineno && | |
8849 | chmod +x $as_me.lineno || | |
8850 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
8851 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
8852 | { (exit 1); exit 1; }; } | |
8853 | ||
8854 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8855 | # (the dirname of $[0] is not the place where we might find the | |
8856 | # original and so on. Autoconf is especially sensible to this). | |
8857 | . ./$as_me.lineno | |
8858 | # Exit status is that of the last command. | |
8859 | exit | |
8860 | } | |
eb1e0e80 NC |
8861 | |
8862 | ||
42ecbf5e DJ |
8863 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
8864 | *c*,-n*) ECHO_N= ECHO_C=' | |
8865 | ' ECHO_T=' ' ;; | |
8866 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
8867 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
8868 | esac | |
eb1e0e80 | 8869 | |
42ecbf5e DJ |
8870 | if expr a : '\(a\)' >/dev/null 2>&1; then |
8871 | as_expr=expr | |
d15b04bd | 8872 | else |
42ecbf5e DJ |
8873 | as_expr=false |
8874 | fi | |
8875 | ||
8876 | rm -f conf$$ conf$$.exe conf$$.file | |
8877 | echo >conf$$.file | |
8878 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8879 | # We could just check for DJGPP; but this test a) works b) is more generic | |
8880 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
8881 | if test -f conf$$.exe; then | |
8882 | # Don't use ln at all; we don't have any links | |
8883 | as_ln_s='cp -p' | |
252b5132 | 8884 | else |
42ecbf5e | 8885 | as_ln_s='ln -s' |
252b5132 | 8886 | fi |
42ecbf5e DJ |
8887 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8888 | as_ln_s=ln | |
8889 | else | |
8890 | as_ln_s='cp -p' | |
252b5132 | 8891 | fi |
42ecbf5e | 8892 | rm -f conf$$ conf$$.exe conf$$.file |
252b5132 | 8893 | |
42ecbf5e DJ |
8894 | if mkdir -p . 2>/dev/null; then |
8895 | as_mkdir_p=: | |
8896 | else | |
8897 | test -d ./-p && rmdir ./-p | |
8898 | as_mkdir_p=false | |
8899 | fi | |
d15b04bd | 8900 | |
42ecbf5e | 8901 | as_executable_p="test -f" |
252b5132 | 8902 | |
42ecbf5e DJ |
8903 | # Sed expression to map a string onto a valid CPP name. |
8904 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8905 | ||
8906 | # Sed expression to map a string onto a valid variable name. | |
8907 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8908 | ||
8909 | ||
8910 | # IFS | |
8911 | # We need space, tab and new line, in precisely that order. | |
8912 | as_nl=' | |
8913 | ' | |
8914 | IFS=" $as_nl" | |
8915 | ||
8916 | # CDPATH. | |
8917 | $as_unset CDPATH | |
8918 | ||
8919 | exec 6>&1 | |
8920 | ||
8921 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
8922 | # report actual input values of CONFIG_FILES etc. instead of their | |
8923 | # values after options handling. Logging --version etc. is OK. | |
8924 | exec 5>>config.log | |
8925 | { | |
8926 | echo | |
8927 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8928 | ## Running $as_me. ## | |
8929 | _ASBOX | |
8930 | } >&5 | |
8931 | cat >&5 <<_CSEOF | |
8932 | ||
8933 | This file was extended by $as_me, which was | |
8934 | generated by GNU Autoconf 2.59. Invocation command line was | |
8935 | ||
8936 | CONFIG_FILES = $CONFIG_FILES | |
8937 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8938 | CONFIG_LINKS = $CONFIG_LINKS | |
8939 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8940 | $ $0 $@ | |
8941 | ||
8942 | _CSEOF | |
8943 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
8944 | echo >&5 | |
8945 | _ACEOF | |
8946 | ||
8947 | # Files that config.status was made for. | |
8948 | if test -n "$ac_config_files"; then | |
8949 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
252b5132 RH |
8950 | fi |
8951 | ||
42ecbf5e DJ |
8952 | if test -n "$ac_config_headers"; then |
8953 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
8954 | fi | |
e5a52504 | 8955 | |
42ecbf5e DJ |
8956 | if test -n "$ac_config_links"; then |
8957 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
8958 | fi | |
e5a52504 | 8959 | |
42ecbf5e DJ |
8960 | if test -n "$ac_config_commands"; then |
8961 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8962 | fi | |
d15b04bd | 8963 | |
42ecbf5e DJ |
8964 | cat >>$CONFIG_STATUS <<\_ACEOF |
8965 | ||
8966 | ac_cs_usage="\ | |
8967 | \`$as_me' instantiates files from templates according to the | |
8968 | current configuration. | |
8969 | ||
8970 | Usage: $0 [OPTIONS] [FILE]... | |
8971 | ||
8972 | -h, --help print this help, then exit | |
8973 | -V, --version print version number, then exit | |
8974 | -q, --quiet do not print progress messages | |
8975 | -d, --debug don't remove temporary files | |
8976 | --recheck update $as_me by reconfiguring in the same conditions | |
8977 | --file=FILE[:TEMPLATE] | |
8978 | instantiate the configuration file FILE | |
8979 | --header=FILE[:TEMPLATE] | |
8980 | instantiate the configuration header FILE | |
8981 | ||
8982 | Configuration files: | |
8983 | $config_files | |
8984 | ||
8985 | Configuration headers: | |
8986 | $config_headers | |
8987 | ||
8988 | Configuration commands: | |
8989 | $config_commands | |
8990 | ||
8991 | Report bugs to <bug-autoconf@gnu.org>." | |
8992 | _ACEOF | |
8993 | ||
8994 | cat >>$CONFIG_STATUS <<_ACEOF | |
8995 | ac_cs_version="\\ | |
8996 | config.status | |
8997 | configured by $0, generated by GNU Autoconf 2.59, | |
8998 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8999 | ||
9000 | Copyright (C) 2003 Free Software Foundation, Inc. | |
9001 | This config.status script is free software; the Free Software Foundation | |
9002 | gives unlimited permission to copy, distribute and modify it." | |
9003 | srcdir=$srcdir | |
9004 | INSTALL="$INSTALL" | |
9005 | _ACEOF | |
9006 | ||
9007 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9008 | # If no file are specified by the user, then we need to provide default | |
9009 | # value. By we need to know if files were specified by the user. | |
9010 | ac_need_defaults=: | |
9011 | while test $# != 0 | |
9012 | do | |
9013 | case $1 in | |
9014 | --*=*) | |
9015 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
9016 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
9017 | ac_shift=: | |
9018 | ;; | |
9019 | -*) | |
9020 | ac_option=$1 | |
9021 | ac_optarg=$2 | |
9022 | ac_shift=shift | |
9023 | ;; | |
9024 | *) # This is not an option, so the user has probably given explicit | |
9025 | # arguments. | |
9026 | ac_option=$1 | |
9027 | ac_need_defaults=false;; | |
9028 | esac | |
9029 | ||
9030 | case $ac_option in | |
9031 | # Handling of the options. | |
9032 | _ACEOF | |
9033 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9034 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9035 | ac_cs_recheck=: ;; | |
9036 | --version | --vers* | -V ) | |
9037 | echo "$ac_cs_version"; exit 0 ;; | |
9038 | --he | --h) | |
9039 | # Conflict between --help and --header | |
9040 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
9041 | Try \`$0 --help' for more information." >&5 | |
9042 | echo "$as_me: error: ambiguous option: $1 | |
9043 | Try \`$0 --help' for more information." >&2;} | |
9044 | { (exit 1); exit 1; }; };; | |
9045 | --help | --hel | -h ) | |
9046 | echo "$ac_cs_usage"; exit 0 ;; | |
9047 | --debug | --d* | -d ) | |
9048 | debug=: ;; | |
9049 | --file | --fil | --fi | --f ) | |
9050 | $ac_shift | |
9051 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
9052 | ac_need_defaults=false;; | |
9053 | --header | --heade | --head | --hea ) | |
9054 | $ac_shift | |
9055 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
9056 | ac_need_defaults=false;; | |
9057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
9058 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
9059 | ac_cs_silent=: ;; | |
9060 | ||
9061 | # This is an error. | |
9062 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
9063 | Try \`$0 --help' for more information." >&5 | |
9064 | echo "$as_me: error: unrecognized option: $1 | |
9065 | Try \`$0 --help' for more information." >&2;} | |
9066 | { (exit 1); exit 1; }; } ;; | |
9067 | ||
9068 | *) ac_config_targets="$ac_config_targets $1" ;; | |
9069 | ||
9070 | esac | |
9071 | shift | |
9072 | done | |
9073 | ||
9074 | ac_configure_extra_args= | |
9075 | ||
9076 | if $ac_cs_silent; then | |
9077 | exec 6>/dev/null | |
9078 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
9079 | fi | |
9080 | ||
9081 | _ACEOF | |
9082 | cat >>$CONFIG_STATUS <<_ACEOF | |
9083 | if \$ac_cs_recheck; then | |
9084 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
9085 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
9086 | fi | |
9087 | ||
9088 | _ACEOF | |
9089 | ||
9090 | cat >>$CONFIG_STATUS <<_ACEOF | |
d15b04bd | 9091 | # |
42ecbf5e | 9092 | # INIT-COMMANDS section. |
d15b04bd | 9093 | # |
e5a52504 | 9094 | |
42ecbf5e | 9095 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20e95c23 DJ |
9096 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
9097 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
9098 | # from automake. | |
9099 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
9100 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
9101 | LINGUAS="${LINGUAS-%UNSET%}" | |
9102 | ||
42ecbf5e DJ |
9103 | |
9104 | _ACEOF | |
9105 | ||
9106 | ||
9107 | ||
9108 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9109 | for ac_config_target in $ac_config_targets | |
252b5132 | 9110 | do |
42ecbf5e DJ |
9111 | case "$ac_config_target" in |
9112 | # Handling of arguments. | |
9113 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9114 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
9115 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
9116 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
20e95c23 | 9117 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
42ecbf5e DJ |
9118 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
9119 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
9120 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
9121 | { (exit 1); exit 1; }; };; | |
d15b04bd | 9122 | esac |
252b5132 RH |
9123 | done |
9124 | ||
42ecbf5e DJ |
9125 | # If the user did not use the arguments to specify the items to instantiate, |
9126 | # then the envvar interface is used. Set only those that are not. | |
9127 | # We use the long form for the default assignment because of an extremely | |
9128 | # bizarre bug on SunOS 4.1.3. | |
9129 | if $ac_need_defaults; then | |
9130 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9131 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9132 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
9133 | fi | |
9134 | ||
9135 | # Have a temporary directory for convenience. Make it in the build tree | |
9136 | # simply because there is no reason to put it here, and in addition, | |
9137 | # creating and moving files from /tmp can sometimes cause problems. | |
9138 | # Create a temporary directory, and hook for its removal unless debugging. | |
9139 | $debug || | |
9140 | { | |
9141 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
9142 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
9143 | } | |
252b5132 | 9144 | |
42ecbf5e | 9145 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 9146 | |
42ecbf5e DJ |
9147 | { |
9148 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
9149 | test -n "$tmp" && test -d "$tmp" | |
9150 | } || | |
9151 | { | |
9152 | tmp=./confstat$$-$RANDOM | |
9153 | (umask 077 && mkdir $tmp) | |
9154 | } || | |
9155 | { | |
9156 | echo "$me: cannot create a temporary directory in ." >&2 | |
9157 | { (exit 1); exit 1; } | |
9158 | } | |
9159 | ||
9160 | _ACEOF | |
9161 | ||
9162 | cat >>$CONFIG_STATUS <<_ACEOF | |
9163 | ||
9164 | # | |
9165 | # CONFIG_FILES section. | |
9166 | # | |
e5a52504 | 9167 | |
42ecbf5e DJ |
9168 | # No need to generate the scripts if there are no CONFIG_FILES. |
9169 | # This happens for instance when ./config.status config.h | |
9170 | if test -n "\$CONFIG_FILES"; then | |
9171 | # Protect against being on the right side of a sed subst in config.status. | |
9172 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
9173 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
9174 | s,@SHELL@,$SHELL,;t t | |
9175 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
9176 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
9177 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
9178 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
9179 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
9180 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
9181 | s,@exec_prefix@,$exec_prefix,;t t | |
9182 | s,@prefix@,$prefix,;t t | |
9183 | s,@program_transform_name@,$program_transform_name,;t t | |
9184 | s,@bindir@,$bindir,;t t | |
9185 | s,@sbindir@,$sbindir,;t t | |
9186 | s,@libexecdir@,$libexecdir,;t t | |
9187 | s,@datadir@,$datadir,;t t | |
9188 | s,@sysconfdir@,$sysconfdir,;t t | |
9189 | s,@sharedstatedir@,$sharedstatedir,;t t | |
9190 | s,@localstatedir@,$localstatedir,;t t | |
9191 | s,@libdir@,$libdir,;t t | |
9192 | s,@includedir@,$includedir,;t t | |
9193 | s,@oldincludedir@,$oldincludedir,;t t | |
9194 | s,@infodir@,$infodir,;t t | |
9195 | s,@mandir@,$mandir,;t t | |
9196 | s,@build_alias@,$build_alias,;t t | |
9197 | s,@host_alias@,$host_alias,;t t | |
9198 | s,@target_alias@,$target_alias,;t t | |
9199 | s,@DEFS@,$DEFS,;t t | |
9200 | s,@ECHO_C@,$ECHO_C,;t t | |
9201 | s,@ECHO_N@,$ECHO_N,;t t | |
9202 | s,@ECHO_T@,$ECHO_T,;t t | |
9203 | s,@LIBS@,$LIBS,;t t | |
9204 | s,@build@,$build,;t t | |
9205 | s,@build_cpu@,$build_cpu,;t t | |
9206 | s,@build_vendor@,$build_vendor,;t t | |
9207 | s,@build_os@,$build_os,;t t | |
9208 | s,@host@,$host,;t t | |
9209 | s,@host_cpu@,$host_cpu,;t t | |
9210 | s,@host_vendor@,$host_vendor,;t t | |
9211 | s,@host_os@,$host_os,;t t | |
9212 | s,@target@,$target,;t t | |
9213 | s,@target_cpu@,$target_cpu,;t t | |
9214 | s,@target_vendor@,$target_vendor,;t t | |
9215 | s,@target_os@,$target_os,;t t | |
9216 | s,@CC@,$CC,;t t | |
9217 | s,@CFLAGS@,$CFLAGS,;t t | |
9218 | s,@LDFLAGS@,$LDFLAGS,;t t | |
9219 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
9220 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
9221 | s,@EXEEXT@,$EXEEXT,;t t | |
9222 | s,@OBJEXT@,$OBJEXT,;t t | |
9223 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
9224 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
9225 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
9226 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
9227 | s,@PACKAGE@,$PACKAGE,;t t | |
9228 | s,@VERSION@,$VERSION,;t t | |
9229 | s,@ACLOCAL@,$ACLOCAL,;t t | |
9230 | s,@AUTOCONF@,$AUTOCONF,;t t | |
9231 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
9232 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
9233 | s,@MAKEINFO@,$MAKEINFO,;t t | |
9234 | s,@install_sh@,$install_sh,;t t | |
9235 | s,@STRIP@,$STRIP,;t t | |
9236 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
9237 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
9238 | s,@mkdir_p@,$mkdir_p,;t t | |
9239 | s,@AWK@,$AWK,;t t | |
9240 | s,@SET_MAKE@,$SET_MAKE,;t t | |
9241 | s,@am__leading_dot@,$am__leading_dot,;t t | |
9242 | s,@AMTAR@,$AMTAR,;t t | |
9243 | s,@am__tar@,$am__tar,;t t | |
9244 | s,@am__untar@,$am__untar,;t t | |
9245 | s,@DEPDIR@,$DEPDIR,;t t | |
9246 | s,@am__include@,$am__include,;t t | |
9247 | s,@am__quote@,$am__quote,;t t | |
9248 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
9249 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
9250 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
9251 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
9252 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
9253 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
9254 | s,@LN_S@,$LN_S,;t t | |
9255 | s,@RANLIB@,$RANLIB,;t t | |
9256 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9257 | s,@LIBTOOL@,$LIBTOOL,;t t | |
9258 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9259 | s,@NO_WERROR@,$NO_WERROR,;t t | |
9260 | s,@YACC@,$YACC,;t t | |
9261 | s,@LEX@,$LEX,;t t | |
9262 | s,@LEXLIB@,$LEXLIB,;t t | |
9263 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
42ecbf5e | 9264 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
9265 | s,@LIBINTL@,$LIBINTL,;t t |
9266 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
9267 | s,@INCINTL@,$INCINTL,;t t | |
42ecbf5e | 9268 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
9269 | s,@GMSGFMT@,$GMSGFMT,;t t |
9270 | s,@POSUB@,$POSUB,;t t | |
42ecbf5e | 9271 | s,@CATALOGS@,$CATALOGS,;t t |
42ecbf5e | 9272 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
42ecbf5e | 9273 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
9274 | s,@GENCAT@,$GENCAT,;t t |
9275 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
42ecbf5e | 9276 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
9277 | s,@MSGFMT@,$MSGFMT,;t t |
9278 | s,@MSGMERGE@,$MSGMERGE,;t t | |
42ecbf5e DJ |
9279 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
9280 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
9281 | s,@MAINT@,$MAINT,;t t | |
9282 | s,@HDEFINES@,$HDEFINES,;t t | |
9283 | s,@AR@,$AR,;t t | |
9284 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
9285 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
9286 | s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t | |
20e95c23 DJ |
9287 | s,@CPP@,$CPP,;t t |
9288 | s,@EGREP@,$EGREP,;t t | |
9289 | s,@ALLOCA@,$ALLOCA,;t t | |
42ecbf5e DJ |
9290 | s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t |
9291 | s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t | |
9292 | s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t | |
9293 | s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t | |
9294 | s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t | |
9295 | s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t | |
9296 | s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t | |
9297 | s,@BUILD_MISC@,$BUILD_MISC,;t t | |
9298 | s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t | |
9299 | s,@EMULATION@,$EMULATION,;t t | |
9300 | s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t | |
108a6f8e CD |
9301 | s,@datarootdir@,$datarootdir,;t t |
9302 | s,@docdir@,$docdir,;t t | |
9303 | s,@htmldir@,$htmldir,;t t | |
42ecbf5e DJ |
9304 | s,@LIBOBJS@,$LIBOBJS,;t t |
9305 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
d15b04bd | 9306 | CEOF |
252b5132 | 9307 | |
42ecbf5e DJ |
9308 | _ACEOF |
9309 | ||
9310 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9311 | # Split the substitutions into bite-sized pieces for seds with | |
9312 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9313 | ac_max_sed_lines=48 | |
9314 | ac_sed_frag=1 # Number of current file. | |
9315 | ac_beg=1 # First line for current file. | |
9316 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
9317 | ac_more_lines=: | |
9318 | ac_sed_cmds= | |
9319 | while $ac_more_lines; do | |
9320 | if test $ac_beg -gt 1; then | |
9321 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9322 | else | |
9323 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9324 | fi | |
9325 | if test ! -s $tmp/subs.frag; then | |
9326 | ac_more_lines=false | |
d15b04bd | 9327 | else |
42ecbf5e DJ |
9328 | # The purpose of the label and of the branching condition is to |
9329 | # speed up the sed processing (if there are no `@' at all, there | |
9330 | # is no need to browse any of the substitutions). | |
9331 | # These are the two extra sed commands mentioned above. | |
9332 | (echo ':t | |
9333 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
9334 | if test -z "$ac_sed_cmds"; then | |
9335 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
9336 | else | |
9337 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
9338 | fi | |
9339 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
9340 | ac_beg=$ac_end | |
9341 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
d15b04bd | 9342 | fi |
42ecbf5e DJ |
9343 | done |
9344 | if test -z "$ac_sed_cmds"; then | |
9345 | ac_sed_cmds=cat | |
252b5132 | 9346 | fi |
42ecbf5e | 9347 | fi # test -n "$CONFIG_FILES" |
252b5132 | 9348 | |
42ecbf5e DJ |
9349 | _ACEOF |
9350 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9351 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
e5a52504 | 9352 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
9353 | case $ac_file in |
9354 | - | *:- | *:-:* ) # input from stdin | |
9355 | cat >$tmp/stdin | |
9356 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9357 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9358 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9359 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9360 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
9361 | esac |
9362 | ||
42ecbf5e DJ |
9363 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
9364 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9365 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9366 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9367 | X"$ac_file" : 'X\(//\)$' \| \ | |
9368 | X"$ac_file" : 'X\(/\)' \| \ | |
9369 | . : '\(.\)' 2>/dev/null || | |
9370 | echo X"$ac_file" | | |
9371 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9372 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9373 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9374 | /^X\(\/\).*/{ s//\1/; q; } | |
9375 | s/.*/./; q'` | |
9376 | { if $as_mkdir_p; then | |
9377 | mkdir -p "$ac_dir" | |
d15b04bd | 9378 | else |
42ecbf5e DJ |
9379 | as_dir="$ac_dir" |
9380 | as_dirs= | |
9381 | while test ! -d "$as_dir"; do | |
9382 | as_dirs="$as_dir $as_dirs" | |
9383 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9384 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9385 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9386 | X"$as_dir" : 'X\(//\)$' \| \ | |
9387 | X"$as_dir" : 'X\(/\)' \| \ | |
9388 | . : '\(.\)' 2>/dev/null || | |
9389 | echo X"$as_dir" | | |
9390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9391 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9392 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9393 | /^X\(\/\).*/{ s//\1/; q; } | |
9394 | s/.*/./; q'` | |
9395 | done | |
9396 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9397 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9398 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9399 | { (exit 1); exit 1; }; }; } | |
9400 | ||
9401 | ac_builddir=. | |
e5a52504 | 9402 | |
42ecbf5e DJ |
9403 | if test "$ac_dir" != .; then |
9404 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9405 | # A "../" for each directory in $ac_dir_suffix. | |
9406 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9407 | else | |
9408 | ac_dir_suffix= ac_top_builddir= | |
9409 | fi | |
9410 | ||
9411 | case $srcdir in | |
9412 | .) # No --srcdir option. We are building in place. | |
9413 | ac_srcdir=. | |
9414 | if test -z "$ac_top_builddir"; then | |
9415 | ac_top_srcdir=. | |
9416 | else | |
9417 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9418 | fi ;; | |
9419 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9420 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9421 | ac_top_srcdir=$srcdir ;; | |
e5a52504 | 9422 | *) # Relative path. |
42ecbf5e DJ |
9423 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
9424 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9425 | esac | |
252b5132 | 9426 | |
42ecbf5e DJ |
9427 | # Do not use `cd foo && pwd` to compute absolute paths, because |
9428 | # the directories may not exist. | |
9429 | case `pwd` in | |
9430 | .) ac_abs_builddir="$ac_dir";; | |
9431 | *) | |
9432 | case "$ac_dir" in | |
9433 | .) ac_abs_builddir=`pwd`;; | |
9434 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9435 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9436 | esac;; | |
9437 | esac | |
9438 | case $ac_abs_builddir in | |
9439 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9440 | *) | |
9441 | case ${ac_top_builddir}. in | |
9442 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9443 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9444 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9445 | esac;; | |
9446 | esac | |
9447 | case $ac_abs_builddir in | |
9448 | .) ac_abs_srcdir=$ac_srcdir;; | |
9449 | *) | |
9450 | case $ac_srcdir in | |
9451 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9452 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9453 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9454 | esac;; | |
9455 | esac | |
9456 | case $ac_abs_builddir in | |
9457 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9458 | *) | |
9459 | case $ac_top_srcdir in | |
9460 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9461 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9462 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9463 | esac;; | |
9464 | esac | |
e5a52504 | 9465 | |
42ecbf5e DJ |
9466 | |
9467 | case $INSTALL in | |
9468 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
9469 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
d15b04bd | 9470 | esac |
e5a52504 | 9471 | |
b7d4af3a JW |
9472 | if test x"$ac_file" != x-; then |
9473 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9474 | echo "$as_me: creating $ac_file" >&6;} | |
9475 | rm -f "$ac_file" | |
9476 | fi | |
42ecbf5e DJ |
9477 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
9478 | # use $as_me), people would be surprised to read: | |
9479 | # /* config.h. Generated by config.status. */ | |
9480 | if test x"$ac_file" = x-; then | |
9481 | configure_input= | |
9482 | else | |
9483 | configure_input="$ac_file. " | |
9484 | fi | |
9485 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
9486 | sed 's,.*/,,'` by configure." | |
9487 | ||
9488 | # First look for the input files in the build tree, otherwise in the | |
9489 | # src tree. | |
9490 | ac_file_inputs=`IFS=: | |
9491 | for f in $ac_file_in; do | |
9492 | case $f in | |
9493 | -) echo $tmp/stdin ;; | |
9494 | [\\/$]*) | |
9495 | # Absolute (can't be DOS-style, as IFS=:) | |
9496 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9497 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9498 | { (exit 1); exit 1; }; } | |
9499 | echo "$f";; | |
9500 | *) # Relative | |
9501 | if test -f "$f"; then | |
9502 | # Build tree | |
9503 | echo "$f" | |
9504 | elif test -f "$srcdir/$f"; then | |
9505 | # Source tree | |
9506 | echo "$srcdir/$f" | |
9507 | else | |
9508 | # /dev/null tree | |
9509 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9510 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9511 | { (exit 1); exit 1; }; } | |
9512 | fi;; | |
9513 | esac | |
9514 | done` || { (exit 1); exit 1; } | |
42ecbf5e DJ |
9515 | _ACEOF |
9516 | cat >>$CONFIG_STATUS <<_ACEOF | |
9517 | sed "$ac_vpsub | |
9518 | $extrasub | |
9519 | _ACEOF | |
9520 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9521 | :t | |
9522 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
9523 | s,@configure_input@,$configure_input,;t t | |
9524 | s,@srcdir@,$ac_srcdir,;t t | |
9525 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
9526 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
9527 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
9528 | s,@builddir@,$ac_builddir,;t t | |
9529 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
9530 | s,@top_builddir@,$ac_top_builddir,;t t | |
9531 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
9532 | s,@INSTALL@,$ac_INSTALL,;t t | |
9533 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
9534 | rm -f $tmp/stdin | |
9535 | if test x"$ac_file" != x-; then | |
9536 | mv $tmp/out $ac_file | |
9537 | else | |
9538 | cat $tmp/out | |
9539 | rm -f $tmp/out | |
9540 | fi | |
9541 | ||
9542 | done | |
9543 | _ACEOF | |
9544 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9545 | ||
9546 | # | |
9547 | # CONFIG_HEADER section. | |
9548 | # | |
252b5132 RH |
9549 | |
9550 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9551 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9552 | # | |
9553 | # ac_d sets the value in "#define NAME VALUE" lines. | |
42ecbf5e DJ |
9554 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
9555 | ac_dB='[ ].*$,\1#\2' | |
9556 | ac_dC=' ' | |
9557 | ac_dD=',;t' | |
9558 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9559 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9560 | ac_uB='$,\1#\2define\3' | |
252b5132 | 9561 | ac_uC=' ' |
42ecbf5e DJ |
9562 | ac_uD=',;t' |
9563 | ||
9564 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 9565 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
9566 | case $ac_file in |
9567 | - | *:- | *:-:* ) # input from stdin | |
9568 | cat >$tmp/stdin | |
9569 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9570 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9571 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9572 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9573 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
9574 | esac |
9575 | ||
42ecbf5e DJ |
9576 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9577 | echo "$as_me: creating $ac_file" >&6;} | |
9578 | ||
9579 | # First look for the input files in the build tree, otherwise in the | |
9580 | # src tree. | |
9581 | ac_file_inputs=`IFS=: | |
9582 | for f in $ac_file_in; do | |
9583 | case $f in | |
9584 | -) echo $tmp/stdin ;; | |
9585 | [\\/$]*) | |
9586 | # Absolute (can't be DOS-style, as IFS=:) | |
9587 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9588 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9589 | { (exit 1); exit 1; }; } | |
9590 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
9591 | echo "$f";; | |
9592 | *) # Relative | |
9593 | if test -f "$f"; then | |
9594 | # Build tree | |
9595 | echo "$f" | |
9596 | elif test -f "$srcdir/$f"; then | |
9597 | # Source tree | |
9598 | echo "$srcdir/$f" | |
9599 | else | |
9600 | # /dev/null tree | |
9601 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9602 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9603 | { (exit 1); exit 1; }; } | |
9604 | fi;; | |
9605 | esac | |
9606 | done` || { (exit 1); exit 1; } | |
9607 | # Remove the trailing spaces. | |
9608 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
9609 | ||
9610 | _ACEOF | |
9611 | ||
9612 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
9613 | # `conftest.undefs', that substitutes the proper values into | |
9614 | # config.h.in to produce config.h. The first handles `#define' | |
9615 | # templates, and the second `#undef' templates. | |
9616 | # And first: Protect against being on the right side of a sed subst in | |
9617 | # config.status. Protect against being in an unquoted here document | |
9618 | # in config.status. | |
9619 | rm -f conftest.defines conftest.undefs | |
9620 | # Using a here document instead of a string reduces the quoting nightmare. | |
9621 | # Putting comments in sed scripts is not portable. | |
9622 | # | |
9623 | # `end' is used to avoid that the second main sed command (meant for | |
9624 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
9625 | # See the Autoconf documentation for `clear'. | |
9626 | cat >confdef2sed.sed <<\_ACEOF | |
9627 | s/[\\&,]/\\&/g | |
9628 | s,[\\$`],\\&,g | |
9629 | t clear | |
9630 | : clear | |
9631 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
9632 | t end | |
9633 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9634 | : end | |
9635 | _ACEOF | |
9636 | # If some macros were called several times there might be several times | |
9637 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9638 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9639 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9640 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9641 | rm -f confdef2sed.sed | |
252b5132 RH |
9642 | |
9643 | # This sed command replaces #undef with comments. This is necessary, for | |
9644 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9645 | # on some systems where configure will not decide to define it. | |
42ecbf5e DJ |
9646 | cat >>conftest.undefs <<\_ACEOF |
9647 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
9648 | _ACEOF | |
9649 | ||
9650 | # Break up conftest.defines because some shells have a limit on the size | |
9651 | # of here documents, and old seds have small limits too (100 cmds). | |
9652 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9653 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9654 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9655 | echo ' :' >>$CONFIG_STATUS | |
9656 | rm -f conftest.tail | |
9657 | while grep . conftest.defines >/dev/null | |
9658 | do | |
9659 | # Write a limited-size here document to $tmp/defines.sed. | |
9660 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9661 | # Speed up: don't consider the non `#define' lines. | |
9662 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9663 | # Work around the forget-to-reset-the-flag bug. | |
9664 | echo 't clr' >>$CONFIG_STATUS | |
9665 | echo ': clr' >>$CONFIG_STATUS | |
9666 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9667 | echo 'CEOF | |
9668 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9669 | rm -f $tmp/in | |
9670 | mv $tmp/out $tmp/in | |
9671 | ' >>$CONFIG_STATUS | |
9672 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9673 | rm -f conftest.defines | |
9674 | mv conftest.tail conftest.defines | |
9675 | done | |
9676 | rm -f conftest.defines | |
9677 | echo ' fi # grep' >>$CONFIG_STATUS | |
9678 | echo >>$CONFIG_STATUS | |
252b5132 | 9679 | |
42ecbf5e DJ |
9680 | # Break up conftest.undefs because some shells have a limit on the size |
9681 | # of here documents, and old seds have small limits too (100 cmds). | |
9682 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 9683 | rm -f conftest.tail |
42ecbf5e | 9684 | while grep . conftest.undefs >/dev/null |
252b5132 | 9685 | do |
42ecbf5e DJ |
9686 | # Write a limited-size here document to $tmp/undefs.sed. |
9687 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9688 | # Speed up: don't consider the non `#undef' | |
9689 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9690 | # Work around the forget-to-reset-the-flag bug. | |
9691 | echo 't clr' >>$CONFIG_STATUS | |
9692 | echo ': clr' >>$CONFIG_STATUS | |
9693 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 9694 | echo 'CEOF |
42ecbf5e DJ |
9695 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
9696 | rm -f $tmp/in | |
9697 | mv $tmp/out $tmp/in | |
9698 | ' >>$CONFIG_STATUS | |
9699 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9700 | rm -f conftest.undefs | |
9701 | mv conftest.tail conftest.undefs | |
252b5132 | 9702 | done |
42ecbf5e DJ |
9703 | rm -f conftest.undefs |
9704 | ||
9705 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9706 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9707 | # use $as_me), people would be surprised to read: | |
9708 | # /* config.h. Generated by config.status. */ | |
9709 | if test x"$ac_file" = x-; then | |
9710 | echo "/* Generated by configure. */" >$tmp/config.h | |
9711 | else | |
9712 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
9713 | fi | |
9714 | cat $tmp/in >>$tmp/config.h | |
9715 | rm -f $tmp/in | |
9716 | if test x"$ac_file" != x-; then | |
9717 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
9718 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9719 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9720 | else | |
9721 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9722 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9723 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9724 | X"$ac_file" : 'X\(//\)$' \| \ | |
9725 | X"$ac_file" : 'X\(/\)' \| \ | |
9726 | . : '\(.\)' 2>/dev/null || | |
9727 | echo X"$ac_file" | | |
9728 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9729 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9730 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9731 | /^X\(\/\).*/{ s//\1/; q; } | |
9732 | s/.*/./; q'` | |
9733 | { if $as_mkdir_p; then | |
9734 | mkdir -p "$ac_dir" | |
252b5132 | 9735 | else |
42ecbf5e DJ |
9736 | as_dir="$ac_dir" |
9737 | as_dirs= | |
9738 | while test ! -d "$as_dir"; do | |
9739 | as_dirs="$as_dir $as_dirs" | |
9740 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9741 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9742 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9743 | X"$as_dir" : 'X\(//\)$' \| \ | |
9744 | X"$as_dir" : 'X\(/\)' \| \ | |
9745 | . : '\(.\)' 2>/dev/null || | |
9746 | echo X"$as_dir" | | |
9747 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9748 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9749 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9750 | /^X\(\/\).*/{ s//\1/; q; } | |
9751 | s/.*/./; q'` | |
9752 | done | |
9753 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9754 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9755 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9756 | { (exit 1); exit 1; }; }; } | |
9757 | ||
9758 | rm -f $ac_file | |
9759 | mv $tmp/config.h $ac_file | |
252b5132 | 9760 | fi |
42ecbf5e DJ |
9761 | else |
9762 | cat $tmp/config.h | |
9763 | rm -f $tmp/config.h | |
252b5132 | 9764 | fi |
42ecbf5e DJ |
9765 | # Compute $ac_file's index in $config_headers. |
9766 | _am_stamp_count=1 | |
9767 | for _am_header in $config_headers :; do | |
9768 | case $_am_header in | |
9769 | $ac_file | $ac_file:* ) | |
9770 | break ;; | |
9771 | * ) | |
9772 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9773 | esac | |
9774 | done | |
9775 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
9776 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9777 | X$ac_file : 'X\(//\)[^/]' \| \ | |
9778 | X$ac_file : 'X\(//\)$' \| \ | |
9779 | X$ac_file : 'X\(/\)' \| \ | |
9780 | . : '\(.\)' 2>/dev/null || | |
9781 | echo X$ac_file | | |
9782 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9783 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9784 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9785 | /^X\(\/\).*/{ s//\1/; q; } | |
9786 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9787 | done | |
9788 | _ACEOF | |
9789 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 9790 | |
42ecbf5e DJ |
9791 | # |
9792 | # CONFIG_COMMANDS section. | |
9793 | # | |
9794 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
9795 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9796 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9797 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
9798 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9799 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
9800 | X"$ac_dest" : 'X\(//\)$' \| \ | |
9801 | X"$ac_dest" : 'X\(/\)' \| \ | |
9802 | . : '\(.\)' 2>/dev/null || | |
9803 | echo X"$ac_dest" | | |
9804 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9805 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9806 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9807 | /^X\(\/\).*/{ s//\1/; q; } | |
9808 | s/.*/./; q'` | |
9809 | { if $as_mkdir_p; then | |
9810 | mkdir -p "$ac_dir" | |
9811 | else | |
9812 | as_dir="$ac_dir" | |
9813 | as_dirs= | |
9814 | while test ! -d "$as_dir"; do | |
9815 | as_dirs="$as_dir $as_dirs" | |
9816 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9817 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9818 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9819 | X"$as_dir" : 'X\(//\)$' \| \ | |
9820 | X"$as_dir" : 'X\(/\)' \| \ | |
9821 | . : '\(.\)' 2>/dev/null || | |
9822 | echo X"$as_dir" | | |
9823 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9824 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9825 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9826 | /^X\(\/\).*/{ s//\1/; q; } | |
9827 | s/.*/./; q'` | |
9828 | done | |
9829 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9830 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9831 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9832 | { (exit 1); exit 1; }; }; } | |
252b5132 | 9833 | |
42ecbf5e | 9834 | ac_builddir=. |
e5a52504 | 9835 | |
42ecbf5e DJ |
9836 | if test "$ac_dir" != .; then |
9837 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9838 | # A "../" for each directory in $ac_dir_suffix. | |
9839 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9840 | else | |
9841 | ac_dir_suffix= ac_top_builddir= | |
9842 | fi | |
9843 | ||
9844 | case $srcdir in | |
9845 | .) # No --srcdir option. We are building in place. | |
9846 | ac_srcdir=. | |
9847 | if test -z "$ac_top_builddir"; then | |
9848 | ac_top_srcdir=. | |
9849 | else | |
9850 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9851 | fi ;; | |
9852 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9853 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9854 | ac_top_srcdir=$srcdir ;; | |
9855 | *) # Relative path. | |
9856 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9857 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9858 | esac | |
9859 | ||
9860 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9861 | # the directories may not exist. | |
9862 | case `pwd` in | |
9863 | .) ac_abs_builddir="$ac_dir";; | |
9864 | *) | |
9865 | case "$ac_dir" in | |
9866 | .) ac_abs_builddir=`pwd`;; | |
9867 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9868 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9869 | esac;; | |
9870 | esac | |
9871 | case $ac_abs_builddir in | |
9872 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9873 | *) | |
9874 | case ${ac_top_builddir}. in | |
9875 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9876 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9877 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9878 | esac;; | |
9879 | esac | |
9880 | case $ac_abs_builddir in | |
9881 | .) ac_abs_srcdir=$ac_srcdir;; | |
9882 | *) | |
9883 | case $ac_srcdir in | |
9884 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9885 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9886 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9887 | esac;; | |
9888 | esac | |
9889 | case $ac_abs_builddir in | |
9890 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9891 | *) | |
9892 | case $ac_top_srcdir in | |
9893 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9894 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9895 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9896 | esac;; | |
9897 | esac | |
e5a52504 | 9898 | |
42ecbf5e DJ |
9899 | |
9900 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
9901 | echo "$as_me: executing $ac_dest commands" >&6;} | |
9902 | case $ac_dest in | |
9903 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
9904 | # Strip MF so we end up with the name of the file. | |
9905 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9906 | # Check whether this is an Automake generated Makefile or not. | |
9907 | # We used to match only the files named `Makefile.in', but | |
9908 | # some people rename them; so instead we look at the file content. | |
9909 | # Grep'ing the first line is not enough: some people post-process | |
9910 | # each Makefile.in and add a new line on top of each file to say so. | |
9911 | # So let's grep whole file. | |
9912 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
9913 | dirpart=`(dirname "$mf") 2>/dev/null || | |
9914 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9915 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9916 | X"$mf" : 'X\(//\)$' \| \ | |
9917 | X"$mf" : 'X\(/\)' \| \ | |
9918 | . : '\(.\)' 2>/dev/null || | |
9919 | echo X"$mf" | | |
9920 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9921 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9922 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9923 | /^X\(\/\).*/{ s//\1/; q; } | |
9924 | s/.*/./; q'` | |
9925 | else | |
9926 | continue | |
9927 | fi | |
9928 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9929 | # from the Makefile without running `make'. | |
9930 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9931 | test -z "$DEPDIR" && continue | |
9932 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9933 | test -z "am__include" && continue | |
9934 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9935 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9936 | U=`sed -n 's/^U = //p' < "$mf"` | |
9937 | # Find all dependency output files, they are included files with | |
9938 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9939 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9940 | # expansion. | |
9941 | for file in `sed -n " | |
9942 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9943 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9944 | # Make sure the directory exists. | |
9945 | test -f "$dirpart/$file" && continue | |
9946 | fdir=`(dirname "$file") 2>/dev/null || | |
9947 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9948 | X"$file" : 'X\(//\)[^/]' \| \ | |
9949 | X"$file" : 'X\(//\)$' \| \ | |
9950 | X"$file" : 'X\(/\)' \| \ | |
9951 | . : '\(.\)' 2>/dev/null || | |
9952 | echo X"$file" | | |
9953 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9954 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9955 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9956 | /^X\(\/\).*/{ s//\1/; q; } | |
9957 | s/.*/./; q'` | |
9958 | { if $as_mkdir_p; then | |
9959 | mkdir -p $dirpart/$fdir | |
9960 | else | |
9961 | as_dir=$dirpart/$fdir | |
9962 | as_dirs= | |
9963 | while test ! -d "$as_dir"; do | |
9964 | as_dirs="$as_dir $as_dirs" | |
9965 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9966 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9967 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9968 | X"$as_dir" : 'X\(//\)$' \| \ | |
9969 | X"$as_dir" : 'X\(/\)' \| \ | |
9970 | . : '\(.\)' 2>/dev/null || | |
9971 | echo X"$as_dir" | | |
9972 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9973 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9974 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9975 | /^X\(\/\).*/{ s//\1/; q; } | |
9976 | s/.*/./; q'` | |
9977 | done | |
9978 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9979 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
9980 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
9981 | { (exit 1); exit 1; }; }; } | |
9982 | ||
9983 | # echo "creating $dirpart/$file" | |
9984 | echo '# dummy' > "$dirpart/$file" | |
9985 | done | |
9986 | done | |
9987 | ;; | |
20e95c23 DJ |
9988 | default-1 ) |
9989 | for ac_file in $CONFIG_FILES; do | |
9990 | # Support "outfile[:infile[:infile...]]" | |
9991 | case "$ac_file" in | |
9992 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9993 | esac | |
9994 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
9995 | case "$ac_file" in */Makefile.in) | |
9996 | # Adjust a relative srcdir. | |
9997 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
9998 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
9999 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
10000 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
10001 | # In autoconf-2.50 it is called $srcdir. | |
10002 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
10003 | case "$ac_given_srcdir" in | |
10004 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
10005 | /*) top_srcdir="$ac_given_srcdir" ;; | |
10006 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10007 | esac | |
10008 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
10009 | rm -f "$ac_dir/POTFILES" | |
10010 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
10011 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
10012 | POMAKEFILEDEPS="POTFILES.in" | |
10013 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
10014 | # on $ac_dir but don't depend on user-specified configuration | |
10015 | # parameters. | |
10016 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
10017 | # The LINGUAS file contains the set of available languages. | |
10018 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
10019 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
10020 | fi | |
10021 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
10022 | # Hide the ALL_LINGUAS assigment from automake. | |
10023 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
10024 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
10025 | else | |
10026 | # The set of available languages was given in configure.in. | |
10027 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
10028 | fi | |
10029 | case "$ac_given_srcdir" in | |
10030 | .) srcdirpre= ;; | |
10031 | *) srcdirpre='$(srcdir)/' ;; | |
10032 | esac | |
10033 | POFILES= | |
10034 | GMOFILES= | |
10035 | UPDATEPOFILES= | |
10036 | DUMMYPOFILES= | |
10037 | for lang in $ALL_LINGUAS; do | |
10038 | POFILES="$POFILES $srcdirpre$lang.po" | |
10039 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
10040 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
10041 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
10042 | done | |
10043 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
10044 | # environment variable. | |
10045 | INST_LINGUAS= | |
10046 | if test -n "$ALL_LINGUAS"; then | |
10047 | for presentlang in $ALL_LINGUAS; do | |
10048 | useit=no | |
10049 | if test "%UNSET%" != "$LINGUAS"; then | |
10050 | desiredlanguages="$LINGUAS" | |
10051 | else | |
10052 | desiredlanguages="$ALL_LINGUAS" | |
10053 | fi | |
10054 | for desiredlang in $desiredlanguages; do | |
10055 | # Use the presentlang catalog if desiredlang is | |
10056 | # a. equal to presentlang, or | |
10057 | # b. a variant of presentlang (because in this case, | |
10058 | # presentlang can be used as a fallback for messages | |
10059 | # which are not translated in the desiredlang catalog). | |
10060 | case "$desiredlang" in | |
10061 | "$presentlang"*) useit=yes;; | |
10062 | esac | |
10063 | done | |
10064 | if test $useit = yes; then | |
10065 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
10066 | fi | |
10067 | done | |
10068 | fi | |
10069 | CATALOGS= | |
10070 | if test -n "$INST_LINGUAS"; then | |
10071 | for lang in $INST_LINGUAS; do | |
10072 | CATALOGS="$CATALOGS $lang.gmo" | |
10073 | done | |
10074 | fi | |
10075 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
10076 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
10077 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
10078 | if test -f "$f"; then | |
10079 | case "$f" in | |
10080 | *.orig | *.bak | *~) ;; | |
10081 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
10082 | esac | |
10083 | fi | |
10084 | done | |
10085 | fi | |
10086 | ;; | |
10087 | esac | |
10088 | done ;; | |
42ecbf5e DJ |
10089 | esac |
10090 | done | |
10091 | _ACEOF | |
e5a52504 | 10092 | |
42ecbf5e DJ |
10093 | cat >>$CONFIG_STATUS <<\_ACEOF |
10094 | ||
10095 | { (exit 0); exit 0; } | |
10096 | _ACEOF | |
252b5132 | 10097 | chmod +x $CONFIG_STATUS |
42ecbf5e DJ |
10098 | ac_clean_files=$ac_clean_files_save |
10099 | ||
10100 | ||
10101 | # configure is writing to config.log, and then calls config.status. | |
10102 | # config.status does its own redirection, appending to config.log. | |
10103 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10104 | # by configure, so config.status won't be able to write to it; its | |
10105 | # output is simply discarded. So we exec the FD to /dev/null, | |
10106 | # effectively closing config.log, so it can be properly (re)opened and | |
10107 | # appended to by config.status. When coming back to configure, we | |
10108 | # need to make the FD available again. | |
10109 | if test "$no_create" != yes; then | |
10110 | ac_cs_success=: | |
10111 | ac_config_status_args= | |
10112 | test "$silent" = yes && | |
10113 | ac_config_status_args="$ac_config_status_args --quiet" | |
10114 | exec 5>/dev/null | |
10115 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10116 | exec 5>>config.log | |
10117 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10118 | # would make configure fail if this is the last instruction. | |
10119 | $ac_cs_success || { (exit 1); exit 1; } | |
10120 | fi | |
252b5132 | 10121 |