Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
e5a52504 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
e5a52504 | 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. | |
e5a52504 MM |
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 | |
e5a52504 MM |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
e5a52504 MM |
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 | ||
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE LN_S RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR LIBOBJS LTLIBOBJS' | |
313 | ac_subst_files='' | |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
e5a52504 MM |
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. | |
e5a52504 | 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 | |
e5a52504 MM |
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 | ||
e5a52504 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
e5a52504 | 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=*) | |
e5a52504 | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
e5a52504 | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e5a52504 | 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=*) | |
e5a52504 MM |
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=*) | |
e5a52504 | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
e5a52504 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
e5a52504 MM |
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-*) | |
e5a52504 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
e5a52504 MM |
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 | |
e5a52504 | 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=*) | |
e5a52504 | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
e5a52504 MM |
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) | |
e5a52504 | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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 \ | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
e5a52504 | 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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e5a52504 | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e5a52504 | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
e5a52504 MM |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
e5a52504 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
e5a52504 MM |
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'` |
e5a52504 MM |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
e5a52504 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
e5a52504 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
e5a52504 MM |
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=*) | |
e5a52504 | 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=*) | |
e5a52504 | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
e5a52504 MM |
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 | ||
e5a52504 MM |
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 | *) |
e5a52504 MM |
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 | |
e5a52504 MM |
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 | ||
e5a52504 MM |
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 | |
e5a52504 MM |
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 |
e5a52504 MM |
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 | ||
e5a52504 MM |
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 | |
252b5132 | 698 | |
e5a52504 MM |
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. | |
e5a52504 MM |
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 | |
e5a52504 MM |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
e5a52504 MM |
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 | |
e5a52504 MM |
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 | |
e5a52504 MM |
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 | |
e5a52504 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
e5a52504 MM |
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 | |
e5a52504 | 788 | Defaults for the options are specified in brackets. |
ac48eca1 | 789 | |
e5a52504 MM |
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 | |
e5a52504 MM |
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 | |
e5a52504 | 815 | For better control, use the options below. |
ac48eca1 | 816 | |
e5a52504 MM |
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 | |
e5a52504 | 832 | cat <<\_ACEOF |
252b5132 | 833 | |
e5a52504 MM |
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 | |
e5a52504 MM |
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 | |
e5a52504 | 846 | if test -n "$ac_init_help"; then |
252b5132 | 847 | |
e5a52504 | 848 | cat <<\_ACEOF |
252b5132 | 849 | |
e5a52504 MM |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
853 | --enable-shared=PKGS build shared libraries default=yes | |
854 | --enable-static=PKGS build static libraries default=yes | |
855 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
856 | --disable-libtool-lock avoid locking (might break parallel builds) | |
857 | --enable-targets alternative target configurations | |
858 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
859 | --enable-build-warnings Enable build-time compiler warnings if gcc is used | |
860 | --disable-nls do not use Native Language Support | |
861 | --enable-maintainer-mode enable make rules and dependencies not useful | |
862 | (and sometimes confusing) to the casual installer | |
863 | ||
864 | Optional Packages: | |
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
867 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
868 | --with-pic try to use only PIC/non-PIC objects default=use both | |
869 | --with-included-gettext use the GNU gettext library included here | |
252b5132 | 870 | |
e5a52504 MM |
871 | Some influential environment variables: |
872 | CC C compiler command | |
873 | CFLAGS C compiler flags | |
874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
875 | nonstandard directory <lib dir> | |
876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
877 | headers in a nonstandard directory <include dir> | |
878 | CPP C preprocessor | |
252b5132 | 879 | |
e5a52504 MM |
880 | Use these variables to override the choices made by `configure' or to help |
881 | it to find libraries and programs with nonstandard names/locations. | |
882 | ||
883 | _ACEOF | |
252b5132 RH |
884 | fi |
885 | ||
e5a52504 MM |
886 | if test "$ac_init_help" = "recursive"; then |
887 | # If there are subdirs, report their specific --help. | |
888 | ac_popdir=`pwd` | |
889 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
890 | test -d $ac_dir || continue | |
891 | ac_builddir=. | |
252b5132 | 892 | |
e5a52504 MM |
893 | if test "$ac_dir" != .; then |
894 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
895 | # A "../" for each directory in $ac_dir_suffix. | |
896 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
897 | else | |
898 | ac_dir_suffix= ac_top_builddir= | |
899 | fi | |
900 | ||
901 | case $srcdir in | |
902 | .) # No --srcdir option. We are building in place. | |
903 | ac_srcdir=. | |
904 | if test -z "$ac_top_builddir"; then | |
905 | ac_top_srcdir=. | |
906 | else | |
907 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
252b5132 | 908 | fi ;; |
e5a52504 MM |
909 | [\\/]* | ?:[\\/]* ) # Absolute path. |
910 | ac_srcdir=$srcdir$ac_dir_suffix; | |
911 | ac_top_srcdir=$srcdir ;; | |
912 | *) # Relative path. | |
913 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
914 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
252b5132 RH |
915 | esac |
916 | ||
e5a52504 MM |
917 | # Do not use `cd foo && pwd` to compute absolute paths, because |
918 | # the directories may not exist. | |
919 | case `pwd` in | |
920 | .) ac_abs_builddir="$ac_dir";; | |
921 | *) | |
922 | case "$ac_dir" in | |
923 | .) ac_abs_builddir=`pwd`;; | |
924 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
925 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
926 | esac;; | |
252b5132 | 927 | esac |
e5a52504 MM |
928 | case $ac_abs_builddir in |
929 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
930 | *) | |
931 | case ${ac_top_builddir}. in | |
932 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
933 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
934 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
935 | esac;; | |
936 | esac | |
937 | case $ac_abs_builddir in | |
938 | .) ac_abs_srcdir=$ac_srcdir;; | |
939 | *) | |
940 | case $ac_srcdir in | |
941 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
942 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
943 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
944 | esac;; | |
945 | esac | |
946 | case $ac_abs_builddir in | |
947 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
948 | *) | |
949 | case $ac_top_srcdir in | |
950 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
951 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
952 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
953 | esac;; | |
252b5132 RH |
954 | esac |
955 | ||
e5a52504 MM |
956 | cd $ac_dir |
957 | # Check for guested configure; otherwise get Cygnus style configure. | |
958 | if test -f $ac_srcdir/configure.gnu; then | |
959 | echo | |
960 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
961 | elif test -f $ac_srcdir/configure; then | |
962 | echo | |
963 | $SHELL $ac_srcdir/configure --help=recursive | |
964 | elif test -f $ac_srcdir/configure.ac || | |
965 | test -f $ac_srcdir/configure.in; then | |
966 | echo | |
967 | $ac_configure --help | |
968 | else | |
969 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
970 | fi | |
971 | cd $ac_popdir | |
972 | done | |
973 | fi | |
252b5132 | 974 | |
e5a52504 MM |
975 | test -n "$ac_init_help" && exit 0 |
976 | if $ac_init_version; then | |
977 | cat <<\_ACEOF | |
252b5132 | 978 | |
e5a52504 MM |
979 | Copyright (C) 2003 Free Software Foundation, Inc. |
980 | This configure script is free software; the Free Software Foundation | |
981 | gives unlimited permission to copy, distribute and modify it. | |
982 | _ACEOF | |
983 | exit 0 | |
984 | fi | |
985 | exec 5>config.log | |
986 | cat >&5 <<_ACEOF | |
987 | This file contains any messages produced by compilers while | |
988 | running configure, to aid debugging if configure makes a mistake. | |
1ea788ee | 989 | |
e5a52504 MM |
990 | It was created by $as_me, which was |
991 | generated by GNU Autoconf 2.59. Invocation command line was | |
5d64ca4e | 992 | |
e5a52504 | 993 | $ $0 $@ |
5d64ca4e | 994 | |
e5a52504 MM |
995 | _ACEOF |
996 | { | |
997 | cat <<_ASUNAME | |
998 | ## --------- ## | |
999 | ## Platform. ## | |
1000 | ## --------- ## | |
1001 | ||
1002 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1003 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1004 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1005 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1006 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1007 | ||
1008 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1009 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1010 | ||
1011 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1012 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1013 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1014 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1015 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1016 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1017 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1018 | ||
1019 | _ASUNAME | |
1020 | ||
1021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1022 | for as_dir in $PATH | |
1023 | do | |
1024 | IFS=$as_save_IFS | |
1025 | test -z "$as_dir" && as_dir=. | |
1026 | echo "PATH: $as_dir" | |
1027 | done | |
5d64ca4e | 1028 | |
e5a52504 | 1029 | } >&5 |
1a09a22c | 1030 | |
e5a52504 | 1031 | cat >&5 <<_ACEOF |
252b5132 | 1032 | |
e5a52504 MM |
1033 | |
1034 | ## ----------- ## | |
1035 | ## Core tests. ## | |
1036 | ## ----------- ## | |
1037 | ||
1038 | _ACEOF | |
1039 | ||
1040 | ||
1041 | # Keep a trace of the command line. | |
1042 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1043 | # Strip out --silent because we don't want to record it for future runs. | |
1044 | # Also quote any args containing shell meta-characters. | |
1045 | # Make two passes to allow for proper duplicate-argument suppression. | |
1046 | ac_configure_args= | |
1047 | ac_configure_args0= | |
1048 | ac_configure_args1= | |
1049 | ac_sep= | |
1050 | ac_must_keep_next=false | |
1051 | for ac_pass in 1 2 | |
1052 | do | |
1053 | for ac_arg | |
1054 | do | |
1055 | case $ac_arg in | |
1056 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1058 | | -silent | --silent | --silen | --sile | --sil) | |
1059 | continue ;; | |
1060 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1061 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1062 | esac | |
1063 | case $ac_pass in | |
1064 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1065 | 2) | |
1066 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1067 | if test $ac_must_keep_next = true; then | |
1068 | ac_must_keep_next=false # Got value, back to normal. | |
1069 | else | |
1070 | case $ac_arg in | |
1071 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1072 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1073 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1074 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1075 | case "$ac_configure_args0 " in | |
1076 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1077 | esac | |
1078 | ;; | |
1079 | -* ) ac_must_keep_next=true ;; | |
1080 | esac | |
1081 | fi | |
1082 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1083 | # Get rid of the leading space. | |
1084 | ac_sep=" " | |
1085 | ;; | |
1086 | esac | |
1087 | done | |
1088 | done | |
1089 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1090 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1091 | ||
1092 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1093 | # config.log. We remove comments because anyway the quotes in there | |
1094 | # would cause problems or look ugly. | |
1095 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1096 | # such as our DU 5.0 friend, will then `close' the trap. | |
1097 | trap 'exit_status=$? | |
1098 | # Save into config.log some information that might help in debugging. | |
1099 | { | |
1100 | echo | |
1101 | ||
1102 | cat <<\_ASBOX | |
1103 | ## ---------------- ## | |
1104 | ## Cache variables. ## | |
1105 | ## ---------------- ## | |
1106 | _ASBOX | |
1107 | echo | |
1108 | # The following way of writing the cache mishandles newlines in values, | |
1109 | { | |
1110 | (set) 2>&1 | | |
1111 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1112 | *ac_space=\ *) | |
1113 | sed -n \ | |
1114 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1115 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1116 | ;; | |
1117 | *) | |
1118 | sed -n \ | |
1119 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1120 | ;; | |
1121 | esac; | |
1122 | } | |
1123 | echo | |
1124 | ||
1125 | cat <<\_ASBOX | |
1126 | ## ----------------- ## | |
1127 | ## Output variables. ## | |
1128 | ## ----------------- ## | |
1129 | _ASBOX | |
1130 | echo | |
1131 | for ac_var in $ac_subst_vars | |
1132 | do | |
1133 | eval ac_val=$`echo $ac_var` | |
1134 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1135 | done | sort | |
1136 | echo | |
1137 | ||
1138 | if test -n "$ac_subst_files"; then | |
1139 | cat <<\_ASBOX | |
1140 | ## ------------- ## | |
1141 | ## Output files. ## | |
1142 | ## ------------- ## | |
1143 | _ASBOX | |
1144 | echo | |
1145 | for ac_var in $ac_subst_files | |
1146 | do | |
1147 | eval ac_val=$`echo $ac_var` | |
1148 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1149 | done | sort | |
1150 | echo | |
1151 | fi | |
1152 | ||
1153 | if test -s confdefs.h; then | |
1154 | cat <<\_ASBOX | |
1155 | ## ----------- ## | |
1156 | ## confdefs.h. ## | |
1157 | ## ----------- ## | |
1158 | _ASBOX | |
1159 | echo | |
1160 | sed "/^$/d" confdefs.h | sort | |
1161 | echo | |
1162 | fi | |
1163 | test "$ac_signal" != 0 && | |
1164 | echo "$as_me: caught signal $ac_signal" | |
1165 | echo "$as_me: exit $exit_status" | |
1166 | } >&5 | |
1167 | rm -f core *.core && | |
1168 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1169 | exit $exit_status | |
1170 | ' 0 | |
1171 | for ac_signal in 1 2 13 15; do | |
1172 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1173 | done | |
1174 | ac_signal=0 | |
1175 | ||
1176 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1177 | rm -rf conftest* confdefs.h | |
1178 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1179 | echo >confdefs.h | |
1180 | ||
1181 | # Predefined preprocessor variables. | |
1182 | ||
1183 | cat >>confdefs.h <<_ACEOF | |
1184 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1185 | _ACEOF | |
1186 | ||
1187 | ||
1188 | cat >>confdefs.h <<_ACEOF | |
1189 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1190 | _ACEOF | |
1191 | ||
1192 | ||
1193 | cat >>confdefs.h <<_ACEOF | |
1194 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1195 | _ACEOF | |
1196 | ||
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | # Let the site file select an alternate cache file if it wants to. | |
1209 | # Prefer explicitly selected file to automatically selected ones. | |
1210 | if test -z "$CONFIG_SITE"; then | |
1211 | if test "x$prefix" != xNONE; then | |
1212 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1213 | else | |
1214 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1215 | fi | |
1216 | fi | |
1217 | for ac_site_file in $CONFIG_SITE; do | |
1218 | if test -r "$ac_site_file"; then | |
1219 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1220 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1221 | sed 's/^/| /' "$ac_site_file" >&5 | |
1222 | . "$ac_site_file" | |
1223 | fi | |
1224 | done | |
1225 | ||
1226 | if test -r "$cache_file"; then | |
1227 | # Some versions of bash will fail to source /dev/null (special | |
1228 | # files actually), so we avoid doing that. | |
1229 | if test -f "$cache_file"; then | |
1230 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1231 | echo "$as_me: loading cache $cache_file" >&6;} | |
1232 | case $cache_file in | |
1233 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1234 | *) . ./$cache_file;; | |
1235 | esac | |
1236 | fi | |
1237 | else | |
1238 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1239 | echo "$as_me: creating cache $cache_file" >&6;} | |
1240 | >$cache_file | |
1241 | fi | |
1242 | ||
1243 | # Check that the precious variables saved in the cache have kept the same | |
1244 | # value. | |
1245 | ac_cache_corrupted=false | |
1246 | for ac_var in `(set) 2>&1 | | |
1247 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1248 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1249 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1250 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1251 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1252 | case $ac_old_set,$ac_new_set in | |
1253 | set,) | |
1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1255 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1256 | ac_cache_corrupted=: ;; | |
1257 | ,set) | |
1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1259 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1260 | ac_cache_corrupted=: ;; | |
1261 | ,);; | |
1262 | *) | |
1263 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1266 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1267 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1268 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1269 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1270 | ac_cache_corrupted=: | |
1271 | fi;; | |
1272 | esac | |
1273 | # Pass precious variables to config.status. | |
1274 | if test "$ac_new_set" = set; then | |
1275 | case $ac_new_val in | |
1276 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1277 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1278 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1279 | esac | |
1280 | case " $ac_configure_args " in | |
1281 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1282 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1283 | esac | |
1284 | fi | |
1285 | done | |
1286 | if $ac_cache_corrupted; then | |
1287 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1288 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1289 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1290 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1291 | { (exit 1); exit 1; }; } | |
1292 | fi | |
1293 | ||
1294 | ac_ext=c | |
1295 | ac_cpp='$CPP $CPPFLAGS' | |
1296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ac_aux_dir= | |
1320 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1321 | if test -f $ac_dir/install-sh; then | |
1322 | ac_aux_dir=$ac_dir | |
1323 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1324 | break | |
1325 | elif test -f $ac_dir/install.sh; then | |
1326 | ac_aux_dir=$ac_dir | |
1327 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1328 | break | |
1329 | elif test -f $ac_dir/shtool; then | |
1330 | ac_aux_dir=$ac_dir | |
1331 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1332 | break | |
1333 | fi | |
1334 | done | |
1335 | if test -z "$ac_aux_dir"; then | |
1336 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1337 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1338 | { (exit 1); exit 1; }; } | |
1339 | fi | |
1340 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1341 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1342 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1343 | ||
1344 | # Make sure we can run config.sub. | |
1345 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1346 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1347 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1348 | { (exit 1); exit 1; }; } | |
1349 | ||
1350 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1351 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1352 | if test "${ac_cv_build+set}" = set; then | |
1353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1354 | else | |
1355 | ac_cv_build_alias=$build_alias | |
1356 | test -z "$ac_cv_build_alias" && | |
1357 | ac_cv_build_alias=`$ac_config_guess` | |
1358 | test -z "$ac_cv_build_alias" && | |
1359 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1360 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1361 | { (exit 1); exit 1; }; } | |
1362 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1363 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1364 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1365 | { (exit 1); exit 1; }; } | |
1366 | ||
1367 | fi | |
1368 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1369 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1370 | build=$ac_cv_build | |
1371 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1372 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1373 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1374 | ||
1375 | ||
1376 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1377 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1378 | if test "${ac_cv_host+set}" = set; then | |
1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1380 | else | |
1381 | ac_cv_host_alias=$host_alias | |
1382 | test -z "$ac_cv_host_alias" && | |
1383 | ac_cv_host_alias=$ac_cv_build_alias | |
1384 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1385 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1386 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1387 | { (exit 1); exit 1; }; } | |
1388 | ||
1389 | fi | |
1390 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1391 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1392 | host=$ac_cv_host | |
1393 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1394 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1395 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1396 | ||
1397 | ||
1398 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1399 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1400 | if test "${ac_cv_target+set}" = set; then | |
1401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1402 | else | |
1403 | ac_cv_target_alias=$target_alias | |
1404 | test "x$ac_cv_target_alias" = "x" && | |
1405 | ac_cv_target_alias=$ac_cv_host_alias | |
1406 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1407 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1408 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1409 | { (exit 1); exit 1; }; } | |
1410 | ||
1411 | fi | |
1412 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1413 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1414 | target=$ac_cv_target | |
1415 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1416 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1417 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1418 | ||
1419 | ||
1420 | # The aliases save the names the user supplied, while $host etc. | |
1421 | # will get canonicalized. | |
1422 | test -n "$target_alias" && | |
1423 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1424 | NONENONEs,x,x, && | |
1425 | program_prefix=${target_alias}- | |
1426 | ac_ext=c | |
1427 | ac_cpp='$CPP $CPPFLAGS' | |
1428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1431 | if test -n "$ac_tool_prefix"; then | |
1432 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1433 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1434 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1436 | if test "${ac_cv_prog_CC+set}" = set; then | |
1437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1438 | else | |
1439 | if test -n "$CC"; then | |
1440 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1441 | else | |
1442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1443 | for as_dir in $PATH | |
1444 | do | |
1445 | IFS=$as_save_IFS | |
1446 | test -z "$as_dir" && as_dir=. | |
1447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1448 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1449 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1451 | break 2 | |
1452 | fi | |
1453 | done | |
1454 | done | |
1455 | ||
1456 | fi | |
1457 | fi | |
1458 | CC=$ac_cv_prog_CC | |
1459 | if test -n "$CC"; then | |
1460 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1461 | echo "${ECHO_T}$CC" >&6 | |
1462 | else | |
1463 | echo "$as_me:$LINENO: result: no" >&5 | |
1464 | echo "${ECHO_T}no" >&6 | |
1465 | fi | |
1466 | ||
1467 | fi | |
1468 | if test -z "$ac_cv_prog_CC"; then | |
1469 | ac_ct_CC=$CC | |
1470 | # Extract the first word of "gcc", so it can be a program name with args. | |
1471 | set dummy gcc; ac_word=$2 | |
1472 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1474 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1476 | else | |
1477 | if test -n "$ac_ct_CC"; then | |
1478 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1479 | else | |
1480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1481 | for as_dir in $PATH | |
1482 | do | |
1483 | IFS=$as_save_IFS | |
1484 | test -z "$as_dir" && as_dir=. | |
1485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1486 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1487 | ac_cv_prog_ac_ct_CC="gcc" | |
1488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1489 | break 2 | |
1490 | fi | |
1491 | done | |
1492 | done | |
1493 | ||
1494 | fi | |
1495 | fi | |
1496 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1497 | if test -n "$ac_ct_CC"; then | |
1498 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1499 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1500 | else | |
1501 | echo "$as_me:$LINENO: result: no" >&5 | |
1502 | echo "${ECHO_T}no" >&6 | |
1503 | fi | |
1504 | ||
1505 | CC=$ac_ct_CC | |
1506 | else | |
1507 | CC="$ac_cv_prog_CC" | |
1508 | fi | |
1509 | ||
1510 | if test -z "$CC"; then | |
1511 | if test -n "$ac_tool_prefix"; then | |
1512 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1513 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1516 | if test "${ac_cv_prog_CC+set}" = set; then | |
1517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1518 | else | |
1519 | if test -n "$CC"; then | |
1520 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1521 | else | |
1522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1523 | for as_dir in $PATH | |
1524 | do | |
1525 | IFS=$as_save_IFS | |
1526 | test -z "$as_dir" && as_dir=. | |
1527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1529 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1531 | break 2 | |
1532 | fi | |
1533 | done | |
1534 | done | |
1535 | ||
1536 | fi | |
1537 | fi | |
1538 | CC=$ac_cv_prog_CC | |
1539 | if test -n "$CC"; then | |
1540 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1541 | echo "${ECHO_T}$CC" >&6 | |
1542 | else | |
1543 | echo "$as_me:$LINENO: result: no" >&5 | |
1544 | echo "${ECHO_T}no" >&6 | |
1545 | fi | |
1546 | ||
1547 | fi | |
1548 | if test -z "$ac_cv_prog_CC"; then | |
1549 | ac_ct_CC=$CC | |
1550 | # Extract the first word of "cc", so it can be a program name with args. | |
1551 | set dummy cc; ac_word=$2 | |
1552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1554 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1556 | else | |
1557 | if test -n "$ac_ct_CC"; then | |
1558 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1559 | else | |
1560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1561 | for as_dir in $PATH | |
1562 | do | |
1563 | IFS=$as_save_IFS | |
1564 | test -z "$as_dir" && as_dir=. | |
1565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1567 | ac_cv_prog_ac_ct_CC="cc" | |
1568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1569 | break 2 | |
1570 | fi | |
1571 | done | |
1572 | done | |
1573 | ||
1574 | fi | |
1575 | fi | |
1576 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1577 | if test -n "$ac_ct_CC"; then | |
1578 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1579 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1580 | else | |
1581 | echo "$as_me:$LINENO: result: no" >&5 | |
1582 | echo "${ECHO_T}no" >&6 | |
1583 | fi | |
1584 | ||
1585 | CC=$ac_ct_CC | |
1586 | else | |
1587 | CC="$ac_cv_prog_CC" | |
1588 | fi | |
1589 | ||
1590 | fi | |
1591 | if test -z "$CC"; then | |
1592 | # Extract the first word of "cc", so it can be a program name with args. | |
1593 | set dummy cc; ac_word=$2 | |
1594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1596 | if test "${ac_cv_prog_CC+set}" = set; then | |
1597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1598 | else | |
1599 | if test -n "$CC"; then | |
1600 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1601 | else | |
1602 | ac_prog_rejected=no | |
1603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1604 | for as_dir in $PATH | |
1605 | do | |
1606 | IFS=$as_save_IFS | |
1607 | test -z "$as_dir" && as_dir=. | |
1608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1610 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1611 | ac_prog_rejected=yes | |
1612 | continue | |
1613 | fi | |
1614 | ac_cv_prog_CC="cc" | |
1615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1616 | break 2 | |
1617 | fi | |
1618 | done | |
1619 | done | |
1620 | ||
1621 | if test $ac_prog_rejected = yes; then | |
1622 | # We found a bogon in the path, so make sure we never use it. | |
1623 | set dummy $ac_cv_prog_CC | |
1624 | shift | |
1625 | if test $# != 0; then | |
1626 | # We chose a different compiler from the bogus one. | |
1627 | # However, it has the same basename, so the bogon will be chosen | |
1628 | # first if we set CC to just the basename; use the full file name. | |
1629 | shift | |
1630 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1631 | fi | |
1632 | fi | |
1633 | fi | |
1634 | fi | |
1635 | CC=$ac_cv_prog_CC | |
1636 | if test -n "$CC"; then | |
1637 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1638 | echo "${ECHO_T}$CC" >&6 | |
1639 | else | |
1640 | echo "$as_me:$LINENO: result: no" >&5 | |
1641 | echo "${ECHO_T}no" >&6 | |
1642 | fi | |
1643 | ||
1644 | fi | |
1645 | if test -z "$CC"; then | |
1646 | if test -n "$ac_tool_prefix"; then | |
1647 | for ac_prog in cl | |
1648 | do | |
1649 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1650 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1653 | if test "${ac_cv_prog_CC+set}" = set; then | |
1654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1655 | else | |
1656 | if test -n "$CC"; then | |
1657 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1658 | else | |
1659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1660 | for as_dir in $PATH | |
1661 | do | |
1662 | IFS=$as_save_IFS | |
1663 | test -z "$as_dir" && as_dir=. | |
1664 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1666 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1668 | break 2 | |
1669 | fi | |
1670 | done | |
1671 | done | |
1672 | ||
1673 | fi | |
1674 | fi | |
1675 | CC=$ac_cv_prog_CC | |
1676 | if test -n "$CC"; then | |
1677 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1678 | echo "${ECHO_T}$CC" >&6 | |
1679 | else | |
1680 | echo "$as_me:$LINENO: result: no" >&5 | |
1681 | echo "${ECHO_T}no" >&6 | |
1682 | fi | |
1683 | ||
1684 | test -n "$CC" && break | |
1685 | done | |
1686 | fi | |
1687 | if test -z "$CC"; then | |
1688 | ac_ct_CC=$CC | |
1689 | for ac_prog in cl | |
1690 | do | |
1691 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1692 | set dummy $ac_prog; ac_word=$2 | |
1693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1695 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1697 | else | |
1698 | if test -n "$ac_ct_CC"; then | |
1699 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1700 | else | |
1701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1702 | for as_dir in $PATH | |
1703 | do | |
1704 | IFS=$as_save_IFS | |
1705 | test -z "$as_dir" && as_dir=. | |
1706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1708 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1710 | break 2 | |
1711 | fi | |
1712 | done | |
1713 | done | |
1714 | ||
1715 | fi | |
1716 | fi | |
1717 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1718 | if test -n "$ac_ct_CC"; then | |
1719 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1720 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1721 | else | |
1722 | echo "$as_me:$LINENO: result: no" >&5 | |
1723 | echo "${ECHO_T}no" >&6 | |
1724 | fi | |
1725 | ||
1726 | test -n "$ac_ct_CC" && break | |
1727 | done | |
1728 | ||
1729 | CC=$ac_ct_CC | |
1730 | fi | |
1731 | ||
1732 | fi | |
1733 | ||
1734 | ||
1735 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1736 | See \`config.log' for more details." >&5 | |
1737 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1738 | See \`config.log' for more details." >&2;} | |
1739 | { (exit 1); exit 1; }; } | |
1740 | ||
1741 | # Provide some information about the compiler. | |
1742 | echo "$as_me:$LINENO:" \ | |
1743 | "checking for C compiler version" >&5 | |
1744 | ac_compiler=`set X $ac_compile; echo $2` | |
1745 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1746 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1747 | ac_status=$? | |
1748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1749 | (exit $ac_status); } | |
1750 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1751 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1752 | ac_status=$? | |
1753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1754 | (exit $ac_status); } | |
1755 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1756 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1757 | ac_status=$? | |
1758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1759 | (exit $ac_status); } | |
1760 | ||
1761 | cat >conftest.$ac_ext <<_ACEOF | |
1762 | /* confdefs.h. */ | |
1763 | _ACEOF | |
1764 | cat confdefs.h >>conftest.$ac_ext | |
1765 | cat >>conftest.$ac_ext <<_ACEOF | |
1766 | /* end confdefs.h. */ | |
1767 | ||
1768 | int | |
1769 | main () | |
1770 | { | |
1771 | ||
1772 | ; | |
1773 | return 0; | |
1774 | } | |
1775 | _ACEOF | |
1776 | ac_clean_files_save=$ac_clean_files | |
1777 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1778 | # Try to create an executable without -o first, disregard a.out. | |
1779 | # It will help us diagnose broken compilers, and finding out an intuition | |
1780 | # of exeext. | |
1781 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1782 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1783 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1784 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1785 | (eval $ac_link_default) 2>&5 | |
1786 | ac_status=$? | |
1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1788 | (exit $ac_status); }; then | |
1789 | # Find the output, starting from the most likely. This scheme is | |
1790 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1791 | # resort. | |
1792 | ||
1793 | # Be careful to initialize this variable, since it used to be cached. | |
1794 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1795 | ac_cv_exeext= | |
1796 | # b.out is created by i960 compilers. | |
1797 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1798 | do | |
1799 | test -f "$ac_file" || continue | |
1800 | case $ac_file in | |
1801 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1802 | ;; | |
1803 | conftest.$ac_ext ) | |
1804 | # This is the source file. | |
1805 | ;; | |
1806 | [ab].out ) | |
1807 | # We found the default executable, but exeext='' is most | |
1808 | # certainly right. | |
1809 | break;; | |
1810 | *.* ) | |
1811 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1812 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1813 | # but it would be cool to find out if it's true. Does anybody | |
1814 | # maintain Libtool? --akim. | |
1815 | export ac_cv_exeext | |
1816 | break;; | |
1817 | * ) | |
1818 | break;; | |
1819 | esac | |
1820 | done | |
1821 | else | |
1822 | echo "$as_me: failed program was:" >&5 | |
1823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1824 | ||
1825 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1826 | See \`config.log' for more details." >&5 | |
1827 | echo "$as_me: error: C compiler cannot create executables | |
1828 | See \`config.log' for more details." >&2;} | |
1829 | { (exit 77); exit 77; }; } | |
1830 | fi | |
1831 | ||
1832 | ac_exeext=$ac_cv_exeext | |
1833 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1834 | echo "${ECHO_T}$ac_file" >&6 | |
1835 | ||
1836 | # Check the compiler produces executables we can run. If not, either | |
1837 | # the compiler is broken, or we cross compile. | |
1838 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1839 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1840 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1841 | # If not cross compiling, check that we can run a simple program. | |
1842 | if test "$cross_compiling" != yes; then | |
1843 | if { ac_try='./$ac_file' | |
1844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1845 | (eval $ac_try) 2>&5 | |
1846 | ac_status=$? | |
1847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1848 | (exit $ac_status); }; }; then | |
1849 | cross_compiling=no | |
1850 | else | |
1851 | if test "$cross_compiling" = maybe; then | |
1852 | cross_compiling=yes | |
1853 | else | |
1854 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1855 | If you meant to cross compile, use \`--host'. | |
1856 | See \`config.log' for more details." >&5 | |
1857 | echo "$as_me: error: cannot run C compiled programs. | |
1858 | If you meant to cross compile, use \`--host'. | |
1859 | See \`config.log' for more details." >&2;} | |
1860 | { (exit 1); exit 1; }; } | |
1861 | fi | |
1862 | fi | |
1863 | fi | |
1864 | echo "$as_me:$LINENO: result: yes" >&5 | |
1865 | echo "${ECHO_T}yes" >&6 | |
1866 | ||
1867 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1868 | ac_clean_files=$ac_clean_files_save | |
1869 | # Check the compiler produces executables we can run. If not, either | |
1870 | # the compiler is broken, or we cross compile. | |
1871 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1872 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1873 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1874 | echo "${ECHO_T}$cross_compiling" >&6 | |
1875 | ||
1876 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1877 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1879 | (eval $ac_link) 2>&5 | |
1880 | ac_status=$? | |
1881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1882 | (exit $ac_status); }; then | |
1883 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1884 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1885 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1886 | # `rm'. | |
1887 | for ac_file in conftest.exe conftest conftest.*; do | |
1888 | test -f "$ac_file" || continue | |
1889 | case $ac_file in | |
1890 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1891 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1892 | export ac_cv_exeext | |
1893 | break;; | |
1894 | * ) break;; | |
1895 | esac | |
1896 | done | |
1897 | else | |
1898 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1899 | See \`config.log' for more details." >&5 | |
1900 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1901 | See \`config.log' for more details." >&2;} | |
1902 | { (exit 1); exit 1; }; } | |
1903 | fi | |
1904 | ||
1905 | rm -f conftest$ac_cv_exeext | |
1906 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1907 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1908 | ||
1909 | rm -f conftest.$ac_ext | |
1910 | EXEEXT=$ac_cv_exeext | |
1911 | ac_exeext=$EXEEXT | |
1912 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1913 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1914 | if test "${ac_cv_objext+set}" = set; then | |
1915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1916 | else | |
1917 | cat >conftest.$ac_ext <<_ACEOF | |
1918 | /* confdefs.h. */ | |
1919 | _ACEOF | |
1920 | cat confdefs.h >>conftest.$ac_ext | |
1921 | cat >>conftest.$ac_ext <<_ACEOF | |
1922 | /* end confdefs.h. */ | |
1923 | ||
1924 | int | |
1925 | main () | |
1926 | { | |
1927 | ||
1928 | ; | |
1929 | return 0; | |
1930 | } | |
1931 | _ACEOF | |
1932 | rm -f conftest.o conftest.obj | |
1933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1934 | (eval $ac_compile) 2>&5 | |
1935 | ac_status=$? | |
1936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1937 | (exit $ac_status); }; then | |
1938 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1939 | case $ac_file in | |
1940 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1941 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1942 | break;; | |
1943 | esac | |
1944 | done | |
1945 | else | |
1946 | echo "$as_me: failed program was:" >&5 | |
1947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1948 | ||
1949 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1950 | See \`config.log' for more details." >&5 | |
1951 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1952 | See \`config.log' for more details." >&2;} | |
1953 | { (exit 1); exit 1; }; } | |
1954 | fi | |
1955 | ||
1956 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1957 | fi | |
1958 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1959 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1960 | OBJEXT=$ac_cv_objext | |
1961 | ac_objext=$OBJEXT | |
1962 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1963 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1964 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1966 | else | |
1967 | cat >conftest.$ac_ext <<_ACEOF | |
1968 | /* confdefs.h. */ | |
1969 | _ACEOF | |
1970 | cat confdefs.h >>conftest.$ac_ext | |
1971 | cat >>conftest.$ac_ext <<_ACEOF | |
1972 | /* end confdefs.h. */ | |
1973 | ||
1974 | int | |
1975 | main () | |
1976 | { | |
1977 | #ifndef __GNUC__ | |
1978 | choke me | |
1979 | #endif | |
1980 | ||
1981 | ; | |
1982 | return 0; | |
1983 | } | |
1984 | _ACEOF | |
1985 | rm -f conftest.$ac_objext | |
1986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1987 | (eval $ac_compile) 2>conftest.er1 | |
1988 | ac_status=$? | |
1989 | grep -v '^ *+' conftest.er1 >conftest.err | |
1990 | rm -f conftest.er1 | |
1991 | cat conftest.err >&5 | |
1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1993 | (exit $ac_status); } && | |
1994 | { ac_try='test -z "$ac_c_werror_flag" | |
1995 | || test ! -s conftest.err' | |
1996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1997 | (eval $ac_try) 2>&5 | |
1998 | ac_status=$? | |
1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2000 | (exit $ac_status); }; } && | |
2001 | { ac_try='test -s conftest.$ac_objext' | |
2002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2003 | (eval $ac_try) 2>&5 | |
2004 | ac_status=$? | |
2005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2006 | (exit $ac_status); }; }; then | |
2007 | ac_compiler_gnu=yes | |
2008 | else | |
2009 | echo "$as_me: failed program was:" >&5 | |
2010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2011 | ||
2012 | ac_compiler_gnu=no | |
2013 | fi | |
2014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2015 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2016 | ||
2017 | fi | |
2018 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2019 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2020 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2021 | ac_test_CFLAGS=${CFLAGS+set} | |
2022 | ac_save_CFLAGS=$CFLAGS | |
2023 | CFLAGS="-g" | |
2024 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2025 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2026 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2028 | else | |
2029 | cat >conftest.$ac_ext <<_ACEOF | |
2030 | /* confdefs.h. */ | |
2031 | _ACEOF | |
2032 | cat confdefs.h >>conftest.$ac_ext | |
2033 | cat >>conftest.$ac_ext <<_ACEOF | |
2034 | /* end confdefs.h. */ | |
2035 | ||
2036 | int | |
2037 | main () | |
2038 | { | |
2039 | ||
2040 | ; | |
2041 | return 0; | |
2042 | } | |
2043 | _ACEOF | |
2044 | rm -f conftest.$ac_objext | |
2045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2046 | (eval $ac_compile) 2>conftest.er1 | |
2047 | ac_status=$? | |
2048 | grep -v '^ *+' conftest.er1 >conftest.err | |
2049 | rm -f conftest.er1 | |
2050 | cat conftest.err >&5 | |
2051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2052 | (exit $ac_status); } && | |
2053 | { ac_try='test -z "$ac_c_werror_flag" | |
2054 | || test ! -s conftest.err' | |
2055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2056 | (eval $ac_try) 2>&5 | |
2057 | ac_status=$? | |
2058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2059 | (exit $ac_status); }; } && | |
2060 | { ac_try='test -s conftest.$ac_objext' | |
2061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2062 | (eval $ac_try) 2>&5 | |
2063 | ac_status=$? | |
2064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2065 | (exit $ac_status); }; }; then | |
2066 | ac_cv_prog_cc_g=yes | |
2067 | else | |
2068 | echo "$as_me: failed program was:" >&5 | |
2069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2070 | ||
2071 | ac_cv_prog_cc_g=no | |
2072 | fi | |
2073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2074 | fi | |
2075 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2076 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2077 | if test "$ac_test_CFLAGS" = set; then | |
2078 | CFLAGS=$ac_save_CFLAGS | |
2079 | elif test $ac_cv_prog_cc_g = yes; then | |
2080 | if test "$GCC" = yes; then | |
2081 | CFLAGS="-g -O2" | |
2082 | else | |
2083 | CFLAGS="-g" | |
2084 | fi | |
2085 | else | |
2086 | if test "$GCC" = yes; then | |
2087 | CFLAGS="-O2" | |
2088 | else | |
2089 | CFLAGS= | |
2090 | fi | |
2091 | fi | |
2092 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2093 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2094 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2096 | else | |
2097 | ac_cv_prog_cc_stdc=no | |
2098 | ac_save_CC=$CC | |
2099 | cat >conftest.$ac_ext <<_ACEOF | |
2100 | /* confdefs.h. */ | |
2101 | _ACEOF | |
2102 | cat confdefs.h >>conftest.$ac_ext | |
2103 | cat >>conftest.$ac_ext <<_ACEOF | |
2104 | /* end confdefs.h. */ | |
2105 | #include <stdarg.h> | |
2106 | #include <stdio.h> | |
2107 | #include <sys/types.h> | |
2108 | #include <sys/stat.h> | |
2109 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2110 | struct buf { int x; }; | |
2111 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2112 | static char *e (p, i) | |
2113 | char **p; | |
2114 | int i; | |
2115 | { | |
2116 | return p[i]; | |
2117 | } | |
2118 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2119 | { | |
2120 | char *s; | |
2121 | va_list v; | |
2122 | va_start (v,p); | |
2123 | s = g (p, va_arg (v,int)); | |
2124 | va_end (v); | |
2125 | return s; | |
2126 | } | |
2127 | ||
2128 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2129 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2130 | These don't provoke an error unfortunately, instead are silently treated | |
2131 | as 'x'. The following induces an error, until -std1 is added to get | |
2132 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2133 | array size at least. It's necessary to write '\x00'==0 to get something | |
2134 | that's true only with -std1. */ | |
2135 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2136 | ||
2137 | int test (int i, double x); | |
2138 | struct s1 {int (*f) (int a);}; | |
2139 | struct s2 {int (*f) (double a);}; | |
2140 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2141 | int argc; | |
2142 | char **argv; | |
2143 | int | |
2144 | main () | |
2145 | { | |
2146 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2147 | ; | |
2148 | return 0; | |
2149 | } | |
2150 | _ACEOF | |
2151 | # Don't try gcc -ansi; that turns off useful extensions and | |
2152 | # breaks some systems' header files. | |
2153 | # AIX -qlanglvl=ansi | |
2154 | # Ultrix and OSF/1 -std1 | |
2155 | # HP-UX 10.20 and later -Ae | |
2156 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2157 | # SVR4 -Xc -D__EXTENSIONS__ | |
2158 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2159 | do | |
2160 | CC="$ac_save_CC $ac_arg" | |
2161 | rm -f conftest.$ac_objext | |
2162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2163 | (eval $ac_compile) 2>conftest.er1 | |
2164 | ac_status=$? | |
2165 | grep -v '^ *+' conftest.er1 >conftest.err | |
2166 | rm -f conftest.er1 | |
2167 | cat conftest.err >&5 | |
2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2169 | (exit $ac_status); } && | |
2170 | { ac_try='test -z "$ac_c_werror_flag" | |
2171 | || test ! -s conftest.err' | |
2172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2173 | (eval $ac_try) 2>&5 | |
2174 | ac_status=$? | |
2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2176 | (exit $ac_status); }; } && | |
2177 | { ac_try='test -s conftest.$ac_objext' | |
2178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2179 | (eval $ac_try) 2>&5 | |
2180 | ac_status=$? | |
2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2182 | (exit $ac_status); }; }; then | |
2183 | ac_cv_prog_cc_stdc=$ac_arg | |
2184 | break | |
2185 | else | |
2186 | echo "$as_me: failed program was:" >&5 | |
2187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2188 | ||
2189 | fi | |
2190 | rm -f conftest.err conftest.$ac_objext | |
2191 | done | |
2192 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2193 | CC=$ac_save_CC | |
2194 | ||
2195 | fi | |
2196 | ||
2197 | case "x$ac_cv_prog_cc_stdc" in | |
2198 | x|xno) | |
2199 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2200 | echo "${ECHO_T}none needed" >&6 ;; | |
2201 | *) | |
2202 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2203 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2204 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2205 | esac | |
2206 | ||
2207 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2208 | # in C++ we need to declare it. In case someone uses the same compiler | |
2209 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2210 | # the declaration of exit, since it's the most demanding environment. | |
2211 | cat >conftest.$ac_ext <<_ACEOF | |
2212 | #ifndef __cplusplus | |
2213 | choke me | |
2214 | #endif | |
2215 | _ACEOF | |
2216 | rm -f conftest.$ac_objext | |
2217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2218 | (eval $ac_compile) 2>conftest.er1 | |
2219 | ac_status=$? | |
2220 | grep -v '^ *+' conftest.er1 >conftest.err | |
2221 | rm -f conftest.er1 | |
2222 | cat conftest.err >&5 | |
2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2224 | (exit $ac_status); } && | |
2225 | { ac_try='test -z "$ac_c_werror_flag" | |
2226 | || test ! -s conftest.err' | |
2227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2228 | (eval $ac_try) 2>&5 | |
2229 | ac_status=$? | |
2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2231 | (exit $ac_status); }; } && | |
2232 | { ac_try='test -s conftest.$ac_objext' | |
2233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2234 | (eval $ac_try) 2>&5 | |
2235 | ac_status=$? | |
2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2237 | (exit $ac_status); }; }; then | |
2238 | for ac_declaration in \ | |
2239 | '' \ | |
2240 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2241 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2242 | 'extern "C" void exit (int) throw ();' \ | |
2243 | 'extern "C" void exit (int);' \ | |
2244 | 'void exit (int);' | |
2245 | do | |
2246 | cat >conftest.$ac_ext <<_ACEOF | |
2247 | /* confdefs.h. */ | |
2248 | _ACEOF | |
2249 | cat confdefs.h >>conftest.$ac_ext | |
2250 | cat >>conftest.$ac_ext <<_ACEOF | |
2251 | /* end confdefs.h. */ | |
2252 | $ac_declaration | |
2253 | #include <stdlib.h> | |
2254 | int | |
2255 | main () | |
2256 | { | |
2257 | exit (42); | |
2258 | ; | |
2259 | return 0; | |
2260 | } | |
2261 | _ACEOF | |
2262 | rm -f conftest.$ac_objext | |
2263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2264 | (eval $ac_compile) 2>conftest.er1 | |
2265 | ac_status=$? | |
2266 | grep -v '^ *+' conftest.er1 >conftest.err | |
2267 | rm -f conftest.er1 | |
2268 | cat conftest.err >&5 | |
2269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2270 | (exit $ac_status); } && | |
2271 | { ac_try='test -z "$ac_c_werror_flag" | |
2272 | || test ! -s conftest.err' | |
2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2274 | (eval $ac_try) 2>&5 | |
2275 | ac_status=$? | |
2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2277 | (exit $ac_status); }; } && | |
2278 | { ac_try='test -s conftest.$ac_objext' | |
2279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2280 | (eval $ac_try) 2>&5 | |
2281 | ac_status=$? | |
2282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2283 | (exit $ac_status); }; }; then | |
2284 | : | |
2285 | else | |
2286 | echo "$as_me: failed program was:" >&5 | |
2287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2288 | ||
2289 | continue | |
2290 | fi | |
2291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2292 | cat >conftest.$ac_ext <<_ACEOF | |
2293 | /* confdefs.h. */ | |
2294 | _ACEOF | |
2295 | cat confdefs.h >>conftest.$ac_ext | |
2296 | cat >>conftest.$ac_ext <<_ACEOF | |
2297 | /* end confdefs.h. */ | |
2298 | $ac_declaration | |
2299 | int | |
2300 | main () | |
2301 | { | |
2302 | exit (42); | |
2303 | ; | |
2304 | return 0; | |
2305 | } | |
2306 | _ACEOF | |
2307 | rm -f conftest.$ac_objext | |
2308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2309 | (eval $ac_compile) 2>conftest.er1 | |
2310 | ac_status=$? | |
2311 | grep -v '^ *+' conftest.er1 >conftest.err | |
2312 | rm -f conftest.er1 | |
2313 | cat conftest.err >&5 | |
2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2315 | (exit $ac_status); } && | |
2316 | { ac_try='test -z "$ac_c_werror_flag" | |
2317 | || test ! -s conftest.err' | |
2318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2319 | (eval $ac_try) 2>&5 | |
2320 | ac_status=$? | |
2321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2322 | (exit $ac_status); }; } && | |
2323 | { ac_try='test -s conftest.$ac_objext' | |
2324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2325 | (eval $ac_try) 2>&5 | |
2326 | ac_status=$? | |
2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2328 | (exit $ac_status); }; }; then | |
2329 | break | |
2330 | else | |
2331 | echo "$as_me: failed program was:" >&5 | |
2332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2333 | ||
2334 | fi | |
2335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2336 | done | |
2337 | rm -f conftest* | |
2338 | if test -n "$ac_declaration"; then | |
2339 | echo '#ifdef __cplusplus' >>confdefs.h | |
2340 | echo $ac_declaration >>confdefs.h | |
2341 | echo '#endif' >>confdefs.h | |
2342 | fi | |
2343 | ||
2344 | else | |
2345 | echo "$as_me: failed program was:" >&5 | |
2346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2347 | ||
2348 | fi | |
2349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2350 | ac_ext=c | |
2351 | ac_cpp='$CPP $CPPFLAGS' | |
2352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2355 | ||
2356 | ||
2357 | ||
2358 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 | |
2359 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 | |
2360 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then | |
2361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2362 | else | |
2363 | ac_check_lib_save_LIBS=$LIBS | |
2364 | LIBS="-lcposix $LIBS" | |
2365 | cat >conftest.$ac_ext <<_ACEOF | |
2366 | /* confdefs.h. */ | |
2367 | _ACEOF | |
2368 | cat confdefs.h >>conftest.$ac_ext | |
2369 | cat >>conftest.$ac_ext <<_ACEOF | |
2370 | /* end confdefs.h. */ | |
2371 | ||
2372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2373 | #ifdef __cplusplus | |
2374 | extern "C" | |
2375 | #endif | |
2376 | /* We use char because int might match the return type of a gcc2 | |
2377 | builtin and then its argument prototype would still apply. */ | |
2378 | char strerror (); | |
2379 | int | |
2380 | main () | |
2381 | { | |
2382 | strerror (); | |
2383 | ; | |
2384 | return 0; | |
2385 | } | |
2386 | _ACEOF | |
2387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2389 | (eval $ac_link) 2>conftest.er1 | |
2390 | ac_status=$? | |
2391 | grep -v '^ *+' conftest.er1 >conftest.err | |
2392 | rm -f conftest.er1 | |
2393 | cat conftest.err >&5 | |
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2395 | (exit $ac_status); } && | |
2396 | { ac_try='test -z "$ac_c_werror_flag" | |
2397 | || test ! -s conftest.err' | |
2398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2399 | (eval $ac_try) 2>&5 | |
2400 | ac_status=$? | |
2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2402 | (exit $ac_status); }; } && | |
2403 | { ac_try='test -s conftest$ac_exeext' | |
2404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2405 | (eval $ac_try) 2>&5 | |
2406 | ac_status=$? | |
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2408 | (exit $ac_status); }; }; then | |
2409 | ac_cv_lib_cposix_strerror=yes | |
2410 | else | |
2411 | echo "$as_me: failed program was:" >&5 | |
2412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2413 | ||
2414 | ac_cv_lib_cposix_strerror=no | |
2415 | fi | |
2416 | rm -f conftest.err conftest.$ac_objext \ | |
2417 | conftest$ac_exeext conftest.$ac_ext | |
2418 | LIBS=$ac_check_lib_save_LIBS | |
2419 | fi | |
2420 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 | |
2421 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 | |
2422 | if test $ac_cv_lib_cposix_strerror = yes; then | |
2423 | LIBS="$LIBS -lcposix" | |
2424 | fi | |
2425 | ||
2426 | ||
2427 | ||
2428 | ||
2429 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
2430 | am__api_version="1.4" | |
2431 | # Find a good install program. We prefer a C program (faster), | |
2432 | # so one script is as good as another. But avoid the broken or | |
2433 | # incompatible versions: | |
252b5132 RH |
2434 | # SysV /etc/install, /usr/sbin/install |
2435 | # SunOS /usr/etc/install | |
2436 | # IRIX /sbin/install | |
2437 | # AIX /bin/install | |
e5a52504 | 2438 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
2439 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2440 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2441 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
e5a52504 | 2442 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2443 | # ./install, which can be erroneously created by make from ./install.sh. |
e5a52504 MM |
2444 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2445 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2446 | if test -z "$INSTALL"; then |
e5a52504 MM |
2447 | if test "${ac_cv_path_install+set}" = set; then |
2448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2449 | else |
e5a52504 MM |
2450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2451 | for as_dir in $PATH | |
2452 | do | |
2453 | IFS=$as_save_IFS | |
2454 | test -z "$as_dir" && as_dir=. | |
2455 | # Account for people who put trailing slashes in PATH elements. | |
2456 | case $as_dir/ in | |
2457 | ./ | .// | /cC/* | \ | |
2458 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2459 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2460 | /usr/ucb/* ) ;; | |
2461 | *) | |
2462 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2463 | # Don't use installbsd from OSF since it installs stuff as root | |
2464 | # by default. | |
2465 | for ac_prog in ginstall scoinst install; do | |
2466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2467 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2468 | if test $ac_prog = install && |
e5a52504 | 2469 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2470 | # AIX install. It has an incompatible calling convention. |
2471 | : | |
e5a52504 MM |
2472 | elif test $ac_prog = install && |
2473 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2474 | # program-specific install script used by HP pwplus--don't use. | |
2475 | : | |
252b5132 | 2476 | else |
e5a52504 MM |
2477 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2478 | break 3 | |
252b5132 RH |
2479 | fi |
2480 | fi | |
2481 | done | |
e5a52504 MM |
2482 | done |
2483 | ;; | |
2484 | esac | |
2485 | done | |
2486 | ||
252b5132 RH |
2487 | |
2488 | fi | |
2489 | if test "${ac_cv_path_install+set}" = set; then | |
e5a52504 | 2490 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2491 | else |
2492 | # As a last resort, use the slow shell script. We don't cache a | |
2493 | # path for INSTALL within a source directory, because that will | |
2494 | # break other packages using the cache if that directory is | |
2495 | # removed, or if the path is relative. | |
e5a52504 | 2496 | INSTALL=$ac_install_sh |
252b5132 RH |
2497 | fi |
2498 | fi | |
e5a52504 MM |
2499 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2500 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2501 | |
2502 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2503 | # It thinks the first close brace ends the variable substitution. | |
2504 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2505 | ||
e5a52504 | 2506 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2507 | |
2508 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2509 | ||
e5a52504 MM |
2510 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2511 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2512 | # Just in case |
2513 | sleep 1 | |
2514 | echo timestamp > conftestfile | |
2515 | # Do `set' in a subshell so we don't clobber the current shell's | |
2516 | # arguments. Must try -L first in case configure is actually a | |
2517 | # symlink; some systems play weird games with the mod time of symlinks | |
2518 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2519 | # directory). | |
2520 | if ( | |
2521 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
2522 | if test "$*" = "X"; then | |
2523 | # -L didn't work. | |
2524 | set X `ls -t $srcdir/configure conftestfile` | |
2525 | fi | |
2526 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
2527 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
2528 | ||
2529 | # If neither matched, then we have a broken ls. This can happen | |
2530 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2531 | # broken ls alias from the environment. This has actually | |
2532 | # happened. Such a system could not be considered "sane". | |
e5a52504 MM |
2533 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2534 | alias in your environment" >&5 | |
2535 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2536 | alias in your environment" >&2;} | |
2537 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2538 | fi |
2539 | ||
2540 | test "$2" = conftestfile | |
2541 | ) | |
2542 | then | |
2543 | # Ok. | |
2544 | : | |
2545 | else | |
e5a52504 MM |
2546 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2547 | Check your system clock" >&5 | |
2548 | echo "$as_me: error: newly created file is older than distributed files! | |
2549 | Check your system clock" >&2;} | |
2550 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2551 | fi |
2552 | rm -f conftest* | |
e5a52504 MM |
2553 | echo "$as_me:$LINENO: result: yes" >&5 |
2554 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2555 | test "$program_prefix" != NONE && |
e5a52504 | 2556 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2557 | # Use a double $ so make ignores it. |
2558 | test "$program_suffix" != NONE && | |
e5a52504 MM |
2559 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2560 | # Double any \ or $. echo might interpret backslashes. | |
2561 | # By default was `s,x,x', remove it if useless. | |
2562 | cat <<\_ACEOF >conftest.sed | |
2563 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2564 | _ACEOF | |
2565 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2566 | rm conftest.sed | |
2567 | ||
2568 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2569 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2570 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2571 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2573 | else | |
2574 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2575 | all: |
e5a52504 MM |
2576 | @echo 'ac_maketemp="$(MAKE)"' |
2577 | _ACEOF | |
252b5132 | 2578 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e5a52504 | 2579 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2580 | if test -n "$ac_maketemp"; then |
2581 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2582 | else | |
2583 | eval ac_cv_prog_make_${ac_make}_set=no | |
2584 | fi | |
e5a52504 | 2585 | rm -f conftest.make |
252b5132 RH |
2586 | fi |
2587 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e5a52504 MM |
2588 | echo "$as_me:$LINENO: result: yes" >&5 |
2589 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2590 | SET_MAKE= |
2591 | else | |
e5a52504 MM |
2592 | echo "$as_me:$LINENO: result: no" >&5 |
2593 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2594 | SET_MAKE="MAKE=${MAKE-make}" |
2595 | fi | |
2596 | ||
2597 | ||
2598 | PACKAGE=binutils | |
2599 | ||
27b7e12d | 2600 | VERSION=${BFD_VERSION} |
252b5132 RH |
2601 | |
2602 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
e5a52504 MM |
2603 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2604 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2605 | { (exit 1); exit 1; }; } | |
252b5132 | 2606 | fi |
e5a52504 MM |
2607 | |
2608 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2609 | #define PACKAGE "$PACKAGE" |
e5a52504 MM |
2610 | _ACEOF |
2611 | ||
252b5132 | 2612 | |
e5a52504 | 2613 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2614 | #define VERSION "$VERSION" |
e5a52504 | 2615 | _ACEOF |
252b5132 RH |
2616 | |
2617 | ||
2618 | ||
2619 | missing_dir=`cd $ac_aux_dir && pwd` | |
e5a52504 MM |
2620 | echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 |
2621 | echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 | |
252b5132 RH |
2622 | # Run test in a subshell; some versions of sh will print an error if |
2623 | # an executable is not found, even if stderr is redirected. | |
2624 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
6ece5c52 AM |
2625 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
2626 | ACLOCAL=aclocal-${am__api_version} | |
e5a52504 MM |
2627 | echo "$as_me:$LINENO: result: found" >&5 |
2628 | echo "${ECHO_T}found" >&6 | |
252b5132 | 2629 | else |
6ece5c52 | 2630 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
e5a52504 MM |
2631 | echo "$as_me:$LINENO: result: missing" >&5 |
2632 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
2633 | fi |
2634 | ||
e5a52504 MM |
2635 | echo "$as_me:$LINENO: checking for working autoconf" >&5 |
2636 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 | |
252b5132 RH |
2637 | # Run test in a subshell; some versions of sh will print an error if |
2638 | # an executable is not found, even if stderr is redirected. | |
2639 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
2640 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
2641 | AUTOCONF=autoconf | |
e5a52504 MM |
2642 | echo "$as_me:$LINENO: result: found" >&5 |
2643 | echo "${ECHO_T}found" >&6 | |
252b5132 RH |
2644 | else |
2645 | AUTOCONF="$missing_dir/missing autoconf" | |
e5a52504 MM |
2646 | echo "$as_me:$LINENO: result: missing" >&5 |
2647 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
2648 | fi |
2649 | ||
e5a52504 MM |
2650 | echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 |
2651 | echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 | |
252b5132 RH |
2652 | # Run test in a subshell; some versions of sh will print an error if |
2653 | # an executable is not found, even if stderr is redirected. | |
2654 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
6ece5c52 AM |
2655 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
2656 | AUTOMAKE=automake-${am__api_version} | |
e5a52504 MM |
2657 | echo "$as_me:$LINENO: result: found" >&5 |
2658 | echo "${ECHO_T}found" >&6 | |
252b5132 | 2659 | else |
6ece5c52 | 2660 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
e5a52504 MM |
2661 | echo "$as_me:$LINENO: result: missing" >&5 |
2662 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
2663 | fi |
2664 | ||
e5a52504 MM |
2665 | echo "$as_me:$LINENO: checking for working autoheader" >&5 |
2666 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 | |
252b5132 RH |
2667 | # Run test in a subshell; some versions of sh will print an error if |
2668 | # an executable is not found, even if stderr is redirected. | |
2669 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
2670 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
2671 | AUTOHEADER=autoheader | |
e5a52504 MM |
2672 | echo "$as_me:$LINENO: result: found" >&5 |
2673 | echo "${ECHO_T}found" >&6 | |
252b5132 RH |
2674 | else |
2675 | AUTOHEADER="$missing_dir/missing autoheader" | |
e5a52504 MM |
2676 | echo "$as_me:$LINENO: result: missing" >&5 |
2677 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
2678 | fi |
2679 | ||
e5a52504 MM |
2680 | echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
2681 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 | |
252b5132 RH |
2682 | # Run test in a subshell; some versions of sh will print an error if |
2683 | # an executable is not found, even if stderr is redirected. | |
2684 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
2685 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
2686 | MAKEINFO=makeinfo | |
e5a52504 MM |
2687 | echo "$as_me:$LINENO: result: found" >&5 |
2688 | echo "${ECHO_T}found" >&6 | |
252b5132 RH |
2689 | else |
2690 | MAKEINFO="$missing_dir/missing makeinfo" | |
e5a52504 MM |
2691 | echo "$as_me:$LINENO: result: missing" >&5 |
2692 | echo "${ECHO_T}missing" >&6 | |
252b5132 RH |
2693 | fi |
2694 | ||
2695 | ||
2696 | ||
2697 | # Check whether --enable-shared or --disable-shared was given. | |
2698 | if test "${enable_shared+set}" = set; then | |
2699 | enableval="$enable_shared" | |
2700 | p=${PACKAGE-default} | |
6be7c12c | 2701 | case $enableval in |
252b5132 RH |
2702 | yes) enable_shared=yes ;; |
2703 | no) enable_shared=no ;; | |
2704 | *) | |
2705 | enable_shared=no | |
2706 | # Look at the argument we got. We use all the common list separators. | |
2707 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2708 | for pkg in $enableval; do | |
2709 | if test "X$pkg" = "X$p"; then | |
2710 | enable_shared=yes | |
2711 | fi | |
2712 | done | |
2713 | IFS="$ac_save_ifs" | |
2714 | ;; | |
2715 | esac | |
2716 | else | |
2717 | enable_shared=yes | |
e5a52504 | 2718 | fi; |
252b5132 RH |
2719 | # Check whether --enable-static or --disable-static was given. |
2720 | if test "${enable_static+set}" = set; then | |
2721 | enableval="$enable_static" | |
2722 | p=${PACKAGE-default} | |
6be7c12c | 2723 | case $enableval in |
252b5132 RH |
2724 | yes) enable_static=yes ;; |
2725 | no) enable_static=no ;; | |
2726 | *) | |
2727 | enable_static=no | |
2728 | # Look at the argument we got. We use all the common list separators. | |
2729 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2730 | for pkg in $enableval; do | |
2731 | if test "X$pkg" = "X$p"; then | |
2732 | enable_static=yes | |
2733 | fi | |
2734 | done | |
2735 | IFS="$ac_save_ifs" | |
2736 | ;; | |
2737 | esac | |
2738 | else | |
2739 | enable_static=yes | |
e5a52504 | 2740 | fi; |
252b5132 RH |
2741 | # Check whether --enable-fast-install or --disable-fast-install was given. |
2742 | if test "${enable_fast_install+set}" = set; then | |
2743 | enableval="$enable_fast_install" | |
2744 | p=${PACKAGE-default} | |
6be7c12c | 2745 | case $enableval in |
252b5132 RH |
2746 | yes) enable_fast_install=yes ;; |
2747 | no) enable_fast_install=no ;; | |
2748 | *) | |
2749 | enable_fast_install=no | |
2750 | # Look at the argument we got. We use all the common list separators. | |
e5a52504 MM |
2751 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
2752 | for pkg in $enableval; do | |
2753 | if test "X$pkg" = "X$p"; then | |
2754 | enable_fast_install=yes | |
1a09a22c NC |
2755 | fi |
2756 | done | |
2757 | IFS="$ac_save_ifs" | |
e5a52504 MM |
2758 | ;; |
2759 | esac | |
1a09a22c | 2760 | else |
e5a52504 MM |
2761 | enable_fast_install=yes |
2762 | fi; | |
1a09a22c | 2763 | |
252b5132 RH |
2764 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
2765 | if test "${with_gnu_ld+set}" = set; then | |
2766 | withval="$with_gnu_ld" | |
2767 | test "$withval" = no || with_gnu_ld=yes | |
2768 | else | |
2769 | with_gnu_ld=no | |
e5a52504 | 2770 | fi; |
252b5132 | 2771 | ac_prog=ld |
6be7c12c | 2772 | if test "$GCC" = yes; then |
252b5132 | 2773 | # Check if gcc -print-prog-name=ld gives a path. |
e5a52504 MM |
2774 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
2775 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
2776 | case $host in |
2777 | *-*-mingw*) | |
2778 | # gcc leaves a trailing carriage return which upsets mingw | |
2779 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
2780 | *) | |
2781 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
2782 | esac | |
6be7c12c | 2783 | case $ac_prog in |
252b5132 | 2784 | # Accept absolute paths. |
a74801ba | 2785 | [\\/]* | [A-Za-z]:[\\/]*) |
252b5132 RH |
2786 | re_direlt='/[^/][^/]*/\.\./' |
2787 | # Canonicalize the path of ld | |
2788 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
2789 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
2790 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
2791 | done | |
2792 | test -z "$LD" && LD="$ac_prog" | |
2793 | ;; | |
2794 | "") | |
2795 | # If it fails, then pretend we aren't using GCC. | |
2796 | ac_prog=ld | |
2797 | ;; | |
2798 | *) | |
2799 | # If it is relative, then search for the first ld in PATH. | |
2800 | with_gnu_ld=unknown | |
2801 | ;; | |
2802 | esac | |
2803 | elif test "$with_gnu_ld" = yes; then | |
e5a52504 MM |
2804 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
2805 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 2806 | else |
e5a52504 MM |
2807 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
2808 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 2809 | fi |
e5a52504 MM |
2810 | if test "${lt_cv_path_LD+set}" = set; then |
2811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
2812 | else |
2813 | if test -z "$LD"; then | |
a74801ba | 2814 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
2815 | for ac_dir in $PATH; do |
2816 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 2817 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
6be7c12c | 2818 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
2819 | # Check to see if the program is GNU ld. I'd rather use --version, |
2820 | # but apparently some GNU ld's only accept -v. | |
2821 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6be7c12c | 2822 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
2823 | test "$with_gnu_ld" != no && break |
2824 | else | |
2825 | test "$with_gnu_ld" != yes && break | |
2826 | fi | |
2827 | fi | |
2828 | done | |
2829 | IFS="$ac_save_ifs" | |
2830 | else | |
6be7c12c | 2831 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
2832 | fi |
2833 | fi | |
2834 | ||
6be7c12c | 2835 | LD="$lt_cv_path_LD" |
252b5132 | 2836 | if test -n "$LD"; then |
e5a52504 MM |
2837 | echo "$as_me:$LINENO: result: $LD" >&5 |
2838 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 2839 | else |
e5a52504 MM |
2840 | echo "$as_me:$LINENO: result: no" >&5 |
2841 | echo "${ECHO_T}no" >&6 | |
252b5132 | 2842 | fi |
e5a52504 MM |
2843 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
2844 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
2845 | { (exit 1); exit 1; }; } | |
2846 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
2847 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
2848 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
2849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
2850 | else |
2851 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
2852 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
6be7c12c | 2853 | lt_cv_prog_gnu_ld=yes |
252b5132 | 2854 | else |
6be7c12c | 2855 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
2856 | fi |
2857 | fi | |
e5a52504 MM |
2858 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
2859 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
6be7c12c | 2860 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 RH |
2861 | |
2862 | ||
e5a52504 MM |
2863 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
2864 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
2865 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
2866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
2867 | else |
2868 | lt_cv_ld_reload_flag='-r' | |
2869 | fi | |
e5a52504 MM |
2870 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
2871 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
2872 | reload_flag=$lt_cv_ld_reload_flag |
2873 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
2874 | ||
e5a52504 MM |
2875 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
2876 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
2877 | if test "${lt_cv_path_NM+set}" = set; then | |
2878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
2879 | else |
2880 | if test -n "$NM"; then | |
2881 | # Let the user override the test. | |
6be7c12c | 2882 | lt_cv_path_NM="$NM" |
252b5132 | 2883 | else |
a74801ba | 2884 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
2885 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
2886 | test -z "$ac_dir" && ac_dir=. | |
ac48eca1 AO |
2887 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
2888 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
2889 | # Check to see if the nm accepts a BSD-compat flag. |
2890 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
2891 | # nm: unknown option "B" ignored | |
58cccadb AO |
2892 | # Tru64's nm complains that /dev/null is an invalid object file |
2893 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
6be7c12c | 2894 | lt_cv_path_NM="$tmp_nm -B" |
252b5132 | 2895 | break |
ac48eca1 | 2896 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
6be7c12c | 2897 | lt_cv_path_NM="$tmp_nm -p" |
252b5132 RH |
2898 | break |
2899 | else | |
6be7c12c | 2900 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
252b5132 RH |
2901 | continue # so that we can try to find one that supports BSD flags |
2902 | fi | |
2903 | fi | |
2904 | done | |
2905 | IFS="$ac_save_ifs" | |
6be7c12c | 2906 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
2907 | fi |
2908 | fi | |
2909 | ||
6be7c12c | 2910 | NM="$lt_cv_path_NM" |
e5a52504 MM |
2911 | echo "$as_me:$LINENO: result: $NM" >&5 |
2912 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 2913 | |
e5a52504 MM |
2914 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2915 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2916 | LN_S=$as_ln_s | |
2917 | if test "$LN_S" = "ln -s"; then | |
2918 | echo "$as_me:$LINENO: result: yes" >&5 | |
2919 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2920 | else |
e5a52504 MM |
2921 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2922 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
2923 | fi |
2924 | ||
e5a52504 MM |
2925 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
2926 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
2927 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
2928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 2929 | else |
d64552c5 | 2930 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
2931 | lt_cv_file_magic_test_file= |
2932 | lt_cv_deplibs_check_method='unknown' | |
2933 | # Need to set the preceding variable on all platforms that support | |
2934 | # interlibrary dependencies. | |
2935 | # 'none' -- dependencies not supported. | |
2936 | # `unknown' -- same as none, but documents that we really don't know. | |
2937 | # 'pass_all' -- all dependencies passed with no checks. | |
2938 | # 'test_compile' -- check by making test program. | |
2939 | # 'file_magic [regex]' -- check by looking for files in library path | |
2940 | # which responds to the $file_magic_cmd with a given egrep regex. | |
2941 | # If you have `file' or equivalent on your system and you're not sure | |
2942 | # whether `pass_all' will *always* work, you probably want this one. | |
2943 | ||
6be7c12c AO |
2944 | case $host_os in |
2945 | aix*) | |
ac48eca1 AO |
2946 | lt_cv_deplibs_check_method=pass_all |
2947 | ;; | |
2948 | ||
2949 | beos*) | |
2950 | lt_cv_deplibs_check_method=pass_all | |
2951 | ;; | |
2952 | ||
2953 | bsdi4*) | |
6be7c12c AO |
2954 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
2955 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
2956 | lt_cv_file_magic_test_file=/shlib/libc.so |
2957 | ;; | |
2958 | ||
d64552c5 | 2959 | cygwin* | mingw* |pw32*) |
ac48eca1 | 2960 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 2961 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
2962 | ;; |
2963 | ||
6be7c12c AO |
2964 | darwin* | rhapsody*) |
2965 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
2966 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
2967 | case "$host_os" in | |
2968 | rhapsody* | darwin1.012) | |
2969 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
2970 | ;; | |
2971 | *) # Darwin 1.3 on | |
2972 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
2973 | ;; | |
2974 | esac | |
2975 | ;; | |
2976 | ||
ac48eca1 AO |
2977 | freebsd* ) |
2978 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
6be7c12c | 2979 | case $host_cpu in |
ac48eca1 | 2980 | i*86 ) |
58cccadb AO |
2981 | # Not sure whether the presence of OpenBSD here was a mistake. |
2982 | # Let's accept both of them until this is cleared up. | |
6be7c12c AO |
2983 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
2984 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
2985 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
2986 | ;; | |
2987 | esac | |
2988 | else | |
2989 | lt_cv_deplibs_check_method=pass_all | |
2990 | fi | |
2991 | ;; | |
2992 | ||
2993 | gnu*) | |
2994 | lt_cv_deplibs_check_method=pass_all | |
2995 | ;; | |
2996 | ||
6be7c12c | 2997 | hpux10.20*|hpux11*) |
4867be41 DJ |
2998 | case $host_cpu in |
2999 | hppa*) | |
3000 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3001 | lt_cv_file_magic_cmd=/usr/bin/file | |
3002 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3003 | ;; | |
3004 | ia64*) | |
3005 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3006 | lt_cv_file_magic_cmd=/usr/bin/file | |
3007 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3008 | ;; | |
3009 | esac | |
ac48eca1 AO |
3010 | ;; |
3011 | ||
3012 | irix5* | irix6*) | |
6be7c12c | 3013 | case $host_os in |
ac48eca1 AO |
3014 | irix5*) |
3015 | # this will be overridden with pass_all, but let us keep it just in case | |
3016 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3017 | ;; | |
3018 | *) | |
6be7c12c | 3019 | case $LD in |
ac48eca1 AO |
3020 | *-32|*"-32 ") libmagic=32-bit;; |
3021 | *-n32|*"-n32 ") libmagic=N32;; | |
3022 | *-64|*"-64 ") libmagic=64-bit;; | |
3023 | *) libmagic=never-match;; | |
3024 | esac | |
3025 | # this will be overridden with pass_all, but let us keep it just in case | |
6be7c12c AO |
3026 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3027 | ;; | |
ac48eca1 AO |
3028 | esac |
3029 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3030 | lt_cv_deplibs_check_method=pass_all | |
3031 | ;; | |
3032 | ||
3033 | # This must be Linux ELF. | |
58cccadb | 3034 | linux-gnu*) |
6be7c12c | 3035 | case $host_cpu in |
3c92310f | 3036 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3037 | lt_cv_deplibs_check_method=pass_all ;; |
3038 | *) | |
3039 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
6be7c12c AO |
3040 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3041 | esac | |
ac48eca1 AO |
3042 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3043 | ;; | |
3044 | ||
3045 | netbsd*) | |
6be7c12c AO |
3046 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3047 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
ac48eca1 | 3048 | else |
6be7c12c | 3049 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 AO |
3050 | fi |
3051 | ;; | |
3052 | ||
6be7c12c AO |
3053 | newsos6) |
3054 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3055 | lt_cv_file_magic_cmd=/usr/bin/file | |
3056 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3057 | ;; | |
3058 | ||
ac48eca1 AO |
3059 | osf3* | osf4* | osf5*) |
3060 | # this will be overridden with pass_all, but let us keep it just in case | |
3061 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3062 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3063 | lt_cv_deplibs_check_method=pass_all | |
3064 | ;; | |
3065 | ||
3066 | sco3.2v5*) | |
3067 | lt_cv_deplibs_check_method=pass_all | |
3068 | ;; | |
3069 | ||
3070 | solaris*) | |
3071 | lt_cv_deplibs_check_method=pass_all | |
3072 | lt_cv_file_magic_test_file=/lib/libc.so | |
3073 | ;; | |
3074 | ||
6be7c12c AO |
3075 | sysv5uw[78]* | sysv4*uw2*) |
3076 | lt_cv_deplibs_check_method=pass_all | |
3077 | ;; | |
3078 | ||
ac48eca1 | 3079 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6be7c12c | 3080 | case $host_vendor in |
ac48eca1 AO |
3081 | ncr) |
3082 | lt_cv_deplibs_check_method=pass_all | |
3083 | ;; | |
3084 | motorola) | |
6be7c12c AO |
3085 | 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]' |
3086 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3087 | ;; |
3088 | esac | |
3089 | ;; | |
3090 | esac | |
3091 | ||
3092 | fi | |
e5a52504 MM |
3093 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3094 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3095 | file_magic_cmd=$lt_cv_file_magic_cmd |
3096 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3097 | ||
ac48eca1 | 3098 | |
ac48eca1 | 3099 | |
ac48eca1 AO |
3100 | |
3101 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3102 | ||
3103 | # Only perform the check for file, if the check method requires it | |
6be7c12c | 3104 | case $deplibs_check_method in |
ac48eca1 | 3105 | file_magic*) |
d64552c5 | 3106 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
e5a52504 MM |
3107 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3108 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3109 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3111 | else |
6be7c12c | 3112 | case $MAGIC_CMD in |
ac48eca1 | 3113 | /*) |
d64552c5 | 3114 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3115 | ;; |
3116 | ?:/*) | |
d64552c5 | 3117 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3118 | ;; |
3119 | *) | |
d64552c5 | 3120 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3121 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3122 | ac_dummy="/usr/bin:$PATH" | |
3123 | for ac_dir in $ac_dummy; do | |
3124 | test -z "$ac_dir" && ac_dir=. | |
3125 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3126 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3127 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3128 | case $deplibs_check_method in |
ac48eca1 AO |
3129 | "file_magic "*) |
3130 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3131 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3132 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3133 | egrep "$file_magic_regex" > /dev/null; then | |
3134 | : | |
3135 | else | |
3136 | cat <<EOF 1>&2 | |
3137 | ||
3138 | *** Warning: the command libtool uses to detect shared libraries, | |
3139 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3140 | *** The result is that libtool may fail to recognize shared libraries | |
3141 | *** as such. This will affect the creation of libtool libraries that | |
3142 | *** depend on shared libraries, but programs linked with such libtool | |
3143 | *** libraries will work regardless of this problem. Nevertheless, you | |
3144 | *** may want to report the problem to your system manager and/or to | |
3145 | *** bug-libtool@gnu.org | |
3146 | ||
3147 | EOF | |
3148 | fi ;; | |
3149 | esac | |
3150 | fi | |
3151 | break | |
3152 | fi | |
3153 | done | |
3154 | IFS="$ac_save_ifs" | |
d64552c5 | 3155 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3156 | ;; |
3157 | esac | |
3158 | fi | |
3159 | ||
d64552c5 AO |
3160 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3161 | if test -n "$MAGIC_CMD"; then | |
e5a52504 MM |
3162 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3163 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3164 | else |
e5a52504 MM |
3165 | echo "$as_me:$LINENO: result: no" >&5 |
3166 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3167 | fi |
3168 | ||
d64552c5 | 3169 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3170 | if test -n "$ac_tool_prefix"; then |
e5a52504 MM |
3171 | echo "$as_me:$LINENO: checking for file" >&5 |
3172 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3173 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3175 | else |
6be7c12c | 3176 | case $MAGIC_CMD in |
ac48eca1 | 3177 | /*) |
d64552c5 | 3178 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3179 | ;; |
3180 | ?:/*) | |
d64552c5 | 3181 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3182 | ;; |
3183 | *) | |
d64552c5 | 3184 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3185 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3186 | ac_dummy="/usr/bin:$PATH" | |
3187 | for ac_dir in $ac_dummy; do | |
3188 | test -z "$ac_dir" && ac_dir=. | |
3189 | if test -f $ac_dir/file; then | |
d64552c5 | 3190 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3191 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3192 | case $deplibs_check_method in |
ac48eca1 AO |
3193 | "file_magic "*) |
3194 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3195 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3196 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3197 | egrep "$file_magic_regex" > /dev/null; then | |
3198 | : | |
3199 | else | |
3200 | cat <<EOF 1>&2 | |
3201 | ||
3202 | *** Warning: the command libtool uses to detect shared libraries, | |
3203 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3204 | *** The result is that libtool may fail to recognize shared libraries | |
3205 | *** as such. This will affect the creation of libtool libraries that | |
3206 | *** depend on shared libraries, but programs linked with such libtool | |
3207 | *** libraries will work regardless of this problem. Nevertheless, you | |
3208 | *** may want to report the problem to your system manager and/or to | |
3209 | *** bug-libtool@gnu.org | |
3210 | ||
3211 | EOF | |
3212 | fi ;; | |
3213 | esac | |
3214 | fi | |
3215 | break | |
3216 | fi | |
3217 | done | |
3218 | IFS="$ac_save_ifs" | |
d64552c5 | 3219 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3220 | ;; |
3221 | esac | |
3222 | fi | |
3223 | ||
d64552c5 AO |
3224 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3225 | if test -n "$MAGIC_CMD"; then | |
e5a52504 MM |
3226 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3227 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3228 | else |
e5a52504 MM |
3229 | echo "$as_me:$LINENO: result: no" >&5 |
3230 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3231 | fi |
3232 | ||
3233 | else | |
d64552c5 | 3234 | MAGIC_CMD=: |
ac48eca1 AO |
3235 | fi |
3236 | fi | |
252b5132 | 3237 | |
ac48eca1 AO |
3238 | fi |
3239 | ;; | |
a74801ba | 3240 | esac |
252b5132 | 3241 | |
e5a52504 MM |
3242 | if test -n "$ac_tool_prefix"; then |
3243 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3244 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
e5a52504 MM |
3245 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3247 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3249 | else |
3250 | if test -n "$RANLIB"; then | |
3251 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3252 | else | |
e5a52504 MM |
3253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3254 | for as_dir in $PATH | |
3255 | do | |
3256 | IFS=$as_save_IFS | |
3257 | test -z "$as_dir" && as_dir=. | |
3258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3259 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3260 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3262 | break 2 | |
3263 | fi | |
3264 | done | |
3265 | done | |
3266 | ||
ac48eca1 AO |
3267 | fi |
3268 | fi | |
e5a52504 | 3269 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3270 | if test -n "$RANLIB"; then |
e5a52504 MM |
3271 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3272 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3273 | else |
e5a52504 MM |
3274 | echo "$as_me:$LINENO: result: no" >&5 |
3275 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3276 | fi |
3277 | ||
e5a52504 | 3278 | fi |
ac48eca1 | 3279 | if test -z "$ac_cv_prog_RANLIB"; then |
e5a52504 | 3280 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3281 | # Extract the first word of "ranlib", so it can be a program name with args. |
3282 | set dummy ranlib; ac_word=$2 | |
e5a52504 MM |
3283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3285 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3287 | else |
e5a52504 MM |
3288 | if test -n "$ac_ct_RANLIB"; then |
3289 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
ac48eca1 | 3290 | else |
e5a52504 MM |
3291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3292 | for as_dir in $PATH | |
3293 | do | |
3294 | IFS=$as_save_IFS | |
3295 | test -z "$as_dir" && as_dir=. | |
3296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3298 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3300 | break 2 | |
3301 | fi | |
3302 | done | |
3303 | done | |
3304 | ||
3305 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3306 | fi |
3307 | fi | |
e5a52504 MM |
3308 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3309 | if test -n "$ac_ct_RANLIB"; then | |
3310 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3311 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3312 | else |
e5a52504 MM |
3313 | echo "$as_me:$LINENO: result: no" >&5 |
3314 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3315 | fi |
3316 | ||
e5a52504 | 3317 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3318 | else |
e5a52504 | 3319 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3320 | fi |
3321 | ||
e5a52504 MM |
3322 | if test -n "$ac_tool_prefix"; then |
3323 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3324 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
e5a52504 MM |
3325 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3327 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3329 | else |
3330 | if test -n "$STRIP"; then | |
3331 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3332 | else | |
e5a52504 MM |
3333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3334 | for as_dir in $PATH | |
3335 | do | |
3336 | IFS=$as_save_IFS | |
3337 | test -z "$as_dir" && as_dir=. | |
3338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3339 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3340 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3341 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3342 | break 2 | |
3343 | fi | |
3344 | done | |
3345 | done | |
3346 | ||
ac48eca1 AO |
3347 | fi |
3348 | fi | |
e5a52504 | 3349 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3350 | if test -n "$STRIP"; then |
e5a52504 MM |
3351 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3352 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3353 | else |
e5a52504 MM |
3354 | echo "$as_me:$LINENO: result: no" >&5 |
3355 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3356 | fi |
3357 | ||
e5a52504 | 3358 | fi |
ac48eca1 | 3359 | if test -z "$ac_cv_prog_STRIP"; then |
e5a52504 | 3360 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3361 | # Extract the first word of "strip", so it can be a program name with args. |
3362 | set dummy strip; ac_word=$2 | |
e5a52504 MM |
3363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3365 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3367 | else |
e5a52504 MM |
3368 | if test -n "$ac_ct_STRIP"; then |
3369 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
ac48eca1 | 3370 | else |
e5a52504 MM |
3371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3372 | for as_dir in $PATH | |
3373 | do | |
3374 | IFS=$as_save_IFS | |
3375 | test -z "$as_dir" && as_dir=. | |
3376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3377 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3378 | ac_cv_prog_ac_ct_STRIP="strip" | |
3379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3380 | break 2 | |
3381 | fi | |
3382 | done | |
3383 | done | |
3384 | ||
3385 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3386 | fi |
3387 | fi | |
e5a52504 MM |
3388 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3389 | if test -n "$ac_ct_STRIP"; then | |
3390 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3391 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3392 | else |
e5a52504 MM |
3393 | echo "$as_me:$LINENO: result: no" >&5 |
3394 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3395 | fi |
3396 | ||
e5a52504 | 3397 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3398 | else |
e5a52504 | 3399 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 AO |
3400 | fi |
3401 | ||
3402 | ||
252b5132 RH |
3403 | # Check for any special flags to pass to ltconfig. |
3404 | libtool_flags="--cache-file=$cache_file" | |
3405 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3406 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3407 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
6be7c12c AO |
3408 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3409 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3410 | |
a74801ba ILT |
3411 | |
3412 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3413 | if test "${enable_libtool_lock+set}" = set; then | |
3414 | enableval="$enable_libtool_lock" | |
a74801ba | 3415 | |
e5a52504 | 3416 | fi; |
a74801ba ILT |
3417 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3418 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3419 | ||
e5a52504 | 3420 | |
ac48eca1 AO |
3421 | # Check whether --with-pic or --without-pic was given. |
3422 | if test "${with_pic+set}" = set; then | |
3423 | withval="$with_pic" | |
3424 | pic_mode="$withval" | |
3425 | else | |
3426 | pic_mode=default | |
e5a52504 | 3427 | fi; |
ac48eca1 AO |
3428 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3429 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3430 | ||
252b5132 RH |
3431 | # Some flags need to be propagated to the compiler or linker for good |
3432 | # libtool support. | |
6be7c12c | 3433 | case $host in |
252b5132 RH |
3434 | *-*-irix6*) |
3435 | # Find out which ABI we are using. | |
e5a52504 MM |
3436 | echo '#line 3436 "configure"' > conftest.$ac_ext |
3437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3438 | (eval $ac_compile) 2>&5 | |
3439 | ac_status=$? | |
3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3441 | (exit $ac_status); }; then | |
27a710e5 NC |
3442 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3443 | case `/usr/bin/file conftest.$ac_objext` in | |
3444 | *32-bit*) | |
3445 | LD="${LD-ld} -melf32bsmip" | |
3446 | ;; | |
3447 | *N32*) | |
3448 | LD="${LD-ld} -melf32bmipn32" | |
3449 | ;; | |
3450 | *64-bit*) | |
3451 | LD="${LD-ld} -melf64bmip" | |
3452 | ;; | |
3453 | esac | |
3454 | else | |
6be7c12c | 3455 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3456 | *32-bit*) |
3457 | LD="${LD-ld} -32" | |
3458 | ;; | |
3459 | *N32*) | |
3460 | LD="${LD-ld} -n32" | |
3461 | ;; | |
3462 | *64-bit*) | |
3463 | LD="${LD-ld} -64" | |
3464 | ;; | |
3465 | esac | |
27a710e5 | 3466 | fi |
252b5132 RH |
3467 | fi |
3468 | rm -rf conftest* | |
3469 | ;; | |
3470 | ||
4867be41 DJ |
3471 | ia64-*-hpux*) |
3472 | # Find out which ABI we are using. | |
3473 | echo 'int i;' > conftest.$ac_ext | |
e5a52504 MM |
3474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3475 | (eval $ac_compile) 2>&5 | |
3476 | ac_status=$? | |
3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3478 | (exit $ac_status); }; then | |
4867be41 DJ |
3479 | case "`/usr/bin/file conftest.o`" in |
3480 | *ELF-32*) | |
3481 | HPUX_IA64_MODE="32" | |
3482 | ;; | |
3483 | *ELF-64*) | |
3484 | HPUX_IA64_MODE="64" | |
3485 | ;; | |
3486 | esac | |
3487 | fi | |
3488 | rm -rf conftest* | |
3489 | ;; | |
3490 | ||
252b5132 RH |
3491 | *-*-sco3.2v5*) |
3492 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3493 | SAVE_CFLAGS="$CFLAGS" | |
3494 | CFLAGS="$CFLAGS -belf" | |
e5a52504 MM |
3495 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3496 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3497 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3499 | else |
e5a52504 MM |
3500 | |
3501 | ||
ac48eca1 | 3502 | ac_ext=c |
ac48eca1 | 3503 | ac_cpp='$CPP $CPPFLAGS' |
e5a52504 MM |
3504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3507 | |
e5a52504 MM |
3508 | cat >conftest.$ac_ext <<_ACEOF |
3509 | /* confdefs.h. */ | |
3510 | _ACEOF | |
3511 | cat confdefs.h >>conftest.$ac_ext | |
3512 | cat >>conftest.$ac_ext <<_ACEOF | |
3513 | /* end confdefs.h. */ | |
252b5132 | 3514 | |
e5a52504 MM |
3515 | int |
3516 | main () | |
3517 | { | |
252b5132 | 3518 | |
e5a52504 MM |
3519 | ; |
3520 | return 0; | |
3521 | } | |
3522 | _ACEOF | |
3523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3525 | (eval $ac_link) 2>conftest.er1 | |
3526 | ac_status=$? | |
3527 | grep -v '^ *+' conftest.er1 >conftest.err | |
3528 | rm -f conftest.er1 | |
3529 | cat conftest.err >&5 | |
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3531 | (exit $ac_status); } && | |
3532 | { ac_try='test -z "$ac_c_werror_flag" | |
3533 | || test ! -s conftest.err' | |
3534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3535 | (eval $ac_try) 2>&5 | |
3536 | ac_status=$? | |
3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3538 | (exit $ac_status); }; } && | |
3539 | { ac_try='test -s conftest$ac_exeext' | |
3540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3541 | (eval $ac_try) 2>&5 | |
3542 | ac_status=$? | |
3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3544 | (exit $ac_status); }; }; then | |
252b5132 RH |
3545 | lt_cv_cc_needs_belf=yes |
3546 | else | |
e5a52504 MM |
3547 | echo "$as_me: failed program was:" >&5 |
3548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3549 | ||
3550 | lt_cv_cc_needs_belf=no | |
252b5132 | 3551 | fi |
e5a52504 MM |
3552 | rm -f conftest.err conftest.$ac_objext \ |
3553 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 3554 | ac_ext=c |
ac48eca1 | 3555 | ac_cpp='$CPP $CPPFLAGS' |
e5a52504 MM |
3556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3559 | |
252b5132 | 3560 | fi |
e5a52504 MM |
3561 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3562 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
252b5132 RH |
3563 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3564 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3565 | CFLAGS="$SAVE_CFLAGS" | |
3566 | fi | |
3567 | ;; | |
3568 | ||
252b5132 RH |
3569 | |
3570 | esac | |
3571 | ||
252b5132 RH |
3572 | |
3573 | # Save cache, so that ltconfig can load it | |
e5a52504 | 3574 | cat >confcache <<\_ACEOF |
252b5132 RH |
3575 | # This file is a shell script that caches the results of configure |
3576 | # tests run on this system so they can be shared between configure | |
e5a52504 MM |
3577 | # scripts and configure runs, see configure's option --config-cache. |
3578 | # It is not useful on other systems. If it contains results you don't | |
3579 | # want to keep, you may remove or edit it. | |
252b5132 | 3580 | # |
e5a52504 MM |
3581 | # config.status only pays attention to the cache file if you give it |
3582 | # the --recheck option to rerun configure. | |
252b5132 | 3583 | # |
e5a52504 MM |
3584 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3585 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3586 | # following values. | |
3587 | ||
3588 | _ACEOF | |
3589 | ||
252b5132 RH |
3590 | # The following way of writing the cache mishandles newlines in values, |
3591 | # but we know of no workaround that is simple, portable, and efficient. | |
3592 | # So, don't put newlines in cache variables' values. | |
3593 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3594 | # and sets the high bit in the cache file unless we assign to the vars. | |
e5a52504 MM |
3595 | { |
3596 | (set) 2>&1 | | |
3597 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3598 | *ac_space=\ *) | |
3599 | # `set' does not quote correctly, so add quotes (double-quote | |
3600 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3601 | sed -n \ | |
3602 | "s/'/'\\\\''/g; | |
3603 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3604 | ;; | |
3605 | *) | |
3606 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3607 | sed -n \ | |
3608 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
3609 | ;; | |
3610 | esac; | |
3611 | } | | |
3612 | sed ' | |
3613 | t clear | |
3614 | : clear | |
3615 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3616 | t end | |
3617 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3618 | : end' >>confcache | |
3619 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
252b5132 | 3620 | if test -w $cache_file; then |
e5a52504 MM |
3621 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
3622 | cat confcache >$cache_file | |
252b5132 RH |
3623 | else |
3624 | echo "not updating unwritable cache $cache_file" | |
3625 | fi | |
3626 | fi | |
3627 | rm -f confcache | |
3628 | ||
252b5132 | 3629 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 3630 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 3631 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
3632 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
3633 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
3634 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
3635 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 3636 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 3637 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
e5a52504 MM |
3638 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
3639 | echo "$as_me: error: libtool configure failed" >&2;} | |
3640 | { (exit 1); exit 1; }; } | |
252b5132 RH |
3641 | |
3642 | # Reload cache, that may have been modified by ltconfig | |
3643 | if test -r "$cache_file"; then | |
e5a52504 MM |
3644 | # Some versions of bash will fail to source /dev/null (special |
3645 | # files actually), so we avoid doing that. | |
3646 | if test -f "$cache_file"; then | |
3647 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
3648 | echo "$as_me: loading cache $cache_file" >&6;} | |
3649 | case $cache_file in | |
3650 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
3651 | *) . ./$cache_file;; | |
3652 | esac | |
3653 | fi | |
252b5132 | 3654 | else |
e5a52504 MM |
3655 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
3656 | echo "$as_me: creating cache $cache_file" >&6;} | |
3657 | >$cache_file | |
252b5132 RH |
3658 | fi |
3659 | ||
3660 | ||
3661 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 3662 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
252b5132 RH |
3663 | |
3664 | # Always use our own libtool. | |
3665 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
3666 | ||
3667 | # Redirect the config.log output again, so that the ltconfig log is not | |
3668 | # clobbered by the next message. | |
3669 | exec 5>>./config.log | |
3670 | ||
ac48eca1 | 3671 | |
e5a52504 MM |
3672 | |
3673 | ||
3674 | ||
3675 | ||
ac48eca1 | 3676 | |
252b5132 RH |
3677 | # Check whether --enable-targets or --disable-targets was given. |
3678 | if test "${enable_targets+set}" = set; then | |
3679 | enableval="$enable_targets" | |
3680 | case "${enableval}" in | |
e5a52504 MM |
3681 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
3682 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
3683 | { (exit 1); exit 1; }; } | |
252b5132 RH |
3684 | ;; |
3685 | no) enable_targets= ;; | |
3686 | *) enable_targets=$enableval ;; | |
3687 | esac | |
e5a52504 | 3688 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
3689 | if test "${enable_commonbfdlib+set}" = set; then |
3690 | enableval="$enable_commonbfdlib" | |
3691 | case "${enableval}" in | |
3692 | yes) commonbfdlib=true ;; | |
3693 | no) commonbfdlib=false ;; | |
e5a52504 MM |
3694 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
3695 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
3696 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 3697 | esac |
e5a52504 | 3698 | fi; |
0218d1e4 | 3699 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
a2d91340 AC |
3700 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
3701 | if test "${enable_build_warnings+set}" = set; then | |
3702 | enableval="$enable_build_warnings" | |
3703 | case "${enableval}" in | |
3704 | yes) ;; | |
3705 | no) build_warnings="-w";; | |
3706 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
3707 | build_warnings="${build_warnings} ${t}";; | |
3708 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
3709 | build_warnings="${t} ${build_warnings}";; | |
3710 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
3711 | esac | |
3712 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
3713 | echo "Setting warning flags = $build_warnings" 6>&1 | |
3714 | fi | |
e5a52504 | 3715 | fi; WARN_CFLAGS="" |
a2d91340 AC |
3716 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then |
3717 | WARN_CFLAGS="${build_warnings}" | |
3718 | fi | |
3719 | ||
3720 | ||
252b5132 | 3721 | |
e5a52504 | 3722 | ac_config_headers="$ac_config_headers config.h:config.in" |
252b5132 | 3723 | |
e5a52504 | 3724 | ac_config_commands="$ac_config_commands default-1" |
252b5132 RH |
3725 | |
3726 | ||
3727 | if test -z "$target" ; then | |
e5a52504 MM |
3728 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
3729 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
3730 | { (exit 1); exit 1; }; } | |
252b5132 RH |
3731 | fi |
3732 | if test -z "$host" ; then | |
e5a52504 MM |
3733 | { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5 |
3734 | echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;} | |
3735 | { (exit 1); exit 1; }; } | |
3736 | fi | |
3737 | ||
3738 | ac_ext=c | |
3739 | ac_cpp='$CPP $CPPFLAGS' | |
3740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3743 | if test -n "$ac_tool_prefix"; then | |
3744 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3745 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3748 | if test "${ac_cv_prog_CC+set}" = set; then | |
3749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3750 | else | |
3751 | if test -n "$CC"; then | |
3752 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3753 | else | |
3754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3755 | for as_dir in $PATH | |
3756 | do | |
3757 | IFS=$as_save_IFS | |
3758 | test -z "$as_dir" && as_dir=. | |
3759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3761 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3763 | break 2 | |
3764 | fi | |
3765 | done | |
3766 | done | |
3767 | ||
3768 | fi | |
3769 | fi | |
3770 | CC=$ac_cv_prog_CC | |
3771 | if test -n "$CC"; then | |
3772 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3773 | echo "${ECHO_T}$CC" >&6 | |
3774 | else | |
3775 | echo "$as_me:$LINENO: result: no" >&5 | |
3776 | echo "${ECHO_T}no" >&6 | |
3777 | fi | |
3778 | ||
3779 | fi | |
3780 | if test -z "$ac_cv_prog_CC"; then | |
3781 | ac_ct_CC=$CC | |
3782 | # Extract the first word of "gcc", so it can be a program name with args. | |
3783 | set dummy gcc; ac_word=$2 | |
3784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3786 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3788 | else | |
3789 | if test -n "$ac_ct_CC"; then | |
3790 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3791 | else | |
3792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3793 | for as_dir in $PATH | |
3794 | do | |
3795 | IFS=$as_save_IFS | |
3796 | test -z "$as_dir" && as_dir=. | |
3797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3799 | ac_cv_prog_ac_ct_CC="gcc" | |
3800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3801 | break 2 | |
3802 | fi | |
3803 | done | |
3804 | done | |
3805 | ||
3806 | fi | |
3807 | fi | |
3808 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3809 | if test -n "$ac_ct_CC"; then | |
3810 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3811 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3812 | else | |
3813 | echo "$as_me:$LINENO: result: no" >&5 | |
3814 | echo "${ECHO_T}no" >&6 | |
3815 | fi | |
3816 | ||
3817 | CC=$ac_ct_CC | |
3818 | else | |
3819 | CC="$ac_cv_prog_CC" | |
3820 | fi | |
3821 | ||
3822 | if test -z "$CC"; then | |
3823 | if test -n "$ac_tool_prefix"; then | |
3824 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3825 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3828 | if test "${ac_cv_prog_CC+set}" = set; then | |
3829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3830 | else | |
3831 | if test -n "$CC"; then | |
3832 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3833 | else | |
3834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3835 | for as_dir in $PATH | |
3836 | do | |
3837 | IFS=$as_save_IFS | |
3838 | test -z "$as_dir" && as_dir=. | |
3839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3841 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3843 | break 2 | |
3844 | fi | |
3845 | done | |
3846 | done | |
3847 | ||
3848 | fi | |
3849 | fi | |
3850 | CC=$ac_cv_prog_CC | |
3851 | if test -n "$CC"; then | |
3852 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3853 | echo "${ECHO_T}$CC" >&6 | |
3854 | else | |
3855 | echo "$as_me:$LINENO: result: no" >&5 | |
3856 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3857 | fi |
3858 | ||
e5a52504 MM |
3859 | fi |
3860 | if test -z "$ac_cv_prog_CC"; then | |
3861 | ac_ct_CC=$CC | |
3862 | # Extract the first word of "cc", so it can be a program name with args. | |
3863 | set dummy cc; ac_word=$2 | |
3864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3866 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3868 | else |
e5a52504 MM |
3869 | if test -n "$ac_ct_CC"; then |
3870 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3871 | else |
e5a52504 MM |
3872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3873 | for as_dir in $PATH | |
3874 | do | |
3875 | IFS=$as_save_IFS | |
3876 | test -z "$as_dir" && as_dir=. | |
3877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3878 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3879 | ac_cv_prog_ac_ct_CC="cc" | |
3880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3881 | break 2 | |
3882 | fi | |
3883 | done | |
3884 | done | |
3885 | ||
252b5132 RH |
3886 | fi |
3887 | fi | |
e5a52504 MM |
3888 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3889 | if test -n "$ac_ct_CC"; then | |
3890 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3891 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3892 | else | |
3893 | echo "$as_me:$LINENO: result: no" >&5 | |
3894 | echo "${ECHO_T}no" >&6 | |
3895 | fi | |
3896 | ||
3897 | CC=$ac_ct_CC | |
252b5132 | 3898 | else |
e5a52504 | 3899 | CC="$ac_cv_prog_CC" |
252b5132 RH |
3900 | fi |
3901 | ||
e5a52504 | 3902 | fi |
252b5132 RH |
3903 | if test -z "$CC"; then |
3904 | # Extract the first word of "cc", so it can be a program name with args. | |
3905 | set dummy cc; ac_word=$2 | |
e5a52504 MM |
3906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3908 | if test "${ac_cv_prog_CC+set}" = set; then | |
3909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3910 | else |
3911 | if test -n "$CC"; then | |
3912 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3913 | else | |
252b5132 | 3914 | ac_prog_rejected=no |
e5a52504 MM |
3915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3916 | for as_dir in $PATH | |
3917 | do | |
3918 | IFS=$as_save_IFS | |
3919 | test -z "$as_dir" && as_dir=. | |
3920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3922 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3923 | ac_prog_rejected=yes | |
3924 | continue | |
3925 | fi | |
3926 | ac_cv_prog_CC="cc" | |
3927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3928 | break 2 | |
3929 | fi | |
3930 | done | |
3931 | done | |
3932 | ||
252b5132 RH |
3933 | if test $ac_prog_rejected = yes; then |
3934 | # We found a bogon in the path, so make sure we never use it. | |
3935 | set dummy $ac_cv_prog_CC | |
3936 | shift | |
e5a52504 | 3937 | if test $# != 0; then |
252b5132 RH |
3938 | # We chose a different compiler from the bogus one. |
3939 | # However, it has the same basename, so the bogon will be chosen | |
3940 | # first if we set CC to just the basename; use the full file name. | |
3941 | shift | |
e5a52504 | 3942 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
252b5132 RH |
3943 | fi |
3944 | fi | |
3945 | fi | |
3946 | fi | |
e5a52504 | 3947 | CC=$ac_cv_prog_CC |
252b5132 | 3948 | if test -n "$CC"; then |
e5a52504 MM |
3949 | echo "$as_me:$LINENO: result: $CC" >&5 |
3950 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3951 | else |
e5a52504 MM |
3952 | echo "$as_me:$LINENO: result: no" >&5 |
3953 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3954 | fi |
3955 | ||
e5a52504 MM |
3956 | fi |
3957 | if test -z "$CC"; then | |
3958 | if test -n "$ac_tool_prefix"; then | |
3959 | for ac_prog in cl | |
3960 | do | |
3961 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3962 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3965 | if test "${ac_cv_prog_CC+set}" = set; then | |
3966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3967 | else |
3968 | if test -n "$CC"; then | |
3969 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3970 | else | |
e5a52504 MM |
3971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3972 | for as_dir in $PATH | |
3973 | do | |
3974 | IFS=$as_save_IFS | |
3975 | test -z "$as_dir" && as_dir=. | |
3976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3978 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3980 | break 2 | |
3981 | fi | |
3982 | done | |
3983 | done | |
3984 | ||
252b5132 RH |
3985 | fi |
3986 | fi | |
e5a52504 | 3987 | CC=$ac_cv_prog_CC |
252b5132 | 3988 | if test -n "$CC"; then |
e5a52504 MM |
3989 | echo "$as_me:$LINENO: result: $CC" >&5 |
3990 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3991 | else |
e5a52504 MM |
3992 | echo "$as_me:$LINENO: result: no" >&5 |
3993 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3994 | fi |
3995 | ||
e5a52504 MM |
3996 | test -n "$CC" && break |
3997 | done | |
3998 | fi | |
3999 | if test -z "$CC"; then | |
4000 | ac_ct_CC=$CC | |
4001 | for ac_prog in cl | |
4002 | do | |
4003 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4004 | set dummy $ac_prog; ac_word=$2 | |
4005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4007 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4009 | else | |
4010 | if test -n "$ac_ct_CC"; then | |
4011 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4012 | else | |
4013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4014 | for as_dir in $PATH | |
4015 | do | |
4016 | IFS=$as_save_IFS | |
4017 | test -z "$as_dir" && as_dir=. | |
4018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4019 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4020 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4022 | break 2 | |
252b5132 | 4023 | fi |
e5a52504 MM |
4024 | done |
4025 | done | |
4026 | ||
4027 | fi | |
4028 | fi | |
4029 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4030 | if test -n "$ac_ct_CC"; then | |
4031 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4032 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 4033 | else |
e5a52504 MM |
4034 | echo "$as_me:$LINENO: result: no" >&5 |
4035 | echo "${ECHO_T}no" >&6 | |
252b5132 | 4036 | fi |
252b5132 | 4037 | |
e5a52504 MM |
4038 | test -n "$ac_ct_CC" && break |
4039 | done | |
252b5132 | 4040 | |
e5a52504 MM |
4041 | CC=$ac_ct_CC |
4042 | fi | |
4043 | ||
4044 | fi | |
4045 | ||
4046 | ||
4047 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4048 | See \`config.log' for more details." >&5 | |
4049 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4050 | See \`config.log' for more details." >&2;} | |
4051 | { (exit 1); exit 1; }; } | |
4052 | ||
4053 | # Provide some information about the compiler. | |
4054 | echo "$as_me:$LINENO:" \ | |
4055 | "checking for C compiler version" >&5 | |
4056 | ac_compiler=`set X $ac_compile; echo $2` | |
4057 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4058 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4059 | ac_status=$? | |
4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4061 | (exit $ac_status); } | |
4062 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4063 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4064 | ac_status=$? | |
4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4066 | (exit $ac_status); } | |
4067 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4068 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4069 | ac_status=$? | |
4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4071 | (exit $ac_status); } | |
4072 | ||
4073 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4074 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4075 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4077 | else | |
4078 | cat >conftest.$ac_ext <<_ACEOF | |
4079 | /* confdefs.h. */ | |
4080 | _ACEOF | |
4081 | cat confdefs.h >>conftest.$ac_ext | |
4082 | cat >>conftest.$ac_ext <<_ACEOF | |
4083 | /* end confdefs.h. */ | |
4084 | ||
4085 | int | |
4086 | main () | |
4087 | { | |
4088 | #ifndef __GNUC__ | |
4089 | choke me | |
252b5132 | 4090 | #endif |
252b5132 | 4091 | |
e5a52504 MM |
4092 | ; |
4093 | return 0; | |
4094 | } | |
4095 | _ACEOF | |
4096 | rm -f conftest.$ac_objext | |
4097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4098 | (eval $ac_compile) 2>conftest.er1 | |
4099 | ac_status=$? | |
4100 | grep -v '^ *+' conftest.er1 >conftest.err | |
4101 | rm -f conftest.er1 | |
4102 | cat conftest.err >&5 | |
4103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4104 | (exit $ac_status); } && | |
4105 | { ac_try='test -z "$ac_c_werror_flag" | |
4106 | || test ! -s conftest.err' | |
4107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4108 | (eval $ac_try) 2>&5 | |
4109 | ac_status=$? | |
4110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4111 | (exit $ac_status); }; } && | |
4112 | { ac_try='test -s conftest.$ac_objext' | |
4113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4114 | (eval $ac_try) 2>&5 | |
4115 | ac_status=$? | |
4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4117 | (exit $ac_status); }; }; then | |
4118 | ac_compiler_gnu=yes | |
4119 | else | |
4120 | echo "$as_me: failed program was:" >&5 | |
4121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4122 | ||
4123 | ac_compiler_gnu=no | |
4124 | fi | |
4125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4126 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4127 | ||
4128 | fi | |
4129 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4130 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4131 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4132 | ac_test_CFLAGS=${CFLAGS+set} | |
4133 | ac_save_CFLAGS=$CFLAGS | |
4134 | CFLAGS="-g" | |
4135 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4136 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4137 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4139 | else | |
4140 | cat >conftest.$ac_ext <<_ACEOF | |
4141 | /* confdefs.h. */ | |
4142 | _ACEOF | |
4143 | cat confdefs.h >>conftest.$ac_ext | |
4144 | cat >>conftest.$ac_ext <<_ACEOF | |
4145 | /* end confdefs.h. */ | |
252b5132 | 4146 | |
e5a52504 MM |
4147 | int |
4148 | main () | |
4149 | { | |
252b5132 | 4150 | |
e5a52504 MM |
4151 | ; |
4152 | return 0; | |
4153 | } | |
4154 | _ACEOF | |
4155 | rm -f conftest.$ac_objext | |
4156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4157 | (eval $ac_compile) 2>conftest.er1 | |
4158 | ac_status=$? | |
4159 | grep -v '^ *+' conftest.er1 >conftest.err | |
4160 | rm -f conftest.er1 | |
4161 | cat conftest.err >&5 | |
4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4163 | (exit $ac_status); } && | |
4164 | { ac_try='test -z "$ac_c_werror_flag" | |
4165 | || test ! -s conftest.err' | |
4166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4167 | (eval $ac_try) 2>&5 | |
4168 | ac_status=$? | |
4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4170 | (exit $ac_status); }; } && | |
4171 | { ac_try='test -s conftest.$ac_objext' | |
4172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4173 | (eval $ac_try) 2>&5 | |
4174 | ac_status=$? | |
4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4176 | (exit $ac_status); }; }; then | |
252b5132 RH |
4177 | ac_cv_prog_cc_g=yes |
4178 | else | |
e5a52504 MM |
4179 | echo "$as_me: failed program was:" >&5 |
4180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 4181 | |
e5a52504 | 4182 | ac_cv_prog_cc_g=no |
252b5132 | 4183 | fi |
e5a52504 MM |
4184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4185 | fi | |
4186 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4187 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
252b5132 | 4188 | if test "$ac_test_CFLAGS" = set; then |
e5a52504 | 4189 | CFLAGS=$ac_save_CFLAGS |
252b5132 RH |
4190 | elif test $ac_cv_prog_cc_g = yes; then |
4191 | if test "$GCC" = yes; then | |
4192 | CFLAGS="-g -O2" | |
4193 | else | |
4194 | CFLAGS="-g" | |
4195 | fi | |
4196 | else | |
4197 | if test "$GCC" = yes; then | |
4198 | CFLAGS="-O2" | |
4199 | else | |
4200 | CFLAGS= | |
4201 | fi | |
4202 | fi | |
e5a52504 MM |
4203 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
4204 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4205 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4207 | else | |
4208 | ac_cv_prog_cc_stdc=no | |
4209 | ac_save_CC=$CC | |
4210 | cat >conftest.$ac_ext <<_ACEOF | |
4211 | /* confdefs.h. */ | |
4212 | _ACEOF | |
4213 | cat confdefs.h >>conftest.$ac_ext | |
4214 | cat >>conftest.$ac_ext <<_ACEOF | |
4215 | /* end confdefs.h. */ | |
4216 | #include <stdarg.h> | |
4217 | #include <stdio.h> | |
4218 | #include <sys/types.h> | |
4219 | #include <sys/stat.h> | |
4220 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4221 | struct buf { int x; }; | |
4222 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4223 | static char *e (p, i) | |
4224 | char **p; | |
4225 | int i; | |
4226 | { | |
4227 | return p[i]; | |
4228 | } | |
4229 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4230 | { | |
4231 | char *s; | |
4232 | va_list v; | |
4233 | va_start (v,p); | |
4234 | s = g (p, va_arg (v,int)); | |
4235 | va_end (v); | |
4236 | return s; | |
4237 | } | |
252b5132 | 4238 | |
e5a52504 MM |
4239 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4240 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4241 | These don't provoke an error unfortunately, instead are silently treated | |
4242 | as 'x'. The following induces an error, until -std1 is added to get | |
4243 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4244 | array size at least. It's necessary to write '\x00'==0 to get something | |
4245 | that's true only with -std1. */ | |
4246 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4247 | ||
4248 | int test (int i, double x); | |
4249 | struct s1 {int (*f) (int a);}; | |
4250 | struct s2 {int (*f) (double a);}; | |
4251 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4252 | int argc; | |
4253 | char **argv; | |
4254 | int | |
4255 | main () | |
4256 | { | |
4257 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4258 | ; | |
4259 | return 0; | |
4260 | } | |
4261 | _ACEOF | |
4262 | # Don't try gcc -ansi; that turns off useful extensions and | |
4263 | # breaks some systems' header files. | |
4264 | # AIX -qlanglvl=ansi | |
4265 | # Ultrix and OSF/1 -std1 | |
4266 | # HP-UX 10.20 and later -Ae | |
4267 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4268 | # SVR4 -Xc -D__EXTENSIONS__ | |
4269 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
252b5132 | 4270 | do |
e5a52504 MM |
4271 | CC="$ac_save_CC $ac_arg" |
4272 | rm -f conftest.$ac_objext | |
4273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4274 | (eval $ac_compile) 2>conftest.er1 | |
4275 | ac_status=$? | |
4276 | grep -v '^ *+' conftest.er1 >conftest.err | |
4277 | rm -f conftest.er1 | |
4278 | cat conftest.err >&5 | |
4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4280 | (exit $ac_status); } && | |
4281 | { ac_try='test -z "$ac_c_werror_flag" | |
4282 | || test ! -s conftest.err' | |
4283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4284 | (eval $ac_try) 2>&5 | |
4285 | ac_status=$? | |
4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4287 | (exit $ac_status); }; } && | |
4288 | { ac_try='test -s conftest.$ac_objext' | |
4289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4290 | (eval $ac_try) 2>&5 | |
4291 | ac_status=$? | |
4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4293 | (exit $ac_status); }; }; then | |
4294 | ac_cv_prog_cc_stdc=$ac_arg | |
4295 | break | |
252b5132 | 4296 | else |
e5a52504 MM |
4297 | echo "$as_me: failed program was:" >&5 |
4298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 4299 | |
e5a52504 MM |
4300 | fi |
4301 | rm -f conftest.err conftest.$ac_objext | |
252b5132 | 4302 | done |
e5a52504 MM |
4303 | rm -f conftest.$ac_ext conftest.$ac_objext |
4304 | CC=$ac_save_CC | |
252b5132 | 4305 | |
252b5132 | 4306 | fi |
e5a52504 MM |
4307 | |
4308 | case "x$ac_cv_prog_cc_stdc" in | |
4309 | x|xno) | |
4310 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4311 | echo "${ECHO_T}none needed" >&6 ;; | |
4312 | *) | |
4313 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4314 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4315 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4316 | esac | |
4317 | ||
4318 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
4319 | # in C++ we need to declare it. In case someone uses the same compiler | |
4320 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4321 | # the declaration of exit, since it's the most demanding environment. | |
4322 | cat >conftest.$ac_ext <<_ACEOF | |
4323 | #ifndef __cplusplus | |
4324 | choke me | |
4325 | #endif | |
4326 | _ACEOF | |
4327 | rm -f conftest.$ac_objext | |
4328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4329 | (eval $ac_compile) 2>conftest.er1 | |
4330 | ac_status=$? | |
4331 | grep -v '^ *+' conftest.er1 >conftest.err | |
4332 | rm -f conftest.er1 | |
4333 | cat conftest.err >&5 | |
4334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4335 | (exit $ac_status); } && | |
4336 | { ac_try='test -z "$ac_c_werror_flag" | |
4337 | || test ! -s conftest.err' | |
4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4339 | (eval $ac_try) 2>&5 | |
4340 | ac_status=$? | |
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4342 | (exit $ac_status); }; } && | |
4343 | { ac_try='test -s conftest.$ac_objext' | |
4344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4345 | (eval $ac_try) 2>&5 | |
4346 | ac_status=$? | |
4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4348 | (exit $ac_status); }; }; then | |
4349 | for ac_declaration in \ | |
4350 | '' \ | |
4351 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4352 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4353 | 'extern "C" void exit (int) throw ();' \ | |
4354 | 'extern "C" void exit (int);' \ | |
4355 | 'void exit (int);' | |
4356 | do | |
4357 | cat >conftest.$ac_ext <<_ACEOF | |
4358 | /* confdefs.h. */ | |
4359 | _ACEOF | |
4360 | cat confdefs.h >>conftest.$ac_ext | |
4361 | cat >>conftest.$ac_ext <<_ACEOF | |
4362 | /* end confdefs.h. */ | |
4363 | $ac_declaration | |
4364 | #include <stdlib.h> | |
4365 | int | |
4366 | main () | |
4367 | { | |
4368 | exit (42); | |
4369 | ; | |
4370 | return 0; | |
4371 | } | |
4372 | _ACEOF | |
4373 | rm -f conftest.$ac_objext | |
4374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4375 | (eval $ac_compile) 2>conftest.er1 | |
4376 | ac_status=$? | |
4377 | grep -v '^ *+' conftest.er1 >conftest.err | |
4378 | rm -f conftest.er1 | |
4379 | cat conftest.err >&5 | |
4380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4381 | (exit $ac_status); } && | |
4382 | { ac_try='test -z "$ac_c_werror_flag" | |
4383 | || test ! -s conftest.err' | |
4384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4385 | (eval $ac_try) 2>&5 | |
4386 | ac_status=$? | |
4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4388 | (exit $ac_status); }; } && | |
4389 | { ac_try='test -s conftest.$ac_objext' | |
4390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4391 | (eval $ac_try) 2>&5 | |
4392 | ac_status=$? | |
4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4394 | (exit $ac_status); }; }; then | |
252b5132 RH |
4395 | : |
4396 | else | |
e5a52504 MM |
4397 | echo "$as_me: failed program was:" >&5 |
4398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4399 | ||
4400 | continue | |
4401 | fi | |
4402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4403 | cat >conftest.$ac_ext <<_ACEOF | |
4404 | /* confdefs.h. */ | |
4405 | _ACEOF | |
4406 | cat confdefs.h >>conftest.$ac_ext | |
4407 | cat >>conftest.$ac_ext <<_ACEOF | |
4408 | /* end confdefs.h. */ | |
4409 | $ac_declaration | |
4410 | int | |
4411 | main () | |
4412 | { | |
4413 | exit (42); | |
4414 | ; | |
4415 | return 0; | |
4416 | } | |
4417 | _ACEOF | |
4418 | rm -f conftest.$ac_objext | |
4419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4420 | (eval $ac_compile) 2>conftest.er1 | |
4421 | ac_status=$? | |
4422 | grep -v '^ *+' conftest.er1 >conftest.err | |
4423 | rm -f conftest.er1 | |
4424 | cat conftest.err >&5 | |
4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4426 | (exit $ac_status); } && | |
4427 | { ac_try='test -z "$ac_c_werror_flag" | |
4428 | || test ! -s conftest.err' | |
4429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4430 | (eval $ac_try) 2>&5 | |
4431 | ac_status=$? | |
4432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4433 | (exit $ac_status); }; } && | |
4434 | { ac_try='test -s conftest.$ac_objext' | |
4435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4436 | (eval $ac_try) 2>&5 | |
4437 | ac_status=$? | |
4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4439 | (exit $ac_status); }; }; then | |
4440 | break | |
252b5132 | 4441 | else |
e5a52504 MM |
4442 | echo "$as_me: failed program was:" >&5 |
4443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4444 | ||
252b5132 | 4445 | fi |
e5a52504 MM |
4446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4447 | done | |
252b5132 | 4448 | rm -f conftest* |
e5a52504 MM |
4449 | if test -n "$ac_declaration"; then |
4450 | echo '#ifdef __cplusplus' >>confdefs.h | |
4451 | echo $ac_declaration >>confdefs.h | |
4452 | echo '#endif' >>confdefs.h | |
252b5132 | 4453 | fi |
e5a52504 MM |
4454 | |
4455 | else | |
4456 | echo "$as_me: failed program was:" >&5 | |
4457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4458 | ||
252b5132 | 4459 | fi |
e5a52504 MM |
4460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4461 | ac_ext=c | |
4462 | ac_cpp='$CPP $CPPFLAGS' | |
4463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4466 | ||
4467 | ||
4468 | for ac_prog in 'bison -y' byacc | |
4469 | do | |
4470 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4471 | set dummy $ac_prog; ac_word=$2 | |
4472 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4474 | if test "${ac_cv_prog_YACC+set}" = set; then | |
4475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4476 | else | |
4477 | if test -n "$YACC"; then | |
4478 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4479 | else | |
4480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4481 | for as_dir in $PATH | |
4482 | do | |
4483 | IFS=$as_save_IFS | |
4484 | test -z "$as_dir" && as_dir=. | |
4485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4486 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4487 | ac_cv_prog_YACC="$ac_prog" | |
4488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4489 | break 2 | |
4490 | fi | |
4491 | done | |
4492 | done | |
4493 | ||
252b5132 | 4494 | fi |
e5a52504 MM |
4495 | fi |
4496 | YACC=$ac_cv_prog_YACC | |
4497 | if test -n "$YACC"; then | |
4498 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
4499 | echo "${ECHO_T}$YACC" >&6 | |
252b5132 | 4500 | else |
e5a52504 MM |
4501 | echo "$as_me:$LINENO: result: no" >&5 |
4502 | echo "${ECHO_T}no" >&6 | |
252b5132 | 4503 | fi |
e5a52504 MM |
4504 | |
4505 | test -n "$YACC" && break | |
4506 | done | |
4507 | test -n "$YACC" || YACC="yacc" | |
252b5132 RH |
4508 | |
4509 | missing_dir=`cd $ac_aux_dir && pwd` | |
4510 | for ac_prog in flex lex | |
4511 | do | |
e5a52504 | 4512 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
252b5132 | 4513 | set dummy $ac_prog; ac_word=$2 |
e5a52504 MM |
4514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4516 | if test "${ac_cv_prog_LEX+set}" = set; then | |
4517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4518 | else |
4519 | if test -n "$LEX"; then | |
4520 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4521 | else | |
e5a52504 MM |
4522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4523 | for as_dir in $PATH | |
4524 | do | |
4525 | IFS=$as_save_IFS | |
4526 | test -z "$as_dir" && as_dir=. | |
4527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4529 | ac_cv_prog_LEX="$ac_prog" | |
4530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4531 | break 2 | |
4532 | fi | |
4533 | done | |
4534 | done | |
4535 | ||
252b5132 RH |
4536 | fi |
4537 | fi | |
e5a52504 | 4538 | LEX=$ac_cv_prog_LEX |
252b5132 | 4539 | if test -n "$LEX"; then |
e5a52504 MM |
4540 | echo "$as_me:$LINENO: result: $LEX" >&5 |
4541 | echo "${ECHO_T}$LEX" >&6 | |
252b5132 | 4542 | else |
e5a52504 MM |
4543 | echo "$as_me:$LINENO: result: no" >&5 |
4544 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4545 | fi |
4546 | ||
e5a52504 | 4547 | test -n "$LEX" && break |
252b5132 | 4548 | done |
8ca8f343 | 4549 | test -n "$LEX" || LEX="$missing_dir/missing flex" |
252b5132 | 4550 | |
e5a52504 MM |
4551 | for ac_prog in flex lex |
4552 | do | |
4553 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4554 | set dummy $ac_prog; ac_word=$2 | |
4555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4557 | if test "${ac_cv_prog_LEX+set}" = set; then | |
4558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4559 | else |
4560 | if test -n "$LEX"; then | |
4561 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4562 | else | |
e5a52504 MM |
4563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4564 | for as_dir in $PATH | |
4565 | do | |
4566 | IFS=$as_save_IFS | |
4567 | test -z "$as_dir" && as_dir=. | |
4568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4570 | ac_cv_prog_LEX="$ac_prog" | |
4571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4572 | break 2 | |
4573 | fi | |
4574 | done | |
4575 | done | |
4576 | ||
252b5132 RH |
4577 | fi |
4578 | fi | |
e5a52504 | 4579 | LEX=$ac_cv_prog_LEX |
252b5132 | 4580 | if test -n "$LEX"; then |
e5a52504 MM |
4581 | echo "$as_me:$LINENO: result: $LEX" >&5 |
4582 | echo "${ECHO_T}$LEX" >&6 | |
252b5132 | 4583 | else |
e5a52504 MM |
4584 | echo "$as_me:$LINENO: result: no" >&5 |
4585 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4586 | fi |
4587 | ||
e5a52504 MM |
4588 | test -n "$LEX" && break |
4589 | done | |
4590 | test -n "$LEX" || LEX=":" | |
4591 | ||
252b5132 RH |
4592 | if test -z "$LEXLIB" |
4593 | then | |
e5a52504 MM |
4594 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
4595 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
4596 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
4597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4598 | else | |
4599 | ac_check_lib_save_LIBS=$LIBS | |
4600 | LIBS="-lfl $LIBS" | |
4601 | cat >conftest.$ac_ext <<_ACEOF | |
4602 | /* confdefs.h. */ | |
4603 | _ACEOF | |
4604 | cat confdefs.h >>conftest.$ac_ext | |
4605 | cat >>conftest.$ac_ext <<_ACEOF | |
4606 | /* end confdefs.h. */ | |
4607 | ||
252b5132 | 4608 | /* Override any gcc2 internal prototype to avoid an error. */ |
e5a52504 MM |
4609 | #ifdef __cplusplus |
4610 | extern "C" | |
4611 | #endif | |
252b5132 | 4612 | /* We use char because int might match the return type of a gcc2 |
e5a52504 MM |
4613 | builtin and then its argument prototype would still apply. */ |
4614 | char yywrap (); | |
4615 | int | |
4616 | main () | |
4617 | { | |
4618 | yywrap (); | |
4619 | ; | |
4620 | return 0; | |
4621 | } | |
4622 | _ACEOF | |
4623 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4625 | (eval $ac_link) 2>conftest.er1 | |
4626 | ac_status=$? | |
4627 | grep -v '^ *+' conftest.er1 >conftest.err | |
4628 | rm -f conftest.er1 | |
4629 | cat conftest.err >&5 | |
4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4631 | (exit $ac_status); } && | |
4632 | { ac_try='test -z "$ac_c_werror_flag" | |
4633 | || test ! -s conftest.err' | |
4634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4635 | (eval $ac_try) 2>&5 | |
4636 | ac_status=$? | |
4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4638 | (exit $ac_status); }; } && | |
4639 | { ac_try='test -s conftest$ac_exeext' | |
4640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4641 | (eval $ac_try) 2>&5 | |
4642 | ac_status=$? | |
4643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4644 | (exit $ac_status); }; }; then | |
4645 | ac_cv_lib_fl_yywrap=yes | |
4646 | else | |
4647 | echo "$as_me: failed program was:" >&5 | |
4648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4649 | ||
4650 | ac_cv_lib_fl_yywrap=no | |
4651 | fi | |
4652 | rm -f conftest.err conftest.$ac_objext \ | |
4653 | conftest$ac_exeext conftest.$ac_ext | |
4654 | LIBS=$ac_check_lib_save_LIBS | |
4655 | fi | |
4656 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
4657 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
4658 | if test $ac_cv_lib_fl_yywrap = yes; then | |
4659 | LEXLIB="-lfl" | |
4660 | else | |
4661 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
4662 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
4663 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
4664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4665 | else | |
4666 | ac_check_lib_save_LIBS=$LIBS | |
4667 | LIBS="-ll $LIBS" | |
4668 | cat >conftest.$ac_ext <<_ACEOF | |
4669 | /* confdefs.h. */ | |
4670 | _ACEOF | |
4671 | cat confdefs.h >>conftest.$ac_ext | |
4672 | cat >>conftest.$ac_ext <<_ACEOF | |
4673 | /* end confdefs.h. */ | |
252b5132 | 4674 | |
e5a52504 MM |
4675 | /* Override any gcc2 internal prototype to avoid an error. */ |
4676 | #ifdef __cplusplus | |
4677 | extern "C" | |
4678 | #endif | |
4679 | /* We use char because int might match the return type of a gcc2 | |
4680 | builtin and then its argument prototype would still apply. */ | |
4681 | char yywrap (); | |
4682 | int | |
4683 | main () | |
4684 | { | |
4685 | yywrap (); | |
4686 | ; | |
4687 | return 0; | |
4688 | } | |
4689 | _ACEOF | |
4690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4692 | (eval $ac_link) 2>conftest.er1 | |
4693 | ac_status=$? | |
4694 | grep -v '^ *+' conftest.er1 >conftest.err | |
4695 | rm -f conftest.er1 | |
4696 | cat conftest.err >&5 | |
4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4698 | (exit $ac_status); } && | |
4699 | { ac_try='test -z "$ac_c_werror_flag" | |
4700 | || test ! -s conftest.err' | |
4701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4702 | (eval $ac_try) 2>&5 | |
4703 | ac_status=$? | |
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4705 | (exit $ac_status); }; } && | |
4706 | { ac_try='test -s conftest$ac_exeext' | |
4707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4708 | (eval $ac_try) 2>&5 | |
4709 | ac_status=$? | |
4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4711 | (exit $ac_status); }; }; then | |
4712 | ac_cv_lib_l_yywrap=yes | |
4713 | else | |
4714 | echo "$as_me: failed program was:" >&5 | |
4715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4716 | ||
4717 | ac_cv_lib_l_yywrap=no | |
4718 | fi | |
4719 | rm -f conftest.err conftest.$ac_objext \ | |
4720 | conftest$ac_exeext conftest.$ac_ext | |
4721 | LIBS=$ac_check_lib_save_LIBS | |
4722 | fi | |
4723 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
4724 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
4725 | if test $ac_cv_lib_l_yywrap = yes; then | |
4726 | LEXLIB="-ll" | |
4727 | fi | |
4728 | ||
4729 | fi | |
4730 | ||
4731 | fi | |
4732 | ||
4733 | if test "x$LEX" != "x:"; then | |
4734 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
4735 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
4736 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
4737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4738 | else |
4739 | # The minimal lex program is just a single line: %%. But some broken lexes | |
4740 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
e5a52504 MM |
4741 | cat >conftest.l <<_ACEOF |
4742 | %% | |
4743 | %% | |
4744 | _ACEOF | |
4745 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
4746 | (eval $LEX conftest.l) 2>&5 | |
4747 | ac_status=$? | |
4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4749 | (exit $ac_status); } | |
252b5132 RH |
4750 | if test -f lex.yy.c; then |
4751 | ac_cv_prog_lex_root=lex.yy | |
4752 | elif test -f lexyy.c; then | |
4753 | ac_cv_prog_lex_root=lexyy | |
4754 | else | |
e5a52504 MM |
4755 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
4756 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
4757 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4758 | fi |
4759 | fi | |
e5a52504 MM |
4760 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
4761 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
4762 | rm -f conftest.l | |
252b5132 RH |
4763 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
4764 | ||
e5a52504 MM |
4765 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
4766 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
4767 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
4768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4769 | else |
4770 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
4771 | # default is implementation-dependent. Figure out which it is, since | |
4772 | # not all implementations provide the %pointer and %array declarations. | |
4773 | ac_cv_prog_lex_yytext_pointer=no | |
4774 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
e5a52504 | 4775 | ac_save_LIBS=$LIBS |
252b5132 | 4776 | LIBS="$LIBS $LEXLIB" |
e5a52504 | 4777 | cat >conftest.$ac_ext <<_ACEOF |
252b5132 | 4778 | `cat $LEX_OUTPUT_ROOT.c` |
e5a52504 MM |
4779 | _ACEOF |
4780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4782 | (eval $ac_link) 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); } && | |
4789 | { ac_try='test -z "$ac_c_werror_flag" | |
4790 | || test ! -s conftest.err' | |
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_exeext' | |
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 | |
252b5132 RH |
4802 | ac_cv_prog_lex_yytext_pointer=yes |
4803 | else | |
e5a52504 MM |
4804 | echo "$as_me: failed program was:" >&5 |
4805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4806 | ||
252b5132 | 4807 | fi |
e5a52504 MM |
4808 | rm -f conftest.err conftest.$ac_objext \ |
4809 | conftest$ac_exeext conftest.$ac_ext | |
4810 | LIBS=$ac_save_LIBS | |
252b5132 RH |
4811 | rm -f "${LEX_OUTPUT_ROOT}.c" |
4812 | ||
4813 | fi | |
e5a52504 MM |
4814 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4815 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
252b5132 | 4816 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
e5a52504 MM |
4817 | |
4818 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 4819 | #define YYTEXT_POINTER 1 |
e5a52504 MM |
4820 | _ACEOF |
4821 | ||
4822 | fi | |
252b5132 RH |
4823 | |
4824 | fi | |
4825 | ||
4826 | ||
f0660b73 | 4827 | ALL_LINGUAS="fr tr ja es sv da zh_CN ru" |
e5a52504 MM |
4828 | if test -n "$ac_tool_prefix"; then |
4829 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4830 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4831 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4833 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
4835 | else |
4836 | if test -n "$RANLIB"; then | |
4837 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4838 | else | |
e5a52504 MM |
4839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4840 | for as_dir in $PATH | |
4841 | do | |
4842 | IFS=$as_save_IFS | |
4843 | test -z "$as_dir" && as_dir=. | |
4844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4845 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4846 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4848 | break 2 | |
4849 | fi | |
4850 | done | |
4851 | done | |
4852 | ||
ac48eca1 AO |
4853 | fi |
4854 | fi | |
e5a52504 | 4855 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 4856 | if test -n "$RANLIB"; then |
e5a52504 MM |
4857 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4858 | echo "${ECHO_T}$RANLIB" >&6 | |
4859 | else | |
4860 | echo "$as_me:$LINENO: result: no" >&5 | |
4861 | echo "${ECHO_T}no" >&6 | |
4862 | fi | |
4863 | ||
4864 | fi | |
4865 | if test -z "$ac_cv_prog_RANLIB"; then | |
4866 | ac_ct_RANLIB=$RANLIB | |
4867 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4868 | set dummy ranlib; ac_word=$2 | |
4869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4871 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4873 | else | |
4874 | if test -n "$ac_ct_RANLIB"; then | |
4875 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4876 | else | |
4877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4878 | for as_dir in $PATH | |
4879 | do | |
4880 | IFS=$as_save_IFS | |
4881 | test -z "$as_dir" && as_dir=. | |
4882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4884 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4886 | break 2 | |
4887 | fi | |
4888 | done | |
4889 | done | |
4890 | ||
4891 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4892 | fi | |
4893 | fi | |
4894 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4895 | if test -n "$ac_ct_RANLIB"; then | |
4896 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4897 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4898 | else | |
4899 | echo "$as_me:$LINENO: result: no" >&5 | |
4900 | echo "${ECHO_T}no" >&6 | |
4901 | fi | |
4902 | ||
4903 | RANLIB=$ac_ct_RANLIB | |
4904 | else | |
4905 | RANLIB="$ac_cv_prog_RANLIB" | |
4906 | fi | |
4907 | ||
4908 | ac_ext=c | |
4909 | ac_cpp='$CPP $CPPFLAGS' | |
4910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4913 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4914 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4915 | # On Suns, sometimes $CPP names a directory. | |
4916 | if test -n "$CPP" && test -d "$CPP"; then | |
4917 | CPP= | |
4918 | fi | |
4919 | if test -z "$CPP"; then | |
4920 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4922 | else | |
4923 | # Double quotes because CPP needs to be expanded | |
4924 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4925 | do | |
4926 | ac_preproc_ok=false | |
4927 | for ac_c_preproc_warn_flag in '' yes | |
4928 | do | |
4929 | # Use a header file that comes with gcc, so configuring glibc | |
4930 | # with a fresh cross-compiler works. | |
4931 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4932 | # <limits.h> exists even on freestanding compilers. | |
4933 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4934 | # not just through cpp. "Syntax error" is here to catch this case. | |
4935 | cat >conftest.$ac_ext <<_ACEOF | |
4936 | /* confdefs.h. */ | |
4937 | _ACEOF | |
4938 | cat confdefs.h >>conftest.$ac_ext | |
4939 | cat >>conftest.$ac_ext <<_ACEOF | |
4940 | /* end confdefs.h. */ | |
4941 | #ifdef __STDC__ | |
4942 | # include <limits.h> | |
4943 | #else | |
4944 | # include <assert.h> | |
4945 | #endif | |
4946 | Syntax error | |
4947 | _ACEOF | |
4948 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4949 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4950 | ac_status=$? | |
4951 | grep -v '^ *+' conftest.er1 >conftest.err | |
4952 | rm -f conftest.er1 | |
4953 | cat conftest.err >&5 | |
4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4955 | (exit $ac_status); } >/dev/null; then | |
4956 | if test -s conftest.err; then | |
4957 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4958 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4959 | else | |
4960 | ac_cpp_err= | |
4961 | fi | |
ac48eca1 | 4962 | else |
e5a52504 | 4963 | ac_cpp_err=yes |
ac48eca1 | 4964 | fi |
e5a52504 MM |
4965 | if test -z "$ac_cpp_err"; then |
4966 | : | |
4967 | else | |
4968 | echo "$as_me: failed program was:" >&5 | |
4969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4970 | ||
4971 | # Broken: fails on valid input. | |
4972 | continue | |
4973 | fi | |
4974 | rm -f conftest.err conftest.$ac_ext | |
4975 | ||
4976 | # OK, works on sane cases. Now check whether non-existent headers | |
4977 | # can be detected and how. | |
4978 | cat >conftest.$ac_ext <<_ACEOF | |
4979 | /* confdefs.h. */ | |
4980 | _ACEOF | |
4981 | cat confdefs.h >>conftest.$ac_ext | |
4982 | cat >>conftest.$ac_ext <<_ACEOF | |
4983 | /* end confdefs.h. */ | |
4984 | #include <ac_nonexistent.h> | |
4985 | _ACEOF | |
4986 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4987 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4988 | ac_status=$? | |
4989 | grep -v '^ *+' conftest.er1 >conftest.err | |
4990 | rm -f conftest.er1 | |
4991 | cat conftest.err >&5 | |
4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4993 | (exit $ac_status); } >/dev/null; then | |
4994 | if test -s conftest.err; then | |
4995 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4996 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4997 | else | |
4998 | ac_cpp_err= | |
4999 | fi | |
5000 | else | |
5001 | ac_cpp_err=yes | |
5002 | fi | |
5003 | if test -z "$ac_cpp_err"; then | |
5004 | # Broken: success on invalid input. | |
5005 | continue | |
5006 | else | |
5007 | echo "$as_me: failed program was:" >&5 | |
5008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5009 | ||
5010 | # Passes both tests. | |
5011 | ac_preproc_ok=: | |
5012 | break | |
5013 | fi | |
5014 | rm -f conftest.err conftest.$ac_ext | |
5015 | ||
5016 | done | |
5017 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5018 | rm -f conftest.err conftest.$ac_ext | |
5019 | if $ac_preproc_ok; then | |
5020 | break | |
5021 | fi | |
5022 | ||
5023 | done | |
5024 | ac_cv_prog_CPP=$CPP | |
5025 | ||
5026 | fi | |
5027 | CPP=$ac_cv_prog_CPP | |
5028 | else | |
5029 | ac_cv_prog_CPP=$CPP | |
5030 | fi | |
5031 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5032 | echo "${ECHO_T}$CPP" >&6 | |
5033 | ac_preproc_ok=false | |
5034 | for ac_c_preproc_warn_flag in '' yes | |
5035 | do | |
5036 | # Use a header file that comes with gcc, so configuring glibc | |
5037 | # with a fresh cross-compiler works. | |
5038 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5039 | # <limits.h> exists even on freestanding compilers. | |
5040 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5041 | # not just through cpp. "Syntax error" is here to catch this case. | |
5042 | cat >conftest.$ac_ext <<_ACEOF | |
5043 | /* confdefs.h. */ | |
5044 | _ACEOF | |
5045 | cat confdefs.h >>conftest.$ac_ext | |
5046 | cat >>conftest.$ac_ext <<_ACEOF | |
5047 | /* end confdefs.h. */ | |
5048 | #ifdef __STDC__ | |
5049 | # include <limits.h> | |
5050 | #else | |
5051 | # include <assert.h> | |
5052 | #endif | |
5053 | Syntax error | |
5054 | _ACEOF | |
5055 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5056 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5057 | ac_status=$? | |
5058 | grep -v '^ *+' conftest.er1 >conftest.err | |
5059 | rm -f conftest.er1 | |
5060 | cat conftest.err >&5 | |
5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5062 | (exit $ac_status); } >/dev/null; then | |
5063 | if test -s conftest.err; then | |
5064 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5065 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5066 | else | |
5067 | ac_cpp_err= | |
5068 | fi | |
5069 | else | |
5070 | ac_cpp_err=yes | |
5071 | fi | |
5072 | if test -z "$ac_cpp_err"; then | |
5073 | : | |
5074 | else | |
5075 | echo "$as_me: failed program was:" >&5 | |
5076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5077 | ||
5078 | # Broken: fails on valid input. | |
5079 | continue | |
5080 | fi | |
5081 | rm -f conftest.err conftest.$ac_ext | |
5082 | ||
5083 | # OK, works on sane cases. Now check whether non-existent headers | |
5084 | # can be detected and how. | |
5085 | cat >conftest.$ac_ext <<_ACEOF | |
5086 | /* confdefs.h. */ | |
5087 | _ACEOF | |
5088 | cat confdefs.h >>conftest.$ac_ext | |
5089 | cat >>conftest.$ac_ext <<_ACEOF | |
5090 | /* end confdefs.h. */ | |
5091 | #include <ac_nonexistent.h> | |
5092 | _ACEOF | |
5093 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5094 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5095 | ac_status=$? | |
5096 | grep -v '^ *+' conftest.er1 >conftest.err | |
5097 | rm -f conftest.er1 | |
5098 | cat conftest.err >&5 | |
5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5100 | (exit $ac_status); } >/dev/null; then | |
5101 | if test -s conftest.err; then | |
5102 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5103 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5104 | else | |
5105 | ac_cpp_err= | |
5106 | fi | |
5107 | else | |
5108 | ac_cpp_err=yes | |
5109 | fi | |
5110 | if test -z "$ac_cpp_err"; then | |
5111 | # Broken: success on invalid input. | |
5112 | continue | |
5113 | else | |
5114 | echo "$as_me: failed program was:" >&5 | |
5115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5116 | ||
5117 | # Passes both tests. | |
5118 | ac_preproc_ok=: | |
5119 | break | |
5120 | fi | |
5121 | rm -f conftest.err conftest.$ac_ext | |
5122 | ||
5123 | done | |
5124 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5125 | rm -f conftest.err conftest.$ac_ext | |
5126 | if $ac_preproc_ok; then | |
5127 | : | |
5128 | else | |
5129 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5130 | See \`config.log' for more details." >&5 | |
5131 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5132 | See \`config.log' for more details." >&2;} | |
5133 | { (exit 1); exit 1; }; } | |
5134 | fi | |
5135 | ||
5136 | ac_ext=c | |
5137 | ac_cpp='$CPP $CPPFLAGS' | |
5138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5141 | ||
5142 | ||
5143 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5144 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5145 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5147 | else | |
5148 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5149 | then ac_cv_prog_egrep='grep -E' | |
5150 | else ac_cv_prog_egrep='egrep' | |
5151 | fi | |
5152 | fi | |
5153 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5154 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5155 | EGREP=$ac_cv_prog_egrep | |
5156 | ||
ac48eca1 | 5157 | |
e5a52504 MM |
5158 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5159 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5160 | if test "${ac_cv_header_stdc+set}" = set; then | |
5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5162 | else |
e5a52504 MM |
5163 | cat >conftest.$ac_ext <<_ACEOF |
5164 | /* confdefs.h. */ | |
5165 | _ACEOF | |
5166 | cat confdefs.h >>conftest.$ac_ext | |
5167 | cat >>conftest.$ac_ext <<_ACEOF | |
5168 | /* end confdefs.h. */ | |
252b5132 RH |
5169 | #include <stdlib.h> |
5170 | #include <stdarg.h> | |
5171 | #include <string.h> | |
5172 | #include <float.h> | |
e5a52504 MM |
5173 | |
5174 | int | |
5175 | main () | |
5176 | { | |
5177 | ||
5178 | ; | |
5179 | return 0; | |
5180 | } | |
5181 | _ACEOF | |
5182 | rm -f conftest.$ac_objext | |
5183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5184 | (eval $ac_compile) 2>conftest.er1 | |
5185 | ac_status=$? | |
5186 | grep -v '^ *+' conftest.er1 >conftest.err | |
5187 | rm -f conftest.er1 | |
5188 | cat conftest.err >&5 | |
5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5190 | (exit $ac_status); } && | |
5191 | { ac_try='test -z "$ac_c_werror_flag" | |
5192 | || test ! -s conftest.err' | |
5193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5194 | (eval $ac_try) 2>&5 | |
5195 | ac_status=$? | |
5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5197 | (exit $ac_status); }; } && | |
5198 | { ac_try='test -s conftest.$ac_objext' | |
5199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5200 | (eval $ac_try) 2>&5 | |
5201 | ac_status=$? | |
5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5203 | (exit $ac_status); }; }; then | |
252b5132 RH |
5204 | ac_cv_header_stdc=yes |
5205 | else | |
e5a52504 MM |
5206 | echo "$as_me: failed program was:" >&5 |
5207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5208 | ||
5209 | ac_cv_header_stdc=no | |
252b5132 | 5210 | fi |
e5a52504 | 5211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5212 | |
5213 | if test $ac_cv_header_stdc = yes; then | |
5214 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
e5a52504 MM |
5215 | cat >conftest.$ac_ext <<_ACEOF |
5216 | /* confdefs.h. */ | |
5217 | _ACEOF | |
5218 | cat confdefs.h >>conftest.$ac_ext | |
5219 | cat >>conftest.$ac_ext <<_ACEOF | |
5220 | /* end confdefs.h. */ | |
252b5132 | 5221 | #include <string.h> |
e5a52504 MM |
5222 | |
5223 | _ACEOF | |
252b5132 | 5224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e5a52504 | 5225 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
5226 | : |
5227 | else | |
252b5132 RH |
5228 | ac_cv_header_stdc=no |
5229 | fi | |
5230 | rm -f conftest* | |
5231 | ||
5232 | fi | |
5233 | ||
5234 | if test $ac_cv_header_stdc = yes; then | |
5235 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
e5a52504 MM |
5236 | cat >conftest.$ac_ext <<_ACEOF |
5237 | /* confdefs.h. */ | |
5238 | _ACEOF | |
5239 | cat confdefs.h >>conftest.$ac_ext | |
5240 | cat >>conftest.$ac_ext <<_ACEOF | |
5241 | /* end confdefs.h. */ | |
252b5132 | 5242 | #include <stdlib.h> |
e5a52504 MM |
5243 | |
5244 | _ACEOF | |
252b5132 | 5245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e5a52504 | 5246 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
5247 | : |
5248 | else | |
252b5132 RH |
5249 | ac_cv_header_stdc=no |
5250 | fi | |
5251 | rm -f conftest* | |
5252 | ||
5253 | fi | |
5254 | ||
5255 | if test $ac_cv_header_stdc = yes; then | |
5256 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
e5a52504 | 5257 | if test "$cross_compiling" = yes; then |
252b5132 RH |
5258 | : |
5259 | else | |
e5a52504 MM |
5260 | cat >conftest.$ac_ext <<_ACEOF |
5261 | /* confdefs.h. */ | |
5262 | _ACEOF | |
5263 | cat confdefs.h >>conftest.$ac_ext | |
5264 | cat >>conftest.$ac_ext <<_ACEOF | |
5265 | /* end confdefs.h. */ | |
252b5132 | 5266 | #include <ctype.h> |
e5a52504 MM |
5267 | #if ((' ' & 0x0FF) == 0x020) |
5268 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5269 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5270 | #else | |
5271 | # define ISLOWER(c) \ | |
5272 | (('a' <= (c) && (c) <= 'i') \ | |
5273 | || ('j' <= (c) && (c) <= 'r') \ | |
5274 | || ('s' <= (c) && (c) <= 'z')) | |
5275 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5276 | #endif | |
252b5132 | 5277 | |
e5a52504 MM |
5278 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5279 | int | |
5280 | main () | |
5281 | { | |
5282 | int i; | |
5283 | for (i = 0; i < 256; i++) | |
5284 | if (XOR (islower (i), ISLOWER (i)) | |
5285 | || toupper (i) != TOUPPER (i)) | |
5286 | exit(2); | |
5287 | exit (0); | |
5288 | } | |
5289 | _ACEOF | |
5290 | rm -f conftest$ac_exeext | |
5291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5292 | (eval $ac_link) 2>&5 | |
5293 | ac_status=$? | |
5294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5295 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5297 | (eval $ac_try) 2>&5 | |
5298 | ac_status=$? | |
5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5300 | (exit $ac_status); }; }; then | |
252b5132 RH |
5301 | : |
5302 | else | |
e5a52504 MM |
5303 | echo "$as_me: program exited with status $ac_status" >&5 |
5304 | echo "$as_me: failed program was:" >&5 | |
5305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5306 | ||
5307 | ( exit $ac_status ) | |
5308 | ac_cv_header_stdc=no | |
252b5132 | 5309 | fi |
e5a52504 | 5310 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5311 | fi |
252b5132 RH |
5312 | fi |
5313 | fi | |
e5a52504 MM |
5314 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5315 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
252b5132 | 5316 | if test $ac_cv_header_stdc = yes; then |
e5a52504 MM |
5317 | |
5318 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5319 | #define STDC_HEADERS 1 |
e5a52504 | 5320 | _ACEOF |
252b5132 RH |
5321 | |
5322 | fi | |
5323 | ||
e5a52504 MM |
5324 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5325 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
5326 | if test "${ac_cv_c_const+set}" = set; then | |
5327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5328 | else | |
5329 | cat >conftest.$ac_ext <<_ACEOF | |
5330 | /* confdefs.h. */ | |
5331 | _ACEOF | |
5332 | cat confdefs.h >>conftest.$ac_ext | |
5333 | cat >>conftest.$ac_ext <<_ACEOF | |
5334 | /* end confdefs.h. */ | |
252b5132 | 5335 | |
e5a52504 MM |
5336 | int |
5337 | main () | |
5338 | { | |
5339 | /* FIXME: Include the comments suggested by Paul. */ | |
5340 | #ifndef __cplusplus | |
5341 | /* Ultrix mips cc rejects this. */ | |
5342 | typedef int charset[2]; | |
5343 | const charset x; | |
5344 | /* SunOS 4.1.1 cc rejects this. */ | |
5345 | char const *const *ccp; | |
5346 | char **p; | |
5347 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5348 | struct point {int x, y;}; | |
5349 | static struct point const zero = {0,0}; | |
5350 | /* AIX XL C 1.02.0.0 rejects this. | |
5351 | It does not let you subtract one const X* pointer from another in | |
5352 | an arm of an if-expression whose if-part is not a constant | |
5353 | expression */ | |
5354 | const char *g = "string"; | |
5355 | ccp = &g + (g ? g-g : 0); | |
5356 | /* HPUX 7.0 cc rejects these. */ | |
5357 | ++ccp; | |
5358 | p = (char**) ccp; | |
5359 | ccp = (char const *const *) p; | |
5360 | { /* SCO 3.2v4 cc rejects this. */ | |
5361 | char *t; | |
5362 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5363 | ||
5364 | *t++ = 0; | |
5365 | } | |
5366 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5367 | int x[] = {25, 17}; | |
5368 | const int *foo = &x[0]; | |
5369 | ++foo; | |
5370 | } | |
5371 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5372 | typedef const int *iptr; | |
5373 | iptr p = 0; | |
5374 | ++p; | |
5375 | } | |
5376 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5377 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5378 | struct s { int j; const int *ap[3]; }; | |
5379 | struct s *b; b->j = 5; | |
5380 | } | |
5381 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5382 | const int foo = 10; | |
5383 | } | |
5384 | #endif | |
5385 | ||
5386 | ; | |
5387 | return 0; | |
5388 | } | |
5389 | _ACEOF | |
5390 | rm -f conftest.$ac_objext | |
5391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5392 | (eval $ac_compile) 2>conftest.er1 | |
5393 | ac_status=$? | |
5394 | grep -v '^ *+' conftest.er1 >conftest.err | |
5395 | rm -f conftest.er1 | |
5396 | cat conftest.err >&5 | |
5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5398 | (exit $ac_status); } && | |
5399 | { ac_try='test -z "$ac_c_werror_flag" | |
5400 | || test ! -s conftest.err' | |
5401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5402 | (eval $ac_try) 2>&5 | |
5403 | ac_status=$? | |
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5405 | (exit $ac_status); }; } && | |
5406 | { ac_try='test -s conftest.$ac_objext' | |
5407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5408 | (eval $ac_try) 2>&5 | |
5409 | ac_status=$? | |
5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5411 | (exit $ac_status); }; }; then | |
252b5132 RH |
5412 | ac_cv_c_const=yes |
5413 | else | |
e5a52504 MM |
5414 | echo "$as_me: failed program was:" >&5 |
5415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5416 | ||
5417 | ac_cv_c_const=no | |
252b5132 | 5418 | fi |
e5a52504 | 5419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5420 | fi |
e5a52504 MM |
5421 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5422 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
252b5132 | 5423 | if test $ac_cv_c_const = no; then |
e5a52504 MM |
5424 | |
5425 | cat >>confdefs.h <<\_ACEOF | |
5426 | #define const | |
5427 | _ACEOF | |
252b5132 RH |
5428 | |
5429 | fi | |
5430 | ||
e5a52504 MM |
5431 | echo "$as_me:$LINENO: checking for inline" >&5 |
5432 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
5433 | if test "${ac_cv_c_inline+set}" = set; then | |
5434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5435 | else |
5436 | ac_cv_c_inline=no | |
5437 | for ac_kw in inline __inline__ __inline; do | |
e5a52504 MM |
5438 | cat >conftest.$ac_ext <<_ACEOF |
5439 | /* confdefs.h. */ | |
5440 | _ACEOF | |
5441 | cat confdefs.h >>conftest.$ac_ext | |
5442 | cat >>conftest.$ac_ext <<_ACEOF | |
5443 | /* end confdefs.h. */ | |
5444 | #ifndef __cplusplus | |
5445 | typedef int foo_t; | |
5446 | static $ac_kw foo_t static_foo () {return 0; } | |
5447 | $ac_kw foo_t foo () {return 0; } | |
5448 | #endif | |
252b5132 | 5449 | |
e5a52504 MM |
5450 | _ACEOF |
5451 | rm -f conftest.$ac_objext | |
5452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5453 | (eval $ac_compile) 2>conftest.er1 | |
5454 | ac_status=$? | |
5455 | grep -v '^ *+' conftest.er1 >conftest.err | |
5456 | rm -f conftest.er1 | |
5457 | cat conftest.err >&5 | |
5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5459 | (exit $ac_status); } && | |
5460 | { ac_try='test -z "$ac_c_werror_flag" | |
5461 | || test ! -s conftest.err' | |
5462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5463 | (eval $ac_try) 2>&5 | |
5464 | ac_status=$? | |
5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5466 | (exit $ac_status); }; } && | |
5467 | { ac_try='test -s conftest.$ac_objext' | |
5468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5469 | (eval $ac_try) 2>&5 | |
5470 | ac_status=$? | |
5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5472 | (exit $ac_status); }; }; then | |
252b5132 RH |
5473 | ac_cv_c_inline=$ac_kw; break |
5474 | else | |
e5a52504 MM |
5475 | echo "$as_me: failed program was:" >&5 |
5476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5477 | ||
252b5132 | 5478 | fi |
e5a52504 | 5479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5480 | done |
5481 | ||
5482 | fi | |
e5a52504 MM |
5483 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5484 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
252b5132 | 5485 | |
e5a52504 MM |
5486 | |
5487 | case $ac_cv_c_inline in | |
252b5132 | 5488 | inline | yes) ;; |
e5a52504 MM |
5489 | *) |
5490 | case $ac_cv_c_inline in | |
5491 | no) ac_val=;; | |
5492 | *) ac_val=$ac_cv_c_inline;; | |
5493 | esac | |
5494 | cat >>confdefs.h <<_ACEOF | |
5495 | #ifndef __cplusplus | |
5496 | #define inline $ac_val | |
5497 | #endif | |
5498 | _ACEOF | |
5499 | ;; | |
252b5132 RH |
5500 | esac |
5501 | ||
e5a52504 MM |
5502 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
5508 | ||
5509 | ||
5510 | ||
5511 | ||
5512 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5513 | inttypes.h stdint.h unistd.h | |
5514 | do | |
5515 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5520 | else | |
5521 | cat >conftest.$ac_ext <<_ACEOF | |
5522 | /* confdefs.h. */ | |
5523 | _ACEOF | |
5524 | cat confdefs.h >>conftest.$ac_ext | |
5525 | cat >>conftest.$ac_ext <<_ACEOF | |
5526 | /* end confdefs.h. */ | |
5527 | $ac_includes_default | |
5528 | ||
5529 | #include <$ac_header> | |
5530 | _ACEOF | |
5531 | rm -f conftest.$ac_objext | |
5532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5533 | (eval $ac_compile) 2>conftest.er1 | |
5534 | ac_status=$? | |
5535 | grep -v '^ *+' conftest.er1 >conftest.err | |
5536 | rm -f conftest.er1 | |
5537 | cat conftest.err >&5 | |
5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5539 | (exit $ac_status); } && | |
5540 | { ac_try='test -z "$ac_c_werror_flag" | |
5541 | || test ! -s conftest.err' | |
5542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5543 | (eval $ac_try) 2>&5 | |
5544 | ac_status=$? | |
5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5546 | (exit $ac_status); }; } && | |
5547 | { ac_try='test -s conftest.$ac_objext' | |
5548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5549 | (eval $ac_try) 2>&5 | |
5550 | ac_status=$? | |
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5552 | (exit $ac_status); }; }; then | |
5553 | eval "$as_ac_Header=yes" | |
5554 | else | |
5555 | echo "$as_me: failed program was:" >&5 | |
5556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5557 | ||
5558 | eval "$as_ac_Header=no" | |
5559 | fi | |
5560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5561 | fi | |
5562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5564 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5565 | cat >>confdefs.h <<_ACEOF | |
5566 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5567 | _ACEOF | |
5568 | ||
5569 | fi | |
5570 | ||
5571 | done | |
5572 | ||
5573 | ||
5574 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
5575 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5576 | if test "${ac_cv_type_off_t+set}" = set; then | |
5577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5578 | else |
e5a52504 MM |
5579 | cat >conftest.$ac_ext <<_ACEOF |
5580 | /* confdefs.h. */ | |
5581 | _ACEOF | |
5582 | cat confdefs.h >>conftest.$ac_ext | |
5583 | cat >>conftest.$ac_ext <<_ACEOF | |
5584 | /* end confdefs.h. */ | |
5585 | $ac_includes_default | |
5586 | int | |
5587 | main () | |
5588 | { | |
5589 | if ((off_t *) 0) | |
5590 | return 0; | |
5591 | if (sizeof (off_t)) | |
5592 | return 0; | |
5593 | ; | |
5594 | return 0; | |
5595 | } | |
5596 | _ACEOF | |
5597 | rm -f conftest.$ac_objext | |
5598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5599 | (eval $ac_compile) 2>conftest.er1 | |
5600 | ac_status=$? | |
5601 | grep -v '^ *+' conftest.er1 >conftest.err | |
5602 | rm -f conftest.er1 | |
5603 | cat conftest.err >&5 | |
5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5605 | (exit $ac_status); } && | |
5606 | { ac_try='test -z "$ac_c_werror_flag" | |
5607 | || test ! -s conftest.err' | |
5608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5609 | (eval $ac_try) 2>&5 | |
5610 | ac_status=$? | |
5611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5612 | (exit $ac_status); }; } && | |
5613 | { ac_try='test -s conftest.$ac_objext' | |
5614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5615 | (eval $ac_try) 2>&5 | |
5616 | ac_status=$? | |
5617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5618 | (exit $ac_status); }; }; then | |
252b5132 RH |
5619 | ac_cv_type_off_t=yes |
5620 | else | |
e5a52504 MM |
5621 | echo "$as_me: failed program was:" >&5 |
5622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 5623 | |
e5a52504 MM |
5624 | ac_cv_type_off_t=no |
5625 | fi | |
5626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
252b5132 | 5627 | fi |
e5a52504 MM |
5628 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5629 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5630 | if test $ac_cv_type_off_t = yes; then | |
5631 | : | |
5632 | else | |
5633 | ||
5634 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5635 | #define off_t long |
e5a52504 | 5636 | _ACEOF |
252b5132 RH |
5637 | |
5638 | fi | |
5639 | ||
e5a52504 MM |
5640 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5641 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5642 | if test "${ac_cv_type_size_t+set}" = set; then | |
5643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5644 | else |
e5a52504 MM |
5645 | cat >conftest.$ac_ext <<_ACEOF |
5646 | /* confdefs.h. */ | |
5647 | _ACEOF | |
5648 | cat confdefs.h >>conftest.$ac_ext | |
5649 | cat >>conftest.$ac_ext <<_ACEOF | |
5650 | /* end confdefs.h. */ | |
5651 | $ac_includes_default | |
5652 | int | |
5653 | main () | |
5654 | { | |
5655 | if ((size_t *) 0) | |
5656 | return 0; | |
5657 | if (sizeof (size_t)) | |
5658 | return 0; | |
5659 | ; | |
5660 | return 0; | |
5661 | } | |
5662 | _ACEOF | |
5663 | rm -f conftest.$ac_objext | |
5664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5665 | (eval $ac_compile) 2>conftest.er1 | |
5666 | ac_status=$? | |
5667 | grep -v '^ *+' conftest.er1 >conftest.err | |
5668 | rm -f conftest.er1 | |
5669 | cat conftest.err >&5 | |
5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5671 | (exit $ac_status); } && | |
5672 | { ac_try='test -z "$ac_c_werror_flag" | |
5673 | || test ! -s conftest.err' | |
5674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5675 | (eval $ac_try) 2>&5 | |
5676 | ac_status=$? | |
5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5678 | (exit $ac_status); }; } && | |
5679 | { ac_try='test -s conftest.$ac_objext' | |
5680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5681 | (eval $ac_try) 2>&5 | |
5682 | ac_status=$? | |
5683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5684 | (exit $ac_status); }; }; then | |
252b5132 RH |
5685 | ac_cv_type_size_t=yes |
5686 | else | |
e5a52504 MM |
5687 | echo "$as_me: failed program was:" >&5 |
5688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 5689 | |
e5a52504 | 5690 | ac_cv_type_size_t=no |
252b5132 | 5691 | fi |
e5a52504 MM |
5692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5693 | fi | |
5694 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
5695 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
5696 | if test $ac_cv_type_size_t = yes; then | |
5697 | : | |
5698 | else | |
5699 | ||
5700 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5701 | #define size_t unsigned |
e5a52504 | 5702 | _ACEOF |
252b5132 RH |
5703 | |
5704 | fi | |
5705 | ||
5706 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
5707 | # for constant arguments. Useless! | |
e5a52504 MM |
5708 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5709 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
5710 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
5711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5712 | else | |
5713 | cat >conftest.$ac_ext <<_ACEOF | |
5714 | /* confdefs.h. */ | |
5715 | _ACEOF | |
5716 | cat confdefs.h >>conftest.$ac_ext | |
5717 | cat >>conftest.$ac_ext <<_ACEOF | |
5718 | /* end confdefs.h. */ | |
252b5132 | 5719 | #include <alloca.h> |
e5a52504 MM |
5720 | int |
5721 | main () | |
5722 | { | |
5723 | char *p = (char *) alloca (2 * sizeof (int)); | |
5724 | ; | |
5725 | return 0; | |
5726 | } | |
5727 | _ACEOF | |
5728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5730 | (eval $ac_link) 2>conftest.er1 | |
5731 | ac_status=$? | |
5732 | grep -v '^ *+' conftest.er1 >conftest.err | |
5733 | rm -f conftest.er1 | |
5734 | cat conftest.err >&5 | |
5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5736 | (exit $ac_status); } && | |
5737 | { ac_try='test -z "$ac_c_werror_flag" | |
5738 | || test ! -s conftest.err' | |
5739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5740 | (eval $ac_try) 2>&5 | |
5741 | ac_status=$? | |
5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5743 | (exit $ac_status); }; } && | |
5744 | { ac_try='test -s conftest$ac_exeext' | |
5745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5746 | (eval $ac_try) 2>&5 | |
5747 | ac_status=$? | |
5748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5749 | (exit $ac_status); }; }; then | |
5750 | ac_cv_working_alloca_h=yes | |
5751 | else | |
5752 | echo "$as_me: failed program was:" >&5 | |
5753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5754 | ||
5755 | ac_cv_working_alloca_h=no | |
5756 | fi | |
5757 | rm -f conftest.err conftest.$ac_objext \ | |
5758 | conftest$ac_exeext conftest.$ac_ext | |
5759 | fi | |
5760 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5761 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5762 | if test $ac_cv_working_alloca_h = yes; then | |
5763 | ||
5764 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5765 | #define HAVE_ALLOCA_H 1 |
e5a52504 | 5766 | _ACEOF |
252b5132 RH |
5767 | |
5768 | fi | |
5769 | ||
e5a52504 MM |
5770 | echo "$as_me:$LINENO: checking for alloca" >&5 |
5771 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5772 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5774 | else |
e5a52504 MM |
5775 | cat >conftest.$ac_ext <<_ACEOF |
5776 | /* confdefs.h. */ | |
5777 | _ACEOF | |
5778 | cat confdefs.h >>conftest.$ac_ext | |
5779 | cat >>conftest.$ac_ext <<_ACEOF | |
5780 | /* end confdefs.h. */ | |
252b5132 RH |
5781 | #ifdef __GNUC__ |
5782 | # define alloca __builtin_alloca | |
5783 | #else | |
5784 | # ifdef _MSC_VER | |
5785 | # include <malloc.h> | |
5786 | # define alloca _alloca | |
5787 | # else | |
5788 | # if HAVE_ALLOCA_H | |
5789 | # include <alloca.h> | |
5790 | # else | |
5791 | # ifdef _AIX | |
5792 | #pragma alloca | |
5793 | # else | |
5794 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5795 | char *alloca (); | |
5796 | # endif | |
5797 | # endif | |
5798 | # endif | |
5799 | # endif | |
5800 | #endif | |
5801 | ||
e5a52504 MM |
5802 | int |
5803 | main () | |
5804 | { | |
5805 | char *p = (char *) alloca (1); | |
5806 | ; | |
5807 | return 0; | |
5808 | } | |
5809 | _ACEOF | |
5810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5812 | (eval $ac_link) 2>conftest.er1 | |
5813 | ac_status=$? | |
5814 | grep -v '^ *+' conftest.er1 >conftest.err | |
5815 | rm -f conftest.er1 | |
5816 | cat conftest.err >&5 | |
5817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5818 | (exit $ac_status); } && | |
5819 | { ac_try='test -z "$ac_c_werror_flag" | |
5820 | || test ! -s conftest.err' | |
5821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5822 | (eval $ac_try) 2>&5 | |
5823 | ac_status=$? | |
5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5825 | (exit $ac_status); }; } && | |
5826 | { ac_try='test -s conftest$ac_exeext' | |
5827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5828 | (eval $ac_try) 2>&5 | |
5829 | ac_status=$? | |
5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5831 | (exit $ac_status); }; }; then | |
252b5132 RH |
5832 | ac_cv_func_alloca_works=yes |
5833 | else | |
e5a52504 MM |
5834 | echo "$as_me: failed program was:" >&5 |
5835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5836 | ||
5837 | ac_cv_func_alloca_works=no | |
252b5132 | 5838 | fi |
e5a52504 MM |
5839 | rm -f conftest.err conftest.$ac_objext \ |
5840 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 5841 | fi |
e5a52504 MM |
5842 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
5843 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 5844 | |
252b5132 | 5845 | if test $ac_cv_func_alloca_works = yes; then |
252b5132 | 5846 | |
e5a52504 MM |
5847 | cat >>confdefs.h <<\_ACEOF |
5848 | #define HAVE_ALLOCA 1 | |
5849 | _ACEOF | |
252b5132 | 5850 | |
e5a52504 | 5851 | else |
252b5132 | 5852 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
e5a52504 MM |
5853 | # that cause trouble. Some versions do not even contain alloca or |
5854 | # contain a buggy version. If you still want to use their alloca, | |
5855 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5856 | ||
5857 | ALLOCA=alloca.$ac_objext | |
5858 | ||
5859 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5860 | #define C_ALLOCA 1 |
e5a52504 | 5861 | _ACEOF |
252b5132 RH |
5862 | |
5863 | ||
e5a52504 MM |
5864 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
5865 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5866 | if test "${ac_cv_os_cray+set}" = set; then | |
5867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5868 | else |
e5a52504 MM |
5869 | cat >conftest.$ac_ext <<_ACEOF |
5870 | /* confdefs.h. */ | |
5871 | _ACEOF | |
5872 | cat confdefs.h >>conftest.$ac_ext | |
5873 | cat >>conftest.$ac_ext <<_ACEOF | |
5874 | /* end confdefs.h. */ | |
252b5132 RH |
5875 | #if defined(CRAY) && ! defined(CRAY2) |
5876 | webecray | |
5877 | #else | |
5878 | wenotbecray | |
5879 | #endif | |
5880 | ||
e5a52504 | 5881 | _ACEOF |
252b5132 | 5882 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e5a52504 | 5883 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
5884 | ac_cv_os_cray=yes |
5885 | else | |
252b5132 RH |
5886 | ac_cv_os_cray=no |
5887 | fi | |
5888 | rm -f conftest* | |
5889 | ||
5890 | fi | |
e5a52504 MM |
5891 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5892 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 5893 | if test $ac_cv_os_cray = yes; then |
e5a52504 MM |
5894 | for ac_func in _getb67 GETB67 getb67; do |
5895 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5896 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5897 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5898 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5900 | else | |
5901 | cat >conftest.$ac_ext <<_ACEOF | |
5902 | /* confdefs.h. */ | |
5903 | _ACEOF | |
5904 | cat confdefs.h >>conftest.$ac_ext | |
5905 | cat >>conftest.$ac_ext <<_ACEOF | |
5906 | /* end confdefs.h. */ | |
5907 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5908 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5909 | #define $ac_func innocuous_$ac_func | |
5910 | ||
252b5132 | 5911 | /* System header to define __stub macros and hopefully few prototypes, |
e5a52504 MM |
5912 | which can conflict with char $ac_func (); below. |
5913 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5914 | <limits.h> exists even on freestanding compilers. */ | |
5915 | ||
5916 | #ifdef __STDC__ | |
5917 | # include <limits.h> | |
5918 | #else | |
5919 | # include <assert.h> | |
5920 | #endif | |
252b5132 | 5921 | |
e5a52504 | 5922 | #undef $ac_func |
252b5132 | 5923 | |
e5a52504 MM |
5924 | /* Override any gcc2 internal prototype to avoid an error. */ |
5925 | #ifdef __cplusplus | |
5926 | extern "C" | |
5927 | { | |
5928 | #endif | |
5929 | /* We use char because int might match the return type of a gcc2 | |
5930 | builtin and then its argument prototype would still apply. */ | |
5931 | char $ac_func (); | |
252b5132 RH |
5932 | /* The GNU C library defines this for functions which it implements |
5933 | to always fail with ENOSYS. Some functions are actually named | |
5934 | something starting with __ and the normal name is an alias. */ | |
5935 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5936 | choke me | |
5937 | #else | |
e5a52504 MM |
5938 | char (*f) () = $ac_func; |
5939 | #endif | |
5940 | #ifdef __cplusplus | |
5941 | } | |
252b5132 RH |
5942 | #endif |
5943 | ||
e5a52504 MM |
5944 | int |
5945 | main () | |
5946 | { | |
5947 | return f != $ac_func; | |
5948 | ; | |
5949 | return 0; | |
5950 | } | |
5951 | _ACEOF | |
5952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5954 | (eval $ac_link) 2>conftest.er1 | |
5955 | ac_status=$? | |
5956 | grep -v '^ *+' conftest.er1 >conftest.err | |
5957 | rm -f conftest.er1 | |
5958 | cat conftest.err >&5 | |
5959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5960 | (exit $ac_status); } && | |
5961 | { ac_try='test -z "$ac_c_werror_flag" | |
5962 | || test ! -s conftest.err' | |
5963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5964 | (eval $ac_try) 2>&5 | |
5965 | ac_status=$? | |
5966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5967 | (exit $ac_status); }; } && | |
5968 | { ac_try='test -s conftest$ac_exeext' | |
5969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5970 | (eval $ac_try) 2>&5 | |
5971 | ac_status=$? | |
5972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5973 | (exit $ac_status); }; }; then | |
5974 | eval "$as_ac_var=yes" | |
5975 | else | |
5976 | echo "$as_me: failed program was:" >&5 | |
5977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5978 | ||
5979 | eval "$as_ac_var=no" | |
5980 | fi | |
5981 | rm -f conftest.err conftest.$ac_objext \ | |
5982 | conftest$ac_exeext conftest.$ac_ext | |
5983 | fi | |
5984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5985 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5986 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5987 | ||
5988 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5989 | #define CRAY_STACKSEG_END $ac_func |
e5a52504 | 5990 | _ACEOF |
252b5132 | 5991 | |
e5a52504 | 5992 | break |
252b5132 RH |
5993 | fi |
5994 | ||
e5a52504 | 5995 | done |
252b5132 RH |
5996 | fi |
5997 | ||
e5a52504 MM |
5998 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
5999 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6000 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6002 | else |
6003 | if test "$cross_compiling" = yes; then | |
6004 | ac_cv_c_stack_direction=0 | |
6005 | else | |
e5a52504 MM |
6006 | cat >conftest.$ac_ext <<_ACEOF |
6007 | /* confdefs.h. */ | |
6008 | _ACEOF | |
6009 | cat confdefs.h >>conftest.$ac_ext | |
6010 | cat >>conftest.$ac_ext <<_ACEOF | |
6011 | /* end confdefs.h. */ | |
6012 | int | |
252b5132 RH |
6013 | find_stack_direction () |
6014 | { | |
6015 | static char *addr = 0; | |
6016 | auto char dummy; | |
6017 | if (addr == 0) | |
6018 | { | |
6019 | addr = &dummy; | |
6020 | return find_stack_direction (); | |
6021 | } | |
6022 | else | |
6023 | return (&dummy > addr) ? 1 : -1; | |
6024 | } | |
e5a52504 MM |
6025 | |
6026 | int | |
252b5132 RH |
6027 | main () |
6028 | { | |
e5a52504 | 6029 | exit (find_stack_direction () < 0); |
252b5132 | 6030 | } |
e5a52504 MM |
6031 | _ACEOF |
6032 | rm -f conftest$ac_exeext | |
6033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6034 | (eval $ac_link) 2>&5 | |
6035 | ac_status=$? | |
6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6039 | (eval $ac_try) 2>&5 | |
6040 | ac_status=$? | |
6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6042 | (exit $ac_status); }; }; then | |
252b5132 RH |
6043 | ac_cv_c_stack_direction=1 |
6044 | else | |
e5a52504 MM |
6045 | echo "$as_me: program exited with status $ac_status" >&5 |
6046 | echo "$as_me: failed program was:" >&5 | |
6047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6048 | ||
6049 | ( exit $ac_status ) | |
6050 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6051 | fi |
e5a52504 | 6052 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6053 | fi |
252b5132 | 6054 | fi |
e5a52504 MM |
6055 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6056 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6057 | |
e5a52504 | 6058 | cat >>confdefs.h <<_ACEOF |
252b5132 | 6059 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
e5a52504 MM |
6060 | _ACEOF |
6061 | ||
252b5132 RH |
6062 | |
6063 | fi | |
6064 | ||
e5a52504 MM |
6065 | |
6066 | ||
6067 | for ac_header in stdlib.h unistd.h | |
252b5132 | 6068 | do |
e5a52504 MM |
6069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6075 | fi | |
6076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6078 | else | |
6079 | # Is the header compilable? | |
6080 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6081 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6082 | cat >conftest.$ac_ext <<_ACEOF | |
6083 | /* confdefs.h. */ | |
6084 | _ACEOF | |
6085 | cat confdefs.h >>conftest.$ac_ext | |
6086 | cat >>conftest.$ac_ext <<_ACEOF | |
6087 | /* end confdefs.h. */ | |
6088 | $ac_includes_default | |
6089 | #include <$ac_header> | |
6090 | _ACEOF | |
6091 | rm -f conftest.$ac_objext | |
6092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6093 | (eval $ac_compile) 2>conftest.er1 | |
6094 | ac_status=$? | |
6095 | grep -v '^ *+' conftest.er1 >conftest.err | |
6096 | rm -f conftest.er1 | |
6097 | cat conftest.err >&5 | |
6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6099 | (exit $ac_status); } && | |
6100 | { ac_try='test -z "$ac_c_werror_flag" | |
6101 | || test ! -s conftest.err' | |
6102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6103 | (eval $ac_try) 2>&5 | |
6104 | ac_status=$? | |
6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6106 | (exit $ac_status); }; } && | |
6107 | { ac_try='test -s conftest.$ac_objext' | |
6108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6109 | (eval $ac_try) 2>&5 | |
6110 | ac_status=$? | |
6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6112 | (exit $ac_status); }; }; then | |
6113 | ac_header_compiler=yes | |
6114 | else | |
6115 | echo "$as_me: failed program was:" >&5 | |
6116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6117 | ||
6118 | ac_header_compiler=no | |
6119 | fi | |
6120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6121 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6122 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6123 | ||
6124 | # Is the header present? | |
6125 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6126 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6127 | cat >conftest.$ac_ext <<_ACEOF | |
6128 | /* confdefs.h. */ | |
6129 | _ACEOF | |
6130 | cat confdefs.h >>conftest.$ac_ext | |
6131 | cat >>conftest.$ac_ext <<_ACEOF | |
6132 | /* end confdefs.h. */ | |
6133 | #include <$ac_header> | |
6134 | _ACEOF | |
6135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6137 | ac_status=$? | |
6138 | grep -v '^ *+' conftest.er1 >conftest.err | |
6139 | rm -f conftest.er1 | |
6140 | cat conftest.err >&5 | |
6141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6142 | (exit $ac_status); } >/dev/null; then | |
6143 | if test -s conftest.err; then | |
6144 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6146 | else | |
6147 | ac_cpp_err= | |
6148 | fi | |
252b5132 | 6149 | else |
e5a52504 | 6150 | ac_cpp_err=yes |
252b5132 | 6151 | fi |
e5a52504 MM |
6152 | if test -z "$ac_cpp_err"; then |
6153 | ac_header_preproc=yes | |
6154 | else | |
6155 | echo "$as_me: failed program was:" >&5 | |
6156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6157 | ||
6158 | ac_header_preproc=no | |
252b5132 | 6159 | fi |
e5a52504 MM |
6160 | rm -f conftest.err conftest.$ac_ext |
6161 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6162 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6163 | ||
6164 | # So? What about this header? | |
6165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6166 | yes:no: ) | |
6167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6171 | ac_header_preproc=yes | |
6172 | ;; | |
6173 | no:yes:* ) | |
6174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6185 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6186 | ( | |
6187 | cat <<\_ASBOX | |
6188 | ## ------------------------------------------ ## | |
6189 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6190 | ## ------------------------------------------ ## | |
6191 | _ASBOX | |
6192 | ) | | |
6193 | sed "s/^/$as_me: WARNING: /" >&2 | |
6194 | ;; | |
6195 | esac | |
6196 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6200 | else |
e5a52504 MM |
6201 | eval "$as_ac_Header=\$ac_header_preproc" |
6202 | fi | |
6203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6204 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6205 | ||
252b5132 | 6206 | fi |
e5a52504 MM |
6207 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6208 | cat >>confdefs.h <<_ACEOF | |
6209 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6210 | _ACEOF | |
6211 | ||
6212 | fi | |
6213 | ||
252b5132 RH |
6214 | done |
6215 | ||
e5a52504 | 6216 | |
252b5132 RH |
6217 | for ac_func in getpagesize |
6218 | do | |
e5a52504 MM |
6219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6220 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6222 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6224 | else | |
6225 | cat >conftest.$ac_ext <<_ACEOF | |
6226 | /* confdefs.h. */ | |
6227 | _ACEOF | |
6228 | cat confdefs.h >>conftest.$ac_ext | |
6229 | cat >>conftest.$ac_ext <<_ACEOF | |
6230 | /* end confdefs.h. */ | |
6231 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6232 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6233 | #define $ac_func innocuous_$ac_func | |
6234 | ||
252b5132 | 6235 | /* System header to define __stub macros and hopefully few prototypes, |
e5a52504 MM |
6236 | which can conflict with char $ac_func (); below. |
6237 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6238 | <limits.h> exists even on freestanding compilers. */ | |
6239 | ||
6240 | #ifdef __STDC__ | |
6241 | # include <limits.h> | |
6242 | #else | |
6243 | # include <assert.h> | |
6244 | #endif | |
252b5132 | 6245 | |
e5a52504 | 6246 | #undef $ac_func |
252b5132 | 6247 | |
e5a52504 MM |
6248 | /* Override any gcc2 internal prototype to avoid an error. */ |
6249 | #ifdef __cplusplus | |
6250 | extern "C" | |
6251 | { | |
6252 | #endif | |
6253 | /* We use char because int might match the return type of a gcc2 | |
6254 | builtin and then its argument prototype would still apply. */ | |
6255 | char $ac_func (); | |
252b5132 RH |
6256 | /* The GNU C library defines this for functions which it implements |
6257 | to always fail with ENOSYS. Some functions are actually named | |
6258 | something starting with __ and the normal name is an alias. */ | |
6259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6260 | choke me | |
6261 | #else | |
e5a52504 MM |
6262 | char (*f) () = $ac_func; |
6263 | #endif | |
6264 | #ifdef __cplusplus | |
6265 | } | |
252b5132 RH |
6266 | #endif |
6267 | ||
e5a52504 MM |
6268 | int |
6269 | main () | |
6270 | { | |
6271 | return f != $ac_func; | |
6272 | ; | |
6273 | return 0; | |
6274 | } | |
6275 | _ACEOF | |
6276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6278 | (eval $ac_link) 2>conftest.er1 | |
6279 | ac_status=$? | |
6280 | grep -v '^ *+' conftest.er1 >conftest.err | |
6281 | rm -f conftest.er1 | |
6282 | cat conftest.err >&5 | |
6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6284 | (exit $ac_status); } && | |
6285 | { ac_try='test -z "$ac_c_werror_flag" | |
6286 | || test ! -s conftest.err' | |
6287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6288 | (eval $ac_try) 2>&5 | |
6289 | ac_status=$? | |
6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6291 | (exit $ac_status); }; } && | |
6292 | { ac_try='test -s conftest$ac_exeext' | |
6293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6294 | (eval $ac_try) 2>&5 | |
6295 | ac_status=$? | |
6296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6297 | (exit $ac_status); }; }; then | |
6298 | eval "$as_ac_var=yes" | |
6299 | else | |
6300 | echo "$as_me: failed program was:" >&5 | |
6301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6302 | ||
6303 | eval "$as_ac_var=no" | |
6304 | fi | |
6305 | rm -f conftest.err conftest.$ac_objext \ | |
6306 | conftest$ac_exeext conftest.$ac_ext | |
6307 | fi | |
6308 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6309 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6310 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6311 | cat >>confdefs.h <<_ACEOF | |
6312 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6313 | _ACEOF | |
252b5132 | 6314 | |
252b5132 RH |
6315 | fi |
6316 | done | |
6317 | ||
e5a52504 MM |
6318 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
6319 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6320 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6322 | else |
6323 | if test "$cross_compiling" = yes; then | |
6324 | ac_cv_func_mmap_fixed_mapped=no | |
6325 | else | |
e5a52504 MM |
6326 | cat >conftest.$ac_ext <<_ACEOF |
6327 | /* confdefs.h. */ | |
6328 | _ACEOF | |
6329 | cat confdefs.h >>conftest.$ac_ext | |
6330 | cat >>conftest.$ac_ext <<_ACEOF | |
6331 | /* end confdefs.h. */ | |
6332 | $ac_includes_default | |
6333 | /* malloc might have been renamed as rpl_malloc. */ | |
6334 | #undef malloc | |
252b5132 RH |
6335 | |
6336 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6337 | Here is a matrix of mmap possibilities: | |
6338 | mmap private not fixed | |
6339 | mmap private fixed at somewhere currently unmapped | |
6340 | mmap private fixed at somewhere already mapped | |
6341 | mmap shared not fixed | |
6342 | mmap shared fixed at somewhere currently unmapped | |
6343 | mmap shared fixed at somewhere already mapped | |
6344 | For private mappings, we should verify that changes cannot be read() | |
6345 | back from the file, nor mmap's back from the file at a different | |
6346 | address. (There have been systems where private was not correctly | |
6347 | implemented like the infamous i386 svr4.0, and systems where the | |
e5a52504 | 6348 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
6349 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6350 | For shared mappings, we should conversely verify that changes get | |
e5a52504 | 6351 | propagated back to all the places they're supposed to be. |
252b5132 RH |
6352 | |
6353 | Grep wants private fixed already mapped. | |
6354 | The main things grep needs to know about mmap are: | |
6355 | * does it exist and is it safe to write into the mmap'd area | |
6356 | * how to use it (BSD variants) */ | |
e5a52504 | 6357 | |
252b5132 RH |
6358 | #include <fcntl.h> |
6359 | #include <sys/mman.h> | |
6360 | ||
e5a52504 MM |
6361 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
6362 | char *malloc (); | |
6ece5c52 AM |
6363 | #endif |
6364 | ||
252b5132 | 6365 | /* This mess was copied from the GNU getpagesize.h. */ |
e5a52504 | 6366 | #if !HAVE_GETPAGESIZE |
252b5132 | 6367 | /* Assume that all systems that can run configure have sys/param.h. */ |
e5a52504 | 6368 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
6369 | # define HAVE_SYS_PARAM_H 1 |
6370 | # endif | |
6371 | ||
6372 | # ifdef _SC_PAGESIZE | |
6373 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6374 | # else /* no _SC_PAGESIZE */ | |
e5a52504 | 6375 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
6376 | # include <sys/param.h> |
6377 | # ifdef EXEC_PAGESIZE | |
6378 | # define getpagesize() EXEC_PAGESIZE | |
6379 | # else /* no EXEC_PAGESIZE */ | |
6380 | # ifdef NBPG | |
6381 | # define getpagesize() NBPG * CLSIZE | |
6382 | # ifndef CLSIZE | |
6383 | # define CLSIZE 1 | |
6384 | # endif /* no CLSIZE */ | |
6385 | # else /* no NBPG */ | |
6386 | # ifdef NBPC | |
6387 | # define getpagesize() NBPC | |
6388 | # else /* no NBPC */ | |
6389 | # ifdef PAGESIZE | |
6390 | # define getpagesize() PAGESIZE | |
6391 | # endif /* PAGESIZE */ | |
6392 | # endif /* no NBPC */ | |
6393 | # endif /* no NBPG */ | |
6394 | # endif /* no EXEC_PAGESIZE */ | |
6395 | # else /* no HAVE_SYS_PARAM_H */ | |
6396 | # define getpagesize() 8192 /* punt totally */ | |
6397 | # endif /* no HAVE_SYS_PARAM_H */ | |
6398 | # endif /* no _SC_PAGESIZE */ | |
6399 | ||
6400 | #endif /* no HAVE_GETPAGESIZE */ | |
6401 | ||
252b5132 | 6402 | int |
e5a52504 | 6403 | main () |
252b5132 | 6404 | { |
e5a52504 MM |
6405 | char *data, *data2, *data3; |
6406 | int i, pagesize; | |
6407 | int fd; | |
6408 | ||
6409 | pagesize = getpagesize (); | |
6410 | ||
6411 | /* First, make a file with some known garbage in it. */ | |
6412 | data = (char *) malloc (pagesize); | |
6413 | if (!data) | |
6414 | exit (1); | |
6415 | for (i = 0; i < pagesize; ++i) | |
6416 | *(data + i) = rand (); | |
6417 | umask (0); | |
6418 | fd = creat ("conftest.mmap", 0600); | |
6419 | if (fd < 0) | |
6420 | exit (1); | |
6421 | if (write (fd, data, pagesize) != pagesize) | |
6422 | exit (1); | |
6423 | close (fd); | |
6424 | ||
6425 | /* Next, try to mmap the file at a fixed address which already has | |
6426 | something else allocated at it. If we can, also make sure that | |
6427 | we see the same garbage. */ | |
6428 | fd = open ("conftest.mmap", O_RDWR); | |
6429 | if (fd < 0) | |
6430 | exit (1); | |
6431 | data2 = (char *) malloc (2 * pagesize); | |
6432 | if (!data2) | |
6433 | exit (1); | |
6434 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6435 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6436 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6437 | exit (1); | |
6438 | for (i = 0; i < pagesize; ++i) | |
6439 | if (*(data + i) != *(data2 + i)) | |
6440 | exit (1); | |
6441 | ||
6442 | /* Finally, make sure that changes to the mapped area do not | |
6443 | percolate back to the file as seen by read(). (This is a bug on | |
6444 | some variants of i386 svr4.0.) */ | |
6445 | for (i = 0; i < pagesize; ++i) | |
6446 | *(data2 + i) = *(data2 + i) + 1; | |
6447 | data3 = (char *) malloc (pagesize); | |
6448 | if (!data3) | |
6449 | exit (1); | |
6450 | if (read (fd, data3, pagesize) != pagesize) | |
6451 | exit (1); | |
6452 | for (i = 0; i < pagesize; ++i) | |
6453 | if (*(data + i) != *(data3 + i)) | |
6454 | exit (1); | |
6455 | close (fd); | |
6456 | exit (0); | |
252b5132 | 6457 | } |
e5a52504 MM |
6458 | _ACEOF |
6459 | rm -f conftest$ac_exeext | |
6460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6461 | (eval $ac_link) 2>&5 | |
6462 | ac_status=$? | |
6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6464 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6466 | (eval $ac_try) 2>&5 | |
6467 | ac_status=$? | |
6468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6469 | (exit $ac_status); }; }; then | |
252b5132 RH |
6470 | ac_cv_func_mmap_fixed_mapped=yes |
6471 | else | |
e5a52504 MM |
6472 | echo "$as_me: program exited with status $ac_status" >&5 |
6473 | echo "$as_me: failed program was:" >&5 | |
6474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6475 | ||
6476 | ( exit $ac_status ) | |
6477 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6478 | fi |
e5a52504 | 6479 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6480 | fi |
252b5132 | 6481 | fi |
e5a52504 MM |
6482 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6483 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
252b5132 | 6484 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
e5a52504 MM |
6485 | |
6486 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6487 | #define HAVE_MMAP 1 |
e5a52504 | 6488 | _ACEOF |
252b5132 RH |
6489 | |
6490 | fi | |
e5a52504 MM |
6491 | rm -f conftest.mmap |
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
252b5132 | 6499 | |
e5a52504 MM |
6500 | |
6501 | ||
6502 | ||
6503 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
6504 | unistd.h values.h sys/param.h |
6505 | do | |
e5a52504 MM |
6506 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6512 | fi | |
6513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6515 | else | |
6516 | # Is the header compilable? | |
6517 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6518 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6519 | cat >conftest.$ac_ext <<_ACEOF | |
6520 | /* confdefs.h. */ | |
6521 | _ACEOF | |
6522 | cat confdefs.h >>conftest.$ac_ext | |
6523 | cat >>conftest.$ac_ext <<_ACEOF | |
6524 | /* end confdefs.h. */ | |
6525 | $ac_includes_default | |
6526 | #include <$ac_header> | |
6527 | _ACEOF | |
6528 | rm -f conftest.$ac_objext | |
6529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6530 | (eval $ac_compile) 2>conftest.er1 | |
6531 | ac_status=$? | |
6532 | grep -v '^ *+' conftest.er1 >conftest.err | |
6533 | rm -f conftest.er1 | |
6534 | cat conftest.err >&5 | |
6535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6536 | (exit $ac_status); } && | |
6537 | { ac_try='test -z "$ac_c_werror_flag" | |
6538 | || test ! -s conftest.err' | |
6539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6540 | (eval $ac_try) 2>&5 | |
6541 | ac_status=$? | |
6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6543 | (exit $ac_status); }; } && | |
6544 | { ac_try='test -s conftest.$ac_objext' | |
6545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6546 | (eval $ac_try) 2>&5 | |
6547 | ac_status=$? | |
6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6549 | (exit $ac_status); }; }; then | |
6550 | ac_header_compiler=yes | |
6551 | else | |
6552 | echo "$as_me: failed program was:" >&5 | |
6553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6554 | ||
6555 | ac_header_compiler=no | |
6556 | fi | |
6557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6558 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6559 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6560 | ||
6561 | # Is the header present? | |
6562 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6563 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6564 | cat >conftest.$ac_ext <<_ACEOF | |
6565 | /* confdefs.h. */ | |
6566 | _ACEOF | |
6567 | cat confdefs.h >>conftest.$ac_ext | |
6568 | cat >>conftest.$ac_ext <<_ACEOF | |
6569 | /* end confdefs.h. */ | |
6570 | #include <$ac_header> | |
6571 | _ACEOF | |
6572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6574 | ac_status=$? | |
6575 | grep -v '^ *+' conftest.er1 >conftest.err | |
6576 | rm -f conftest.er1 | |
6577 | cat conftest.err >&5 | |
6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6579 | (exit $ac_status); } >/dev/null; then | |
6580 | if test -s conftest.err; then | |
6581 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6583 | else | |
6584 | ac_cpp_err= | |
6585 | fi | |
252b5132 | 6586 | else |
e5a52504 | 6587 | ac_cpp_err=yes |
252b5132 | 6588 | fi |
e5a52504 MM |
6589 | if test -z "$ac_cpp_err"; then |
6590 | ac_header_preproc=yes | |
6591 | else | |
6592 | echo "$as_me: failed program was:" >&5 | |
6593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6594 | ||
6595 | ac_header_preproc=no | |
252b5132 | 6596 | fi |
e5a52504 MM |
6597 | rm -f conftest.err conftest.$ac_ext |
6598 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6599 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6600 | ||
6601 | # So? What about this header? | |
6602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6603 | yes:no: ) | |
6604 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6605 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6607 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6608 | ac_header_preproc=yes | |
6609 | ;; | |
6610 | no:yes:* ) | |
6611 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6612 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6613 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6614 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6615 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6616 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6617 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6618 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6620 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6621 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6622 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6623 | ( | |
6624 | cat <<\_ASBOX | |
6625 | ## ------------------------------------------ ## | |
6626 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6627 | ## ------------------------------------------ ## | |
6628 | _ASBOX | |
6629 | ) | | |
6630 | sed "s/^/$as_me: WARNING: /" >&2 | |
6631 | ;; | |
6632 | esac | |
6633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6637 | else |
e5a52504 | 6638 | eval "$as_ac_Header=\$ac_header_preproc" |
252b5132 | 6639 | fi |
e5a52504 MM |
6640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6642 | ||
6643 | fi | |
6644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6645 | cat >>confdefs.h <<_ACEOF | |
6646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6647 | _ACEOF | |
6648 | ||
6649 | fi | |
6650 | ||
252b5132 RH |
6651 | done |
6652 | ||
e5a52504 MM |
6653 | |
6654 | ||
6655 | ||
6656 | ||
6657 | ||
6658 | ||
6659 | ||
6660 | ||
6661 | ||
6662 | ||
6663 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
6664 | __argz_count __argz_stringify __argz_next |
6665 | do | |
e5a52504 MM |
6666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6669 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6671 | else | |
6672 | cat >conftest.$ac_ext <<_ACEOF | |
6673 | /* confdefs.h. */ | |
6674 | _ACEOF | |
6675 | cat confdefs.h >>conftest.$ac_ext | |
6676 | cat >>conftest.$ac_ext <<_ACEOF | |
6677 | /* end confdefs.h. */ | |
6678 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6680 | #define $ac_func innocuous_$ac_func | |
6681 | ||
252b5132 | 6682 | /* System header to define __stub macros and hopefully few prototypes, |
e5a52504 MM |
6683 | which can conflict with char $ac_func (); below. |
6684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6685 | <limits.h> exists even on freestanding compilers. */ | |
6686 | ||
6687 | #ifdef __STDC__ | |
6688 | # include <limits.h> | |
6689 | #else | |
6690 | # include <assert.h> | |
6691 | #endif | |
252b5132 | 6692 | |
e5a52504 | 6693 | #undef $ac_func |
252b5132 | 6694 | |
e5a52504 MM |
6695 | /* Override any gcc2 internal prototype to avoid an error. */ |
6696 | #ifdef __cplusplus | |
6697 | extern "C" | |
6698 | { | |
6699 | #endif | |
6700 | /* We use char because int might match the return type of a gcc2 | |
6701 | builtin and then its argument prototype would still apply. */ | |
6702 | char $ac_func (); | |
252b5132 RH |
6703 | /* The GNU C library defines this for functions which it implements |
6704 | to always fail with ENOSYS. Some functions are actually named | |
6705 | something starting with __ and the normal name is an alias. */ | |
6706 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6707 | choke me | |
6708 | #else | |
e5a52504 MM |
6709 | char (*f) () = $ac_func; |
6710 | #endif | |
6711 | #ifdef __cplusplus | |
6712 | } | |
252b5132 RH |
6713 | #endif |
6714 | ||
e5a52504 MM |
6715 | int |
6716 | main () | |
6717 | { | |
6718 | return f != $ac_func; | |
6719 | ; | |
6720 | return 0; | |
6721 | } | |
6722 | _ACEOF | |
6723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6725 | (eval $ac_link) 2>conftest.er1 | |
6726 | ac_status=$? | |
6727 | grep -v '^ *+' conftest.er1 >conftest.err | |
6728 | rm -f conftest.er1 | |
6729 | cat conftest.err >&5 | |
6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6731 | (exit $ac_status); } && | |
6732 | { ac_try='test -z "$ac_c_werror_flag" | |
6733 | || test ! -s conftest.err' | |
6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6735 | (eval $ac_try) 2>&5 | |
6736 | ac_status=$? | |
6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6738 | (exit $ac_status); }; } && | |
6739 | { ac_try='test -s conftest$ac_exeext' | |
6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6741 | (eval $ac_try) 2>&5 | |
6742 | ac_status=$? | |
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6744 | (exit $ac_status); }; }; then | |
6745 | eval "$as_ac_var=yes" | |
6746 | else | |
6747 | echo "$as_me: failed program was:" >&5 | |
6748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6749 | ||
6750 | eval "$as_ac_var=no" | |
6751 | fi | |
6752 | rm -f conftest.err conftest.$ac_objext \ | |
6753 | conftest$ac_exeext conftest.$ac_ext | |
6754 | fi | |
6755 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6756 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6757 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6758 | cat >>confdefs.h <<_ACEOF | |
6759 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6760 | _ACEOF | |
252b5132 | 6761 | |
252b5132 RH |
6762 | fi |
6763 | done | |
6764 | ||
6765 | ||
6766 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
e5a52504 MM |
6767 | |
6768 | for ac_func in stpcpy | |
252b5132 | 6769 | do |
e5a52504 MM |
6770 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6771 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6772 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6773 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6775 | else | |
6776 | cat >conftest.$ac_ext <<_ACEOF | |
6777 | /* confdefs.h. */ | |
6778 | _ACEOF | |
6779 | cat confdefs.h >>conftest.$ac_ext | |
6780 | cat >>conftest.$ac_ext <<_ACEOF | |
6781 | /* end confdefs.h. */ | |
6782 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6783 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6784 | #define $ac_func innocuous_$ac_func | |
6785 | ||
252b5132 | 6786 | /* System header to define __stub macros and hopefully few prototypes, |
e5a52504 MM |
6787 | which can conflict with char $ac_func (); below. |
6788 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6789 | <limits.h> exists even on freestanding compilers. */ | |
6790 | ||
6791 | #ifdef __STDC__ | |
6792 | # include <limits.h> | |
6793 | #else | |
6794 | # include <assert.h> | |
6795 | #endif | |
252b5132 | 6796 | |
e5a52504 | 6797 | #undef $ac_func |
252b5132 | 6798 | |
e5a52504 MM |
6799 | /* Override any gcc2 internal prototype to avoid an error. */ |
6800 | #ifdef __cplusplus | |
6801 | extern "C" | |
6802 | { | |
6803 | #endif | |
6804 | /* We use char because int might match the return type of a gcc2 | |
6805 | builtin and then its argument prototype would still apply. */ | |
6806 | char $ac_func (); | |
252b5132 RH |
6807 | /* The GNU C library defines this for functions which it implements |
6808 | to always fail with ENOSYS. Some functions are actually named | |
6809 | something starting with __ and the normal name is an alias. */ | |
6810 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6811 | choke me | |
6812 | #else | |
e5a52504 MM |
6813 | char (*f) () = $ac_func; |
6814 | #endif | |
6815 | #ifdef __cplusplus | |
6816 | } | |
252b5132 RH |
6817 | #endif |
6818 | ||
e5a52504 MM |
6819 | int |
6820 | main () | |
6821 | { | |
6822 | return f != $ac_func; | |
6823 | ; | |
6824 | return 0; | |
6825 | } | |
6826 | _ACEOF | |
6827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6829 | (eval $ac_link) 2>conftest.er1 | |
6830 | ac_status=$? | |
6831 | grep -v '^ *+' conftest.er1 >conftest.err | |
6832 | rm -f conftest.er1 | |
6833 | cat conftest.err >&5 | |
6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6835 | (exit $ac_status); } && | |
6836 | { ac_try='test -z "$ac_c_werror_flag" | |
6837 | || test ! -s conftest.err' | |
6838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6839 | (eval $ac_try) 2>&5 | |
6840 | ac_status=$? | |
6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6842 | (exit $ac_status); }; } && | |
6843 | { ac_try='test -s conftest$ac_exeext' | |
6844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6845 | (eval $ac_try) 2>&5 | |
6846 | ac_status=$? | |
6847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6848 | (exit $ac_status); }; }; then | |
6849 | eval "$as_ac_var=yes" | |
6850 | else | |
6851 | echo "$as_me: failed program was:" >&5 | |
6852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6853 | ||
6854 | eval "$as_ac_var=no" | |
6855 | fi | |
6856 | rm -f conftest.err conftest.$ac_objext \ | |
6857 | conftest$ac_exeext conftest.$ac_ext | |
6858 | fi | |
6859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6860 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6861 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6862 | cat >>confdefs.h <<_ACEOF | |
6863 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6864 | _ACEOF | |
252b5132 | 6865 | |
252b5132 RH |
6866 | fi |
6867 | done | |
6868 | ||
6869 | fi | |
6870 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
e5a52504 MM |
6871 | |
6872 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6873 | #define HAVE_STPCPY 1 |
e5a52504 | 6874 | _ACEOF |
252b5132 RH |
6875 | |
6876 | fi | |
6877 | ||
6878 | if test $ac_cv_header_locale_h = yes; then | |
e5a52504 MM |
6879 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
6880 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
6881 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
6882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6883 | else | |
6884 | cat >conftest.$ac_ext <<_ACEOF | |
6885 | /* confdefs.h. */ | |
6886 | _ACEOF | |
6887 | cat confdefs.h >>conftest.$ac_ext | |
6888 | cat >>conftest.$ac_ext <<_ACEOF | |
6889 | /* end confdefs.h. */ | |
252b5132 | 6890 | #include <locale.h> |
e5a52504 MM |
6891 | int |
6892 | main () | |
6893 | { | |
252b5132 | 6894 | return LC_MESSAGES |
e5a52504 MM |
6895 | ; |
6896 | return 0; | |
6897 | } | |
6898 | _ACEOF | |
6899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6901 | (eval $ac_link) 2>conftest.er1 | |
6902 | ac_status=$? | |
6903 | grep -v '^ *+' conftest.er1 >conftest.err | |
6904 | rm -f conftest.er1 | |
6905 | cat conftest.err >&5 | |
6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6907 | (exit $ac_status); } && | |
6908 | { ac_try='test -z "$ac_c_werror_flag" | |
6909 | || test ! -s conftest.err' | |
6910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6911 | (eval $ac_try) 2>&5 | |
6912 | ac_status=$? | |
6913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6914 | (exit $ac_status); }; } && | |
6915 | { ac_try='test -s conftest$ac_exeext' | |
6916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6917 | (eval $ac_try) 2>&5 | |
6918 | ac_status=$? | |
6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6920 | (exit $ac_status); }; }; then | |
252b5132 RH |
6921 | am_cv_val_LC_MESSAGES=yes |
6922 | else | |
e5a52504 MM |
6923 | echo "$as_me: failed program was:" >&5 |
6924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6925 | ||
6926 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 6927 | fi |
e5a52504 MM |
6928 | rm -f conftest.err conftest.$ac_objext \ |
6929 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 6930 | fi |
e5a52504 MM |
6931 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
6932 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
252b5132 | 6933 | if test $am_cv_val_LC_MESSAGES = yes; then |
e5a52504 MM |
6934 | |
6935 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6936 | #define HAVE_LC_MESSAGES 1 |
e5a52504 | 6937 | _ACEOF |
252b5132 RH |
6938 | |
6939 | fi | |
6940 | fi | |
e5a52504 MM |
6941 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
6942 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
6943 | # Check whether --enable-nls or --disable-nls was given. |
6944 | if test "${enable_nls+set}" = set; then | |
6945 | enableval="$enable_nls" | |
6946 | USE_NLS=$enableval | |
6947 | else | |
6948 | USE_NLS=yes | |
e5a52504 MM |
6949 | fi; |
6950 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
6951 | echo "${ECHO_T}$USE_NLS" >&6 | |
252b5132 | 6952 | |
252b5132 RH |
6953 | |
6954 | USE_INCLUDED_LIBINTL=no | |
6955 | ||
6956 | if test "$USE_NLS" = "yes"; then | |
e5a52504 MM |
6957 | |
6958 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6959 | #define ENABLE_NLS 1 |
e5a52504 MM |
6960 | _ACEOF |
6961 | ||
6962 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
6963 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
252b5132 | 6964 | |
e5a52504 | 6965 | # Check whether --with-included-gettext or --without-included-gettext was given. |
252b5132 RH |
6966 | if test "${with_included_gettext+set}" = set; then |
6967 | withval="$with_included_gettext" | |
6968 | nls_cv_force_use_gnu_gettext=$withval | |
6969 | else | |
6970 | nls_cv_force_use_gnu_gettext=no | |
e5a52504 MM |
6971 | fi; |
6972 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
6973 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
6974 | |
6975 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
6976 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
6977 | nls_cv_header_intl= | |
6978 | nls_cv_header_libgt= | |
6979 | CATOBJEXT=NONE | |
6980 | ||
e5a52504 MM |
6981 | if test "${ac_cv_header_libintl_h+set}" = set; then |
6982 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
6983 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
6984 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
6985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6986 | fi | |
6987 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
6988 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
6989 | else | |
6990 | # Is the header compilable? | |
6991 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
6992 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
6993 | cat >conftest.$ac_ext <<_ACEOF | |
6994 | /* confdefs.h. */ | |
6995 | _ACEOF | |
6996 | cat confdefs.h >>conftest.$ac_ext | |
6997 | cat >>conftest.$ac_ext <<_ACEOF | |
6998 | /* end confdefs.h. */ | |
6999 | $ac_includes_default | |
7000 | #include <libintl.h> | |
7001 | _ACEOF | |
7002 | rm -f conftest.$ac_objext | |
7003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7004 | (eval $ac_compile) 2>conftest.er1 | |
7005 | ac_status=$? | |
7006 | grep -v '^ *+' conftest.er1 >conftest.err | |
7007 | rm -f conftest.er1 | |
7008 | cat conftest.err >&5 | |
7009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7010 | (exit $ac_status); } && | |
7011 | { ac_try='test -z "$ac_c_werror_flag" | |
7012 | || test ! -s conftest.err' | |
7013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7014 | (eval $ac_try) 2>&5 | |
7015 | ac_status=$? | |
7016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7017 | (exit $ac_status); }; } && | |
7018 | { ac_try='test -s conftest.$ac_objext' | |
7019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7020 | (eval $ac_try) 2>&5 | |
7021 | ac_status=$? | |
7022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7023 | (exit $ac_status); }; }; then | |
7024 | ac_header_compiler=yes | |
7025 | else | |
7026 | echo "$as_me: failed program was:" >&5 | |
7027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7028 | ||
7029 | ac_header_compiler=no | |
7030 | fi | |
7031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7032 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7033 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7034 | ||
7035 | # Is the header present? | |
7036 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
7037 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7038 | cat >conftest.$ac_ext <<_ACEOF | |
7039 | /* confdefs.h. */ | |
7040 | _ACEOF | |
7041 | cat confdefs.h >>conftest.$ac_ext | |
7042 | cat >>conftest.$ac_ext <<_ACEOF | |
7043 | /* end confdefs.h. */ | |
7044 | #include <libintl.h> | |
7045 | _ACEOF | |
7046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7047 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7048 | ac_status=$? | |
7049 | grep -v '^ *+' conftest.er1 >conftest.err | |
7050 | rm -f conftest.er1 | |
7051 | cat conftest.err >&5 | |
7052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7053 | (exit $ac_status); } >/dev/null; then | |
7054 | if test -s conftest.err; then | |
7055 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7056 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7057 | else | |
7058 | ac_cpp_err= | |
7059 | fi | |
7060 | else | |
7061 | ac_cpp_err=yes | |
7062 | fi | |
7063 | if test -z "$ac_cpp_err"; then | |
7064 | ac_header_preproc=yes | |
252b5132 | 7065 | else |
e5a52504 MM |
7066 | echo "$as_me: failed program was:" >&5 |
7067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7068 | ||
7069 | ac_header_preproc=no | |
7070 | fi | |
7071 | rm -f conftest.err conftest.$ac_ext | |
7072 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7073 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7074 | ||
7075 | # So? What about this header? | |
7076 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7077 | yes:no: ) | |
7078 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7079 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7080 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
7081 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
7082 | ac_header_preproc=yes | |
7083 | ;; | |
7084 | no:yes:* ) | |
7085 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
7086 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
7087 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7088 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7089 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
7090 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
7091 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7092 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7093 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7094 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
7095 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
7096 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
7097 | ( | |
7098 | cat <<\_ASBOX | |
7099 | ## ------------------------------------------ ## | |
7100 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7101 | ## ------------------------------------------ ## | |
7102 | _ASBOX | |
7103 | ) | | |
7104 | sed "s/^/$as_me: WARNING: /" >&2 | |
7105 | ;; | |
7106 | esac | |
7107 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7108 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7109 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7111 | else |
e5a52504 | 7112 | ac_cv_header_libintl_h=$ac_header_preproc |
252b5132 | 7113 | fi |
e5a52504 MM |
7114 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
7115 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7116 | ||
252b5132 | 7117 | fi |
e5a52504 MM |
7118 | if test $ac_cv_header_libintl_h = yes; then |
7119 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
7120 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
7121 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
7122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7123 | else |
e5a52504 MM |
7124 | cat >conftest.$ac_ext <<_ACEOF |
7125 | /* confdefs.h. */ | |
7126 | _ACEOF | |
7127 | cat confdefs.h >>conftest.$ac_ext | |
7128 | cat >>conftest.$ac_ext <<_ACEOF | |
7129 | /* end confdefs.h. */ | |
252b5132 | 7130 | #include <libintl.h> |
e5a52504 MM |
7131 | int |
7132 | main () | |
7133 | { | |
252b5132 | 7134 | return (int) gettext ("") |
e5a52504 MM |
7135 | ; |
7136 | return 0; | |
7137 | } | |
7138 | _ACEOF | |
7139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7141 | (eval $ac_link) 2>conftest.er1 | |
7142 | ac_status=$? | |
7143 | grep -v '^ *+' conftest.er1 >conftest.err | |
7144 | rm -f conftest.er1 | |
7145 | cat conftest.err >&5 | |
7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7147 | (exit $ac_status); } && | |
7148 | { ac_try='test -z "$ac_c_werror_flag" | |
7149 | || test ! -s conftest.err' | |
7150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7151 | (eval $ac_try) 2>&5 | |
7152 | ac_status=$? | |
7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7154 | (exit $ac_status); }; } && | |
7155 | { ac_try='test -s conftest$ac_exeext' | |
7156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7157 | (eval $ac_try) 2>&5 | |
7158 | ac_status=$? | |
7159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7160 | (exit $ac_status); }; }; then | |
252b5132 RH |
7161 | gt_cv_func_gettext_libc=yes |
7162 | else | |
e5a52504 MM |
7163 | echo "$as_me: failed program was:" >&5 |
7164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7165 | ||
7166 | gt_cv_func_gettext_libc=no | |
252b5132 | 7167 | fi |
e5a52504 MM |
7168 | rm -f conftest.err conftest.$ac_objext \ |
7169 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7170 | fi |
e5a52504 MM |
7171 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
7172 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
7173 | |
7174 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
e5a52504 MM |
7175 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
7176 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
7177 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
7178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7179 | else |
e5a52504 | 7180 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 7181 | LIBS="-lintl $LIBS" |
e5a52504 MM |
7182 | cat >conftest.$ac_ext <<_ACEOF |
7183 | /* confdefs.h. */ | |
7184 | _ACEOF | |
7185 | cat confdefs.h >>conftest.$ac_ext | |
7186 | cat >>conftest.$ac_ext <<_ACEOF | |
7187 | /* end confdefs.h. */ | |
7188 | ||
252b5132 | 7189 | /* Override any gcc2 internal prototype to avoid an error. */ |
e5a52504 MM |
7190 | #ifdef __cplusplus |
7191 | extern "C" | |
7192 | #endif | |
252b5132 | 7193 | /* We use char because int might match the return type of a gcc2 |
e5a52504 MM |
7194 | builtin and then its argument prototype would still apply. */ |
7195 | char bindtextdomain (); | |
7196 | int | |
7197 | main () | |
7198 | { | |
7199 | bindtextdomain (); | |
7200 | ; | |
7201 | return 0; | |
7202 | } | |
7203 | _ACEOF | |
7204 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7206 | (eval $ac_link) 2>conftest.er1 | |
7207 | ac_status=$? | |
7208 | grep -v '^ *+' conftest.er1 >conftest.err | |
7209 | rm -f conftest.er1 | |
7210 | cat conftest.err >&5 | |
7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7212 | (exit $ac_status); } && | |
7213 | { ac_try='test -z "$ac_c_werror_flag" | |
7214 | || test ! -s conftest.err' | |
7215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7216 | (eval $ac_try) 2>&5 | |
7217 | ac_status=$? | |
7218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7219 | (exit $ac_status); }; } && | |
7220 | { ac_try='test -s conftest$ac_exeext' | |
7221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7222 | (eval $ac_try) 2>&5 | |
7223 | ac_status=$? | |
7224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7225 | (exit $ac_status); }; }; then | |
7226 | ac_cv_lib_intl_bindtextdomain=yes | |
7227 | else | |
7228 | echo "$as_me: failed program was:" >&5 | |
7229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7230 | ||
7231 | ac_cv_lib_intl_bindtextdomain=no | |
7232 | fi | |
7233 | rm -f conftest.err conftest.$ac_objext \ | |
7234 | conftest$ac_exeext conftest.$ac_ext | |
7235 | LIBS=$ac_check_lib_save_LIBS | |
7236 | fi | |
7237 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
7238 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
7239 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
7240 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
7241 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
7242 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
7243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7244 | else | |
7245 | cat >conftest.$ac_ext <<_ACEOF | |
7246 | /* confdefs.h. */ | |
7247 | _ACEOF | |
7248 | cat confdefs.h >>conftest.$ac_ext | |
7249 | cat >>conftest.$ac_ext <<_ACEOF | |
7250 | /* end confdefs.h. */ | |
252b5132 | 7251 | |
e5a52504 MM |
7252 | int |
7253 | main () | |
7254 | { | |
252b5132 | 7255 | return (int) gettext ("") |
e5a52504 MM |
7256 | ; |
7257 | return 0; | |
7258 | } | |
7259 | _ACEOF | |
7260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7262 | (eval $ac_link) 2>conftest.er1 | |
7263 | ac_status=$? | |
7264 | grep -v '^ *+' conftest.er1 >conftest.err | |
7265 | rm -f conftest.er1 | |
7266 | cat conftest.err >&5 | |
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7268 | (exit $ac_status); } && | |
7269 | { ac_try='test -z "$ac_c_werror_flag" | |
7270 | || test ! -s conftest.err' | |
7271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7272 | (eval $ac_try) 2>&5 | |
7273 | ac_status=$? | |
7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7275 | (exit $ac_status); }; } && | |
7276 | { ac_try='test -s conftest$ac_exeext' | |
7277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7278 | (eval $ac_try) 2>&5 | |
7279 | ac_status=$? | |
7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7281 | (exit $ac_status); }; }; then | |
252b5132 RH |
7282 | gt_cv_func_gettext_libintl=yes |
7283 | else | |
e5a52504 MM |
7284 | echo "$as_me: failed program was:" >&5 |
7285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7286 | ||
7287 | gt_cv_func_gettext_libintl=no | |
252b5132 | 7288 | fi |
e5a52504 MM |
7289 | rm -f conftest.err conftest.$ac_objext \ |
7290 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7291 | fi |
e5a52504 MM |
7292 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
7293 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
7294 | fi |
7295 | ||
7296 | fi | |
7297 | ||
7298 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7299 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
e5a52504 MM |
7300 | |
7301 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7302 | #define HAVE_GETTEXT 1 |
e5a52504 | 7303 | _ACEOF |
252b5132 RH |
7304 | |
7305 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7306 | set dummy msgfmt; ac_word=$2 | |
e5a52504 MM |
7307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7309 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7311 | else |
7312 | case "$MSGFMT" in | |
7313 | /*) | |
7314 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7315 | ;; | |
7316 | *) | |
7317 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7318 | for ac_dir in $PATH; do | |
7319 | test -z "$ac_dir" && ac_dir=. | |
7320 | if test -f $ac_dir/$ac_word; then | |
7321 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7322 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7323 | break | |
7324 | fi | |
7325 | fi | |
7326 | done | |
7327 | IFS="$ac_save_ifs" | |
7328 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7329 | ;; | |
7330 | esac | |
7331 | fi | |
7332 | MSGFMT="$ac_cv_path_MSGFMT" | |
7333 | if test -n "$MSGFMT"; then | |
e5a52504 MM |
7334 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7335 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7336 | else |
e5a52504 MM |
7337 | echo "$as_me:$LINENO: result: no" >&5 |
7338 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7339 | fi |
7340 | if test "$MSGFMT" != "no"; then | |
e5a52504 MM |
7341 | |
7342 | for ac_func in dcgettext | |
252b5132 | 7343 | do |
e5a52504 MM |
7344 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7345 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7346 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7347 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7349 | else | |
7350 | cat >conftest.$ac_ext <<_ACEOF | |
7351 | /* confdefs.h. */ | |
7352 | _ACEOF | |
7353 | cat confdefs.h >>conftest.$ac_ext | |
7354 | cat >>conftest.$ac_ext <<_ACEOF | |
7355 | /* end confdefs.h. */ | |
7356 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7357 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7358 | #define $ac_func innocuous_$ac_func | |
7359 | ||
252b5132 | 7360 | /* System header to define __stub macros and hopefully few prototypes, |
e5a52504 MM |
7361 | which can conflict with char $ac_func (); below. |
7362 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7363 | <limits.h> exists even on freestanding compilers. */ | |
252b5132 | 7364 | |
e5a52504 MM |
7365 | #ifdef __STDC__ |
7366 | # include <limits.h> | |
7367 | #else | |
7368 | # include <assert.h> | |
7369 | #endif | |
252b5132 | 7370 | |
e5a52504 MM |
7371 | #undef $ac_func |
7372 | ||
7373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7374 | #ifdef __cplusplus | |
7375 | extern "C" | |
7376 | { | |
7377 | #endif | |
7378 | /* We use char because int might match the return type of a gcc2 | |
7379 | builtin and then its argument prototype would still apply. */ | |
7380 | char $ac_func (); | |
252b5132 RH |
7381 | /* The GNU C library defines this for functions which it implements |
7382 | to always fail with ENOSYS. Some functions are actually named | |
7383 | something starting with __ and the normal name is an alias. */ | |
7384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7385 | choke me | |
7386 | #else | |
e5a52504 MM |
7387 | char (*f) () = $ac_func; |
7388 | #endif | |
7389 | #ifdef __cplusplus | |
7390 | } | |
252b5132 RH |
7391 | #endif |
7392 | ||
e5a52504 MM |
7393 | int |
7394 | main () | |
7395 | { | |
7396 | return f != $ac_func; | |
7397 | ; | |
7398 | return 0; | |
7399 | } | |
7400 | _ACEOF | |
7401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7403 | (eval $ac_link) 2>conftest.er1 | |
7404 | ac_status=$? | |
7405 | grep -v '^ *+' conftest.er1 >conftest.err | |
7406 | rm -f conftest.er1 | |
7407 | cat conftest.err >&5 | |
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7409 | (exit $ac_status); } && | |
7410 | { ac_try='test -z "$ac_c_werror_flag" | |
7411 | || test ! -s conftest.err' | |
7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7413 | (eval $ac_try) 2>&5 | |
7414 | ac_status=$? | |
7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7416 | (exit $ac_status); }; } && | |
7417 | { ac_try='test -s conftest$ac_exeext' | |
7418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7419 | (eval $ac_try) 2>&5 | |
7420 | ac_status=$? | |
7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7422 | (exit $ac_status); }; }; then | |
7423 | eval "$as_ac_var=yes" | |
7424 | else | |
7425 | echo "$as_me: failed program was:" >&5 | |
7426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7427 | ||
7428 | eval "$as_ac_var=no" | |
7429 | fi | |
7430 | rm -f conftest.err conftest.$ac_objext \ | |
7431 | conftest$ac_exeext conftest.$ac_ext | |
7432 | fi | |
7433 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7434 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7435 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7436 | cat >>confdefs.h <<_ACEOF | |
7437 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7438 | _ACEOF | |
252b5132 | 7439 | |
252b5132 RH |
7440 | fi |
7441 | done | |
7442 | ||
7443 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7444 | set dummy gmsgfmt; ac_word=$2 | |
e5a52504 MM |
7445 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7447 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7449 | else |
e5a52504 MM |
7450 | case $GMSGFMT in |
7451 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7452 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7453 | ;; | |
252b5132 | 7454 | *) |
e5a52504 MM |
7455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7456 | for as_dir in $PATH | |
7457 | do | |
7458 | IFS=$as_save_IFS | |
7459 | test -z "$as_dir" && as_dir=. | |
7460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7462 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7464 | break 2 | |
7465 | fi | |
7466 | done | |
7467 | done | |
7468 | ||
252b5132 RH |
7469 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7470 | ;; | |
7471 | esac | |
7472 | fi | |
e5a52504 MM |
7473 | GMSGFMT=$ac_cv_path_GMSGFMT |
7474 | ||
252b5132 | 7475 | if test -n "$GMSGFMT"; then |
e5a52504 MM |
7476 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7477 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7478 | else |
e5a52504 MM |
7479 | echo "$as_me:$LINENO: result: no" >&5 |
7480 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7481 | fi |
7482 | ||
7483 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7484 | set dummy xgettext; ac_word=$2 | |
e5a52504 MM |
7485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7487 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7489 | else |
7490 | case "$XGETTEXT" in | |
7491 | /*) | |
7492 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7493 | ;; | |
7494 | *) | |
7495 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7496 | for ac_dir in $PATH; do | |
7497 | test -z "$ac_dir" && ac_dir=. | |
7498 | if test -f $ac_dir/$ac_word; then | |
7499 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7500 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7501 | break | |
7502 | fi | |
7503 | fi | |
7504 | done | |
7505 | IFS="$ac_save_ifs" | |
7506 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7507 | ;; | |
7508 | esac | |
7509 | fi | |
7510 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7511 | if test -n "$XGETTEXT"; then | |
e5a52504 MM |
7512 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7513 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7514 | else |
e5a52504 MM |
7515 | echo "$as_me:$LINENO: result: no" >&5 |
7516 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7517 | fi |
7518 | ||
e5a52504 MM |
7519 | cat >conftest.$ac_ext <<_ACEOF |
7520 | /* confdefs.h. */ | |
7521 | _ACEOF | |
7522 | cat confdefs.h >>conftest.$ac_ext | |
7523 | cat >>conftest.$ac_ext <<_ACEOF | |
7524 | /* end confdefs.h. */ | |
252b5132 | 7525 | |
e5a52504 MM |
7526 | int |
7527 | main () | |
7528 | { | |
252b5132 RH |
7529 | extern int _nl_msg_cat_cntr; |
7530 | return _nl_msg_cat_cntr | |
e5a52504 MM |
7531 | ; |
7532 | return 0; | |
7533 | } | |
7534 | _ACEOF | |
7535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7537 | (eval $ac_link) 2>conftest.er1 | |
7538 | ac_status=$? | |
7539 | grep -v '^ *+' conftest.er1 >conftest.err | |
7540 | rm -f conftest.er1 | |
7541 | cat conftest.err >&5 | |
7542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7543 | (exit $ac_status); } && | |
7544 | { ac_try='test -z "$ac_c_werror_flag" | |
7545 | || test ! -s conftest.err' | |
7546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7547 | (eval $ac_try) 2>&5 | |
7548 | ac_status=$? | |
7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7550 | (exit $ac_status); }; } && | |
7551 | { ac_try='test -s conftest$ac_exeext' | |
7552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7553 | (eval $ac_try) 2>&5 | |
7554 | ac_status=$? | |
7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7556 | (exit $ac_status); }; }; then | |
252b5132 RH |
7557 | CATOBJEXT=.gmo |
7558 | DATADIRNAME=share | |
7559 | else | |
e5a52504 MM |
7560 | echo "$as_me: failed program was:" >&5 |
7561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7562 | ||
7563 | CATOBJEXT=.mo | |
252b5132 RH |
7564 | DATADIRNAME=lib |
7565 | fi | |
e5a52504 MM |
7566 | rm -f conftest.err conftest.$ac_objext \ |
7567 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
7568 | INSTOBJEXT=.mo |
7569 | fi | |
7570 | fi | |
e5a52504 | 7571 | |
252b5132 RH |
7572 | fi |
7573 | ||
7574 | ||
e5a52504 MM |
7575 | |
7576 | ||
252b5132 RH |
7577 | if test "$CATOBJEXT" = "NONE"; then |
7578 | nls_cv_use_gnu_gettext=yes | |
7579 | fi | |
7580 | fi | |
7581 | ||
7582 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7583 | INTLOBJS="\$(GETTOBJS)" | |
7584 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7585 | set dummy msgfmt; ac_word=$2 | |
e5a52504 MM |
7586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7588 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7590 | else |
7591 | case "$MSGFMT" in | |
7592 | /*) | |
7593 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7594 | ;; | |
7595 | *) | |
7596 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7597 | for ac_dir in $PATH; do | |
7598 | test -z "$ac_dir" && ac_dir=. | |
7599 | if test -f $ac_dir/$ac_word; then | |
7600 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7601 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7602 | break | |
7603 | fi | |
7604 | fi | |
7605 | done | |
7606 | IFS="$ac_save_ifs" | |
7607 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7608 | ;; | |
7609 | esac | |
7610 | fi | |
7611 | MSGFMT="$ac_cv_path_MSGFMT" | |
7612 | if test -n "$MSGFMT"; then | |
e5a52504 MM |
7613 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7614 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7615 | else |
e5a52504 MM |
7616 | echo "$as_me:$LINENO: result: no" >&5 |
7617 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7618 | fi |
7619 | ||
7620 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7621 | set dummy gmsgfmt; ac_word=$2 | |
e5a52504 MM |
7622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7624 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7626 | else |
e5a52504 MM |
7627 | case $GMSGFMT in |
7628 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7629 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7630 | ;; | |
252b5132 | 7631 | *) |
e5a52504 MM |
7632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7633 | for as_dir in $PATH | |
7634 | do | |
7635 | IFS=$as_save_IFS | |
7636 | test -z "$as_dir" && as_dir=. | |
7637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7639 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7641 | break 2 | |
7642 | fi | |
7643 | done | |
7644 | done | |
7645 | ||
252b5132 RH |
7646 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7647 | ;; | |
7648 | esac | |
7649 | fi | |
e5a52504 MM |
7650 | GMSGFMT=$ac_cv_path_GMSGFMT |
7651 | ||
252b5132 | 7652 | if test -n "$GMSGFMT"; then |
e5a52504 MM |
7653 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7654 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7655 | else |
e5a52504 MM |
7656 | echo "$as_me:$LINENO: result: no" >&5 |
7657 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7658 | fi |
7659 | ||
7660 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7661 | set dummy xgettext; ac_word=$2 | |
e5a52504 MM |
7662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7664 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7666 | else |
7667 | case "$XGETTEXT" in | |
7668 | /*) | |
7669 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7670 | ;; | |
7671 | *) | |
7672 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7673 | for ac_dir in $PATH; do | |
7674 | test -z "$ac_dir" && ac_dir=. | |
7675 | if test -f $ac_dir/$ac_word; then | |
7676 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7677 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7678 | break | |
7679 | fi | |
7680 | fi | |
7681 | done | |
7682 | IFS="$ac_save_ifs" | |
7683 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7684 | ;; | |
7685 | esac | |
7686 | fi | |
7687 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7688 | if test -n "$XGETTEXT"; then | |
e5a52504 MM |
7689 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7690 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7691 | else |
e5a52504 MM |
7692 | echo "$as_me:$LINENO: result: no" >&5 |
7693 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7694 | fi |
7695 | ||
e5a52504 | 7696 | |
252b5132 RH |
7697 | USE_INCLUDED_LIBINTL=yes |
7698 | CATOBJEXT=.gmo | |
7699 | INSTOBJEXT=.mo | |
7700 | DATADIRNAME=share | |
7701 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
7702 | INTLLIBS=$INTLDEPS | |
7703 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7704 | nls_cv_header_intl=libintl.h | |
7705 | nls_cv_header_libgt=libgettext.h | |
7706 | fi | |
7707 | ||
7708 | if test "$XGETTEXT" != ":"; then | |
7709 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7710 | : ; | |
7711 | else | |
e5a52504 MM |
7712 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
7713 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
7714 | XGETTEXT=":" |
7715 | fi | |
7716 | fi | |
7717 | ||
7718 | # We need to process the po/ directory. | |
7719 | POSUB=po | |
7720 | else | |
7721 | DATADIRNAME=share | |
7722 | nls_cv_header_intl=libintl.h | |
7723 | nls_cv_header_libgt=libgettext.h | |
7724 | fi | |
7725 | ||
7726 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7727 | # because some of the sources are only built for this goal. | |
7728 | if test "$PACKAGE" = gettext; then | |
7729 | USE_NLS=yes | |
7730 | USE_INCLUDED_LIBINTL=yes | |
7731 | fi | |
7732 | ||
7733 | for lang in $ALL_LINGUAS; do | |
7734 | GMOFILES="$GMOFILES $lang.gmo" | |
7735 | POFILES="$POFILES $lang.po" | |
7736 | done | |
7737 | ||
e5a52504 MM |
7738 | |
7739 | ||
7740 | ||
7741 | ||
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
252b5132 RH |
7750 | |
7751 | if test "x$CATOBJEXT" != "x"; then | |
7752 | if test "x$ALL_LINGUAS" = "x"; then | |
7753 | LINGUAS= | |
7754 | else | |
e5a52504 MM |
7755 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
7756 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
7757 | NEW_LINGUAS= |
7758 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
7759 | case "$ALL_LINGUAS" in | |
7760 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
7761 | esac | |
7762 | done | |
7763 | LINGUAS=$NEW_LINGUAS | |
e5a52504 MM |
7764 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
7765 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
7766 | fi |
7767 | ||
7768 | if test -n "$LINGUAS"; then | |
7769 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7770 | fi | |
7771 | fi | |
7772 | ||
7773 | if test $ac_cv_header_locale_h = yes; then | |
7774 | INCLUDE_LOCALE_H="#include <locale.h>" | |
7775 | else | |
7776 | INCLUDE_LOCALE_H="\ | |
7777 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
7778 | fi | |
e5a52504 | 7779 | |
252b5132 RH |
7780 | |
7781 | if test -f $srcdir/po2tbl.sed.in; then | |
7782 | if test "$CATOBJEXT" = ".cat"; then | |
e5a52504 MM |
7783 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
7784 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
7785 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
7786 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
7787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7788 | fi | |
7789 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
7790 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
7791 | else | |
7792 | # Is the header compilable? | |
7793 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
7794 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
7795 | cat >conftest.$ac_ext <<_ACEOF | |
7796 | /* confdefs.h. */ | |
7797 | _ACEOF | |
7798 | cat confdefs.h >>conftest.$ac_ext | |
7799 | cat >>conftest.$ac_ext <<_ACEOF | |
7800 | /* end confdefs.h. */ | |
7801 | $ac_includes_default | |
252b5132 | 7802 | #include <linux/version.h> |
e5a52504 MM |
7803 | _ACEOF |
7804 | rm -f conftest.$ac_objext | |
7805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7806 | (eval $ac_compile) 2>conftest.er1 | |
7807 | ac_status=$? | |
7808 | grep -v '^ *+' conftest.er1 >conftest.err | |
7809 | rm -f conftest.er1 | |
7810 | cat conftest.err >&5 | |
7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7812 | (exit $ac_status); } && | |
7813 | { ac_try='test -z "$ac_c_werror_flag" | |
7814 | || test ! -s conftest.err' | |
7815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7816 | (eval $ac_try) 2>&5 | |
7817 | ac_status=$? | |
7818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7819 | (exit $ac_status); }; } && | |
7820 | { ac_try='test -s conftest.$ac_objext' | |
7821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7822 | (eval $ac_try) 2>&5 | |
7823 | ac_status=$? | |
7824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7825 | (exit $ac_status); }; }; then | |
7826 | ac_header_compiler=yes | |
7827 | else | |
7828 | echo "$as_me: failed program was:" >&5 | |
7829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7830 | ||
7831 | ac_header_compiler=no | |
7832 | fi | |
7833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7834 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7835 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7836 | ||
7837 | # Is the header present? | |
7838 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
7839 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
7840 | cat >conftest.$ac_ext <<_ACEOF | |
7841 | /* confdefs.h. */ | |
7842 | _ACEOF | |
7843 | cat confdefs.h >>conftest.$ac_ext | |
7844 | cat >>conftest.$ac_ext <<_ACEOF | |
7845 | /* end confdefs.h. */ | |
7846 | #include <linux/version.h> | |
7847 | _ACEOF | |
7848 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7850 | ac_status=$? | |
7851 | grep -v '^ *+' conftest.er1 >conftest.err | |
7852 | rm -f conftest.er1 | |
7853 | cat conftest.err >&5 | |
7854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7855 | (exit $ac_status); } >/dev/null; then | |
7856 | if test -s conftest.err; then | |
7857 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7858 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7859 | else | |
7860 | ac_cpp_err= | |
7861 | fi | |
252b5132 | 7862 | else |
e5a52504 | 7863 | ac_cpp_err=yes |
252b5132 | 7864 | fi |
e5a52504 MM |
7865 | if test -z "$ac_cpp_err"; then |
7866 | ac_header_preproc=yes | |
7867 | else | |
7868 | echo "$as_me: failed program was:" >&5 | |
7869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7870 | ||
7871 | ac_header_preproc=no | |
252b5132 | 7872 | fi |
e5a52504 MM |
7873 | rm -f conftest.err conftest.$ac_ext |
7874 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7875 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7876 | ||
7877 | # So? What about this header? | |
7878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7879 | yes:no: ) | |
7880 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7881 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7882 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
7883 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
7884 | ac_header_preproc=yes | |
7885 | ;; | |
7886 | no:yes:* ) | |
7887 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
7888 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
7889 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
7890 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
7891 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
7892 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
7893 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7894 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7895 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
7896 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
7897 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
7898 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
7899 | ( | |
7900 | cat <<\_ASBOX | |
7901 | ## ------------------------------------------ ## | |
7902 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7903 | ## ------------------------------------------ ## | |
7904 | _ASBOX | |
7905 | ) | | |
7906 | sed "s/^/$as_me: WARNING: /" >&2 | |
7907 | ;; | |
7908 | esac | |
7909 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
7910 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
7911 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
7912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7913 | else | |
7914 | ac_cv_header_linux_version_h=$ac_header_preproc | |
7915 | fi | |
7916 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
7917 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
7918 | ||
7919 | fi | |
7920 | if test $ac_cv_header_linux_version_h = yes; then | |
252b5132 RH |
7921 | msgformat=linux |
7922 | else | |
e5a52504 | 7923 | msgformat=xopen |
252b5132 RH |
7924 | fi |
7925 | ||
7926 | ||
e5a52504 | 7927 | |
252b5132 RH |
7928 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
7929 | fi | |
7930 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
7931 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
7932 | fi | |
7933 | ||
7934 | if test "$PACKAGE" = "gettext"; then | |
7935 | GT_NO="#NO#" | |
7936 | GT_YES= | |
7937 | else | |
7938 | GT_NO= | |
7939 | GT_YES="#YES#" | |
7940 | fi | |
e5a52504 MM |
7941 | |
7942 | ||
252b5132 RH |
7943 | |
7944 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
e5a52504 | 7945 | |
252b5132 RH |
7946 | |
7947 | l= | |
e5a52504 | 7948 | |
252b5132 | 7949 | |
fcd8210c | 7950 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
7951 | test -d po || mkdir po |
7952 | if test "x$srcdir" != "x."; then | |
7953 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
7954 | posrcprefix="$srcdir/" | |
7955 | else | |
7956 | posrcprefix="../$srcdir/" | |
7957 | fi | |
7958 | else | |
7959 | posrcprefix="../" | |
7960 | fi | |
7961 | rm -f po/POTFILES | |
7962 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
7963 | < $srcdir/po/POTFILES.in > po/POTFILES | |
7964 | fi | |
252b5132 | 7965 | |
e5a52504 MM |
7966 | |
7967 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
7968 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
7969 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
7970 | if test "${enable_maintainer_mode+set}" = set; then | |
7971 | enableval="$enable_maintainer_mode" | |
7972 | USE_MAINTAINER_MODE=$enableval | |
7973 | else | |
7974 | USE_MAINTAINER_MODE=no | |
e5a52504 MM |
7975 | fi; |
7976 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
7977 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
252b5132 | 7978 | |
252b5132 RH |
7979 | |
7980 | if test $USE_MAINTAINER_MODE = yes; then | |
7981 | MAINTAINER_MODE_TRUE= | |
7982 | MAINTAINER_MODE_FALSE='#' | |
7983 | else | |
7984 | MAINTAINER_MODE_TRUE='#' | |
7985 | MAINTAINER_MODE_FALSE= | |
7986 | fi | |
7987 | MAINT=$MAINTAINER_MODE_TRUE | |
252b5132 RH |
7988 | |
7989 | ||
252b5132 | 7990 | |
2481e6a2 | 7991 | if test -n "$EXEEXT"; then |
e5a52504 MM |
7992 | |
7993 | cat >>confdefs.h <<\_ACEOF | |
2481e6a2 | 7994 | #define HAVE_EXECUTABLE_SUFFIX 1 |
e5a52504 | 7995 | _ACEOF |
2481e6a2 ILT |
7996 | |
7997 | fi | |
e5a52504 MM |
7998 | |
7999 | cat >>confdefs.h <<_ACEOF | |
bb0cb4db | 8000 | #define EXECUTABLE_SUFFIX "${EXEEXT}" |
e5a52504 | 8001 | _ACEOF |
bb0cb4db | 8002 | |
252b5132 RH |
8003 | |
8004 | # host-specific stuff: | |
8005 | ||
8006 | HDEFINES= | |
8007 | ||
8008 | . ${srcdir}/../bfd/configure.host | |
8009 | ||
8010 | ||
8011 | AR=${AR-ar} | |
8012 | ||
e5a52504 MM |
8013 | if test -n "$ac_tool_prefix"; then |
8014 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8015 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
8016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8018 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
8019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8020 | else |
8021 | if test -n "$RANLIB"; then | |
8022 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8023 | else | |
e5a52504 MM |
8024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8025 | for as_dir in $PATH | |
8026 | do | |
8027 | IFS=$as_save_IFS | |
8028 | test -z "$as_dir" && as_dir=. | |
8029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8030 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8031 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
8032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8033 | break 2 | |
8034 | fi | |
8035 | done | |
8036 | done | |
8037 | ||
252b5132 RH |
8038 | fi |
8039 | fi | |
e5a52504 | 8040 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 8041 | if test -n "$RANLIB"; then |
e5a52504 MM |
8042 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
8043 | echo "${ECHO_T}$RANLIB" >&6 | |
8044 | else | |
8045 | echo "$as_me:$LINENO: result: no" >&5 | |
8046 | echo "${ECHO_T}no" >&6 | |
8047 | fi | |
8048 | ||
8049 | fi | |
8050 | if test -z "$ac_cv_prog_RANLIB"; then | |
8051 | ac_ct_RANLIB=$RANLIB | |
8052 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8053 | set dummy ranlib; ac_word=$2 | |
8054 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8056 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
8057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8058 | else | |
8059 | if test -n "$ac_ct_RANLIB"; then | |
8060 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8061 | else | |
8062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8063 | for as_dir in $PATH | |
8064 | do | |
8065 | IFS=$as_save_IFS | |
8066 | test -z "$as_dir" && as_dir=. | |
8067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8068 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8069 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
8070 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8071 | break 2 | |
8072 | fi | |
8073 | done | |
8074 | done | |
8075 | ||
8076 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
8077 | fi | |
8078 | fi | |
8079 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8080 | if test -n "$ac_ct_RANLIB"; then | |
8081 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
8082 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
8083 | else | |
8084 | echo "$as_me:$LINENO: result: no" >&5 | |
8085 | echo "${ECHO_T}no" >&6 | |
8086 | fi | |
8087 | ||
8088 | RANLIB=$ac_ct_RANLIB | |
252b5132 | 8089 | else |
e5a52504 | 8090 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 RH |
8091 | fi |
8092 | ||
8093 | # Find a good install program. We prefer a C program (faster), | |
8094 | # so one script is as good as another. But avoid the broken or | |
8095 | # incompatible versions: | |
8096 | # SysV /etc/install, /usr/sbin/install | |
8097 | # SunOS /usr/etc/install | |
8098 | # IRIX /sbin/install | |
8099 | # AIX /bin/install | |
e5a52504 | 8100 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
8101 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8102 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8103 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
e5a52504 | 8104 | # OS/2's system install, which has a completely different semantic |
252b5132 | 8105 | # ./install, which can be erroneously created by make from ./install.sh. |
e5a52504 MM |
8106 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8107 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 8108 | if test -z "$INSTALL"; then |
e5a52504 MM |
8109 | if test "${ac_cv_path_install+set}" = set; then |
8110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8111 | else |
e5a52504 MM |
8112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8113 | for as_dir in $PATH | |
8114 | do | |
8115 | IFS=$as_save_IFS | |
8116 | test -z "$as_dir" && as_dir=. | |
8117 | # Account for people who put trailing slashes in PATH elements. | |
8118 | case $as_dir/ in | |
8119 | ./ | .// | /cC/* | \ | |
8120 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8121 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8122 | /usr/ucb/* ) ;; | |
8123 | *) | |
8124 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8125 | # Don't use installbsd from OSF since it installs stuff as root | |
8126 | # by default. | |
8127 | for ac_prog in ginstall scoinst install; do | |
8128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8129 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 8130 | if test $ac_prog = install && |
e5a52504 | 8131 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
8132 | # AIX install. It has an incompatible calling convention. |
8133 | : | |
e5a52504 MM |
8134 | elif test $ac_prog = install && |
8135 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8136 | # program-specific install script used by HP pwplus--don't use. | |
8137 | : | |
252b5132 | 8138 | else |
e5a52504 MM |
8139 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
8140 | break 3 | |
252b5132 RH |
8141 | fi |
8142 | fi | |
8143 | done | |
e5a52504 MM |
8144 | done |
8145 | ;; | |
8146 | esac | |
8147 | done | |
8148 | ||
252b5132 RH |
8149 | |
8150 | fi | |
8151 | if test "${ac_cv_path_install+set}" = set; then | |
e5a52504 | 8152 | INSTALL=$ac_cv_path_install |
252b5132 RH |
8153 | else |
8154 | # As a last resort, use the slow shell script. We don't cache a | |
8155 | # path for INSTALL within a source directory, because that will | |
8156 | # break other packages using the cache if that directory is | |
8157 | # removed, or if the path is relative. | |
e5a52504 | 8158 | INSTALL=$ac_install_sh |
252b5132 RH |
8159 | fi |
8160 | fi | |
e5a52504 MM |
8161 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8162 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
8163 | |
8164 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8165 | # It thinks the first close brace ends the variable substitution. | |
8166 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8167 | ||
e5a52504 | 8168 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
8169 | |
8170 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8171 | ||
8172 | ||
8173 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
8174 | if test -z "$CC_FOR_BUILD"; then | |
8175 | if test "x$cross_compiling" = "xno"; then | |
8176 | CC_FOR_BUILD='$(CC)' | |
8177 | else | |
8178 | CC_FOR_BUILD=gcc | |
8179 | fi | |
8180 | fi | |
8181 | ||
8182 | # Also set EXEEXT_FOR_BUILD. | |
8183 | if test "x$cross_compiling" = "xno"; then | |
8184 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
8185 | else | |
e5a52504 MM |
8186 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 |
8187 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
8188 | if test "${bfd_cv_build_exeext+set}" = set; then | |
8189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8190 | else |
7a7b06ef ILT |
8191 | rm -f conftest* |
8192 | echo 'int main () { return 0; }' > conftest.c | |
8193 | bfd_cv_build_exeext= | |
8194 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
8195 | for file in conftest.*; do | |
8196 | case $file in | |
8197 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
8198 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
8199 | esac | |
8200 | done | |
8201 | rm -f conftest* | |
8202 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 8203 | fi |
e5a52504 MM |
8204 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
8205 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
252b5132 RH |
8206 | EXEEXT_FOR_BUILD="" |
8207 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
8208 | fi | |
8209 | ||
8210 | ||
8a965946 ILT |
8211 | DEMANGLER_NAME=c++filt |
8212 | case "${host}" in | |
8213 | *-*-go32* | *-*-msdos*) | |
8214 | DEMANGLER_NAME=cxxfilt | |
8215 | esac | |
8216 | ||
8217 | ||
e5a52504 MM |
8218 | |
8219 | ||
8220 | ||
8221 | ||
8222 | ||
8223 | ||
8224 | for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h | |
252b5132 | 8225 | do |
e5a52504 MM |
8226 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8228 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8232 | fi | |
8233 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8234 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8235 | else | |
8236 | # Is the header compilable? | |
8237 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8238 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8239 | cat >conftest.$ac_ext <<_ACEOF | |
8240 | /* confdefs.h. */ | |
8241 | _ACEOF | |
8242 | cat confdefs.h >>conftest.$ac_ext | |
8243 | cat >>conftest.$ac_ext <<_ACEOF | |
8244 | /* end confdefs.h. */ | |
8245 | $ac_includes_default | |
8246 | #include <$ac_header> | |
8247 | _ACEOF | |
8248 | rm -f conftest.$ac_objext | |
8249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8250 | (eval $ac_compile) 2>conftest.er1 | |
8251 | ac_status=$? | |
8252 | grep -v '^ *+' conftest.er1 >conftest.err | |
8253 | rm -f conftest.er1 | |
8254 | cat conftest.err >&5 | |
8255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8256 | (exit $ac_status); } && | |
8257 | { ac_try='test -z "$ac_c_werror_flag" | |
8258 | || test ! -s conftest.err' | |
8259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8260 | (eval $ac_try) 2>&5 | |
8261 | ac_status=$? | |
8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8263 | (exit $ac_status); }; } && | |
8264 | { ac_try='test -s conftest.$ac_objext' | |
8265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8266 | (eval $ac_try) 2>&5 | |
8267 | ac_status=$? | |
8268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8269 | (exit $ac_status); }; }; then | |
8270 | ac_header_compiler=yes | |
8271 | else | |
8272 | echo "$as_me: failed program was:" >&5 | |
8273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8274 | ||
8275 | ac_header_compiler=no | |
8276 | fi | |
8277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8278 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8279 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8280 | ||
8281 | # Is the header present? | |
8282 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8283 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8284 | cat >conftest.$ac_ext <<_ACEOF | |
8285 | /* confdefs.h. */ | |
8286 | _ACEOF | |
8287 | cat confdefs.h >>conftest.$ac_ext | |
8288 | cat >>conftest.$ac_ext <<_ACEOF | |
8289 | /* end confdefs.h. */ | |
8290 | #include <$ac_header> | |
8291 | _ACEOF | |
8292 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8293 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8294 | ac_status=$? | |
8295 | grep -v '^ *+' conftest.er1 >conftest.err | |
8296 | rm -f conftest.er1 | |
8297 | cat conftest.err >&5 | |
8298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8299 | (exit $ac_status); } >/dev/null; then | |
8300 | if test -s conftest.err; then | |
8301 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8302 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8303 | else | |
8304 | ac_cpp_err= | |
8305 | fi | |
252b5132 | 8306 | else |
e5a52504 | 8307 | ac_cpp_err=yes |
252b5132 | 8308 | fi |
e5a52504 MM |
8309 | if test -z "$ac_cpp_err"; then |
8310 | ac_header_preproc=yes | |
8311 | else | |
8312 | echo "$as_me: failed program was:" >&5 | |
8313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8314 | ||
8315 | ac_header_preproc=no | |
252b5132 | 8316 | fi |
e5a52504 MM |
8317 | rm -f conftest.err conftest.$ac_ext |
8318 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8319 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8320 | ||
8321 | # So? What about this header? | |
8322 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8323 | yes:no: ) | |
8324 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8325 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8326 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8327 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8328 | ac_header_preproc=yes | |
8329 | ;; | |
8330 | no:yes:* ) | |
8331 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8332 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8333 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8334 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8335 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8336 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8337 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8338 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8339 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8340 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8341 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8342 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8343 | ( | |
8344 | cat <<\_ASBOX | |
8345 | ## ------------------------------------------ ## | |
8346 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8347 | ## ------------------------------------------ ## | |
8348 | _ASBOX | |
8349 | ) | | |
8350 | sed "s/^/$as_me: WARNING: /" >&2 | |
8351 | ;; | |
8352 | esac | |
8353 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8354 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8355 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8357 | else |
e5a52504 MM |
8358 | eval "$as_ac_Header=\$ac_header_preproc" |
8359 | fi | |
8360 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8361 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8362 | ||
8363 | fi | |
8364 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8365 | cat >>confdefs.h <<_ACEOF | |
8366 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8367 | _ACEOF | |
8368 | ||
252b5132 | 8369 | fi |
e5a52504 | 8370 | |
252b5132 RH |
8371 | done |
8372 | ||
e5a52504 MM |
8373 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
8374 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
8375 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
8376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8377 | else | |
8378 | cat >conftest.$ac_ext <<_ACEOF | |
8379 | /* confdefs.h. */ | |
8380 | _ACEOF | |
8381 | cat confdefs.h >>conftest.$ac_ext | |
8382 | cat >>conftest.$ac_ext <<_ACEOF | |
8383 | /* end confdefs.h. */ | |
252b5132 RH |
8384 | #include <sys/types.h> |
8385 | #include <sys/wait.h> | |
8386 | #ifndef WEXITSTATUS | |
e5a52504 | 8387 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
252b5132 RH |
8388 | #endif |
8389 | #ifndef WIFEXITED | |
e5a52504 | 8390 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
252b5132 | 8391 | #endif |
e5a52504 MM |
8392 | |
8393 | int | |
8394 | main () | |
8395 | { | |
8396 | int s; | |
8397 | wait (&s); | |
8398 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
8399 | ; | |
8400 | return 0; | |
8401 | } | |
8402 | _ACEOF | |
8403 | rm -f conftest.$ac_objext | |
8404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8405 | (eval $ac_compile) 2>conftest.er1 | |
8406 | ac_status=$? | |
8407 | grep -v '^ *+' conftest.er1 >conftest.err | |
8408 | rm -f conftest.er1 | |
8409 | cat conftest.err >&5 | |
8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8411 | (exit $ac_status); } && | |
8412 | { ac_try='test -z "$ac_c_werror_flag" | |
8413 | || test ! -s conftest.err' | |
8414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8415 | (eval $ac_try) 2>&5 | |
8416 | ac_status=$? | |
8417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8418 | (exit $ac_status); }; } && | |
8419 | { ac_try='test -s conftest.$ac_objext' | |
8420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8421 | (eval $ac_try) 2>&5 | |
8422 | ac_status=$? | |
8423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8424 | (exit $ac_status); }; }; then | |
252b5132 RH |
8425 | ac_cv_header_sys_wait_h=yes |
8426 | else | |
e5a52504 MM |
8427 | echo "$as_me: failed program was:" >&5 |
8428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8429 | ||
8430 | ac_cv_header_sys_wait_h=no | |
252b5132 | 8431 | fi |
e5a52504 | 8432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8433 | fi |
e5a52504 MM |
8434 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
8435 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
252b5132 | 8436 | if test $ac_cv_header_sys_wait_h = yes; then |
e5a52504 MM |
8437 | |
8438 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8439 | #define HAVE_SYS_WAIT_H 1 |
e5a52504 | 8440 | _ACEOF |
252b5132 RH |
8441 | |
8442 | fi | |
8443 | ||
8444 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8445 | # for constant arguments. Useless! | |
e5a52504 MM |
8446 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8447 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
8448 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
8449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8450 | else | |
8451 | cat >conftest.$ac_ext <<_ACEOF | |
8452 | /* confdefs.h. */ | |
8453 | _ACEOF | |
8454 | cat confdefs.h >>conftest.$ac_ext | |
8455 | cat >>conftest.$ac_ext <<_ACEOF | |
8456 | /* end confdefs.h. */ | |
252b5132 | 8457 | #include <alloca.h> |
e5a52504 MM |
8458 | int |
8459 | main () | |
8460 | { | |
8461 | char *p = (char *) alloca (2 * sizeof (int)); | |
8462 | ; | |
8463 | return 0; | |
8464 | } | |
8465 | _ACEOF | |
8466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8468 | (eval $ac_link) 2>conftest.er1 | |
8469 | ac_status=$? | |
8470 | grep -v '^ *+' conftest.er1 >conftest.err | |
8471 | rm -f conftest.er1 | |
8472 | cat conftest.err >&5 | |
8473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8474 | (exit $ac_status); } && | |
8475 | { ac_try='test -z "$ac_c_werror_flag" | |
8476 | || test ! -s conftest.err' | |
8477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8478 | (eval $ac_try) 2>&5 | |
8479 | ac_status=$? | |
8480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8481 | (exit $ac_status); }; } && | |
8482 | { ac_try='test -s conftest$ac_exeext' | |
8483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8484 | (eval $ac_try) 2>&5 | |
8485 | ac_status=$? | |
8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8487 | (exit $ac_status); }; }; then | |
8488 | ac_cv_working_alloca_h=yes | |
8489 | else | |
8490 | echo "$as_me: failed program was:" >&5 | |
8491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8492 | ||
8493 | ac_cv_working_alloca_h=no | |
8494 | fi | |
8495 | rm -f conftest.err conftest.$ac_objext \ | |
8496 | conftest$ac_exeext conftest.$ac_ext | |
8497 | fi | |
8498 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
8499 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
8500 | if test $ac_cv_working_alloca_h = yes; then | |
8501 | ||
8502 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8503 | #define HAVE_ALLOCA_H 1 |
e5a52504 | 8504 | _ACEOF |
252b5132 RH |
8505 | |
8506 | fi | |
8507 | ||
e5a52504 MM |
8508 | echo "$as_me:$LINENO: checking for alloca" >&5 |
8509 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
8510 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
8511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8512 | else |
e5a52504 MM |
8513 | cat >conftest.$ac_ext <<_ACEOF |
8514 | /* confdefs.h. */ | |
8515 | _ACEOF | |
8516 | cat confdefs.h >>conftest.$ac_ext | |
8517 | cat >>conftest.$ac_ext <<_ACEOF | |
8518 | /* end confdefs.h. */ | |
252b5132 RH |
8519 | #ifdef __GNUC__ |
8520 | # define alloca __builtin_alloca | |
8521 | #else | |
8522 | # ifdef _MSC_VER | |
8523 | # include <malloc.h> | |
8524 | # define alloca _alloca | |
8525 | # else | |
8526 | # if HAVE_ALLOCA_H | |
8527 | # include <alloca.h> | |
8528 | # else | |
8529 | # ifdef _AIX | |
8530 | #pragma alloca | |
8531 | # else | |
8532 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8533 | char *alloca (); | |
8534 | # endif | |
8535 | # endif | |
8536 | # endif | |
8537 | # endif | |
8538 | #endif | |
8539 | ||
e5a52504 MM |
8540 | int |
8541 | main () | |
8542 | { | |
8543 | char *p = (char *) alloca (1); | |
8544 | ; | |
8545 | return 0; | |
8546 | } | |
8547 | _ACEOF | |
8548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8550 | (eval $ac_link) 2>conftest.er1 | |
8551 | ac_status=$? | |
8552 | grep -v '^ *+' conftest.er1 >conftest.err | |
8553 | rm -f conftest.er1 | |
8554 | cat conftest.err >&5 | |
8555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8556 | (exit $ac_status); } && | |
8557 | { ac_try='test -z "$ac_c_werror_flag" | |
8558 | || test ! -s conftest.err' | |
8559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8560 | (eval $ac_try) 2>&5 | |
8561 | ac_status=$? | |
8562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8563 | (exit $ac_status); }; } && | |
8564 | { ac_try='test -s conftest$ac_exeext' | |
8565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8566 | (eval $ac_try) 2>&5 | |
8567 | ac_status=$? | |
8568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8569 | (exit $ac_status); }; }; then | |
252b5132 RH |
8570 | ac_cv_func_alloca_works=yes |
8571 | else | |
e5a52504 MM |
8572 | echo "$as_me: failed program was:" >&5 |
8573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8574 | ||
8575 | ac_cv_func_alloca_works=no | |
252b5132 | 8576 | fi |
e5a52504 MM |
8577 | rm -f conftest.err conftest.$ac_objext \ |
8578 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 8579 | fi |
e5a52504 MM |
8580 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8581 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 8582 | |
252b5132 | 8583 | if test $ac_cv_func_alloca_works = yes; then |
252b5132 | 8584 | |
e5a52504 MM |
8585 | cat >>confdefs.h <<\_ACEOF |
8586 | #define HAVE_ALLOCA 1 | |
8587 | _ACEOF | |
252b5132 | 8588 | |
e5a52504 | 8589 | else |
252b5132 | 8590 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
e5a52504 MM |
8591 | # that cause trouble. Some versions do not even contain alloca or |
8592 | # contain a buggy version. If you still want to use their alloca, | |
8593 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8594 | ||
8595 | ALLOCA=alloca.$ac_objext | |
8596 | ||
8597 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8598 | #define C_ALLOCA 1 |
e5a52504 | 8599 | _ACEOF |
252b5132 RH |
8600 | |
8601 | ||
e5a52504 MM |
8602 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8603 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
8604 | if test "${ac_cv_os_cray+set}" = set; then | |
8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8606 | else |
e5a52504 MM |
8607 | cat >conftest.$ac_ext <<_ACEOF |
8608 | /* confdefs.h. */ | |
8609 | _ACEOF | |
8610 | cat confdefs.h >>conftest.$ac_ext | |
8611 | cat >>conftest.$ac_ext <<_ACEOF | |
8612 | /* end confdefs.h. */ | |
252b5132 RH |
8613 | #if defined(CRAY) && ! defined(CRAY2) |
8614 | webecray | |
8615 | #else | |
8616 | wenotbecray | |
8617 | #endif | |
8618 | ||
e5a52504 | 8619 | _ACEOF |
252b5132 | 8620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e5a52504 | 8621 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
8622 | ac_cv_os_cray=yes |
8623 | else | |
252b5132 RH |
8624 | ac_cv_os_cray=no |
8625 | fi | |
8626 | rm -f conftest* | |
8627 | ||
8628 | fi | |
e5a52504 MM |
8629 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8630 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 8631 | if test $ac_cv_os_cray = yes; then |
e5a52504 MM |
8632 | for ac_func in _getb67 GETB67 getb67; do |
8633 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8634 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8635 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8636 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8638 | else | |
8639 | cat >conftest.$ac_ext <<_ACEOF | |
8640 | /* confdefs.h. */ | |
8641 | _ACEOF | |
8642 | cat confdefs.h >>conftest.$ac_ext | |
8643 | cat >>conftest.$ac_ext <<_ACEOF | |
8644 | /* end confdefs.h. */ | |
8645 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8646 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8647 | #define $ac_func innocuous_$ac_func | |
8648 | ||
252b5132 | 8649 | /* System header to define __stub macros and hopefully few prototypes, |
e5a52504 MM |
8650 | which can conflict with char $ac_func (); below. |
8651 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8652 | <limits.h> exists even on freestanding compilers. */ | |
252b5132 | 8653 | |
e5a52504 MM |
8654 | #ifdef __STDC__ |
8655 | # include <limits.h> | |
8656 | #else | |
8657 | # include <assert.h> | |
8658 | #endif | |
252b5132 | 8659 | |
e5a52504 MM |
8660 | #undef $ac_func |
8661 | ||
8662 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8663 | #ifdef __cplusplus | |
8664 | extern "C" | |
8665 | { | |
8666 | #endif | |
8667 | /* We use char because int might match the return type of a gcc2 | |
8668 | builtin and then its argument prototype would still apply. */ | |
8669 | char $ac_func (); | |
252b5132 RH |
8670 | /* The GNU C library defines this for functions which it implements |
8671 | to always fail with ENOSYS. Some functions are actually named | |
8672 | something starting with __ and the normal name is an alias. */ | |
8673 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8674 | choke me | |
8675 | #else | |
e5a52504 MM |
8676 | char (*f) () = $ac_func; |
8677 | #endif | |
8678 | #ifdef __cplusplus | |
8679 | } | |
252b5132 RH |
8680 | #endif |
8681 | ||
e5a52504 MM |
8682 | int |
8683 | main () | |
8684 | { | |
8685 | return f != $ac_func; | |
8686 | ; | |
8687 | return 0; | |
8688 | } | |
8689 | _ACEOF | |
8690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8692 | (eval $ac_link) 2>conftest.er1 | |
8693 | ac_status=$? | |
8694 | grep -v '^ *+' conftest.er1 >conftest.err | |
8695 | rm -f conftest.er1 | |
8696 | cat conftest.err >&5 | |
8697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8698 | (exit $ac_status); } && | |
8699 | { ac_try='test -z "$ac_c_werror_flag" | |
8700 | || test ! -s conftest.err' | |
8701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8702 | (eval $ac_try) 2>&5 | |
8703 | ac_status=$? | |
8704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8705 | (exit $ac_status); }; } && | |
8706 | { ac_try='test -s conftest$ac_exeext' | |
8707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8708 | (eval $ac_try) 2>&5 | |
8709 | ac_status=$? | |
8710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8711 | (exit $ac_status); }; }; then | |
8712 | eval "$as_ac_var=yes" | |
8713 | else | |
8714 | echo "$as_me: failed program was:" >&5 | |
8715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8716 | ||
8717 | eval "$as_ac_var=no" | |
8718 | fi | |
8719 | rm -f conftest.err conftest.$ac_objext \ | |
8720 | conftest$ac_exeext conftest.$ac_ext | |
8721 | fi | |
8722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8723 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8724 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8725 | ||
8726 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 8727 | #define CRAY_STACKSEG_END $ac_func |
e5a52504 | 8728 | _ACEOF |
252b5132 | 8729 | |
e5a52504 | 8730 | break |
252b5132 RH |
8731 | fi |
8732 | ||
e5a52504 | 8733 | done |
252b5132 RH |
8734 | fi |
8735 | ||
e5a52504 MM |
8736 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8737 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
8738 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
8739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8740 | else |
8741 | if test "$cross_compiling" = yes; then | |
8742 | ac_cv_c_stack_direction=0 | |
8743 | else | |
e5a52504 MM |
8744 | cat >conftest.$ac_ext <<_ACEOF |
8745 | /* confdefs.h. */ | |
8746 | _ACEOF | |
8747 | cat confdefs.h >>conftest.$ac_ext | |
8748 | cat >>conftest.$ac_ext <<_ACEOF | |
8749 | /* end confdefs.h. */ | |
8750 | int | |
252b5132 RH |
8751 | find_stack_direction () |
8752 | { | |
8753 | static char *addr = 0; | |
8754 | auto char dummy; | |
8755 | if (addr == 0) | |
8756 | { | |
8757 | addr = &dummy; | |
8758 | return find_stack_direction (); | |
8759 | } | |
8760 | else | |
8761 | return (&dummy > addr) ? 1 : -1; | |
8762 | } | |
e5a52504 MM |
8763 | |
8764 | int | |
252b5132 RH |
8765 | main () |
8766 | { | |
e5a52504 | 8767 | exit (find_stack_direction () < 0); |
252b5132 | 8768 | } |
e5a52504 MM |
8769 | _ACEOF |
8770 | rm -f conftest$ac_exeext | |
8771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8772 | (eval $ac_link) 2>&5 | |
8773 | ac_status=$? | |
8774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8775 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8777 | (eval $ac_try) 2>&5 | |
8778 | ac_status=$? | |
8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8780 | (exit $ac_status); }; }; then | |
252b5132 RH |
8781 | ac_cv_c_stack_direction=1 |
8782 | else | |
e5a52504 MM |
8783 | echo "$as_me: program exited with status $ac_status" >&5 |
8784 | echo "$as_me: failed program was:" >&5 | |
8785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8786 | ||
8787 | ( exit $ac_status ) | |
8788 | ac_cv_c_stack_direction=-1 | |
252b5132 | 8789 | fi |
e5a52504 | 8790 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8791 | fi |
252b5132 | 8792 | fi |
e5a52504 MM |
8793 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8794 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 8795 | |
e5a52504 | 8796 | cat >>confdefs.h <<_ACEOF |
252b5132 | 8797 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
e5a52504 MM |
8798 | _ACEOF |
8799 | ||
252b5132 RH |
8800 | |
8801 | fi | |
8802 | ||
e5a52504 MM |
8803 | |
8804 | ||
8805 | ||
8806 | ||
8807 | ||
9710509e | 8808 | for ac_func in sbrk utimes setmode getc_unlocked strcoll |
252b5132 | 8809 | do |
e5a52504 MM |
8810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8811 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8813 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8815 | else | |
8816 | cat >conftest.$ac_ext <<_ACEOF | |
8817 | /* confdefs.h. */ | |
8818 | _ACEOF | |
8819 | cat confdefs.h >>conftest.$ac_ext | |
8820 | cat >>conftest.$ac_ext <<_ACEOF | |
8821 | /* end confdefs.h. */ | |
8822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8824 | #define $ac_func innocuous_$ac_func | |
8825 | ||
252b5132 | 8826 | /* System header to define __stub macros and hopefully few prototypes, |
e5a52504 MM |
8827 | which can conflict with char $ac_func (); below. |
8828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8829 | <limits.h> exists even on freestanding compilers. */ | |
8830 | ||
8831 | #ifdef __STDC__ | |
8832 | # include <limits.h> | |
8833 | #else | |
8834 | # include <assert.h> | |
8835 | #endif | |
252b5132 | 8836 | |
e5a52504 | 8837 | #undef $ac_func |
252b5132 | 8838 | |
e5a52504 MM |
8839 | /* Override any gcc2 internal prototype to avoid an error. */ |
8840 | #ifdef __cplusplus | |
8841 | extern "C" | |
8842 | { | |
8843 | #endif | |
8844 | /* We use char because int might match the return type of a gcc2 | |
8845 | builtin and then its argument prototype would still apply. */ | |
8846 | char $ac_func (); | |
252b5132 RH |
8847 | /* The GNU C library defines this for functions which it implements |
8848 | to always fail with ENOSYS. Some functions are actually named | |
8849 | something starting with __ and the normal name is an alias. */ | |
8850 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8851 | choke me | |
8852 | #else | |
e5a52504 MM |
8853 | char (*f) () = $ac_func; |
8854 | #endif | |
8855 | #ifdef __cplusplus | |
8856 | } | |
252b5132 RH |
8857 | #endif |
8858 | ||
e5a52504 MM |
8859 | int |
8860 | main () | |
8861 | { | |
8862 | return f != $ac_func; | |
8863 | ; | |
8864 | return 0; | |
8865 | } | |
8866 | _ACEOF | |
8867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8869 | (eval $ac_link) 2>conftest.er1 | |
8870 | ac_status=$? | |
8871 | grep -v '^ *+' conftest.er1 >conftest.err | |
8872 | rm -f conftest.er1 | |
8873 | cat conftest.err >&5 | |
8874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8875 | (exit $ac_status); } && | |
8876 | { ac_try='test -z "$ac_c_werror_flag" | |
8877 | || test ! -s conftest.err' | |
8878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8879 | (eval $ac_try) 2>&5 | |
8880 | ac_status=$? | |
8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8882 | (exit $ac_status); }; } && | |
8883 | { ac_try='test -s conftest$ac_exeext' | |
8884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8885 | (eval $ac_try) 2>&5 | |
8886 | ac_status=$? | |
8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8888 | (exit $ac_status); }; }; then | |
8889 | eval "$as_ac_var=yes" | |
8890 | else | |
8891 | echo "$as_me: failed program was:" >&5 | |
8892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8893 | ||
8894 | eval "$as_ac_var=no" | |
8895 | fi | |
8896 | rm -f conftest.err conftest.$ac_objext \ | |
8897 | conftest$ac_exeext conftest.$ac_ext | |
8898 | fi | |
8899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8900 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8901 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8902 | cat >>confdefs.h <<_ACEOF | |
8903 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8904 | _ACEOF | |
252b5132 | 8905 | |
252b5132 RH |
8906 | fi |
8907 | done | |
8908 | ||
8909 | ||
cedd9a58 JJ |
8910 | # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE |
8911 | # needs to be defined for it | |
e5a52504 MM |
8912 | echo "$as_me:$LINENO: checking for fopen64" >&5 |
8913 | echo $ECHO_N "checking for fopen64... $ECHO_C" >&6 | |
8914 | if test "${bu_cv_have_fopen64+set}" = set; then | |
8915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8916 | else | |
8917 | cat >conftest.$ac_ext <<_ACEOF | |
8918 | /* confdefs.h. */ | |
8919 | _ACEOF | |
8920 | cat confdefs.h >>conftest.$ac_ext | |
8921 | cat >>conftest.$ac_ext <<_ACEOF | |
8922 | /* end confdefs.h. */ | |
cedd9a58 | 8923 | #include <stdio.h> |
e5a52504 MM |
8924 | int |
8925 | main () | |
8926 | { | |
cedd9a58 | 8927 | FILE *f = fopen64 ("/tmp/foo","r"); |
e5a52504 MM |
8928 | ; |
8929 | return 0; | |
8930 | } | |
8931 | _ACEOF | |
8932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8934 | (eval $ac_link) 2>conftest.er1 | |
8935 | ac_status=$? | |
8936 | grep -v '^ *+' conftest.er1 >conftest.err | |
8937 | rm -f conftest.er1 | |
8938 | cat conftest.err >&5 | |
8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8940 | (exit $ac_status); } && | |
8941 | { ac_try='test -z "$ac_c_werror_flag" | |
8942 | || test ! -s conftest.err' | |
8943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8944 | (eval $ac_try) 2>&5 | |
8945 | ac_status=$? | |
8946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8947 | (exit $ac_status); }; } && | |
8948 | { ac_try='test -s conftest$ac_exeext' | |
8949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8950 | (eval $ac_try) 2>&5 | |
8951 | ac_status=$? | |
8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8953 | (exit $ac_status); }; }; then | |
cedd9a58 JJ |
8954 | bu_cv_have_fopen64=yes |
8955 | else | |
e5a52504 MM |
8956 | echo "$as_me: failed program was:" >&5 |
8957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8958 | ||
8959 | saved_CPPFLAGS=$CPPFLAGS | |
cedd9a58 | 8960 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
e5a52504 MM |
8961 | cat >conftest.$ac_ext <<_ACEOF |
8962 | /* confdefs.h. */ | |
8963 | _ACEOF | |
8964 | cat confdefs.h >>conftest.$ac_ext | |
8965 | cat >>conftest.$ac_ext <<_ACEOF | |
8966 | /* end confdefs.h. */ | |
cedd9a58 | 8967 | #include <stdio.h> |
e5a52504 MM |
8968 | int |
8969 | main () | |
8970 | { | |
cedd9a58 | 8971 | FILE *f = fopen64 ("/tmp/foo","r"); |
e5a52504 MM |
8972 | ; |
8973 | return 0; | |
8974 | } | |
8975 | _ACEOF | |
8976 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8978 | (eval $ac_link) 2>conftest.er1 | |
8979 | ac_status=$? | |
8980 | grep -v '^ *+' conftest.er1 >conftest.err | |
8981 | rm -f conftest.er1 | |
8982 | cat conftest.err >&5 | |
8983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8984 | (exit $ac_status); } && | |
8985 | { ac_try='test -z "$ac_c_werror_flag" | |
8986 | || test ! -s conftest.err' | |
8987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8988 | (eval $ac_try) 2>&5 | |
8989 | ac_status=$? | |
8990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8991 | (exit $ac_status); }; } && | |
8992 | { ac_try='test -s conftest$ac_exeext' | |
8993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8994 | (eval $ac_try) 2>&5 | |
8995 | ac_status=$? | |
8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8997 | (exit $ac_status); }; }; then | |
cedd9a58 JJ |
8998 | bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE" |
8999 | else | |
e5a52504 MM |
9000 | echo "$as_me: failed program was:" >&5 |
9001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9002 | ||
9003 | bu_cv_have_fopen64=no | |
cedd9a58 | 9004 | fi |
e5a52504 MM |
9005 | rm -f conftest.err conftest.$ac_objext \ |
9006 | conftest$ac_exeext conftest.$ac_ext | |
17a5a5c3 | 9007 | CPPFLAGS=$saved_CPPFLAGS |
cedd9a58 | 9008 | fi |
e5a52504 MM |
9009 | rm -f conftest.err conftest.$ac_objext \ |
9010 | conftest$ac_exeext conftest.$ac_ext | |
cedd9a58 | 9011 | fi |
cedd9a58 | 9012 | |
e5a52504 MM |
9013 | echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5 |
9014 | echo "${ECHO_T}$bu_cv_have_fopen64" >&6 | |
6db7a086 | 9015 | if test "$bu_cv_have_fopen64" != no; then |
e5a52504 MM |
9016 | |
9017 | cat >>confdefs.h <<\_ACEOF | |
cedd9a58 | 9018 | #define HAVE_FOPEN64 1 |
e5a52504 | 9019 | _ACEOF |
cedd9a58 | 9020 | |
6db7a086 | 9021 | if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then |
e5a52504 MM |
9022 | |
9023 | cat >>confdefs.h <<\_ACEOF | |
cedd9a58 | 9024 | #define _LARGEFILE64_SOURCE 1 |
e5a52504 | 9025 | _ACEOF |
cedd9a58 JJ |
9026 | |
9027 | fi | |
9028 | fi | |
9029 | ||
f353eb8a | 9030 | # Some systems have frexp only in -lm, not in -lc. |
e5a52504 MM |
9031 | echo "$as_me:$LINENO: checking for library containing frexp" >&5 |
9032 | echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6 | |
9033 | if test "${ac_cv_search_frexp+set}" = set; then | |
9034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9035 | else | |
9036 | ac_func_search_save_LIBS=$LIBS | |
9037 | ac_cv_search_frexp=no | |
9038 | cat >conftest.$ac_ext <<_ACEOF | |
9039 | /* confdefs.h. */ | |
9040 | _ACEOF | |
9041 | cat confdefs.h >>conftest.$ac_ext | |
9042 | cat >>conftest.$ac_ext <<_ACEOF | |
9043 | /* end confdefs.h. */ | |
f353eb8a | 9044 | |
f353eb8a | 9045 | /* Override any gcc2 internal prototype to avoid an error. */ |
e5a52504 MM |
9046 | #ifdef __cplusplus |
9047 | extern "C" | |
9048 | #endif | |
f353eb8a | 9049 | /* We use char because int might match the return type of a gcc2 |
e5a52504 MM |
9050 | builtin and then its argument prototype would still apply. */ |
9051 | char frexp (); | |
9052 | int | |
9053 | main () | |
9054 | { | |
9055 | frexp (); | |
9056 | ; | |
9057 | return 0; | |
9058 | } | |
9059 | _ACEOF | |
9060 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9062 | (eval $ac_link) 2>conftest.er1 | |
9063 | ac_status=$? | |
9064 | grep -v '^ *+' conftest.er1 >conftest.err | |
9065 | rm -f conftest.er1 | |
9066 | cat conftest.err >&5 | |
9067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9068 | (exit $ac_status); } && | |
9069 | { ac_try='test -z "$ac_c_werror_flag" | |
9070 | || test ! -s conftest.err' | |
9071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9072 | (eval $ac_try) 2>&5 | |
9073 | ac_status=$? | |
9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9075 | (exit $ac_status); }; } && | |
9076 | { ac_try='test -s conftest$ac_exeext' | |
9077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9078 | (eval $ac_try) 2>&5 | |
9079 | ac_status=$? | |
9080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9081 | (exit $ac_status); }; }; then | |
f353eb8a ILT |
9082 | ac_cv_search_frexp="none required" |
9083 | else | |
e5a52504 MM |
9084 | echo "$as_me: failed program was:" >&5 |
9085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9086 | ||
f353eb8a | 9087 | fi |
e5a52504 MM |
9088 | rm -f conftest.err conftest.$ac_objext \ |
9089 | conftest$ac_exeext conftest.$ac_ext | |
9090 | if test "$ac_cv_search_frexp" = no; then | |
9091 | for ac_lib in m; do | |
9092 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9093 | cat >conftest.$ac_ext <<_ACEOF | |
9094 | /* confdefs.h. */ | |
9095 | _ACEOF | |
9096 | cat confdefs.h >>conftest.$ac_ext | |
9097 | cat >>conftest.$ac_ext <<_ACEOF | |
9098 | /* end confdefs.h. */ | |
9099 | ||
f353eb8a | 9100 | /* Override any gcc2 internal prototype to avoid an error. */ |
e5a52504 MM |
9101 | #ifdef __cplusplus |
9102 | extern "C" | |
9103 | #endif | |
f353eb8a | 9104 | /* We use char because int might match the return type of a gcc2 |
e5a52504 MM |
9105 | builtin and then its argument prototype would still apply. */ |
9106 | char frexp (); | |
9107 | int | |
9108 | main () | |
9109 | { | |
9110 | frexp (); | |
9111 | ; | |
9112 | return 0; | |
9113 | } | |
9114 | _ACEOF | |
9115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9117 | (eval $ac_link) 2>conftest.er1 | |
9118 | ac_status=$? | |
9119 | grep -v '^ *+' conftest.er1 >conftest.err | |
9120 | rm -f conftest.er1 | |
9121 | cat conftest.err >&5 | |
9122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9123 | (exit $ac_status); } && | |
9124 | { ac_try='test -z "$ac_c_werror_flag" | |
9125 | || test ! -s conftest.err' | |
9126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9127 | (eval $ac_try) 2>&5 | |
9128 | ac_status=$? | |
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9130 | (exit $ac_status); }; } && | |
9131 | { ac_try='test -s conftest$ac_exeext' | |
9132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9133 | (eval $ac_try) 2>&5 | |
9134 | ac_status=$? | |
9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9136 | (exit $ac_status); }; }; then | |
9137 | ac_cv_search_frexp="-l$ac_lib" | |
f353eb8a ILT |
9138 | break |
9139 | else | |
e5a52504 MM |
9140 | echo "$as_me: failed program was:" >&5 |
9141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9142 | ||
f353eb8a | 9143 | fi |
e5a52504 MM |
9144 | rm -f conftest.err conftest.$ac_objext \ |
9145 | conftest$ac_exeext conftest.$ac_ext | |
9146 | done | |
f353eb8a | 9147 | fi |
e5a52504 MM |
9148 | LIBS=$ac_func_search_save_LIBS |
9149 | fi | |
9150 | echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5 | |
9151 | echo "${ECHO_T}$ac_cv_search_frexp" >&6 | |
9152 | if test "$ac_cv_search_frexp" != no; then | |
f353eb8a | 9153 | test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS" |
e5a52504 | 9154 | |
f353eb8a ILT |
9155 | fi |
9156 | ||
e5a52504 MM |
9157 | |
9158 | echo "$as_me:$LINENO: checking for time_t in time.h" >&5 | |
9159 | echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6 | |
9160 | if test "${bu_cv_decl_time_t_time_h+set}" = set; then | |
9161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9162 | else |
e5a52504 MM |
9163 | cat >conftest.$ac_ext <<_ACEOF |
9164 | /* confdefs.h. */ | |
9165 | _ACEOF | |
9166 | cat confdefs.h >>conftest.$ac_ext | |
9167 | cat >>conftest.$ac_ext <<_ACEOF | |
9168 | /* end confdefs.h. */ | |
252b5132 | 9169 | #include <time.h> |
e5a52504 MM |
9170 | int |
9171 | main () | |
9172 | { | |
252b5132 | 9173 | time_t i; |
e5a52504 MM |
9174 | ; |
9175 | return 0; | |
9176 | } | |
9177 | _ACEOF | |
9178 | rm -f conftest.$ac_objext | |
9179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9180 | (eval $ac_compile) 2>conftest.er1 | |
9181 | ac_status=$? | |
9182 | grep -v '^ *+' conftest.er1 >conftest.err | |
9183 | rm -f conftest.er1 | |
9184 | cat conftest.err >&5 | |
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9186 | (exit $ac_status); } && | |
9187 | { ac_try='test -z "$ac_c_werror_flag" | |
9188 | || test ! -s conftest.err' | |
9189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9190 | (eval $ac_try) 2>&5 | |
9191 | ac_status=$? | |
9192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9193 | (exit $ac_status); }; } && | |
9194 | { ac_try='test -s conftest.$ac_objext' | |
9195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9196 | (eval $ac_try) 2>&5 | |
9197 | ac_status=$? | |
9198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9199 | (exit $ac_status); }; }; then | |
252b5132 RH |
9200 | bu_cv_decl_time_t_time_h=yes |
9201 | else | |
e5a52504 MM |
9202 | echo "$as_me: failed program was:" >&5 |
9203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9204 | ||
9205 | bu_cv_decl_time_t_time_h=no | |
252b5132 | 9206 | fi |
e5a52504 | 9207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9208 | fi |
9209 | ||
e5a52504 MM |
9210 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5 |
9211 | echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6 | |
252b5132 | 9212 | if test $bu_cv_decl_time_t_time_h = yes; then |
e5a52504 MM |
9213 | |
9214 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9215 | #define HAVE_TIME_T_IN_TIME_H 1 |
e5a52504 | 9216 | _ACEOF |
252b5132 RH |
9217 | |
9218 | fi | |
9219 | ||
e5a52504 MM |
9220 | echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5 |
9221 | echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6 | |
9222 | if test "${bu_cv_decl_time_t_types_h+set}" = set; then | |
9223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9224 | else |
e5a52504 MM |
9225 | cat >conftest.$ac_ext <<_ACEOF |
9226 | /* confdefs.h. */ | |
9227 | _ACEOF | |
9228 | cat confdefs.h >>conftest.$ac_ext | |
9229 | cat >>conftest.$ac_ext <<_ACEOF | |
9230 | /* end confdefs.h. */ | |
252b5132 | 9231 | #include <sys/types.h> |
e5a52504 MM |
9232 | int |
9233 | main () | |
9234 | { | |
252b5132 | 9235 | time_t i; |
e5a52504 MM |
9236 | ; |
9237 | return 0; | |
9238 | } | |
9239 | _ACEOF | |
9240 | rm -f conftest.$ac_objext | |
9241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9242 | (eval $ac_compile) 2>conftest.er1 | |
9243 | ac_status=$? | |
9244 | grep -v '^ *+' conftest.er1 >conftest.err | |
9245 | rm -f conftest.er1 | |
9246 | cat conftest.err >&5 | |
9247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9248 | (exit $ac_status); } && | |
9249 | { ac_try='test -z "$ac_c_werror_flag" | |
9250 | || test ! -s conftest.err' | |
9251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9252 | (eval $ac_try) 2>&5 | |
9253 | ac_status=$? | |
9254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9255 | (exit $ac_status); }; } && | |
9256 | { ac_try='test -s conftest.$ac_objext' | |
9257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9258 | (eval $ac_try) 2>&5 | |
9259 | ac_status=$? | |
9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9261 | (exit $ac_status); }; }; then | |
252b5132 RH |
9262 | bu_cv_decl_time_t_types_h=yes |
9263 | else | |
e5a52504 MM |
9264 | echo "$as_me: failed program was:" >&5 |
9265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9266 | ||
9267 | bu_cv_decl_time_t_types_h=no | |
252b5132 | 9268 | fi |
e5a52504 | 9269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9270 | fi |
9271 | ||
e5a52504 MM |
9272 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5 |
9273 | echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6 | |
252b5132 | 9274 | if test $bu_cv_decl_time_t_types_h = yes; then |
e5a52504 MM |
9275 | |
9276 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9277 | #define HAVE_TIME_T_IN_TYPES_H 1 |
e5a52504 | 9278 | _ACEOF |
252b5132 RH |
9279 | |
9280 | fi | |
9281 | ||
9282 | # Under Next 3.2 <utime.h> apparently does not define struct utimbuf | |
9283 | # by default. | |
e5a52504 MM |
9284 | echo "$as_me:$LINENO: checking for utime.h" >&5 |
9285 | echo $ECHO_N "checking for utime.h... $ECHO_C" >&6 | |
9286 | if test "${bu_cv_header_utime_h+set}" = set; then | |
9287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9288 | else | |
9289 | cat >conftest.$ac_ext <<_ACEOF | |
9290 | /* confdefs.h. */ | |
9291 | _ACEOF | |
9292 | cat confdefs.h >>conftest.$ac_ext | |
9293 | cat >>conftest.$ac_ext <<_ACEOF | |
9294 | /* end confdefs.h. */ | |
252b5132 RH |
9295 | #include <sys/types.h> |
9296 | #ifdef HAVE_TIME_H | |
9297 | #include <time.h> | |
9298 | #endif | |
9299 | #include <utime.h> | |
e5a52504 MM |
9300 | int |
9301 | main () | |
9302 | { | |
252b5132 | 9303 | struct utimbuf s; |
e5a52504 MM |
9304 | ; |
9305 | return 0; | |
9306 | } | |
9307 | _ACEOF | |
9308 | rm -f conftest.$ac_objext | |
9309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9310 | (eval $ac_compile) 2>conftest.er1 | |
9311 | ac_status=$? | |
9312 | grep -v '^ *+' conftest.er1 >conftest.err | |
9313 | rm -f conftest.er1 | |
9314 | cat conftest.err >&5 | |
9315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9316 | (exit $ac_status); } && | |
9317 | { ac_try='test -z "$ac_c_werror_flag" | |
9318 | || test ! -s conftest.err' | |
9319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9320 | (eval $ac_try) 2>&5 | |
9321 | ac_status=$? | |
9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9323 | (exit $ac_status); }; } && | |
9324 | { ac_try='test -s conftest.$ac_objext' | |
9325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9326 | (eval $ac_try) 2>&5 | |
9327 | ac_status=$? | |
9328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9329 | (exit $ac_status); }; }; then | |
252b5132 RH |
9330 | bu_cv_header_utime_h=yes |
9331 | else | |
e5a52504 MM |
9332 | echo "$as_me: failed program was:" >&5 |
9333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9334 | ||
9335 | bu_cv_header_utime_h=no | |
252b5132 | 9336 | fi |
e5a52504 | 9337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9338 | fi |
9339 | ||
e5a52504 MM |
9340 | echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5 |
9341 | echo "${ECHO_T}$bu_cv_header_utime_h" >&6 | |
252b5132 | 9342 | if test $bu_cv_header_utime_h = yes; then |
e5a52504 MM |
9343 | |
9344 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9345 | #define HAVE_GOOD_UTIME_H 1 |
e5a52504 | 9346 | _ACEOF |
252b5132 RH |
9347 | |
9348 | fi | |
9349 | ||
e5a52504 MM |
9350 | echo "$as_me:$LINENO: checking whether fprintf must be declared" >&5 |
9351 | echo $ECHO_N "checking whether fprintf must be declared... $ECHO_C" >&6 | |
9352 | if test "${bfd_cv_decl_needed_fprintf+set}" = set; then | |
9353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9354 | else |
e5a52504 MM |
9355 | cat >conftest.$ac_ext <<_ACEOF |
9356 | /* confdefs.h. */ | |
9357 | _ACEOF | |
9358 | cat confdefs.h >>conftest.$ac_ext | |
9359 | cat >>conftest.$ac_ext <<_ACEOF | |
9360 | /* end confdefs.h. */ | |
252b5132 RH |
9361 | |
9362 | #include <stdio.h> | |
9363 | #ifdef HAVE_STRING_H | |
9364 | #include <string.h> | |
9365 | #else | |
9366 | #ifdef HAVE_STRINGS_H | |
9367 | #include <strings.h> | |
9368 | #endif | |
9369 | #endif | |
9370 | #ifdef HAVE_STDLIB_H | |
9371 | #include <stdlib.h> | |
9372 | #endif | |
9373 | #ifdef HAVE_UNISTD_H | |
9374 | #include <unistd.h> | |
9375 | #endif | |
e5a52504 MM |
9376 | int |
9377 | main () | |
9378 | { | |
252b5132 | 9379 | char *(*pfn) = (char *(*)) fprintf |
e5a52504 MM |
9380 | ; |
9381 | return 0; | |
9382 | } | |
9383 | _ACEOF | |
9384 | rm -f conftest.$ac_objext | |
9385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9386 | (eval $ac_compile) 2>conftest.er1 | |
9387 | ac_status=$? | |
9388 | grep -v '^ *+' conftest.er1 >conftest.err | |
9389 | rm -f conftest.er1 | |
9390 | cat conftest.err >&5 | |
9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9392 | (exit $ac_status); } && | |
9393 | { ac_try='test -z "$ac_c_werror_flag" | |
9394 | || test ! -s conftest.err' | |
9395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9396 | (eval $ac_try) 2>&5 | |
9397 | ac_status=$? | |
9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9399 | (exit $ac_status); }; } && | |
9400 | { ac_try='test -s conftest.$ac_objext' | |
9401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9402 | (eval $ac_try) 2>&5 | |
9403 | ac_status=$? | |
9404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9405 | (exit $ac_status); }; }; then | |
252b5132 RH |
9406 | bfd_cv_decl_needed_fprintf=no |
9407 | else | |
e5a52504 MM |
9408 | echo "$as_me: failed program was:" >&5 |
9409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9410 | ||
9411 | bfd_cv_decl_needed_fprintf=yes | |
252b5132 | 9412 | fi |
e5a52504 | 9413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9414 | fi |
9415 | ||
e5a52504 MM |
9416 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_fprintf" >&5 |
9417 | echo "${ECHO_T}$bfd_cv_decl_needed_fprintf" >&6 | |
252b5132 | 9418 | if test $bfd_cv_decl_needed_fprintf = yes; then |
e5a52504 MM |
9419 | |
9420 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9421 | #define NEED_DECLARATION_FPRINTF 1 |
e5a52504 | 9422 | _ACEOF |
252b5132 RH |
9423 | |
9424 | fi | |
9425 | ||
e5a52504 MM |
9426 | echo "$as_me:$LINENO: checking whether strstr must be declared" >&5 |
9427 | echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6 | |
9428 | if test "${bfd_cv_decl_needed_strstr+set}" = set; then | |
9429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9430 | else |
e5a52504 MM |
9431 | cat >conftest.$ac_ext <<_ACEOF |
9432 | /* confdefs.h. */ | |
9433 | _ACEOF | |
9434 | cat confdefs.h >>conftest.$ac_ext | |
9435 | cat >>conftest.$ac_ext <<_ACEOF | |
9436 | /* end confdefs.h. */ | |
252b5132 RH |
9437 | |
9438 | #include <stdio.h> | |
9439 | #ifdef HAVE_STRING_H | |
9440 | #include <string.h> | |
9441 | #else | |
9442 | #ifdef HAVE_STRINGS_H | |
9443 | #include <strings.h> | |
9444 | #endif | |
9445 | #endif | |
9446 | #ifdef HAVE_STDLIB_H | |
9447 | #include <stdlib.h> | |
9448 | #endif | |
9449 | #ifdef HAVE_UNISTD_H | |
9450 | #include <unistd.h> | |
9451 | #endif | |
e5a52504 MM |
9452 | int |
9453 | main () | |
9454 | { | |
252b5132 | 9455 | char *(*pfn) = (char *(*)) strstr |
e5a52504 MM |
9456 | ; |
9457 | return 0; | |
9458 | } | |
9459 | _ACEOF | |
9460 | rm -f conftest.$ac_objext | |
9461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9462 | (eval $ac_compile) 2>conftest.er1 | |
9463 | ac_status=$? | |
9464 | grep -v '^ *+' conftest.er1 >conftest.err | |
9465 | rm -f conftest.er1 | |
9466 | cat conftest.err >&5 | |
9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9468 | (exit $ac_status); } && | |
9469 | { ac_try='test -z "$ac_c_werror_flag" | |
9470 | || test ! -s conftest.err' | |
9471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9472 | (eval $ac_try) 2>&5 | |
9473 | ac_status=$? | |
9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9475 | (exit $ac_status); }; } && | |
9476 | { ac_try='test -s conftest.$ac_objext' | |
9477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9478 | (eval $ac_try) 2>&5 | |
9479 | ac_status=$? | |
9480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9481 | (exit $ac_status); }; }; then | |
252b5132 RH |
9482 | bfd_cv_decl_needed_strstr=no |
9483 | else | |
e5a52504 MM |
9484 | echo "$as_me: failed program was:" >&5 |
9485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9486 | ||
9487 | bfd_cv_decl_needed_strstr=yes | |
252b5132 | 9488 | fi |
e5a52504 | 9489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9490 | fi |
9491 | ||
e5a52504 MM |
9492 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5 |
9493 | echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6 | |
252b5132 | 9494 | if test $bfd_cv_decl_needed_strstr = yes; then |
e5a52504 MM |
9495 | |
9496 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9497 | #define NEED_DECLARATION_STRSTR 1 |
e5a52504 | 9498 | _ACEOF |
252b5132 RH |
9499 | |
9500 | fi | |
9501 | ||
e5a52504 MM |
9502 | echo "$as_me:$LINENO: checking whether sbrk must be declared" >&5 |
9503 | echo $ECHO_N "checking whether sbrk must be declared... $ECHO_C" >&6 | |
9504 | if test "${bfd_cv_decl_needed_sbrk+set}" = set; then | |
9505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9506 | else |
e5a52504 MM |
9507 | cat >conftest.$ac_ext <<_ACEOF |
9508 | /* confdefs.h. */ | |
9509 | _ACEOF | |
9510 | cat confdefs.h >>conftest.$ac_ext | |
9511 | cat >>conftest.$ac_ext <<_ACEOF | |
9512 | /* end confdefs.h. */ | |
252b5132 RH |
9513 | |
9514 | #include <stdio.h> | |
9515 | #ifdef HAVE_STRING_H | |
9516 | #include <string.h> | |
9517 | #else | |
9518 | #ifdef HAVE_STRINGS_H | |
9519 | #include <strings.h> | |
9520 | #endif | |
9521 | #endif | |
9522 | #ifdef HAVE_STDLIB_H | |
9523 | #include <stdlib.h> | |
9524 | #endif | |
9525 | #ifdef HAVE_UNISTD_H | |
9526 | #include <unistd.h> | |
9527 | #endif | |
e5a52504 MM |
9528 | int |
9529 | main () | |
9530 | { | |
252b5132 | 9531 | char *(*pfn) = (char *(*)) sbrk |
e5a52504 MM |
9532 | ; |
9533 | return 0; | |
9534 | } | |
9535 | _ACEOF | |
9536 | rm -f conftest.$ac_objext | |
9537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9538 | (eval $ac_compile) 2>conftest.er1 | |
9539 | ac_status=$? | |
9540 | grep -v '^ *+' conftest.er1 >conftest.err | |
9541 | rm -f conftest.er1 | |
9542 | cat conftest.err >&5 | |
9543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9544 | (exit $ac_status); } && | |
9545 | { ac_try='test -z "$ac_c_werror_flag" | |
9546 | || test ! -s conftest.err' | |
9547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9548 | (eval $ac_try) 2>&5 | |
9549 | ac_status=$? | |
9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9551 | (exit $ac_status); }; } && | |
9552 | { ac_try='test -s conftest.$ac_objext' | |
9553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9554 | (eval $ac_try) 2>&5 | |
9555 | ac_status=$? | |
9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9557 | (exit $ac_status); }; }; then | |
252b5132 RH |
9558 | bfd_cv_decl_needed_sbrk=no |
9559 | else | |
e5a52504 MM |
9560 | echo "$as_me: failed program was:" >&5 |
9561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9562 | ||
9563 | bfd_cv_decl_needed_sbrk=yes | |
252b5132 | 9564 | fi |
e5a52504 | 9565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9566 | fi |
9567 | ||
e5a52504 MM |
9568 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_sbrk" >&5 |
9569 | echo "${ECHO_T}$bfd_cv_decl_needed_sbrk" >&6 | |
252b5132 | 9570 | if test $bfd_cv_decl_needed_sbrk = yes; then |
e5a52504 MM |
9571 | |
9572 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9573 | #define NEED_DECLARATION_SBRK 1 |
e5a52504 | 9574 | _ACEOF |
252b5132 RH |
9575 | |
9576 | fi | |
9577 | ||
e5a52504 MM |
9578 | echo "$as_me:$LINENO: checking whether getenv must be declared" >&5 |
9579 | echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6 | |
9580 | if test "${bfd_cv_decl_needed_getenv+set}" = set; then | |
9581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9582 | else |
e5a52504 MM |
9583 | cat >conftest.$ac_ext <<_ACEOF |
9584 | /* confdefs.h. */ | |
9585 | _ACEOF | |
9586 | cat confdefs.h >>conftest.$ac_ext | |
9587 | cat >>conftest.$ac_ext <<_ACEOF | |
9588 | /* end confdefs.h. */ | |
252b5132 RH |
9589 | |
9590 | #include <stdio.h> | |
9591 | #ifdef HAVE_STRING_H | |
9592 | #include <string.h> | |
9593 | #else | |
9594 | #ifdef HAVE_STRINGS_H | |
9595 | #include <strings.h> | |
9596 | #endif | |
9597 | #endif | |
9598 | #ifdef HAVE_STDLIB_H | |
9599 | #include <stdlib.h> | |
9600 | #endif | |
9601 | #ifdef HAVE_UNISTD_H | |
9602 | #include <unistd.h> | |
9603 | #endif | |
e5a52504 MM |
9604 | int |
9605 | main () | |
9606 | { | |
252b5132 | 9607 | char *(*pfn) = (char *(*)) getenv |
e5a52504 MM |
9608 | ; |
9609 | return 0; | |
9610 | } | |
9611 | _ACEOF | |
9612 | rm -f conftest.$ac_objext | |
9613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9614 | (eval $ac_compile) 2>conftest.er1 | |
9615 | ac_status=$? | |
9616 | grep -v '^ *+' conftest.er1 >conftest.err | |
9617 | rm -f conftest.er1 | |
9618 | cat conftest.err >&5 | |
9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9620 | (exit $ac_status); } && | |
9621 | { ac_try='test -z "$ac_c_werror_flag" | |
9622 | || test ! -s conftest.err' | |
9623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9624 | (eval $ac_try) 2>&5 | |
9625 | ac_status=$? | |
9626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9627 | (exit $ac_status); }; } && | |
9628 | { ac_try='test -s conftest.$ac_objext' | |
9629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9630 | (eval $ac_try) 2>&5 | |
9631 | ac_status=$? | |
9632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9633 | (exit $ac_status); }; }; then | |
252b5132 RH |
9634 | bfd_cv_decl_needed_getenv=no |
9635 | else | |
e5a52504 MM |
9636 | echo "$as_me: failed program was:" >&5 |
9637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9638 | ||
9639 | bfd_cv_decl_needed_getenv=yes | |
252b5132 | 9640 | fi |
e5a52504 | 9641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9642 | fi |
9643 | ||
e5a52504 MM |
9644 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5 |
9645 | echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6 | |
252b5132 | 9646 | if test $bfd_cv_decl_needed_getenv = yes; then |
e5a52504 MM |
9647 | |
9648 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9649 | #define NEED_DECLARATION_GETENV 1 |
e5a52504 | 9650 | _ACEOF |
252b5132 RH |
9651 | |
9652 | fi | |
9653 | ||
e5a52504 MM |
9654 | echo "$as_me:$LINENO: checking whether environ must be declared" >&5 |
9655 | echo $ECHO_N "checking whether environ must be declared... $ECHO_C" >&6 | |
9656 | if test "${bfd_cv_decl_needed_environ+set}" = set; then | |
9657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9658 | else |
e5a52504 MM |
9659 | cat >conftest.$ac_ext <<_ACEOF |
9660 | /* confdefs.h. */ | |
9661 | _ACEOF | |
9662 | cat confdefs.h >>conftest.$ac_ext | |
9663 | cat >>conftest.$ac_ext <<_ACEOF | |
9664 | /* end confdefs.h. */ | |
252b5132 RH |
9665 | |
9666 | #include <stdio.h> | |
9667 | #ifdef HAVE_STRING_H | |
9668 | #include <string.h> | |
9669 | #else | |
9670 | #ifdef HAVE_STRINGS_H | |
9671 | #include <strings.h> | |
9672 | #endif | |
9673 | #endif | |
9674 | #ifdef HAVE_STDLIB_H | |
9675 | #include <stdlib.h> | |
9676 | #endif | |
9677 | #ifdef HAVE_UNISTD_H | |
9678 | #include <unistd.h> | |
9679 | #endif | |
e5a52504 MM |
9680 | int |
9681 | main () | |
9682 | { | |
252b5132 | 9683 | char *(*pfn) = (char *(*)) environ |
e5a52504 MM |
9684 | ; |
9685 | return 0; | |
9686 | } | |
9687 | _ACEOF | |
9688 | rm -f conftest.$ac_objext | |
9689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9690 | (eval $ac_compile) 2>conftest.er1 | |
9691 | ac_status=$? | |
9692 | grep -v '^ *+' conftest.er1 >conftest.err | |
9693 | rm -f conftest.er1 | |
9694 | cat conftest.err >&5 | |
9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9696 | (exit $ac_status); } && | |
9697 | { ac_try='test -z "$ac_c_werror_flag" | |
9698 | || test ! -s conftest.err' | |
9699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9700 | (eval $ac_try) 2>&5 | |
9701 | ac_status=$? | |
9702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9703 | (exit $ac_status); }; } && | |
9704 | { ac_try='test -s conftest.$ac_objext' | |
9705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9706 | (eval $ac_try) 2>&5 | |
9707 | ac_status=$? | |
9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9709 | (exit $ac_status); }; }; then | |
252b5132 RH |
9710 | bfd_cv_decl_needed_environ=no |
9711 | else | |
e5a52504 MM |
9712 | echo "$as_me: failed program was:" >&5 |
9713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9714 | ||
9715 | bfd_cv_decl_needed_environ=yes | |
252b5132 | 9716 | fi |
e5a52504 | 9717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9718 | fi |
9719 | ||
e5a52504 MM |
9720 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_environ" >&5 |
9721 | echo "${ECHO_T}$bfd_cv_decl_needed_environ" >&6 | |
252b5132 | 9722 | if test $bfd_cv_decl_needed_environ = yes; then |
e5a52504 MM |
9723 | |
9724 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9725 | #define NEED_DECLARATION_ENVIRON 1 |
e5a52504 | 9726 | _ACEOF |
252b5132 RH |
9727 | |
9728 | fi | |
9729 | ||
9730 | ||
9731 | ||
9732 | case "${host}" in | |
8a965946 | 9733 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
e5a52504 MM |
9734 | |
9735 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9736 | #define USE_BINARY_FOPEN 1 |
e5a52504 | 9737 | _ACEOF |
252b5132 RH |
9738 | ;; |
9739 | esac | |
9740 | ||
9741 | # target-specific stuff: | |
9742 | ||
9743 | # Canonicalize the secondary target names. | |
9744 | if test -n "$enable_targets"; then | |
9745 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
9746 | do | |
6d83c84b | 9747 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
9748 | if test -n "$result"; then |
9749 | canon_targets="$canon_targets $result" | |
9750 | else | |
9751 | # Allow targets that config.sub doesn't recognize, like "all". | |
9752 | canon_targets="$canon_targets $targ" | |
9753 | fi | |
9754 | done | |
9755 | fi | |
9756 | ||
9757 | all_targets=false | |
9758 | BUILD_NLMCONV= | |
9759 | NLMCONV_DEFS= | |
9760 | BUILD_SRCONV= | |
9761 | BUILD_DLLTOOL= | |
9762 | DLLTOOL_DEFS= | |
9763 | BUILD_WINDRES= | |
9764 | BUILD_DLLWRAP= | |
9765 | BUILD_MISC= | |
8b1e6df3 | 9766 | OBJDUMP_DEFS= |
252b5132 RH |
9767 | |
9768 | for targ in $target $canon_targets | |
9769 | do | |
9770 | if test "x$targ" = "xall"; then | |
9771 | all_targets=true | |
9772 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
9773 | BUILD_SRCONV='$(SRCONV_PROG)' | |
9774 | NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" | |
9775 | else | |
9776 | case $targ in | |
e5a52504 | 9777 | i[3-7]86*-*-netware*) |
252b5132 RH |
9778 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
9779 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386" | |
9780 | ;; | |
9781 | alpha*-*-netware*) | |
9782 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
9783 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA" | |
9784 | ;; | |
9785 | powerpc*-*-netware*) | |
9786 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
9787 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC" | |
9788 | ;; | |
9789 | sparc*-*-netware*) | |
9790 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
9791 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC" | |
9792 | ;; | |
9793 | esac | |
9794 | case $targ in | |
9795 | *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; | |
9796 | esac | |
9797 | case $targ in | |
a8c548cb NC |
9798 | arm-epoc-pe*) |
9799 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
9800 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" | |
9801 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
9802 | ;; | |
27a710e5 | 9803 | arm-*-pe* | arm-*-wince) |
252b5132 RH |
9804 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
9805 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" | |
9806 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 9807 | ;; |
27a710e5 | 9808 | thumb-*-pe*) |
252b5132 RH |
9809 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
9810 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" | |
9811 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 9812 | ;; |
c7217458 | 9813 | arm*-* | xscale-* | strongarm-* | d10v-*) |
8b1e6df3 NC |
9814 | OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS" |
9815 | ;; | |
80c7c40a | 9816 | i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*) |
252b5132 RH |
9817 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
9818 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
9819 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
9820 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' | |
7a7b06ef | 9821 | ;; |
80c7c40a | 9822 | i[3-7]86-*-interix) |
7a7b06ef ILT |
9823 | BUILD_DLLTOOL='$(DLLTOOL_PROG)' |
9824 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
9825 | ;; | |
f0660b73 NC |
9826 | powerpc*-aix5.[01]) |
9827 | ;; | |
9828 | powerpc*-aix5.*) | |
9829 | OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" | |
9830 | ;; | |
e1d5b1e7 | 9831 | powerpc*-*-pe* | powerpc*-*-cygwin*) |
252b5132 RH |
9832 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
9833 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" | |
9834 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
8a0e0f38 | 9835 | ;; |
e1d5b1e7 | 9836 | sh*-*-pe) |
8a0e0f38 NC |
9837 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
9838 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" | |
9839 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
9840 | ;; | |
e1d5b1e7 | 9841 | mips*-*-pe) |
8a0e0f38 NC |
9842 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
9843 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS" | |
9844 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 9845 | ;; |
27a710e5 | 9846 | mcore-*-pe) |
661016bb NC |
9847 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
9848 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" | |
9849 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 9850 | ;; |
27a710e5 | 9851 | mcore-*-elf) |
661016bb NC |
9852 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
9853 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" | |
7a7b06ef | 9854 | ;; |
1a09a22c NC |
9855 | c4x-*-* | tic4x-*-*) |
9856 | OBJDUMP_DEFS="$OBJDUMP_DEFS -DSKIP_ZEROES=32" | |
9857 | ;; | |
d070dab9 JW |
9858 | ia64-*-*) |
9859 | OBJDUMP_DEFS="$OBJDUMP_DEFS -DSKIP_ZEROES=16" | |
9860 | ;; | |
252b5132 RH |
9861 | esac |
9862 | fi | |
9863 | done | |
9864 | ||
c918cb96 DD |
9865 | if test "${with_windres+set}" = set; then |
9866 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
9867 | fi | |
252b5132 RH |
9868 | |
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
9875 | ||
9876 | ||
8b1e6df3 | 9877 | |
0218d1e4 | 9878 | |
e5a52504 MM |
9879 | |
9880 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 9881 | #define TARGET "${target}" |
e5a52504 | 9882 | _ACEOF |
252b5132 RH |
9883 | |
9884 | ||
9885 | targ=$target | |
9886 | . $srcdir/../bfd/config.bfd | |
9887 | if test "x$targ_underscore" = "xyes"; then | |
9888 | UNDERSCORE=1 | |
9889 | else | |
9890 | UNDERSCORE=0 | |
9891 | fi | |
e5a52504 MM |
9892 | |
9893 | cat >>confdefs.h <<_ACEOF | |
bb279dc0 | 9894 | #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE |
e5a52504 | 9895 | _ACEOF |
252b5132 RH |
9896 | |
9897 | ||
e5a52504 | 9898 | # Emulation |
eb1e0e80 NC |
9899 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` |
9900 | do | |
9901 | # Canonicalize the secondary target names. | |
9902 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
9903 | if test -n "$result"; then | |
9904 | targ=$result | |
9905 | else | |
9906 | targ=$targ_alias | |
9907 | fi | |
9908 | ||
9909 | . ${srcdir}/configure.tgt | |
9910 | ||
9911 | EMULATION=$targ_emul | |
e5a52504 | 9912 | EMULATION_VECTOR=$targ_emul_vector |
eb1e0e80 NC |
9913 | done |
9914 | ||
9915 | ||
9916 | ||
9917 | ||
e5a52504 MM |
9918 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
9919 | ac_config_commands="$ac_config_commands default" | |
9920 | cat >confcache <<\_ACEOF | |
252b5132 RH |
9921 | # This file is a shell script that caches the results of configure |
9922 | # tests run on this system so they can be shared between configure | |
e5a52504 MM |
9923 | # scripts and configure runs, see configure's option --config-cache. |
9924 | # It is not useful on other systems. If it contains results you don't | |
9925 | # want to keep, you may remove or edit it. | |
252b5132 | 9926 | # |
e5a52504 MM |
9927 | # config.status only pays attention to the cache file if you give it |
9928 | # the --recheck option to rerun configure. | |
252b5132 | 9929 | # |
e5a52504 MM |
9930 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9931 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9932 | # following values. | |
9933 | ||
9934 | _ACEOF | |
9935 | ||
252b5132 RH |
9936 | # The following way of writing the cache mishandles newlines in values, |
9937 | # but we know of no workaround that is simple, portable, and efficient. | |
9938 | # So, don't put newlines in cache variables' values. | |
9939 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9940 | # and sets the high bit in the cache file unless we assign to the vars. | |
e5a52504 MM |
9941 | { |
9942 | (set) 2>&1 | | |
9943 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9944 | *ac_space=\ *) | |
9945 | # `set' does not quote correctly, so add quotes (double-quote | |
9946 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9947 | sed -n \ | |
9948 | "s/'/'\\\\''/g; | |
9949 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9950 | ;; | |
9951 | *) | |
9952 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9953 | sed -n \ | |
9954 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9955 | ;; | |
9956 | esac; | |
9957 | } | | |
9958 | sed ' | |
9959 | t clear | |
9960 | : clear | |
9961 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9962 | t end | |
9963 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9964 | : end' >>confcache | |
9965 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
252b5132 | 9966 | if test -w $cache_file; then |
e5a52504 MM |
9967 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9968 | cat confcache >$cache_file | |
252b5132 RH |
9969 | else |
9970 | echo "not updating unwritable cache $cache_file" | |
9971 | fi | |
9972 | fi | |
9973 | rm -f confcache | |
9974 | ||
252b5132 RH |
9975 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
9976 | # Let make expand exec_prefix. | |
9977 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9978 | ||
e5a52504 MM |
9979 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
9980 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
9981 | # trailing colons and then remove the whole line if VPATH becomes empty | |
9982 | # (actually we leave an empty line to preserve line numbers). | |
252b5132 | 9983 | if test "x$srcdir" = x.; then |
e5a52504 MM |
9984 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
9985 | s/:*\$(srcdir):*/:/; | |
9986 | s/:*\${srcdir}:*/:/; | |
9987 | s/:*@srcdir@:*/:/; | |
9988 | s/^\([^=]*=[ ]*\):*/\1/; | |
9989 | s/:*$//; | |
9990 | s/^[^=]*=[ ]*$//; | |
9991 | }' | |
252b5132 RH |
9992 | fi |
9993 | ||
252b5132 RH |
9994 | DEFS=-DHAVE_CONFIG_H |
9995 | ||
e5a52504 MM |
9996 | ac_libobjs= |
9997 | ac_ltlibobjs= | |
9998 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
9999 | # 1. Remove the extension, and $U if already installed. | |
10000 | ac_i=`echo "$ac_i" | | |
10001 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
10002 | # 2. Add them. | |
10003 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
10004 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
10005 | done | |
10006 | LIBOBJS=$ac_libobjs | |
252b5132 | 10007 | |
e5a52504 MM |
10008 | LTLIBOBJS=$ac_ltlibobjs |
10009 | ||
10010 | ||
10011 | ||
10012 | : ${CONFIG_STATUS=./config.status} | |
10013 | ac_clean_files_save=$ac_clean_files | |
10014 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10015 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
10016 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10017 | cat >$CONFIG_STATUS <<_ACEOF | |
10018 | #! $SHELL | |
10019 | # Generated by $as_me. | |
252b5132 | 10020 | # Run this file to recreate the current configuration. |
252b5132 | 10021 | # Compiler output produced by configure, useful for debugging |
e5a52504 | 10022 | # configure, is in config.log if it exists. |
252b5132 | 10023 | |
e5a52504 MM |
10024 | debug=false |
10025 | ac_cs_recheck=false | |
10026 | ac_cs_silent=false | |
10027 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10028 | _ACEOF | |
10029 | ||
10030 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10031 | ## --------------------- ## | |
10032 | ## M4sh Initialization. ## | |
10033 | ## --------------------- ## | |
10034 | ||
10035 | # Be Bourne compatible | |
10036 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
10037 | emulate sh | |
10038 | NULLCMD=: | |
10039 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
10040 | # is contrary to our usage. Disable this feature. | |
10041 | alias -g '${1+"$@"}'='"$@"' | |
10042 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
10043 | set -o posix | |
10044 | fi | |
10045 | DUALCASE=1; export DUALCASE # for MKS sh | |
10046 | ||
10047 | # Support unset when possible. | |
10048 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
10049 | as_unset=unset | |
10050 | else | |
10051 | as_unset=false | |
10052 | fi | |
10053 | ||
10054 | ||
10055 | # Work around bugs in pre-3.0 UWIN ksh. | |
10056 | $as_unset ENV MAIL MAILPATH | |
10057 | PS1='$ ' | |
10058 | PS2='> ' | |
10059 | PS4='+ ' | |
10060 | ||
10061 | # NLS nuisances. | |
10062 | for as_var in \ | |
10063 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
10064 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
10065 | LC_TELEPHONE LC_TIME | |
252b5132 | 10066 | do |
e5a52504 MM |
10067 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
10068 | eval $as_var=C; export $as_var | |
10069 | else | |
10070 | $as_unset $as_var | |
10071 | fi | |
252b5132 RH |
10072 | done |
10073 | ||
e5a52504 MM |
10074 | # Required to use basename. |
10075 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
10076 | as_expr=expr | |
10077 | else | |
10078 | as_expr=false | |
10079 | fi | |
252b5132 | 10080 | |
e5a52504 MM |
10081 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
10082 | as_basename=basename | |
10083 | else | |
10084 | as_basename=false | |
10085 | fi | |
252b5132 | 10086 | |
252b5132 | 10087 | |
e5a52504 MM |
10088 | # Name of the executable. |
10089 | as_me=`$as_basename "$0" || | |
10090 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10091 | X"$0" : 'X\(//\)$' \| \ | |
10092 | X"$0" : 'X\(/\)$' \| \ | |
10093 | . : '\(.\)' 2>/dev/null || | |
10094 | echo X/"$0" | | |
10095 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
10096 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
10097 | /^X\/\(\/\).*/{ s//\1/; q; } | |
10098 | s/.*/./; q'` | |
10099 | ||
10100 | ||
10101 | # PATH needs CR, and LINENO needs CR and PATH. | |
10102 | # Avoid depending upon Character Ranges. | |
10103 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10104 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10105 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10106 | as_cr_digits='0123456789' | |
10107 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
252b5132 | 10108 | |
e5a52504 MM |
10109 | # The user is always right. |
10110 | if test "${PATH_SEPARATOR+set}" != set; then | |
10111 | echo "#! /bin/sh" >conf$$.sh | |
10112 | echo "exit 0" >>conf$$.sh | |
10113 | chmod +x conf$$.sh | |
10114 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10115 | PATH_SEPARATOR=';' | |
252b5132 | 10116 | else |
e5a52504 MM |
10117 | PATH_SEPARATOR=: |
10118 | fi | |
10119 | rm -f conf$$.sh | |
10120 | fi | |
10121 | ||
10122 | ||
10123 | as_lineno_1=$LINENO | |
10124 | as_lineno_2=$LINENO | |
10125 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
10126 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
10127 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
10128 | # Find who we are. Look in the path if we contain no path at all | |
10129 | # relative or not. | |
10130 | case $0 in | |
10131 | *[\\/]* ) as_myself=$0 ;; | |
10132 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10133 | for as_dir in $PATH | |
10134 | do | |
10135 | IFS=$as_save_IFS | |
10136 | test -z "$as_dir" && as_dir=. | |
10137 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10138 | done | |
10139 | ||
10140 | ;; | |
10141 | esac | |
10142 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10143 | # in which case we are not to be found in the path. | |
10144 | if test "x$as_myself" = x; then | |
10145 | as_myself=$0 | |
252b5132 | 10146 | fi |
e5a52504 MM |
10147 | if test ! -f "$as_myself"; then |
10148 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
10149 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
10150 | { (exit 1); exit 1; }; } | |
10151 | fi | |
10152 | case $CONFIG_SHELL in | |
10153 | '') | |
10154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10155 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
10156 | do | |
10157 | IFS=$as_save_IFS | |
10158 | test -z "$as_dir" && as_dir=. | |
10159 | for as_base in sh bash ksh sh5; do | |
10160 | case $as_dir in | |
10161 | /*) | |
10162 | if ("$as_dir/$as_base" -c ' | |
10163 | as_lineno_1=$LINENO | |
10164 | as_lineno_2=$LINENO | |
10165 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
10166 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
10167 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
10168 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
10169 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
10170 | CONFIG_SHELL=$as_dir/$as_base | |
10171 | export CONFIG_SHELL | |
10172 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
10173 | fi;; | |
10174 | esac | |
10175 | done | |
10176 | done | |
10177 | ;; | |
10178 | esac | |
10179 | ||
10180 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
10181 | # uniformly replaced by the line number. The first 'sed' inserts a | |
10182 | # line-number line before each line; the second 'sed' does the real | |
10183 | # work. The second script uses 'N' to pair each line-number line | |
10184 | # with the numbered line, and appends trailing '-' during | |
10185 | # substitution so that $LINENO is not a special case at line end. | |
10186 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
10187 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
10188 | sed '=' <$as_myself | | |
10189 | sed ' | |
10190 | N | |
10191 | s,$,-, | |
10192 | : loop | |
10193 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
10194 | t loop | |
10195 | s,-$,, | |
10196 | s,^['$as_cr_digits']*\n,, | |
10197 | ' >$as_me.lineno && | |
10198 | chmod +x $as_me.lineno || | |
10199 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
10200 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
10201 | { (exit 1); exit 1; }; } | |
10202 | ||
10203 | # Don't try to exec as it changes $[0], causing all sort of problems | |
10204 | # (the dirname of $[0] is not the place where we might find the | |
10205 | # original and so on. Autoconf is especially sensible to this). | |
10206 | . ./$as_me.lineno | |
10207 | # Exit status is that of the last command. | |
10208 | exit | |
10209 | } | |
10210 | ||
10211 | ||
10212 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
10213 | *c*,-n*) ECHO_N= ECHO_C=' | |
10214 | ' ECHO_T=' ' ;; | |
10215 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
10216 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
10217 | esac | |
10218 | ||
10219 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
10220 | as_expr=expr | |
10221 | else | |
10222 | as_expr=false | |
10223 | fi | |
10224 | ||
10225 | rm -f conf$$ conf$$.exe conf$$.file | |
10226 | echo >conf$$.file | |
10227 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10228 | # We could just check for DJGPP; but this test a) works b) is more generic | |
10229 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
10230 | if test -f conf$$.exe; then | |
10231 | # Don't use ln at all; we don't have any links | |
10232 | as_ln_s='cp -p' | |
252b5132 | 10233 | else |
e5a52504 | 10234 | as_ln_s='ln -s' |
252b5132 | 10235 | fi |
e5a52504 MM |
10236 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10237 | as_ln_s=ln | |
10238 | else | |
10239 | as_ln_s='cp -p' | |
10240 | fi | |
10241 | rm -f conf$$ conf$$.exe conf$$.file | |
10242 | ||
10243 | if mkdir -p . 2>/dev/null; then | |
10244 | as_mkdir_p=: | |
10245 | else | |
10246 | test -d ./-p && rmdir ./-p | |
10247 | as_mkdir_p=false | |
10248 | fi | |
10249 | ||
10250 | as_executable_p="test -f" | |
10251 | ||
10252 | # Sed expression to map a string onto a valid CPP name. | |
10253 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10254 | ||
10255 | # Sed expression to map a string onto a valid variable name. | |
10256 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10257 | ||
10258 | ||
10259 | # IFS | |
10260 | # We need space, tab and new line, in precisely that order. | |
10261 | as_nl=' | |
10262 | ' | |
10263 | IFS=" $as_nl" | |
10264 | ||
10265 | # CDPATH. | |
10266 | $as_unset CDPATH | |
10267 | ||
10268 | exec 6>&1 | |
10269 | ||
10270 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
10271 | # report actual input values of CONFIG_FILES etc. instead of their | |
10272 | # values after options handling. Logging --version etc. is OK. | |
10273 | exec 5>>config.log | |
10274 | { | |
10275 | echo | |
10276 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10277 | ## Running $as_me. ## | |
10278 | _ASBOX | |
10279 | } >&5 | |
10280 | cat >&5 <<_CSEOF | |
10281 | ||
10282 | This file was extended by $as_me, which was | |
10283 | generated by GNU Autoconf 2.59. Invocation command line was | |
10284 | ||
10285 | CONFIG_FILES = $CONFIG_FILES | |
10286 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10287 | CONFIG_LINKS = $CONFIG_LINKS | |
10288 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10289 | $ $0 $@ | |
10290 | ||
10291 | _CSEOF | |
10292 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
10293 | echo >&5 | |
10294 | _ACEOF | |
10295 | ||
10296 | # Files that config.status was made for. | |
10297 | if test -n "$ac_config_files"; then | |
10298 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
10299 | fi | |
10300 | ||
10301 | if test -n "$ac_config_headers"; then | |
10302 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
10303 | fi | |
10304 | ||
10305 | if test -n "$ac_config_links"; then | |
10306 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
10307 | fi | |
10308 | ||
10309 | if test -n "$ac_config_commands"; then | |
10310 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
10311 | fi | |
10312 | ||
10313 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10314 | ||
10315 | ac_cs_usage="\ | |
10316 | \`$as_me' instantiates files from templates according to the | |
10317 | current configuration. | |
10318 | ||
10319 | Usage: $0 [OPTIONS] [FILE]... | |
10320 | ||
10321 | -h, --help print this help, then exit | |
10322 | -V, --version print version number, then exit | |
10323 | -q, --quiet do not print progress messages | |
10324 | -d, --debug don't remove temporary files | |
10325 | --recheck update $as_me by reconfiguring in the same conditions | |
10326 | --file=FILE[:TEMPLATE] | |
10327 | instantiate the configuration file FILE | |
10328 | --header=FILE[:TEMPLATE] | |
10329 | instantiate the configuration header FILE | |
10330 | ||
10331 | Configuration files: | |
10332 | $config_files | |
10333 | ||
10334 | Configuration headers: | |
10335 | $config_headers | |
10336 | ||
10337 | Configuration commands: | |
10338 | $config_commands | |
10339 | ||
10340 | Report bugs to <bug-autoconf@gnu.org>." | |
10341 | _ACEOF | |
10342 | ||
10343 | cat >>$CONFIG_STATUS <<_ACEOF | |
10344 | ac_cs_version="\\ | |
10345 | config.status | |
10346 | configured by $0, generated by GNU Autoconf 2.59, | |
10347 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
10348 | ||
10349 | Copyright (C) 2003 Free Software Foundation, Inc. | |
10350 | This config.status script is free software; the Free Software Foundation | |
10351 | gives unlimited permission to copy, distribute and modify it." | |
10352 | srcdir=$srcdir | |
10353 | INSTALL="$INSTALL" | |
10354 | _ACEOF | |
10355 | ||
10356 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10357 | # If no file are specified by the user, then we need to provide default | |
10358 | # value. By we need to know if files were specified by the user. | |
10359 | ac_need_defaults=: | |
10360 | while test $# != 0 | |
10361 | do | |
10362 | case $1 in | |
10363 | --*=*) | |
10364 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
10365 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
10366 | ac_shift=: | |
10367 | ;; | |
10368 | -*) | |
10369 | ac_option=$1 | |
10370 | ac_optarg=$2 | |
10371 | ac_shift=shift | |
10372 | ;; | |
10373 | *) # This is not an option, so the user has probably given explicit | |
10374 | # arguments. | |
10375 | ac_option=$1 | |
10376 | ac_need_defaults=false;; | |
10377 | esac | |
10378 | ||
10379 | case $ac_option in | |
10380 | # Handling of the options. | |
10381 | _ACEOF | |
10382 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10383 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
10384 | ac_cs_recheck=: ;; | |
10385 | --version | --vers* | -V ) | |
10386 | echo "$ac_cs_version"; exit 0 ;; | |
10387 | --he | --h) | |
10388 | # Conflict between --help and --header | |
10389 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
10390 | Try \`$0 --help' for more information." >&5 | |
10391 | echo "$as_me: error: ambiguous option: $1 | |
10392 | Try \`$0 --help' for more information." >&2;} | |
10393 | { (exit 1); exit 1; }; };; | |
10394 | --help | --hel | -h ) | |
10395 | echo "$ac_cs_usage"; exit 0 ;; | |
10396 | --debug | --d* | -d ) | |
10397 | debug=: ;; | |
10398 | --file | --fil | --fi | --f ) | |
10399 | $ac_shift | |
10400 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
10401 | ac_need_defaults=false;; | |
10402 | --header | --heade | --head | --hea ) | |
10403 | $ac_shift | |
10404 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
10405 | ac_need_defaults=false;; | |
10406 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
10407 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10408 | ac_cs_silent=: ;; | |
10409 | ||
10410 | # This is an error. | |
10411 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
10412 | Try \`$0 --help' for more information." >&5 | |
10413 | echo "$as_me: error: unrecognized option: $1 | |
10414 | Try \`$0 --help' for more information." >&2;} | |
10415 | { (exit 1); exit 1; }; } ;; | |
10416 | ||
10417 | *) ac_config_targets="$ac_config_targets $1" ;; | |
10418 | ||
10419 | esac | |
10420 | shift | |
252b5132 | 10421 | done |
e5a52504 MM |
10422 | |
10423 | ac_configure_extra_args= | |
10424 | ||
10425 | if $ac_cs_silent; then | |
10426 | exec 6>/dev/null | |
10427 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
252b5132 | 10428 | fi |
252b5132 | 10429 | |
e5a52504 MM |
10430 | _ACEOF |
10431 | cat >>$CONFIG_STATUS <<_ACEOF | |
10432 | if \$ac_cs_recheck; then | |
10433 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
10434 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
10435 | fi | |
252b5132 | 10436 | |
e5a52504 MM |
10437 | _ACEOF |
10438 | ||
10439 | cat >>$CONFIG_STATUS <<_ACEOF | |
10440 | # | |
10441 | # INIT-COMMANDS section. | |
10442 | # | |
10443 | ||
10444 | ||
10445 | ||
10446 | _ACEOF | |
10447 | ||
10448 | ||
10449 | ||
10450 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10451 | for ac_config_target in $ac_config_targets | |
10452 | do | |
10453 | case "$ac_config_target" in | |
10454 | # Handling of arguments. | |
10455 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10456 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
10457 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
10458 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
10459 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
10460 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
10461 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
10462 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
10463 | { (exit 1); exit 1; }; };; | |
252b5132 | 10464 | esac |
e5a52504 MM |
10465 | done |
10466 | ||
10467 | # If the user did not use the arguments to specify the items to instantiate, | |
10468 | # then the envvar interface is used. Set only those that are not. | |
10469 | # We use the long form for the default assignment because of an extremely | |
10470 | # bizarre bug on SunOS 4.1.3. | |
10471 | if $ac_need_defaults; then | |
10472 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10473 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10474 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
10475 | fi | |
10476 | ||
10477 | # Have a temporary directory for convenience. Make it in the build tree | |
10478 | # simply because there is no reason to put it here, and in addition, | |
10479 | # creating and moving files from /tmp can sometimes cause problems. | |
10480 | # Create a temporary directory, and hook for its removal unless debugging. | |
10481 | $debug || | |
10482 | { | |
10483 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
10484 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
10485 | } | |
252b5132 | 10486 | |
e5a52504 | 10487 | # Create a (secure) tmp directory for tmp files. |
252b5132 | 10488 | |
e5a52504 MM |
10489 | { |
10490 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
10491 | test -n "$tmp" && test -d "$tmp" | |
10492 | } || | |
10493 | { | |
10494 | tmp=./confstat$$-$RANDOM | |
10495 | (umask 077 && mkdir $tmp) | |
10496 | } || | |
10497 | { | |
10498 | echo "$me: cannot create a temporary directory in ." >&2 | |
10499 | { (exit 1); exit 1; } | |
10500 | } | |
10501 | ||
10502 | _ACEOF | |
10503 | ||
10504 | cat >>$CONFIG_STATUS <<_ACEOF | |
10505 | ||
10506 | # | |
10507 | # CONFIG_FILES section. | |
10508 | # | |
10509 | ||
10510 | # No need to generate the scripts if there are no CONFIG_FILES. | |
10511 | # This happens for instance when ./config.status config.h | |
10512 | if test -n "\$CONFIG_FILES"; then | |
10513 | # Protect against being on the right side of a sed subst in config.status. | |
10514 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
10515 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
10516 | s,@SHELL@,$SHELL,;t t | |
10517 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
10518 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
10519 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
10520 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
10521 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
10522 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
10523 | s,@exec_prefix@,$exec_prefix,;t t | |
10524 | s,@prefix@,$prefix,;t t | |
10525 | s,@program_transform_name@,$program_transform_name,;t t | |
10526 | s,@bindir@,$bindir,;t t | |
10527 | s,@sbindir@,$sbindir,;t t | |
10528 | s,@libexecdir@,$libexecdir,;t t | |
10529 | s,@datadir@,$datadir,;t t | |
10530 | s,@sysconfdir@,$sysconfdir,;t t | |
10531 | s,@sharedstatedir@,$sharedstatedir,;t t | |
10532 | s,@localstatedir@,$localstatedir,;t t | |
10533 | s,@libdir@,$libdir,;t t | |
10534 | s,@includedir@,$includedir,;t t | |
10535 | s,@oldincludedir@,$oldincludedir,;t t | |
10536 | s,@infodir@,$infodir,;t t | |
10537 | s,@mandir@,$mandir,;t t | |
10538 | s,@build_alias@,$build_alias,;t t | |
10539 | s,@host_alias@,$host_alias,;t t | |
10540 | s,@target_alias@,$target_alias,;t t | |
10541 | s,@DEFS@,$DEFS,;t t | |
10542 | s,@ECHO_C@,$ECHO_C,;t t | |
10543 | s,@ECHO_N@,$ECHO_N,;t t | |
10544 | s,@ECHO_T@,$ECHO_T,;t t | |
10545 | s,@LIBS@,$LIBS,;t t | |
10546 | s,@build@,$build,;t t | |
10547 | s,@build_cpu@,$build_cpu,;t t | |
10548 | s,@build_vendor@,$build_vendor,;t t | |
10549 | s,@build_os@,$build_os,;t t | |
10550 | s,@host@,$host,;t t | |
10551 | s,@host_cpu@,$host_cpu,;t t | |
10552 | s,@host_vendor@,$host_vendor,;t t | |
10553 | s,@host_os@,$host_os,;t t | |
10554 | s,@target@,$target,;t t | |
10555 | s,@target_cpu@,$target_cpu,;t t | |
10556 | s,@target_vendor@,$target_vendor,;t t | |
10557 | s,@target_os@,$target_os,;t t | |
10558 | s,@CC@,$CC,;t t | |
10559 | s,@CFLAGS@,$CFLAGS,;t t | |
10560 | s,@LDFLAGS@,$LDFLAGS,;t t | |
10561 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
10562 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
10563 | s,@EXEEXT@,$EXEEXT,;t t | |
10564 | s,@OBJEXT@,$OBJEXT,;t t | |
10565 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
10566 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
10567 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
10568 | s,@PACKAGE@,$PACKAGE,;t t | |
10569 | s,@VERSION@,$VERSION,;t t | |
10570 | s,@ACLOCAL@,$ACLOCAL,;t t | |
10571 | s,@AUTOCONF@,$AUTOCONF,;t t | |
10572 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
10573 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
10574 | s,@MAKEINFO@,$MAKEINFO,;t t | |
10575 | s,@SET_MAKE@,$SET_MAKE,;t t | |
10576 | s,@LN_S@,$LN_S,;t t | |
10577 | s,@RANLIB@,$RANLIB,;t t | |
10578 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
10579 | s,@STRIP@,$STRIP,;t t | |
10580 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
10581 | s,@LIBTOOL@,$LIBTOOL,;t t | |
10582 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
10583 | s,@YACC@,$YACC,;t t | |
10584 | s,@LEX@,$LEX,;t t | |
10585 | s,@LEXLIB@,$LEXLIB,;t t | |
10586 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
10587 | s,@CPP@,$CPP,;t t | |
10588 | s,@EGREP@,$EGREP,;t t | |
10589 | s,@ALLOCA@,$ALLOCA,;t t | |
10590 | s,@USE_NLS@,$USE_NLS,;t t | |
10591 | s,@MSGFMT@,$MSGFMT,;t t | |
10592 | s,@GMSGFMT@,$GMSGFMT,;t t | |
10593 | s,@XGETTEXT@,$XGETTEXT,;t t | |
10594 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
10595 | s,@CATALOGS@,$CATALOGS,;t t | |
10596 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
10597 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
10598 | s,@GMOFILES@,$GMOFILES,;t t | |
10599 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
10600 | s,@INTLDEPS@,$INTLDEPS,;t t | |
10601 | s,@INTLLIBS@,$INTLLIBS,;t t | |
10602 | s,@INTLOBJS@,$INTLOBJS,;t t | |
10603 | s,@POFILES@,$POFILES,;t t | |
10604 | s,@POSUB@,$POSUB,;t t | |
10605 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
10606 | s,@GT_NO@,$GT_NO,;t t | |
10607 | s,@GT_YES@,$GT_YES,;t t | |
10608 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
10609 | s,@l@,$l,;t t | |
10610 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
10611 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
10612 | s,@MAINT@,$MAINT,;t t | |
10613 | s,@HDEFINES@,$HDEFINES,;t t | |
10614 | s,@AR@,$AR,;t t | |
10615 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
10616 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
10617 | s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t | |
10618 | s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t | |
10619 | s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t | |
10620 | s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t | |
10621 | s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t | |
10622 | s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t | |
10623 | s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t | |
10624 | s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t | |
10625 | s,@BUILD_MISC@,$BUILD_MISC,;t t | |
10626 | s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t | |
10627 | s,@EMULATION@,$EMULATION,;t t | |
10628 | s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t | |
10629 | s,@LIBOBJS@,$LIBOBJS,;t t | |
10630 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
10631 | CEOF | |
10632 | ||
10633 | _ACEOF | |
10634 | ||
10635 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10636 | # Split the substitutions into bite-sized pieces for seds with | |
10637 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
10638 | ac_max_sed_lines=48 | |
10639 | ac_sed_frag=1 # Number of current file. | |
10640 | ac_beg=1 # First line for current file. | |
10641 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
10642 | ac_more_lines=: | |
10643 | ac_sed_cmds= | |
10644 | while $ac_more_lines; do | |
10645 | if test $ac_beg -gt 1; then | |
10646 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
10647 | else | |
10648 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
10649 | fi | |
10650 | if test ! -s $tmp/subs.frag; then | |
10651 | ac_more_lines=false | |
10652 | else | |
10653 | # The purpose of the label and of the branching condition is to | |
10654 | # speed up the sed processing (if there are no `@' at all, there | |
10655 | # is no need to browse any of the substitutions). | |
10656 | # These are the two extra sed commands mentioned above. | |
10657 | (echo ':t | |
10658 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
10659 | if test -z "$ac_sed_cmds"; then | |
10660 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
10661 | else | |
10662 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
10663 | fi | |
10664 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
10665 | ac_beg=$ac_end | |
10666 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
10667 | fi | |
10668 | done | |
10669 | if test -z "$ac_sed_cmds"; then | |
10670 | ac_sed_cmds=cat | |
252b5132 | 10671 | fi |
e5a52504 | 10672 | fi # test -n "$CONFIG_FILES" |
252b5132 | 10673 | |
e5a52504 MM |
10674 | _ACEOF |
10675 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10676 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
10677 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
10678 | case $ac_file in | |
10679 | - | *:- | *:-:* ) # input from stdin | |
10680 | cat >$tmp/stdin | |
10681 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10682 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
10683 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10684 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
10685 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
10686 | esac |
10687 | ||
e5a52504 MM |
10688 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
10689 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
10690 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10691 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10692 | X"$ac_file" : 'X\(//\)$' \| \ | |
10693 | X"$ac_file" : 'X\(/\)' \| \ | |
10694 | . : '\(.\)' 2>/dev/null || | |
10695 | echo X"$ac_file" | | |
10696 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
10697 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
10698 | /^X\(\/\/\)$/{ s//\1/; q; } | |
10699 | /^X\(\/\).*/{ s//\1/; q; } | |
10700 | s/.*/./; q'` | |
10701 | { if $as_mkdir_p; then | |
10702 | mkdir -p "$ac_dir" | |
10703 | else | |
10704 | as_dir="$ac_dir" | |
10705 | as_dirs= | |
10706 | while test ! -d "$as_dir"; do | |
10707 | as_dirs="$as_dir $as_dirs" | |
10708 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
10709 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10710 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10711 | X"$as_dir" : 'X\(//\)$' \| \ | |
10712 | X"$as_dir" : 'X\(/\)' \| \ | |
10713 | . : '\(.\)' 2>/dev/null || | |
10714 | echo X"$as_dir" | | |
10715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
10716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
10717 | /^X\(\/\/\)$/{ s//\1/; q; } | |
10718 | /^X\(\/\).*/{ s//\1/; q; } | |
10719 | s/.*/./; q'` | |
10720 | done | |
10721 | test ! -n "$as_dirs" || mkdir $as_dirs | |
10722 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
10723 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
10724 | { (exit 1); exit 1; }; }; } | |
10725 | ||
10726 | ac_builddir=. | |
10727 | ||
10728 | if test "$ac_dir" != .; then | |
10729 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
10730 | # A "../" for each directory in $ac_dir_suffix. | |
10731 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
10732 | else | |
10733 | ac_dir_suffix= ac_top_builddir= | |
10734 | fi | |
10735 | ||
10736 | case $srcdir in | |
10737 | .) # No --srcdir option. We are building in place. | |
10738 | ac_srcdir=. | |
10739 | if test -z "$ac_top_builddir"; then | |
10740 | ac_top_srcdir=. | |
10741 | else | |
10742 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
10743 | fi ;; | |
10744 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
10745 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10746 | ac_top_srcdir=$srcdir ;; | |
10747 | *) # Relative path. | |
10748 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
10749 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
10750 | esac | |
10751 | ||
10752 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
10753 | # the directories may not exist. | |
10754 | case `pwd` in | |
10755 | .) ac_abs_builddir="$ac_dir";; | |
10756 | *) | |
10757 | case "$ac_dir" in | |
10758 | .) ac_abs_builddir=`pwd`;; | |
10759 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
10760 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
10761 | esac;; | |
10762 | esac | |
10763 | case $ac_abs_builddir in | |
10764 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
10765 | *) | |
10766 | case ${ac_top_builddir}. in | |
10767 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
10768 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
10769 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
10770 | esac;; | |
10771 | esac | |
10772 | case $ac_abs_builddir in | |
10773 | .) ac_abs_srcdir=$ac_srcdir;; | |
10774 | *) | |
10775 | case $ac_srcdir in | |
10776 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
10777 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
10778 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
10779 | esac;; | |
10780 | esac | |
10781 | case $ac_abs_builddir in | |
10782 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
10783 | *) | |
10784 | case $ac_top_srcdir in | |
10785 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
10786 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
10787 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
10788 | esac;; | |
10789 | esac | |
252b5132 | 10790 | |
e5a52504 MM |
10791 | |
10792 | case $INSTALL in | |
10793 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
10794 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
252b5132 RH |
10795 | esac |
10796 | ||
e5a52504 MM |
10797 | if test x"$ac_file" != x-; then |
10798 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
10799 | echo "$as_me: creating $ac_file" >&6;} | |
10800 | rm -f "$ac_file" | |
10801 | fi | |
10802 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10803 | # use $as_me), people would be surprised to read: | |
10804 | # /* config.h. Generated by config.status. */ | |
10805 | if test x"$ac_file" = x-; then | |
10806 | configure_input= | |
10807 | else | |
10808 | configure_input="$ac_file. " | |
10809 | fi | |
10810 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
10811 | sed 's,.*/,,'` by configure." | |
10812 | ||
10813 | # First look for the input files in the build tree, otherwise in the | |
10814 | # src tree. | |
10815 | ac_file_inputs=`IFS=: | |
10816 | for f in $ac_file_in; do | |
10817 | case $f in | |
10818 | -) echo $tmp/stdin ;; | |
10819 | [\\/$]*) | |
10820 | # Absolute (can't be DOS-style, as IFS=:) | |
10821 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
10822 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
10823 | { (exit 1); exit 1; }; } | |
10824 | echo "$f";; | |
10825 | *) # Relative | |
10826 | if test -f "$f"; then | |
10827 | # Build tree | |
10828 | echo "$f" | |
10829 | elif test -f "$srcdir/$f"; then | |
10830 | # Source tree | |
10831 | echo "$srcdir/$f" | |
10832 | else | |
10833 | # /dev/null tree | |
10834 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
10835 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
10836 | { (exit 1); exit 1; }; } | |
10837 | fi;; | |
10838 | esac | |
10839 | done` || { (exit 1); exit 1; } | |
10840 | _ACEOF | |
10841 | cat >>$CONFIG_STATUS <<_ACEOF | |
10842 | sed "$ac_vpsub | |
10843 | $extrasub | |
10844 | _ACEOF | |
10845 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10846 | :t | |
10847 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
10848 | s,@configure_input@,$configure_input,;t t | |
10849 | s,@srcdir@,$ac_srcdir,;t t | |
10850 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
10851 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
10852 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
10853 | s,@builddir@,$ac_builddir,;t t | |
10854 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
10855 | s,@top_builddir@,$ac_top_builddir,;t t | |
10856 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
10857 | s,@INSTALL@,$ac_INSTALL,;t t | |
10858 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
10859 | rm -f $tmp/stdin | |
10860 | if test x"$ac_file" != x-; then | |
10861 | mv $tmp/out $ac_file | |
10862 | else | |
10863 | cat $tmp/out | |
10864 | rm -f $tmp/out | |
10865 | fi | |
10866 | ||
10867 | done | |
10868 | _ACEOF | |
10869 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10870 | ||
10871 | # | |
10872 | # CONFIG_HEADER section. | |
10873 | # | |
252b5132 RH |
10874 | |
10875 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
10876 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
10877 | # | |
10878 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e5a52504 MM |
10879 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
10880 | ac_dB='[ ].*$,\1#\2' | |
10881 | ac_dC=' ' | |
10882 | ac_dD=',;t' | |
10883 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
10884 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
10885 | ac_uB='$,\1#\2define\3' | |
252b5132 | 10886 | ac_uC=' ' |
e5a52504 MM |
10887 | ac_uD=',;t' |
10888 | ||
10889 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 10890 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e5a52504 MM |
10891 | case $ac_file in |
10892 | - | *:- | *:-:* ) # input from stdin | |
10893 | cat >$tmp/stdin | |
10894 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10895 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
10896 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10897 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
10898 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
10899 | esac |
10900 | ||
e5a52504 MM |
10901 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
10902 | echo "$as_me: creating $ac_file" >&6;} | |
10903 | ||
10904 | # First look for the input files in the build tree, otherwise in the | |
10905 | # src tree. | |
10906 | ac_file_inputs=`IFS=: | |
10907 | for f in $ac_file_in; do | |
10908 | case $f in | |
10909 | -) echo $tmp/stdin ;; | |
10910 | [\\/$]*) | |
10911 | # Absolute (can't be DOS-style, as IFS=:) | |
10912 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
10913 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
10914 | { (exit 1); exit 1; }; } | |
10915 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
10916 | echo "$f";; | |
10917 | *) # Relative | |
10918 | if test -f "$f"; then | |
10919 | # Build tree | |
10920 | echo "$f" | |
10921 | elif test -f "$srcdir/$f"; then | |
10922 | # Source tree | |
10923 | echo "$srcdir/$f" | |
10924 | else | |
10925 | # /dev/null tree | |
10926 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
10927 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
10928 | { (exit 1); exit 1; }; } | |
10929 | fi;; | |
10930 | esac | |
10931 | done` || { (exit 1); exit 1; } | |
10932 | # Remove the trailing spaces. | |
10933 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
10934 | ||
10935 | _ACEOF | |
10936 | ||
10937 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
10938 | # `conftest.undefs', that substitutes the proper values into | |
10939 | # config.h.in to produce config.h. The first handles `#define' | |
10940 | # templates, and the second `#undef' templates. | |
10941 | # And first: Protect against being on the right side of a sed subst in | |
10942 | # config.status. Protect against being in an unquoted here document | |
10943 | # in config.status. | |
10944 | rm -f conftest.defines conftest.undefs | |
10945 | # Using a here document instead of a string reduces the quoting nightmare. | |
10946 | # Putting comments in sed scripts is not portable. | |
10947 | # | |
10948 | # `end' is used to avoid that the second main sed command (meant for | |
10949 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
10950 | # See the Autoconf documentation for `clear'. | |
10951 | cat >confdef2sed.sed <<\_ACEOF | |
10952 | s/[\\&,]/\\&/g | |
10953 | s,[\\$`],\\&,g | |
10954 | t clear | |
10955 | : clear | |
10956 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
10957 | t end | |
10958 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
10959 | : end | |
10960 | _ACEOF | |
10961 | # If some macros were called several times there might be several times | |
10962 | # the same #defines, which is useless. Nevertheless, we may not want to | |
10963 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
10964 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
10965 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
10966 | rm -f confdef2sed.sed | |
252b5132 RH |
10967 | |
10968 | # This sed command replaces #undef with comments. This is necessary, for | |
10969 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
10970 | # on some systems where configure will not decide to define it. | |
e5a52504 MM |
10971 | cat >>conftest.undefs <<\_ACEOF |
10972 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
10973 | _ACEOF | |
10974 | ||
10975 | # Break up conftest.defines because some shells have a limit on the size | |
10976 | # of here documents, and old seds have small limits too (100 cmds). | |
10977 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
10978 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
10979 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
10980 | echo ' :' >>$CONFIG_STATUS | |
10981 | rm -f conftest.tail | |
10982 | while grep . conftest.defines >/dev/null | |
10983 | do | |
10984 | # Write a limited-size here document to $tmp/defines.sed. | |
10985 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
10986 | # Speed up: don't consider the non `#define' lines. | |
10987 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
10988 | # Work around the forget-to-reset-the-flag bug. | |
10989 | echo 't clr' >>$CONFIG_STATUS | |
10990 | echo ': clr' >>$CONFIG_STATUS | |
10991 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
10992 | echo 'CEOF | |
10993 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
10994 | rm -f $tmp/in | |
10995 | mv $tmp/out $tmp/in | |
10996 | ' >>$CONFIG_STATUS | |
10997 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
10998 | rm -f conftest.defines | |
10999 | mv conftest.tail conftest.defines | |
11000 | done | |
11001 | rm -f conftest.defines | |
11002 | echo ' fi # grep' >>$CONFIG_STATUS | |
11003 | echo >>$CONFIG_STATUS | |
252b5132 | 11004 | |
e5a52504 MM |
11005 | # Break up conftest.undefs because some shells have a limit on the size |
11006 | # of here documents, and old seds have small limits too (100 cmds). | |
11007 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 11008 | rm -f conftest.tail |
e5a52504 | 11009 | while grep . conftest.undefs >/dev/null |
252b5132 | 11010 | do |
e5a52504 MM |
11011 | # Write a limited-size here document to $tmp/undefs.sed. |
11012 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
11013 | # Speed up: don't consider the non `#undef' | |
11014 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
11015 | # Work around the forget-to-reset-the-flag bug. | |
11016 | echo 't clr' >>$CONFIG_STATUS | |
11017 | echo ': clr' >>$CONFIG_STATUS | |
11018 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 11019 | echo 'CEOF |
e5a52504 MM |
11020 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
11021 | rm -f $tmp/in | |
11022 | mv $tmp/out $tmp/in | |
11023 | ' >>$CONFIG_STATUS | |
11024 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
11025 | rm -f conftest.undefs | |
11026 | mv conftest.tail conftest.undefs | |
252b5132 | 11027 | done |
e5a52504 MM |
11028 | rm -f conftest.undefs |
11029 | ||
11030 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11031 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11032 | # use $as_me), people would be surprised to read: | |
11033 | # /* config.h. Generated by config.status. */ | |
11034 | if test x"$ac_file" = x-; then | |
11035 | echo "/* Generated by configure. */" >$tmp/config.h | |
252b5132 | 11036 | else |
e5a52504 MM |
11037 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
11038 | fi | |
11039 | cat $tmp/in >>$tmp/config.h | |
11040 | rm -f $tmp/in | |
11041 | if test x"$ac_file" != x-; then | |
11042 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
11043 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
11044 | echo "$as_me: $ac_file is unchanged" >&6;} | |
11045 | else | |
11046 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11047 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11048 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11049 | X"$ac_file" : 'X\(//\)$' \| \ | |
11050 | X"$ac_file" : 'X\(/\)' \| \ | |
11051 | . : '\(.\)' 2>/dev/null || | |
11052 | echo X"$ac_file" | | |
11053 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11054 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11055 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11056 | /^X\(\/\).*/{ s//\1/; q; } | |
11057 | s/.*/./; q'` | |
11058 | { if $as_mkdir_p; then | |
11059 | mkdir -p "$ac_dir" | |
11060 | else | |
11061 | as_dir="$ac_dir" | |
11062 | as_dirs= | |
11063 | while test ! -d "$as_dir"; do | |
11064 | as_dirs="$as_dir $as_dirs" | |
11065 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11066 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11067 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11068 | X"$as_dir" : 'X\(//\)$' \| \ | |
11069 | X"$as_dir" : 'X\(/\)' \| \ | |
11070 | . : '\(.\)' 2>/dev/null || | |
11071 | echo X"$as_dir" | | |
11072 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11073 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11074 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11075 | /^X\(\/\).*/{ s//\1/; q; } | |
11076 | s/.*/./; q'` | |
11077 | done | |
11078 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11079 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11080 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11081 | { (exit 1); exit 1; }; }; } | |
11082 | ||
11083 | rm -f $ac_file | |
11084 | mv $tmp/config.h $ac_file | |
252b5132 | 11085 | fi |
e5a52504 MM |
11086 | else |
11087 | cat $tmp/config.h | |
11088 | rm -f $tmp/config.h | |
252b5132 | 11089 | fi |
e5a52504 MM |
11090 | done |
11091 | _ACEOF | |
11092 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 11093 | |
e5a52504 MM |
11094 | # |
11095 | # CONFIG_COMMANDS section. | |
11096 | # | |
11097 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
11098 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
11099 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11100 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
11101 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11102 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
11103 | X"$ac_dest" : 'X\(//\)$' \| \ | |
11104 | X"$ac_dest" : 'X\(/\)' \| \ | |
11105 | . : '\(.\)' 2>/dev/null || | |
11106 | echo X"$ac_dest" | | |
11107 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11108 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11109 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11110 | /^X\(\/\).*/{ s//\1/; q; } | |
11111 | s/.*/./; q'` | |
11112 | { if $as_mkdir_p; then | |
11113 | mkdir -p "$ac_dir" | |
11114 | else | |
11115 | as_dir="$ac_dir" | |
11116 | as_dirs= | |
11117 | while test ! -d "$as_dir"; do | |
11118 | as_dirs="$as_dir $as_dirs" | |
11119 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11120 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11121 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11122 | X"$as_dir" : 'X\(//\)$' \| \ | |
11123 | X"$as_dir" : 'X\(/\)' \| \ | |
11124 | . : '\(.\)' 2>/dev/null || | |
11125 | echo X"$as_dir" | | |
11126 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11127 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11128 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11129 | /^X\(\/\).*/{ s//\1/; q; } | |
11130 | s/.*/./; q'` | |
11131 | done | |
11132 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11133 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11134 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11135 | { (exit 1); exit 1; }; }; } | |
252b5132 | 11136 | |
e5a52504 | 11137 | ac_builddir=. |
252b5132 | 11138 | |
e5a52504 MM |
11139 | if test "$ac_dir" != .; then |
11140 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11141 | # A "../" for each directory in $ac_dir_suffix. | |
11142 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11143 | else | |
11144 | ac_dir_suffix= ac_top_builddir= | |
11145 | fi | |
11146 | ||
11147 | case $srcdir in | |
11148 | .) # No --srcdir option. We are building in place. | |
11149 | ac_srcdir=. | |
11150 | if test -z "$ac_top_builddir"; then | |
11151 | ac_top_srcdir=. | |
11152 | else | |
11153 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11154 | fi ;; | |
11155 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11156 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11157 | ac_top_srcdir=$srcdir ;; | |
11158 | *) # Relative path. | |
11159 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
11160 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11161 | esac | |
252b5132 | 11162 | |
e5a52504 MM |
11163 | # Do not use `cd foo && pwd` to compute absolute paths, because |
11164 | # the directories may not exist. | |
11165 | case `pwd` in | |
11166 | .) ac_abs_builddir="$ac_dir";; | |
11167 | *) | |
11168 | case "$ac_dir" in | |
11169 | .) ac_abs_builddir=`pwd`;; | |
11170 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11171 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11172 | esac;; | |
11173 | esac | |
11174 | case $ac_abs_builddir in | |
11175 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11176 | *) | |
11177 | case ${ac_top_builddir}. in | |
11178 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11179 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11180 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11181 | esac;; | |
11182 | esac | |
11183 | case $ac_abs_builddir in | |
11184 | .) ac_abs_srcdir=$ac_srcdir;; | |
11185 | *) | |
11186 | case $ac_srcdir in | |
11187 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11188 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11189 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11190 | esac;; | |
11191 | esac | |
11192 | case $ac_abs_builddir in | |
11193 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11194 | *) | |
11195 | case $ac_top_srcdir in | |
11196 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11197 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11198 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11199 | esac;; | |
11200 | esac | |
11201 | ||
11202 | ||
11203 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
11204 | echo "$as_me: executing $ac_dest commands" >&6;} | |
11205 | case $ac_dest in | |
11206 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; | |
11207 | default ) | |
252b5132 RH |
11208 | case "x$CONFIG_FILES" in |
11209 | *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;; | |
11210 | esac | |
e5a52504 MM |
11211 | ;; |
11212 | esac | |
11213 | done | |
11214 | _ACEOF | |
252b5132 | 11215 | |
e5a52504 MM |
11216 | cat >>$CONFIG_STATUS <<\_ACEOF |
11217 | ||
11218 | { (exit 0); exit 0; } | |
11219 | _ACEOF | |
252b5132 | 11220 | chmod +x $CONFIG_STATUS |
e5a52504 MM |
11221 | ac_clean_files=$ac_clean_files_save |
11222 | ||
11223 | ||
11224 | # configure is writing to config.log, and then calls config.status. | |
11225 | # config.status does its own redirection, appending to config.log. | |
11226 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11227 | # by configure, so config.status won't be able to write to it; its | |
11228 | # output is simply discarded. So we exec the FD to /dev/null, | |
11229 | # effectively closing config.log, so it can be properly (re)opened and | |
11230 | # appended to by config.status. When coming back to configure, we | |
11231 | # need to make the FD available again. | |
11232 | if test "$no_create" != yes; then | |
11233 | ac_cs_success=: | |
11234 | ac_config_status_args= | |
11235 | test "$silent" = yes && | |
11236 | ac_config_status_args="$ac_config_status_args --quiet" | |
11237 | exec 5>/dev/null | |
11238 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11239 | exec 5>>config.log | |
11240 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11241 | # would make configure fail if this is the last instruction. | |
11242 | $ac_cs_success || { (exit 1); exit 1; } | |
11243 | fi | |
252b5132 | 11244 |