]>
Commit | Line | Data |
---|---|---|
dfac8a13 | 1 | #! /bin/sh |
dfac8a13 | 2 | # Guess values for system-dependent variables and create Makefiles. |
a8aea176 | 3 | # Generated by GNU Autoconf 2.59. |
c45f211e | 4 | # |
a8aea176 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
dfac8a13 TT |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
a8aea176 NN |
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 | } | |
dfac8a13 | 185 | |
a8aea176 NN |
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` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
dfac8a13 | 254 | ac_default_prefix=/usr/local |
a8aea176 NN |
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="zlib.h" | |
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 | ||
17210dff | 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL CPP CPPFLAGS EGREP target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS' |
a8aea176 | 313 | ac_subst_files='' |
dfac8a13 TT |
314 | |
315 | # Initialize some variables set by options. | |
a8aea176 NN |
316 | ac_init_help= |
317 | ac_init_version=false | |
dfac8a13 TT |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
a8aea176 | 320 | cache_file=/dev/null |
dfac8a13 | 321 | exec_prefix=NONE |
dfac8a13 | 322 | no_create= |
dfac8a13 TT |
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= | |
dfac8a13 TT |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
a8aea176 NN |
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. | |
dfac8a13 TT |
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 | ||
dfac8a13 TT |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
dfac8a13 TT |
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 | ||
a8aea176 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
dfac8a13 TT |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
a8aea176 | 367 | case $ac_option in |
dfac8a13 TT |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a8aea176 | 372 | bindir=$ac_optarg ;; |
dfac8a13 TT |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
a8aea176 | 375 | ac_prev=build_alias ;; |
dfac8a13 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a8aea176 | 377 | build_alias=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 NN |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
dfac8a13 TT |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
a8aea176 | 393 | datadir=$ac_optarg ;; |
dfac8a13 TT |
394 | |
395 | -disable-* | --disable-*) | |
a8aea176 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
dfac8a13 | 397 | # Reject names that are not valid shell variable names. |
a8aea176 NN |
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" ;; | |
dfac8a13 TT |
403 | |
404 | -enable-* | --enable-*) | |
a8aea176 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
dfac8a13 | 406 | # Reject names that are not valid shell variable names. |
a8aea176 NN |
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"`;; | |
dfac8a13 TT |
413 | *) ac_optarg=yes ;; |
414 | esac | |
a8aea176 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 424 | exec_prefix=$ac_optarg ;; |
dfac8a13 TT |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
a8aea176 NN |
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 ;; | |
dfac8a13 TT |
436 | |
437 | -host | --host | --hos | --ho) | |
a8aea176 | 438 | ac_prev=host_alias ;; |
dfac8a13 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
a8aea176 | 440 | host_alias=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 447 | includedir=$ac_optarg ;; |
dfac8a13 TT |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a8aea176 | 452 | infodir=$ac_optarg ;; |
dfac8a13 TT |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a8aea176 | 457 | libdir=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 464 | libexecdir=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 473 | localstatedir=$ac_optarg ;; |
dfac8a13 TT |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a8aea176 | 478 | mandir=$ac_optarg ;; |
dfac8a13 TT |
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 \ | |
a8aea176 | 485 | | --no-cr | --no-c | -n) |
dfac8a13 TT |
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=*) | |
a8aea176 | 499 | oldincludedir=$ac_optarg ;; |
dfac8a13 TT |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a8aea176 | 504 | prefix=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 511 | program_prefix=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 518 | program_suffix=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 535 | program_transform_name=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 545 | sbindir=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 556 | sharedstatedir=$ac_optarg ;; |
dfac8a13 TT |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
a8aea176 | 561 | site=$ac_optarg ;; |
dfac8a13 TT |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a8aea176 | 566 | srcdir=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 573 | sysconfdir=$ac_optarg ;; |
dfac8a13 TT |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a8aea176 | 576 | ac_prev=target_alias ;; |
dfac8a13 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a8aea176 | 578 | target_alias=$ac_optarg ;; |
dfac8a13 TT |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
a8aea176 NN |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
dfac8a13 TT |
585 | |
586 | -with-* | --with-*) | |
a8aea176 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
dfac8a13 | 588 | # Reject names that are not valid shell variable names. |
a8aea176 NN |
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; }; } | |
dfac8a13 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a8aea176 NN |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
dfac8a13 TT |
595 | *) ac_optarg=yes ;; |
596 | esac | |
a8aea176 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
dfac8a13 TT |
598 | |
599 | -without-* | --without-*) | |
a8aea176 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
dfac8a13 | 601 | # Reject names that are not valid shell variable names. |
a8aea176 NN |
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" ;; | |
dfac8a13 TT |
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=*) | |
a8aea176 | 617 | x_includes=$ac_optarg ;; |
dfac8a13 TT |
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=*) | |
a8aea176 | 624 | x_libraries=$ac_optarg ;; |
dfac8a13 | 625 | |
a8aea176 NN |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
dfac8a13 TT |
629 | ;; |
630 | ||
a8aea176 NN |
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 | ||
dfac8a13 | 641 | *) |
a8aea176 NN |
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} | |
dfac8a13 TT |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
a8aea176 NN |
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; }; } | |
dfac8a13 | 656 | fi |
dfac8a13 | 657 | |
a8aea176 NN |
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 | |
dfac8a13 | 668 | |
a8aea176 NN |
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 | |
c45f211e | 672 | do |
a8aea176 NN |
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; }; };; | |
dfac8a13 TT |
678 | esac |
679 | done | |
680 | ||
a8aea176 NN |
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 | |
dfac8a13 | 698 | |
a8aea176 NN |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
dfac8a13 | 703 | |
dfac8a13 TT |
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. | |
a8aea176 NN |
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'` | |
dfac8a13 TT |
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 | |
a8aea176 NN |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
dfac8a13 | 732 | else |
a8aea176 NN |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
dfac8a13 TT |
735 | fi |
736 | fi | |
a8aea176 NN |
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 | |
a8aea176 NN |
753 | ac_env_CPP_set=${CPP+set} |
754 | ac_env_CPP_value=$CPP | |
755 | ac_cv_env_CPP_set=${CPP+set} | |
756 | ac_cv_env_CPP_value=$CPP | |
076e5443 PB |
757 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
758 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
759 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
760 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
a8aea176 NN |
761 | |
762 | # | |
763 | # Report the --help message. | |
764 | # | |
765 | if test "$ac_init_help" = "long"; then | |
766 | # Omit some internal or obsolete options to make the list less imposing. | |
767 | # This message is too long to be a string in the A/UX 3.1 sh. | |
768 | cat <<_ACEOF | |
769 | \`configure' configures this package to adapt to many kinds of systems. | |
770 | ||
771 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
772 | ||
773 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
774 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
775 | ||
776 | Defaults for the options are specified in brackets. | |
777 | ||
778 | Configuration: | |
779 | -h, --help display this help and exit | |
780 | --help=short display options specific to this package | |
781 | --help=recursive display the short help of all the included packages | |
782 | -V, --version display version information and exit | |
783 | -q, --quiet, --silent do not print \`checking...' messages | |
784 | --cache-file=FILE cache test results in FILE [disabled] | |
785 | -C, --config-cache alias for \`--cache-file=config.cache' | |
786 | -n, --no-create do not create output files | |
787 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
788 | ||
789 | _ACEOF | |
790 | ||
791 | cat <<_ACEOF | |
792 | Installation directories: | |
793 | --prefix=PREFIX install architecture-independent files in PREFIX | |
794 | [$ac_default_prefix] | |
795 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
796 | [PREFIX] | |
797 | ||
798 | By default, \`make install' will install all the files in | |
799 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
800 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
801 | for instance \`--prefix=\$HOME'. | |
802 | ||
803 | For better control, use the options below. | |
804 | ||
805 | Fine tuning of the installation directories: | |
806 | --bindir=DIR user executables [EPREFIX/bin] | |
807 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
808 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
809 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
810 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
811 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
812 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
813 | --libdir=DIR object code libraries [EPREFIX/lib] | |
814 | --includedir=DIR C header files [PREFIX/include] | |
815 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
816 | --infodir=DIR info documentation [PREFIX/info] | |
817 | --mandir=DIR man documentation [PREFIX/man] | |
818 | _ACEOF | |
819 | ||
820 | cat <<\_ACEOF | |
821 | ||
822 | Program names: | |
823 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
824 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
825 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
826 | ||
827 | System types: | |
828 | --build=BUILD configure for building on BUILD [guessed] | |
829 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
830 | --target=TARGET configure for building compilers for TARGET [HOST] | |
831 | _ACEOF | |
832 | fi | |
833 | ||
834 | if test -n "$ac_init_help"; then | |
835 | ||
836 | cat <<\_ACEOF | |
837 | ||
838 | Optional Features: | |
839 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
840 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
a8aea176 | 841 | --enable-multilib build many library versions (default) |
076e5443 PB |
842 | --enable-maintainer-mode enable make rules and dependencies not useful |
843 | (and sometimes confusing) to the casual installer | |
844 | --disable-dependency-tracking speeds up one-time build | |
845 | --enable-dependency-tracking do not reject slow dependency extractors | |
a8aea176 NN |
846 | --enable-shared=PKGS build shared libraries default=yes |
847 | --enable-static=PKGS build static libraries default=yes | |
848 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
849 | --disable-libtool-lock avoid locking (might break parallel builds) | |
850 | ||
851 | Optional Packages: | |
852 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
853 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
854 | --with-target-subdir=SUBDIR | |
855 | configuring in a subdirectory | |
856 | --with-cross-host=HOST configuring with a cross compiler | |
857 | --with-system-zlib use installed libz | |
858 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
859 | --with-pic try to use only PIC/non-PIC objects default=use both | |
860 | ||
861 | Some influential environment variables: | |
862 | CC C compiler command | |
863 | CFLAGS C compiler flags | |
864 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
865 | nonstandard directory <lib dir> | |
866 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
867 | headers in a nonstandard directory <include dir> | |
868 | CPP C preprocessor | |
869 | ||
870 | Use these variables to override the choices made by `configure' or to help | |
871 | it to find libraries and programs with nonstandard names/locations. | |
872 | ||
873 | _ACEOF | |
874 | fi | |
875 | ||
876 | if test "$ac_init_help" = "recursive"; then | |
877 | # If there are subdirs, report their specific --help. | |
878 | ac_popdir=`pwd` | |
879 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
880 | test -d $ac_dir || continue | |
881 | ac_builddir=. | |
882 | ||
883 | if test "$ac_dir" != .; then | |
884 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
885 | # A "../" for each directory in $ac_dir_suffix. | |
886 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
887 | else | |
888 | ac_dir_suffix= ac_top_builddir= | |
889 | fi | |
890 | ||
891 | case $srcdir in | |
892 | .) # No --srcdir option. We are building in place. | |
893 | ac_srcdir=. | |
894 | if test -z "$ac_top_builddir"; then | |
895 | ac_top_srcdir=. | |
896 | else | |
897 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
898 | fi ;; | |
899 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
900 | ac_srcdir=$srcdir$ac_dir_suffix; | |
901 | ac_top_srcdir=$srcdir ;; | |
902 | *) # Relative path. | |
903 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
904 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
905 | esac | |
906 | ||
907 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
908 | # the directories may not exist. | |
909 | case `pwd` in | |
910 | .) ac_abs_builddir="$ac_dir";; | |
911 | *) | |
912 | case "$ac_dir" in | |
913 | .) ac_abs_builddir=`pwd`;; | |
914 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
915 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
916 | esac;; | |
917 | esac | |
918 | case $ac_abs_builddir in | |
919 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
920 | *) | |
921 | case ${ac_top_builddir}. in | |
922 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
923 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
924 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
925 | esac;; | |
926 | esac | |
927 | case $ac_abs_builddir in | |
928 | .) ac_abs_srcdir=$ac_srcdir;; | |
929 | *) | |
930 | case $ac_srcdir in | |
931 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
932 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
933 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
934 | esac;; | |
935 | esac | |
936 | case $ac_abs_builddir in | |
937 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
938 | *) | |
939 | case $ac_top_srcdir in | |
940 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
941 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
942 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
943 | esac;; | |
944 | esac | |
945 | ||
946 | cd $ac_dir | |
947 | # Check for guested configure; otherwise get Cygnus style configure. | |
948 | if test -f $ac_srcdir/configure.gnu; then | |
949 | echo | |
950 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
951 | elif test -f $ac_srcdir/configure; then | |
952 | echo | |
953 | $SHELL $ac_srcdir/configure --help=recursive | |
954 | elif test -f $ac_srcdir/configure.ac || | |
955 | test -f $ac_srcdir/configure.in; then | |
956 | echo | |
957 | $ac_configure --help | |
958 | else | |
959 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
960 | fi | |
17210dff | 961 | cd $ac_popdir |
a8aea176 NN |
962 | done |
963 | fi | |
964 | ||
965 | test -n "$ac_init_help" && exit 0 | |
966 | if $ac_init_version; then | |
967 | cat <<\_ACEOF | |
968 | ||
969 | Copyright (C) 2003 Free Software Foundation, Inc. | |
970 | This configure script is free software; the Free Software Foundation | |
971 | gives unlimited permission to copy, distribute and modify it. | |
972 | _ACEOF | |
973 | exit 0 | |
974 | fi | |
975 | exec 5>config.log | |
976 | cat >&5 <<_ACEOF | |
977 | This file contains any messages produced by compilers while | |
978 | running configure, to aid debugging if configure makes a mistake. | |
979 | ||
980 | It was created by $as_me, which was | |
981 | generated by GNU Autoconf 2.59. Invocation command line was | |
982 | ||
983 | $ $0 $@ | |
984 | ||
985 | _ACEOF | |
986 | { | |
987 | cat <<_ASUNAME | |
988 | ## --------- ## | |
989 | ## Platform. ## | |
990 | ## --------- ## | |
991 | ||
992 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
993 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
994 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
995 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
996 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
997 | ||
998 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
999 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1000 | ||
1001 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1002 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1003 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1004 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1005 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1006 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1007 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1008 | ||
1009 | _ASUNAME | |
1010 | ||
1011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1012 | for as_dir in $PATH | |
1013 | do | |
1014 | IFS=$as_save_IFS | |
1015 | test -z "$as_dir" && as_dir=. | |
1016 | echo "PATH: $as_dir" | |
1017 | done | |
1018 | ||
1019 | } >&5 | |
1020 | ||
1021 | cat >&5 <<_ACEOF | |
1022 | ||
1023 | ||
1024 | ## ----------- ## | |
1025 | ## Core tests. ## | |
1026 | ## ----------- ## | |
1027 | ||
1028 | _ACEOF | |
1029 | ||
1030 | ||
1031 | # Keep a trace of the command line. | |
1032 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1033 | # Strip out --silent because we don't want to record it for future runs. | |
1034 | # Also quote any args containing shell meta-characters. | |
1035 | # Make two passes to allow for proper duplicate-argument suppression. | |
1036 | ac_configure_args= | |
1037 | ac_configure_args0= | |
1038 | ac_configure_args1= | |
1039 | ac_sep= | |
1040 | ac_must_keep_next=false | |
1041 | for ac_pass in 1 2 | |
1042 | do | |
1043 | for ac_arg | |
1044 | do | |
1045 | case $ac_arg in | |
1046 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1047 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1048 | | -silent | --silent | --silen | --sile | --sil) | |
1049 | continue ;; | |
1050 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1051 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1052 | esac | |
1053 | case $ac_pass in | |
1054 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1055 | 2) | |
1056 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1057 | if test $ac_must_keep_next = true; then | |
1058 | ac_must_keep_next=false # Got value, back to normal. | |
1059 | else | |
1060 | case $ac_arg in | |
1061 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1062 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1063 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1064 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1065 | case "$ac_configure_args0 " in | |
1066 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1067 | esac | |
1068 | ;; | |
1069 | -* ) ac_must_keep_next=true ;; | |
1070 | esac | |
1071 | fi | |
1072 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1073 | # Get rid of the leading space. | |
1074 | ac_sep=" " | |
1075 | ;; | |
1076 | esac | |
1077 | done | |
1078 | done | |
1079 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1080 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1081 | ||
1082 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1083 | # config.log. We remove comments because anyway the quotes in there | |
1084 | # would cause problems or look ugly. | |
1085 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1086 | # such as our DU 5.0 friend, will then `close' the trap. | |
1087 | trap 'exit_status=$? | |
1088 | # Save into config.log some information that might help in debugging. | |
1089 | { | |
1090 | echo | |
1091 | ||
1092 | cat <<\_ASBOX | |
1093 | ## ---------------- ## | |
1094 | ## Cache variables. ## | |
1095 | ## ---------------- ## | |
1096 | _ASBOX | |
1097 | echo | |
1098 | # The following way of writing the cache mishandles newlines in values, | |
1099 | { | |
1100 | (set) 2>&1 | | |
1101 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1102 | *ac_space=\ *) | |
1103 | sed -n \ | |
1104 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1105 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1106 | ;; | |
1107 | *) | |
1108 | sed -n \ | |
1109 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1110 | ;; | |
1111 | esac; | |
1112 | } | |
1113 | echo | |
1114 | ||
1115 | cat <<\_ASBOX | |
1116 | ## ----------------- ## | |
1117 | ## Output variables. ## | |
1118 | ## ----------------- ## | |
1119 | _ASBOX | |
1120 | echo | |
1121 | for ac_var in $ac_subst_vars | |
1122 | do | |
1123 | eval ac_val=$`echo $ac_var` | |
1124 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1125 | done | sort | |
1126 | echo | |
1127 | ||
1128 | if test -n "$ac_subst_files"; then | |
1129 | cat <<\_ASBOX | |
1130 | ## ------------- ## | |
1131 | ## Output files. ## | |
1132 | ## ------------- ## | |
1133 | _ASBOX | |
1134 | echo | |
1135 | for ac_var in $ac_subst_files | |
1136 | do | |
1137 | eval ac_val=$`echo $ac_var` | |
1138 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1139 | done | sort | |
1140 | echo | |
1141 | fi | |
1142 | ||
1143 | if test -s confdefs.h; then | |
1144 | cat <<\_ASBOX | |
1145 | ## ----------- ## | |
1146 | ## confdefs.h. ## | |
1147 | ## ----------- ## | |
1148 | _ASBOX | |
1149 | echo | |
1150 | sed "/^$/d" confdefs.h | sort | |
1151 | echo | |
1152 | fi | |
1153 | test "$ac_signal" != 0 && | |
1154 | echo "$as_me: caught signal $ac_signal" | |
1155 | echo "$as_me: exit $exit_status" | |
1156 | } >&5 | |
1157 | rm -f core *.core && | |
1158 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1159 | exit $exit_status | |
1160 | ' 0 | |
1161 | for ac_signal in 1 2 13 15; do | |
1162 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1163 | done | |
1164 | ac_signal=0 | |
dfac8a13 | 1165 | |
a8aea176 NN |
1166 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1167 | rm -rf conftest* confdefs.h | |
1168 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1169 | echo >confdefs.h | |
1170 | ||
1171 | # Predefined preprocessor variables. | |
1172 | ||
1173 | cat >>confdefs.h <<_ACEOF | |
1174 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1175 | _ACEOF | |
1176 | ||
1177 | ||
1178 | cat >>confdefs.h <<_ACEOF | |
1179 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1180 | _ACEOF | |
1181 | ||
1182 | ||
1183 | cat >>confdefs.h <<_ACEOF | |
1184 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1185 | _ACEOF | |
1186 | ||
1187 | ||
1188 | cat >>confdefs.h <<_ACEOF | |
1189 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1190 | _ACEOF | |
1191 | ||
1192 | ||
1193 | cat >>confdefs.h <<_ACEOF | |
1194 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1195 | _ACEOF | |
1196 | ||
1197 | ||
1198 | # Let the site file select an alternate cache file if it wants to. | |
dfac8a13 | 1199 | # Prefer explicitly selected file to automatically selected ones. |
0ccf2c33 AO |
1200 | if test -z "$CONFIG_SITE"; then |
1201 | if test "x$prefix" != xNONE; then | |
1202 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1203 | else | |
1204 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
dfac8a13 TT |
1205 | fi |
1206 | fi | |
1207 | for ac_site_file in $CONFIG_SITE; do | |
1208 | if test -r "$ac_site_file"; then | |
a8aea176 NN |
1209 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1210 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1211 | sed 's/^/| /' "$ac_site_file" >&5 | |
dfac8a13 TT |
1212 | . "$ac_site_file" |
1213 | fi | |
1214 | done | |
1215 | ||
1216 | if test -r "$cache_file"; then | |
a8aea176 NN |
1217 | # Some versions of bash will fail to source /dev/null (special |
1218 | # files actually), so we avoid doing that. | |
1219 | if test -f "$cache_file"; then | |
1220 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1221 | echo "$as_me: loading cache $cache_file" >&6;} | |
1222 | case $cache_file in | |
1223 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1224 | *) . ./$cache_file;; | |
1225 | esac | |
1226 | fi | |
dfac8a13 | 1227 | else |
a8aea176 NN |
1228 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1229 | echo "$as_me: creating cache $cache_file" >&6;} | |
1230 | >$cache_file | |
1231 | fi | |
1232 | ||
1233 | # Check that the precious variables saved in the cache have kept the same | |
1234 | # value. | |
1235 | ac_cache_corrupted=false | |
1236 | for ac_var in `(set) 2>&1 | | |
1237 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1238 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1239 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1240 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1241 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1242 | case $ac_old_set,$ac_new_set in | |
1243 | set,) | |
1244 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1245 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1246 | ac_cache_corrupted=: ;; | |
1247 | ,set) | |
1248 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1249 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1250 | ac_cache_corrupted=: ;; | |
1251 | ,);; | |
1252 | *) | |
1253 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1254 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1255 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1256 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1257 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1258 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1259 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1260 | ac_cache_corrupted=: | |
1261 | fi;; | |
1262 | esac | |
1263 | # Pass precious variables to config.status. | |
1264 | if test "$ac_new_set" = set; then | |
1265 | case $ac_new_val in | |
1266 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1267 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1268 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1269 | esac | |
1270 | case " $ac_configure_args " in | |
1271 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1272 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1273 | esac | |
1274 | fi | |
1275 | done | |
1276 | if $ac_cache_corrupted; then | |
1277 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1278 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1279 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1280 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1281 | { (exit 1); exit 1; }; } | |
dfac8a13 TT |
1282 | fi |
1283 | ||
1284 | ac_ext=c | |
dfac8a13 | 1285 | ac_cpp='$CPP $CPPFLAGS' |
a8aea176 NN |
1286 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1287 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1288 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1289 | ||
1290 | ||
1291 | ||
1292 | ||
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | ||
1298 | ||
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
dfac8a13 TT |
1307 | |
1308 | ||
0fd91e0a | 1309 | |
076e5443 PB |
1310 | # Default to --enable-multilib |
1311 | # Check whether --enable-multilib or --disable-multilib was given. | |
1312 | if test "${enable_multilib+set}" = set; then | |
1313 | enableval="$enable_multilib" | |
1314 | case "$enableval" in | |
1315 | yes) multilib=yes ;; | |
1316 | no) multilib=no ;; | |
1317 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1318 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1319 | { (exit 1); exit 1; }; } ;; | |
1320 | esac | |
1321 | else | |
1322 | multilib=yes | |
1323 | fi; | |
6706f116 | 1324 | |
076e5443 PB |
1325 | # We may get other options which we leave undocumented: |
1326 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1327 | # See config-ml.in if you want the gory details. | |
0fd91e0a | 1328 | |
076e5443 PB |
1329 | if test "$srcdir" = "."; then |
1330 | if test "$with_target_subdir" != "."; then | |
1331 | multi_basedir="$srcdir/$with_multisrctop../.." | |
0fd91e0a | 1332 | else |
076e5443 | 1333 | multi_basedir="$srcdir/$with_multisrctop.." |
0fd91e0a AO |
1334 | fi |
1335 | else | |
076e5443 | 1336 | multi_basedir="$srcdir/.." |
0fd91e0a AO |
1337 | fi |
1338 | ||
dfac8a13 | 1339 | |
8a489465 JH |
1340 | # Even if the default multilib is not a cross compilation, |
1341 | # it may be that some of the other multilibs are. | |
1342 | if test $cross_compiling = no && test $multilib = yes \ | |
1343 | && test "x${with_multisubdir}" != x ; then | |
1344 | cross_compiling=maybe | |
1345 | fi | |
1346 | ||
076e5443 PB |
1347 | ac_config_commands="$ac_config_commands default-1" |
1348 | ||
1349 | ||
1350 | ac_aux_dir= | |
1351 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
0fd91e0a AO |
1352 | if test -f $ac_dir/install-sh; then |
1353 | ac_aux_dir=$ac_dir | |
1354 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1355 | break | |
1356 | elif test -f $ac_dir/install.sh; then | |
1357 | ac_aux_dir=$ac_dir | |
1358 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1359 | break | |
a8aea176 NN |
1360 | elif test -f $ac_dir/shtool; then |
1361 | ac_aux_dir=$ac_dir | |
1362 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1363 | break | |
1364 | fi | |
0fd91e0a AO |
1365 | done |
1366 | if test -z "$ac_aux_dir"; then | |
076e5443 PB |
1367 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1368 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
a8aea176 | 1369 | { (exit 1); exit 1; }; } |
0fd91e0a | 1370 | fi |
a8aea176 NN |
1371 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1372 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1373 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
0fd91e0a | 1374 | |
dfac8a13 | 1375 | # Make sure we can run config.sub. |
a8aea176 NN |
1376 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1377 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1378 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1379 | { (exit 1); exit 1; }; } | |
1380 | ||
1381 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1382 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1383 | if test "${ac_cv_build+set}" = set; then | |
1384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1385 | else | |
1386 | ac_cv_build_alias=$build_alias | |
1387 | test -z "$ac_cv_build_alias" && | |
1388 | ac_cv_build_alias=`$ac_config_guess` | |
1389 | test -z "$ac_cv_build_alias" && | |
1390 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1391 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1392 | { (exit 1); exit 1; }; } | |
1393 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1394 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1395 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1396 | { (exit 1); exit 1; }; } | |
1397 | ||
1398 | fi | |
1399 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1400 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1401 | build=$ac_cv_build | |
1402 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1403 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1404 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1405 | ||
1406 | ||
1407 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1408 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1409 | if test "${ac_cv_host+set}" = set; then | |
1410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1411 | else | |
1412 | ac_cv_host_alias=$host_alias | |
1413 | test -z "$ac_cv_host_alias" && | |
1414 | ac_cv_host_alias=$ac_cv_build_alias | |
1415 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1416 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1417 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1418 | { (exit 1); exit 1; }; } | |
1419 | ||
1420 | fi | |
1421 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1422 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1423 | host=$ac_cv_host | |
1424 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1425 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1426 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1427 | ||
1428 | ||
1429 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1430 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1431 | if test "${ac_cv_target+set}" = set; then | |
1432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1433 | else | |
1434 | ac_cv_target_alias=$target_alias | |
1435 | test "x$ac_cv_target_alias" = "x" && | |
1436 | ac_cv_target_alias=$ac_cv_host_alias | |
1437 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1438 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1439 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1440 | { (exit 1); exit 1; }; } | |
dfac8a13 | 1441 | |
a8aea176 NN |
1442 | fi |
1443 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1444 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1445 | target=$ac_cv_target | |
1446 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1447 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1448 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
dfac8a13 | 1449 | |
dfac8a13 | 1450 | |
a8aea176 NN |
1451 | # The aliases save the names the user supplied, while $host etc. |
1452 | # will get canonicalized. | |
1453 | test -n "$target_alias" && | |
dfac8a13 TT |
1454 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1455 | NONENONEs,x,x, && | |
1456 | program_prefix=${target_alias}- | |
1457 | ||
8b55628e | 1458 | # This works around an automake problem. |
1e6347d8 | 1459 | mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" |
8b55628e TT |
1460 | |
1461 | ||
17210dff | 1462 | am__api_version="1.9" |
dfac8a13 TT |
1463 | # Find a good install program. We prefer a C program (faster), |
1464 | # so one script is as good as another. But avoid the broken or | |
1465 | # incompatible versions: | |
1466 | # SysV /etc/install, /usr/sbin/install | |
1467 | # SunOS /usr/etc/install | |
1468 | # IRIX /sbin/install | |
1469 | # AIX /bin/install | |
a8aea176 | 1470 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
dfac8a13 TT |
1471 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1472 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1473 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
a8aea176 | 1474 | # OS/2's system install, which has a completely different semantic |
dfac8a13 | 1475 | # ./install, which can be erroneously created by make from ./install.sh. |
a8aea176 NN |
1476 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1477 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
dfac8a13 | 1478 | if test -z "$INSTALL"; then |
a8aea176 NN |
1479 | if test "${ac_cv_path_install+set}" = set; then |
1480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 1481 | else |
a8aea176 NN |
1482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1483 | for as_dir in $PATH | |
1484 | do | |
1485 | IFS=$as_save_IFS | |
1486 | test -z "$as_dir" && as_dir=. | |
1487 | # Account for people who put trailing slashes in PATH elements. | |
1488 | case $as_dir/ in | |
1489 | ./ | .// | /cC/* | \ | |
1490 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1491 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1492 | /usr/ucb/* ) ;; | |
1493 | *) | |
1494 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1495 | # Don't use installbsd from OSF since it installs stuff as root | |
1496 | # by default. | |
1497 | for ac_prog in ginstall scoinst install; do | |
1498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1499 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
dfac8a13 | 1500 | if test $ac_prog = install && |
a8aea176 | 1501 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
dfac8a13 TT |
1502 | # AIX install. It has an incompatible calling convention. |
1503 | : | |
a8aea176 NN |
1504 | elif test $ac_prog = install && |
1505 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1506 | # program-specific install script used by HP pwplus--don't use. | |
1507 | : | |
dfac8a13 | 1508 | else |
a8aea176 NN |
1509 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
1510 | break 3 | |
dfac8a13 TT |
1511 | fi |
1512 | fi | |
1513 | done | |
a8aea176 NN |
1514 | done |
1515 | ;; | |
1516 | esac | |
1517 | done | |
1518 | ||
dfac8a13 TT |
1519 | |
1520 | fi | |
1521 | if test "${ac_cv_path_install+set}" = set; then | |
a8aea176 | 1522 | INSTALL=$ac_cv_path_install |
dfac8a13 TT |
1523 | else |
1524 | # As a last resort, use the slow shell script. We don't cache a | |
1525 | # path for INSTALL within a source directory, because that will | |
1526 | # break other packages using the cache if that directory is | |
1527 | # removed, or if the path is relative. | |
a8aea176 | 1528 | INSTALL=$ac_install_sh |
dfac8a13 TT |
1529 | fi |
1530 | fi | |
a8aea176 NN |
1531 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1532 | echo "${ECHO_T}$INSTALL" >&6 | |
dfac8a13 TT |
1533 | |
1534 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1535 | # It thinks the first close brace ends the variable substitution. | |
1536 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1537 | ||
a8aea176 | 1538 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
dfac8a13 TT |
1539 | |
1540 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1541 | ||
a8aea176 NN |
1542 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1543 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
dfac8a13 TT |
1544 | # Just in case |
1545 | sleep 1 | |
9fabf579 | 1546 | echo timestamp > conftest.file |
dfac8a13 TT |
1547 | # Do `set' in a subshell so we don't clobber the current shell's |
1548 | # arguments. Must try -L first in case configure is actually a | |
1549 | # symlink; some systems play weird games with the mod time of symlinks | |
1550 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1551 | # directory). | |
1552 | if ( | |
9fabf579 | 1553 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
dfac8a13 TT |
1554 | if test "$*" = "X"; then |
1555 | # -L didn't work. | |
9fabf579 | 1556 | set X `ls -t $srcdir/configure conftest.file` |
dfac8a13 | 1557 | fi |
9fabf579 KC |
1558 | rm -f conftest.file |
1559 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1560 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
dfac8a13 TT |
1561 | |
1562 | # If neither matched, then we have a broken ls. This can happen | |
1563 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1564 | # broken ls alias from the environment. This has actually | |
1565 | # happened. Such a system could not be considered "sane". | |
a8aea176 NN |
1566 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1567 | alias in your environment" >&5 | |
1568 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1569 | alias in your environment" >&2;} | |
1570 | { (exit 1); exit 1; }; } | |
dfac8a13 TT |
1571 | fi |
1572 | ||
9fabf579 | 1573 | test "$2" = conftest.file |
dfac8a13 TT |
1574 | ) |
1575 | then | |
1576 | # Ok. | |
1577 | : | |
1578 | else | |
a8aea176 NN |
1579 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1580 | Check your system clock" >&5 | |
1581 | echo "$as_me: error: newly created file is older than distributed files! | |
1582 | Check your system clock" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
dfac8a13 | 1584 | fi |
a8aea176 NN |
1585 | echo "$as_me:$LINENO: result: yes" >&5 |
1586 | echo "${ECHO_T}yes" >&6 | |
dfac8a13 | 1587 | test "$program_prefix" != NONE && |
a8aea176 | 1588 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
dfac8a13 TT |
1589 | # Use a double $ so make ignores it. |
1590 | test "$program_suffix" != NONE && | |
a8aea176 NN |
1591 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1592 | # Double any \ or $. echo might interpret backslashes. | |
1593 | # By default was `s,x,x', remove it if useless. | |
1594 | cat <<\_ACEOF >conftest.sed | |
1595 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1596 | _ACEOF | |
1597 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1598 | rm conftest.sed | |
1599 | ||
9fabf579 KC |
1600 | # expand $ac_aux_dir to an absolute path |
1601 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1602 | ||
1603 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1604 | # Use eval to expand $SHELL | |
1605 | if eval "$MISSING --run true"; then | |
1606 | am_missing_run="$MISSING --run " | |
1607 | else | |
1608 | am_missing_run= | |
1609 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1610 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1611 | fi | |
1612 | ||
076e5443 | 1613 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
17210dff TT |
1614 | # We used to keeping the `.' as first argument, in order to |
1615 | # allow $(mkdir_p) to be used without argument. As in | |
076e5443 | 1616 | # $(mkdir_p) $(somedir) |
17210dff TT |
1617 | # where $(somedir) is conditionally defined. However this is wrong |
1618 | # for two reasons: | |
1619 | # 1. if the package is installed by a user who cannot write `.' | |
1620 | # make install will fail, | |
1621 | # 2. the above comment should most certainly read | |
1622 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1623 | # so it does not work when $(somedir) is undefined and | |
1624 | # $(DESTDIR) is not. | |
1625 | # To support the latter case, we have to write | |
1626 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1627 | # so the `.' trick is pointless. | |
1628 | mkdir_p='mkdir -p --' | |
076e5443 PB |
1629 | else |
1630 | # On NextStep and OpenStep, the `mkdir' command does not | |
1631 | # recognize any option. It will interpret all options as | |
1632 | # directories to create, and then abort because `.' already | |
1633 | # exists. | |
1634 | for d in ./-p ./--version; | |
1635 | do | |
1636 | test -d $d && rmdir $d | |
1637 | done | |
1638 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1639 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1640 | mkdir_p='$(mkinstalldirs)' | |
1641 | else | |
1642 | mkdir_p='$(install_sh) -d' | |
1643 | fi | |
1644 | fi | |
1645 | ||
9fabf579 KC |
1646 | for ac_prog in gawk mawk nawk awk |
1647 | do | |
1648 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1649 | set dummy $ac_prog; ac_word=$2 | |
1650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1652 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1654 | else | |
1655 | if test -n "$AWK"; then | |
1656 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1657 | else | |
1658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1659 | for as_dir in $PATH | |
1660 | do | |
1661 | IFS=$as_save_IFS | |
1662 | test -z "$as_dir" && as_dir=. | |
1663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1665 | ac_cv_prog_AWK="$ac_prog" | |
1666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1667 | break 2 | |
1668 | fi | |
1669 | done | |
1670 | done | |
1671 | ||
1672 | fi | |
1673 | fi | |
1674 | AWK=$ac_cv_prog_AWK | |
1675 | if test -n "$AWK"; then | |
1676 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1677 | echo "${ECHO_T}$AWK" >&6 | |
1678 | else | |
1679 | echo "$as_me:$LINENO: result: no" >&5 | |
1680 | echo "${ECHO_T}no" >&6 | |
1681 | fi | |
1682 | ||
1683 | test -n "$AWK" && break | |
1684 | done | |
1685 | ||
a8aea176 NN |
1686 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1687 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1688 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1689 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 1691 | else |
a8aea176 | 1692 | cat >conftest.make <<\_ACEOF |
dfac8a13 | 1693 | all: |
a8aea176 NN |
1694 | @echo 'ac_maketemp="$(MAKE)"' |
1695 | _ACEOF | |
dfac8a13 | 1696 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a8aea176 | 1697 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
dfac8a13 TT |
1698 | if test -n "$ac_maketemp"; then |
1699 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1700 | else | |
1701 | eval ac_cv_prog_make_${ac_make}_set=no | |
1702 | fi | |
a8aea176 | 1703 | rm -f conftest.make |
dfac8a13 TT |
1704 | fi |
1705 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a8aea176 NN |
1706 | echo "$as_me:$LINENO: result: yes" >&5 |
1707 | echo "${ECHO_T}yes" >&6 | |
dfac8a13 TT |
1708 | SET_MAKE= |
1709 | else | |
a8aea176 NN |
1710 | echo "$as_me:$LINENO: result: no" >&5 |
1711 | echo "${ECHO_T}no" >&6 | |
dfac8a13 TT |
1712 | SET_MAKE="MAKE=${MAKE-make}" |
1713 | fi | |
1714 | ||
9fabf579 KC |
1715 | rm -rf .tst 2>/dev/null |
1716 | mkdir .tst 2>/dev/null | |
1717 | if test -d .tst; then | |
1718 | am__leading_dot=. | |
1719 | else | |
1720 | am__leading_dot=_ | |
1721 | fi | |
1722 | rmdir .tst 2>/dev/null | |
dfac8a13 | 1723 | |
076e5443 | 1724 | # test to see if srcdir already configured |
9fabf579 KC |
1725 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1726 | test -f $srcdir/config.status; then | |
a8aea176 NN |
1727 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1728 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1729 | { (exit 1); exit 1; }; } | |
dfac8a13 | 1730 | fi |
a8aea176 | 1731 | |
9fabf579 KC |
1732 | # test whether we have cygpath |
1733 | if test -z "$CYGPATH_W"; then | |
1734 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1735 | CYGPATH_W='cygpath -w' | |
1736 | else | |
1737 | CYGPATH_W=echo | |
1738 | fi | |
1739 | fi | |
1740 | ||
1741 | ||
1742 | # Define the identity of the package. | |
1743 | PACKAGE=zlib | |
1744 | VERSION=1.1.4 | |
1745 | ||
1746 | ||
a8aea176 | 1747 | cat >>confdefs.h <<_ACEOF |
dfac8a13 | 1748 | #define PACKAGE "$PACKAGE" |
a8aea176 | 1749 | _ACEOF |
dfac8a13 | 1750 | |
a8aea176 NN |
1751 | |
1752 | cat >>confdefs.h <<_ACEOF | |
dfac8a13 | 1753 | #define VERSION "$VERSION" |
a8aea176 | 1754 | _ACEOF |
dfac8a13 | 1755 | |
9fabf579 KC |
1756 | # Some tools Automake needs. |
1757 | ||
1758 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1759 | ||
1760 | ||
1761 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1762 | ||
1763 | ||
1764 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
dfac8a13 TT |
1765 | |
1766 | ||
9fabf579 KC |
1767 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1768 | ||
1769 | ||
1770 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1771 | ||
9fabf579 KC |
1772 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1773 | ||
1774 | # Installed binaries are usually stripped using `strip' when the user | |
1775 | # run `make install-strip'. However `strip' might not be the right | |
1776 | # tool to use in cross-compilation environments, therefore Automake | |
1777 | # will honor the `STRIP' environment variable to overrule this program. | |
1778 | if test "$cross_compiling" != no; then | |
1779 | if test -n "$ac_tool_prefix"; then | |
1780 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1781 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1784 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 1786 | else |
9fabf579 KC |
1787 | if test -n "$STRIP"; then |
1788 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1789 | else | |
1790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1791 | for as_dir in $PATH | |
1792 | do | |
1793 | IFS=$as_save_IFS | |
1794 | test -z "$as_dir" && as_dir=. | |
1795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1797 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1799 | break 2 | |
1800 | fi | |
1801 | done | |
1802 | done | |
dfac8a13 | 1803 | |
9fabf579 KC |
1804 | fi |
1805 | fi | |
1806 | STRIP=$ac_cv_prog_STRIP | |
1807 | if test -n "$STRIP"; then | |
1808 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1809 | echo "${ECHO_T}$STRIP" >&6 | |
dfac8a13 | 1810 | else |
9fabf579 KC |
1811 | echo "$as_me:$LINENO: result: no" >&5 |
1812 | echo "${ECHO_T}no" >&6 | |
dfac8a13 TT |
1813 | fi |
1814 | ||
dfac8a13 | 1815 | fi |
9fabf579 KC |
1816 | if test -z "$ac_cv_prog_STRIP"; then |
1817 | ac_ct_STRIP=$STRIP | |
1818 | # Extract the first word of "strip", so it can be a program name with args. | |
1819 | set dummy strip; ac_word=$2 | |
1820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1822 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1824 | else | |
1825 | if test -n "$ac_ct_STRIP"; then | |
1826 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1827 | else | |
1828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1829 | for as_dir in $PATH | |
1830 | do | |
1831 | IFS=$as_save_IFS | |
1832 | test -z "$as_dir" && as_dir=. | |
1833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1835 | ac_cv_prog_ac_ct_STRIP="strip" | |
1836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1837 | break 2 | |
1838 | fi | |
1839 | done | |
1840 | done | |
dfac8a13 | 1841 | |
9fabf579 KC |
1842 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1843 | fi | |
1844 | fi | |
1845 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1846 | if test -n "$ac_ct_STRIP"; then | |
1847 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1848 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
dfac8a13 | 1849 | else |
9fabf579 KC |
1850 | echo "$as_me:$LINENO: result: no" >&5 |
1851 | echo "${ECHO_T}no" >&6 | |
dfac8a13 TT |
1852 | fi |
1853 | ||
9fabf579 | 1854 | STRIP=$ac_ct_STRIP |
dfac8a13 | 1855 | else |
9fabf579 KC |
1856 | STRIP="$ac_cv_prog_STRIP" |
1857 | fi | |
1858 | ||
dfac8a13 | 1859 | fi |
9fabf579 KC |
1860 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1861 | ||
1862 | # We need awk for the "check" target. The system "awk" is bad on | |
1863 | # some platforms. | |
17210dff TT |
1864 | # Always define AMTAR for backward compatibility. |
1865 | ||
1866 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1867 | ||
1868 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1869 | ||
1870 | ||
9fabf579 | 1871 | |
dfac8a13 TT |
1872 | |
1873 | ||
1874 | ||
a8aea176 NN |
1875 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1876 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
e093c992 AG |
1877 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1878 | if test "${enable_maintainer_mode+set}" = set; then | |
1879 | enableval="$enable_maintainer_mode" | |
1880 | USE_MAINTAINER_MODE=$enableval | |
1881 | else | |
1882 | USE_MAINTAINER_MODE=no | |
a8aea176 NN |
1883 | fi; |
1884 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1885 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
e093c992 | 1886 | |
e093c992 AG |
1887 | |
1888 | if test $USE_MAINTAINER_MODE = yes; then | |
1889 | MAINTAINER_MODE_TRUE= | |
1890 | MAINTAINER_MODE_FALSE='#' | |
1891 | else | |
1892 | MAINTAINER_MODE_TRUE='#' | |
1893 | MAINTAINER_MODE_FALSE= | |
1894 | fi | |
9fabf579 | 1895 | |
e093c992 | 1896 | MAINT=$MAINTAINER_MODE_TRUE |
a8aea176 NN |
1897 | |
1898 | ||
e093c992 AG |
1899 | |
1900 | ||
dfac8a13 TT |
1901 | # Check whether --with-target-subdir or --without-target-subdir was given. |
1902 | if test "${with_target_subdir+set}" = set; then | |
1903 | withval="$with_target_subdir" | |
a8aea176 NN |
1904 | |
1905 | fi; | |
1906 | ||
1907 | if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then | |
1908 | COMPPATH=. | |
1909 | else | |
1910 | COMPPATH=.. | |
dfac8a13 TT |
1911 | fi |
1912 | ||
a8aea176 NN |
1913 | |
1914 | ||
dfac8a13 TT |
1915 | # Check whether --with-cross-host or --without-cross-host was given. |
1916 | if test "${with_cross_host+set}" = set; then | |
1917 | withval="$with_cross_host" | |
dfac8a13 | 1918 | |
a8aea176 | 1919 | fi; |
dfac8a13 TT |
1920 | |
1921 | # Check whether --enable-multilib or --disable-multilib was given. | |
1922 | if test "${enable_multilib+set}" = set; then | |
1923 | enableval="$enable_multilib" | |
1924 | case "${enableval}" in | |
1925 | yes) multilib=yes ;; | |
1926 | no) multilib=no ;; | |
a8aea176 NN |
1927 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5 |
1928 | echo "$as_me: error: bad value ${enableval} for multilib option" >&2;} | |
1929 | { (exit 1); exit 1; }; } ;; | |
dfac8a13 TT |
1930 | esac |
1931 | else | |
67d08194 | 1932 | test -z "$with_target_subdir" && multilib=no || multilib=yes |
a8aea176 | 1933 | fi; |
dfac8a13 | 1934 | |
79a9a529 TT |
1935 | # Check whether --with-system-zlib or --without-system-zlib was given. |
1936 | if test "${with_system_zlib+set}" = set; then | |
1937 | withval="$with_system_zlib" | |
79a9a529 | 1938 | |
a8aea176 NN |
1939 | fi; |
1940 | ||
1941 | # Make sure we don't test executables when making cross-tools. | |
1942 | ||
1943 | ||
076e5443 PB |
1944 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. |
1945 | # We must force CC to /not/ be precious variables; otherwise | |
1946 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
1947 | # As a side effect, we have to subst CFLAGS ourselves. | |
1948 | ||
1949 | ||
1950 | ||
a8aea176 NN |
1951 | ac_ext=c |
1952 | ac_cpp='$CPP $CPPFLAGS' | |
1953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1956 | if test -n "$ac_tool_prefix"; then | |
1957 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1958 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1959 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1961 | if test "${ac_cv_prog_CC+set}" = set; then | |
1962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1963 | else | |
1964 | if test -n "$CC"; then | |
1965 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1966 | else | |
1967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1968 | for as_dir in $PATH | |
1969 | do | |
1970 | IFS=$as_save_IFS | |
1971 | test -z "$as_dir" && as_dir=. | |
1972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1973 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1974 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1976 | break 2 | |
1977 | fi | |
1978 | done | |
1979 | done | |
79a9a529 | 1980 | |
a8aea176 NN |
1981 | fi |
1982 | fi | |
1983 | CC=$ac_cv_prog_CC | |
1984 | if test -n "$CC"; then | |
1985 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1986 | echo "${ECHO_T}$CC" >&6 | |
1987 | else | |
1988 | echo "$as_me:$LINENO: result: no" >&5 | |
1989 | echo "${ECHO_T}no" >&6 | |
1990 | fi | |
025fd00e | 1991 | |
a8aea176 NN |
1992 | fi |
1993 | if test -z "$ac_cv_prog_CC"; then | |
1994 | ac_ct_CC=$CC | |
1995 | # Extract the first word of "gcc", so it can be a program name with args. | |
dfac8a13 | 1996 | set dummy gcc; ac_word=$2 |
a8aea176 NN |
1997 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1998 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1999 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2001 | else | |
2002 | if test -n "$ac_ct_CC"; then | |
2003 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2004 | else | |
2005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2006 | for as_dir in $PATH | |
2007 | do | |
2008 | IFS=$as_save_IFS | |
2009 | test -z "$as_dir" && as_dir=. | |
2010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2011 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2012 | ac_cv_prog_ac_ct_CC="gcc" | |
2013 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2014 | break 2 | |
2015 | fi | |
2016 | done | |
2017 | done | |
2018 | ||
2019 | fi | |
2020 | fi | |
2021 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2022 | if test -n "$ac_ct_CC"; then | |
2023 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2024 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2025 | else | |
2026 | echo "$as_me:$LINENO: result: no" >&5 | |
2027 | echo "${ECHO_T}no" >&6 | |
2028 | fi | |
2029 | ||
2030 | CC=$ac_ct_CC | |
2031 | else | |
2032 | CC="$ac_cv_prog_CC" | |
2033 | fi | |
2034 | ||
2035 | if test -z "$CC"; then | |
2036 | if test -n "$ac_tool_prefix"; then | |
2037 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2038 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2041 | if test "${ac_cv_prog_CC+set}" = set; then | |
2042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 TT |
2043 | else |
2044 | if test -n "$CC"; then | |
2045 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2046 | else | |
a8aea176 NN |
2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2048 | for as_dir in $PATH | |
2049 | do | |
2050 | IFS=$as_save_IFS | |
2051 | test -z "$as_dir" && as_dir=. | |
2052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2054 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2056 | break 2 | |
2057 | fi | |
2058 | done | |
2059 | done | |
2060 | ||
dfac8a13 TT |
2061 | fi |
2062 | fi | |
a8aea176 | 2063 | CC=$ac_cv_prog_CC |
dfac8a13 | 2064 | if test -n "$CC"; then |
a8aea176 NN |
2065 | echo "$as_me:$LINENO: result: $CC" >&5 |
2066 | echo "${ECHO_T}$CC" >&6 | |
2067 | else | |
2068 | echo "$as_me:$LINENO: result: no" >&5 | |
2069 | echo "${ECHO_T}no" >&6 | |
2070 | fi | |
2071 | ||
2072 | fi | |
2073 | if test -z "$ac_cv_prog_CC"; then | |
2074 | ac_ct_CC=$CC | |
2075 | # Extract the first word of "cc", so it can be a program name with args. | |
2076 | set dummy cc; ac_word=$2 | |
2077 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2078 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2079 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2081 | else | |
2082 | if test -n "$ac_ct_CC"; then | |
2083 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2084 | else | |
2085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2086 | for as_dir in $PATH | |
2087 | do | |
2088 | IFS=$as_save_IFS | |
2089 | test -z "$as_dir" && as_dir=. | |
2090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2091 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2092 | ac_cv_prog_ac_ct_CC="cc" | |
2093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2094 | break 2 | |
2095 | fi | |
2096 | done | |
2097 | done | |
2098 | ||
2099 | fi | |
2100 | fi | |
2101 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2102 | if test -n "$ac_ct_CC"; then | |
2103 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2104 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
dfac8a13 | 2105 | else |
a8aea176 NN |
2106 | echo "$as_me:$LINENO: result: no" >&5 |
2107 | echo "${ECHO_T}no" >&6 | |
dfac8a13 TT |
2108 | fi |
2109 | ||
a8aea176 NN |
2110 | CC=$ac_ct_CC |
2111 | else | |
2112 | CC="$ac_cv_prog_CC" | |
2113 | fi | |
2114 | ||
2115 | fi | |
dfac8a13 TT |
2116 | if test -z "$CC"; then |
2117 | # Extract the first word of "cc", so it can be a program name with args. | |
2118 | set dummy cc; ac_word=$2 | |
a8aea176 NN |
2119 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2121 | if test "${ac_cv_prog_CC+set}" = set; then | |
2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 TT |
2123 | else |
2124 | if test -n "$CC"; then | |
2125 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2126 | else | |
dfac8a13 | 2127 | ac_prog_rejected=no |
a8aea176 NN |
2128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2129 | for as_dir in $PATH | |
2130 | do | |
2131 | IFS=$as_save_IFS | |
2132 | test -z "$as_dir" && as_dir=. | |
2133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2135 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2136 | ac_prog_rejected=yes | |
2137 | continue | |
2138 | fi | |
2139 | ac_cv_prog_CC="cc" | |
2140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2141 | break 2 | |
2142 | fi | |
2143 | done | |
2144 | done | |
2145 | ||
dfac8a13 TT |
2146 | if test $ac_prog_rejected = yes; then |
2147 | # We found a bogon in the path, so make sure we never use it. | |
2148 | set dummy $ac_cv_prog_CC | |
2149 | shift | |
a8aea176 | 2150 | if test $# != 0; then |
dfac8a13 TT |
2151 | # We chose a different compiler from the bogus one. |
2152 | # However, it has the same basename, so the bogon will be chosen | |
2153 | # first if we set CC to just the basename; use the full file name. | |
2154 | shift | |
a8aea176 | 2155 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
dfac8a13 TT |
2156 | fi |
2157 | fi | |
2158 | fi | |
2159 | fi | |
a8aea176 | 2160 | CC=$ac_cv_prog_CC |
dfac8a13 | 2161 | if test -n "$CC"; then |
a8aea176 NN |
2162 | echo "$as_me:$LINENO: result: $CC" >&5 |
2163 | echo "${ECHO_T}$CC" >&6 | |
dfac8a13 | 2164 | else |
a8aea176 NN |
2165 | echo "$as_me:$LINENO: result: no" >&5 |
2166 | echo "${ECHO_T}no" >&6 | |
dfac8a13 TT |
2167 | fi |
2168 | ||
dfac8a13 | 2169 | fi |
a8aea176 NN |
2170 | if test -z "$CC"; then |
2171 | if test -n "$ac_tool_prefix"; then | |
2172 | for ac_prog in cl | |
2173 | do | |
2174 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2175 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2176 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2178 | if test "${ac_cv_prog_CC+set}" = set; then | |
2179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 2180 | else |
a8aea176 NN |
2181 | if test -n "$CC"; then |
2182 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dfac8a13 | 2183 | else |
a8aea176 NN |
2184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2185 | for as_dir in $PATH | |
2186 | do | |
2187 | IFS=$as_save_IFS | |
2188 | test -z "$as_dir" && as_dir=. | |
2189 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2190 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2191 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2193 | break 2 | |
2194 | fi | |
2195 | done | |
2196 | done | |
2197 | ||
dfac8a13 | 2198 | fi |
a8aea176 NN |
2199 | fi |
2200 | CC=$ac_cv_prog_CC | |
2201 | if test -n "$CC"; then | |
2202 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2203 | echo "${ECHO_T}$CC" >&6 | |
2204 | else | |
2205 | echo "$as_me:$LINENO: result: no" >&5 | |
2206 | echo "${ECHO_T}no" >&6 | |
dfac8a13 TT |
2207 | fi |
2208 | ||
a8aea176 NN |
2209 | test -n "$CC" && break |
2210 | done | |
2211 | fi | |
2212 | if test -z "$CC"; then | |
2213 | ac_ct_CC=$CC | |
2214 | for ac_prog in cl | |
2215 | do | |
2216 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2217 | set dummy $ac_prog; ac_word=$2 | |
2218 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2220 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 2222 | else |
a8aea176 NN |
2223 | if test -n "$ac_ct_CC"; then |
2224 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2225 | else | |
2226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2227 | for as_dir in $PATH | |
2228 | do | |
2229 | IFS=$as_save_IFS | |
2230 | test -z "$as_dir" && as_dir=. | |
2231 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2232 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2233 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2234 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2235 | break 2 | |
2236 | fi | |
2237 | done | |
2238 | done | |
2239 | ||
2240 | fi | |
2241 | fi | |
2242 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2243 | if test -n "$ac_ct_CC"; then | |
2244 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2245 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
dfac8a13 | 2246 | else |
a8aea176 NN |
2247 | echo "$as_me:$LINENO: result: no" >&5 |
2248 | echo "${ECHO_T}no" >&6 | |
dfac8a13 | 2249 | fi |
dfac8a13 | 2250 | |
a8aea176 NN |
2251 | test -n "$ac_ct_CC" && break |
2252 | done | |
2253 | ||
2254 | CC=$ac_ct_CC | |
2255 | fi | |
2256 | ||
2257 | fi | |
2258 | ||
2259 | ||
2260 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2261 | See \`config.log' for more details." >&5 | |
2262 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2263 | See \`config.log' for more details." >&2;} | |
2264 | { (exit 1); exit 1; }; } | |
2265 | ||
2266 | # Provide some information about the compiler. | |
2267 | echo "$as_me:$LINENO:" \ | |
2268 | "checking for C compiler version" >&5 | |
2269 | ac_compiler=`set X $ac_compile; echo $2` | |
2270 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2271 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2272 | ac_status=$? | |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2274 | (exit $ac_status); } | |
2275 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2276 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2277 | ac_status=$? | |
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2279 | (exit $ac_status); } | |
2280 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2281 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2282 | ac_status=$? | |
2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2284 | (exit $ac_status); } | |
2285 | ||
2286 | cat >conftest.$ac_ext <<_ACEOF | |
2287 | /* confdefs.h. */ | |
2288 | _ACEOF | |
2289 | cat confdefs.h >>conftest.$ac_ext | |
2290 | cat >>conftest.$ac_ext <<_ACEOF | |
2291 | /* end confdefs.h. */ | |
2292 | ||
2293 | int | |
2294 | main () | |
2295 | { | |
2296 | ||
2297 | ; | |
2298 | return 0; | |
2299 | } | |
2300 | _ACEOF | |
2301 | # FIXME: Cleanup? | |
2302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2303 | (eval $ac_link) 2>&5 | |
2304 | ac_status=$? | |
2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2306 | (exit $ac_status); }; then | |
2307 | gcc_no_link=no | |
2308 | else | |
2309 | gcc_no_link=yes | |
dfac8a13 TT |
2310 | fi |
2311 | ||
a8aea176 NN |
2312 | if test x$gcc_no_link = xyes; then |
2313 | # Setting cross_compile will disable run tests; it will | |
2314 | # also disable AC_CHECK_FILE but that's generally | |
2315 | # correct if we can't link. | |
2316 | cross_compiling=yes | |
2317 | EXEEXT= | |
2318 | else | |
2319 | cat >conftest.$ac_ext <<_ACEOF | |
2320 | /* confdefs.h. */ | |
2321 | _ACEOF | |
2322 | cat confdefs.h >>conftest.$ac_ext | |
2323 | cat >>conftest.$ac_ext <<_ACEOF | |
2324 | /* end confdefs.h. */ | |
2325 | ||
2326 | int | |
2327 | main () | |
2328 | { | |
2329 | ||
2330 | ; | |
2331 | return 0; | |
2332 | } | |
2333 | _ACEOF | |
2334 | ac_clean_files_save=$ac_clean_files | |
2335 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2336 | # Try to create an executable without -o first, disregard a.out. | |
2337 | # It will help us diagnose broken compilers, and finding out an intuition | |
2338 | # of exeext. | |
2339 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2340 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2341 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2342 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2343 | (eval $ac_link_default) 2>&5 | |
2344 | ac_status=$? | |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); }; then | |
2347 | # Find the output, starting from the most likely. This scheme is | |
2348 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2349 | # resort. | |
2350 | ||
2351 | # Be careful to initialize this variable, since it used to be cached. | |
2352 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2353 | ac_cv_exeext= | |
2354 | # b.out is created by i960 compilers. | |
2355 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2356 | do | |
2357 | test -f "$ac_file" || continue | |
2358 | case $ac_file in | |
2359 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2360 | ;; | |
2361 | conftest.$ac_ext ) | |
2362 | # This is the source file. | |
2363 | ;; | |
2364 | [ab].out ) | |
2365 | # We found the default executable, but exeext='' is most | |
2366 | # certainly right. | |
2367 | break;; | |
2368 | *.* ) | |
2369 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2370 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2371 | # but it would be cool to find out if it's true. Does anybody | |
2372 | # maintain Libtool? --akim. | |
2373 | export ac_cv_exeext | |
2374 | break;; | |
2375 | * ) | |
2376 | break;; | |
2377 | esac | |
2378 | done | |
2379 | else | |
2380 | echo "$as_me: failed program was:" >&5 | |
2381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2382 | ||
2383 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2384 | See \`config.log' for more details." >&5 | |
2385 | echo "$as_me: error: C compiler cannot create executables | |
2386 | See \`config.log' for more details." >&2;} | |
2387 | { (exit 77); exit 77; }; } | |
2388 | fi | |
2389 | ||
2390 | ac_exeext=$ac_cv_exeext | |
2391 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2392 | echo "${ECHO_T}$ac_file" >&6 | |
2393 | ||
2394 | # Check the compiler produces executables we can run. If not, either | |
2395 | # the compiler is broken, or we cross compile. | |
2396 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2397 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2398 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2399 | # If not cross compiling, check that we can run a simple program. | |
2400 | if test "$cross_compiling" != yes; then | |
2401 | if { ac_try='./$ac_file' | |
2402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2403 | (eval $ac_try) 2>&5 | |
2404 | ac_status=$? | |
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2406 | (exit $ac_status); }; }; then | |
2407 | cross_compiling=no | |
dfac8a13 | 2408 | else |
a8aea176 NN |
2409 | if test "$cross_compiling" = maybe; then |
2410 | cross_compiling=yes | |
2411 | else | |
2412 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2413 | If you meant to cross compile, use \`--host'. | |
2414 | See \`config.log' for more details." >&5 | |
2415 | echo "$as_me: error: cannot run C compiled programs. | |
2416 | If you meant to cross compile, use \`--host'. | |
2417 | See \`config.log' for more details." >&2;} | |
2418 | { (exit 1); exit 1; }; } | |
2419 | fi | |
dfac8a13 | 2420 | fi |
a8aea176 NN |
2421 | fi |
2422 | echo "$as_me:$LINENO: result: yes" >&5 | |
2423 | echo "${ECHO_T}yes" >&6 | |
2424 | ||
2425 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2426 | ac_clean_files=$ac_clean_files_save | |
2427 | # Check the compiler produces executables we can run. If not, either | |
2428 | # the compiler is broken, or we cross compile. | |
2429 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2430 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2431 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2432 | echo "${ECHO_T}$cross_compiling" >&6 | |
2433 | ||
2434 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2435 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2437 | (eval $ac_link) 2>&5 | |
2438 | ac_status=$? | |
2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2440 | (exit $ac_status); }; then | |
2441 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2442 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2443 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2444 | # `rm'. | |
2445 | for ac_file in conftest.exe conftest conftest.*; do | |
2446 | test -f "$ac_file" || continue | |
2447 | case $ac_file in | |
2448 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2449 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2450 | export ac_cv_exeext | |
2451 | break;; | |
2452 | * ) break;; | |
2453 | esac | |
2454 | done | |
dfac8a13 | 2455 | else |
a8aea176 NN |
2456 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2457 | See \`config.log' for more details." >&5 | |
2458 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2459 | See \`config.log' for more details." >&2;} | |
2460 | { (exit 1); exit 1; }; } | |
2461 | fi | |
2462 | ||
2463 | rm -f conftest$ac_cv_exeext | |
2464 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2465 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2466 | ||
2467 | rm -f conftest.$ac_ext | |
2468 | EXEEXT=$ac_cv_exeext | |
2469 | ac_exeext=$EXEEXT | |
2470 | fi | |
2471 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2472 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2473 | if test "${ac_cv_objext+set}" = set; then | |
2474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d836b57 | 2475 | else |
a8aea176 NN |
2476 | cat >conftest.$ac_ext <<_ACEOF |
2477 | /* confdefs.h. */ | |
2478 | _ACEOF | |
2479 | cat confdefs.h >>conftest.$ac_ext | |
2480 | cat >>conftest.$ac_ext <<_ACEOF | |
2481 | /* end confdefs.h. */ | |
5d836b57 | 2482 | |
a8aea176 NN |
2483 | int |
2484 | main () | |
2485 | { | |
5d836b57 | 2486 | |
a8aea176 NN |
2487 | ; |
2488 | return 0; | |
2489 | } | |
2490 | _ACEOF | |
2491 | rm -f conftest.o conftest.obj | |
2492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2493 | (eval $ac_compile) 2>&5 | |
2494 | ac_status=$? | |
2495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2496 | (exit $ac_status); }; then | |
2497 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2498 | case $ac_file in | |
2499 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2500 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2501 | break;; | |
2502 | esac | |
2503 | done | |
5d836b57 | 2504 | else |
a8aea176 NN |
2505 | echo "$as_me: failed program was:" >&5 |
2506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2507 | ||
2508 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2509 | See \`config.log' for more details." >&5 | |
2510 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2511 | See \`config.log' for more details." >&2;} | |
2512 | { (exit 1); exit 1; }; } | |
5d836b57 TT |
2513 | fi |
2514 | ||
a8aea176 NN |
2515 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2516 | fi | |
2517 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2518 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2519 | OBJEXT=$ac_cv_objext | |
2520 | ac_objext=$OBJEXT | |
2521 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2522 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2523 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d836b57 | 2525 | else |
a8aea176 NN |
2526 | cat >conftest.$ac_ext <<_ACEOF |
2527 | /* confdefs.h. */ | |
2528 | _ACEOF | |
2529 | cat confdefs.h >>conftest.$ac_ext | |
2530 | cat >>conftest.$ac_ext <<_ACEOF | |
2531 | /* end confdefs.h. */ | |
5d836b57 | 2532 | |
a8aea176 NN |
2533 | int |
2534 | main () | |
2535 | { | |
2536 | #ifndef __GNUC__ | |
2537 | choke me | |
2538 | #endif | |
2539 | ||
2540 | ; | |
2541 | return 0; | |
2542 | } | |
2543 | _ACEOF | |
2544 | rm -f conftest.$ac_objext | |
2545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2546 | (eval $ac_compile) 2>conftest.er1 | |
2547 | ac_status=$? | |
2548 | grep -v '^ *+' conftest.er1 >conftest.err | |
2549 | rm -f conftest.er1 | |
2550 | cat conftest.err >&5 | |
2551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2552 | (exit $ac_status); } && | |
17210dff TT |
2553 | { ac_try='test -z "$ac_c_werror_flag" |
2554 | || test ! -s conftest.err' | |
a8aea176 NN |
2555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2556 | (eval $ac_try) 2>&5 | |
2557 | ac_status=$? | |
2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2559 | (exit $ac_status); }; } && | |
2560 | { ac_try='test -s conftest.$ac_objext' | |
2561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2562 | (eval $ac_try) 2>&5 | |
2563 | ac_status=$? | |
2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2565 | (exit $ac_status); }; }; then | |
2566 | ac_compiler_gnu=yes | |
5d836b57 | 2567 | else |
a8aea176 NN |
2568 | echo "$as_me: failed program was:" >&5 |
2569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2570 | ||
2571 | ac_compiler_gnu=no | |
5d836b57 | 2572 | fi |
a8aea176 NN |
2573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2574 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5d836b57 | 2575 | |
a8aea176 NN |
2576 | fi |
2577 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2578 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2579 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2580 | ac_test_CFLAGS=${CFLAGS+set} | |
2581 | ac_save_CFLAGS=$CFLAGS | |
2582 | CFLAGS="-g" | |
2583 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2584 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2585 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2587 | else | |
2588 | cat >conftest.$ac_ext <<_ACEOF | |
2589 | /* confdefs.h. */ | |
2590 | _ACEOF | |
2591 | cat confdefs.h >>conftest.$ac_ext | |
2592 | cat >>conftest.$ac_ext <<_ACEOF | |
2593 | /* end confdefs.h. */ | |
5d836b57 | 2594 | |
a8aea176 NN |
2595 | int |
2596 | main () | |
2597 | { | |
5d836b57 | 2598 | |
a8aea176 NN |
2599 | ; |
2600 | return 0; | |
2601 | } | |
2602 | _ACEOF | |
2603 | rm -f conftest.$ac_objext | |
2604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2605 | (eval $ac_compile) 2>conftest.er1 | |
2606 | ac_status=$? | |
2607 | grep -v '^ *+' conftest.er1 >conftest.err | |
2608 | rm -f conftest.er1 | |
2609 | cat conftest.err >&5 | |
2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2611 | (exit $ac_status); } && | |
17210dff TT |
2612 | { ac_try='test -z "$ac_c_werror_flag" |
2613 | || test ! -s conftest.err' | |
a8aea176 NN |
2614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2615 | (eval $ac_try) 2>&5 | |
2616 | ac_status=$? | |
2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2618 | (exit $ac_status); }; } && | |
2619 | { ac_try='test -s conftest.$ac_objext' | |
2620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2621 | (eval $ac_try) 2>&5 | |
2622 | ac_status=$? | |
2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2624 | (exit $ac_status); }; }; then | |
2625 | ac_cv_prog_cc_g=yes | |
5d836b57 | 2626 | else |
a8aea176 NN |
2627 | echo "$as_me: failed program was:" >&5 |
2628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2629 | ||
2630 | ac_cv_prog_cc_g=no | |
2631 | fi | |
2632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2633 | fi | |
2634 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2635 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2636 | if test "$ac_test_CFLAGS" = set; then | |
2637 | CFLAGS=$ac_save_CFLAGS | |
2638 | elif test $ac_cv_prog_cc_g = yes; then | |
2639 | if test "$GCC" = yes; then | |
2640 | CFLAGS="-g -O2" | |
2641 | else | |
2642 | CFLAGS="-g" | |
2643 | fi | |
5d836b57 | 2644 | else |
a8aea176 NN |
2645 | if test "$GCC" = yes; then |
2646 | CFLAGS="-O2" | |
5d836b57 | 2647 | else |
a8aea176 | 2648 | CFLAGS= |
5d836b57 | 2649 | fi |
5d836b57 | 2650 | fi |
a8aea176 NN |
2651 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2652 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2653 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2655 | else | |
2656 | ac_cv_prog_cc_stdc=no | |
2657 | ac_save_CC=$CC | |
2658 | cat >conftest.$ac_ext <<_ACEOF | |
2659 | /* confdefs.h. */ | |
2660 | _ACEOF | |
2661 | cat confdefs.h >>conftest.$ac_ext | |
2662 | cat >>conftest.$ac_ext <<_ACEOF | |
2663 | /* end confdefs.h. */ | |
2664 | #include <stdarg.h> | |
2665 | #include <stdio.h> | |
2666 | #include <sys/types.h> | |
2667 | #include <sys/stat.h> | |
2668 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2669 | struct buf { int x; }; | |
2670 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2671 | static char *e (p, i) | |
2672 | char **p; | |
2673 | int i; | |
2674 | { | |
2675 | return p[i]; | |
2676 | } | |
2677 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2678 | { | |
2679 | char *s; | |
2680 | va_list v; | |
2681 | va_start (v,p); | |
2682 | s = g (p, va_arg (v,int)); | |
2683 | va_end (v); | |
2684 | return s; | |
2685 | } | |
5d836b57 | 2686 | |
a8aea176 NN |
2687 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2688 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2689 | These don't provoke an error unfortunately, instead are silently treated | |
2690 | as 'x'. The following induces an error, until -std1 is added to get | |
2691 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2692 | array size at least. It's necessary to write '\x00'==0 to get something | |
2693 | that's true only with -std1. */ | |
2694 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2695 | ||
2696 | int test (int i, double x); | |
2697 | struct s1 {int (*f) (int a);}; | |
2698 | struct s2 {int (*f) (double a);}; | |
2699 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2700 | int argc; | |
2701 | char **argv; | |
2702 | int | |
2703 | main () | |
2704 | { | |
2705 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2706 | ; | |
2707 | return 0; | |
2708 | } | |
2709 | _ACEOF | |
2710 | # Don't try gcc -ansi; that turns off useful extensions and | |
2711 | # breaks some systems' header files. | |
2712 | # AIX -qlanglvl=ansi | |
2713 | # Ultrix and OSF/1 -std1 | |
2714 | # HP-UX 10.20 and later -Ae | |
2715 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2716 | # SVR4 -Xc -D__EXTENSIONS__ | |
2717 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2718 | do | |
2719 | CC="$ac_save_CC $ac_arg" | |
2720 | rm -f conftest.$ac_objext | |
2721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2722 | (eval $ac_compile) 2>conftest.er1 | |
2723 | ac_status=$? | |
2724 | grep -v '^ *+' conftest.er1 >conftest.err | |
2725 | rm -f conftest.er1 | |
2726 | cat conftest.err >&5 | |
2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2728 | (exit $ac_status); } && | |
17210dff TT |
2729 | { ac_try='test -z "$ac_c_werror_flag" |
2730 | || test ! -s conftest.err' | |
a8aea176 NN |
2731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2732 | (eval $ac_try) 2>&5 | |
2733 | ac_status=$? | |
2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2735 | (exit $ac_status); }; } && | |
2736 | { ac_try='test -s conftest.$ac_objext' | |
2737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2738 | (eval $ac_try) 2>&5 | |
2739 | ac_status=$? | |
2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2741 | (exit $ac_status); }; }; then | |
2742 | ac_cv_prog_cc_stdc=$ac_arg | |
2743 | break | |
2744 | else | |
2745 | echo "$as_me: failed program was:" >&5 | |
2746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2747 | ||
2748 | fi | |
2749 | rm -f conftest.err conftest.$ac_objext | |
2750 | done | |
2751 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2752 | CC=$ac_save_CC | |
2753 | ||
2754 | fi | |
2755 | ||
2756 | case "x$ac_cv_prog_cc_stdc" in | |
2757 | x|xno) | |
2758 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2759 | echo "${ECHO_T}none needed" >&6 ;; | |
2760 | *) | |
2761 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2762 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2763 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2764 | esac | |
2765 | ||
2766 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2767 | # in C++ we need to declare it. In case someone uses the same compiler | |
2768 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2769 | # the declaration of exit, since it's the most demanding environment. | |
2770 | cat >conftest.$ac_ext <<_ACEOF | |
2771 | #ifndef __cplusplus | |
2772 | choke me | |
2773 | #endif | |
2774 | _ACEOF | |
2775 | rm -f conftest.$ac_objext | |
2776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2777 | (eval $ac_compile) 2>conftest.er1 | |
2778 | ac_status=$? | |
2779 | grep -v '^ *+' conftest.er1 >conftest.err | |
2780 | rm -f conftest.er1 | |
2781 | cat conftest.err >&5 | |
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2783 | (exit $ac_status); } && | |
17210dff TT |
2784 | { ac_try='test -z "$ac_c_werror_flag" |
2785 | || test ! -s conftest.err' | |
a8aea176 NN |
2786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2787 | (eval $ac_try) 2>&5 | |
2788 | ac_status=$? | |
2789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2790 | (exit $ac_status); }; } && | |
2791 | { ac_try='test -s conftest.$ac_objext' | |
2792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2793 | (eval $ac_try) 2>&5 | |
2794 | ac_status=$? | |
2795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2796 | (exit $ac_status); }; }; then | |
2797 | for ac_declaration in \ | |
2798 | '' \ | |
2799 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2800 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2801 | 'extern "C" void exit (int) throw ();' \ | |
2802 | 'extern "C" void exit (int);' \ | |
2803 | 'void exit (int);' | |
2804 | do | |
2805 | cat >conftest.$ac_ext <<_ACEOF | |
2806 | /* confdefs.h. */ | |
2807 | _ACEOF | |
2808 | cat confdefs.h >>conftest.$ac_ext | |
2809 | cat >>conftest.$ac_ext <<_ACEOF | |
2810 | /* end confdefs.h. */ | |
2811 | $ac_declaration | |
2812 | #include <stdlib.h> | |
2813 | int | |
2814 | main () | |
2815 | { | |
2816 | exit (42); | |
2817 | ; | |
2818 | return 0; | |
2819 | } | |
2820 | _ACEOF | |
2821 | rm -f conftest.$ac_objext | |
2822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2823 | (eval $ac_compile) 2>conftest.er1 | |
2824 | ac_status=$? | |
2825 | grep -v '^ *+' conftest.er1 >conftest.err | |
2826 | rm -f conftest.er1 | |
2827 | cat conftest.err >&5 | |
2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2829 | (exit $ac_status); } && | |
17210dff TT |
2830 | { ac_try='test -z "$ac_c_werror_flag" |
2831 | || test ! -s conftest.err' | |
a8aea176 NN |
2832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2833 | (eval $ac_try) 2>&5 | |
2834 | ac_status=$? | |
2835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2836 | (exit $ac_status); }; } && | |
2837 | { ac_try='test -s conftest.$ac_objext' | |
2838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2839 | (eval $ac_try) 2>&5 | |
2840 | ac_status=$? | |
2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2842 | (exit $ac_status); }; }; then | |
2843 | : | |
2844 | else | |
2845 | echo "$as_me: failed program was:" >&5 | |
2846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2847 | ||
2848 | continue | |
2849 | fi | |
2850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2851 | cat >conftest.$ac_ext <<_ACEOF | |
2852 | /* confdefs.h. */ | |
2853 | _ACEOF | |
2854 | cat confdefs.h >>conftest.$ac_ext | |
2855 | cat >>conftest.$ac_ext <<_ACEOF | |
2856 | /* end confdefs.h. */ | |
2857 | $ac_declaration | |
2858 | int | |
2859 | main () | |
2860 | { | |
2861 | exit (42); | |
2862 | ; | |
2863 | return 0; | |
2864 | } | |
2865 | _ACEOF | |
2866 | rm -f conftest.$ac_objext | |
2867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2868 | (eval $ac_compile) 2>conftest.er1 | |
2869 | ac_status=$? | |
2870 | grep -v '^ *+' conftest.er1 >conftest.err | |
2871 | rm -f conftest.er1 | |
2872 | cat conftest.err >&5 | |
2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2874 | (exit $ac_status); } && | |
17210dff TT |
2875 | { ac_try='test -z "$ac_c_werror_flag" |
2876 | || test ! -s conftest.err' | |
a8aea176 NN |
2877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2878 | (eval $ac_try) 2>&5 | |
2879 | ac_status=$? | |
2880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2881 | (exit $ac_status); }; } && | |
2882 | { ac_try='test -s conftest.$ac_objext' | |
2883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2884 | (eval $ac_try) 2>&5 | |
2885 | ac_status=$? | |
2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2887 | (exit $ac_status); }; }; then | |
2888 | break | |
2889 | else | |
2890 | echo "$as_me: failed program was:" >&5 | |
2891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2892 | ||
2893 | fi | |
2894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2895 | done | |
2896 | rm -f conftest* | |
2897 | if test -n "$ac_declaration"; then | |
2898 | echo '#ifdef __cplusplus' >>confdefs.h | |
2899 | echo $ac_declaration >>confdefs.h | |
2900 | echo '#endif' >>confdefs.h | |
2901 | fi | |
2902 | ||
2903 | else | |
2904 | echo "$as_me: failed program was:" >&5 | |
2905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5d836b57 | 2906 | |
5d836b57 | 2907 | fi |
a8aea176 NN |
2908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2909 | ac_ext=c | |
2910 | ac_cpp='$CPP $CPPFLAGS' | |
2911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9fabf579 KC |
2914 | DEPDIR="${am__leading_dot}deps" |
2915 | ||
2916 | ac_config_commands="$ac_config_commands depfiles" | |
2917 | ||
2918 | ||
2919 | am_make=${MAKE-make} | |
2920 | cat > confinc << 'END' | |
2921 | am__doit: | |
2922 | @echo done | |
2923 | .PHONY: am__doit | |
2924 | END | |
2925 | # If we don't find an include directive, just comment out the code. | |
2926 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2927 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2928 | am__include="#" | |
2929 | am__quote= | |
2930 | _am_result=none | |
2931 | # First try GNU make style include. | |
2932 | echo "include confinc" > confmf | |
2933 | # We grep out `Entering directory' and `Leaving directory' | |
2934 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2935 | # In particular we don't look at `^make:' because GNU make might | |
2936 | # be invoked under some other name (usually "gmake"), in which | |
2937 | # case it prints its new name instead of `make'. | |
2938 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2939 | am__include=include | |
2940 | am__quote= | |
2941 | _am_result=GNU | |
2942 | fi | |
2943 | # Now try BSD make style include. | |
2944 | if test "$am__include" = "#"; then | |
2945 | echo '.include "confinc"' > confmf | |
2946 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2947 | am__include=.include | |
2948 | am__quote="\"" | |
2949 | _am_result=BSD | |
2950 | fi | |
2951 | fi | |
2952 | ||
2953 | ||
2954 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2955 | echo "${ECHO_T}$_am_result" >&6 | |
2956 | rm -f confinc confmf | |
2957 | ||
2958 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2959 | if test "${enable_dependency_tracking+set}" = set; then | |
2960 | enableval="$enable_dependency_tracking" | |
2961 | ||
2962 | fi; | |
2963 | if test "x$enable_dependency_tracking" != xno; then | |
2964 | am_depcomp="$ac_aux_dir/depcomp" | |
2965 | AMDEPBACKSLASH='\' | |
2966 | fi | |
2967 | ||
2968 | ||
2969 | if test "x$enable_dependency_tracking" != xno; then | |
2970 | AMDEP_TRUE= | |
2971 | AMDEP_FALSE='#' | |
2972 | else | |
2973 | AMDEP_TRUE='#' | |
2974 | AMDEP_FALSE= | |
2975 | fi | |
2976 | ||
2977 | ||
2978 | ||
2979 | ||
2980 | depcc="$CC" am_compiler_list= | |
2981 | ||
2982 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2983 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2984 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2986 | else | |
2987 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2988 | # We make a subdir and do the tests there. Otherwise we can end up | |
2989 | # making bogus files that we don't know about and never remove. For | |
2990 | # instance it was reported that on HP-UX the gcc test will end up | |
2991 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2992 | # in D'. | |
2993 | mkdir conftest.dir | |
2994 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2995 | # using a relative directory. | |
2996 | cp "$am_depcomp" conftest.dir | |
2997 | cd conftest.dir | |
2998 | # We will build objects and dependencies in a subdirectory because | |
2999 | # it helps to detect inapplicable dependency modes. For instance | |
3000 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3001 | # side effect of compilation, but ICC will put the dependencies in | |
3002 | # the current directory while Tru64 will put them in the object | |
3003 | # directory. | |
3004 | mkdir sub | |
3005 | ||
3006 | am_cv_CC_dependencies_compiler_type=none | |
3007 | if test "$am_compiler_list" = ""; then | |
3008 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3009 | fi | |
3010 | for depmode in $am_compiler_list; do | |
3011 | # Setup a source with many dependencies, because some compilers | |
3012 | # like to wrap large dependency lists on column 80 (with \), and | |
3013 | # we should not choose a depcomp mode which is confused by this. | |
3014 | # | |
3015 | # We need to recreate these files for each test, as the compiler may | |
3016 | # overwrite some of them when testing with obscure command lines. | |
3017 | # This happens at least with the AIX C compiler. | |
3018 | : > sub/conftest.c | |
3019 | for i in 1 2 3 4 5 6; do | |
3020 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
076e5443 PB |
3021 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3022 | # Solaris 8's {/usr,}/bin/sh. | |
3023 | touch sub/conftst$i.h | |
9fabf579 KC |
3024 | done |
3025 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3026 | ||
3027 | case $depmode in | |
3028 | nosideeffect) | |
3029 | # after this tag, mechanisms are not by side-effect, so they'll | |
3030 | # only be used when explicitly requested | |
3031 | if test "x$enable_dependency_tracking" = xyes; then | |
3032 | continue | |
3033 | else | |
3034 | break | |
3035 | fi | |
3036 | ;; | |
3037 | none) break ;; | |
3038 | esac | |
3039 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3040 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3041 | # handle `-M -o', and we need to detect this. | |
3042 | if depmode=$depmode \ | |
3043 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3044 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3045 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3046 | >/dev/null 2>conftest.err && | |
3047 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3048 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3049 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3050 | # icc doesn't choke on unknown options, it will just issue warnings | |
076e5443 PB |
3051 | # or remarks (even with -Werror). So we grep stderr for any message |
3052 | # that says an option was ignored or not supported. | |
3053 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3054 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3055 | # The diagnosis changed in icc 8.0: | |
3056 | # icc: Command line remark: option '-MP' not supported | |
3057 | if (grep 'ignoring option' conftest.err || | |
3058 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
9fabf579 KC |
3059 | am_cv_CC_dependencies_compiler_type=$depmode |
3060 | break | |
3061 | fi | |
3062 | fi | |
3063 | done | |
3064 | ||
3065 | cd .. | |
3066 | rm -rf conftest.dir | |
3067 | else | |
3068 | am_cv_CC_dependencies_compiler_type=none | |
3069 | fi | |
3070 | ||
3071 | fi | |
3072 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3073 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3074 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3075 | ||
3076 | ||
3077 | ||
3078 | if | |
3079 | test "x$enable_dependency_tracking" != xno \ | |
3080 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3081 | am__fastdepCC_TRUE= | |
3082 | am__fastdepCC_FALSE='#' | |
3083 | else | |
3084 | am__fastdepCC_TRUE='#' | |
3085 | am__fastdepCC_FALSE= | |
3086 | fi | |
3087 | ||
a8aea176 NN |
3088 | |
3089 | ||
076e5443 PB |
3090 | |
3091 | ||
3092 | ||
dfac8a13 TT |
3093 | # Check whether --enable-shared or --disable-shared was given. |
3094 | if test "${enable_shared+set}" = set; then | |
3095 | enableval="$enable_shared" | |
3096 | p=${PACKAGE-default} | |
0fd91e0a | 3097 | case $enableval in |
dfac8a13 TT |
3098 | yes) enable_shared=yes ;; |
3099 | no) enable_shared=no ;; | |
3100 | *) | |
3101 | enable_shared=no | |
3102 | # Look at the argument we got. We use all the common list separators. | |
3103 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3104 | for pkg in $enableval; do | |
3105 | if test "X$pkg" = "X$p"; then | |
3106 | enable_shared=yes | |
3107 | fi | |
3108 | done | |
3109 | IFS="$ac_save_ifs" | |
3110 | ;; | |
3111 | esac | |
3112 | else | |
3113 | enable_shared=yes | |
a8aea176 | 3114 | fi; |
dfac8a13 TT |
3115 | # Check whether --enable-static or --disable-static was given. |
3116 | if test "${enable_static+set}" = set; then | |
3117 | enableval="$enable_static" | |
3118 | p=${PACKAGE-default} | |
0fd91e0a | 3119 | case $enableval in |
dfac8a13 TT |
3120 | yes) enable_static=yes ;; |
3121 | no) enable_static=no ;; | |
3122 | *) | |
3123 | enable_static=no | |
3124 | # Look at the argument we got. We use all the common list separators. | |
3125 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3126 | for pkg in $enableval; do | |
3127 | if test "X$pkg" = "X$p"; then | |
3128 | enable_static=yes | |
3129 | fi | |
3130 | done | |
3131 | IFS="$ac_save_ifs" | |
3132 | ;; | |
3133 | esac | |
3134 | else | |
3135 | enable_static=yes | |
a8aea176 | 3136 | fi; |
dfac8a13 TT |
3137 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3138 | if test "${enable_fast_install+set}" = set; then | |
3139 | enableval="$enable_fast_install" | |
3140 | p=${PACKAGE-default} | |
0fd91e0a | 3141 | case $enableval in |
dfac8a13 TT |
3142 | yes) enable_fast_install=yes ;; |
3143 | no) enable_fast_install=no ;; | |
3144 | *) | |
3145 | enable_fast_install=no | |
3146 | # Look at the argument we got. We use all the common list separators. | |
3147 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3148 | for pkg in $enableval; do | |
3149 | if test "X$pkg" = "X$p"; then | |
3150 | enable_fast_install=yes | |
3151 | fi | |
3152 | done | |
3153 | IFS="$ac_save_ifs" | |
3154 | ;; | |
3155 | esac | |
3156 | else | |
3157 | enable_fast_install=yes | |
a8aea176 | 3158 | fi; |
dfac8a13 | 3159 | |
dfac8a13 TT |
3160 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3161 | if test "${with_gnu_ld+set}" = set; then | |
3162 | withval="$with_gnu_ld" | |
3163 | test "$withval" = no || with_gnu_ld=yes | |
3164 | else | |
3165 | with_gnu_ld=no | |
a8aea176 | 3166 | fi; |
dfac8a13 | 3167 | ac_prog=ld |
0fd91e0a | 3168 | if test "$GCC" = yes; then |
dfac8a13 | 3169 | # Check if gcc -print-prog-name=ld gives a path. |
a8aea176 NN |
3170 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3171 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
0fd91e0a AO |
3172 | case $host in |
3173 | *-*-mingw*) | |
3174 | # gcc leaves a trailing carriage return which upsets mingw | |
3175 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3176 | *) | |
3177 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3178 | esac | |
3179 | case $ac_prog in | |
dfac8a13 | 3180 | # Accept absolute paths. |
0fd91e0a | 3181 | [\\/]* | [A-Za-z]:[\\/]*) |
dfac8a13 TT |
3182 | re_direlt='/[^/][^/]*/\.\./' |
3183 | # Canonicalize the path of ld | |
3184 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3185 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3186 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3187 | done | |
3188 | test -z "$LD" && LD="$ac_prog" | |
3189 | ;; | |
3190 | "") | |
3191 | # If it fails, then pretend we aren't using GCC. | |
3192 | ac_prog=ld | |
3193 | ;; | |
3194 | *) | |
3195 | # If it is relative, then search for the first ld in PATH. | |
3196 | with_gnu_ld=unknown | |
3197 | ;; | |
3198 | esac | |
3199 | elif test "$with_gnu_ld" = yes; then | |
a8aea176 NN |
3200 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3201 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
dfac8a13 | 3202 | else |
a8aea176 NN |
3203 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3204 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
dfac8a13 | 3205 | fi |
a8aea176 NN |
3206 | if test "${lt_cv_path_LD+set}" = set; then |
3207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 TT |
3208 | else |
3209 | if test -z "$LD"; then | |
0fd91e0a | 3210 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
dfac8a13 TT |
3211 | for ac_dir in $PATH; do |
3212 | test -z "$ac_dir" && ac_dir=. | |
0fd91e0a AO |
3213 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3214 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
dfac8a13 TT |
3215 | # Check to see if the program is GNU ld. I'd rather use --version, |
3216 | # but apparently some GNU ld's only accept -v. | |
3217 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
0fd91e0a | 3218 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
dfac8a13 TT |
3219 | test "$with_gnu_ld" != no && break |
3220 | else | |
3221 | test "$with_gnu_ld" != yes && break | |
3222 | fi | |
3223 | fi | |
3224 | done | |
3225 | IFS="$ac_save_ifs" | |
3226 | else | |
0fd91e0a | 3227 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
dfac8a13 TT |
3228 | fi |
3229 | fi | |
3230 | ||
0fd91e0a | 3231 | LD="$lt_cv_path_LD" |
dfac8a13 | 3232 | if test -n "$LD"; then |
a8aea176 NN |
3233 | echo "$as_me:$LINENO: result: $LD" >&5 |
3234 | echo "${ECHO_T}$LD" >&6 | |
dfac8a13 | 3235 | else |
a8aea176 NN |
3236 | echo "$as_me:$LINENO: result: no" >&5 |
3237 | echo "${ECHO_T}no" >&6 | |
3238 | fi | |
3239 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3240 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3241 | { (exit 1); exit 1; }; } | |
3242 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3243 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3244 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 TT |
3246 | else |
3247 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3248 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
0fd91e0a | 3249 | lt_cv_prog_gnu_ld=yes |
dfac8a13 | 3250 | else |
0fd91e0a | 3251 | lt_cv_prog_gnu_ld=no |
dfac8a13 TT |
3252 | fi |
3253 | fi | |
a8aea176 NN |
3254 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3255 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
0fd91e0a | 3256 | with_gnu_ld=$lt_cv_prog_gnu_ld |
dfac8a13 TT |
3257 | |
3258 | ||
a8aea176 NN |
3259 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3260 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3261 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fd91e0a AO |
3263 | else |
3264 | lt_cv_ld_reload_flag='-r' | |
3265 | fi | |
a8aea176 NN |
3266 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3267 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
0fd91e0a AO |
3268 | reload_flag=$lt_cv_ld_reload_flag |
3269 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3270 | ||
a8aea176 NN |
3271 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3272 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3273 | if test "${lt_cv_path_NM+set}" = set; then | |
3274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 TT |
3275 | else |
3276 | if test -n "$NM"; then | |
3277 | # Let the user override the test. | |
0fd91e0a | 3278 | lt_cv_path_NM="$NM" |
dfac8a13 | 3279 | else |
0fd91e0a | 3280 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
dfac8a13 TT |
3281 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3282 | test -z "$ac_dir" && ac_dir=. | |
0fd91e0a AO |
3283 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3284 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
dfac8a13 TT |
3285 | # Check to see if the nm accepts a BSD-compat flag. |
3286 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3287 | # nm: unknown option "B" ignored | |
0fd91e0a AO |
3288 | # Tru64's nm complains that /dev/null is an invalid object file |
3289 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3290 | lt_cv_path_NM="$tmp_nm -B" | |
dfac8a13 | 3291 | break |
0fd91e0a AO |
3292 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
3293 | lt_cv_path_NM="$tmp_nm -p" | |
dfac8a13 TT |
3294 | break |
3295 | else | |
0fd91e0a | 3296 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
dfac8a13 TT |
3297 | continue # so that we can try to find one that supports BSD flags |
3298 | fi | |
3299 | fi | |
3300 | done | |
3301 | IFS="$ac_save_ifs" | |
0fd91e0a | 3302 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
dfac8a13 TT |
3303 | fi |
3304 | fi | |
3305 | ||
0fd91e0a | 3306 | NM="$lt_cv_path_NM" |
a8aea176 NN |
3307 | echo "$as_me:$LINENO: result: $NM" >&5 |
3308 | echo "${ECHO_T}$NM" >&6 | |
3309 | ||
3310 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3311 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3312 | LN_S=$as_ln_s | |
3313 | if test "$LN_S" = "ln -s"; then | |
3314 | echo "$as_me:$LINENO: result: yes" >&5 | |
3315 | echo "${ECHO_T}yes" >&6 | |
0fd91e0a | 3316 | else |
a8aea176 NN |
3317 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3318 | echo "${ECHO_T}no, using $LN_S" >&6 | |
0fd91e0a | 3319 | fi |
025fd00e | 3320 | |
a8aea176 NN |
3321 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3322 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3323 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fd91e0a AO |
3325 | else |
3326 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3327 | lt_cv_file_magic_test_file= | |
3328 | lt_cv_deplibs_check_method='unknown' | |
3329 | # Need to set the preceding variable on all platforms that support | |
3330 | # interlibrary dependencies. | |
3331 | # 'none' -- dependencies not supported. | |
3332 | # `unknown' -- same as none, but documents that we really don't know. | |
3333 | # 'pass_all' -- all dependencies passed with no checks. | |
3334 | # 'test_compile' -- check by making test program. | |
3335 | # 'file_magic [regex]' -- check by looking for files in library path | |
3336 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3337 | # If you have `file' or equivalent on your system and you're not sure | |
3338 | # whether `pass_all' will *always* work, you probably want this one. | |
3339 | ||
3340 | case $host_os in | |
025fd00e | 3341 | aix*) |
0fd91e0a | 3342 | lt_cv_deplibs_check_method=pass_all |
025fd00e | 3343 | ;; |
025fd00e | 3344 | |
0fd91e0a AO |
3345 | beos*) |
3346 | lt_cv_deplibs_check_method=pass_all | |
3347 | ;; | |
025fd00e | 3348 | |
0fd91e0a AO |
3349 | bsdi4*) |
3350 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3351 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3352 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3353 | ;; | |
025fd00e | 3354 | |
0fd91e0a AO |
3355 | cygwin* | mingw* |pw32*) |
3356 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3357 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3358 | ;; | |
025fd00e | 3359 | |
0fd91e0a | 3360 | darwin* | rhapsody*) |
a8aea176 | 3361 | # this will be overwritten by pass_all, but leave it in just in case |
0fd91e0a AO |
3362 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
3363 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3364 | case "$host_os" in | |
3365 | rhapsody* | darwin1.012) | |
3366 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3367 | ;; | |
3368 | *) # Darwin 1.3 on | |
3369 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3370 | ;; | |
3371 | esac | |
a8aea176 | 3372 | lt_cv_deplibs_check_method=pass_all |
0fd91e0a | 3373 | ;; |
025fd00e | 3374 | |
076e5443 | 3375 | freebsd* | kfreebsd*-gnu) |
0fd91e0a AO |
3376 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3377 | case $host_cpu in | |
3378 | i*86 ) | |
3379 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3380 | # Let's accept both of them until this is cleared up. | |
3381 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3382 | lt_cv_file_magic_cmd=/usr/bin/file | |
3383 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3384 | ;; | |
3385 | esac | |
3386 | else | |
3387 | lt_cv_deplibs_check_method=pass_all | |
3388 | fi | |
3389 | ;; | |
025fd00e | 3390 | |
0fd91e0a AO |
3391 | gnu*) |
3392 | lt_cv_deplibs_check_method=pass_all | |
3393 | ;; | |
025fd00e | 3394 | |
0fd91e0a | 3395 | hpux10.20*|hpux11*) |
f5cc59a7 AO |
3396 | case $host_cpu in |
3397 | hppa*) | |
3398 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3399 | lt_cv_file_magic_cmd=/usr/bin/file | |
3400 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3401 | ;; | |
3402 | ia64*) | |
3403 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3404 | lt_cv_file_magic_cmd=/usr/bin/file | |
3405 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3406 | ;; | |
3407 | esac | |
0fd91e0a | 3408 | ;; |
025fd00e | 3409 | |
0fd91e0a AO |
3410 | irix5* | irix6*) |
3411 | case $host_os in | |
3412 | irix5*) | |
3413 | # this will be overridden with pass_all, but let us keep it just in case | |
3414 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3415 | ;; | |
3416 | *) | |
3417 | case $LD in | |
3418 | *-32|*"-32 ") libmagic=32-bit;; | |
3419 | *-n32|*"-n32 ") libmagic=N32;; | |
3420 | *-64|*"-64 ") libmagic=64-bit;; | |
3421 | *) libmagic=never-match;; | |
3422 | esac | |
3423 | # this will be overridden with pass_all, but let us keep it just in case | |
3424 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3425 | ;; | |
3426 | esac | |
3427 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3428 | lt_cv_deplibs_check_method=pass_all | |
3429 | ;; | |
025fd00e | 3430 | |
0fd91e0a AO |
3431 | # This must be Linux ELF. |
3432 | linux-gnu*) | |
2c92e90f | 3433 | lt_cv_deplibs_check_method=pass_all |
0fd91e0a | 3434 | ;; |
025fd00e | 3435 | |
076e5443 | 3436 | netbsd* | knetbsd*-gnu) |
0fd91e0a AO |
3437 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3438 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
025fd00e | 3439 | else |
0fd91e0a | 3440 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
025fd00e | 3441 | fi |
0fd91e0a | 3442 | ;; |
025fd00e | 3443 | |
0fd91e0a AO |
3444 | newsos6) |
3445 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3446 | lt_cv_file_magic_cmd=/usr/bin/file | |
3447 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3448 | ;; | |
025fd00e | 3449 | |
0fd91e0a AO |
3450 | osf3* | osf4* | osf5*) |
3451 | # this will be overridden with pass_all, but let us keep it just in case | |
3452 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3453 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3454 | lt_cv_deplibs_check_method=pass_all | |
3455 | ;; | |
025fd00e | 3456 | |
0fd91e0a AO |
3457 | sco3.2v5*) |
3458 | lt_cv_deplibs_check_method=pass_all | |
3459 | ;; | |
025fd00e | 3460 | |
0fd91e0a AO |
3461 | solaris*) |
3462 | lt_cv_deplibs_check_method=pass_all | |
3463 | lt_cv_file_magic_test_file=/lib/libc.so | |
3464 | ;; | |
025fd00e | 3465 | |
33456445 AO |
3466 | sysv5uw[78]* | sysv4*uw2*) |
3467 | lt_cv_deplibs_check_method=pass_all | |
3468 | ;; | |
3469 | ||
0fd91e0a AO |
3470 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
3471 | case $host_vendor in | |
3472 | ncr) | |
3473 | lt_cv_deplibs_check_method=pass_all | |
3474 | ;; | |
3475 | motorola) | |
3476 | 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]' | |
3477 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3478 | ;; | |
3479 | esac | |
3480 | ;; | |
3481 | esac | |
025fd00e TT |
3482 | |
3483 | fi | |
a8aea176 NN |
3484 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3485 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
0fd91e0a AO |
3486 | file_magic_cmd=$lt_cv_file_magic_cmd |
3487 | deplibs_check_method=$lt_cv_deplibs_check_method | |
025fd00e | 3488 | |
dfac8a13 | 3489 | |
0fd91e0a | 3490 | |
a8aea176 | 3491 | |
025fd00e | 3492 | |
0fd91e0a | 3493 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
dfac8a13 | 3494 | |
6dab073b MS |
3495 | # find the maximum length of command line arguments |
3496 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3497 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3498 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3500 | else | |
3501 | i=0 | |
3502 | teststring="ABCD" | |
3503 | ||
3504 | case $build_os in | |
3505 | msdosdjgpp*) | |
3506 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3507 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3508 | # during glob expansion). Even if it were fixed, the result of this | |
3509 | # check would be larger than it should be. | |
3510 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3511 | ;; | |
3512 | ||
3513 | cygwin* | mingw*) | |
3514 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3515 | # about 5 minutes as the teststring grows exponentially. | |
3516 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3517 | # you end up with a "frozen" computer, even though with patience | |
3518 | # the test eventually succeeds (with a max line length of 256k). | |
3519 | # Instead, let's just punt: use the minimum linelength reported by | |
3520 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3521 | lt_cv_sys_max_cmd_len=8192; | |
3522 | ;; | |
3523 | ||
3524 | amigaos*) | |
3525 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3526 | # So we just punt and use a minimum line length of 8192. | |
3527 | lt_cv_sys_max_cmd_len=8192; | |
3528 | ;; | |
3529 | ||
3530 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3531 | # This has been around since 386BSD, at least. Likely further. | |
3532 | if test -x /sbin/sysctl; then | |
3533 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3534 | elif test -x /usr/sbin/sysctl; then | |
3535 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3536 | else | |
3537 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3538 | fi | |
3539 | # And add a safety zone | |
3540 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
3541 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
3542 | ;; | |
3543 | esac | |
3544 | ||
3545 | fi | |
3546 | ||
f4c767fd | 3547 | if test -n "$lt_cv_sys_max_cmd_len" ; then |
6dab073b MS |
3548 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
3549 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
3550 | else | |
3551 | echo "$as_me:$LINENO: result: none" >&5 | |
3552 | echo "${ECHO_T}none" >&6 | |
3553 | fi | |
3554 | ||
3555 | ||
0fd91e0a AO |
3556 | # Only perform the check for file, if the check method requires it |
3557 | case $deplibs_check_method in | |
3558 | file_magic*) | |
3559 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
a8aea176 NN |
3560 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3561 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3562 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fd91e0a AO |
3564 | else |
3565 | case $MAGIC_CMD in | |
3566 | /*) | |
3567 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3568 | ;; | |
3569 | ?:/*) | |
3570 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3571 | ;; | |
3572 | *) | |
3573 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3575 | ac_dummy="/usr/bin:$PATH" | |
3576 | for ac_dir in $ac_dummy; do | |
3577 | test -z "$ac_dir" && ac_dir=. | |
3578 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3579 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
3580 | if test -n "$file_magic_test_file"; then | |
3581 | case $deplibs_check_method in | |
3582 | "file_magic "*) | |
3583 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3584 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3585 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3586 | egrep "$file_magic_regex" > /dev/null; then | |
3587 | : | |
3588 | else | |
3589 | cat <<EOF 1>&2 | |
dfac8a13 | 3590 | |
0fd91e0a AO |
3591 | *** Warning: the command libtool uses to detect shared libraries, |
3592 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3593 | *** The result is that libtool may fail to recognize shared libraries | |
3594 | *** as such. This will affect the creation of libtool libraries that | |
3595 | *** depend on shared libraries, but programs linked with such libtool | |
3596 | *** libraries will work regardless of this problem. Nevertheless, you | |
3597 | *** may want to report the problem to your system manager and/or to | |
3598 | *** bug-libtool@gnu.org | |
3599 | ||
3600 | EOF | |
3601 | fi ;; | |
3602 | esac | |
3603 | fi | |
3604 | break | |
3605 | fi | |
3606 | done | |
3607 | IFS="$ac_save_ifs" | |
3608 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
dfac8a13 | 3609 | ;; |
0fd91e0a AO |
3610 | esac |
3611 | fi | |
dfac8a13 | 3612 | |
0fd91e0a AO |
3613 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3614 | if test -n "$MAGIC_CMD"; then | |
a8aea176 NN |
3615 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3616 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
0fd91e0a | 3617 | else |
a8aea176 NN |
3618 | echo "$as_me:$LINENO: result: no" >&5 |
3619 | echo "${ECHO_T}no" >&6 | |
0fd91e0a AO |
3620 | fi |
3621 | ||
3622 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
3623 | if test -n "$ac_tool_prefix"; then | |
a8aea176 NN |
3624 | echo "$as_me:$LINENO: checking for file" >&5 |
3625 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3626 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 3628 | else |
0fd91e0a AO |
3629 | case $MAGIC_CMD in |
3630 | /*) | |
3631 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3632 | ;; | |
3633 | ?:/*) | |
3634 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3635 | ;; | |
3636 | *) | |
3637 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3639 | ac_dummy="/usr/bin:$PATH" | |
3640 | for ac_dir in $ac_dummy; do | |
3641 | test -z "$ac_dir" && ac_dir=. | |
3642 | if test -f $ac_dir/file; then | |
3643 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
3644 | if test -n "$file_magic_test_file"; then | |
3645 | case $deplibs_check_method in | |
3646 | "file_magic "*) | |
3647 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3648 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3649 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3650 | egrep "$file_magic_regex" > /dev/null; then | |
3651 | : | |
3652 | else | |
3653 | cat <<EOF 1>&2 | |
c45f211e | 3654 | |
0fd91e0a AO |
3655 | *** Warning: the command libtool uses to detect shared libraries, |
3656 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3657 | *** The result is that libtool may fail to recognize shared libraries | |
3658 | *** as such. This will affect the creation of libtool libraries that | |
3659 | *** depend on shared libraries, but programs linked with such libtool | |
3660 | *** libraries will work regardless of this problem. Nevertheless, you | |
3661 | *** may want to report the problem to your system manager and/or to | |
3662 | *** bug-libtool@gnu.org | |
dfac8a13 | 3663 | |
c45f211e | 3664 | EOF |
0fd91e0a AO |
3665 | fi ;; |
3666 | esac | |
3667 | fi | |
3668 | break | |
3669 | fi | |
3670 | done | |
3671 | IFS="$ac_save_ifs" | |
3672 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3673 | ;; | |
3674 | esac | |
3675 | fi | |
3676 | ||
3677 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3678 | if test -n "$MAGIC_CMD"; then | |
a8aea176 NN |
3679 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3680 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
dfac8a13 | 3681 | else |
a8aea176 NN |
3682 | echo "$as_me:$LINENO: result: no" >&5 |
3683 | echo "${ECHO_T}no" >&6 | |
dfac8a13 | 3684 | fi |
0fd91e0a AO |
3685 | |
3686 | else | |
3687 | MAGIC_CMD=: | |
3688 | fi | |
dfac8a13 TT |
3689 | fi |
3690 | ||
dfac8a13 TT |
3691 | fi |
3692 | ;; | |
0fd91e0a | 3693 | esac |
dfac8a13 | 3694 | |
a8aea176 NN |
3695 | if test -n "$ac_tool_prefix"; then |
3696 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
0fd91e0a | 3697 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
a8aea176 NN |
3698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3700 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
025fd00e | 3702 | else |
0fd91e0a AO |
3703 | if test -n "$RANLIB"; then |
3704 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
025fd00e | 3705 | else |
a8aea176 NN |
3706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3707 | for as_dir in $PATH | |
3708 | do | |
3709 | IFS=$as_save_IFS | |
3710 | test -z "$as_dir" && as_dir=. | |
3711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3713 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3715 | break 2 | |
3716 | fi | |
3717 | done | |
3718 | done | |
3719 | ||
025fd00e TT |
3720 | fi |
3721 | fi | |
a8aea176 | 3722 | RANLIB=$ac_cv_prog_RANLIB |
0fd91e0a | 3723 | if test -n "$RANLIB"; then |
a8aea176 NN |
3724 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3725 | echo "${ECHO_T}$RANLIB" >&6 | |
025fd00e | 3726 | else |
a8aea176 NN |
3727 | echo "$as_me:$LINENO: result: no" >&5 |
3728 | echo "${ECHO_T}no" >&6 | |
025fd00e TT |
3729 | fi |
3730 | ||
a8aea176 | 3731 | fi |
0fd91e0a | 3732 | if test -z "$ac_cv_prog_RANLIB"; then |
a8aea176 | 3733 | ac_ct_RANLIB=$RANLIB |
0fd91e0a AO |
3734 | # Extract the first word of "ranlib", so it can be a program name with args. |
3735 | set dummy ranlib; ac_word=$2 | |
a8aea176 NN |
3736 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3738 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
025fd00e | 3740 | else |
a8aea176 NN |
3741 | if test -n "$ac_ct_RANLIB"; then |
3742 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
025fd00e | 3743 | else |
a8aea176 NN |
3744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3745 | for as_dir in $PATH | |
3746 | do | |
3747 | IFS=$as_save_IFS | |
3748 | test -z "$as_dir" && as_dir=. | |
3749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3751 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3753 | break 2 | |
3754 | fi | |
3755 | done | |
3756 | done | |
3757 | ||
3758 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
025fd00e TT |
3759 | fi |
3760 | fi | |
a8aea176 NN |
3761 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3762 | if test -n "$ac_ct_RANLIB"; then | |
3763 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3764 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
025fd00e | 3765 | else |
a8aea176 NN |
3766 | echo "$as_me:$LINENO: result: no" >&5 |
3767 | echo "${ECHO_T}no" >&6 | |
025fd00e TT |
3768 | fi |
3769 | ||
a8aea176 | 3770 | RANLIB=$ac_ct_RANLIB |
025fd00e | 3771 | else |
a8aea176 | 3772 | RANLIB="$ac_cv_prog_RANLIB" |
025fd00e TT |
3773 | fi |
3774 | ||
a8aea176 NN |
3775 | if test -n "$ac_tool_prefix"; then |
3776 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
0fd91e0a | 3777 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
a8aea176 NN |
3778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3780 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
025fd00e | 3782 | else |
0fd91e0a AO |
3783 | if test -n "$STRIP"; then |
3784 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
025fd00e | 3785 | else |
a8aea176 NN |
3786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3787 | for as_dir in $PATH | |
3788 | do | |
3789 | IFS=$as_save_IFS | |
3790 | test -z "$as_dir" && as_dir=. | |
3791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3793 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3795 | break 2 | |
3796 | fi | |
3797 | done | |
3798 | done | |
3799 | ||
025fd00e TT |
3800 | fi |
3801 | fi | |
a8aea176 | 3802 | STRIP=$ac_cv_prog_STRIP |
0fd91e0a | 3803 | if test -n "$STRIP"; then |
a8aea176 NN |
3804 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3805 | echo "${ECHO_T}$STRIP" >&6 | |
025fd00e | 3806 | else |
a8aea176 NN |
3807 | echo "$as_me:$LINENO: result: no" >&5 |
3808 | echo "${ECHO_T}no" >&6 | |
025fd00e TT |
3809 | fi |
3810 | ||
a8aea176 | 3811 | fi |
0fd91e0a | 3812 | if test -z "$ac_cv_prog_STRIP"; then |
a8aea176 | 3813 | ac_ct_STRIP=$STRIP |
0fd91e0a AO |
3814 | # Extract the first word of "strip", so it can be a program name with args. |
3815 | set dummy strip; ac_word=$2 | |
a8aea176 NN |
3816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3818 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
025fd00e | 3820 | else |
a8aea176 NN |
3821 | if test -n "$ac_ct_STRIP"; then |
3822 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
025fd00e | 3823 | else |
a8aea176 NN |
3824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3825 | for as_dir in $PATH | |
3826 | do | |
3827 | IFS=$as_save_IFS | |
3828 | test -z "$as_dir" && as_dir=. | |
3829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3831 | ac_cv_prog_ac_ct_STRIP="strip" | |
3832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3833 | break 2 | |
3834 | fi | |
3835 | done | |
3836 | done | |
3837 | ||
3838 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
025fd00e TT |
3839 | fi |
3840 | fi | |
a8aea176 NN |
3841 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3842 | if test -n "$ac_ct_STRIP"; then | |
3843 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3844 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
025fd00e | 3845 | else |
a8aea176 NN |
3846 | echo "$as_me:$LINENO: result: no" >&5 |
3847 | echo "${ECHO_T}no" >&6 | |
025fd00e TT |
3848 | fi |
3849 | ||
a8aea176 | 3850 | STRIP=$ac_ct_STRIP |
025fd00e | 3851 | else |
a8aea176 | 3852 | STRIP="$ac_cv_prog_STRIP" |
025fd00e TT |
3853 | fi |
3854 | ||
3855 | ||
0fd91e0a AO |
3856 | # Check for any special flags to pass to ltconfig. |
3857 | libtool_flags="--cache-file=$cache_file" | |
3858 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3859 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3860 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
3861 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
3862 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
c45f211e | 3863 | |
025fd00e TT |
3864 | |
3865 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3866 | if test "${enable_libtool_lock+set}" = set; then | |
3867 | enableval="$enable_libtool_lock" | |
0fd91e0a | 3868 | |
a8aea176 | 3869 | fi; |
0fd91e0a AO |
3870 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3871 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3872 | ||
a8aea176 | 3873 | |
0fd91e0a AO |
3874 | # Check whether --with-pic or --without-pic was given. |
3875 | if test "${with_pic+set}" = set; then | |
3876 | withval="$with_pic" | |
3877 | pic_mode="$withval" | |
025fd00e | 3878 | else |
0fd91e0a | 3879 | pic_mode=default |
a8aea176 | 3880 | fi; |
0fd91e0a AO |
3881 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3882 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3883 | ||
3884 | # Some flags need to be propagated to the compiler or linker for good | |
3885 | # libtool support. | |
3886 | case $host in | |
3887 | *-*-irix6*) | |
3888 | # Find out which ABI we are using. | |
8a489465 | 3889 | echo '#line 3889 "configure"' > conftest.$ac_ext |
a8aea176 NN |
3890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3891 | (eval $ac_compile) 2>&5 | |
3892 | ac_status=$? | |
3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3894 | (exit $ac_status); }; then | |
905280ac AO |
3895 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3896 | case `/usr/bin/file conftest.$ac_objext` in | |
3897 | *32-bit*) | |
3898 | LD="${LD-ld} -melf32bsmip" | |
3899 | ;; | |
3900 | *N32*) | |
3901 | LD="${LD-ld} -melf32bmipn32" | |
3902 | ;; | |
3903 | *64-bit*) | |
3904 | LD="${LD-ld} -melf64bmip" | |
3905 | ;; | |
3906 | esac | |
3907 | else | |
0fd91e0a AO |
3908 | case `/usr/bin/file conftest.$ac_objext` in |
3909 | *32-bit*) | |
3910 | LD="${LD-ld} -32" | |
3911 | ;; | |
3912 | *N32*) | |
3913 | LD="${LD-ld} -n32" | |
3914 | ;; | |
3915 | *64-bit*) | |
3916 | LD="${LD-ld} -64" | |
3917 | ;; | |
3918 | esac | |
905280ac | 3919 | fi |
0fd91e0a AO |
3920 | fi |
3921 | rm -rf conftest* | |
3922 | ;; | |
025fd00e | 3923 | |
f5cc59a7 AO |
3924 | ia64-*-hpux*) |
3925 | # Find out which ABI we are using. | |
3926 | echo 'int i;' > conftest.$ac_ext | |
a8aea176 NN |
3927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3928 | (eval $ac_compile) 2>&5 | |
3929 | ac_status=$? | |
3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3931 | (exit $ac_status); }; then | |
f5cc59a7 AO |
3932 | case "`/usr/bin/file conftest.o`" in |
3933 | *ELF-32*) | |
3934 | HPUX_IA64_MODE="32" | |
3935 | ;; | |
3936 | *ELF-64*) | |
3937 | HPUX_IA64_MODE="64" | |
3938 | ;; | |
3939 | esac | |
3940 | fi | |
3941 | rm -rf conftest* | |
3942 | ;; | |
3943 | ||
0ccf2c33 AO |
3944 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3945 | # Find out which ABI we are using. | |
3946 | echo 'int i;' > conftest.$ac_ext | |
a8aea176 NN |
3947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3948 | (eval $ac_compile) 2>&5 | |
3949 | ac_status=$? | |
3950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3951 | (exit $ac_status); }; then | |
0ccf2c33 AO |
3952 | case "`/usr/bin/file conftest.o`" in |
3953 | *32-bit*) | |
3954 | case $host in | |
3955 | x86_64-*linux*) | |
3956 | LD="${LD-ld} -m elf_i386" | |
3957 | ;; | |
e517f636 | 3958 | ppc64-*linux*|powerpc64-*linux*) |
0ccf2c33 AO |
3959 | LD="${LD-ld} -m elf32ppclinux" |
3960 | ;; | |
3961 | s390x-*linux*) | |
3962 | LD="${LD-ld} -m elf_s390" | |
3963 | ;; | |
3964 | sparc64-*linux*) | |
3965 | LD="${LD-ld} -m elf32_sparc" | |
3966 | ;; | |
3967 | esac | |
3968 | ;; | |
3969 | *64-bit*) | |
3970 | case $host in | |
3971 | x86_64-*linux*) | |
3972 | LD="${LD-ld} -m elf_x86_64" | |
3973 | ;; | |
3974 | ppc*-*linux*|powerpc*-*linux*) | |
3975 | LD="${LD-ld} -m elf64ppc" | |
3976 | ;; | |
3977 | s390*-*linux*) | |
3978 | LD="${LD-ld} -m elf64_s390" | |
3979 | ;; | |
3980 | sparc*-*linux*) | |
3981 | LD="${LD-ld} -m elf64_sparc" | |
3982 | ;; | |
3983 | esac | |
3984 | ;; | |
3985 | esac | |
3986 | fi | |
3987 | rm -rf conftest* | |
3988 | ;; | |
3989 | ||
0fd91e0a AO |
3990 | *-*-sco3.2v5*) |
3991 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3992 | SAVE_CFLAGS="$CFLAGS" | |
3993 | CFLAGS="$CFLAGS -belf" | |
a8aea176 NN |
3994 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3995 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3996 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fd91e0a | 3998 | else |
a8aea176 NN |
3999 | |
4000 | ||
0fd91e0a | 4001 | ac_ext=c |
0fd91e0a | 4002 | ac_cpp='$CPP $CPPFLAGS' |
a8aea176 NN |
4003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4006 | ||
4007 | if test x$gcc_no_link = xyes; then | |
4008 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4009 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4010 | { (exit 1); exit 1; }; } | |
4011 | fi | |
4012 | cat >conftest.$ac_ext <<_ACEOF | |
4013 | /* confdefs.h. */ | |
4014 | _ACEOF | |
4015 | cat confdefs.h >>conftest.$ac_ext | |
4016 | cat >>conftest.$ac_ext <<_ACEOF | |
4017 | /* end confdefs.h. */ | |
0fd91e0a | 4018 | |
a8aea176 NN |
4019 | int |
4020 | main () | |
4021 | { | |
0fd91e0a | 4022 | |
a8aea176 NN |
4023 | ; |
4024 | return 0; | |
4025 | } | |
4026 | _ACEOF | |
4027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4029 | (eval $ac_link) 2>conftest.er1 | |
4030 | ac_status=$? | |
4031 | grep -v '^ *+' conftest.er1 >conftest.err | |
4032 | rm -f conftest.er1 | |
4033 | cat conftest.err >&5 | |
4034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4035 | (exit $ac_status); } && | |
17210dff TT |
4036 | { ac_try='test -z "$ac_c_werror_flag" |
4037 | || test ! -s conftest.err' | |
a8aea176 NN |
4038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4039 | (eval $ac_try) 2>&5 | |
4040 | ac_status=$? | |
4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4042 | (exit $ac_status); }; } && | |
4043 | { ac_try='test -s conftest$ac_exeext' | |
4044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4045 | (eval $ac_try) 2>&5 | |
4046 | ac_status=$? | |
4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4048 | (exit $ac_status); }; }; then | |
0fd91e0a AO |
4049 | lt_cv_cc_needs_belf=yes |
4050 | else | |
a8aea176 NN |
4051 | echo "$as_me: failed program was:" >&5 |
4052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4053 | ||
4054 | lt_cv_cc_needs_belf=no | |
025fd00e | 4055 | fi |
a8aea176 NN |
4056 | rm -f conftest.err conftest.$ac_objext \ |
4057 | conftest$ac_exeext conftest.$ac_ext | |
0fd91e0a | 4058 | ac_ext=c |
0fd91e0a | 4059 | ac_cpp='$CPP $CPPFLAGS' |
a8aea176 NN |
4060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0fd91e0a AO |
4063 | |
4064 | fi | |
a8aea176 NN |
4065 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4066 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
0fd91e0a AO |
4067 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4068 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4069 | CFLAGS="$SAVE_CFLAGS" | |
4070 | fi | |
4071 | ;; | |
4072 | ||
4073 | ||
4074 | esac | |
025fd00e | 4075 | |
dfac8a13 TT |
4076 | |
4077 | # Save cache, so that ltconfig can load it | |
a8aea176 | 4078 | cat >confcache <<\_ACEOF |
dfac8a13 TT |
4079 | # This file is a shell script that caches the results of configure |
4080 | # tests run on this system so they can be shared between configure | |
a8aea176 NN |
4081 | # scripts and configure runs, see configure's option --config-cache. |
4082 | # It is not useful on other systems. If it contains results you don't | |
4083 | # want to keep, you may remove or edit it. | |
dfac8a13 | 4084 | # |
a8aea176 NN |
4085 | # config.status only pays attention to the cache file if you give it |
4086 | # the --recheck option to rerun configure. | |
dfac8a13 | 4087 | # |
a8aea176 NN |
4088 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4089 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4090 | # following values. | |
4091 | ||
4092 | _ACEOF | |
4093 | ||
dfac8a13 TT |
4094 | # The following way of writing the cache mishandles newlines in values, |
4095 | # but we know of no workaround that is simple, portable, and efficient. | |
4096 | # So, don't put newlines in cache variables' values. | |
4097 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4098 | # and sets the high bit in the cache file unless we assign to the vars. | |
a8aea176 NN |
4099 | { |
4100 | (set) 2>&1 | | |
4101 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4102 | *ac_space=\ *) | |
4103 | # `set' does not quote correctly, so add quotes (double-quote | |
4104 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4105 | sed -n \ | |
4106 | "s/'/'\\\\''/g; | |
4107 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4108 | ;; | |
4109 | *) | |
4110 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4111 | sed -n \ | |
4112 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4113 | ;; | |
4114 | esac; | |
4115 | } | | |
4116 | sed ' | |
4117 | t clear | |
4118 | : clear | |
4119 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4120 | t end | |
4121 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4122 | : end' >>confcache | |
4123 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
dfac8a13 | 4124 | if test -w $cache_file; then |
a8aea176 NN |
4125 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4126 | cat confcache >$cache_file | |
c45f211e | 4127 | else |
dfac8a13 | 4128 | echo "not updating unwritable cache $cache_file" |
c45f211e TT |
4129 | fi |
4130 | fi | |
dfac8a13 TT |
4131 | rm -f confcache |
4132 | ||
dfac8a13 | 4133 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
0fd91e0a AO |
4134 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
4135 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4136 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4137 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4138 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4139 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
dfac8a13 | 4140 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
0fd91e0a | 4141 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
a8aea176 NN |
4142 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4143 | echo "$as_me: error: libtool configure failed" >&2;} | |
4144 | { (exit 1); exit 1; }; } | |
dfac8a13 TT |
4145 | |
4146 | # Reload cache, that may have been modified by ltconfig | |
4147 | if test -r "$cache_file"; then | |
a8aea176 NN |
4148 | # Some versions of bash will fail to source /dev/null (special |
4149 | # files actually), so we avoid doing that. | |
4150 | if test -f "$cache_file"; then | |
4151 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4152 | echo "$as_me: loading cache $cache_file" >&6;} | |
4153 | case $cache_file in | |
4154 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4155 | *) . ./$cache_file;; | |
4156 | esac | |
4157 | fi | |
dfac8a13 | 4158 | else |
a8aea176 NN |
4159 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4160 | echo "$as_me: creating cache $cache_file" >&6;} | |
4161 | >$cache_file | |
dfac8a13 TT |
4162 | fi |
4163 | ||
4164 | ||
4165 | # This can be used to rebuild libtool when needed | |
0fd91e0a | 4166 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
dfac8a13 TT |
4167 | |
4168 | # Always use our own libtool. | |
4169 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4170 | ||
4171 | # Redirect the config.log output again, so that the ltconfig log is not | |
4172 | # clobbered by the next message. | |
4173 | exec 5>>./config.log | |
4174 | ||
0fd91e0a | 4175 | |
dfac8a13 | 4176 | |
a8aea176 NN |
4177 | |
4178 | ||
dfac8a13 TT |
4179 | |
4180 | ||
35241f18 CD |
4181 | # Find CPP now so that any conditional tests below won't do it and |
4182 | # thereby make the resulting definitions conditional. | |
a8aea176 NN |
4183 | ac_ext=c |
4184 | ac_cpp='$CPP $CPPFLAGS' | |
4185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4188 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4189 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
dfac8a13 TT |
4190 | # On Suns, sometimes $CPP names a directory. |
4191 | if test -n "$CPP" && test -d "$CPP"; then | |
4192 | CPP= | |
4193 | fi | |
4194 | if test -z "$CPP"; then | |
a8aea176 NN |
4195 | if test "${ac_cv_prog_CPP+set}" = set; then |
4196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 4197 | else |
a8aea176 NN |
4198 | # Double quotes because CPP needs to be expanded |
4199 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4200 | do | |
4201 | ac_preproc_ok=false | |
4202 | for ac_c_preproc_warn_flag in '' yes | |
4203 | do | |
4204 | # Use a header file that comes with gcc, so configuring glibc | |
4205 | # with a fresh cross-compiler works. | |
4206 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4207 | # <limits.h> exists even on freestanding compilers. | |
dfac8a13 | 4208 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a8aea176 NN |
4209 | # not just through cpp. "Syntax error" is here to catch this case. |
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 | #ifdef __STDC__ | |
4217 | # include <limits.h> | |
4218 | #else | |
4219 | # include <assert.h> | |
4220 | #endif | |
4221 | Syntax error | |
4222 | _ACEOF | |
4223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4225 | ac_status=$? | |
4226 | grep -v '^ *+' conftest.er1 >conftest.err | |
4227 | rm -f conftest.er1 | |
4228 | cat conftest.err >&5 | |
4229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4230 | (exit $ac_status); } >/dev/null; then | |
4231 | if test -s conftest.err; then | |
4232 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4234 | else | |
4235 | ac_cpp_err= | |
4236 | fi | |
dfac8a13 | 4237 | else |
a8aea176 NN |
4238 | ac_cpp_err=yes |
4239 | fi | |
4240 | if test -z "$ac_cpp_err"; then | |
dfac8a13 TT |
4241 | : |
4242 | else | |
a8aea176 NN |
4243 | echo "$as_me: failed program was:" >&5 |
4244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4245 | ||
4246 | # Broken: fails on valid input. | |
4247 | continue | |
4248 | fi | |
4249 | rm -f conftest.err conftest.$ac_ext | |
4250 | ||
4251 | # OK, works on sane cases. Now check whether non-existent headers | |
4252 | # can be detected and how. | |
4253 | cat >conftest.$ac_ext <<_ACEOF | |
4254 | /* confdefs.h. */ | |
4255 | _ACEOF | |
4256 | cat confdefs.h >>conftest.$ac_ext | |
4257 | cat >>conftest.$ac_ext <<_ACEOF | |
4258 | /* end confdefs.h. */ | |
4259 | #include <ac_nonexistent.h> | |
4260 | _ACEOF | |
4261 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4262 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4263 | ac_status=$? | |
4264 | grep -v '^ *+' conftest.er1 >conftest.err | |
4265 | rm -f conftest.er1 | |
4266 | cat conftest.err >&5 | |
4267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4268 | (exit $ac_status); } >/dev/null; then | |
4269 | if test -s conftest.err; then | |
4270 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4271 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4272 | else | |
4273 | ac_cpp_err= | |
4274 | fi | |
dfac8a13 | 4275 | else |
a8aea176 | 4276 | ac_cpp_err=yes |
dfac8a13 | 4277 | fi |
a8aea176 NN |
4278 | if test -z "$ac_cpp_err"; then |
4279 | # Broken: success on invalid input. | |
4280 | continue | |
4281 | else | |
4282 | echo "$as_me: failed program was:" >&5 | |
4283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4284 | ||
4285 | # Passes both tests. | |
4286 | ac_preproc_ok=: | |
4287 | break | |
dfac8a13 | 4288 | fi |
a8aea176 NN |
4289 | rm -f conftest.err conftest.$ac_ext |
4290 | ||
4291 | done | |
4292 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4293 | rm -f conftest.err conftest.$ac_ext | |
4294 | if $ac_preproc_ok; then | |
4295 | break | |
dfac8a13 | 4296 | fi |
a8aea176 NN |
4297 | |
4298 | done | |
4299 | ac_cv_prog_CPP=$CPP | |
4300 | ||
4301 | fi | |
4302 | CPP=$ac_cv_prog_CPP | |
4303 | else | |
4304 | ac_cv_prog_CPP=$CPP | |
4305 | fi | |
4306 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4307 | echo "${ECHO_T}$CPP" >&6 | |
4308 | ac_preproc_ok=false | |
4309 | for ac_c_preproc_warn_flag in '' yes | |
4310 | do | |
4311 | # Use a header file that comes with gcc, so configuring glibc | |
4312 | # with a fresh cross-compiler works. | |
4313 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4314 | # <limits.h> exists even on freestanding compilers. | |
4315 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4316 | # not just through cpp. "Syntax error" is here to catch this case. | |
4317 | cat >conftest.$ac_ext <<_ACEOF | |
4318 | /* confdefs.h. */ | |
4319 | _ACEOF | |
4320 | cat confdefs.h >>conftest.$ac_ext | |
4321 | cat >>conftest.$ac_ext <<_ACEOF | |
4322 | /* end confdefs.h. */ | |
4323 | #ifdef __STDC__ | |
4324 | # include <limits.h> | |
4325 | #else | |
4326 | # include <assert.h> | |
4327 | #endif | |
4328 | Syntax error | |
4329 | _ACEOF | |
4330 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4331 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4332 | ac_status=$? | |
4333 | grep -v '^ *+' conftest.er1 >conftest.err | |
4334 | rm -f conftest.er1 | |
4335 | cat conftest.err >&5 | |
4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4337 | (exit $ac_status); } >/dev/null; then | |
4338 | if test -s conftest.err; then | |
4339 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4340 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4341 | else | |
4342 | ac_cpp_err= | |
4343 | fi | |
4344 | else | |
4345 | ac_cpp_err=yes | |
4346 | fi | |
4347 | if test -z "$ac_cpp_err"; then | |
4348 | : | |
4349 | else | |
4350 | echo "$as_me: failed program was:" >&5 | |
4351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4352 | ||
4353 | # Broken: fails on valid input. | |
4354 | continue | |
4355 | fi | |
4356 | rm -f conftest.err conftest.$ac_ext | |
4357 | ||
4358 | # OK, works on sane cases. Now check whether non-existent headers | |
4359 | # can be detected and how. | |
4360 | cat >conftest.$ac_ext <<_ACEOF | |
4361 | /* confdefs.h. */ | |
4362 | _ACEOF | |
4363 | cat confdefs.h >>conftest.$ac_ext | |
4364 | cat >>conftest.$ac_ext <<_ACEOF | |
4365 | /* end confdefs.h. */ | |
4366 | #include <ac_nonexistent.h> | |
4367 | _ACEOF | |
4368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4370 | ac_status=$? | |
4371 | grep -v '^ *+' conftest.er1 >conftest.err | |
4372 | rm -f conftest.er1 | |
4373 | cat conftest.err >&5 | |
4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4375 | (exit $ac_status); } >/dev/null; then | |
4376 | if test -s conftest.err; then | |
4377 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4379 | else | |
4380 | ac_cpp_err= | |
4381 | fi | |
4382 | else | |
4383 | ac_cpp_err=yes | |
4384 | fi | |
4385 | if test -z "$ac_cpp_err"; then | |
4386 | # Broken: success on invalid input. | |
4387 | continue | |
4388 | else | |
4389 | echo "$as_me: failed program was:" >&5 | |
4390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4391 | ||
4392 | # Passes both tests. | |
4393 | ac_preproc_ok=: | |
4394 | break | |
dfac8a13 | 4395 | fi |
a8aea176 NN |
4396 | rm -f conftest.err conftest.$ac_ext |
4397 | ||
4398 | done | |
4399 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4400 | rm -f conftest.err conftest.$ac_ext | |
4401 | if $ac_preproc_ok; then | |
4402 | : | |
dfac8a13 | 4403 | else |
a8aea176 NN |
4404 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4405 | See \`config.log' for more details." >&5 | |
4406 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4407 | See \`config.log' for more details." >&2;} | |
4408 | { (exit 1); exit 1; }; } | |
dfac8a13 | 4409 | fi |
a8aea176 NN |
4410 | |
4411 | ac_ext=c | |
4412 | ac_cpp='$CPP $CPPFLAGS' | |
4413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dfac8a13 | 4416 | |
35241f18 CD |
4417 | |
4418 | if test -n "$with_cross_host"; then | |
4419 | # We are being configured with a cross compiler. AC_REPLACE_FUNCS | |
4420 | # may not work correctly, because the compiler may not be able to | |
4421 | # link executables. | |
4422 | ||
4423 | # We assume newlib. This lets us hard-code the functions we know | |
4424 | # we'll have. | |
a8aea176 | 4425 | cat >>confdefs.h <<\_ACEOF |
35241f18 | 4426 | #define HAVE_MEMCPY 1 |
a8aea176 | 4427 | _ACEOF |
35241f18 | 4428 | |
a8aea176 | 4429 | cat >>confdefs.h <<\_ACEOF |
35241f18 | 4430 | #define HAVE_STRERROR 1 |
a8aea176 | 4431 | _ACEOF |
35241f18 CD |
4432 | |
4433 | ||
4434 | # We ignore --with-system-zlib in this case. | |
4435 | target_all=libzgcj.la | |
4436 | else | |
a8aea176 NN |
4437 | if test x$gcc_no_link = xyes; then |
4438 | if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then | |
4439 | ac_cv_func_mmap_fixed_mapped=no | |
4440 | fi | |
dfac8a13 | 4441 | fi |
cd111813 | 4442 | if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then |
a8aea176 NN |
4443 | |
4444 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
4445 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4446 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 4448 | else |
a8aea176 NN |
4449 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4450 | then ac_cv_prog_egrep='grep -E' | |
4451 | else ac_cv_prog_egrep='egrep' | |
4452 | fi | |
c45f211e | 4453 | fi |
a8aea176 NN |
4454 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
4455 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4456 | EGREP=$ac_cv_prog_egrep | |
dfac8a13 | 4457 | |
dfac8a13 | 4458 | |
a8aea176 NN |
4459 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4460 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4461 | if test "${ac_cv_header_stdc+set}" = set; then | |
4462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4463 | else | |
4464 | cat >conftest.$ac_ext <<_ACEOF | |
4465 | /* confdefs.h. */ | |
4466 | _ACEOF | |
4467 | cat confdefs.h >>conftest.$ac_ext | |
4468 | cat >>conftest.$ac_ext <<_ACEOF | |
4469 | /* end confdefs.h. */ | |
4470 | #include <stdlib.h> | |
4471 | #include <stdarg.h> | |
4472 | #include <string.h> | |
4473 | #include <float.h> | |
dfac8a13 | 4474 | |
a8aea176 NN |
4475 | int |
4476 | main () | |
4477 | { | |
c45f211e | 4478 | |
a8aea176 NN |
4479 | ; |
4480 | return 0; | |
4481 | } | |
4482 | _ACEOF | |
4483 | rm -f conftest.$ac_objext | |
4484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4485 | (eval $ac_compile) 2>conftest.er1 | |
4486 | ac_status=$? | |
4487 | grep -v '^ *+' conftest.er1 >conftest.err | |
4488 | rm -f conftest.er1 | |
4489 | cat conftest.err >&5 | |
4490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4491 | (exit $ac_status); } && | |
17210dff TT |
4492 | { ac_try='test -z "$ac_c_werror_flag" |
4493 | || test ! -s conftest.err' | |
a8aea176 NN |
4494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4495 | (eval $ac_try) 2>&5 | |
4496 | ac_status=$? | |
4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4498 | (exit $ac_status); }; } && | |
4499 | { ac_try='test -s conftest.$ac_objext' | |
4500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4501 | (eval $ac_try) 2>&5 | |
4502 | ac_status=$? | |
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4504 | (exit $ac_status); }; }; then | |
4505 | ac_cv_header_stdc=yes | |
c45f211e | 4506 | else |
a8aea176 NN |
4507 | echo "$as_me: failed program was:" >&5 |
4508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4509 | ||
4510 | ac_cv_header_stdc=no | |
4511 | fi | |
4512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4513 | ||
4514 | if test $ac_cv_header_stdc = yes; then | |
4515 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4516 | cat >conftest.$ac_ext <<_ACEOF | |
4517 | /* confdefs.h. */ | |
4518 | _ACEOF | |
4519 | cat confdefs.h >>conftest.$ac_ext | |
4520 | cat >>conftest.$ac_ext <<_ACEOF | |
4521 | /* end confdefs.h. */ | |
4522 | #include <string.h> | |
4523 | ||
4524 | _ACEOF | |
4525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4526 | $EGREP "memchr" >/dev/null 2>&1; then | |
4527 | : | |
4528 | else | |
4529 | ac_cv_header_stdc=no | |
dfac8a13 TT |
4530 | fi |
4531 | rm -f conftest* | |
a8aea176 | 4532 | |
c45f211e TT |
4533 | fi |
4534 | ||
a8aea176 NN |
4535 | if test $ac_cv_header_stdc = yes; then |
4536 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4537 | cat >conftest.$ac_ext <<_ACEOF | |
4538 | /* confdefs.h. */ | |
4539 | _ACEOF | |
4540 | cat confdefs.h >>conftest.$ac_ext | |
4541 | cat >>conftest.$ac_ext <<_ACEOF | |
4542 | /* end confdefs.h. */ | |
4543 | #include <stdlib.h> | |
4544 | ||
4545 | _ACEOF | |
4546 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4547 | $EGREP "free" >/dev/null 2>&1; then | |
4548 | : | |
c45f211e | 4549 | else |
a8aea176 | 4550 | ac_cv_header_stdc=no |
c45f211e | 4551 | fi |
a8aea176 NN |
4552 | rm -f conftest* |
4553 | ||
4554 | fi | |
4555 | ||
4556 | if test $ac_cv_header_stdc = yes; then | |
4557 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4558 | if test "$cross_compiling" = yes; then | |
4559 | : | |
4560 | else | |
4561 | cat >conftest.$ac_ext <<_ACEOF | |
4562 | /* confdefs.h. */ | |
4563 | _ACEOF | |
4564 | cat confdefs.h >>conftest.$ac_ext | |
4565 | cat >>conftest.$ac_ext <<_ACEOF | |
4566 | /* end confdefs.h. */ | |
4567 | #include <ctype.h> | |
4568 | #if ((' ' & 0x0FF) == 0x020) | |
4569 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4570 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4571 | #else | |
4572 | # define ISLOWER(c) \ | |
4573 | (('a' <= (c) && (c) <= 'i') \ | |
4574 | || ('j' <= (c) && (c) <= 'r') \ | |
4575 | || ('s' <= (c) && (c) <= 'z')) | |
4576 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4577 | #endif | |
4578 | ||
4579 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4580 | int | |
4581 | main () | |
4582 | { | |
4583 | int i; | |
4584 | for (i = 0; i < 256; i++) | |
4585 | if (XOR (islower (i), ISLOWER (i)) | |
4586 | || toupper (i) != TOUPPER (i)) | |
4587 | exit(2); | |
4588 | exit (0); | |
4589 | } | |
4590 | _ACEOF | |
4591 | rm -f conftest$ac_exeext | |
4592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4593 | (eval $ac_link) 2>&5 | |
4594 | ac_status=$? | |
4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4596 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4598 | (eval $ac_try) 2>&5 | |
4599 | ac_status=$? | |
4600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4601 | (exit $ac_status); }; }; then | |
4602 | : | |
4603 | else | |
4604 | echo "$as_me: program exited with status $ac_status" >&5 | |
4605 | echo "$as_me: failed program was:" >&5 | |
4606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4607 | ||
4608 | ( exit $ac_status ) | |
4609 | ac_cv_header_stdc=no | |
4610 | fi | |
4611 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4612 | fi | |
4613 | fi | |
4614 | fi | |
4615 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4616 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4617 | if test $ac_cv_header_stdc = yes; then | |
4618 | ||
4619 | cat >>confdefs.h <<\_ACEOF | |
4620 | #define STDC_HEADERS 1 | |
4621 | _ACEOF | |
4622 | ||
4623 | fi | |
4624 | ||
4625 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4626 | ||
4627 | ||
dfac8a13 | 4628 | |
a8aea176 NN |
4629 | |
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4636 | inttypes.h stdint.h unistd.h | |
4637 | do | |
4638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4639 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4643 | else | |
4644 | cat >conftest.$ac_ext <<_ACEOF | |
4645 | /* confdefs.h. */ | |
4646 | _ACEOF | |
4647 | cat confdefs.h >>conftest.$ac_ext | |
4648 | cat >>conftest.$ac_ext <<_ACEOF | |
4649 | /* end confdefs.h. */ | |
4650 | $ac_includes_default | |
4651 | ||
4652 | #include <$ac_header> | |
4653 | _ACEOF | |
4654 | rm -f conftest.$ac_objext | |
4655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4656 | (eval $ac_compile) 2>conftest.er1 | |
4657 | ac_status=$? | |
4658 | grep -v '^ *+' conftest.er1 >conftest.err | |
4659 | rm -f conftest.er1 | |
4660 | cat conftest.err >&5 | |
4661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4662 | (exit $ac_status); } && | |
17210dff TT |
4663 | { ac_try='test -z "$ac_c_werror_flag" |
4664 | || test ! -s conftest.err' | |
a8aea176 NN |
4665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4666 | (eval $ac_try) 2>&5 | |
4667 | ac_status=$? | |
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4669 | (exit $ac_status); }; } && | |
4670 | { ac_try='test -s conftest.$ac_objext' | |
4671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4672 | (eval $ac_try) 2>&5 | |
4673 | ac_status=$? | |
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4675 | (exit $ac_status); }; }; then | |
4676 | eval "$as_ac_Header=yes" | |
4677 | else | |
4678 | echo "$as_me: failed program was:" >&5 | |
4679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4680 | ||
4681 | eval "$as_ac_Header=no" | |
4682 | fi | |
4683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4684 | fi | |
4685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4686 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4687 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4688 | cat >>confdefs.h <<_ACEOF | |
4689 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4690 | _ACEOF | |
4691 | ||
4692 | fi | |
4693 | ||
4694 | done | |
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | for ac_header in stdlib.h unistd.h | |
4700 | do | |
4701 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4703 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4705 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4707 | fi | |
4708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4709 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4710 | else | |
4711 | # Is the header compilable? | |
4712 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4713 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4714 | cat >conftest.$ac_ext <<_ACEOF | |
4715 | /* confdefs.h. */ | |
4716 | _ACEOF | |
4717 | cat confdefs.h >>conftest.$ac_ext | |
4718 | cat >>conftest.$ac_ext <<_ACEOF | |
4719 | /* end confdefs.h. */ | |
4720 | $ac_includes_default | |
4721 | #include <$ac_header> | |
4722 | _ACEOF | |
4723 | rm -f conftest.$ac_objext | |
4724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4725 | (eval $ac_compile) 2>conftest.er1 | |
4726 | ac_status=$? | |
4727 | grep -v '^ *+' conftest.er1 >conftest.err | |
4728 | rm -f conftest.er1 | |
4729 | cat conftest.err >&5 | |
4730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4731 | (exit $ac_status); } && | |
17210dff TT |
4732 | { ac_try='test -z "$ac_c_werror_flag" |
4733 | || test ! -s conftest.err' | |
a8aea176 NN |
4734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4735 | (eval $ac_try) 2>&5 | |
4736 | ac_status=$? | |
4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4738 | (exit $ac_status); }; } && | |
4739 | { ac_try='test -s conftest.$ac_objext' | |
4740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4741 | (eval $ac_try) 2>&5 | |
4742 | ac_status=$? | |
4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4744 | (exit $ac_status); }; }; then | |
4745 | ac_header_compiler=yes | |
4746 | else | |
4747 | echo "$as_me: failed program was:" >&5 | |
4748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4749 | ||
4750 | ac_header_compiler=no | |
4751 | fi | |
4752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4753 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4754 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4755 | ||
4756 | # Is the header present? | |
4757 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4758 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4759 | cat >conftest.$ac_ext <<_ACEOF | |
4760 | /* confdefs.h. */ | |
4761 | _ACEOF | |
4762 | cat confdefs.h >>conftest.$ac_ext | |
4763 | cat >>conftest.$ac_ext <<_ACEOF | |
4764 | /* end confdefs.h. */ | |
4765 | #include <$ac_header> | |
4766 | _ACEOF | |
4767 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4768 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4769 | ac_status=$? | |
4770 | grep -v '^ *+' conftest.er1 >conftest.err | |
4771 | rm -f conftest.er1 | |
4772 | cat conftest.err >&5 | |
4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4774 | (exit $ac_status); } >/dev/null; then | |
4775 | if test -s conftest.err; then | |
4776 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4777 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4778 | else | |
4779 | ac_cpp_err= | |
4780 | fi | |
4781 | else | |
4782 | ac_cpp_err=yes | |
4783 | fi | |
4784 | if test -z "$ac_cpp_err"; then | |
4785 | ac_header_preproc=yes | |
4786 | else | |
4787 | echo "$as_me: failed program was:" >&5 | |
4788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4789 | ||
4790 | ac_header_preproc=no | |
4791 | fi | |
4792 | rm -f conftest.err conftest.$ac_ext | |
4793 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4794 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4795 | ||
4796 | # So? What about this header? | |
4797 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4798 | yes:no: ) | |
4799 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4800 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4801 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4802 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4803 | ac_header_preproc=yes | |
4804 | ;; | |
4805 | no:yes:* ) | |
4806 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4807 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4808 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4809 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4810 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4811 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4812 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4813 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4814 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4815 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4816 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4817 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4818 | ( | |
4819 | cat <<\_ASBOX | |
4820 | ## ------------------------------------------ ## | |
4821 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4822 | ## ------------------------------------------ ## | |
4823 | _ASBOX | |
4824 | ) | | |
4825 | sed "s/^/$as_me: WARNING: /" >&2 | |
4826 | ;; | |
4827 | esac | |
4828 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4829 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4832 | else | |
4833 | eval "$as_ac_Header=\$ac_header_preproc" | |
4834 | fi | |
4835 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4836 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4837 | ||
4838 | fi | |
4839 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4840 | cat >>confdefs.h <<_ACEOF | |
4841 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4842 | _ACEOF | |
4843 | ||
4844 | fi | |
4845 | ||
4846 | done | |
4847 | ||
4848 | ||
4849 | for ac_func in getpagesize | |
4850 | do | |
4851 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4852 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4853 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4854 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4856 | else | |
4857 | if test x$gcc_no_link = xyes; then | |
4858 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4859 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4860 | { (exit 1); exit 1; }; } | |
4861 | fi | |
4862 | cat >conftest.$ac_ext <<_ACEOF | |
4863 | /* confdefs.h. */ | |
4864 | _ACEOF | |
4865 | cat confdefs.h >>conftest.$ac_ext | |
4866 | cat >>conftest.$ac_ext <<_ACEOF | |
4867 | /* end confdefs.h. */ | |
4868 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4869 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4870 | #define $ac_func innocuous_$ac_func | |
4871 | ||
4872 | /* System header to define __stub macros and hopefully few prototypes, | |
4873 | which can conflict with char $ac_func (); below. | |
4874 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4875 | <limits.h> exists even on freestanding compilers. */ | |
4876 | ||
4877 | #ifdef __STDC__ | |
4878 | # include <limits.h> | |
4879 | #else | |
4880 | # include <assert.h> | |
4881 | #endif | |
4882 | ||
4883 | #undef $ac_func | |
4884 | ||
4885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4886 | #ifdef __cplusplus | |
4887 | extern "C" | |
4888 | { | |
4889 | #endif | |
4890 | /* We use char because int might match the return type of a gcc2 | |
4891 | builtin and then its argument prototype would still apply. */ | |
4892 | char $ac_func (); | |
4893 | /* The GNU C library defines this for functions which it implements | |
4894 | to always fail with ENOSYS. Some functions are actually named | |
4895 | something starting with __ and the normal name is an alias. */ | |
4896 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4897 | choke me | |
4898 | #else | |
4899 | char (*f) () = $ac_func; | |
4900 | #endif | |
4901 | #ifdef __cplusplus | |
4902 | } | |
4903 | #endif | |
4904 | ||
4905 | int | |
4906 | main () | |
4907 | { | |
4908 | return f != $ac_func; | |
4909 | ; | |
4910 | return 0; | |
4911 | } | |
4912 | _ACEOF | |
4913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4915 | (eval $ac_link) 2>conftest.er1 | |
4916 | ac_status=$? | |
4917 | grep -v '^ *+' conftest.er1 >conftest.err | |
4918 | rm -f conftest.er1 | |
4919 | cat conftest.err >&5 | |
4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4921 | (exit $ac_status); } && | |
17210dff TT |
4922 | { ac_try='test -z "$ac_c_werror_flag" |
4923 | || test ! -s conftest.err' | |
a8aea176 NN |
4924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4925 | (eval $ac_try) 2>&5 | |
4926 | ac_status=$? | |
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4928 | (exit $ac_status); }; } && | |
4929 | { ac_try='test -s conftest$ac_exeext' | |
4930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4931 | (eval $ac_try) 2>&5 | |
4932 | ac_status=$? | |
4933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4934 | (exit $ac_status); }; }; then | |
4935 | eval "$as_ac_var=yes" | |
4936 | else | |
4937 | echo "$as_me: failed program was:" >&5 | |
4938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4939 | ||
4940 | eval "$as_ac_var=no" | |
4941 | fi | |
4942 | rm -f conftest.err conftest.$ac_objext \ | |
4943 | conftest$ac_exeext conftest.$ac_ext | |
4944 | fi | |
4945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4946 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4947 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4948 | cat >>confdefs.h <<_ACEOF | |
4949 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4950 | _ACEOF | |
4951 | ||
4952 | fi | |
4953 | done | |
4954 | ||
4955 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
4956 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4957 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 TT |
4959 | else |
4960 | if test "$cross_compiling" = yes; then | |
4961 | ac_cv_func_mmap_fixed_mapped=no | |
4962 | else | |
a8aea176 NN |
4963 | cat >conftest.$ac_ext <<_ACEOF |
4964 | /* confdefs.h. */ | |
4965 | _ACEOF | |
4966 | cat confdefs.h >>conftest.$ac_ext | |
4967 | cat >>conftest.$ac_ext <<_ACEOF | |
4968 | /* end confdefs.h. */ | |
4969 | $ac_includes_default | |
4970 | /* malloc might have been renamed as rpl_malloc. */ | |
4971 | #undef malloc | |
dfac8a13 TT |
4972 | |
4973 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4974 | Here is a matrix of mmap possibilities: | |
4975 | mmap private not fixed | |
4976 | mmap private fixed at somewhere currently unmapped | |
4977 | mmap private fixed at somewhere already mapped | |
4978 | mmap shared not fixed | |
4979 | mmap shared fixed at somewhere currently unmapped | |
4980 | mmap shared fixed at somewhere already mapped | |
4981 | For private mappings, we should verify that changes cannot be read() | |
4982 | back from the file, nor mmap's back from the file at a different | |
4983 | address. (There have been systems where private was not correctly | |
4984 | implemented like the infamous i386 svr4.0, and systems where the | |
a8aea176 | 4985 | VM page cache was not coherent with the file system buffer cache |
dfac8a13 TT |
4986 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
4987 | For shared mappings, we should conversely verify that changes get | |
a8aea176 | 4988 | propagated back to all the places they're supposed to be. |
c45f211e | 4989 | |
dfac8a13 TT |
4990 | Grep wants private fixed already mapped. |
4991 | The main things grep needs to know about mmap are: | |
4992 | * does it exist and is it safe to write into the mmap'd area | |
4993 | * how to use it (BSD variants) */ | |
a8aea176 | 4994 | |
dfac8a13 | 4995 | #include <fcntl.h> |
c45f211e | 4996 | #include <sys/mman.h> |
dfac8a13 | 4997 | |
a8aea176 NN |
4998 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
4999 | char *malloc (); | |
5000 | #endif | |
dfac8a13 | 5001 | |
a8aea176 NN |
5002 | /* This mess was copied from the GNU getpagesize.h. */ |
5003 | #if !HAVE_GETPAGESIZE | |
dfac8a13 | 5004 | /* Assume that all systems that can run configure have sys/param.h. */ |
a8aea176 | 5005 | # if !HAVE_SYS_PARAM_H |
dfac8a13 TT |
5006 | # define HAVE_SYS_PARAM_H 1 |
5007 | # endif | |
5008 | ||
5009 | # ifdef _SC_PAGESIZE | |
5010 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5011 | # else /* no _SC_PAGESIZE */ | |
a8aea176 | 5012 | # if HAVE_SYS_PARAM_H |
dfac8a13 TT |
5013 | # include <sys/param.h> |
5014 | # ifdef EXEC_PAGESIZE | |
5015 | # define getpagesize() EXEC_PAGESIZE | |
5016 | # else /* no EXEC_PAGESIZE */ | |
5017 | # ifdef NBPG | |
5018 | # define getpagesize() NBPG * CLSIZE | |
5019 | # ifndef CLSIZE | |
5020 | # define CLSIZE 1 | |
5021 | # endif /* no CLSIZE */ | |
5022 | # else /* no NBPG */ | |
5023 | # ifdef NBPC | |
5024 | # define getpagesize() NBPC | |
5025 | # else /* no NBPC */ | |
5026 | # ifdef PAGESIZE | |
5027 | # define getpagesize() PAGESIZE | |
5028 | # endif /* PAGESIZE */ | |
5029 | # endif /* no NBPC */ | |
5030 | # endif /* no NBPG */ | |
5031 | # endif /* no EXEC_PAGESIZE */ | |
5032 | # else /* no HAVE_SYS_PARAM_H */ | |
5033 | # define getpagesize() 8192 /* punt totally */ | |
5034 | # endif /* no HAVE_SYS_PARAM_H */ | |
5035 | # endif /* no _SC_PAGESIZE */ | |
5036 | ||
5037 | #endif /* no HAVE_GETPAGESIZE */ | |
5038 | ||
dfac8a13 | 5039 | int |
a8aea176 | 5040 | main () |
dfac8a13 | 5041 | { |
a8aea176 NN |
5042 | char *data, *data2, *data3; |
5043 | int i, pagesize; | |
5044 | int fd; | |
5045 | ||
5046 | pagesize = getpagesize (); | |
5047 | ||
5048 | /* First, make a file with some known garbage in it. */ | |
5049 | data = (char *) malloc (pagesize); | |
5050 | if (!data) | |
5051 | exit (1); | |
5052 | for (i = 0; i < pagesize; ++i) | |
5053 | *(data + i) = rand (); | |
5054 | umask (0); | |
5055 | fd = creat ("conftest.mmap", 0600); | |
5056 | if (fd < 0) | |
5057 | exit (1); | |
5058 | if (write (fd, data, pagesize) != pagesize) | |
5059 | exit (1); | |
5060 | close (fd); | |
5061 | ||
5062 | /* Next, try to mmap the file at a fixed address which already has | |
5063 | something else allocated at it. If we can, also make sure that | |
5064 | we see the same garbage. */ | |
5065 | fd = open ("conftest.mmap", O_RDWR); | |
5066 | if (fd < 0) | |
5067 | exit (1); | |
5068 | data2 = (char *) malloc (2 * pagesize); | |
5069 | if (!data2) | |
5070 | exit (1); | |
5071 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
5072 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5073 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5074 | exit (1); | |
5075 | for (i = 0; i < pagesize; ++i) | |
5076 | if (*(data + i) != *(data2 + i)) | |
5077 | exit (1); | |
5078 | ||
5079 | /* Finally, make sure that changes to the mapped area do not | |
5080 | percolate back to the file as seen by read(). (This is a bug on | |
5081 | some variants of i386 svr4.0.) */ | |
5082 | for (i = 0; i < pagesize; ++i) | |
5083 | *(data2 + i) = *(data2 + i) + 1; | |
5084 | data3 = (char *) malloc (pagesize); | |
5085 | if (!data3) | |
5086 | exit (1); | |
5087 | if (read (fd, data3, pagesize) != pagesize) | |
5088 | exit (1); | |
5089 | for (i = 0; i < pagesize; ++i) | |
5090 | if (*(data + i) != *(data3 + i)) | |
5091 | exit (1); | |
5092 | close (fd); | |
5093 | exit (0); | |
c45f211e | 5094 | } |
a8aea176 NN |
5095 | _ACEOF |
5096 | rm -f conftest$ac_exeext | |
5097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5098 | (eval $ac_link) 2>&5 | |
5099 | ac_status=$? | |
5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5101 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5103 | (eval $ac_try) 2>&5 | |
5104 | ac_status=$? | |
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5106 | (exit $ac_status); }; }; then | |
dfac8a13 TT |
5107 | ac_cv_func_mmap_fixed_mapped=yes |
5108 | else | |
a8aea176 NN |
5109 | echo "$as_me: program exited with status $ac_status" >&5 |
5110 | echo "$as_me: failed program was:" >&5 | |
5111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5112 | ||
5113 | ( exit $ac_status ) | |
5114 | ac_cv_func_mmap_fixed_mapped=no | |
dfac8a13 | 5115 | fi |
a8aea176 | 5116 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
dfac8a13 | 5117 | fi |
dfac8a13 | 5118 | fi |
a8aea176 NN |
5119 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
5120 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
dfac8a13 | 5121 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
a8aea176 NN |
5122 | |
5123 | cat >>confdefs.h <<\_ACEOF | |
dfac8a13 | 5124 | #define HAVE_MMAP 1 |
a8aea176 | 5125 | _ACEOF |
dfac8a13 TT |
5126 | |
5127 | fi | |
a8aea176 | 5128 | rm -f conftest.mmap |
dfac8a13 | 5129 | |
a8aea176 NN |
5130 | fi |
5131 | ||
5132 | ||
5133 | for ac_func in memcpy strerror | |
dfac8a13 | 5134 | do |
a8aea176 NN |
5135 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5136 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5137 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5138 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5140 | else | |
5141 | if test x$gcc_no_link = xyes; then | |
5142 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
5143 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
5144 | { (exit 1); exit 1; }; } | |
5145 | fi | |
5146 | cat >conftest.$ac_ext <<_ACEOF | |
5147 | /* confdefs.h. */ | |
5148 | _ACEOF | |
5149 | cat confdefs.h >>conftest.$ac_ext | |
5150 | cat >>conftest.$ac_ext <<_ACEOF | |
5151 | /* end confdefs.h. */ | |
5152 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5153 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5154 | #define $ac_func innocuous_$ac_func | |
5155 | ||
dfac8a13 | 5156 | /* System header to define __stub macros and hopefully few prototypes, |
a8aea176 NN |
5157 | which can conflict with char $ac_func (); below. |
5158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5159 | <limits.h> exists even on freestanding compilers. */ | |
5160 | ||
5161 | #ifdef __STDC__ | |
5162 | # include <limits.h> | |
5163 | #else | |
5164 | # include <assert.h> | |
5165 | #endif | |
dfac8a13 | 5166 | |
a8aea176 | 5167 | #undef $ac_func |
dfac8a13 | 5168 | |
a8aea176 NN |
5169 | /* Override any gcc2 internal prototype to avoid an error. */ |
5170 | #ifdef __cplusplus | |
5171 | extern "C" | |
5172 | { | |
5173 | #endif | |
5174 | /* We use char because int might match the return type of a gcc2 | |
5175 | builtin and then its argument prototype would still apply. */ | |
5176 | char $ac_func (); | |
dfac8a13 TT |
5177 | /* The GNU C library defines this for functions which it implements |
5178 | to always fail with ENOSYS. Some functions are actually named | |
5179 | something starting with __ and the normal name is an alias. */ | |
5180 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5181 | choke me | |
5182 | #else | |
a8aea176 NN |
5183 | char (*f) () = $ac_func; |
5184 | #endif | |
5185 | #ifdef __cplusplus | |
5186 | } | |
dfac8a13 TT |
5187 | #endif |
5188 | ||
a8aea176 NN |
5189 | int |
5190 | main () | |
5191 | { | |
5192 | return f != $ac_func; | |
5193 | ; | |
5194 | return 0; | |
5195 | } | |
5196 | _ACEOF | |
5197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5199 | (eval $ac_link) 2>conftest.er1 | |
5200 | ac_status=$? | |
5201 | grep -v '^ *+' conftest.er1 >conftest.err | |
5202 | rm -f conftest.er1 | |
5203 | cat conftest.err >&5 | |
5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5205 | (exit $ac_status); } && | |
17210dff TT |
5206 | { ac_try='test -z "$ac_c_werror_flag" |
5207 | || test ! -s conftest.err' | |
a8aea176 NN |
5208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5209 | (eval $ac_try) 2>&5 | |
5210 | ac_status=$? | |
5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5212 | (exit $ac_status); }; } && | |
5213 | { ac_try='test -s conftest$ac_exeext' | |
5214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5215 | (eval $ac_try) 2>&5 | |
5216 | ac_status=$? | |
5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5218 | (exit $ac_status); }; }; then | |
5219 | eval "$as_ac_var=yes" | |
dfac8a13 | 5220 | else |
a8aea176 NN |
5221 | echo "$as_me: failed program was:" >&5 |
5222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5223 | ||
5224 | eval "$as_ac_var=no" | |
dfac8a13 | 5225 | fi |
a8aea176 NN |
5226 | rm -f conftest.err conftest.$ac_objext \ |
5227 | conftest$ac_exeext conftest.$ac_ext | |
dfac8a13 | 5228 | fi |
a8aea176 NN |
5229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5231 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5232 | cat >>confdefs.h <<_ACEOF | |
5233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5234 | _ACEOF | |
dfac8a13 | 5235 | |
dfac8a13 TT |
5236 | fi |
5237 | done | |
5238 | ||
79a9a529 TT |
5239 | |
5240 | if test "$with_system_zlib" = yes; then | |
a8aea176 NN |
5241 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
5242 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
5243 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
79a9a529 | 5245 | else |
a8aea176 | 5246 | ac_check_lib_save_LIBS=$LIBS |
79a9a529 | 5247 | LIBS="-lz $LIBS" |
a8aea176 NN |
5248 | if test x$gcc_no_link = xyes; then |
5249 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
5250 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
5251 | { (exit 1); exit 1; }; } | |
5252 | fi | |
5253 | cat >conftest.$ac_ext <<_ACEOF | |
5254 | /* confdefs.h. */ | |
5255 | _ACEOF | |
5256 | cat confdefs.h >>conftest.$ac_ext | |
5257 | cat >>conftest.$ac_ext <<_ACEOF | |
5258 | /* end confdefs.h. */ | |
5259 | ||
79a9a529 | 5260 | /* Override any gcc2 internal prototype to avoid an error. */ |
a8aea176 NN |
5261 | #ifdef __cplusplus |
5262 | extern "C" | |
5263 | #endif | |
79a9a529 | 5264 | /* We use char because int might match the return type of a gcc2 |
a8aea176 NN |
5265 | builtin and then its argument prototype would still apply. */ |
5266 | char deflate (); | |
5267 | int | |
5268 | main () | |
5269 | { | |
5270 | deflate (); | |
5271 | ; | |
5272 | return 0; | |
5273 | } | |
5274 | _ACEOF | |
5275 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5277 | (eval $ac_link) 2>conftest.er1 | |
5278 | ac_status=$? | |
5279 | grep -v '^ *+' conftest.er1 >conftest.err | |
5280 | rm -f conftest.er1 | |
5281 | cat conftest.err >&5 | |
5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5283 | (exit $ac_status); } && | |
17210dff TT |
5284 | { ac_try='test -z "$ac_c_werror_flag" |
5285 | || test ! -s conftest.err' | |
a8aea176 NN |
5286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5287 | (eval $ac_try) 2>&5 | |
5288 | ac_status=$? | |
5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5290 | (exit $ac_status); }; } && | |
5291 | { ac_try='test -s conftest$ac_exeext' | |
5292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5293 | (eval $ac_try) 2>&5 | |
5294 | ac_status=$? | |
5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5296 | (exit $ac_status); }; }; then | |
5297 | ac_cv_lib_z_deflate=yes | |
79a9a529 | 5298 | else |
a8aea176 NN |
5299 | echo "$as_me: failed program was:" >&5 |
5300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
79a9a529 | 5301 | |
a8aea176 NN |
5302 | ac_cv_lib_z_deflate=no |
5303 | fi | |
5304 | rm -f conftest.err conftest.$ac_objext \ | |
5305 | conftest$ac_exeext conftest.$ac_ext | |
5306 | LIBS=$ac_check_lib_save_LIBS | |
79a9a529 | 5307 | fi |
a8aea176 NN |
5308 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
5309 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
5310 | if test $ac_cv_lib_z_deflate = yes; then | |
79a9a529 TT |
5311 | target_all= |
5312 | else | |
a8aea176 | 5313 | target_all=libzgcj.la |
79a9a529 TT |
5314 | fi |
5315 | ||
5316 | else | |
5317 | target_all=libzgcj.la | |
5318 | fi | |
5319 | fi | |
5320 | ||
5321 | ||
dfac8a13 | 5322 | |
a8aea176 NN |
5323 | |
5324 | for ac_header in unistd.h | |
dfac8a13 | 5325 | do |
a8aea176 NN |
5326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5332 | fi | |
5333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
dfac8a13 | 5335 | else |
a8aea176 NN |
5336 | # Is the header compilable? |
5337 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5338 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5339 | cat >conftest.$ac_ext <<_ACEOF | |
5340 | /* confdefs.h. */ | |
5341 | _ACEOF | |
5342 | cat confdefs.h >>conftest.$ac_ext | |
5343 | cat >>conftest.$ac_ext <<_ACEOF | |
5344 | /* end confdefs.h. */ | |
5345 | $ac_includes_default | |
5346 | #include <$ac_header> | |
5347 | _ACEOF | |
5348 | rm -f conftest.$ac_objext | |
5349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5350 | (eval $ac_compile) 2>conftest.er1 | |
5351 | ac_status=$? | |
5352 | grep -v '^ *+' conftest.er1 >conftest.err | |
5353 | rm -f conftest.er1 | |
5354 | cat conftest.err >&5 | |
5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5356 | (exit $ac_status); } && | |
17210dff TT |
5357 | { ac_try='test -z "$ac_c_werror_flag" |
5358 | || test ! -s conftest.err' | |
a8aea176 NN |
5359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5360 | (eval $ac_try) 2>&5 | |
5361 | ac_status=$? | |
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5363 | (exit $ac_status); }; } && | |
5364 | { ac_try='test -s conftest.$ac_objext' | |
5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5366 | (eval $ac_try) 2>&5 | |
5367 | ac_status=$? | |
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5369 | (exit $ac_status); }; }; then | |
5370 | ac_header_compiler=yes | |
5371 | else | |
5372 | echo "$as_me: failed program was:" >&5 | |
5373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5374 | ||
5375 | ac_header_compiler=no | |
5376 | fi | |
5377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5380 | ||
5381 | # Is the header present? | |
5382 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5384 | cat >conftest.$ac_ext <<_ACEOF | |
5385 | /* confdefs.h. */ | |
5386 | _ACEOF | |
5387 | cat confdefs.h >>conftest.$ac_ext | |
5388 | cat >>conftest.$ac_ext <<_ACEOF | |
5389 | /* end confdefs.h. */ | |
5390 | #include <$ac_header> | |
5391 | _ACEOF | |
5392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5394 | ac_status=$? | |
5395 | grep -v '^ *+' conftest.er1 >conftest.err | |
5396 | rm -f conftest.er1 | |
5397 | cat conftest.err >&5 | |
5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5399 | (exit $ac_status); } >/dev/null; then | |
5400 | if test -s conftest.err; then | |
5401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5403 | else | |
5404 | ac_cpp_err= | |
5405 | fi | |
5406 | else | |
5407 | ac_cpp_err=yes | |
dfac8a13 | 5408 | fi |
a8aea176 NN |
5409 | if test -z "$ac_cpp_err"; then |
5410 | ac_header_preproc=yes | |
5411 | else | |
5412 | echo "$as_me: failed program was:" >&5 | |
5413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5414 | ||
5415 | ac_header_preproc=no | |
5416 | fi | |
5417 | rm -f conftest.err conftest.$ac_ext | |
5418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5420 | ||
5421 | # So? What about this header? | |
5422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5423 | yes:no: ) | |
5424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5428 | ac_header_preproc=yes | |
5429 | ;; | |
5430 | no:yes:* ) | |
5431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5443 | ( | |
5444 | cat <<\_ASBOX | |
5445 | ## ------------------------------------------ ## | |
5446 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5447 | ## ------------------------------------------ ## | |
5448 | _ASBOX | |
5449 | ) | | |
5450 | sed "s/^/$as_me: WARNING: /" >&2 | |
5451 | ;; | |
5452 | esac | |
5453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dfac8a13 | 5457 | else |
a8aea176 | 5458 | eval "$as_ac_Header=\$ac_header_preproc" |
dfac8a13 | 5459 | fi |
a8aea176 NN |
5460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5462 | ||
5463 | fi | |
5464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5465 | cat >>confdefs.h <<_ACEOF | |
5466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5467 | _ACEOF | |
5468 | ||
5469 | fi | |
5470 | ||
dfac8a13 TT |
5471 | done |
5472 | ||
5473 | ||
0ccf2c33 AO |
5474 | if test -n "$with_cross_host" && |
5475 | test x"$with_cross_host" != x"no"; then | |
5476 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
5477 | toolexeclibdir='$(toolexecdir)/lib' | |
b48ed568 | 5478 | else |
0ccf2c33 AO |
5479 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' |
5480 | toolexeclibdir='$(libdir)' | |
b48ed568 | 5481 | fi |
905280ac AO |
5482 | if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then |
5483 | multiosdir=/`$CC -print-multi-os-directory` | |
ff8b9ca8 AS |
5484 | case $multiosdir in |
5485 | /.) multiosdir= ;; # Avoid trailing /. | |
5486 | esac | |
905280ac AO |
5487 | else |
5488 | multiosdir= | |
5489 | fi | |
5490 | toolexeclibdir=${toolexeclibdir}${multiosdir} | |
0ccf2c33 AO |
5491 | |
5492 | ||
5493 | ||
b48ed568 | 5494 | |
e093c992 AG |
5495 | |
5496 | if test -n "$with_target_subdir"; then | |
5497 | TARGET_LIBRARY_TRUE= | |
5498 | TARGET_LIBRARY_FALSE='#' | |
5499 | else | |
5500 | TARGET_LIBRARY_TRUE='#' | |
5501 | TARGET_LIBRARY_FALSE= | |
5502 | fi | |
5503 | ||
9fabf579 | 5504 | |
dfac8a13 TT |
5505 | if test "${multilib}" = "yes"; then |
5506 | multilib_arg="--enable-multilib" | |
5507 | else | |
5508 | multilib_arg= | |
5509 | fi | |
5510 | ||
a8aea176 NN |
5511 | ac_config_files="$ac_config_files Makefile" |
5512 | ||
a8aea176 | 5513 | cat >confcache <<\_ACEOF |
dfac8a13 TT |
5514 | # This file is a shell script that caches the results of configure |
5515 | # tests run on this system so they can be shared between configure | |
a8aea176 NN |
5516 | # scripts and configure runs, see configure's option --config-cache. |
5517 | # It is not useful on other systems. If it contains results you don't | |
5518 | # want to keep, you may remove or edit it. | |
dfac8a13 | 5519 | # |
a8aea176 NN |
5520 | # config.status only pays attention to the cache file if you give it |
5521 | # the --recheck option to rerun configure. | |
dfac8a13 | 5522 | # |
a8aea176 NN |
5523 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
5524 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5525 | # following values. | |
5526 | ||
5527 | _ACEOF | |
5528 | ||
dfac8a13 TT |
5529 | # The following way of writing the cache mishandles newlines in values, |
5530 | # but we know of no workaround that is simple, portable, and efficient. | |
5531 | # So, don't put newlines in cache variables' values. | |
5532 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5533 | # and sets the high bit in the cache file unless we assign to the vars. | |
a8aea176 NN |
5534 | { |
5535 | (set) 2>&1 | | |
5536 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5537 | *ac_space=\ *) | |
5538 | # `set' does not quote correctly, so add quotes (double-quote | |
5539 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5540 | sed -n \ | |
5541 | "s/'/'\\\\''/g; | |
5542 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5543 | ;; | |
5544 | *) | |
5545 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5546 | sed -n \ | |
5547 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
5548 | ;; | |
5549 | esac; | |
5550 | } | | |
5551 | sed ' | |
5552 | t clear | |
5553 | : clear | |
5554 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
5555 | t end | |
5556 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
5557 | : end' >>confcache | |
5558 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
dfac8a13 | 5559 | if test -w $cache_file; then |
a8aea176 NN |
5560 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
5561 | cat confcache >$cache_file | |
dfac8a13 TT |
5562 | else |
5563 | echo "not updating unwritable cache $cache_file" | |
5564 | fi | |
5565 | fi | |
5566 | rm -f confcache | |
5567 | ||
dfac8a13 TT |
5568 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5569 | # Let make expand exec_prefix. | |
5570 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5571 | ||
a8aea176 NN |
5572 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
5573 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
5574 | # trailing colons and then remove the whole line if VPATH becomes empty | |
5575 | # (actually we leave an empty line to preserve line numbers). | |
dfac8a13 | 5576 | if test "x$srcdir" = x.; then |
a8aea176 NN |
5577 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
5578 | s/:*\$(srcdir):*/:/; | |
5579 | s/:*\${srcdir}:*/:/; | |
5580 | s/:*@srcdir@:*/:/; | |
5581 | s/^\([^=]*=[ ]*\):*/\1/; | |
5582 | s/:*$//; | |
5583 | s/^[^=]*=[ ]*$//; | |
5584 | }' | |
c45f211e TT |
5585 | fi |
5586 | ||
dfac8a13 TT |
5587 | # Transform confdefs.h into DEFS. |
5588 | # Protect against shell expansion while executing Makefile rules. | |
5589 | # Protect against Makefile macro expansion. | |
a8aea176 NN |
5590 | # |
5591 | # If the first sed substitution is executed (which looks for macros that | |
5592 | # take arguments), then we branch to the quote section. Otherwise, | |
5593 | # look for a macro that doesn't take arguments. | |
5594 | cat >confdef2opt.sed <<\_ACEOF | |
5595 | t clear | |
5596 | : clear | |
5597 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
5598 | t quote | |
5599 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
5600 | t quote | |
5601 | d | |
5602 | : quote | |
5603 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
5604 | s,\[,\\&,g | |
5605 | s,\],\\&,g | |
5606 | s,\$,$$,g | |
5607 | p | |
5608 | _ACEOF | |
5609 | # We use echo to avoid assuming a particular line-breaking character. | |
5610 | # The extra dot is to prevent the shell from consuming trailing | |
5611 | # line-breaks from the sub-command output. A line-break within | |
5612 | # single-quotes doesn't work because, if this script is created in a | |
5613 | # platform that uses two characters for line-breaks (e.g., DOS), tr | |
5614 | # would break. | |
5615 | ac_LF_and_DOT=`echo; echo .` | |
5616 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
5617 | rm -f confdef2opt.sed | |
5618 | ||
5619 | ||
5620 | ac_libobjs= | |
5621 | ac_ltlibobjs= | |
5622 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5623 | # 1. Remove the extension, and $U if already installed. | |
5624 | ac_i=`echo "$ac_i" | | |
5625 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
5626 | # 2. Add them. | |
5627 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
5628 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
5629 | done | |
5630 | LIBOBJS=$ac_libobjs | |
dfac8a13 | 5631 | |
a8aea176 | 5632 | LTLIBOBJS=$ac_ltlibobjs |
dfac8a13 | 5633 | |
dfac8a13 | 5634 | |
9fabf579 KC |
5635 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5636 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
5637 | Usually this means the macro was only invoked conditionally." >&5 | |
5638 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
5639 | Usually this means the macro was only invoked conditionally." >&2;} | |
5640 | { (exit 1); exit 1; }; } | |
5641 | fi | |
5642 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5643 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
5644 | Usually this means the macro was only invoked conditionally." >&5 | |
5645 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
5646 | Usually this means the macro was only invoked conditionally." >&2;} | |
5647 | { (exit 1); exit 1; }; } | |
5648 | fi | |
5649 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5650 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
5651 | Usually this means the macro was only invoked conditionally." >&5 | |
5652 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
5653 | Usually this means the macro was only invoked conditionally." >&2;} | |
5654 | { (exit 1); exit 1; }; } | |
5655 | fi | |
5656 | if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then | |
5657 | { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined. | |
5658 | Usually this means the macro was only invoked conditionally." >&5 | |
5659 | echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined. | |
5660 | Usually this means the macro was only invoked conditionally." >&2;} | |
5661 | { (exit 1); exit 1; }; } | |
5662 | fi | |
a8aea176 NN |
5663 | |
5664 | : ${CONFIG_STATUS=./config.status} | |
5665 | ac_clean_files_save=$ac_clean_files | |
5666 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5667 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
5668 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5669 | cat >$CONFIG_STATUS <<_ACEOF | |
5670 | #! $SHELL | |
5671 | # Generated by $as_me. | |
dfac8a13 | 5672 | # Run this file to recreate the current configuration. |
dfac8a13 | 5673 | # Compiler output produced by configure, useful for debugging |
a8aea176 NN |
5674 | # configure, is in config.log if it exists. |
5675 | ||
5676 | debug=false | |
5677 | ac_cs_recheck=false | |
5678 | ac_cs_silent=false | |
5679 | SHELL=\${CONFIG_SHELL-$SHELL} | |
5680 | _ACEOF | |
5681 | ||
5682 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5683 | ## --------------------- ## | |
5684 | ## M4sh Initialization. ## | |
5685 | ## --------------------- ## | |
5686 | ||
5687 | # Be Bourne compatible | |
5688 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
5689 | emulate sh | |
5690 | NULLCMD=: | |
5691 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
5692 | # is contrary to our usage. Disable this feature. | |
5693 | alias -g '${1+"$@"}'='"$@"' | |
5694 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
5695 | set -o posix | |
5696 | fi | |
5697 | DUALCASE=1; export DUALCASE # for MKS sh | |
5698 | ||
5699 | # Support unset when possible. | |
5700 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5701 | as_unset=unset | |
5702 | else | |
5703 | as_unset=false | |
5704 | fi | |
dfac8a13 | 5705 | |
a8aea176 NN |
5706 | |
5707 | # Work around bugs in pre-3.0 UWIN ksh. | |
5708 | $as_unset ENV MAIL MAILPATH | |
5709 | PS1='$ ' | |
5710 | PS2='> ' | |
5711 | PS4='+ ' | |
5712 | ||
5713 | # NLS nuisances. | |
5714 | for as_var in \ | |
5715 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
5716 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
5717 | LC_TELEPHONE LC_TIME | |
dfac8a13 | 5718 | do |
a8aea176 NN |
5719 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
5720 | eval $as_var=C; export $as_var | |
5721 | else | |
5722 | $as_unset $as_var | |
5723 | fi | |
dfac8a13 TT |
5724 | done |
5725 | ||
a8aea176 NN |
5726 | # Required to use basename. |
5727 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5728 | as_expr=expr | |
5729 | else | |
5730 | as_expr=false | |
5731 | fi | |
dfac8a13 | 5732 | |
a8aea176 NN |
5733 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
5734 | as_basename=basename | |
5735 | else | |
5736 | as_basename=false | |
5737 | fi | |
5738 | ||
5739 | ||
5740 | # Name of the executable. | |
5741 | as_me=`$as_basename "$0" || | |
5742 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5743 | X"$0" : 'X\(//\)$' \| \ | |
5744 | X"$0" : 'X\(/\)$' \| \ | |
5745 | . : '\(.\)' 2>/dev/null || | |
5746 | echo X/"$0" | | |
5747 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
5748 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
5749 | /^X\/\(\/\).*/{ s//\1/; q; } | |
5750 | s/.*/./; q'` | |
5751 | ||
5752 | ||
5753 | # PATH needs CR, and LINENO needs CR and PATH. | |
5754 | # Avoid depending upon Character Ranges. | |
5755 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5756 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5757 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5758 | as_cr_digits='0123456789' | |
5759 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5760 | ||
5761 | # The user is always right. | |
5762 | if test "${PATH_SEPARATOR+set}" != set; then | |
5763 | echo "#! /bin/sh" >conf$$.sh | |
5764 | echo "exit 0" >>conf$$.sh | |
5765 | chmod +x conf$$.sh | |
5766 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5767 | PATH_SEPARATOR=';' | |
5768 | else | |
5769 | PATH_SEPARATOR=: | |
5770 | fi | |
5771 | rm -f conf$$.sh | |
5772 | fi | |
dfac8a13 | 5773 | |
dfac8a13 | 5774 | |
a8aea176 NN |
5775 | as_lineno_1=$LINENO |
5776 | as_lineno_2=$LINENO | |
5777 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
5778 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5779 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
5780 | # Find who we are. Look in the path if we contain no path at all | |
5781 | # relative or not. | |
5782 | case $0 in | |
5783 | *[\\/]* ) as_myself=$0 ;; | |
5784 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5785 | for as_dir in $PATH | |
5786 | do | |
5787 | IFS=$as_save_IFS | |
5788 | test -z "$as_dir" && as_dir=. | |
5789 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5790 | done | |
dfac8a13 | 5791 | |
a8aea176 NN |
5792 | ;; |
5793 | esac | |
5794 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5795 | # in which case we are not to be found in the path. | |
5796 | if test "x$as_myself" = x; then | |
5797 | as_myself=$0 | |
dfac8a13 | 5798 | fi |
a8aea176 NN |
5799 | if test ! -f "$as_myself"; then |
5800 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
5801 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
5802 | { (exit 1); exit 1; }; } | |
dfac8a13 | 5803 | fi |
a8aea176 NN |
5804 | case $CONFIG_SHELL in |
5805 | '') | |
5806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5807 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
5808 | do | |
5809 | IFS=$as_save_IFS | |
5810 | test -z "$as_dir" && as_dir=. | |
5811 | for as_base in sh bash ksh sh5; do | |
5812 | case $as_dir in | |
5813 | /*) | |
5814 | if ("$as_dir/$as_base" -c ' | |
5815 | as_lineno_1=$LINENO | |
5816 | as_lineno_2=$LINENO | |
5817 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
5818 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
5819 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
5820 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
5821 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
5822 | CONFIG_SHELL=$as_dir/$as_base | |
5823 | export CONFIG_SHELL | |
5824 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
5825 | fi;; | |
5826 | esac | |
5827 | done | |
dfac8a13 | 5828 | done |
a8aea176 NN |
5829 | ;; |
5830 | esac | |
dfac8a13 | 5831 | |
a8aea176 NN |
5832 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
5833 | # uniformly replaced by the line number. The first 'sed' inserts a | |
5834 | # line-number line before each line; the second 'sed' does the real | |
5835 | # work. The second script uses 'N' to pair each line-number line | |
5836 | # with the numbered line, and appends trailing '-' during | |
5837 | # substitution so that $LINENO is not a special case at line end. | |
5838 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
5839 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
5840 | sed '=' <$as_myself | | |
5841 | sed ' | |
5842 | N | |
5843 | s,$,-, | |
5844 | : loop | |
5845 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
5846 | t loop | |
5847 | s,-$,, | |
5848 | s,^['$as_cr_digits']*\n,, | |
5849 | ' >$as_me.lineno && | |
5850 | chmod +x $as_me.lineno || | |
5851 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
5852 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
5853 | { (exit 1); exit 1; }; } | |
5854 | ||
5855 | # Don't try to exec as it changes $[0], causing all sort of problems | |
5856 | # (the dirname of $[0] is not the place where we might find the | |
5857 | # original and so on. Autoconf is especially sensible to this). | |
5858 | . ./$as_me.lineno | |
5859 | # Exit status is that of the last command. | |
5860 | exit | |
5861 | } | |
dfac8a13 | 5862 | |
dfac8a13 | 5863 | |
a8aea176 NN |
5864 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
5865 | *c*,-n*) ECHO_N= ECHO_C=' | |
5866 | ' ECHO_T=' ' ;; | |
5867 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
5868 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
5869 | esac | |
dfac8a13 | 5870 | |
a8aea176 NN |
5871 | if expr a : '\(a\)' >/dev/null 2>&1; then |
5872 | as_expr=expr | |
5873 | else | |
5874 | as_expr=false | |
5875 | fi | |
5876 | ||
5877 | rm -f conf$$ conf$$.exe conf$$.file | |
5878 | echo >conf$$.file | |
5879 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5880 | # We could just check for DJGPP; but this test a) works b) is more generic | |
5881 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5882 | if test -f conf$$.exe; then | |
5883 | # Don't use ln at all; we don't have any links | |
5884 | as_ln_s='cp -p' | |
dfac8a13 | 5885 | else |
a8aea176 | 5886 | as_ln_s='ln -s' |
dfac8a13 | 5887 | fi |
a8aea176 NN |
5888 | elif ln conf$$.file conf$$ 2>/dev/null; then |
5889 | as_ln_s=ln | |
5890 | else | |
5891 | as_ln_s='cp -p' | |
5892 | fi | |
5893 | rm -f conf$$ conf$$.exe conf$$.file | |
dfac8a13 | 5894 | |
a8aea176 NN |
5895 | if mkdir -p . 2>/dev/null; then |
5896 | as_mkdir_p=: | |
5897 | else | |
5898 | test -d ./-p && rmdir ./-p | |
5899 | as_mkdir_p=false | |
5900 | fi | |
5901 | ||
5902 | as_executable_p="test -f" | |
dfac8a13 | 5903 | |
a8aea176 NN |
5904 | # Sed expression to map a string onto a valid CPP name. |
5905 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
5906 | ||
5907 | # Sed expression to map a string onto a valid variable name. | |
5908 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
5909 | ||
5910 | ||
5911 | # IFS | |
5912 | # We need space, tab and new line, in precisely that order. | |
5913 | as_nl=' | |
5914 | ' | |
5915 | IFS=" $as_nl" | |
5916 | ||
5917 | # CDPATH. | |
5918 | $as_unset CDPATH | |
5919 | ||
5920 | exec 6>&1 | |
5921 | ||
5922 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
5923 | # report actual input values of CONFIG_FILES etc. instead of their | |
5924 | # values after options handling. Logging --version etc. is OK. | |
5925 | exec 5>>config.log | |
5926 | { | |
5927 | echo | |
5928 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
5929 | ## Running $as_me. ## | |
5930 | _ASBOX | |
5931 | } >&5 | |
5932 | cat >&5 <<_CSEOF | |
5933 | ||
5934 | This file was extended by $as_me, which was | |
5935 | generated by GNU Autoconf 2.59. Invocation command line was | |
5936 | ||
5937 | CONFIG_FILES = $CONFIG_FILES | |
5938 | CONFIG_HEADERS = $CONFIG_HEADERS | |
5939 | CONFIG_LINKS = $CONFIG_LINKS | |
5940 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5941 | $ $0 $@ | |
5942 | ||
5943 | _CSEOF | |
5944 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
5945 | echo >&5 | |
5946 | _ACEOF | |
5947 | ||
5948 | # Files that config.status was made for. | |
5949 | if test -n "$ac_config_files"; then | |
5950 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
5951 | fi | |
5952 | ||
5953 | if test -n "$ac_config_headers"; then | |
5954 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
5955 | fi | |
5956 | ||
5957 | if test -n "$ac_config_links"; then | |
5958 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
5959 | fi | |
5960 | ||
5961 | if test -n "$ac_config_commands"; then | |
5962 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
5963 | fi | |
5964 | ||
5965 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5966 | ||
5967 | ac_cs_usage="\ | |
5968 | \`$as_me' instantiates files from templates according to the | |
5969 | current configuration. | |
5970 | ||
5971 | Usage: $0 [OPTIONS] [FILE]... | |
5972 | ||
5973 | -h, --help print this help, then exit | |
5974 | -V, --version print version number, then exit | |
5975 | -q, --quiet do not print progress messages | |
5976 | -d, --debug don't remove temporary files | |
5977 | --recheck update $as_me by reconfiguring in the same conditions | |
5978 | --file=FILE[:TEMPLATE] | |
5979 | instantiate the configuration file FILE | |
5980 | ||
5981 | Configuration files: | |
5982 | $config_files | |
5983 | ||
5984 | Configuration commands: | |
5985 | $config_commands | |
5986 | ||
5987 | Report bugs to <bug-autoconf@gnu.org>." | |
5988 | _ACEOF | |
5989 | ||
5990 | cat >>$CONFIG_STATUS <<_ACEOF | |
5991 | ac_cs_version="\\ | |
5992 | config.status | |
5993 | configured by $0, generated by GNU Autoconf 2.59, | |
5994 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
5995 | ||
5996 | Copyright (C) 2003 Free Software Foundation, Inc. | |
5997 | This config.status script is free software; the Free Software Foundation | |
5998 | gives unlimited permission to copy, distribute and modify it." | |
5999 | srcdir=$srcdir | |
6000 | INSTALL="$INSTALL" | |
6001 | _ACEOF | |
6002 | ||
6003 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6004 | # If no file are specified by the user, then we need to provide default | |
6005 | # value. By we need to know if files were specified by the user. | |
6006 | ac_need_defaults=: | |
6007 | while test $# != 0 | |
6008 | do | |
6009 | case $1 in | |
6010 | --*=*) | |
6011 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
6012 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6013 | ac_shift=: | |
6014 | ;; | |
6015 | -*) | |
6016 | ac_option=$1 | |
6017 | ac_optarg=$2 | |
6018 | ac_shift=shift | |
6019 | ;; | |
6020 | *) # This is not an option, so the user has probably given explicit | |
6021 | # arguments. | |
6022 | ac_option=$1 | |
6023 | ac_need_defaults=false;; | |
dfac8a13 TT |
6024 | esac |
6025 | ||
a8aea176 NN |
6026 | case $ac_option in |
6027 | # Handling of the options. | |
6028 | _ACEOF | |
6029 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6030 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6031 | ac_cs_recheck=: ;; | |
6032 | --version | --vers* | -V ) | |
6033 | echo "$ac_cs_version"; exit 0 ;; | |
6034 | --he | --h) | |
6035 | # Conflict between --help and --header | |
6036 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
6037 | Try \`$0 --help' for more information." >&5 | |
6038 | echo "$as_me: error: ambiguous option: $1 | |
6039 | Try \`$0 --help' for more information." >&2;} | |
6040 | { (exit 1); exit 1; }; };; | |
6041 | --help | --hel | -h ) | |
6042 | echo "$ac_cs_usage"; exit 0 ;; | |
6043 | --debug | --d* | -d ) | |
6044 | debug=: ;; | |
6045 | --file | --fil | --fi | --f ) | |
6046 | $ac_shift | |
6047 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
6048 | ac_need_defaults=false;; | |
6049 | --header | --heade | --head | --hea ) | |
6050 | $ac_shift | |
6051 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
6052 | ac_need_defaults=false;; | |
6053 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
6054 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6055 | ac_cs_silent=: ;; | |
6056 | ||
6057 | # This is an error. | |
6058 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
6059 | Try \`$0 --help' for more information." >&5 | |
6060 | echo "$as_me: error: unrecognized option: $1 | |
6061 | Try \`$0 --help' for more information." >&2;} | |
6062 | { (exit 1); exit 1; }; } ;; | |
6063 | ||
6064 | *) ac_config_targets="$ac_config_targets $1" ;; | |
6065 | ||
dfac8a13 | 6066 | esac |
a8aea176 NN |
6067 | shift |
6068 | done | |
dfac8a13 | 6069 | |
a8aea176 NN |
6070 | ac_configure_extra_args= |
6071 | ||
6072 | if $ac_cs_silent; then | |
6073 | exec 6>/dev/null | |
6074 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6075 | fi | |
6076 | ||
6077 | _ACEOF | |
6078 | cat >>$CONFIG_STATUS <<_ACEOF | |
6079 | if \$ac_cs_recheck; then | |
6080 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
6081 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6082 | fi | |
6083 | ||
6084 | _ACEOF | |
6085 | ||
6086 | cat >>$CONFIG_STATUS <<_ACEOF | |
6087 | # | |
6088 | # INIT-COMMANDS section. | |
6089 | # | |
dfac8a13 | 6090 | |
076e5443 PB |
6091 | |
6092 | srcdir="$srcdir" | |
6093 | host="$host" | |
6094 | target="$target" | |
6095 | with_multisubdir="$with_multisubdir" | |
6096 | with_multisrctop="$with_multisrctop" | |
6097 | with_target_subdir="$with_target_subdir" | |
dfac8a13 | 6098 | ac_configure_args="${multilib_arg} ${ac_configure_args}" |
076e5443 | 6099 | multi_basedir="$multi_basedir" |
dfac8a13 | 6100 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
076e5443 PB |
6101 | CC="$CC" |
6102 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
a8aea176 NN |
6103 | |
6104 | _ACEOF | |
6105 | ||
6106 | ||
6107 | ||
6108 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6109 | for ac_config_target in $ac_config_targets | |
6110 | do | |
6111 | case "$ac_config_target" in | |
6112 | # Handling of arguments. | |
6113 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
076e5443 | 6114 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
9fabf579 | 6115 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
a8aea176 NN |
6116 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
6117 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6118 | { (exit 1); exit 1; }; };; | |
6119 | esac | |
6120 | done | |
6121 | ||
6122 | # If the user did not use the arguments to specify the items to instantiate, | |
6123 | # then the envvar interface is used. Set only those that are not. | |
6124 | # We use the long form for the default assignment because of an extremely | |
6125 | # bizarre bug on SunOS 4.1.3. | |
6126 | if $ac_need_defaults; then | |
6127 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6128 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6129 | fi | |
6130 | ||
6131 | # Have a temporary directory for convenience. Make it in the build tree | |
6132 | # simply because there is no reason to put it here, and in addition, | |
6133 | # creating and moving files from /tmp can sometimes cause problems. | |
6134 | # Create a temporary directory, and hook for its removal unless debugging. | |
6135 | $debug || | |
6136 | { | |
6137 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
6138 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
6139 | } | |
6140 | ||
6141 | # Create a (secure) tmp directory for tmp files. | |
6142 | ||
6143 | { | |
6144 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
6145 | test -n "$tmp" && test -d "$tmp" | |
6146 | } || | |
6147 | { | |
6148 | tmp=./confstat$$-$RANDOM | |
6149 | (umask 077 && mkdir $tmp) | |
6150 | } || | |
6151 | { | |
6152 | echo "$me: cannot create a temporary directory in ." >&2 | |
6153 | { (exit 1); exit 1; } | |
6154 | } | |
6155 | ||
6156 | _ACEOF | |
6157 | ||
6158 | cat >>$CONFIG_STATUS <<_ACEOF | |
6159 | ||
6160 | # | |
6161 | # CONFIG_FILES section. | |
6162 | # | |
6163 | ||
6164 | # No need to generate the scripts if there are no CONFIG_FILES. | |
6165 | # This happens for instance when ./config.status config.h | |
6166 | if test -n "\$CONFIG_FILES"; then | |
6167 | # Protect against being on the right side of a sed subst in config.status. | |
6168 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
6169 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
6170 | s,@SHELL@,$SHELL,;t t | |
6171 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
6172 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
6173 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
6174 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
6175 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
6176 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
6177 | s,@exec_prefix@,$exec_prefix,;t t | |
6178 | s,@prefix@,$prefix,;t t | |
6179 | s,@program_transform_name@,$program_transform_name,;t t | |
6180 | s,@bindir@,$bindir,;t t | |
6181 | s,@sbindir@,$sbindir,;t t | |
6182 | s,@libexecdir@,$libexecdir,;t t | |
6183 | s,@datadir@,$datadir,;t t | |
6184 | s,@sysconfdir@,$sysconfdir,;t t | |
6185 | s,@sharedstatedir@,$sharedstatedir,;t t | |
6186 | s,@localstatedir@,$localstatedir,;t t | |
6187 | s,@libdir@,$libdir,;t t | |
6188 | s,@includedir@,$includedir,;t t | |
6189 | s,@oldincludedir@,$oldincludedir,;t t | |
6190 | s,@infodir@,$infodir,;t t | |
6191 | s,@mandir@,$mandir,;t t | |
6192 | s,@build_alias@,$build_alias,;t t | |
6193 | s,@host_alias@,$host_alias,;t t | |
6194 | s,@target_alias@,$target_alias,;t t | |
6195 | s,@DEFS@,$DEFS,;t t | |
6196 | s,@ECHO_C@,$ECHO_C,;t t | |
6197 | s,@ECHO_N@,$ECHO_N,;t t | |
6198 | s,@ECHO_T@,$ECHO_T,;t t | |
6199 | s,@LIBS@,$LIBS,;t t | |
076e5443 | 6200 | s,@multi_basedir@,$multi_basedir,;t t |
a8aea176 NN |
6201 | s,@build@,$build,;t t |
6202 | s,@build_cpu@,$build_cpu,;t t | |
6203 | s,@build_vendor@,$build_vendor,;t t | |
6204 | s,@build_os@,$build_os,;t t | |
6205 | s,@host@,$host,;t t | |
6206 | s,@host_cpu@,$host_cpu,;t t | |
6207 | s,@host_vendor@,$host_vendor,;t t | |
6208 | s,@host_os@,$host_os,;t t | |
6209 | s,@target@,$target,;t t | |
6210 | s,@target_cpu@,$target_cpu,;t t | |
6211 | s,@target_vendor@,$target_vendor,;t t | |
6212 | s,@target_os@,$target_os,;t t | |
6213 | s,@mkinstalldirs@,$mkinstalldirs,;t t | |
6214 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
6215 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
6216 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
9fabf579 | 6217 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
a8aea176 NN |
6218 | s,@PACKAGE@,$PACKAGE,;t t |
6219 | s,@VERSION@,$VERSION,;t t | |
6220 | s,@ACLOCAL@,$ACLOCAL,;t t | |
6221 | s,@AUTOCONF@,$AUTOCONF,;t t | |
6222 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
6223 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
6224 | s,@MAKEINFO@,$MAKEINFO,;t t | |
9fabf579 KC |
6225 | s,@install_sh@,$install_sh,;t t |
6226 | s,@STRIP@,$STRIP,;t t | |
6227 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
6228 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
076e5443 | 6229 | s,@mkdir_p@,$mkdir_p,;t t |
9fabf579 | 6230 | s,@AWK@,$AWK,;t t |
a8aea176 | 6231 | s,@SET_MAKE@,$SET_MAKE,;t t |
9fabf579 | 6232 | s,@am__leading_dot@,$am__leading_dot,;t t |
17210dff TT |
6233 | s,@AMTAR@,$AMTAR,;t t |
6234 | s,@am__tar@,$am__tar,;t t | |
6235 | s,@am__untar@,$am__untar,;t t | |
a8aea176 NN |
6236 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
6237 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
6238 | s,@MAINT@,$MAINT,;t t | |
6239 | s,@COMPPATH@,$COMPPATH,;t t | |
6240 | s,@CC@,$CC,;t t | |
a8aea176 NN |
6241 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
6242 | s,@EXEEXT@,$EXEEXT,;t t | |
6243 | s,@OBJEXT@,$OBJEXT,;t t | |
9fabf579 KC |
6244 | s,@DEPDIR@,$DEPDIR,;t t |
6245 | s,@am__include@,$am__include,;t t | |
6246 | s,@am__quote@,$am__quote,;t t | |
6247 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
6248 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
6249 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
6250 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
6251 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
6252 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
076e5443 | 6253 | s,@CFLAGS@,$CFLAGS,;t t |
a8aea176 NN |
6254 | s,@LN_S@,$LN_S,;t t |
6255 | s,@RANLIB@,$RANLIB,;t t | |
6256 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
a8aea176 NN |
6257 | s,@LIBTOOL@,$LIBTOOL,;t t |
6258 | s,@CPP@,$CPP,;t t | |
076e5443 | 6259 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
a8aea176 NN |
6260 | s,@EGREP@,$EGREP,;t t |
6261 | s,@target_all@,$target_all,;t t | |
6262 | s,@toolexecdir@,$toolexecdir,;t t | |
6263 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
6264 | s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t | |
6265 | s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t | |
6266 | s,@LIBOBJS@,$LIBOBJS,;t t | |
6267 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
6268 | CEOF | |
6269 | ||
6270 | _ACEOF | |
6271 | ||
6272 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6273 | # Split the substitutions into bite-sized pieces for seds with | |
6274 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6275 | ac_max_sed_lines=48 | |
6276 | ac_sed_frag=1 # Number of current file. | |
6277 | ac_beg=1 # First line for current file. | |
6278 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
6279 | ac_more_lines=: | |
6280 | ac_sed_cmds= | |
6281 | while $ac_more_lines; do | |
6282 | if test $ac_beg -gt 1; then | |
6283 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
6284 | else | |
6285 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
6286 | fi | |
6287 | if test ! -s $tmp/subs.frag; then | |
6288 | ac_more_lines=false | |
6289 | else | |
6290 | # The purpose of the label and of the branching condition is to | |
6291 | # speed up the sed processing (if there are no `@' at all, there | |
6292 | # is no need to browse any of the substitutions). | |
6293 | # These are the two extra sed commands mentioned above. | |
6294 | (echo ':t | |
6295 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
6296 | if test -z "$ac_sed_cmds"; then | |
6297 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
6298 | else | |
6299 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
6300 | fi | |
6301 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
6302 | ac_beg=$ac_end | |
6303 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
6304 | fi | |
6305 | done | |
6306 | if test -z "$ac_sed_cmds"; then | |
6307 | ac_sed_cmds=cat | |
6308 | fi | |
6309 | fi # test -n "$CONFIG_FILES" | |
6310 | ||
6311 | _ACEOF | |
6312 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6313 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
6314 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
6315 | case $ac_file in | |
6316 | - | *:- | *:-:* ) # input from stdin | |
6317 | cat >$tmp/stdin | |
6318 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6319 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6320 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6321 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6322 | * ) ac_file_in=$ac_file.in ;; | |
6323 | esac | |
6324 | ||
6325 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
6326 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
6327 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6328 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6329 | X"$ac_file" : 'X\(//\)$' \| \ | |
6330 | X"$ac_file" : 'X\(/\)' \| \ | |
6331 | . : '\(.\)' 2>/dev/null || | |
6332 | echo X"$ac_file" | | |
6333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6334 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6335 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6336 | /^X\(\/\).*/{ s//\1/; q; } | |
6337 | s/.*/./; q'` | |
6338 | { if $as_mkdir_p; then | |
6339 | mkdir -p "$ac_dir" | |
6340 | else | |
6341 | as_dir="$ac_dir" | |
6342 | as_dirs= | |
6343 | while test ! -d "$as_dir"; do | |
6344 | as_dirs="$as_dir $as_dirs" | |
6345 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6346 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6347 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6348 | X"$as_dir" : 'X\(//\)$' \| \ | |
6349 | X"$as_dir" : 'X\(/\)' \| \ | |
6350 | . : '\(.\)' 2>/dev/null || | |
6351 | echo X"$as_dir" | | |
6352 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6353 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6354 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6355 | /^X\(\/\).*/{ s//\1/; q; } | |
6356 | s/.*/./; q'` | |
6357 | done | |
6358 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6359 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6360 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6361 | { (exit 1); exit 1; }; }; } | |
6362 | ||
6363 | ac_builddir=. | |
6364 | ||
6365 | if test "$ac_dir" != .; then | |
6366 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
6367 | # A "../" for each directory in $ac_dir_suffix. | |
6368 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
6369 | else | |
6370 | ac_dir_suffix= ac_top_builddir= | |
6371 | fi | |
6372 | ||
6373 | case $srcdir in | |
6374 | .) # No --srcdir option. We are building in place. | |
6375 | ac_srcdir=. | |
6376 | if test -z "$ac_top_builddir"; then | |
6377 | ac_top_srcdir=. | |
6378 | else | |
6379 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
6380 | fi ;; | |
6381 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6382 | ac_srcdir=$srcdir$ac_dir_suffix; | |
6383 | ac_top_srcdir=$srcdir ;; | |
6384 | *) # Relative path. | |
6385 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
6386 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6387 | esac | |
6388 | ||
6389 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
6390 | # the directories may not exist. | |
6391 | case `pwd` in | |
6392 | .) ac_abs_builddir="$ac_dir";; | |
6393 | *) | |
6394 | case "$ac_dir" in | |
6395 | .) ac_abs_builddir=`pwd`;; | |
6396 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
6397 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
6398 | esac;; | |
6399 | esac | |
6400 | case $ac_abs_builddir in | |
6401 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
6402 | *) | |
6403 | case ${ac_top_builddir}. in | |
6404 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
6405 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
6406 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
6407 | esac;; | |
6408 | esac | |
6409 | case $ac_abs_builddir in | |
6410 | .) ac_abs_srcdir=$ac_srcdir;; | |
6411 | *) | |
6412 | case $ac_srcdir in | |
6413 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
6414 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
6415 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
6416 | esac;; | |
6417 | esac | |
6418 | case $ac_abs_builddir in | |
6419 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
6420 | *) | |
6421 | case $ac_top_srcdir in | |
6422 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
6423 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
6424 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
6425 | esac;; | |
6426 | esac | |
6427 | ||
6428 | ||
6429 | case $INSTALL in | |
6430 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
6431 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6432 | esac | |
6433 | ||
17210dff TT |
6434 | if test x"$ac_file" != x-; then |
6435 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
6436 | echo "$as_me: creating $ac_file" >&6;} | |
6437 | rm -f "$ac_file" | |
6438 | fi | |
a8aea176 NN |
6439 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
6440 | # use $as_me), people would be surprised to read: | |
6441 | # /* config.h. Generated by config.status. */ | |
6442 | if test x"$ac_file" = x-; then | |
6443 | configure_input= | |
6444 | else | |
6445 | configure_input="$ac_file. " | |
6446 | fi | |
6447 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
6448 | sed 's,.*/,,'` by configure." | |
6449 | ||
6450 | # First look for the input files in the build tree, otherwise in the | |
6451 | # src tree. | |
6452 | ac_file_inputs=`IFS=: | |
6453 | for f in $ac_file_in; do | |
6454 | case $f in | |
6455 | -) echo $tmp/stdin ;; | |
6456 | [\\/$]*) | |
6457 | # Absolute (can't be DOS-style, as IFS=:) | |
6458 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6459 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
6460 | { (exit 1); exit 1; }; } | |
6461 | echo "$f";; | |
6462 | *) # Relative | |
6463 | if test -f "$f"; then | |
6464 | # Build tree | |
6465 | echo "$f" | |
6466 | elif test -f "$srcdir/$f"; then | |
6467 | # Source tree | |
6468 | echo "$srcdir/$f" | |
6469 | else | |
6470 | # /dev/null tree | |
6471 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6472 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
6473 | { (exit 1); exit 1; }; } | |
6474 | fi;; | |
6475 | esac | |
6476 | done` || { (exit 1); exit 1; } | |
a8aea176 NN |
6477 | _ACEOF |
6478 | cat >>$CONFIG_STATUS <<_ACEOF | |
6479 | sed "$ac_vpsub | |
6480 | $extrasub | |
6481 | _ACEOF | |
6482 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6483 | :t | |
6484 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
6485 | s,@configure_input@,$configure_input,;t t | |
6486 | s,@srcdir@,$ac_srcdir,;t t | |
6487 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
6488 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
6489 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
6490 | s,@builddir@,$ac_builddir,;t t | |
6491 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
6492 | s,@top_builddir@,$ac_top_builddir,;t t | |
6493 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
6494 | s,@INSTALL@,$ac_INSTALL,;t t | |
6495 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
6496 | rm -f $tmp/stdin | |
6497 | if test x"$ac_file" != x-; then | |
6498 | mv $tmp/out $ac_file | |
6499 | else | |
6500 | cat $tmp/out | |
6501 | rm -f $tmp/out | |
6502 | fi | |
6503 | ||
6504 | done | |
6505 | _ACEOF | |
6506 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6507 | ||
6508 | # | |
6509 | # CONFIG_COMMANDS section. | |
6510 | # | |
6511 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
6512 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
6513 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6514 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
6515 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6516 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
6517 | X"$ac_dest" : 'X\(//\)$' \| \ | |
6518 | X"$ac_dest" : 'X\(/\)' \| \ | |
6519 | . : '\(.\)' 2>/dev/null || | |
6520 | echo X"$ac_dest" | | |
6521 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6522 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6523 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6524 | /^X\(\/\).*/{ s//\1/; q; } | |
6525 | s/.*/./; q'` | |
6526 | { if $as_mkdir_p; then | |
6527 | mkdir -p "$ac_dir" | |
6528 | else | |
6529 | as_dir="$ac_dir" | |
6530 | as_dirs= | |
6531 | while test ! -d "$as_dir"; do | |
6532 | as_dirs="$as_dir $as_dirs" | |
6533 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6534 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6535 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6536 | X"$as_dir" : 'X\(//\)$' \| \ | |
6537 | X"$as_dir" : 'X\(/\)' \| \ | |
6538 | . : '\(.\)' 2>/dev/null || | |
6539 | echo X"$as_dir" | | |
6540 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6541 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6542 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6543 | /^X\(\/\).*/{ s//\1/; q; } | |
6544 | s/.*/./; q'` | |
6545 | done | |
6546 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6547 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6548 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6549 | { (exit 1); exit 1; }; }; } | |
6550 | ||
6551 | ac_builddir=. | |
6552 | ||
6553 | if test "$ac_dir" != .; then | |
6554 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
6555 | # A "../" for each directory in $ac_dir_suffix. | |
6556 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
6557 | else | |
6558 | ac_dir_suffix= ac_top_builddir= | |
6559 | fi | |
6560 | ||
6561 | case $srcdir in | |
6562 | .) # No --srcdir option. We are building in place. | |
6563 | ac_srcdir=. | |
6564 | if test -z "$ac_top_builddir"; then | |
6565 | ac_top_srcdir=. | |
6566 | else | |
6567 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
6568 | fi ;; | |
6569 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6570 | ac_srcdir=$srcdir$ac_dir_suffix; | |
6571 | ac_top_srcdir=$srcdir ;; | |
6572 | *) # Relative path. | |
6573 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
6574 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6575 | esac | |
6576 | ||
6577 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
6578 | # the directories may not exist. | |
6579 | case `pwd` in | |
6580 | .) ac_abs_builddir="$ac_dir";; | |
6581 | *) | |
6582 | case "$ac_dir" in | |
6583 | .) ac_abs_builddir=`pwd`;; | |
6584 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
6585 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
6586 | esac;; | |
6587 | esac | |
6588 | case $ac_abs_builddir in | |
6589 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
6590 | *) | |
6591 | case ${ac_top_builddir}. in | |
6592 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
6593 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
6594 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
6595 | esac;; | |
6596 | esac | |
6597 | case $ac_abs_builddir in | |
6598 | .) ac_abs_srcdir=$ac_srcdir;; | |
6599 | *) | |
6600 | case $ac_srcdir in | |
6601 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
6602 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
6603 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
6604 | esac;; | |
6605 | esac | |
6606 | case $ac_abs_builddir in | |
6607 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
6608 | *) | |
6609 | case $ac_top_srcdir in | |
6610 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
6611 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
6612 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
6613 | esac;; | |
6614 | esac | |
6615 | ||
6616 | ||
6617 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
6618 | echo "$as_me: executing $ac_dest commands" >&6;} | |
6619 | case $ac_dest in | |
076e5443 PB |
6620 | default-1 ) |
6621 | # Only add multilib support code if we just rebuilt the top-level | |
6622 | # Makefile. | |
6623 | case " $CONFIG_FILES " in | |
6624 | *" Makefile "*) | |
6625 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
6626 | ;; | |
6627 | esac ;; | |
9fabf579 KC |
6628 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
6629 | # Strip MF so we end up with the name of the file. | |
6630 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
6631 | # Check whether this is an Automake generated Makefile or not. | |
6632 | # We used to match only the files named `Makefile.in', but | |
6633 | # some people rename them; so instead we look at the file content. | |
6634 | # Grep'ing the first line is not enough: some people post-process | |
6635 | # each Makefile.in and add a new line on top of each file to say so. | |
6636 | # So let's grep whole file. | |
6637 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
6638 | dirpart=`(dirname "$mf") 2>/dev/null || | |
6639 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6640 | X"$mf" : 'X\(//\)[^/]' \| \ | |
6641 | X"$mf" : 'X\(//\)$' \| \ | |
6642 | X"$mf" : 'X\(/\)' \| \ | |
6643 | . : '\(.\)' 2>/dev/null || | |
6644 | echo X"$mf" | | |
6645 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6646 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6647 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6648 | /^X\(\/\).*/{ s//\1/; q; } | |
6649 | s/.*/./; q'` | |
6650 | else | |
6651 | continue | |
6652 | fi | |
17210dff TT |
6653 | # Extract the definition of DEPDIR, am__include, and am__quote |
6654 | # from the Makefile without running `make'. | |
076e5443 | 6655 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
9fabf579 | 6656 | test -z "$DEPDIR" && continue |
17210dff TT |
6657 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
6658 | test -z "am__include" && continue | |
6659 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9fabf579 | 6660 | # When using ansi2knr, U may be empty or an underscore; expand it |
076e5443 | 6661 | U=`sed -n 's/^U = //p' < "$mf"` |
17210dff TT |
6662 | # Find all dependency output files, they are included files with |
6663 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
6664 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
6665 | # expansion. | |
6666 | for file in `sed -n " | |
6667 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9fabf579 KC |
6668 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
6669 | # Make sure the directory exists. | |
6670 | test -f "$dirpart/$file" && continue | |
6671 | fdir=`(dirname "$file") 2>/dev/null || | |
6672 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6673 | X"$file" : 'X\(//\)[^/]' \| \ | |
6674 | X"$file" : 'X\(//\)$' \| \ | |
6675 | X"$file" : 'X\(/\)' \| \ | |
6676 | . : '\(.\)' 2>/dev/null || | |
6677 | echo X"$file" | | |
6678 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6679 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6680 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6681 | /^X\(\/\).*/{ s//\1/; q; } | |
6682 | s/.*/./; q'` | |
6683 | { if $as_mkdir_p; then | |
6684 | mkdir -p $dirpart/$fdir | |
6685 | else | |
6686 | as_dir=$dirpart/$fdir | |
6687 | as_dirs= | |
6688 | while test ! -d "$as_dir"; do | |
6689 | as_dirs="$as_dir $as_dirs" | |
6690 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6691 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6692 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6693 | X"$as_dir" : 'X\(//\)$' \| \ | |
6694 | X"$as_dir" : 'X\(/\)' \| \ | |
6695 | . : '\(.\)' 2>/dev/null || | |
6696 | echo X"$as_dir" | | |
6697 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6698 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6699 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6700 | /^X\(\/\).*/{ s//\1/; q; } | |
6701 | s/.*/./; q'` | |
6702 | done | |
6703 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6704 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
6705 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
6706 | { (exit 1); exit 1; }; }; } | |
6707 | ||
6708 | # echo "creating $dirpart/$file" | |
6709 | echo '# dummy' > "$dirpart/$file" | |
6710 | done | |
6711 | done | |
6712 | ;; | |
a8aea176 NN |
6713 | esac |
6714 | done | |
6715 | _ACEOF | |
6716 | ||
6717 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6718 | ||
6719 | { (exit 0); exit 0; } | |
6720 | _ACEOF | |
dfac8a13 | 6721 | chmod +x $CONFIG_STATUS |
a8aea176 NN |
6722 | ac_clean_files=$ac_clean_files_save |
6723 | ||
6724 | ||
6725 | # configure is writing to config.log, and then calls config.status. | |
6726 | # config.status does its own redirection, appending to config.log. | |
6727 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
6728 | # by configure, so config.status won't be able to write to it; its | |
6729 | # output is simply discarded. So we exec the FD to /dev/null, | |
6730 | # effectively closing config.log, so it can be properly (re)opened and | |
6731 | # appended to by config.status. When coming back to configure, we | |
6732 | # need to make the FD available again. | |
6733 | if test "$no_create" != yes; then | |
6734 | ac_cs_success=: | |
6735 | ac_config_status_args= | |
6736 | test "$silent" = yes && | |
6737 | ac_config_status_args="$ac_config_status_args --quiet" | |
6738 | exec 5>/dev/null | |
6739 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
6740 | exec 5>>config.log | |
6741 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
6742 | # would make configure fail if this is the last instruction. | |
6743 | $ac_cs_success || { (exit 1); exit 1; } | |
6744 | fi | |
c45f211e | 6745 |