Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
6bf9431b | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
6bf9431b | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
6bf9431b BE |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 248 | |
6bf9431b BE |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
6bf9431b BE |
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="gprof.c" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
d5fbea21 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE CPP EGREP WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
6bf9431b | 313 | ac_subst_files='' |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
6bf9431b BE |
316 | ac_init_help= |
317 | ac_init_version=false | |
252b5132 RH |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
6bf9431b | 320 | cache_file=/dev/null |
252b5132 | 321 | exec_prefix=NONE |
252b5132 | 322 | no_create= |
252b5132 RH |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
252b5132 RH |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
6bf9431b BE |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
252b5132 RH |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
252b5132 RH |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
6bf9431b | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
6bf9431b | 367 | case $ac_option in |
252b5132 RH |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
6bf9431b | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
6bf9431b | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
6bf9431b | 377 | build_alias=$ac_optarg ;; |
252b5132 RH |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
6bf9431b BE |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
252b5132 RH |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
6bf9431b | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
6bf9431b | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
6bf9431b BE |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
403 | |
404 | -enable-* | --enable-*) | |
6bf9431b | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
6bf9431b BE |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
413 | *) ac_optarg=yes ;; |
414 | esac | |
6bf9431b | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
6bf9431b | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
6bf9431b BE |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
252b5132 RH |
436 | |
437 | -host | --host | --hos | --ho) | |
6bf9431b | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
6bf9431b | 440 | host_alias=$ac_optarg ;; |
252b5132 RH |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
6bf9431b | 447 | includedir=$ac_optarg ;; |
252b5132 RH |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
6bf9431b | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
6bf9431b | 457 | libdir=$ac_optarg ;; |
252b5132 RH |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
6bf9431b | 464 | libexecdir=$ac_optarg ;; |
252b5132 RH |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
6bf9431b | 473 | localstatedir=$ac_optarg ;; |
252b5132 RH |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
6bf9431b | 478 | mandir=$ac_optarg ;; |
252b5132 RH |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
6bf9431b | 485 | | --no-cr | --no-c | -n) |
252b5132 RH |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
6bf9431b | 499 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
6bf9431b | 504 | prefix=$ac_optarg ;; |
252b5132 RH |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
6bf9431b | 511 | program_prefix=$ac_optarg ;; |
252b5132 RH |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
6bf9431b | 518 | program_suffix=$ac_optarg ;; |
252b5132 RH |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
6bf9431b | 535 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
6bf9431b | 545 | sbindir=$ac_optarg ;; |
252b5132 RH |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
6bf9431b | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
6bf9431b | 561 | site=$ac_optarg ;; |
093872ec | 562 | |
252b5132 RH |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
6bf9431b | 566 | srcdir=$ac_optarg ;; |
252b5132 RH |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
6bf9431b | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
6bf9431b | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
6bf9431b | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
6bf9431b BE |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
6bf9431b | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
6bf9431b BE |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
252b5132 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
6bf9431b BE |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
6bf9431b | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
6bf9431b | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
6bf9431b BE |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
6bf9431b | 617 | x_includes=$ac_optarg ;; |
252b5132 RH |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
6bf9431b | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
6bf9431b BE |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
252b5132 RH |
629 | ;; |
630 | ||
6bf9431b BE |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
252b5132 | 641 | *) |
6bf9431b BE |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
6bf9431b BE |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
252b5132 RH |
656 | fi |
657 | ||
6bf9431b BE |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
252b5132 | 668 | |
6bf9431b BE |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 672 | do |
6bf9431b BE |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
678 | esac |
679 | done | |
680 | ||
6bf9431b BE |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
252b5132 | 698 | |
6bf9431b BE |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 703 | |
252b5132 RH |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
6bf9431b BE |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
252b5132 RH |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
6bf9431b BE |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
6bf9431b BE |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
252b5132 RH |
735 | fi |
736 | fi | |
6bf9431b BE |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
252b5132 | 773 | |
6bf9431b BE |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 782 | |
6bf9431b | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
6bf9431b BE |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 787 | |
6bf9431b | 788 | Defaults for the options are specified in brackets. |
ac48eca1 | 789 | |
6bf9431b BE |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
ac48eca1 | 809 | |
6bf9431b BE |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 814 | |
6bf9431b | 815 | For better control, use the options below. |
ac48eca1 | 816 | |
6bf9431b BE |
817 | Fine tuning of the installation directories: |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
ac48eca1 | 831 | |
6bf9431b | 832 | cat <<\_ACEOF |
252b5132 | 833 | |
6bf9431b BE |
834 | Program names: |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 838 | |
6bf9431b BE |
839 | System types: |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
252b5132 | 844 | fi |
252b5132 | 845 | |
6bf9431b | 846 | if test -n "$ac_init_help"; then |
252b5132 | 847 | |
6bf9431b | 848 | cat <<\_ACEOF |
252b5132 | 849 | |
6bf9431b BE |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
853 | --disable-dependency-tracking speeds up one-time build | |
854 | --enable-dependency-tracking do not reject slow dependency extractors | |
855 | --enable-shared=PKGS build shared libraries default=yes | |
856 | --enable-static=PKGS build static libraries default=yes | |
857 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
858 | --disable-libtool-lock avoid locking (might break parallel builds) | |
859 | --disable-nls do not use Native Language Support | |
860 | --enable-maintainer-mode enable make rules and dependencies not useful | |
861 | (and sometimes confusing) to the casual installer | |
241a6c40 AM |
862 | --enable-werror treat compile warnings as errors |
863 | --enable-build-warnings enable build-time compiler warnings | |
6bf9431b BE |
864 | |
865 | Optional Packages: | |
866 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
867 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
868 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
869 | --with-pic try to use only PIC/non-PIC objects default=use both | |
252b5132 | 870 | |
6bf9431b BE |
871 | Some influential environment variables: |
872 | CC C compiler command | |
873 | CFLAGS C compiler flags | |
874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
875 | nonstandard directory <lib dir> | |
876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
877 | headers in a nonstandard directory <include dir> | |
878 | CPP C preprocessor | |
252b5132 | 879 | |
6bf9431b BE |
880 | Use these variables to override the choices made by `configure' or to help |
881 | it to find libraries and programs with nonstandard names/locations. | |
882 | ||
883 | _ACEOF | |
252b5132 RH |
884 | fi |
885 | ||
6bf9431b BE |
886 | if test "$ac_init_help" = "recursive"; then |
887 | # If there are subdirs, report their specific --help. | |
888 | ac_popdir=`pwd` | |
889 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
890 | test -d $ac_dir || continue | |
891 | ac_builddir=. | |
252b5132 | 892 | |
6bf9431b BE |
893 | if test "$ac_dir" != .; then |
894 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
895 | # A "../" for each directory in $ac_dir_suffix. | |
896 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
897 | else | |
898 | ac_dir_suffix= ac_top_builddir= | |
899 | fi | |
900 | ||
901 | case $srcdir in | |
902 | .) # No --srcdir option. We are building in place. | |
903 | ac_srcdir=. | |
904 | if test -z "$ac_top_builddir"; then | |
905 | ac_top_srcdir=. | |
906 | else | |
907 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
252b5132 | 908 | fi ;; |
6bf9431b BE |
909 | [\\/]* | ?:[\\/]* ) # Absolute path. |
910 | ac_srcdir=$srcdir$ac_dir_suffix; | |
911 | ac_top_srcdir=$srcdir ;; | |
912 | *) # Relative path. | |
913 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
914 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
252b5132 RH |
915 | esac |
916 | ||
6bf9431b BE |
917 | # Do not use `cd foo && pwd` to compute absolute paths, because |
918 | # the directories may not exist. | |
919 | case `pwd` in | |
920 | .) ac_abs_builddir="$ac_dir";; | |
921 | *) | |
922 | case "$ac_dir" in | |
923 | .) ac_abs_builddir=`pwd`;; | |
924 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
925 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
926 | esac;; | |
252b5132 | 927 | esac |
6bf9431b BE |
928 | case $ac_abs_builddir in |
929 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
930 | *) | |
931 | case ${ac_top_builddir}. in | |
932 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
933 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
934 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
935 | esac;; | |
936 | esac | |
937 | case $ac_abs_builddir in | |
938 | .) ac_abs_srcdir=$ac_srcdir;; | |
939 | *) | |
940 | case $ac_srcdir in | |
941 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
942 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
943 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
944 | esac;; | |
945 | esac | |
946 | case $ac_abs_builddir in | |
947 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
948 | *) | |
949 | case $ac_top_srcdir in | |
950 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
951 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
952 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
953 | esac;; | |
252b5132 RH |
954 | esac |
955 | ||
6bf9431b BE |
956 | cd $ac_dir |
957 | # Check for guested configure; otherwise get Cygnus style configure. | |
958 | if test -f $ac_srcdir/configure.gnu; then | |
959 | echo | |
960 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
961 | elif test -f $ac_srcdir/configure; then | |
962 | echo | |
963 | $SHELL $ac_srcdir/configure --help=recursive | |
964 | elif test -f $ac_srcdir/configure.ac || | |
965 | test -f $ac_srcdir/configure.in; then | |
966 | echo | |
967 | $ac_configure --help | |
968 | else | |
969 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
970 | fi | |
df76639a | 971 | cd $ac_popdir |
6bf9431b BE |
972 | done |
973 | fi | |
252b5132 | 974 | |
6bf9431b BE |
975 | test -n "$ac_init_help" && exit 0 |
976 | if $ac_init_version; then | |
977 | cat <<\_ACEOF | |
252b5132 | 978 | |
6bf9431b BE |
979 | Copyright (C) 2003 Free Software Foundation, Inc. |
980 | This configure script is free software; the Free Software Foundation | |
981 | gives unlimited permission to copy, distribute and modify it. | |
982 | _ACEOF | |
983 | exit 0 | |
984 | fi | |
985 | exec 5>config.log | |
986 | cat >&5 <<_ACEOF | |
987 | This file contains any messages produced by compilers while | |
988 | running configure, to aid debugging if configure makes a mistake. | |
66477e87 | 989 | |
6bf9431b BE |
990 | It was created by $as_me, which was |
991 | generated by GNU Autoconf 2.59. Invocation command line was | |
5d64ca4e | 992 | |
6bf9431b | 993 | $ $0 $@ |
5d64ca4e | 994 | |
6bf9431b BE |
995 | _ACEOF |
996 | { | |
997 | cat <<_ASUNAME | |
998 | ## --------- ## | |
999 | ## Platform. ## | |
1000 | ## --------- ## | |
1001 | ||
1002 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1003 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1004 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1005 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1006 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1007 | ||
1008 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1009 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1010 | ||
1011 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1012 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1013 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1014 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1015 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1016 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1017 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1018 | ||
1019 | _ASUNAME | |
1020 | ||
1021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1022 | for as_dir in $PATH | |
1023 | do | |
1024 | IFS=$as_save_IFS | |
1025 | test -z "$as_dir" && as_dir=. | |
1026 | echo "PATH: $as_dir" | |
1027 | done | |
5d64ca4e | 1028 | |
6bf9431b | 1029 | } >&5 |
093872ec | 1030 | |
6bf9431b | 1031 | cat >&5 <<_ACEOF |
252b5132 | 1032 | |
6bf9431b BE |
1033 | |
1034 | ## ----------- ## | |
1035 | ## Core tests. ## | |
1036 | ## ----------- ## | |
1037 | ||
1038 | _ACEOF | |
1039 | ||
1040 | ||
1041 | # Keep a trace of the command line. | |
1042 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1043 | # Strip out --silent because we don't want to record it for future runs. | |
1044 | # Also quote any args containing shell meta-characters. | |
1045 | # Make two passes to allow for proper duplicate-argument suppression. | |
1046 | ac_configure_args= | |
1047 | ac_configure_args0= | |
1048 | ac_configure_args1= | |
1049 | ac_sep= | |
1050 | ac_must_keep_next=false | |
1051 | for ac_pass in 1 2 | |
1052 | do | |
1053 | for ac_arg | |
1054 | do | |
1055 | case $ac_arg in | |
1056 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1058 | | -silent | --silent | --silen | --sile | --sil) | |
1059 | continue ;; | |
1060 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1061 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1062 | esac | |
1063 | case $ac_pass in | |
1064 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1065 | 2) | |
1066 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1067 | if test $ac_must_keep_next = true; then | |
1068 | ac_must_keep_next=false # Got value, back to normal. | |
1069 | else | |
1070 | case $ac_arg in | |
1071 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1072 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1073 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1074 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1075 | case "$ac_configure_args0 " in | |
1076 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1077 | esac | |
1078 | ;; | |
1079 | -* ) ac_must_keep_next=true ;; | |
1080 | esac | |
1081 | fi | |
1082 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1083 | # Get rid of the leading space. | |
1084 | ac_sep=" " | |
1085 | ;; | |
1086 | esac | |
1087 | done | |
1088 | done | |
1089 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1090 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1091 | ||
1092 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1093 | # config.log. We remove comments because anyway the quotes in there | |
1094 | # would cause problems or look ugly. | |
1095 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1096 | # such as our DU 5.0 friend, will then `close' the trap. | |
1097 | trap 'exit_status=$? | |
1098 | # Save into config.log some information that might help in debugging. | |
1099 | { | |
1100 | echo | |
1101 | ||
1102 | cat <<\_ASBOX | |
1103 | ## ---------------- ## | |
1104 | ## Cache variables. ## | |
1105 | ## ---------------- ## | |
1106 | _ASBOX | |
1107 | echo | |
1108 | # The following way of writing the cache mishandles newlines in values, | |
1109 | { | |
1110 | (set) 2>&1 | | |
1111 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1112 | *ac_space=\ *) | |
1113 | sed -n \ | |
1114 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1115 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1116 | ;; | |
1117 | *) | |
1118 | sed -n \ | |
1119 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1120 | ;; | |
1121 | esac; | |
1122 | } | |
1123 | echo | |
1124 | ||
1125 | cat <<\_ASBOX | |
1126 | ## ----------------- ## | |
1127 | ## Output variables. ## | |
1128 | ## ----------------- ## | |
1129 | _ASBOX | |
1130 | echo | |
1131 | for ac_var in $ac_subst_vars | |
1132 | do | |
1133 | eval ac_val=$`echo $ac_var` | |
1134 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1135 | done | sort | |
1136 | echo | |
1137 | ||
1138 | if test -n "$ac_subst_files"; then | |
1139 | cat <<\_ASBOX | |
1140 | ## ------------- ## | |
1141 | ## Output files. ## | |
1142 | ## ------------- ## | |
1143 | _ASBOX | |
1144 | echo | |
1145 | for ac_var in $ac_subst_files | |
1146 | do | |
1147 | eval ac_val=$`echo $ac_var` | |
1148 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1149 | done | sort | |
1150 | echo | |
1151 | fi | |
1152 | ||
1153 | if test -s confdefs.h; then | |
1154 | cat <<\_ASBOX | |
1155 | ## ----------- ## | |
1156 | ## confdefs.h. ## | |
1157 | ## ----------- ## | |
1158 | _ASBOX | |
1159 | echo | |
1160 | sed "/^$/d" confdefs.h | sort | |
1161 | echo | |
1162 | fi | |
1163 | test "$ac_signal" != 0 && | |
1164 | echo "$as_me: caught signal $ac_signal" | |
1165 | echo "$as_me: exit $exit_status" | |
1166 | } >&5 | |
1167 | rm -f core *.core && | |
1168 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1169 | exit $exit_status | |
1170 | ' 0 | |
1171 | for ac_signal in 1 2 13 15; do | |
1172 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1173 | done | |
1174 | ac_signal=0 | |
1175 | ||
1176 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1177 | rm -rf conftest* confdefs.h | |
1178 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1179 | echo >confdefs.h | |
1180 | ||
1181 | # Predefined preprocessor variables. | |
1182 | ||
1183 | cat >>confdefs.h <<_ACEOF | |
1184 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1185 | _ACEOF | |
1186 | ||
1187 | ||
1188 | cat >>confdefs.h <<_ACEOF | |
1189 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1190 | _ACEOF | |
1191 | ||
1192 | ||
1193 | cat >>confdefs.h <<_ACEOF | |
1194 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1195 | _ACEOF | |
1196 | ||
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | # Let the site file select an alternate cache file if it wants to. | |
1209 | # Prefer explicitly selected file to automatically selected ones. | |
1210 | if test -z "$CONFIG_SITE"; then | |
1211 | if test "x$prefix" != xNONE; then | |
1212 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1213 | else | |
1214 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1215 | fi | |
1216 | fi | |
1217 | for ac_site_file in $CONFIG_SITE; do | |
1218 | if test -r "$ac_site_file"; then | |
1219 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1220 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1221 | sed 's/^/| /' "$ac_site_file" >&5 | |
1222 | . "$ac_site_file" | |
1223 | fi | |
1224 | done | |
1225 | ||
1226 | if test -r "$cache_file"; then | |
1227 | # Some versions of bash will fail to source /dev/null (special | |
1228 | # files actually), so we avoid doing that. | |
1229 | if test -f "$cache_file"; then | |
1230 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1231 | echo "$as_me: loading cache $cache_file" >&6;} | |
1232 | case $cache_file in | |
1233 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1234 | *) . ./$cache_file;; | |
1235 | esac | |
1236 | fi | |
1237 | else | |
1238 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1239 | echo "$as_me: creating cache $cache_file" >&6;} | |
1240 | >$cache_file | |
1241 | fi | |
1242 | ||
1243 | # Check that the precious variables saved in the cache have kept the same | |
1244 | # value. | |
1245 | ac_cache_corrupted=false | |
1246 | for ac_var in `(set) 2>&1 | | |
1247 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1248 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1249 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1250 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1251 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1252 | case $ac_old_set,$ac_new_set in | |
1253 | set,) | |
1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1255 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1256 | ac_cache_corrupted=: ;; | |
1257 | ,set) | |
1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1259 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1260 | ac_cache_corrupted=: ;; | |
1261 | ,);; | |
1262 | *) | |
1263 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1266 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1267 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1268 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1269 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1270 | ac_cache_corrupted=: | |
1271 | fi;; | |
1272 | esac | |
1273 | # Pass precious variables to config.status. | |
1274 | if test "$ac_new_set" = set; then | |
1275 | case $ac_new_val in | |
1276 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1277 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1278 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1279 | esac | |
1280 | case " $ac_configure_args " in | |
1281 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1282 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1283 | esac | |
1284 | fi | |
1285 | done | |
1286 | if $ac_cache_corrupted; then | |
1287 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1288 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1289 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1290 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1291 | { (exit 1); exit 1; }; } | |
1292 | fi | |
1293 | ||
1294 | ac_ext=c | |
1295 | ac_cpp='$CPP $CPPFLAGS' | |
1296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ac_aux_dir= | |
1321 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1322 | if test -f $ac_dir/install-sh; then | |
1323 | ac_aux_dir=$ac_dir | |
1324 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1325 | break | |
1326 | elif test -f $ac_dir/install.sh; then | |
1327 | ac_aux_dir=$ac_dir | |
1328 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1329 | break | |
1330 | elif test -f $ac_dir/shtool; then | |
1331 | ac_aux_dir=$ac_dir | |
1332 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1333 | break | |
1334 | fi | |
1335 | done | |
1336 | if test -z "$ac_aux_dir"; then | |
1337 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1338 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1339 | { (exit 1); exit 1; }; } | |
1340 | fi | |
1341 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1342 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1343 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1344 | ||
1345 | # Make sure we can run config.sub. | |
1346 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1347 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1348 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1349 | { (exit 1); exit 1; }; } | |
1350 | ||
1351 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1352 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1353 | if test "${ac_cv_build+set}" = set; then | |
1354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1355 | else | |
1356 | ac_cv_build_alias=$build_alias | |
1357 | test -z "$ac_cv_build_alias" && | |
1358 | ac_cv_build_alias=`$ac_config_guess` | |
1359 | test -z "$ac_cv_build_alias" && | |
1360 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1361 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1362 | { (exit 1); exit 1; }; } | |
1363 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1364 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1365 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1366 | { (exit 1); exit 1; }; } | |
1367 | ||
1368 | fi | |
1369 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1370 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1371 | build=$ac_cv_build | |
1372 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1373 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1374 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1375 | ||
1376 | ||
1377 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1378 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1379 | if test "${ac_cv_host+set}" = set; then | |
1380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1381 | else | |
1382 | ac_cv_host_alias=$host_alias | |
1383 | test -z "$ac_cv_host_alias" && | |
1384 | ac_cv_host_alias=$ac_cv_build_alias | |
1385 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1386 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1387 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1388 | { (exit 1); exit 1; }; } | |
1389 | ||
1390 | fi | |
1391 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1392 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1393 | host=$ac_cv_host | |
1394 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1395 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1396 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1397 | ||
1398 | ||
1399 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1400 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1401 | if test "${ac_cv_target+set}" = set; then | |
1402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1403 | else | |
1404 | ac_cv_target_alias=$target_alias | |
1405 | test "x$ac_cv_target_alias" = "x" && | |
1406 | ac_cv_target_alias=$ac_cv_host_alias | |
1407 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1408 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1409 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1410 | { (exit 1); exit 1; }; } | |
1411 | ||
1412 | fi | |
1413 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1414 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1415 | target=$ac_cv_target | |
1416 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1417 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1418 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1419 | ||
1420 | ||
1421 | # The aliases save the names the user supplied, while $host etc. | |
1422 | # will get canonicalized. | |
1423 | test -n "$target_alias" && | |
1424 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1425 | NONENONEs,x,x, && | |
1426 | program_prefix=${target_alias}- | |
1427 | ac_ext=c | |
1428 | ac_cpp='$CPP $CPPFLAGS' | |
1429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1432 | if test -n "$ac_tool_prefix"; then | |
1433 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1434 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1437 | if test "${ac_cv_prog_CC+set}" = set; then | |
1438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1439 | else | |
1440 | if test -n "$CC"; then | |
1441 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1442 | else | |
1443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1444 | for as_dir in $PATH | |
1445 | do | |
1446 | IFS=$as_save_IFS | |
1447 | test -z "$as_dir" && as_dir=. | |
1448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1449 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1450 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1452 | break 2 | |
1453 | fi | |
1454 | done | |
1455 | done | |
1456 | ||
1457 | fi | |
1458 | fi | |
1459 | CC=$ac_cv_prog_CC | |
1460 | if test -n "$CC"; then | |
1461 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1462 | echo "${ECHO_T}$CC" >&6 | |
1463 | else | |
1464 | echo "$as_me:$LINENO: result: no" >&5 | |
1465 | echo "${ECHO_T}no" >&6 | |
1466 | fi | |
1467 | ||
1468 | fi | |
1469 | if test -z "$ac_cv_prog_CC"; then | |
1470 | ac_ct_CC=$CC | |
1471 | # Extract the first word of "gcc", so it can be a program name with args. | |
1472 | set dummy gcc; ac_word=$2 | |
1473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1475 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1477 | else | |
1478 | if test -n "$ac_ct_CC"; then | |
1479 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1480 | else | |
1481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1482 | for as_dir in $PATH | |
1483 | do | |
1484 | IFS=$as_save_IFS | |
1485 | test -z "$as_dir" && as_dir=. | |
1486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1488 | ac_cv_prog_ac_ct_CC="gcc" | |
1489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1490 | break 2 | |
1491 | fi | |
1492 | done | |
1493 | done | |
1494 | ||
1495 | fi | |
1496 | fi | |
1497 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1498 | if test -n "$ac_ct_CC"; then | |
1499 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1500 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1501 | else | |
1502 | echo "$as_me:$LINENO: result: no" >&5 | |
1503 | echo "${ECHO_T}no" >&6 | |
1504 | fi | |
1505 | ||
1506 | CC=$ac_ct_CC | |
1507 | else | |
1508 | CC="$ac_cv_prog_CC" | |
1509 | fi | |
1510 | ||
1511 | if test -z "$CC"; then | |
1512 | if test -n "$ac_tool_prefix"; then | |
1513 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1514 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1517 | if test "${ac_cv_prog_CC+set}" = set; then | |
1518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1519 | else | |
1520 | if test -n "$CC"; then | |
1521 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1522 | else | |
1523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1524 | for as_dir in $PATH | |
1525 | do | |
1526 | IFS=$as_save_IFS | |
1527 | test -z "$as_dir" && as_dir=. | |
1528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1530 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1532 | break 2 | |
1533 | fi | |
1534 | done | |
1535 | done | |
1536 | ||
1537 | fi | |
1538 | fi | |
1539 | CC=$ac_cv_prog_CC | |
1540 | if test -n "$CC"; then | |
1541 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1542 | echo "${ECHO_T}$CC" >&6 | |
1543 | else | |
1544 | echo "$as_me:$LINENO: result: no" >&5 | |
1545 | echo "${ECHO_T}no" >&6 | |
1546 | fi | |
1547 | ||
1548 | fi | |
1549 | if test -z "$ac_cv_prog_CC"; then | |
1550 | ac_ct_CC=$CC | |
1551 | # Extract the first word of "cc", so it can be a program name with args. | |
1552 | set dummy cc; ac_word=$2 | |
1553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1555 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1557 | else | |
1558 | if test -n "$ac_ct_CC"; then | |
1559 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1560 | else | |
1561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1562 | for as_dir in $PATH | |
1563 | do | |
1564 | IFS=$as_save_IFS | |
1565 | test -z "$as_dir" && as_dir=. | |
1566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1567 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1568 | ac_cv_prog_ac_ct_CC="cc" | |
1569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1570 | break 2 | |
1571 | fi | |
1572 | done | |
1573 | done | |
1574 | ||
1575 | fi | |
1576 | fi | |
1577 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1578 | if test -n "$ac_ct_CC"; then | |
1579 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1580 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1581 | else | |
1582 | echo "$as_me:$LINENO: result: no" >&5 | |
1583 | echo "${ECHO_T}no" >&6 | |
1584 | fi | |
1585 | ||
1586 | CC=$ac_ct_CC | |
1587 | else | |
1588 | CC="$ac_cv_prog_CC" | |
1589 | fi | |
1590 | ||
1591 | fi | |
1592 | if test -z "$CC"; then | |
1593 | # Extract the first word of "cc", so it can be a program name with args. | |
1594 | set dummy cc; ac_word=$2 | |
1595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1597 | if test "${ac_cv_prog_CC+set}" = set; then | |
1598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1599 | else | |
1600 | if test -n "$CC"; then | |
1601 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1602 | else | |
1603 | ac_prog_rejected=no | |
1604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1605 | for as_dir in $PATH | |
1606 | do | |
1607 | IFS=$as_save_IFS | |
1608 | test -z "$as_dir" && as_dir=. | |
1609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1611 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1612 | ac_prog_rejected=yes | |
1613 | continue | |
1614 | fi | |
1615 | ac_cv_prog_CC="cc" | |
1616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1617 | break 2 | |
1618 | fi | |
1619 | done | |
1620 | done | |
1621 | ||
1622 | if test $ac_prog_rejected = yes; then | |
1623 | # We found a bogon in the path, so make sure we never use it. | |
1624 | set dummy $ac_cv_prog_CC | |
1625 | shift | |
1626 | if test $# != 0; then | |
1627 | # We chose a different compiler from the bogus one. | |
1628 | # However, it has the same basename, so the bogon will be chosen | |
1629 | # first if we set CC to just the basename; use the full file name. | |
1630 | shift | |
1631 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1632 | fi | |
1633 | fi | |
1634 | fi | |
1635 | fi | |
1636 | CC=$ac_cv_prog_CC | |
1637 | if test -n "$CC"; then | |
1638 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1639 | echo "${ECHO_T}$CC" >&6 | |
1640 | else | |
1641 | echo "$as_me:$LINENO: result: no" >&5 | |
1642 | echo "${ECHO_T}no" >&6 | |
1643 | fi | |
1644 | ||
1645 | fi | |
1646 | if test -z "$CC"; then | |
1647 | if test -n "$ac_tool_prefix"; then | |
1648 | for ac_prog in cl | |
1649 | do | |
1650 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1651 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1654 | if test "${ac_cv_prog_CC+set}" = set; then | |
1655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1656 | else | |
1657 | if test -n "$CC"; then | |
1658 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1659 | else | |
1660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1661 | for as_dir in $PATH | |
1662 | do | |
1663 | IFS=$as_save_IFS | |
1664 | test -z "$as_dir" && as_dir=. | |
1665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1667 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1669 | break 2 | |
1670 | fi | |
1671 | done | |
1672 | done | |
1673 | ||
1674 | fi | |
1675 | fi | |
1676 | CC=$ac_cv_prog_CC | |
1677 | if test -n "$CC"; then | |
1678 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1679 | echo "${ECHO_T}$CC" >&6 | |
1680 | else | |
1681 | echo "$as_me:$LINENO: result: no" >&5 | |
1682 | echo "${ECHO_T}no" >&6 | |
1683 | fi | |
1684 | ||
1685 | test -n "$CC" && break | |
1686 | done | |
1687 | fi | |
1688 | if test -z "$CC"; then | |
1689 | ac_ct_CC=$CC | |
1690 | for ac_prog in cl | |
1691 | do | |
1692 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1693 | set dummy $ac_prog; ac_word=$2 | |
1694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1696 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1698 | else | |
1699 | if test -n "$ac_ct_CC"; then | |
1700 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1701 | else | |
1702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1703 | for as_dir in $PATH | |
1704 | do | |
1705 | IFS=$as_save_IFS | |
1706 | test -z "$as_dir" && as_dir=. | |
1707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1709 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1711 | break 2 | |
1712 | fi | |
1713 | done | |
1714 | done | |
1715 | ||
1716 | fi | |
1717 | fi | |
1718 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1719 | if test -n "$ac_ct_CC"; then | |
1720 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1721 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1722 | else | |
1723 | echo "$as_me:$LINENO: result: no" >&5 | |
1724 | echo "${ECHO_T}no" >&6 | |
1725 | fi | |
1726 | ||
1727 | test -n "$ac_ct_CC" && break | |
1728 | done | |
1729 | ||
1730 | CC=$ac_ct_CC | |
1731 | fi | |
1732 | ||
1733 | fi | |
1734 | ||
1735 | ||
1736 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1737 | See \`config.log' for more details." >&5 | |
1738 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1739 | See \`config.log' for more details." >&2;} | |
1740 | { (exit 1); exit 1; }; } | |
1741 | ||
1742 | # Provide some information about the compiler. | |
1743 | echo "$as_me:$LINENO:" \ | |
1744 | "checking for C compiler version" >&5 | |
1745 | ac_compiler=`set X $ac_compile; echo $2` | |
1746 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1747 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1748 | ac_status=$? | |
1749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1750 | (exit $ac_status); } | |
1751 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1752 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1753 | ac_status=$? | |
1754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1755 | (exit $ac_status); } | |
1756 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1757 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1758 | ac_status=$? | |
1759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1760 | (exit $ac_status); } | |
1761 | ||
1762 | cat >conftest.$ac_ext <<_ACEOF | |
1763 | /* confdefs.h. */ | |
1764 | _ACEOF | |
1765 | cat confdefs.h >>conftest.$ac_ext | |
1766 | cat >>conftest.$ac_ext <<_ACEOF | |
1767 | /* end confdefs.h. */ | |
1768 | ||
1769 | int | |
1770 | main () | |
1771 | { | |
1772 | ||
1773 | ; | |
1774 | return 0; | |
1775 | } | |
1776 | _ACEOF | |
1777 | ac_clean_files_save=$ac_clean_files | |
1778 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1779 | # Try to create an executable without -o first, disregard a.out. | |
1780 | # It will help us diagnose broken compilers, and finding out an intuition | |
1781 | # of exeext. | |
1782 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1783 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1784 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1785 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1786 | (eval $ac_link_default) 2>&5 | |
1787 | ac_status=$? | |
1788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1789 | (exit $ac_status); }; then | |
1790 | # Find the output, starting from the most likely. This scheme is | |
1791 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1792 | # resort. | |
1793 | ||
1794 | # Be careful to initialize this variable, since it used to be cached. | |
1795 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1796 | ac_cv_exeext= | |
1797 | # b.out is created by i960 compilers. | |
1798 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1799 | do | |
1800 | test -f "$ac_file" || continue | |
1801 | case $ac_file in | |
1802 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1803 | ;; | |
1804 | conftest.$ac_ext ) | |
1805 | # This is the source file. | |
1806 | ;; | |
1807 | [ab].out ) | |
1808 | # We found the default executable, but exeext='' is most | |
1809 | # certainly right. | |
1810 | break;; | |
1811 | *.* ) | |
1812 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1813 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1814 | # but it would be cool to find out if it's true. Does anybody | |
1815 | # maintain Libtool? --akim. | |
1816 | export ac_cv_exeext | |
1817 | break;; | |
1818 | * ) | |
1819 | break;; | |
1820 | esac | |
1821 | done | |
1822 | else | |
1823 | echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1827 | See \`config.log' for more details." >&5 | |
1828 | echo "$as_me: error: C compiler cannot create executables | |
1829 | See \`config.log' for more details." >&2;} | |
1830 | { (exit 77); exit 77; }; } | |
1831 | fi | |
1832 | ||
1833 | ac_exeext=$ac_cv_exeext | |
1834 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1835 | echo "${ECHO_T}$ac_file" >&6 | |
1836 | ||
1837 | # Check the compiler produces executables we can run. If not, either | |
1838 | # the compiler is broken, or we cross compile. | |
1839 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1840 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1841 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1842 | # If not cross compiling, check that we can run a simple program. | |
1843 | if test "$cross_compiling" != yes; then | |
1844 | if { ac_try='./$ac_file' | |
1845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1846 | (eval $ac_try) 2>&5 | |
1847 | ac_status=$? | |
1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1849 | (exit $ac_status); }; }; then | |
1850 | cross_compiling=no | |
1851 | else | |
1852 | if test "$cross_compiling" = maybe; then | |
1853 | cross_compiling=yes | |
1854 | else | |
1855 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1856 | If you meant to cross compile, use \`--host'. | |
1857 | See \`config.log' for more details." >&5 | |
1858 | echo "$as_me: error: cannot run C compiled programs. | |
1859 | If you meant to cross compile, use \`--host'. | |
1860 | See \`config.log' for more details." >&2;} | |
1861 | { (exit 1); exit 1; }; } | |
1862 | fi | |
1863 | fi | |
1864 | fi | |
1865 | echo "$as_me:$LINENO: result: yes" >&5 | |
1866 | echo "${ECHO_T}yes" >&6 | |
1867 | ||
1868 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1869 | ac_clean_files=$ac_clean_files_save | |
1870 | # Check the compiler produces executables we can run. If not, either | |
1871 | # the compiler is broken, or we cross compile. | |
1872 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1873 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1874 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1875 | echo "${ECHO_T}$cross_compiling" >&6 | |
1876 | ||
1877 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1878 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1880 | (eval $ac_link) 2>&5 | |
1881 | ac_status=$? | |
1882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1883 | (exit $ac_status); }; then | |
1884 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1885 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1886 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1887 | # `rm'. | |
1888 | for ac_file in conftest.exe conftest conftest.*; do | |
1889 | test -f "$ac_file" || continue | |
1890 | case $ac_file in | |
1891 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1892 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1893 | export ac_cv_exeext | |
1894 | break;; | |
1895 | * ) break;; | |
1896 | esac | |
1897 | done | |
1898 | else | |
1899 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1900 | See \`config.log' for more details." >&5 | |
1901 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1902 | See \`config.log' for more details." >&2;} | |
1903 | { (exit 1); exit 1; }; } | |
1904 | fi | |
1905 | ||
1906 | rm -f conftest$ac_cv_exeext | |
1907 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1908 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1909 | ||
1910 | rm -f conftest.$ac_ext | |
1911 | EXEEXT=$ac_cv_exeext | |
1912 | ac_exeext=$EXEEXT | |
1913 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1914 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1915 | if test "${ac_cv_objext+set}" = set; then | |
1916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1917 | else | |
1918 | cat >conftest.$ac_ext <<_ACEOF | |
1919 | /* confdefs.h. */ | |
1920 | _ACEOF | |
1921 | cat confdefs.h >>conftest.$ac_ext | |
1922 | cat >>conftest.$ac_ext <<_ACEOF | |
1923 | /* end confdefs.h. */ | |
1924 | ||
1925 | int | |
1926 | main () | |
1927 | { | |
1928 | ||
1929 | ; | |
1930 | return 0; | |
1931 | } | |
1932 | _ACEOF | |
1933 | rm -f conftest.o conftest.obj | |
1934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1935 | (eval $ac_compile) 2>&5 | |
1936 | ac_status=$? | |
1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1938 | (exit $ac_status); }; then | |
1939 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1940 | case $ac_file in | |
1941 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1942 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1943 | break;; | |
1944 | esac | |
1945 | done | |
1946 | else | |
1947 | echo "$as_me: failed program was:" >&5 | |
1948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1949 | ||
1950 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1951 | See \`config.log' for more details." >&5 | |
1952 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1953 | See \`config.log' for more details." >&2;} | |
1954 | { (exit 1); exit 1; }; } | |
1955 | fi | |
1956 | ||
1957 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1958 | fi | |
1959 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1960 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1961 | OBJEXT=$ac_cv_objext | |
1962 | ac_objext=$OBJEXT | |
1963 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1964 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1965 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1967 | else | |
1968 | cat >conftest.$ac_ext <<_ACEOF | |
1969 | /* confdefs.h. */ | |
1970 | _ACEOF | |
1971 | cat confdefs.h >>conftest.$ac_ext | |
1972 | cat >>conftest.$ac_ext <<_ACEOF | |
1973 | /* end confdefs.h. */ | |
1974 | ||
1975 | int | |
1976 | main () | |
1977 | { | |
1978 | #ifndef __GNUC__ | |
1979 | choke me | |
1980 | #endif | |
1981 | ||
1982 | ; | |
1983 | return 0; | |
1984 | } | |
1985 | _ACEOF | |
1986 | rm -f conftest.$ac_objext | |
1987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1988 | (eval $ac_compile) 2>conftest.er1 | |
1989 | ac_status=$? | |
1990 | grep -v '^ *+' conftest.er1 >conftest.err | |
1991 | rm -f conftest.er1 | |
1992 | cat conftest.err >&5 | |
1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1994 | (exit $ac_status); } && | |
df76639a AM |
1995 | { ac_try='test -z "$ac_c_werror_flag" |
1996 | || test ! -s conftest.err' | |
6bf9431b BE |
1997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1998 | (eval $ac_try) 2>&5 | |
1999 | ac_status=$? | |
2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2001 | (exit $ac_status); }; } && | |
2002 | { ac_try='test -s conftest.$ac_objext' | |
2003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2004 | (eval $ac_try) 2>&5 | |
2005 | ac_status=$? | |
2006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2007 | (exit $ac_status); }; }; then | |
2008 | ac_compiler_gnu=yes | |
2009 | else | |
2010 | echo "$as_me: failed program was:" >&5 | |
2011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2012 | ||
2013 | ac_compiler_gnu=no | |
2014 | fi | |
2015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2016 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2017 | ||
2018 | fi | |
2019 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2020 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2021 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2022 | ac_test_CFLAGS=${CFLAGS+set} | |
2023 | ac_save_CFLAGS=$CFLAGS | |
2024 | CFLAGS="-g" | |
2025 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2026 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2027 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2029 | else | |
2030 | cat >conftest.$ac_ext <<_ACEOF | |
2031 | /* confdefs.h. */ | |
2032 | _ACEOF | |
2033 | cat confdefs.h >>conftest.$ac_ext | |
2034 | cat >>conftest.$ac_ext <<_ACEOF | |
2035 | /* end confdefs.h. */ | |
2036 | ||
2037 | int | |
2038 | main () | |
2039 | { | |
2040 | ||
2041 | ; | |
2042 | return 0; | |
2043 | } | |
2044 | _ACEOF | |
2045 | rm -f conftest.$ac_objext | |
2046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2047 | (eval $ac_compile) 2>conftest.er1 | |
2048 | ac_status=$? | |
2049 | grep -v '^ *+' conftest.er1 >conftest.err | |
2050 | rm -f conftest.er1 | |
2051 | cat conftest.err >&5 | |
2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2053 | (exit $ac_status); } && | |
df76639a AM |
2054 | { ac_try='test -z "$ac_c_werror_flag" |
2055 | || test ! -s conftest.err' | |
6bf9431b BE |
2056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2057 | (eval $ac_try) 2>&5 | |
2058 | ac_status=$? | |
2059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2060 | (exit $ac_status); }; } && | |
2061 | { ac_try='test -s conftest.$ac_objext' | |
2062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2063 | (eval $ac_try) 2>&5 | |
2064 | ac_status=$? | |
2065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2066 | (exit $ac_status); }; }; then | |
2067 | ac_cv_prog_cc_g=yes | |
2068 | else | |
2069 | echo "$as_me: failed program was:" >&5 | |
2070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2071 | ||
2072 | ac_cv_prog_cc_g=no | |
2073 | fi | |
2074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2075 | fi | |
2076 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2077 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2078 | if test "$ac_test_CFLAGS" = set; then | |
2079 | CFLAGS=$ac_save_CFLAGS | |
2080 | elif test $ac_cv_prog_cc_g = yes; then | |
2081 | if test "$GCC" = yes; then | |
2082 | CFLAGS="-g -O2" | |
2083 | else | |
2084 | CFLAGS="-g" | |
2085 | fi | |
2086 | else | |
2087 | if test "$GCC" = yes; then | |
2088 | CFLAGS="-O2" | |
2089 | else | |
2090 | CFLAGS= | |
2091 | fi | |
2092 | fi | |
2093 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2094 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2095 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2097 | else | |
2098 | ac_cv_prog_cc_stdc=no | |
2099 | ac_save_CC=$CC | |
2100 | cat >conftest.$ac_ext <<_ACEOF | |
2101 | /* confdefs.h. */ | |
2102 | _ACEOF | |
2103 | cat confdefs.h >>conftest.$ac_ext | |
2104 | cat >>conftest.$ac_ext <<_ACEOF | |
2105 | /* end confdefs.h. */ | |
2106 | #include <stdarg.h> | |
2107 | #include <stdio.h> | |
2108 | #include <sys/types.h> | |
2109 | #include <sys/stat.h> | |
2110 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2111 | struct buf { int x; }; | |
2112 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2113 | static char *e (p, i) | |
2114 | char **p; | |
2115 | int i; | |
2116 | { | |
2117 | return p[i]; | |
2118 | } | |
2119 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2120 | { | |
2121 | char *s; | |
2122 | va_list v; | |
2123 | va_start (v,p); | |
2124 | s = g (p, va_arg (v,int)); | |
2125 | va_end (v); | |
2126 | return s; | |
2127 | } | |
2128 | ||
2129 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2130 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2131 | These don't provoke an error unfortunately, instead are silently treated | |
2132 | as 'x'. The following induces an error, until -std1 is added to get | |
2133 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2134 | array size at least. It's necessary to write '\x00'==0 to get something | |
2135 | that's true only with -std1. */ | |
2136 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2137 | ||
2138 | int test (int i, double x); | |
2139 | struct s1 {int (*f) (int a);}; | |
2140 | struct s2 {int (*f) (double a);}; | |
2141 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2142 | int argc; | |
2143 | char **argv; | |
2144 | int | |
2145 | main () | |
2146 | { | |
2147 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2148 | ; | |
2149 | return 0; | |
2150 | } | |
2151 | _ACEOF | |
2152 | # Don't try gcc -ansi; that turns off useful extensions and | |
2153 | # breaks some systems' header files. | |
2154 | # AIX -qlanglvl=ansi | |
2155 | # Ultrix and OSF/1 -std1 | |
2156 | # HP-UX 10.20 and later -Ae | |
2157 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2158 | # SVR4 -Xc -D__EXTENSIONS__ | |
2159 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2160 | do | |
2161 | CC="$ac_save_CC $ac_arg" | |
2162 | rm -f conftest.$ac_objext | |
2163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2164 | (eval $ac_compile) 2>conftest.er1 | |
2165 | ac_status=$? | |
2166 | grep -v '^ *+' conftest.er1 >conftest.err | |
2167 | rm -f conftest.er1 | |
2168 | cat conftest.err >&5 | |
2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2170 | (exit $ac_status); } && | |
df76639a AM |
2171 | { ac_try='test -z "$ac_c_werror_flag" |
2172 | || test ! -s conftest.err' | |
6bf9431b BE |
2173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2174 | (eval $ac_try) 2>&5 | |
2175 | ac_status=$? | |
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2177 | (exit $ac_status); }; } && | |
2178 | { ac_try='test -s conftest.$ac_objext' | |
2179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2180 | (eval $ac_try) 2>&5 | |
2181 | ac_status=$? | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); }; }; then | |
2184 | ac_cv_prog_cc_stdc=$ac_arg | |
2185 | break | |
2186 | else | |
2187 | echo "$as_me: failed program was:" >&5 | |
2188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2189 | ||
2190 | fi | |
2191 | rm -f conftest.err conftest.$ac_objext | |
2192 | done | |
2193 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2194 | CC=$ac_save_CC | |
2195 | ||
2196 | fi | |
2197 | ||
2198 | case "x$ac_cv_prog_cc_stdc" in | |
2199 | x|xno) | |
2200 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2201 | echo "${ECHO_T}none needed" >&6 ;; | |
2202 | *) | |
2203 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2204 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2205 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2206 | esac | |
2207 | ||
2208 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2209 | # in C++ we need to declare it. In case someone uses the same compiler | |
2210 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2211 | # the declaration of exit, since it's the most demanding environment. | |
2212 | cat >conftest.$ac_ext <<_ACEOF | |
2213 | #ifndef __cplusplus | |
2214 | choke me | |
2215 | #endif | |
2216 | _ACEOF | |
2217 | rm -f conftest.$ac_objext | |
2218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2219 | (eval $ac_compile) 2>conftest.er1 | |
2220 | ac_status=$? | |
2221 | grep -v '^ *+' conftest.er1 >conftest.err | |
2222 | rm -f conftest.er1 | |
2223 | cat conftest.err >&5 | |
2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2225 | (exit $ac_status); } && | |
df76639a AM |
2226 | { ac_try='test -z "$ac_c_werror_flag" |
2227 | || test ! -s conftest.err' | |
6bf9431b BE |
2228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2229 | (eval $ac_try) 2>&5 | |
2230 | ac_status=$? | |
2231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2232 | (exit $ac_status); }; } && | |
2233 | { ac_try='test -s conftest.$ac_objext' | |
2234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2235 | (eval $ac_try) 2>&5 | |
2236 | ac_status=$? | |
2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2238 | (exit $ac_status); }; }; then | |
2239 | for ac_declaration in \ | |
2240 | '' \ | |
2241 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2242 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2243 | 'extern "C" void exit (int) throw ();' \ | |
2244 | 'extern "C" void exit (int);' \ | |
2245 | 'void exit (int);' | |
2246 | do | |
2247 | cat >conftest.$ac_ext <<_ACEOF | |
2248 | /* confdefs.h. */ | |
2249 | _ACEOF | |
2250 | cat confdefs.h >>conftest.$ac_ext | |
2251 | cat >>conftest.$ac_ext <<_ACEOF | |
2252 | /* end confdefs.h. */ | |
2253 | $ac_declaration | |
2254 | #include <stdlib.h> | |
2255 | int | |
2256 | main () | |
2257 | { | |
2258 | exit (42); | |
2259 | ; | |
2260 | return 0; | |
2261 | } | |
2262 | _ACEOF | |
2263 | rm -f conftest.$ac_objext | |
2264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2265 | (eval $ac_compile) 2>conftest.er1 | |
2266 | ac_status=$? | |
2267 | grep -v '^ *+' conftest.er1 >conftest.err | |
2268 | rm -f conftest.er1 | |
2269 | cat conftest.err >&5 | |
2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2271 | (exit $ac_status); } && | |
df76639a AM |
2272 | { ac_try='test -z "$ac_c_werror_flag" |
2273 | || test ! -s conftest.err' | |
6bf9431b BE |
2274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2275 | (eval $ac_try) 2>&5 | |
2276 | ac_status=$? | |
2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2278 | (exit $ac_status); }; } && | |
2279 | { ac_try='test -s conftest.$ac_objext' | |
2280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2281 | (eval $ac_try) 2>&5 | |
2282 | ac_status=$? | |
2283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2284 | (exit $ac_status); }; }; then | |
2285 | : | |
2286 | else | |
2287 | echo "$as_me: failed program was:" >&5 | |
2288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2289 | ||
2290 | continue | |
2291 | fi | |
2292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2293 | cat >conftest.$ac_ext <<_ACEOF | |
2294 | /* confdefs.h. */ | |
2295 | _ACEOF | |
2296 | cat confdefs.h >>conftest.$ac_ext | |
2297 | cat >>conftest.$ac_ext <<_ACEOF | |
2298 | /* end confdefs.h. */ | |
2299 | $ac_declaration | |
2300 | int | |
2301 | main () | |
2302 | { | |
2303 | exit (42); | |
2304 | ; | |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
2308 | rm -f conftest.$ac_objext | |
2309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2310 | (eval $ac_compile) 2>conftest.er1 | |
2311 | ac_status=$? | |
2312 | grep -v '^ *+' conftest.er1 >conftest.err | |
2313 | rm -f conftest.er1 | |
2314 | cat conftest.err >&5 | |
2315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2316 | (exit $ac_status); } && | |
df76639a AM |
2317 | { ac_try='test -z "$ac_c_werror_flag" |
2318 | || test ! -s conftest.err' | |
6bf9431b BE |
2319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2320 | (eval $ac_try) 2>&5 | |
2321 | ac_status=$? | |
2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2323 | (exit $ac_status); }; } && | |
2324 | { ac_try='test -s conftest.$ac_objext' | |
2325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2326 | (eval $ac_try) 2>&5 | |
2327 | ac_status=$? | |
2328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2329 | (exit $ac_status); }; }; then | |
2330 | break | |
2331 | else | |
2332 | echo "$as_me: failed program was:" >&5 | |
2333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2334 | ||
2335 | fi | |
2336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2337 | done | |
2338 | rm -f conftest* | |
2339 | if test -n "$ac_declaration"; then | |
2340 | echo '#ifdef __cplusplus' >>confdefs.h | |
2341 | echo $ac_declaration >>confdefs.h | |
2342 | echo '#endif' >>confdefs.h | |
2343 | fi | |
2344 | ||
2345 | else | |
2346 | echo "$as_me: failed program was:" >&5 | |
2347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2348 | ||
2349 | fi | |
2350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2351 | ac_ext=c | |
2352 | ac_cpp='$CPP $CPPFLAGS' | |
2353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2356 | ||
2357 | ||
2358 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2359 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2360 | if test "${ac_cv_search_strerror+set}" = set; then | |
2361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2362 | else | |
2363 | ac_func_search_save_LIBS=$LIBS | |
2364 | ac_cv_search_strerror=no | |
2365 | cat >conftest.$ac_ext <<_ACEOF | |
2366 | /* confdefs.h. */ | |
2367 | _ACEOF | |
2368 | cat confdefs.h >>conftest.$ac_ext | |
2369 | cat >>conftest.$ac_ext <<_ACEOF | |
2370 | /* end confdefs.h. */ | |
2371 | ||
2372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2373 | #ifdef __cplusplus | |
2374 | extern "C" | |
2375 | #endif | |
2376 | /* We use char because int might match the return type of a gcc2 | |
2377 | builtin and then its argument prototype would still apply. */ | |
2378 | char strerror (); | |
2379 | int | |
2380 | main () | |
2381 | { | |
2382 | strerror (); | |
2383 | ; | |
2384 | return 0; | |
2385 | } | |
2386 | _ACEOF | |
2387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2389 | (eval $ac_link) 2>conftest.er1 | |
2390 | ac_status=$? | |
2391 | grep -v '^ *+' conftest.er1 >conftest.err | |
2392 | rm -f conftest.er1 | |
2393 | cat conftest.err >&5 | |
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2395 | (exit $ac_status); } && | |
df76639a AM |
2396 | { ac_try='test -z "$ac_c_werror_flag" |
2397 | || test ! -s conftest.err' | |
6bf9431b BE |
2398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2399 | (eval $ac_try) 2>&5 | |
2400 | ac_status=$? | |
2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2402 | (exit $ac_status); }; } && | |
2403 | { ac_try='test -s conftest$ac_exeext' | |
2404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2405 | (eval $ac_try) 2>&5 | |
2406 | ac_status=$? | |
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2408 | (exit $ac_status); }; }; then | |
2409 | ac_cv_search_strerror="none required" | |
2410 | else | |
2411 | echo "$as_me: failed program was:" >&5 | |
2412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2413 | ||
2414 | fi | |
2415 | rm -f conftest.err conftest.$ac_objext \ | |
2416 | conftest$ac_exeext conftest.$ac_ext | |
2417 | if test "$ac_cv_search_strerror" = no; then | |
2418 | for ac_lib in cposix; do | |
2419 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2420 | cat >conftest.$ac_ext <<_ACEOF | |
2421 | /* confdefs.h. */ | |
2422 | _ACEOF | |
2423 | cat confdefs.h >>conftest.$ac_ext | |
2424 | cat >>conftest.$ac_ext <<_ACEOF | |
2425 | /* end confdefs.h. */ | |
2426 | ||
2427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2428 | #ifdef __cplusplus | |
2429 | extern "C" | |
2430 | #endif | |
2431 | /* We use char because int might match the return type of a gcc2 | |
2432 | builtin and then its argument prototype would still apply. */ | |
2433 | char strerror (); | |
2434 | int | |
2435 | main () | |
2436 | { | |
2437 | strerror (); | |
2438 | ; | |
2439 | return 0; | |
2440 | } | |
2441 | _ACEOF | |
2442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2444 | (eval $ac_link) 2>conftest.er1 | |
2445 | ac_status=$? | |
2446 | grep -v '^ *+' conftest.er1 >conftest.err | |
2447 | rm -f conftest.er1 | |
2448 | cat conftest.err >&5 | |
2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2450 | (exit $ac_status); } && | |
df76639a AM |
2451 | { ac_try='test -z "$ac_c_werror_flag" |
2452 | || test ! -s conftest.err' | |
6bf9431b BE |
2453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2454 | (eval $ac_try) 2>&5 | |
2455 | ac_status=$? | |
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2457 | (exit $ac_status); }; } && | |
2458 | { ac_try='test -s conftest$ac_exeext' | |
2459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2460 | (eval $ac_try) 2>&5 | |
2461 | ac_status=$? | |
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2463 | (exit $ac_status); }; }; then | |
2464 | ac_cv_search_strerror="-l$ac_lib" | |
2465 | break | |
2466 | else | |
2467 | echo "$as_me: failed program was:" >&5 | |
2468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2469 | ||
2470 | fi | |
2471 | rm -f conftest.err conftest.$ac_objext \ | |
2472 | conftest$ac_exeext conftest.$ac_ext | |
2473 | done | |
2474 | fi | |
2475 | LIBS=$ac_func_search_save_LIBS | |
2476 | fi | |
2477 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2478 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2479 | if test "$ac_cv_search_strerror" != no; then | |
2480 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2481 | ||
2482 | fi | |
2483 | ||
2484 | ||
2485 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
df76639a | 2486 | am__api_version="1.9" |
6bf9431b BE |
2487 | # Find a good install program. We prefer a C program (faster), |
2488 | # so one script is as good as another. But avoid the broken or | |
2489 | # incompatible versions: | |
2490 | # SysV /etc/install, /usr/sbin/install | |
2491 | # SunOS /usr/etc/install | |
2492 | # IRIX /sbin/install | |
2493 | # AIX /bin/install | |
2494 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2495 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2496 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2497 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2498 | # OS/2's system install, which has a completely different semantic | |
2499 | # ./install, which can be erroneously created by make from ./install.sh. | |
2500 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2501 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2502 | if test -z "$INSTALL"; then | |
2503 | if test "${ac_cv_path_install+set}" = set; then | |
2504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2505 | else | |
2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2507 | for as_dir in $PATH | |
2508 | do | |
2509 | IFS=$as_save_IFS | |
2510 | test -z "$as_dir" && as_dir=. | |
2511 | # Account for people who put trailing slashes in PATH elements. | |
2512 | case $as_dir/ in | |
2513 | ./ | .// | /cC/* | \ | |
2514 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2515 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2516 | /usr/ucb/* ) ;; | |
2517 | *) | |
2518 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2519 | # Don't use installbsd from OSF since it installs stuff as root | |
2520 | # by default. | |
2521 | for ac_prog in ginstall scoinst install; do | |
2522 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2523 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2524 | if test $ac_prog = install && | |
2525 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2526 | # AIX install. It has an incompatible calling convention. | |
2527 | : | |
2528 | elif test $ac_prog = install && | |
2529 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2530 | # program-specific install script used by HP pwplus--don't use. | |
2531 | : | |
252b5132 | 2532 | else |
6bf9431b BE |
2533 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2534 | break 3 | |
252b5132 RH |
2535 | fi |
2536 | fi | |
2537 | done | |
6bf9431b BE |
2538 | done |
2539 | ;; | |
2540 | esac | |
2541 | done | |
2542 | ||
252b5132 RH |
2543 | |
2544 | fi | |
2545 | if test "${ac_cv_path_install+set}" = set; then | |
6bf9431b | 2546 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2547 | else |
2548 | # As a last resort, use the slow shell script. We don't cache a | |
2549 | # path for INSTALL within a source directory, because that will | |
2550 | # break other packages using the cache if that directory is | |
2551 | # removed, or if the path is relative. | |
6bf9431b | 2552 | INSTALL=$ac_install_sh |
252b5132 RH |
2553 | fi |
2554 | fi | |
6bf9431b BE |
2555 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2556 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2557 | |
2558 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2559 | # It thinks the first close brace ends the variable substitution. | |
2560 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2561 | ||
6bf9431b | 2562 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2563 | |
2564 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2565 | ||
6bf9431b BE |
2566 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2567 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2568 | # Just in case |
2569 | sleep 1 | |
6bf9431b | 2570 | echo timestamp > conftest.file |
252b5132 RH |
2571 | # Do `set' in a subshell so we don't clobber the current shell's |
2572 | # arguments. Must try -L first in case configure is actually a | |
2573 | # symlink; some systems play weird games with the mod time of symlinks | |
2574 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2575 | # directory). | |
2576 | if ( | |
6bf9431b | 2577 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2578 | if test "$*" = "X"; then |
2579 | # -L didn't work. | |
6bf9431b | 2580 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2581 | fi |
6bf9431b BE |
2582 | rm -f conftest.file |
2583 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2584 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2585 | |
2586 | # If neither matched, then we have a broken ls. This can happen | |
2587 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2588 | # broken ls alias from the environment. This has actually | |
2589 | # happened. Such a system could not be considered "sane". | |
6bf9431b BE |
2590 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2591 | alias in your environment" >&5 | |
2592 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2593 | alias in your environment" >&2;} | |
2594 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2595 | fi |
2596 | ||
6bf9431b | 2597 | test "$2" = conftest.file |
252b5132 RH |
2598 | ) |
2599 | then | |
2600 | # Ok. | |
2601 | : | |
2602 | else | |
6bf9431b BE |
2603 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2604 | Check your system clock" >&5 | |
2605 | echo "$as_me: error: newly created file is older than distributed files! | |
2606 | Check your system clock" >&2;} | |
2607 | { (exit 1); exit 1; }; } | |
252b5132 | 2608 | fi |
6bf9431b BE |
2609 | echo "$as_me:$LINENO: result: yes" >&5 |
2610 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2611 | test "$program_prefix" != NONE && |
6bf9431b | 2612 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2613 | # Use a double $ so make ignores it. |
2614 | test "$program_suffix" != NONE && | |
6bf9431b BE |
2615 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2616 | # Double any \ or $. echo might interpret backslashes. | |
2617 | # By default was `s,x,x', remove it if useless. | |
2618 | cat <<\_ACEOF >conftest.sed | |
2619 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2620 | _ACEOF | |
2621 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2622 | rm conftest.sed | |
2623 | ||
2624 | # expand $ac_aux_dir to an absolute path | |
2625 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2626 | ||
2627 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2628 | # Use eval to expand $SHELL | |
2629 | if eval "$MISSING --run true"; then | |
2630 | am_missing_run="$MISSING --run " | |
2631 | else | |
2632 | am_missing_run= | |
2633 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2634 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2635 | fi | |
2636 | ||
2637 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
df76639a AM |
2638 | # We used to keeping the `.' as first argument, in order to |
2639 | # allow $(mkdir_p) to be used without argument. As in | |
6bf9431b | 2640 | # $(mkdir_p) $(somedir) |
df76639a AM |
2641 | # where $(somedir) is conditionally defined. However this is wrong |
2642 | # for two reasons: | |
2643 | # 1. if the package is installed by a user who cannot write `.' | |
2644 | # make install will fail, | |
2645 | # 2. the above comment should most certainly read | |
2646 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2647 | # so it does not work when $(somedir) is undefined and | |
2648 | # $(DESTDIR) is not. | |
2649 | # To support the latter case, we have to write | |
2650 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2651 | # so the `.' trick is pointless. | |
2652 | mkdir_p='mkdir -p --' | |
6bf9431b BE |
2653 | else |
2654 | # On NextStep and OpenStep, the `mkdir' command does not | |
2655 | # recognize any option. It will interpret all options as | |
2656 | # directories to create, and then abort because `.' already | |
2657 | # exists. | |
2658 | for d in ./-p ./--version; | |
2659 | do | |
2660 | test -d $d && rmdir $d | |
2661 | done | |
2662 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2663 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2664 | mkdir_p='$(mkinstalldirs)' | |
2665 | else | |
2666 | mkdir_p='$(install_sh) -d' | |
2667 | fi | |
2668 | fi | |
252b5132 | 2669 | |
6bf9431b BE |
2670 | for ac_prog in gawk mawk nawk awk |
2671 | do | |
2672 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2673 | set dummy $ac_prog; ac_word=$2 | |
2674 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2676 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2678 | else | |
2679 | if test -n "$AWK"; then | |
2680 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2681 | else | |
2682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2683 | for as_dir in $PATH | |
2684 | do | |
2685 | IFS=$as_save_IFS | |
2686 | test -z "$as_dir" && as_dir=. | |
2687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2689 | ac_cv_prog_AWK="$ac_prog" | |
2690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2691 | break 2 | |
2692 | fi | |
2693 | done | |
2694 | done | |
2695 | ||
2696 | fi | |
2697 | fi | |
2698 | AWK=$ac_cv_prog_AWK | |
2699 | if test -n "$AWK"; then | |
2700 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2701 | echo "${ECHO_T}$AWK" >&6 | |
2702 | else | |
2703 | echo "$as_me:$LINENO: result: no" >&5 | |
2704 | echo "${ECHO_T}no" >&6 | |
2705 | fi | |
2706 | ||
2707 | test -n "$AWK" && break | |
2708 | done | |
252b5132 | 2709 | |
6bf9431b BE |
2710 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2711 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2712 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2713 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2715 | else |
6bf9431b | 2716 | cat >conftest.make <<\_ACEOF |
252b5132 | 2717 | all: |
6bf9431b BE |
2718 | @echo 'ac_maketemp="$(MAKE)"' |
2719 | _ACEOF | |
252b5132 | 2720 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6bf9431b | 2721 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2722 | if test -n "$ac_maketemp"; then |
2723 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2724 | else | |
2725 | eval ac_cv_prog_make_${ac_make}_set=no | |
2726 | fi | |
6bf9431b | 2727 | rm -f conftest.make |
252b5132 RH |
2728 | fi |
2729 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
6bf9431b BE |
2730 | echo "$as_me:$LINENO: result: yes" >&5 |
2731 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2732 | SET_MAKE= |
2733 | else | |
6bf9431b BE |
2734 | echo "$as_me:$LINENO: result: no" >&5 |
2735 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2736 | SET_MAKE="MAKE=${MAKE-make}" |
2737 | fi | |
2738 | ||
6bf9431b BE |
2739 | rm -rf .tst 2>/dev/null |
2740 | mkdir .tst 2>/dev/null | |
2741 | if test -d .tst; then | |
2742 | am__leading_dot=. | |
2743 | else | |
2744 | am__leading_dot=_ | |
2745 | fi | |
2746 | rmdir .tst 2>/dev/null | |
2747 | ||
2748 | DEPDIR="${am__leading_dot}deps" | |
2749 | ||
2750 | ac_config_commands="$ac_config_commands depfiles" | |
2751 | ||
2752 | ||
2753 | am_make=${MAKE-make} | |
2754 | cat > confinc << 'END' | |
2755 | am__doit: | |
2756 | @echo done | |
2757 | .PHONY: am__doit | |
2758 | END | |
2759 | # If we don't find an include directive, just comment out the code. | |
2760 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2761 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2762 | am__include="#" | |
2763 | am__quote= | |
2764 | _am_result=none | |
2765 | # First try GNU make style include. | |
2766 | echo "include confinc" > confmf | |
2767 | # We grep out `Entering directory' and `Leaving directory' | |
2768 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2769 | # In particular we don't look at `^make:' because GNU make might | |
2770 | # be invoked under some other name (usually "gmake"), in which | |
2771 | # case it prints its new name instead of `make'. | |
2772 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2773 | am__include=include | |
2774 | am__quote= | |
2775 | _am_result=GNU | |
2776 | fi | |
2777 | # Now try BSD make style include. | |
2778 | if test "$am__include" = "#"; then | |
2779 | echo '.include "confinc"' > confmf | |
2780 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2781 | am__include=.include | |
2782 | am__quote="\"" | |
2783 | _am_result=BSD | |
2784 | fi | |
2785 | fi | |
2786 | ||
252b5132 | 2787 | |
6bf9431b BE |
2788 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2789 | echo "${ECHO_T}$_am_result" >&6 | |
2790 | rm -f confinc confmf | |
252b5132 | 2791 | |
6bf9431b BE |
2792 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2793 | if test "${enable_dependency_tracking+set}" = set; then | |
2794 | enableval="$enable_dependency_tracking" | |
252b5132 | 2795 | |
6bf9431b BE |
2796 | fi; |
2797 | if test "x$enable_dependency_tracking" != xno; then | |
2798 | am_depcomp="$ac_aux_dir/depcomp" | |
2799 | AMDEPBACKSLASH='\' | |
252b5132 | 2800 | fi |
6bf9431b BE |
2801 | |
2802 | ||
2803 | if test "x$enable_dependency_tracking" != xno; then | |
2804 | AMDEP_TRUE= | |
2805 | AMDEP_FALSE='#' | |
2806 | else | |
2807 | AMDEP_TRUE='#' | |
2808 | AMDEP_FALSE= | |
2809 | fi | |
2810 | ||
2811 | ||
2812 | ||
2813 | # test to see if srcdir already configured | |
2814 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2815 | test -f $srcdir/config.status; then | |
2816 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2817 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2818 | { (exit 1); exit 1; }; } | |
2819 | fi | |
2820 | ||
2821 | # test whether we have cygpath | |
2822 | if test -z "$CYGPATH_W"; then | |
2823 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2824 | CYGPATH_W='cygpath -w' | |
2825 | else | |
2826 | CYGPATH_W=echo | |
2827 | fi | |
2828 | fi | |
2829 | ||
2830 | ||
2831 | # Define the identity of the package. | |
2832 | PACKAGE=gprof | |
2833 | VERSION=${BFD_VERSION} | |
2834 | ||
2835 | ||
2836 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2837 | #define PACKAGE "$PACKAGE" |
6bf9431b BE |
2838 | _ACEOF |
2839 | ||
252b5132 | 2840 | |
6bf9431b | 2841 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2842 | #define VERSION "$VERSION" |
6bf9431b BE |
2843 | _ACEOF |
2844 | ||
2845 | # Some tools Automake needs. | |
2846 | ||
2847 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2848 | ||
2849 | ||
2850 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2851 | ||
2852 | ||
2853 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2854 | ||
2855 | ||
2856 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2857 | ||
2858 | ||
2859 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2860 | ||
6bf9431b | 2861 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
252b5132 | 2862 | |
6bf9431b BE |
2863 | # Installed binaries are usually stripped using `strip' when the user |
2864 | # run `make install-strip'. However `strip' might not be the right | |
2865 | # tool to use in cross-compilation environments, therefore Automake | |
2866 | # will honor the `STRIP' environment variable to overrule this program. | |
2867 | if test "$cross_compiling" != no; then | |
2868 | if test -n "$ac_tool_prefix"; then | |
2869 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2870 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2871 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2873 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2875 | else | |
2876 | if test -n "$STRIP"; then | |
2877 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2878 | else | |
2879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2880 | for as_dir in $PATH | |
2881 | do | |
2882 | IFS=$as_save_IFS | |
2883 | test -z "$as_dir" && as_dir=. | |
2884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2886 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2888 | break 2 | |
2889 | fi | |
2890 | done | |
2891 | done | |
2892 | ||
2893 | fi | |
2894 | fi | |
2895 | STRIP=$ac_cv_prog_STRIP | |
2896 | if test -n "$STRIP"; then | |
2897 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2898 | echo "${ECHO_T}$STRIP" >&6 | |
2899 | else | |
2900 | echo "$as_me:$LINENO: result: no" >&5 | |
2901 | echo "${ECHO_T}no" >&6 | |
2902 | fi | |
252b5132 | 2903 | |
6bf9431b BE |
2904 | fi |
2905 | if test -z "$ac_cv_prog_STRIP"; then | |
2906 | ac_ct_STRIP=$STRIP | |
2907 | # Extract the first word of "strip", so it can be a program name with args. | |
2908 | set dummy strip; ac_word=$2 | |
2909 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2911 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2913 | else | |
2914 | if test -n "$ac_ct_STRIP"; then | |
2915 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2916 | else | |
2917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2918 | for as_dir in $PATH | |
2919 | do | |
2920 | IFS=$as_save_IFS | |
2921 | test -z "$as_dir" && as_dir=. | |
2922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2923 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2924 | ac_cv_prog_ac_ct_STRIP="strip" | |
2925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2926 | break 2 | |
2927 | fi | |
2928 | done | |
2929 | done | |
252b5132 | 2930 | |
6bf9431b BE |
2931 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2932 | fi | |
2933 | fi | |
2934 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2935 | if test -n "$ac_ct_STRIP"; then | |
2936 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2937 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2938 | else |
6bf9431b BE |
2939 | echo "$as_me:$LINENO: result: no" >&5 |
2940 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2941 | fi |
2942 | ||
6bf9431b | 2943 | STRIP=$ac_ct_STRIP |
252b5132 | 2944 | else |
6bf9431b | 2945 | STRIP="$ac_cv_prog_STRIP" |
252b5132 RH |
2946 | fi |
2947 | ||
6bf9431b BE |
2948 | fi |
2949 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2950 | ||
2951 | # We need awk for the "check" target. The system "awk" is bad on | |
2952 | # some platforms. | |
df76639a AM |
2953 | # Always define AMTAR for backward compatibility. |
2954 | ||
2955 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2956 | ||
2957 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2958 | ||
2959 | ||
6bf9431b BE |
2960 | |
2961 | ||
2962 | depcc="$CC" am_compiler_list= | |
2963 | ||
2964 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2965 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2966 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2968 | else | |
2969 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2970 | # We make a subdir and do the tests there. Otherwise we can end up | |
2971 | # making bogus files that we don't know about and never remove. For | |
2972 | # instance it was reported that on HP-UX the gcc test will end up | |
2973 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2974 | # in D'. | |
2975 | mkdir conftest.dir | |
2976 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2977 | # using a relative directory. | |
2978 | cp "$am_depcomp" conftest.dir | |
2979 | cd conftest.dir | |
2980 | # We will build objects and dependencies in a subdirectory because | |
2981 | # it helps to detect inapplicable dependency modes. For instance | |
2982 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2983 | # side effect of compilation, but ICC will put the dependencies in | |
2984 | # the current directory while Tru64 will put them in the object | |
2985 | # directory. | |
2986 | mkdir sub | |
2987 | ||
2988 | am_cv_CC_dependencies_compiler_type=none | |
2989 | if test "$am_compiler_list" = ""; then | |
2990 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2991 | fi | |
2992 | for depmode in $am_compiler_list; do | |
2993 | # Setup a source with many dependencies, because some compilers | |
2994 | # like to wrap large dependency lists on column 80 (with \), and | |
2995 | # we should not choose a depcomp mode which is confused by this. | |
2996 | # | |
2997 | # We need to recreate these files for each test, as the compiler may | |
2998 | # overwrite some of them when testing with obscure command lines. | |
2999 | # This happens at least with the AIX C compiler. | |
3000 | : > sub/conftest.c | |
3001 | for i in 1 2 3 4 5 6; do | |
3002 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3003 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3004 | # Solaris 8's {/usr,}/bin/sh. | |
3005 | touch sub/conftst$i.h | |
3006 | done | |
3007 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3008 | ||
3009 | case $depmode in | |
3010 | nosideeffect) | |
3011 | # after this tag, mechanisms are not by side-effect, so they'll | |
3012 | # only be used when explicitly requested | |
3013 | if test "x$enable_dependency_tracking" = xyes; then | |
3014 | continue | |
3015 | else | |
3016 | break | |
3017 | fi | |
3018 | ;; | |
3019 | none) break ;; | |
3020 | esac | |
3021 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3022 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3023 | # handle `-M -o', and we need to detect this. | |
3024 | if depmode=$depmode \ | |
3025 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3026 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3027 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3028 | >/dev/null 2>conftest.err && | |
3029 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3030 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3031 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3032 | # icc doesn't choke on unknown options, it will just issue warnings | |
3033 | # or remarks (even with -Werror). So we grep stderr for any message | |
3034 | # that says an option was ignored or not supported. | |
3035 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3036 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3037 | # The diagnosis changed in icc 8.0: | |
3038 | # icc: Command line remark: option '-MP' not supported | |
3039 | if (grep 'ignoring option' conftest.err || | |
3040 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3041 | am_cv_CC_dependencies_compiler_type=$depmode | |
3042 | break | |
3043 | fi | |
3044 | fi | |
3045 | done | |
3046 | ||
3047 | cd .. | |
3048 | rm -rf conftest.dir | |
252b5132 | 3049 | else |
6bf9431b | 3050 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3051 | fi |
3052 | ||
252b5132 | 3053 | fi |
6bf9431b BE |
3054 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3055 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3056 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3057 | ||
252b5132 | 3058 | |
6bf9431b BE |
3059 | |
3060 | if | |
3061 | test "x$enable_dependency_tracking" != xno \ | |
3062 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3063 | am__fastdepCC_TRUE= | |
3064 | am__fastdepCC_FALSE='#' | |
252b5132 | 3065 | else |
6bf9431b BE |
3066 | am__fastdepCC_TRUE='#' |
3067 | am__fastdepCC_FALSE= | |
252b5132 RH |
3068 | fi |
3069 | ||
3070 | ||
3071 | ||
6bf9431b | 3072 | |
252b5132 RH |
3073 | # Check whether --enable-shared or --disable-shared was given. |
3074 | if test "${enable_shared+set}" = set; then | |
3075 | enableval="$enable_shared" | |
3076 | p=${PACKAGE-default} | |
6be7c12c | 3077 | case $enableval in |
252b5132 RH |
3078 | yes) enable_shared=yes ;; |
3079 | no) enable_shared=no ;; | |
3080 | *) | |
3081 | enable_shared=no | |
3082 | # Look at the argument we got. We use all the common list separators. | |
3083 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3084 | for pkg in $enableval; do | |
3085 | if test "X$pkg" = "X$p"; then | |
3086 | enable_shared=yes | |
3087 | fi | |
3088 | done | |
3089 | IFS="$ac_save_ifs" | |
3090 | ;; | |
3091 | esac | |
3092 | else | |
3093 | enable_shared=yes | |
6bf9431b | 3094 | fi; |
252b5132 RH |
3095 | # Check whether --enable-static or --disable-static was given. |
3096 | if test "${enable_static+set}" = set; then | |
3097 | enableval="$enable_static" | |
3098 | p=${PACKAGE-default} | |
6be7c12c | 3099 | case $enableval in |
252b5132 RH |
3100 | yes) enable_static=yes ;; |
3101 | no) enable_static=no ;; | |
3102 | *) | |
3103 | enable_static=no | |
3104 | # Look at the argument we got. We use all the common list separators. | |
3105 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3106 | for pkg in $enableval; do | |
3107 | if test "X$pkg" = "X$p"; then | |
3108 | enable_static=yes | |
3109 | fi | |
3110 | done | |
3111 | IFS="$ac_save_ifs" | |
3112 | ;; | |
3113 | esac | |
3114 | else | |
3115 | enable_static=yes | |
6bf9431b | 3116 | fi; |
252b5132 RH |
3117 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3118 | if test "${enable_fast_install+set}" = set; then | |
3119 | enableval="$enable_fast_install" | |
3120 | p=${PACKAGE-default} | |
6be7c12c | 3121 | case $enableval in |
252b5132 RH |
3122 | yes) enable_fast_install=yes ;; |
3123 | no) enable_fast_install=no ;; | |
3124 | *) | |
3125 | enable_fast_install=no | |
3126 | # Look at the argument we got. We use all the common list separators. | |
3127 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3128 | for pkg in $enableval; do | |
3129 | if test "X$pkg" = "X$p"; then | |
3130 | enable_fast_install=yes | |
3131 | fi | |
3132 | done | |
3133 | IFS="$ac_save_ifs" | |
3134 | ;; | |
3135 | esac | |
3136 | else | |
3137 | enable_fast_install=yes | |
6bf9431b | 3138 | fi; |
093872ec | 3139 | |
252b5132 RH |
3140 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3141 | if test "${with_gnu_ld+set}" = set; then | |
3142 | withval="$with_gnu_ld" | |
3143 | test "$withval" = no || with_gnu_ld=yes | |
3144 | else | |
3145 | with_gnu_ld=no | |
6bf9431b | 3146 | fi; |
252b5132 | 3147 | ac_prog=ld |
6be7c12c | 3148 | if test "$GCC" = yes; then |
252b5132 | 3149 | # Check if gcc -print-prog-name=ld gives a path. |
6bf9431b BE |
3150 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3151 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3152 | case $host in |
3153 | *-*-mingw*) | |
3154 | # gcc leaves a trailing carriage return which upsets mingw | |
3155 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3156 | *) | |
3157 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3158 | esac | |
6be7c12c | 3159 | case $ac_prog in |
252b5132 | 3160 | # Accept absolute paths. |
5af11cab | 3161 | [\\/]* | [A-Za-z]:[\\/]*) |
252b5132 RH |
3162 | re_direlt='/[^/][^/]*/\.\./' |
3163 | # Canonicalize the path of ld | |
3164 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3165 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3166 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3167 | done | |
3168 | test -z "$LD" && LD="$ac_prog" | |
3169 | ;; | |
3170 | "") | |
3171 | # If it fails, then pretend we aren't using GCC. | |
3172 | ac_prog=ld | |
3173 | ;; | |
3174 | *) | |
3175 | # If it is relative, then search for the first ld in PATH. | |
3176 | with_gnu_ld=unknown | |
3177 | ;; | |
3178 | esac | |
3179 | elif test "$with_gnu_ld" = yes; then | |
6bf9431b BE |
3180 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3181 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3182 | else |
6bf9431b BE |
3183 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3184 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3185 | fi |
6bf9431b BE |
3186 | if test "${lt_cv_path_LD+set}" = set; then |
3187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3188 | else |
3189 | if test -z "$LD"; then | |
5af11cab | 3190 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3191 | for ac_dir in $PATH; do |
3192 | test -z "$ac_dir" && ac_dir=. | |
5af11cab | 3193 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
6be7c12c | 3194 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3195 | # Check to see if the program is GNU ld. I'd rather use --version, |
3196 | # but apparently some GNU ld's only accept -v. | |
3197 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6be7c12c | 3198 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3199 | test "$with_gnu_ld" != no && break |
3200 | else | |
3201 | test "$with_gnu_ld" != yes && break | |
3202 | fi | |
3203 | fi | |
3204 | done | |
3205 | IFS="$ac_save_ifs" | |
3206 | else | |
6be7c12c | 3207 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3208 | fi |
3209 | fi | |
3210 | ||
6be7c12c | 3211 | LD="$lt_cv_path_LD" |
252b5132 | 3212 | if test -n "$LD"; then |
6bf9431b BE |
3213 | echo "$as_me:$LINENO: result: $LD" >&5 |
3214 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3215 | else |
6bf9431b BE |
3216 | echo "$as_me:$LINENO: result: no" >&5 |
3217 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3218 | fi |
6bf9431b BE |
3219 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3220 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3221 | { (exit 1); exit 1; }; } | |
3222 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3223 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3224 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3226 | else |
3227 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3228 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
6be7c12c | 3229 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3230 | else |
6be7c12c | 3231 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3232 | fi |
3233 | fi | |
6bf9431b BE |
3234 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3235 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
6be7c12c | 3236 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 RH |
3237 | |
3238 | ||
6bf9431b BE |
3239 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3240 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3241 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3243 | else |
3244 | lt_cv_ld_reload_flag='-r' | |
3245 | fi | |
6bf9431b BE |
3246 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3247 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3248 | reload_flag=$lt_cv_ld_reload_flag |
3249 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3250 | ||
6bf9431b BE |
3251 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3252 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3253 | if test "${lt_cv_path_NM+set}" = set; then | |
3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3255 | else |
3256 | if test -n "$NM"; then | |
3257 | # Let the user override the test. | |
6be7c12c | 3258 | lt_cv_path_NM="$NM" |
252b5132 | 3259 | else |
5af11cab | 3260 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3261 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3262 | test -z "$ac_dir" && ac_dir=. | |
ac48eca1 AO |
3263 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3264 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3265 | # Check to see if the nm accepts a BSD-compat flag. |
3266 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3267 | # nm: unknown option "B" ignored | |
17a94bb6 AO |
3268 | # Tru64's nm complains that /dev/null is an invalid object file |
3269 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
6be7c12c | 3270 | lt_cv_path_NM="$tmp_nm -B" |
252b5132 | 3271 | break |
ac48eca1 | 3272 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
6be7c12c | 3273 | lt_cv_path_NM="$tmp_nm -p" |
252b5132 RH |
3274 | break |
3275 | else | |
6be7c12c | 3276 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
252b5132 RH |
3277 | continue # so that we can try to find one that supports BSD flags |
3278 | fi | |
3279 | fi | |
3280 | done | |
3281 | IFS="$ac_save_ifs" | |
6be7c12c | 3282 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3283 | fi |
3284 | fi | |
3285 | ||
6be7c12c | 3286 | NM="$lt_cv_path_NM" |
6bf9431b BE |
3287 | echo "$as_me:$LINENO: result: $NM" >&5 |
3288 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3289 | |
6bf9431b BE |
3290 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3291 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3292 | LN_S=$as_ln_s | |
3293 | if test "$LN_S" = "ln -s"; then | |
3294 | echo "$as_me:$LINENO: result: yes" >&5 | |
3295 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 3296 | else |
6bf9431b BE |
3297 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3298 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3299 | fi |
3300 | ||
6bf9431b BE |
3301 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3302 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3303 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3305 | else |
d64552c5 | 3306 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3307 | lt_cv_file_magic_test_file= |
3308 | lt_cv_deplibs_check_method='unknown' | |
3309 | # Need to set the preceding variable on all platforms that support | |
3310 | # interlibrary dependencies. | |
3311 | # 'none' -- dependencies not supported. | |
3312 | # `unknown' -- same as none, but documents that we really don't know. | |
3313 | # 'pass_all' -- all dependencies passed with no checks. | |
3314 | # 'test_compile' -- check by making test program. | |
3315 | # 'file_magic [regex]' -- check by looking for files in library path | |
3316 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3317 | # If you have `file' or equivalent on your system and you're not sure | |
3318 | # whether `pass_all' will *always* work, you probably want this one. | |
3319 | ||
6be7c12c AO |
3320 | case $host_os in |
3321 | aix*) | |
ac48eca1 AO |
3322 | lt_cv_deplibs_check_method=pass_all |
3323 | ;; | |
3324 | ||
3325 | beos*) | |
3326 | lt_cv_deplibs_check_method=pass_all | |
3327 | ;; | |
3328 | ||
3329 | bsdi4*) | |
6be7c12c AO |
3330 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3331 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3332 | lt_cv_file_magic_test_file=/shlib/libc.so |
3333 | ;; | |
3334 | ||
d64552c5 | 3335 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3336 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3337 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3338 | ;; |
3339 | ||
6be7c12c | 3340 | darwin* | rhapsody*) |
108a6f8e | 3341 | # this will be overwritten by pass_all, but leave it in just in case |
6be7c12c AO |
3342 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
3343 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3344 | case "$host_os" in | |
3345 | rhapsody* | darwin1.012) | |
3346 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3347 | ;; | |
3348 | *) # Darwin 1.3 on | |
3349 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3350 | ;; | |
3351 | esac | |
108a6f8e | 3352 | lt_cv_deplibs_check_method=pass_all |
6be7c12c AO |
3353 | ;; |
3354 | ||
df76639a | 3355 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3356 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
6be7c12c | 3357 | case $host_cpu in |
ac48eca1 | 3358 | i*86 ) |
17a94bb6 AO |
3359 | # Not sure whether the presence of OpenBSD here was a mistake. |
3360 | # Let's accept both of them until this is cleared up. | |
6be7c12c AO |
3361 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3362 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3363 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3364 | ;; | |
3365 | esac | |
3366 | else | |
3367 | lt_cv_deplibs_check_method=pass_all | |
3368 | fi | |
3369 | ;; | |
3370 | ||
3371 | gnu*) | |
3372 | lt_cv_deplibs_check_method=pass_all | |
3373 | ;; | |
3374 | ||
6be7c12c | 3375 | hpux10.20*|hpux11*) |
4867be41 DJ |
3376 | case $host_cpu in |
3377 | hppa*) | |
3378 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3379 | lt_cv_file_magic_cmd=/usr/bin/file | |
3380 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3381 | ;; | |
3382 | ia64*) | |
3383 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3384 | lt_cv_file_magic_cmd=/usr/bin/file | |
3385 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3386 | ;; | |
3387 | esac | |
ac48eca1 AO |
3388 | ;; |
3389 | ||
3390 | irix5* | irix6*) | |
6be7c12c | 3391 | case $host_os in |
ac48eca1 AO |
3392 | irix5*) |
3393 | # this will be overridden with pass_all, but let us keep it just in case | |
3394 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3395 | ;; | |
3396 | *) | |
6be7c12c | 3397 | case $LD in |
ac48eca1 AO |
3398 | *-32|*"-32 ") libmagic=32-bit;; |
3399 | *-n32|*"-n32 ") libmagic=N32;; | |
3400 | *-64|*"-64 ") libmagic=64-bit;; | |
3401 | *) libmagic=never-match;; | |
3402 | esac | |
3403 | # this will be overridden with pass_all, but let us keep it just in case | |
6be7c12c AO |
3404 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3405 | ;; | |
ac48eca1 AO |
3406 | esac |
3407 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3408 | lt_cv_deplibs_check_method=pass_all | |
3409 | ;; | |
3410 | ||
3411 | # This must be Linux ELF. | |
17a94bb6 | 3412 | linux-gnu*) |
108a6f8e | 3413 | lt_cv_deplibs_check_method=pass_all |
ac48eca1 AO |
3414 | ;; |
3415 | ||
df76639a | 3416 | netbsd* | knetbsd*-gnu) |
6be7c12c AO |
3417 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3418 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
ac48eca1 | 3419 | else |
6be7c12c | 3420 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 AO |
3421 | fi |
3422 | ;; | |
3423 | ||
6be7c12c AO |
3424 | newsos6) |
3425 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3426 | lt_cv_file_magic_cmd=/usr/bin/file | |
3427 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3428 | ;; | |
3429 | ||
ac48eca1 AO |
3430 | osf3* | osf4* | osf5*) |
3431 | # this will be overridden with pass_all, but let us keep it just in case | |
3432 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3433 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3434 | lt_cv_deplibs_check_method=pass_all | |
3435 | ;; | |
3436 | ||
3437 | sco3.2v5*) | |
3438 | lt_cv_deplibs_check_method=pass_all | |
3439 | ;; | |
3440 | ||
3441 | solaris*) | |
3442 | lt_cv_deplibs_check_method=pass_all | |
3443 | lt_cv_file_magic_test_file=/lib/libc.so | |
3444 | ;; | |
3445 | ||
6be7c12c AO |
3446 | sysv5uw[78]* | sysv4*uw2*) |
3447 | lt_cv_deplibs_check_method=pass_all | |
3448 | ;; | |
3449 | ||
ac48eca1 | 3450 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6be7c12c | 3451 | case $host_vendor in |
ac48eca1 AO |
3452 | ncr) |
3453 | lt_cv_deplibs_check_method=pass_all | |
3454 | ;; | |
3455 | motorola) | |
6be7c12c AO |
3456 | 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]' |
3457 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3458 | ;; |
3459 | esac | |
3460 | ;; | |
3461 | esac | |
3462 | ||
3463 | fi | |
6bf9431b BE |
3464 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3465 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3466 | file_magic_cmd=$lt_cv_file_magic_cmd |
3467 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3468 | ||
ac48eca1 | 3469 | |
ac48eca1 | 3470 | |
ac48eca1 AO |
3471 | |
3472 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3473 | ||
108a6f8e CD |
3474 | # find the maximum length of command line arguments |
3475 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3476 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3477 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3479 | else | |
3480 | i=0 | |
3481 | teststring="ABCD" | |
3482 | ||
3483 | case $build_os in | |
3484 | msdosdjgpp*) | |
3485 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3486 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3487 | # during glob expansion). Even if it were fixed, the result of this | |
3488 | # check would be larger than it should be. | |
3489 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3490 | ;; | |
3491 | ||
3492 | cygwin* | mingw*) | |
3493 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3494 | # about 5 minutes as the teststring grows exponentially. | |
3495 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3496 | # you end up with a "frozen" computer, even though with patience | |
3497 | # the test eventually succeeds (with a max line length of 256k). | |
3498 | # Instead, let's just punt: use the minimum linelength reported by | |
3499 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3500 | lt_cv_sys_max_cmd_len=8192; | |
3501 | ;; | |
3502 | ||
3503 | amigaos*) | |
3504 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3505 | # So we just punt and use a minimum line length of 8192. | |
3506 | lt_cv_sys_max_cmd_len=8192; | |
3507 | ;; | |
3508 | ||
3509 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3510 | # This has been around since 386BSD, at least. Likely further. | |
3511 | if test -x /sbin/sysctl; then | |
3512 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3513 | elif test -x /usr/sbin/sysctl; then | |
3514 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3515 | else | |
3516 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3517 | fi | |
3518 | # And add a safety zone | |
3519 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
3520 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
3521 | ;; | |
3522 | esac | |
3523 | ||
3524 | fi | |
3525 | ||
3526 | if test -n "$lt_cv_sys_max_cmd_len" ; then | |
3527 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
3528 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
3529 | else | |
3530 | echo "$as_me:$LINENO: result: none" >&5 | |
3531 | echo "${ECHO_T}none" >&6 | |
3532 | fi | |
3533 | ||
3534 | ||
ac48eca1 | 3535 | # Only perform the check for file, if the check method requires it |
6be7c12c | 3536 | case $deplibs_check_method in |
ac48eca1 | 3537 | file_magic*) |
d64552c5 | 3538 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6bf9431b BE |
3539 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3540 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3541 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3543 | else |
6be7c12c | 3544 | case $MAGIC_CMD in |
ac48eca1 | 3545 | /*) |
d64552c5 | 3546 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3547 | ;; |
3548 | ?:/*) | |
d64552c5 | 3549 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3550 | ;; |
3551 | *) | |
d64552c5 | 3552 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3553 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3554 | ac_dummy="/usr/bin:$PATH" | |
3555 | for ac_dir in $ac_dummy; do | |
3556 | test -z "$ac_dir" && ac_dir=. | |
3557 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3558 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3559 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3560 | case $deplibs_check_method in |
ac48eca1 AO |
3561 | "file_magic "*) |
3562 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3563 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3564 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3565 | egrep "$file_magic_regex" > /dev/null; then | |
3566 | : | |
3567 | else | |
3568 | cat <<EOF 1>&2 | |
3569 | ||
3570 | *** Warning: the command libtool uses to detect shared libraries, | |
3571 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3572 | *** The result is that libtool may fail to recognize shared libraries | |
3573 | *** as such. This will affect the creation of libtool libraries that | |
3574 | *** depend on shared libraries, but programs linked with such libtool | |
3575 | *** libraries will work regardless of this problem. Nevertheless, you | |
3576 | *** may want to report the problem to your system manager and/or to | |
3577 | *** bug-libtool@gnu.org | |
3578 | ||
3579 | EOF | |
3580 | fi ;; | |
3581 | esac | |
3582 | fi | |
3583 | break | |
3584 | fi | |
3585 | done | |
3586 | IFS="$ac_save_ifs" | |
d64552c5 | 3587 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3588 | ;; |
3589 | esac | |
3590 | fi | |
3591 | ||
d64552c5 AO |
3592 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3593 | if test -n "$MAGIC_CMD"; then | |
6bf9431b BE |
3594 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3595 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3596 | else |
6bf9431b BE |
3597 | echo "$as_me:$LINENO: result: no" >&5 |
3598 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3599 | fi |
3600 | ||
d64552c5 | 3601 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3602 | if test -n "$ac_tool_prefix"; then |
6bf9431b BE |
3603 | echo "$as_me:$LINENO: checking for file" >&5 |
3604 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3605 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3607 | else |
6be7c12c | 3608 | case $MAGIC_CMD in |
ac48eca1 | 3609 | /*) |
d64552c5 | 3610 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3611 | ;; |
3612 | ?:/*) | |
d64552c5 | 3613 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3614 | ;; |
3615 | *) | |
d64552c5 | 3616 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3617 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3618 | ac_dummy="/usr/bin:$PATH" | |
3619 | for ac_dir in $ac_dummy; do | |
3620 | test -z "$ac_dir" && ac_dir=. | |
3621 | if test -f $ac_dir/file; then | |
d64552c5 | 3622 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3623 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3624 | case $deplibs_check_method in |
ac48eca1 AO |
3625 | "file_magic "*) |
3626 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3627 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3628 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3629 | egrep "$file_magic_regex" > /dev/null; then | |
3630 | : | |
3631 | else | |
3632 | cat <<EOF 1>&2 | |
3633 | ||
3634 | *** Warning: the command libtool uses to detect shared libraries, | |
3635 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3636 | *** The result is that libtool may fail to recognize shared libraries | |
3637 | *** as such. This will affect the creation of libtool libraries that | |
3638 | *** depend on shared libraries, but programs linked with such libtool | |
3639 | *** libraries will work regardless of this problem. Nevertheless, you | |
3640 | *** may want to report the problem to your system manager and/or to | |
3641 | *** bug-libtool@gnu.org | |
3642 | ||
3643 | EOF | |
3644 | fi ;; | |
3645 | esac | |
3646 | fi | |
3647 | break | |
3648 | fi | |
3649 | done | |
3650 | IFS="$ac_save_ifs" | |
d64552c5 | 3651 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3652 | ;; |
3653 | esac | |
3654 | fi | |
3655 | ||
d64552c5 AO |
3656 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3657 | if test -n "$MAGIC_CMD"; then | |
6bf9431b BE |
3658 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3659 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3660 | else |
6bf9431b BE |
3661 | echo "$as_me:$LINENO: result: no" >&5 |
3662 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3663 | fi |
3664 | ||
3665 | else | |
d64552c5 | 3666 | MAGIC_CMD=: |
ac48eca1 AO |
3667 | fi |
3668 | fi | |
252b5132 | 3669 | |
ac48eca1 AO |
3670 | fi |
3671 | ;; | |
5af11cab | 3672 | esac |
252b5132 | 3673 | |
6bf9431b BE |
3674 | if test -n "$ac_tool_prefix"; then |
3675 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3676 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6bf9431b BE |
3677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3679 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3681 | else |
3682 | if test -n "$RANLIB"; then | |
3683 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3684 | else | |
6bf9431b BE |
3685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3686 | for as_dir in $PATH | |
3687 | do | |
3688 | IFS=$as_save_IFS | |
3689 | test -z "$as_dir" && as_dir=. | |
3690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3692 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3694 | break 2 | |
3695 | fi | |
3696 | done | |
3697 | done | |
3698 | ||
ac48eca1 AO |
3699 | fi |
3700 | fi | |
6bf9431b | 3701 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3702 | if test -n "$RANLIB"; then |
6bf9431b BE |
3703 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3704 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3705 | else |
6bf9431b BE |
3706 | echo "$as_me:$LINENO: result: no" >&5 |
3707 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3708 | fi |
3709 | ||
6bf9431b | 3710 | fi |
ac48eca1 | 3711 | if test -z "$ac_cv_prog_RANLIB"; then |
6bf9431b | 3712 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3713 | # Extract the first word of "ranlib", so it can be a program name with args. |
3714 | set dummy ranlib; ac_word=$2 | |
6bf9431b BE |
3715 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3716 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3717 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3719 | else |
6bf9431b BE |
3720 | if test -n "$ac_ct_RANLIB"; then |
3721 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
ac48eca1 | 3722 | else |
6bf9431b BE |
3723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3724 | for as_dir in $PATH | |
3725 | do | |
3726 | IFS=$as_save_IFS | |
3727 | test -z "$as_dir" && as_dir=. | |
3728 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3729 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3730 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3732 | break 2 | |
3733 | fi | |
3734 | done | |
3735 | done | |
3736 | ||
3737 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3738 | fi |
3739 | fi | |
6bf9431b BE |
3740 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3741 | if test -n "$ac_ct_RANLIB"; then | |
3742 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3743 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3744 | else |
6bf9431b BE |
3745 | echo "$as_me:$LINENO: result: no" >&5 |
3746 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3747 | fi |
3748 | ||
6bf9431b | 3749 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3750 | else |
6bf9431b | 3751 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3752 | fi |
3753 | ||
6bf9431b BE |
3754 | if test -n "$ac_tool_prefix"; then |
3755 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3756 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6bf9431b BE |
3757 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3759 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3761 | else |
3762 | if test -n "$STRIP"; then | |
3763 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3764 | else | |
6bf9431b BE |
3765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3766 | for as_dir in $PATH | |
3767 | do | |
3768 | IFS=$as_save_IFS | |
3769 | test -z "$as_dir" && as_dir=. | |
3770 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3772 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3774 | break 2 | |
3775 | fi | |
3776 | done | |
3777 | done | |
3778 | ||
ac48eca1 AO |
3779 | fi |
3780 | fi | |
6bf9431b | 3781 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3782 | if test -n "$STRIP"; then |
6bf9431b BE |
3783 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3784 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3785 | else |
6bf9431b BE |
3786 | echo "$as_me:$LINENO: result: no" >&5 |
3787 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3788 | fi |
3789 | ||
6bf9431b | 3790 | fi |
ac48eca1 | 3791 | if test -z "$ac_cv_prog_STRIP"; then |
6bf9431b | 3792 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3793 | # Extract the first word of "strip", so it can be a program name with args. |
3794 | set dummy strip; ac_word=$2 | |
6bf9431b BE |
3795 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3797 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3799 | else |
6bf9431b BE |
3800 | if test -n "$ac_ct_STRIP"; then |
3801 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
ac48eca1 | 3802 | else |
6bf9431b BE |
3803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3804 | for as_dir in $PATH | |
3805 | do | |
3806 | IFS=$as_save_IFS | |
3807 | test -z "$as_dir" && as_dir=. | |
3808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3809 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3810 | ac_cv_prog_ac_ct_STRIP="strip" | |
3811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3812 | break 2 | |
3813 | fi | |
3814 | done | |
3815 | done | |
3816 | ||
3817 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3818 | fi |
3819 | fi | |
6bf9431b BE |
3820 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3821 | if test -n "$ac_ct_STRIP"; then | |
3822 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3823 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3824 | else |
6bf9431b BE |
3825 | echo "$as_me:$LINENO: result: no" >&5 |
3826 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3827 | fi |
3828 | ||
6bf9431b | 3829 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3830 | else |
6bf9431b | 3831 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 AO |
3832 | fi |
3833 | ||
3834 | ||
252b5132 RH |
3835 | # Check for any special flags to pass to ltconfig. |
3836 | libtool_flags="--cache-file=$cache_file" | |
3837 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3838 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3839 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
6be7c12c AO |
3840 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3841 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3842 | |
5af11cab AM |
3843 | |
3844 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3845 | if test "${enable_libtool_lock+set}" = set; then | |
3846 | enableval="$enable_libtool_lock" | |
5af11cab | 3847 | |
6bf9431b | 3848 | fi; |
5af11cab AM |
3849 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3850 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3851 | ||
6bf9431b | 3852 | |
ac48eca1 AO |
3853 | # Check whether --with-pic or --without-pic was given. |
3854 | if test "${with_pic+set}" = set; then | |
3855 | withval="$with_pic" | |
3856 | pic_mode="$withval" | |
3857 | else | |
3858 | pic_mode=default | |
6bf9431b | 3859 | fi; |
ac48eca1 AO |
3860 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3861 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3862 | ||
252b5132 RH |
3863 | # Some flags need to be propagated to the compiler or linker for good |
3864 | # libtool support. | |
6be7c12c | 3865 | case $host in |
252b5132 RH |
3866 | *-*-irix6*) |
3867 | # Find out which ABI we are using. | |
20e95c23 | 3868 | echo '#line 3868 "configure"' > conftest.$ac_ext |
6bf9431b BE |
3869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3870 | (eval $ac_compile) 2>&5 | |
3871 | ac_status=$? | |
3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3873 | (exit $ac_status); }; then | |
093872ec NC |
3874 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3875 | case `/usr/bin/file conftest.$ac_objext` in | |
3876 | *32-bit*) | |
3877 | LD="${LD-ld} -melf32bsmip" | |
3878 | ;; | |
3879 | *N32*) | |
3880 | LD="${LD-ld} -melf32bmipn32" | |
3881 | ;; | |
3882 | *64-bit*) | |
3883 | LD="${LD-ld} -melf64bmip" | |
3884 | ;; | |
3885 | esac | |
3886 | else | |
6be7c12c | 3887 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3888 | *32-bit*) |
3889 | LD="${LD-ld} -32" | |
3890 | ;; | |
3891 | *N32*) | |
3892 | LD="${LD-ld} -n32" | |
3893 | ;; | |
3894 | *64-bit*) | |
3895 | LD="${LD-ld} -64" | |
3896 | ;; | |
3897 | esac | |
093872ec | 3898 | fi |
252b5132 RH |
3899 | fi |
3900 | rm -rf conftest* | |
3901 | ;; | |
3902 | ||
4867be41 DJ |
3903 | ia64-*-hpux*) |
3904 | # Find out which ABI we are using. | |
3905 | echo 'int i;' > conftest.$ac_ext | |
6bf9431b BE |
3906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3907 | (eval $ac_compile) 2>&5 | |
3908 | ac_status=$? | |
3909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3910 | (exit $ac_status); }; then | |
4867be41 DJ |
3911 | case "`/usr/bin/file conftest.o`" in |
3912 | *ELF-32*) | |
3913 | HPUX_IA64_MODE="32" | |
3914 | ;; | |
3915 | *ELF-64*) | |
3916 | HPUX_IA64_MODE="64" | |
3917 | ;; | |
3918 | esac | |
3919 | fi | |
3920 | rm -rf conftest* | |
3921 | ;; | |
3922 | ||
108a6f8e CD |
3923 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3924 | # Find out which ABI we are using. | |
3925 | echo 'int i;' > conftest.$ac_ext | |
3926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3927 | (eval $ac_compile) 2>&5 | |
3928 | ac_status=$? | |
3929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3930 | (exit $ac_status); }; then | |
3931 | case "`/usr/bin/file conftest.o`" in | |
3932 | *32-bit*) | |
3933 | case $host in | |
3934 | x86_64-*linux*) | |
3935 | LD="${LD-ld} -m elf_i386" | |
3936 | ;; | |
3937 | ppc64-*linux*|powerpc64-*linux*) | |
3938 | LD="${LD-ld} -m elf32ppclinux" | |
3939 | ;; | |
3940 | s390x-*linux*) | |
3941 | LD="${LD-ld} -m elf_s390" | |
3942 | ;; | |
3943 | sparc64-*linux*) | |
3944 | LD="${LD-ld} -m elf32_sparc" | |
3945 | ;; | |
3946 | esac | |
3947 | ;; | |
3948 | *64-bit*) | |
3949 | case $host in | |
3950 | x86_64-*linux*) | |
3951 | LD="${LD-ld} -m elf_x86_64" | |
3952 | ;; | |
3953 | ppc*-*linux*|powerpc*-*linux*) | |
3954 | LD="${LD-ld} -m elf64ppc" | |
3955 | ;; | |
3956 | s390*-*linux*) | |
3957 | LD="${LD-ld} -m elf64_s390" | |
3958 | ;; | |
3959 | sparc*-*linux*) | |
3960 | LD="${LD-ld} -m elf64_sparc" | |
3961 | ;; | |
3962 | esac | |
3963 | ;; | |
3964 | esac | |
3965 | fi | |
3966 | rm -rf conftest* | |
3967 | ;; | |
3968 | ||
252b5132 RH |
3969 | *-*-sco3.2v5*) |
3970 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3971 | SAVE_CFLAGS="$CFLAGS" | |
3972 | CFLAGS="$CFLAGS -belf" | |
6bf9431b BE |
3973 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3974 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3975 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3977 | else |
6bf9431b BE |
3978 | |
3979 | ||
ac48eca1 | 3980 | ac_ext=c |
ac48eca1 | 3981 | ac_cpp='$CPP $CPPFLAGS' |
6bf9431b BE |
3982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3985 | |
6bf9431b BE |
3986 | cat >conftest.$ac_ext <<_ACEOF |
3987 | /* confdefs.h. */ | |
3988 | _ACEOF | |
3989 | cat confdefs.h >>conftest.$ac_ext | |
3990 | cat >>conftest.$ac_ext <<_ACEOF | |
3991 | /* end confdefs.h. */ | |
252b5132 | 3992 | |
6bf9431b BE |
3993 | int |
3994 | main () | |
3995 | { | |
252b5132 | 3996 | |
6bf9431b BE |
3997 | ; |
3998 | return 0; | |
3999 | } | |
4000 | _ACEOF | |
4001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4003 | (eval $ac_link) 2>conftest.er1 | |
4004 | ac_status=$? | |
4005 | grep -v '^ *+' conftest.er1 >conftest.err | |
4006 | rm -f conftest.er1 | |
4007 | cat conftest.err >&5 | |
4008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4009 | (exit $ac_status); } && | |
df76639a AM |
4010 | { ac_try='test -z "$ac_c_werror_flag" |
4011 | || test ! -s conftest.err' | |
6bf9431b BE |
4012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4013 | (eval $ac_try) 2>&5 | |
4014 | ac_status=$? | |
4015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4016 | (exit $ac_status); }; } && | |
4017 | { ac_try='test -s conftest$ac_exeext' | |
4018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4019 | (eval $ac_try) 2>&5 | |
4020 | ac_status=$? | |
4021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4022 | (exit $ac_status); }; }; then | |
252b5132 RH |
4023 | lt_cv_cc_needs_belf=yes |
4024 | else | |
6bf9431b BE |
4025 | echo "$as_me: failed program was:" >&5 |
4026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4027 | ||
4028 | lt_cv_cc_needs_belf=no | |
252b5132 | 4029 | fi |
6bf9431b BE |
4030 | rm -f conftest.err conftest.$ac_objext \ |
4031 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 4032 | ac_ext=c |
ac48eca1 | 4033 | ac_cpp='$CPP $CPPFLAGS' |
6bf9431b BE |
4034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4037 | |
252b5132 | 4038 | fi |
6bf9431b BE |
4039 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4040 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
252b5132 RH |
4041 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4042 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4043 | CFLAGS="$SAVE_CFLAGS" | |
4044 | fi | |
4045 | ;; | |
4046 | ||
252b5132 RH |
4047 | |
4048 | esac | |
4049 | ||
252b5132 RH |
4050 | |
4051 | # Save cache, so that ltconfig can load it | |
6bf9431b | 4052 | cat >confcache <<\_ACEOF |
252b5132 RH |
4053 | # This file is a shell script that caches the results of configure |
4054 | # tests run on this system so they can be shared between configure | |
6bf9431b BE |
4055 | # scripts and configure runs, see configure's option --config-cache. |
4056 | # It is not useful on other systems. If it contains results you don't | |
4057 | # want to keep, you may remove or edit it. | |
252b5132 | 4058 | # |
6bf9431b BE |
4059 | # config.status only pays attention to the cache file if you give it |
4060 | # the --recheck option to rerun configure. | |
252b5132 | 4061 | # |
6bf9431b BE |
4062 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4063 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4064 | # following values. | |
4065 | ||
4066 | _ACEOF | |
4067 | ||
252b5132 RH |
4068 | # The following way of writing the cache mishandles newlines in values, |
4069 | # but we know of no workaround that is simple, portable, and efficient. | |
4070 | # So, don't put newlines in cache variables' values. | |
6bf9431b BE |
4071 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4072 | # and sets the high bit in the cache file unless we assign to the vars. | |
4073 | { | |
4074 | (set) 2>&1 | | |
4075 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4076 | *ac_space=\ *) | |
4077 | # `set' does not quote correctly, so add quotes (double-quote | |
4078 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4079 | sed -n \ | |
4080 | "s/'/'\\\\''/g; | |
4081 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4082 | ;; | |
4083 | *) | |
4084 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4085 | sed -n \ | |
4086 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4087 | ;; | |
4088 | esac; | |
4089 | } | | |
4090 | sed ' | |
4091 | t clear | |
4092 | : clear | |
4093 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4094 | t end | |
4095 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4096 | : end' >>confcache | |
4097 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
252b5132 | 4098 | if test -w $cache_file; then |
6bf9431b BE |
4099 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4100 | cat confcache >$cache_file | |
252b5132 RH |
4101 | else |
4102 | echo "not updating unwritable cache $cache_file" | |
4103 | fi | |
4104 | fi | |
4105 | rm -f confcache | |
4106 | ||
252b5132 | 4107 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4108 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4109 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4110 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4111 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4112 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4113 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4114 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4115 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
6bf9431b BE |
4116 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4117 | echo "$as_me: error: libtool configure failed" >&2;} | |
4118 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4119 | |
4120 | # Reload cache, that may have been modified by ltconfig | |
4121 | if test -r "$cache_file"; then | |
6bf9431b BE |
4122 | # Some versions of bash will fail to source /dev/null (special |
4123 | # files actually), so we avoid doing that. | |
4124 | if test -f "$cache_file"; then | |
4125 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4126 | echo "$as_me: loading cache $cache_file" >&6;} | |
4127 | case $cache_file in | |
4128 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4129 | *) . ./$cache_file;; | |
4130 | esac | |
4131 | fi | |
252b5132 | 4132 | else |
6bf9431b BE |
4133 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4134 | echo "$as_me: creating cache $cache_file" >&6;} | |
4135 | >$cache_file | |
252b5132 RH |
4136 | fi |
4137 | ||
4138 | ||
4139 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 4140 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
252b5132 RH |
4141 | |
4142 | # Always use our own libtool. | |
4143 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4144 | ||
4145 | # Redirect the config.log output again, so that the ltconfig log is not | |
4146 | # clobbered by the next message. | |
4147 | exec 5>>./config.log | |
4148 | ||
ac48eca1 | 4149 | |
ac48eca1 | 4150 | |
252b5132 RH |
4151 | |
4152 | ||
4153 | ||
4154 | ||
6bf9431b BE |
4155 | ac_config_headers="$ac_config_headers gconfig.h:gconfig.in" |
4156 | ||
4157 | ||
4158 | ac_ext=c | |
4159 | ac_cpp='$CPP $CPPFLAGS' | |
4160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4163 | if test -n "$ac_tool_prefix"; then | |
4164 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4165 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4168 | if test "${ac_cv_prog_CC+set}" = set; then | |
4169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4170 | else | |
4171 | if test -n "$CC"; then | |
4172 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4173 | else | |
4174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4175 | for as_dir in $PATH | |
4176 | do | |
4177 | IFS=$as_save_IFS | |
4178 | test -z "$as_dir" && as_dir=. | |
4179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4181 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4183 | break 2 | |
4184 | fi | |
4185 | done | |
4186 | done | |
4187 | ||
4188 | fi | |
4189 | fi | |
4190 | CC=$ac_cv_prog_CC | |
4191 | if test -n "$CC"; then | |
4192 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4193 | echo "${ECHO_T}$CC" >&6 | |
4194 | else | |
4195 | echo "$as_me:$LINENO: result: no" >&5 | |
4196 | echo "${ECHO_T}no" >&6 | |
4197 | fi | |
4198 | ||
4199 | fi | |
4200 | if test -z "$ac_cv_prog_CC"; then | |
4201 | ac_ct_CC=$CC | |
4202 | # Extract the first word of "gcc", so it can be a program name with args. | |
252b5132 | 4203 | set dummy gcc; ac_word=$2 |
6bf9431b BE |
4204 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4206 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4208 | else | |
4209 | if test -n "$ac_ct_CC"; then | |
4210 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4211 | else | |
4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4213 | for as_dir in $PATH | |
4214 | do | |
4215 | IFS=$as_save_IFS | |
4216 | test -z "$as_dir" && as_dir=. | |
4217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4218 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4219 | ac_cv_prog_ac_ct_CC="gcc" | |
4220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4221 | break 2 | |
4222 | fi | |
4223 | done | |
4224 | done | |
4225 | ||
4226 | fi | |
4227 | fi | |
4228 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4229 | if test -n "$ac_ct_CC"; then | |
4230 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4231 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4232 | else | |
4233 | echo "$as_me:$LINENO: result: no" >&5 | |
4234 | echo "${ECHO_T}no" >&6 | |
4235 | fi | |
4236 | ||
4237 | CC=$ac_ct_CC | |
4238 | else | |
4239 | CC="$ac_cv_prog_CC" | |
4240 | fi | |
4241 | ||
4242 | if test -z "$CC"; then | |
4243 | if test -n "$ac_tool_prefix"; then | |
4244 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4245 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4246 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4248 | if test "${ac_cv_prog_CC+set}" = set; then | |
4249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4250 | else |
4251 | if test -n "$CC"; then | |
4252 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4253 | else | |
6bf9431b BE |
4254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4255 | for as_dir in $PATH | |
4256 | do | |
4257 | IFS=$as_save_IFS | |
4258 | test -z "$as_dir" && as_dir=. | |
4259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4260 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4261 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4263 | break 2 | |
4264 | fi | |
4265 | done | |
4266 | done | |
4267 | ||
252b5132 RH |
4268 | fi |
4269 | fi | |
6bf9431b | 4270 | CC=$ac_cv_prog_CC |
252b5132 | 4271 | if test -n "$CC"; then |
6bf9431b BE |
4272 | echo "$as_me:$LINENO: result: $CC" >&5 |
4273 | echo "${ECHO_T}$CC" >&6 | |
4274 | else | |
4275 | echo "$as_me:$LINENO: result: no" >&5 | |
4276 | echo "${ECHO_T}no" >&6 | |
4277 | fi | |
4278 | ||
4279 | fi | |
4280 | if test -z "$ac_cv_prog_CC"; then | |
4281 | ac_ct_CC=$CC | |
4282 | # Extract the first word of "cc", so it can be a program name with args. | |
4283 | set dummy cc; ac_word=$2 | |
4284 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4286 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4288 | else | |
4289 | if test -n "$ac_ct_CC"; then | |
4290 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4291 | else | |
4292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4293 | for as_dir in $PATH | |
4294 | do | |
4295 | IFS=$as_save_IFS | |
4296 | test -z "$as_dir" && as_dir=. | |
4297 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4299 | ac_cv_prog_ac_ct_CC="cc" | |
4300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4301 | break 2 | |
4302 | fi | |
4303 | done | |
4304 | done | |
4305 | ||
4306 | fi | |
4307 | fi | |
4308 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4309 | if test -n "$ac_ct_CC"; then | |
4310 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4311 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4312 | else | |
4313 | echo "$as_me:$LINENO: result: no" >&5 | |
4314 | echo "${ECHO_T}no" >&6 | |
4315 | fi | |
4316 | ||
4317 | CC=$ac_ct_CC | |
252b5132 | 4318 | else |
6bf9431b | 4319 | CC="$ac_cv_prog_CC" |
252b5132 RH |
4320 | fi |
4321 | ||
6bf9431b | 4322 | fi |
252b5132 RH |
4323 | if test -z "$CC"; then |
4324 | # Extract the first word of "cc", so it can be a program name with args. | |
4325 | set dummy cc; ac_word=$2 | |
6bf9431b BE |
4326 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4328 | if test "${ac_cv_prog_CC+set}" = set; then | |
4329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4330 | else |
4331 | if test -n "$CC"; then | |
4332 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4333 | else | |
252b5132 | 4334 | ac_prog_rejected=no |
6bf9431b BE |
4335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4336 | for as_dir in $PATH | |
4337 | do | |
4338 | IFS=$as_save_IFS | |
4339 | test -z "$as_dir" && as_dir=. | |
4340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4342 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4343 | ac_prog_rejected=yes | |
4344 | continue | |
4345 | fi | |
4346 | ac_cv_prog_CC="cc" | |
4347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4348 | break 2 | |
4349 | fi | |
4350 | done | |
4351 | done | |
4352 | ||
252b5132 RH |
4353 | if test $ac_prog_rejected = yes; then |
4354 | # We found a bogon in the path, so make sure we never use it. | |
4355 | set dummy $ac_cv_prog_CC | |
4356 | shift | |
6bf9431b | 4357 | if test $# != 0; then |
252b5132 RH |
4358 | # We chose a different compiler from the bogus one. |
4359 | # However, it has the same basename, so the bogon will be chosen | |
4360 | # first if we set CC to just the basename; use the full file name. | |
4361 | shift | |
6bf9431b | 4362 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
252b5132 RH |
4363 | fi |
4364 | fi | |
4365 | fi | |
4366 | fi | |
6bf9431b | 4367 | CC=$ac_cv_prog_CC |
252b5132 | 4368 | if test -n "$CC"; then |
6bf9431b BE |
4369 | echo "$as_me:$LINENO: result: $CC" >&5 |
4370 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4371 | else |
6bf9431b BE |
4372 | echo "$as_me:$LINENO: result: no" >&5 |
4373 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4374 | fi |
4375 | ||
6bf9431b BE |
4376 | fi |
4377 | if test -z "$CC"; then | |
4378 | if test -n "$ac_tool_prefix"; then | |
4379 | for ac_prog in cl | |
4380 | do | |
4381 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4382 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4385 | if test "${ac_cv_prog_CC+set}" = set; then | |
4386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4387 | else |
4388 | if test -n "$CC"; then | |
4389 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4390 | else | |
6bf9431b BE |
4391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4392 | for as_dir in $PATH | |
4393 | do | |
4394 | IFS=$as_save_IFS | |
4395 | test -z "$as_dir" && as_dir=. | |
4396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4398 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4400 | break 2 | |
4401 | fi | |
4402 | done | |
4403 | done | |
4404 | ||
252b5132 RH |
4405 | fi |
4406 | fi | |
6bf9431b | 4407 | CC=$ac_cv_prog_CC |
252b5132 | 4408 | if test -n "$CC"; then |
6bf9431b BE |
4409 | echo "$as_me:$LINENO: result: $CC" >&5 |
4410 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4411 | else |
6bf9431b BE |
4412 | echo "$as_me:$LINENO: result: no" >&5 |
4413 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4414 | fi |
4415 | ||
6bf9431b BE |
4416 | test -n "$CC" && break |
4417 | done | |
4418 | fi | |
4419 | if test -z "$CC"; then | |
4420 | ac_ct_CC=$CC | |
4421 | for ac_prog in cl | |
4422 | do | |
4423 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4424 | set dummy $ac_prog; ac_word=$2 | |
4425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4427 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4429 | else | |
4430 | if test -n "$ac_ct_CC"; then | |
4431 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4432 | else | |
4433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4434 | for as_dir in $PATH | |
4435 | do | |
4436 | IFS=$as_save_IFS | |
4437 | test -z "$as_dir" && as_dir=. | |
4438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4439 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4440 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4442 | break 2 | |
252b5132 | 4443 | fi |
6bf9431b BE |
4444 | done |
4445 | done | |
4446 | ||
4447 | fi | |
4448 | fi | |
4449 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4450 | if test -n "$ac_ct_CC"; then | |
4451 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4452 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 4453 | else |
6bf9431b BE |
4454 | echo "$as_me:$LINENO: result: no" >&5 |
4455 | echo "${ECHO_T}no" >&6 | |
252b5132 | 4456 | fi |
252b5132 | 4457 | |
6bf9431b BE |
4458 | test -n "$ac_ct_CC" && break |
4459 | done | |
252b5132 | 4460 | |
6bf9431b BE |
4461 | CC=$ac_ct_CC |
4462 | fi | |
4463 | ||
4464 | fi | |
4465 | ||
4466 | ||
4467 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4468 | See \`config.log' for more details." >&5 | |
4469 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4470 | See \`config.log' for more details." >&2;} | |
4471 | { (exit 1); exit 1; }; } | |
4472 | ||
4473 | # Provide some information about the compiler. | |
4474 | echo "$as_me:$LINENO:" \ | |
4475 | "checking for C compiler version" >&5 | |
4476 | ac_compiler=`set X $ac_compile; echo $2` | |
4477 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4478 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4479 | ac_status=$? | |
4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4481 | (exit $ac_status); } | |
4482 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4483 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4484 | ac_status=$? | |
4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4486 | (exit $ac_status); } | |
4487 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4488 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4489 | ac_status=$? | |
4490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4491 | (exit $ac_status); } | |
4492 | ||
4493 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4494 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4495 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4497 | else | |
4498 | cat >conftest.$ac_ext <<_ACEOF | |
4499 | /* confdefs.h. */ | |
4500 | _ACEOF | |
4501 | cat confdefs.h >>conftest.$ac_ext | |
4502 | cat >>conftest.$ac_ext <<_ACEOF | |
4503 | /* end confdefs.h. */ | |
4504 | ||
4505 | int | |
4506 | main () | |
4507 | { | |
4508 | #ifndef __GNUC__ | |
4509 | choke me | |
252b5132 | 4510 | #endif |
252b5132 | 4511 | |
6bf9431b BE |
4512 | ; |
4513 | return 0; | |
4514 | } | |
4515 | _ACEOF | |
4516 | rm -f conftest.$ac_objext | |
4517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4518 | (eval $ac_compile) 2>conftest.er1 | |
4519 | ac_status=$? | |
4520 | grep -v '^ *+' conftest.er1 >conftest.err | |
4521 | rm -f conftest.er1 | |
4522 | cat conftest.err >&5 | |
4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4524 | (exit $ac_status); } && | |
df76639a AM |
4525 | { ac_try='test -z "$ac_c_werror_flag" |
4526 | || test ! -s conftest.err' | |
6bf9431b BE |
4527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4528 | (eval $ac_try) 2>&5 | |
4529 | ac_status=$? | |
4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4531 | (exit $ac_status); }; } && | |
4532 | { ac_try='test -s conftest.$ac_objext' | |
4533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4534 | (eval $ac_try) 2>&5 | |
4535 | ac_status=$? | |
4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4537 | (exit $ac_status); }; }; then | |
4538 | ac_compiler_gnu=yes | |
4539 | else | |
4540 | echo "$as_me: failed program was:" >&5 | |
4541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4542 | ||
4543 | ac_compiler_gnu=no | |
4544 | fi | |
4545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4546 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4547 | ||
4548 | fi | |
4549 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4550 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4551 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4552 | ac_test_CFLAGS=${CFLAGS+set} | |
4553 | ac_save_CFLAGS=$CFLAGS | |
4554 | CFLAGS="-g" | |
4555 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4556 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4557 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4559 | else | |
4560 | cat >conftest.$ac_ext <<_ACEOF | |
4561 | /* confdefs.h. */ | |
4562 | _ACEOF | |
4563 | cat confdefs.h >>conftest.$ac_ext | |
4564 | cat >>conftest.$ac_ext <<_ACEOF | |
4565 | /* end confdefs.h. */ | |
252b5132 | 4566 | |
6bf9431b BE |
4567 | int |
4568 | main () | |
4569 | { | |
252b5132 | 4570 | |
6bf9431b BE |
4571 | ; |
4572 | return 0; | |
4573 | } | |
4574 | _ACEOF | |
4575 | rm -f conftest.$ac_objext | |
4576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4577 | (eval $ac_compile) 2>conftest.er1 | |
4578 | ac_status=$? | |
4579 | grep -v '^ *+' conftest.er1 >conftest.err | |
4580 | rm -f conftest.er1 | |
4581 | cat conftest.err >&5 | |
4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4583 | (exit $ac_status); } && | |
df76639a AM |
4584 | { ac_try='test -z "$ac_c_werror_flag" |
4585 | || test ! -s conftest.err' | |
6bf9431b BE |
4586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4587 | (eval $ac_try) 2>&5 | |
4588 | ac_status=$? | |
4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4590 | (exit $ac_status); }; } && | |
4591 | { ac_try='test -s conftest.$ac_objext' | |
4592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4593 | (eval $ac_try) 2>&5 | |
4594 | ac_status=$? | |
4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4596 | (exit $ac_status); }; }; then | |
252b5132 RH |
4597 | ac_cv_prog_cc_g=yes |
4598 | else | |
6bf9431b BE |
4599 | echo "$as_me: failed program was:" >&5 |
4600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 4601 | |
6bf9431b | 4602 | ac_cv_prog_cc_g=no |
252b5132 | 4603 | fi |
6bf9431b BE |
4604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4605 | fi | |
4606 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4607 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
252b5132 | 4608 | if test "$ac_test_CFLAGS" = set; then |
6bf9431b | 4609 | CFLAGS=$ac_save_CFLAGS |
252b5132 RH |
4610 | elif test $ac_cv_prog_cc_g = yes; then |
4611 | if test "$GCC" = yes; then | |
4612 | CFLAGS="-g -O2" | |
4613 | else | |
4614 | CFLAGS="-g" | |
4615 | fi | |
4616 | else | |
4617 | if test "$GCC" = yes; then | |
4618 | CFLAGS="-O2" | |
4619 | else | |
4620 | CFLAGS= | |
4621 | fi | |
4622 | fi | |
6bf9431b BE |
4623 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
4624 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4625 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4627 | else | |
4628 | ac_cv_prog_cc_stdc=no | |
4629 | ac_save_CC=$CC | |
4630 | cat >conftest.$ac_ext <<_ACEOF | |
4631 | /* confdefs.h. */ | |
4632 | _ACEOF | |
4633 | cat confdefs.h >>conftest.$ac_ext | |
4634 | cat >>conftest.$ac_ext <<_ACEOF | |
4635 | /* end confdefs.h. */ | |
4636 | #include <stdarg.h> | |
4637 | #include <stdio.h> | |
4638 | #include <sys/types.h> | |
4639 | #include <sys/stat.h> | |
4640 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4641 | struct buf { int x; }; | |
4642 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4643 | static char *e (p, i) | |
4644 | char **p; | |
4645 | int i; | |
4646 | { | |
4647 | return p[i]; | |
4648 | } | |
4649 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4650 | { | |
4651 | char *s; | |
4652 | va_list v; | |
4653 | va_start (v,p); | |
4654 | s = g (p, va_arg (v,int)); | |
4655 | va_end (v); | |
4656 | return s; | |
4657 | } | |
4658 | ||
4659 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4660 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4661 | These don't provoke an error unfortunately, instead are silently treated | |
4662 | as 'x'. The following induces an error, until -std1 is added to get | |
4663 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4664 | array size at least. It's necessary to write '\x00'==0 to get something | |
4665 | that's true only with -std1. */ | |
4666 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4667 | ||
4668 | int test (int i, double x); | |
4669 | struct s1 {int (*f) (int a);}; | |
4670 | struct s2 {int (*f) (double a);}; | |
4671 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4672 | int argc; | |
4673 | char **argv; | |
4674 | int | |
4675 | main () | |
4676 | { | |
4677 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4678 | ; | |
4679 | return 0; | |
4680 | } | |
4681 | _ACEOF | |
4682 | # Don't try gcc -ansi; that turns off useful extensions and | |
4683 | # breaks some systems' header files. | |
4684 | # AIX -qlanglvl=ansi | |
4685 | # Ultrix and OSF/1 -std1 | |
4686 | # HP-UX 10.20 and later -Ae | |
4687 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4688 | # SVR4 -Xc -D__EXTENSIONS__ | |
4689 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4690 | do | |
4691 | CC="$ac_save_CC $ac_arg" | |
4692 | rm -f conftest.$ac_objext | |
4693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4694 | (eval $ac_compile) 2>conftest.er1 | |
4695 | ac_status=$? | |
4696 | grep -v '^ *+' conftest.er1 >conftest.err | |
4697 | rm -f conftest.er1 | |
4698 | cat conftest.err >&5 | |
4699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4700 | (exit $ac_status); } && | |
df76639a AM |
4701 | { ac_try='test -z "$ac_c_werror_flag" |
4702 | || test ! -s conftest.err' | |
6bf9431b BE |
4703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4704 | (eval $ac_try) 2>&5 | |
4705 | ac_status=$? | |
4706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4707 | (exit $ac_status); }; } && | |
4708 | { ac_try='test -s conftest.$ac_objext' | |
4709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4710 | (eval $ac_try) 2>&5 | |
4711 | ac_status=$? | |
4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4713 | (exit $ac_status); }; }; then | |
4714 | ac_cv_prog_cc_stdc=$ac_arg | |
4715 | break | |
4716 | else | |
4717 | echo "$as_me: failed program was:" >&5 | |
4718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4719 | ||
4720 | fi | |
4721 | rm -f conftest.err conftest.$ac_objext | |
4722 | done | |
4723 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4724 | CC=$ac_save_CC | |
4725 | ||
4726 | fi | |
4727 | ||
4728 | case "x$ac_cv_prog_cc_stdc" in | |
4729 | x|xno) | |
4730 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4731 | echo "${ECHO_T}none needed" >&6 ;; | |
4732 | *) | |
4733 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4734 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4735 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4736 | esac | |
4737 | ||
4738 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
4739 | # in C++ we need to declare it. In case someone uses the same compiler | |
4740 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4741 | # the declaration of exit, since it's the most demanding environment. | |
4742 | cat >conftest.$ac_ext <<_ACEOF | |
4743 | #ifndef __cplusplus | |
4744 | choke me | |
4745 | #endif | |
4746 | _ACEOF | |
4747 | rm -f conftest.$ac_objext | |
4748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4749 | (eval $ac_compile) 2>conftest.er1 | |
4750 | ac_status=$? | |
4751 | grep -v '^ *+' conftest.er1 >conftest.err | |
4752 | rm -f conftest.er1 | |
4753 | cat conftest.err >&5 | |
4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4755 | (exit $ac_status); } && | |
df76639a AM |
4756 | { ac_try='test -z "$ac_c_werror_flag" |
4757 | || test ! -s conftest.err' | |
6bf9431b BE |
4758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4759 | (eval $ac_try) 2>&5 | |
4760 | ac_status=$? | |
4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4762 | (exit $ac_status); }; } && | |
4763 | { ac_try='test -s conftest.$ac_objext' | |
4764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4765 | (eval $ac_try) 2>&5 | |
4766 | ac_status=$? | |
4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4768 | (exit $ac_status); }; }; then | |
4769 | for ac_declaration in \ | |
4770 | '' \ | |
4771 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4772 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4773 | 'extern "C" void exit (int) throw ();' \ | |
4774 | 'extern "C" void exit (int);' \ | |
4775 | 'void exit (int);' | |
4776 | do | |
4777 | cat >conftest.$ac_ext <<_ACEOF | |
4778 | /* confdefs.h. */ | |
4779 | _ACEOF | |
4780 | cat confdefs.h >>conftest.$ac_ext | |
4781 | cat >>conftest.$ac_ext <<_ACEOF | |
4782 | /* end confdefs.h. */ | |
4783 | $ac_declaration | |
4784 | #include <stdlib.h> | |
4785 | int | |
4786 | main () | |
4787 | { | |
4788 | exit (42); | |
4789 | ; | |
4790 | return 0; | |
4791 | } | |
4792 | _ACEOF | |
4793 | rm -f conftest.$ac_objext | |
4794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4795 | (eval $ac_compile) 2>conftest.er1 | |
4796 | ac_status=$? | |
4797 | grep -v '^ *+' conftest.er1 >conftest.err | |
4798 | rm -f conftest.er1 | |
4799 | cat conftest.err >&5 | |
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4801 | (exit $ac_status); } && | |
df76639a AM |
4802 | { ac_try='test -z "$ac_c_werror_flag" |
4803 | || test ! -s conftest.err' | |
6bf9431b BE |
4804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4805 | (eval $ac_try) 2>&5 | |
4806 | ac_status=$? | |
4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4808 | (exit $ac_status); }; } && | |
4809 | { ac_try='test -s conftest.$ac_objext' | |
4810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4811 | (eval $ac_try) 2>&5 | |
4812 | ac_status=$? | |
4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4814 | (exit $ac_status); }; }; then | |
4815 | : | |
4816 | else | |
4817 | echo "$as_me: failed program was:" >&5 | |
4818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4819 | ||
4820 | continue | |
4821 | fi | |
4822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4823 | cat >conftest.$ac_ext <<_ACEOF | |
4824 | /* confdefs.h. */ | |
4825 | _ACEOF | |
4826 | cat confdefs.h >>conftest.$ac_ext | |
4827 | cat >>conftest.$ac_ext <<_ACEOF | |
4828 | /* end confdefs.h. */ | |
4829 | $ac_declaration | |
4830 | int | |
4831 | main () | |
4832 | { | |
4833 | exit (42); | |
4834 | ; | |
4835 | return 0; | |
4836 | } | |
4837 | _ACEOF | |
4838 | rm -f conftest.$ac_objext | |
4839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4840 | (eval $ac_compile) 2>conftest.er1 | |
4841 | ac_status=$? | |
4842 | grep -v '^ *+' conftest.er1 >conftest.err | |
4843 | rm -f conftest.er1 | |
4844 | cat conftest.err >&5 | |
4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4846 | (exit $ac_status); } && | |
df76639a AM |
4847 | { ac_try='test -z "$ac_c_werror_flag" |
4848 | || test ! -s conftest.err' | |
6bf9431b BE |
4849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4850 | (eval $ac_try) 2>&5 | |
4851 | ac_status=$? | |
4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4853 | (exit $ac_status); }; } && | |
4854 | { ac_try='test -s conftest.$ac_objext' | |
4855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4856 | (eval $ac_try) 2>&5 | |
4857 | ac_status=$? | |
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4859 | (exit $ac_status); }; }; then | |
4860 | break | |
4861 | else | |
4862 | echo "$as_me: failed program was:" >&5 | |
4863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4864 | ||
4865 | fi | |
4866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4867 | done | |
4868 | rm -f conftest* | |
4869 | if test -n "$ac_declaration"; then | |
4870 | echo '#ifdef __cplusplus' >>confdefs.h | |
4871 | echo $ac_declaration >>confdefs.h | |
4872 | echo '#endif' >>confdefs.h | |
4873 | fi | |
4874 | ||
4875 | else | |
4876 | echo "$as_me: failed program was:" >&5 | |
4877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4878 | ||
4879 | fi | |
4880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4881 | ac_ext=c | |
4882 | ac_cpp='$CPP $CPPFLAGS' | |
4883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 RH |
4886 | |
4887 | # Find a good install program. We prefer a C program (faster), | |
4888 | # so one script is as good as another. But avoid the broken or | |
4889 | # incompatible versions: | |
4890 | # SysV /etc/install, /usr/sbin/install | |
4891 | # SunOS /usr/etc/install | |
4892 | # IRIX /sbin/install | |
4893 | # AIX /bin/install | |
6bf9431b | 4894 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
4895 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4896 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4897 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6bf9431b | 4898 | # OS/2's system install, which has a completely different semantic |
252b5132 | 4899 | # ./install, which can be erroneously created by make from ./install.sh. |
6bf9431b BE |
4900 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4901 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 4902 | if test -z "$INSTALL"; then |
6bf9431b BE |
4903 | if test "${ac_cv_path_install+set}" = set; then |
4904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4905 | else |
6bf9431b BE |
4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4907 | for as_dir in $PATH | |
4908 | do | |
4909 | IFS=$as_save_IFS | |
4910 | test -z "$as_dir" && as_dir=. | |
4911 | # Account for people who put trailing slashes in PATH elements. | |
4912 | case $as_dir/ in | |
4913 | ./ | .// | /cC/* | \ | |
4914 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4915 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4916 | /usr/ucb/* ) ;; | |
4917 | *) | |
4918 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4919 | # Don't use installbsd from OSF since it installs stuff as root | |
4920 | # by default. | |
4921 | for ac_prog in ginstall scoinst install; do | |
4922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4923 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 4924 | if test $ac_prog = install && |
6bf9431b | 4925 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
4926 | # AIX install. It has an incompatible calling convention. |
4927 | : | |
6bf9431b BE |
4928 | elif test $ac_prog = install && |
4929 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4930 | # program-specific install script used by HP pwplus--don't use. | |
4931 | : | |
252b5132 | 4932 | else |
6bf9431b BE |
4933 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4934 | break 3 | |
252b5132 RH |
4935 | fi |
4936 | fi | |
4937 | done | |
6bf9431b BE |
4938 | done |
4939 | ;; | |
4940 | esac | |
4941 | done | |
4942 | ||
252b5132 RH |
4943 | |
4944 | fi | |
4945 | if test "${ac_cv_path_install+set}" = set; then | |
6bf9431b | 4946 | INSTALL=$ac_cv_path_install |
252b5132 RH |
4947 | else |
4948 | # As a last resort, use the slow shell script. We don't cache a | |
4949 | # path for INSTALL within a source directory, because that will | |
4950 | # break other packages using the cache if that directory is | |
4951 | # removed, or if the path is relative. | |
6bf9431b | 4952 | INSTALL=$ac_install_sh |
252b5132 RH |
4953 | fi |
4954 | fi | |
6bf9431b BE |
4955 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4956 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
4957 | |
4958 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4959 | # It thinks the first close brace ends the variable substitution. | |
4960 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4961 | ||
6bf9431b | 4962 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
4963 | |
4964 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4965 | ||
4966 | ||
6bf9431b | 4967 | |
5af11cab AM |
4968 | for ac_func in setmode |
4969 | do | |
6bf9431b BE |
4970 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4971 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4972 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4973 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4975 | else | |
4976 | cat >conftest.$ac_ext <<_ACEOF | |
4977 | /* confdefs.h. */ | |
4978 | _ACEOF | |
4979 | cat confdefs.h >>conftest.$ac_ext | |
4980 | cat >>conftest.$ac_ext <<_ACEOF | |
4981 | /* end confdefs.h. */ | |
4982 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4983 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4984 | #define $ac_func innocuous_$ac_func | |
4985 | ||
4986 | /* System header to define __stub macros and hopefully few prototypes, | |
4987 | which can conflict with char $ac_func (); below. | |
4988 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4989 | <limits.h> exists even on freestanding compilers. */ | |
4990 | ||
4991 | #ifdef __STDC__ | |
4992 | # include <limits.h> | |
4993 | #else | |
4994 | # include <assert.h> | |
4995 | #endif | |
4996 | ||
4997 | #undef $ac_func | |
4998 | ||
4999 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5000 | #ifdef __cplusplus | |
5001 | extern "C" | |
5002 | { | |
5003 | #endif | |
5004 | /* We use char because int might match the return type of a gcc2 | |
5005 | builtin and then its argument prototype would still apply. */ | |
5006 | char $ac_func (); | |
5007 | /* The GNU C library defines this for functions which it implements | |
5008 | to always fail with ENOSYS. Some functions are actually named | |
5009 | something starting with __ and the normal name is an alias. */ | |
5010 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5011 | choke me | |
5012 | #else | |
5013 | char (*f) () = $ac_func; | |
5014 | #endif | |
5015 | #ifdef __cplusplus | |
5016 | } | |
5017 | #endif | |
5018 | ||
5019 | int | |
5020 | main () | |
5021 | { | |
5022 | return f != $ac_func; | |
5023 | ; | |
5024 | return 0; | |
5025 | } | |
5026 | _ACEOF | |
5027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5029 | (eval $ac_link) 2>conftest.er1 | |
5030 | ac_status=$? | |
5031 | grep -v '^ *+' conftest.er1 >conftest.err | |
5032 | rm -f conftest.er1 | |
5033 | cat conftest.err >&5 | |
5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5035 | (exit $ac_status); } && | |
df76639a AM |
5036 | { ac_try='test -z "$ac_c_werror_flag" |
5037 | || test ! -s conftest.err' | |
6bf9431b BE |
5038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5039 | (eval $ac_try) 2>&5 | |
5040 | ac_status=$? | |
5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5042 | (exit $ac_status); }; } && | |
5043 | { ac_try='test -s conftest$ac_exeext' | |
5044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5045 | (eval $ac_try) 2>&5 | |
5046 | ac_status=$? | |
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5048 | (exit $ac_status); }; }; then | |
5049 | eval "$as_ac_var=yes" | |
5050 | else | |
5051 | echo "$as_me: failed program was:" >&5 | |
5052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5053 | ||
5054 | eval "$as_ac_var=no" | |
5055 | fi | |
5056 | rm -f conftest.err conftest.$ac_objext \ | |
5057 | conftest$ac_exeext conftest.$ac_ext | |
5058 | fi | |
5059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5060 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5061 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5062 | cat >>confdefs.h <<_ACEOF | |
5063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5064 | _ACEOF | |
5065 | ||
5066 | fi | |
5067 | done | |
5068 | ||
5069 | ||
221ca466 | 5070 | ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms" |
20e95c23 DJ |
5071 | # If we haven't got the data from the intl directory, |
5072 | # assume NLS is disabled. | |
5073 | USE_NLS=no | |
5074 | LIBINTL= | |
5075 | LIBINTL_DEP= | |
5076 | INCINTL= | |
5077 | XGETTEXT= | |
5078 | GMSGFMT= | |
5079 | POSUB= | |
221ca466 NC |
5080 | |
5081 | if test -f ../intl/config.intl; then | |
5082 | . ../intl/config.intl | |
20e95c23 DJ |
5083 | fi |
5084 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
5085 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
5086 | if test x"$USE_NLS" != xyes; then | |
5087 | echo "$as_me:$LINENO: result: no" >&5 | |
5088 | echo "${ECHO_T}no" >&6 | |
5089 | else | |
5090 | echo "$as_me:$LINENO: result: yes" >&5 | |
5091 | echo "${ECHO_T}yes" >&6 | |
5092 | ||
5093 | cat >>confdefs.h <<\_ACEOF | |
5094 | #define ENABLE_NLS 1 | |
5095 | _ACEOF | |
5096 | ||
5097 | ||
5098 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5099 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5100 | # Look for .po and .gmo files in the source directory. | |
5101 | CATALOGS= | |
5102 | XLINGUAS= | |
5103 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5104 | # If there aren't any .gmo files the shell will give us the | |
5105 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5106 | # weeded out. | |
5107 | case "$cat" in *\**) | |
5108 | continue;; | |
5109 | esac | |
5110 | # The quadruple backslash is collapsed to a double backslash | |
5111 | # by the backticks, then collapsed again by the double quotes, | |
5112 | # leaving us with one backslash in the sed expression (right | |
5113 | # before the dot that mustn't act as a wildcard). | |
5114 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5115 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5116 | # The user is allowed to set LINGUAS to a list of languages to | |
5117 | # install catalogs for. If it's empty that means "all of them." | |
5118 | if test "x$LINGUAS" = x; then | |
5119 | CATALOGS="$CATALOGS $cat" | |
5120 | XLINGUAS="$XLINGUAS $lang" | |
5121 | else | |
5122 | case "$LINGUAS" in *$lang*) | |
5123 | CATALOGS="$CATALOGS $cat" | |
5124 | XLINGUAS="$XLINGUAS $lang" | |
5125 | ;; | |
5126 | esac | |
5127 | fi | |
5128 | done | |
5129 | LINGUAS="$XLINGUAS" | |
5130 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5131 | echo "${ECHO_T}$LINGUAS" >&6 | |
5132 | ||
5133 | ||
5134 | DATADIRNAME=share | |
5135 | ||
5136 | INSTOBJEXT=.mo | |
5137 | ||
5138 | GENCAT=gencat | |
5139 | ||
5140 | CATOBJEXT=.gmo | |
5141 | ||
5142 | fi | |
5143 | ||
5144 | MKINSTALLDIRS= | |
5145 | if test -n "$ac_aux_dir"; then | |
5146 | case "$ac_aux_dir" in | |
5147 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5148 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5149 | esac | |
5150 | fi | |
5151 | if test -z "$MKINSTALLDIRS"; then | |
5152 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5153 | fi | |
5154 | ||
5155 | ||
5156 | ||
5157 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
5158 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
5159 | # Check whether --enable-nls or --disable-nls was given. | |
5160 | if test "${enable_nls+set}" = set; then | |
5161 | enableval="$enable_nls" | |
5162 | USE_NLS=$enableval | |
5163 | else | |
5164 | USE_NLS=yes | |
5165 | fi; | |
5166 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
5167 | echo "${ECHO_T}$USE_NLS" >&6 | |
5168 | ||
5169 | ||
5170 | ||
5171 | ||
5172 | ||
5173 | ||
5174 | # Prepare PATH_SEPARATOR. | |
5175 | # The user is always right. | |
5176 | if test "${PATH_SEPARATOR+set}" != set; then | |
5177 | echo "#! /bin/sh" >conf$$.sh | |
5178 | echo "exit 0" >>conf$$.sh | |
5179 | chmod +x conf$$.sh | |
5180 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5181 | PATH_SEPARATOR=';' | |
5182 | else | |
5183 | PATH_SEPARATOR=: | |
5184 | fi | |
5185 | rm -f conf$$.sh | |
5186 | fi | |
5187 | ||
5188 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5189 | # as systems may use methods other than mode bits to determine executability. | |
5190 | cat >conf$$.file <<_ASEOF | |
5191 | #! /bin/sh | |
5192 | exit 0 | |
5193 | _ASEOF | |
5194 | chmod +x conf$$.file | |
5195 | if test -x conf$$.file >/dev/null 2>&1; then | |
5196 | ac_executable_p="test -x" | |
5197 | else | |
5198 | ac_executable_p="test -f" | |
5199 | fi | |
5200 | rm -f conf$$.file | |
5201 | ||
5202 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5203 | set dummy msgfmt; ac_word=$2 | |
6bf9431b BE |
5204 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5205 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20e95c23 | 5206 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
6bf9431b BE |
5207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5208 | else | |
20e95c23 DJ |
5209 | case "$MSGFMT" in |
5210 | [\\/]* | ?:[\\/]*) | |
5211 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5212 | ;; | |
5213 | *) | |
5214 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5215 | for ac_dir in $PATH; do | |
5216 | IFS="$ac_save_IFS" | |
5217 | test -z "$ac_dir" && ac_dir=. | |
5218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5219 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5220 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5221 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5222 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5223 | break 2 | |
5224 | fi | |
5225 | fi | |
5226 | done | |
5227 | done | |
5228 | IFS="$ac_save_IFS" | |
5229 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5230 | ;; | |
5231 | esac | |
5232 | fi | |
5233 | MSGFMT="$ac_cv_path_MSGFMT" | |
5234 | if test "$MSGFMT" != ":"; then | |
5235 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5236 | echo "${ECHO_T}$MSGFMT" >&6 | |
6bf9431b | 5237 | else |
20e95c23 DJ |
5238 | echo "$as_me:$LINENO: result: no" >&5 |
5239 | echo "${ECHO_T}no" >&6 | |
5240 | fi | |
5241 | ||
5242 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5243 | set dummy gmsgfmt; ac_word=$2 | |
5244 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5246 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5248 | else | |
5249 | case $GMSGFMT in | |
5250 | [\\/]* | ?:[\\/]*) | |
5251 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5252 | ;; | |
5253 | *) | |
5254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bf9431b BE |
5255 | for as_dir in $PATH |
5256 | do | |
5257 | IFS=$as_save_IFS | |
5258 | test -z "$as_dir" && as_dir=. | |
5259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5260 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20e95c23 | 5261 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
6bf9431b BE |
5262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5263 | break 2 | |
5264 | fi | |
5265 | done | |
5266 | done | |
5af11cab | 5267 | |
20e95c23 DJ |
5268 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5269 | ;; | |
5270 | esac | |
6bf9431b | 5271 | fi |
20e95c23 DJ |
5272 | GMSGFMT=$ac_cv_path_GMSGFMT |
5273 | ||
5274 | if test -n "$GMSGFMT"; then | |
5275 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5276 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5af11cab | 5277 | else |
6bf9431b BE |
5278 | echo "$as_me:$LINENO: result: no" >&5 |
5279 | echo "${ECHO_T}no" >&6 | |
5af11cab | 5280 | fi |
6bf9431b | 5281 | |
20e95c23 DJ |
5282 | |
5283 | ||
5284 | # Prepare PATH_SEPARATOR. | |
5285 | # The user is always right. | |
5286 | if test "${PATH_SEPARATOR+set}" != set; then | |
5287 | echo "#! /bin/sh" >conf$$.sh | |
5288 | echo "exit 0" >>conf$$.sh | |
5289 | chmod +x conf$$.sh | |
5290 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5291 | PATH_SEPARATOR=';' | |
5292 | else | |
5293 | PATH_SEPARATOR=: | |
5294 | fi | |
5295 | rm -f conf$$.sh | |
5296 | fi | |
5297 | ||
5298 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5299 | # as systems may use methods other than mode bits to determine executability. | |
5300 | cat >conf$$.file <<_ASEOF | |
5301 | #! /bin/sh | |
5302 | exit 0 | |
5303 | _ASEOF | |
5304 | chmod +x conf$$.file | |
5305 | if test -x conf$$.file >/dev/null 2>&1; then | |
5306 | ac_executable_p="test -x" | |
5307 | else | |
5308 | ac_executable_p="test -f" | |
5af11cab | 5309 | fi |
20e95c23 DJ |
5310 | rm -f conf$$.file |
5311 | ||
5312 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5313 | set dummy xgettext; ac_word=$2 | |
6bf9431b BE |
5314 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20e95c23 | 5316 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
6bf9431b BE |
5317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5318 | else | |
20e95c23 DJ |
5319 | case "$XGETTEXT" in |
5320 | [\\/]* | ?:[\\/]*) | |
5321 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5322 | ;; | |
5323 | *) | |
5324 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5325 | for ac_dir in $PATH; do | |
5326 | IFS="$ac_save_IFS" | |
5327 | test -z "$ac_dir" && ac_dir=. | |
5328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5329 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5330 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5331 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5332 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5333 | break 2 | |
5334 | fi | |
5335 | fi | |
5336 | done | |
5337 | done | |
5338 | IFS="$ac_save_IFS" | |
5339 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5340 | ;; | |
5341 | esac | |
5342 | fi | |
5343 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5344 | if test "$XGETTEXT" != ":"; then | |
5345 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5346 | echo "${ECHO_T}$XGETTEXT" >&6 | |
6bf9431b | 5347 | else |
20e95c23 DJ |
5348 | echo "$as_me:$LINENO: result: no" >&5 |
5349 | echo "${ECHO_T}no" >&6 | |
5350 | fi | |
5351 | ||
5352 | rm -f messages.po | |
5353 | ||
5354 | ||
5355 | # Prepare PATH_SEPARATOR. | |
5356 | # The user is always right. | |
5357 | if test "${PATH_SEPARATOR+set}" != set; then | |
5358 | echo "#! /bin/sh" >conf$$.sh | |
5359 | echo "exit 0" >>conf$$.sh | |
5360 | chmod +x conf$$.sh | |
5361 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5362 | PATH_SEPARATOR=';' | |
5363 | else | |
5364 | PATH_SEPARATOR=: | |
6bf9431b | 5365 | fi |
20e95c23 DJ |
5366 | rm -f conf$$.sh |
5367 | fi | |
5af11cab | 5368 | |
20e95c23 DJ |
5369 | # Find out how to test for executable files. Don't use a zero-byte file, |
5370 | # as systems may use methods other than mode bits to determine executability. | |
5371 | cat >conf$$.file <<_ASEOF | |
5372 | #! /bin/sh | |
5373 | exit 0 | |
5374 | _ASEOF | |
5375 | chmod +x conf$$.file | |
5376 | if test -x conf$$.file >/dev/null 2>&1; then | |
5377 | ac_executable_p="test -x" | |
5378 | else | |
5379 | ac_executable_p="test -f" | |
6bf9431b | 5380 | fi |
20e95c23 DJ |
5381 | rm -f conf$$.file |
5382 | ||
5383 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
5384 | set dummy msgmerge; ac_word=$2 | |
5385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5387 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
5388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5389 | else | |
5390 | case "$MSGMERGE" in | |
5391 | [\\/]* | ?:[\\/]*) | |
5392 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5393 | ;; | |
5394 | *) | |
5395 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5396 | for ac_dir in $PATH; do | |
5397 | IFS="$ac_save_IFS" | |
5398 | test -z "$ac_dir" && ac_dir=. | |
5399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5400 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5401 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5402 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5403 | break 2 | |
5404 | fi | |
5405 | fi | |
5406 | done | |
5407 | done | |
5408 | IFS="$ac_save_IFS" | |
5409 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5410 | ;; | |
5411 | esac | |
6bf9431b | 5412 | fi |
20e95c23 DJ |
5413 | MSGMERGE="$ac_cv_path_MSGMERGE" |
5414 | if test "$MSGMERGE" != ":"; then | |
5415 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
5416 | echo "${ECHO_T}$MSGMERGE" >&6 | |
5af11cab | 5417 | else |
6bf9431b BE |
5418 | echo "$as_me:$LINENO: result: no" >&5 |
5419 | echo "${ECHO_T}no" >&6 | |
5af11cab | 5420 | fi |
5af11cab | 5421 | |
20e95c23 DJ |
5422 | |
5423 | if test "$GMSGFMT" != ":"; then | |
5424 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5425 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5426 | : ; | |
5427 | else | |
5428 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5429 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5430 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
5431 | GMSGFMT=":" | |
5432 | fi | |
5433 | fi | |
5434 | ||
5435 | if test "$XGETTEXT" != ":"; then | |
5436 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5437 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5438 | : ; | |
5439 | else | |
5440 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5441 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
5442 | XGETTEXT=":" | |
5443 | fi | |
5444 | rm -f messages.po | |
5445 | fi | |
5446 | ||
5447 | ac_config_commands="$ac_config_commands default-1" | |
5448 | ||
5449 | ||
5450 | ||
5451 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
5452 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
5453 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
5454 | if test "${enable_maintainer_mode+set}" = set; then | |
5455 | enableval="$enable_maintainer_mode" | |
5456 | USE_MAINTAINER_MODE=$enableval | |
6bf9431b | 5457 | else |
20e95c23 DJ |
5458 | USE_MAINTAINER_MODE=no |
5459 | fi; | |
5460 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
5461 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
5462 | ||
5463 | ||
5464 | if test $USE_MAINTAINER_MODE = yes; then | |
5465 | MAINTAINER_MODE_TRUE= | |
5466 | MAINTAINER_MODE_FALSE='#' | |
5467 | else | |
5468 | MAINTAINER_MODE_TRUE='#' | |
5469 | MAINTAINER_MODE_FALSE= | |
6bf9431b | 5470 | fi |
252b5132 | 5471 | |
20e95c23 DJ |
5472 | MAINT=$MAINTAINER_MODE_TRUE |
5473 | ||
5474 | ||
5475 | ||
5476 | ||
d5fbea21 DJ |
5477 | if false; then |
5478 | GENINSRC_NEVER_TRUE= | |
5479 | GENINSRC_NEVER_FALSE='#' | |
5480 | else | |
5481 | GENINSRC_NEVER_TRUE='#' | |
5482 | GENINSRC_NEVER_FALSE= | |
5483 | fi | |
5484 | ||
5485 | ||
5486 | ||
6bf9431b BE |
5487 | ac_ext=c |
5488 | ac_cpp='$CPP $CPPFLAGS' | |
5489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5492 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5493 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
252b5132 RH |
5494 | # On Suns, sometimes $CPP names a directory. |
5495 | if test -n "$CPP" && test -d "$CPP"; then | |
5496 | CPP= | |
5497 | fi | |
5498 | if test -z "$CPP"; then | |
6bf9431b BE |
5499 | if test "${ac_cv_prog_CPP+set}" = set; then |
5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5501 | else | |
5502 | # Double quotes because CPP needs to be expanded | |
5503 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5504 | do | |
5505 | ac_preproc_ok=false | |
5506 | for ac_c_preproc_warn_flag in '' yes | |
5507 | do | |
5508 | # Use a header file that comes with gcc, so configuring glibc | |
5509 | # with a fresh cross-compiler works. | |
5510 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5511 | # <limits.h> exists even on freestanding compilers. | |
252b5132 | 5512 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6bf9431b BE |
5513 | # not just through cpp. "Syntax error" is here to catch this case. |
5514 | cat >conftest.$ac_ext <<_ACEOF | |
5515 | /* confdefs.h. */ | |
5516 | _ACEOF | |
5517 | cat confdefs.h >>conftest.$ac_ext | |
5518 | cat >>conftest.$ac_ext <<_ACEOF | |
5519 | /* end confdefs.h. */ | |
5520 | #ifdef __STDC__ | |
5521 | # include <limits.h> | |
5522 | #else | |
5523 | # include <assert.h> | |
5524 | #endif | |
5525 | Syntax error | |
5526 | _ACEOF | |
5527 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5528 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5529 | ac_status=$? | |
5530 | grep -v '^ *+' conftest.er1 >conftest.err | |
5531 | rm -f conftest.er1 | |
5532 | cat conftest.err >&5 | |
5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5534 | (exit $ac_status); } >/dev/null; then | |
5535 | if test -s conftest.err; then | |
5536 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5537 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5538 | else | |
5539 | ac_cpp_err= | |
5540 | fi | |
252b5132 | 5541 | else |
6bf9431b BE |
5542 | ac_cpp_err=yes |
5543 | fi | |
5544 | if test -z "$ac_cpp_err"; then | |
252b5132 RH |
5545 | : |
5546 | else | |
6bf9431b BE |
5547 | echo "$as_me: failed program was:" >&5 |
5548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5549 | ||
5550 | # Broken: fails on valid input. | |
5551 | continue | |
5552 | fi | |
5553 | rm -f conftest.err conftest.$ac_ext | |
5554 | ||
5555 | # OK, works on sane cases. Now check whether non-existent headers | |
5556 | # can be detected and how. | |
5557 | cat >conftest.$ac_ext <<_ACEOF | |
5558 | /* confdefs.h. */ | |
5559 | _ACEOF | |
5560 | cat confdefs.h >>conftest.$ac_ext | |
5561 | cat >>conftest.$ac_ext <<_ACEOF | |
5562 | /* end confdefs.h. */ | |
5563 | #include <ac_nonexistent.h> | |
5564 | _ACEOF | |
5565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5567 | ac_status=$? | |
5568 | grep -v '^ *+' conftest.er1 >conftest.err | |
5569 | rm -f conftest.er1 | |
5570 | cat conftest.err >&5 | |
5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5572 | (exit $ac_status); } >/dev/null; then | |
5573 | if test -s conftest.err; then | |
5574 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5575 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5576 | else | |
5577 | ac_cpp_err= | |
5578 | fi | |
252b5132 | 5579 | else |
6bf9431b | 5580 | ac_cpp_err=yes |
252b5132 | 5581 | fi |
6bf9431b BE |
5582 | if test -z "$ac_cpp_err"; then |
5583 | # Broken: success on invalid input. | |
5584 | continue | |
5585 | else | |
5586 | echo "$as_me: failed program was:" >&5 | |
5587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5588 | ||
5589 | # Passes both tests. | |
5590 | ac_preproc_ok=: | |
5591 | break | |
252b5132 | 5592 | fi |
6bf9431b BE |
5593 | rm -f conftest.err conftest.$ac_ext |
5594 | ||
5595 | done | |
5596 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5597 | rm -f conftest.err conftest.$ac_ext | |
5598 | if $ac_preproc_ok; then | |
5599 | break | |
252b5132 | 5600 | fi |
6bf9431b BE |
5601 | |
5602 | done | |
5603 | ac_cv_prog_CPP=$CPP | |
5604 | ||
252b5132 | 5605 | fi |
6bf9431b | 5606 | CPP=$ac_cv_prog_CPP |
252b5132 | 5607 | else |
6bf9431b | 5608 | ac_cv_prog_CPP=$CPP |
252b5132 | 5609 | fi |
6bf9431b BE |
5610 | echo "$as_me:$LINENO: result: $CPP" >&5 |
5611 | echo "${ECHO_T}$CPP" >&6 | |
5612 | ac_preproc_ok=false | |
5613 | for ac_c_preproc_warn_flag in '' yes | |
5614 | do | |
5615 | # Use a header file that comes with gcc, so configuring glibc | |
5616 | # with a fresh cross-compiler works. | |
5617 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5618 | # <limits.h> exists even on freestanding compilers. | |
5619 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5620 | # not just through cpp. "Syntax error" is here to catch this case. | |
5621 | cat >conftest.$ac_ext <<_ACEOF | |
5622 | /* confdefs.h. */ | |
5623 | _ACEOF | |
5624 | cat confdefs.h >>conftest.$ac_ext | |
5625 | cat >>conftest.$ac_ext <<_ACEOF | |
5626 | /* end confdefs.h. */ | |
5627 | #ifdef __STDC__ | |
5628 | # include <limits.h> | |
5629 | #else | |
5630 | # include <assert.h> | |
5631 | #endif | |
5632 | Syntax error | |
5633 | _ACEOF | |
5634 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5635 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5636 | ac_status=$? | |
5637 | grep -v '^ *+' conftest.er1 >conftest.err | |
5638 | rm -f conftest.er1 | |
5639 | cat conftest.err >&5 | |
5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5641 | (exit $ac_status); } >/dev/null; then | |
5642 | if test -s conftest.err; then | |
5643 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5644 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5645 | else | |
5646 | ac_cpp_err= | |
5647 | fi | |
ac48eca1 | 5648 | else |
6bf9431b BE |
5649 | ac_cpp_err=yes |
5650 | fi | |
5651 | if test -z "$ac_cpp_err"; then | |
5652 | : | |
ac48eca1 | 5653 | else |
6bf9431b BE |
5654 | echo "$as_me: failed program was:" >&5 |
5655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5656 | ||
5657 | # Broken: fails on valid input. | |
5658 | continue | |
5659 | fi | |
5660 | rm -f conftest.err conftest.$ac_ext | |
5661 | ||
5662 | # OK, works on sane cases. Now check whether non-existent headers | |
5663 | # can be detected and how. | |
5664 | cat >conftest.$ac_ext <<_ACEOF | |
5665 | /* confdefs.h. */ | |
5666 | _ACEOF | |
5667 | cat confdefs.h >>conftest.$ac_ext | |
5668 | cat >>conftest.$ac_ext <<_ACEOF | |
5669 | /* end confdefs.h. */ | |
5670 | #include <ac_nonexistent.h> | |
5671 | _ACEOF | |
5672 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5673 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5674 | ac_status=$? | |
5675 | grep -v '^ *+' conftest.er1 >conftest.err | |
5676 | rm -f conftest.er1 | |
5677 | cat conftest.err >&5 | |
5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5679 | (exit $ac_status); } >/dev/null; then | |
5680 | if test -s conftest.err; then | |
5681 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5682 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5683 | else | |
5684 | ac_cpp_err= | |
5685 | fi | |
5686 | else | |
5687 | ac_cpp_err=yes | |
ac48eca1 | 5688 | fi |
6bf9431b BE |
5689 | if test -z "$ac_cpp_err"; then |
5690 | # Broken: success on invalid input. | |
5691 | continue | |
5692 | else | |
5693 | echo "$as_me: failed program was:" >&5 | |
5694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5695 | ||
5696 | # Passes both tests. | |
5697 | ac_preproc_ok=: | |
5698 | break | |
ac48eca1 | 5699 | fi |
6bf9431b BE |
5700 | rm -f conftest.err conftest.$ac_ext |
5701 | ||
5702 | done | |
5703 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5704 | rm -f conftest.err conftest.$ac_ext | |
5705 | if $ac_preproc_ok; then | |
5706 | : | |
5707 | else | |
5708 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5709 | See \`config.log' for more details." >&5 | |
5710 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5711 | See \`config.log' for more details." >&2;} | |
5712 | { (exit 1); exit 1; }; } | |
5713 | fi | |
5714 | ||
5715 | ac_ext=c | |
5716 | ac_cpp='$CPP $CPPFLAGS' | |
5717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5720 | ||
5721 | ||
5722 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5723 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5724 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 5726 | else |
6bf9431b BE |
5727 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5728 | then ac_cv_prog_egrep='grep -E' | |
5729 | else ac_cv_prog_egrep='egrep' | |
5730 | fi | |
ac48eca1 | 5731 | fi |
6bf9431b BE |
5732 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5733 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5734 | EGREP=$ac_cv_prog_egrep | |
5735 | ||
ac48eca1 | 5736 | |
6bf9431b BE |
5737 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5738 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
20e95c23 | 5739 | if test "${ac_cv_header_stdc+set}" = set; then |
6bf9431b | 5740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6bf9431b | 5741 | else |
20e95c23 | 5742 | cat >conftest.$ac_ext <<_ACEOF |
6bf9431b BE |
5743 | /* confdefs.h. */ |
5744 | _ACEOF | |
5745 | cat confdefs.h >>conftest.$ac_ext | |
5746 | cat >>conftest.$ac_ext <<_ACEOF | |
5747 | /* end confdefs.h. */ | |
20e95c23 DJ |
5748 | #include <stdlib.h> |
5749 | #include <stdarg.h> | |
5750 | #include <string.h> | |
5751 | #include <float.h> | |
5752 | ||
5753 | int | |
5754 | main () | |
5755 | { | |
5756 | ||
5757 | ; | |
5758 | return 0; | |
5759 | } | |
6bf9431b BE |
5760 | _ACEOF |
5761 | rm -f conftest.$ac_objext | |
5762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5763 | (eval $ac_compile) 2>conftest.er1 | |
5764 | ac_status=$? | |
5765 | grep -v '^ *+' conftest.er1 >conftest.err | |
5766 | rm -f conftest.er1 | |
5767 | cat conftest.err >&5 | |
5768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5769 | (exit $ac_status); } && | |
df76639a AM |
5770 | { ac_try='test -z "$ac_c_werror_flag" |
5771 | || test ! -s conftest.err' | |
6bf9431b BE |
5772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5773 | (eval $ac_try) 2>&5 | |
5774 | ac_status=$? | |
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5776 | (exit $ac_status); }; } && | |
5777 | { ac_try='test -s conftest.$ac_objext' | |
5778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5779 | (eval $ac_try) 2>&5 | |
5780 | ac_status=$? | |
5781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5782 | (exit $ac_status); }; }; then | |
20e95c23 | 5783 | ac_cv_header_stdc=yes |
6bf9431b BE |
5784 | else |
5785 | echo "$as_me: failed program was:" >&5 | |
5786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5787 | ||
20e95c23 | 5788 | ac_cv_header_stdc=no |
6bf9431b BE |
5789 | fi |
5790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bf9431b | 5791 | |
20e95c23 DJ |
5792 | if test $ac_cv_header_stdc = yes; then |
5793 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5794 | cat >conftest.$ac_ext <<_ACEOF | |
6bf9431b BE |
5795 | /* confdefs.h. */ |
5796 | _ACEOF | |
5797 | cat confdefs.h >>conftest.$ac_ext | |
5798 | cat >>conftest.$ac_ext <<_ACEOF | |
5799 | /* end confdefs.h. */ | |
20e95c23 DJ |
5800 | #include <string.h> |
5801 | ||
6bf9431b | 5802 | _ACEOF |
20e95c23 DJ |
5803 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5804 | $EGREP "memchr" >/dev/null 2>&1; then | |
5805 | : | |
252b5132 | 5806 | else |
20e95c23 | 5807 | ac_cv_header_stdc=no |
252b5132 | 5808 | fi |
20e95c23 | 5809 | rm -f conftest* |
6bf9431b | 5810 | |
6bf9431b | 5811 | fi |
6bf9431b | 5812 | |
20e95c23 DJ |
5813 | if test $ac_cv_header_stdc = yes; then |
5814 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5815 | cat >conftest.$ac_ext <<_ACEOF | |
5816 | /* confdefs.h. */ | |
5817 | _ACEOF | |
5818 | cat confdefs.h >>conftest.$ac_ext | |
5819 | cat >>conftest.$ac_ext <<_ACEOF | |
5820 | /* end confdefs.h. */ | |
5821 | #include <stdlib.h> | |
5822 | ||
5823 | _ACEOF | |
5824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5825 | $EGREP "free" >/dev/null 2>&1; then | |
5826 | : | |
6bf9431b | 5827 | else |
20e95c23 | 5828 | ac_cv_header_stdc=no |
252b5132 | 5829 | fi |
20e95c23 | 5830 | rm -f conftest* |
6bf9431b BE |
5831 | |
5832 | fi | |
20e95c23 DJ |
5833 | |
5834 | if test $ac_cv_header_stdc = yes; then | |
5835 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5836 | if test "$cross_compiling" = yes; then | |
5837 | : | |
252b5132 | 5838 | else |
20e95c23 DJ |
5839 | cat >conftest.$ac_ext <<_ACEOF |
5840 | /* confdefs.h. */ | |
5841 | _ACEOF | |
5842 | cat confdefs.h >>conftest.$ac_ext | |
5843 | cat >>conftest.$ac_ext <<_ACEOF | |
5844 | /* end confdefs.h. */ | |
5845 | #include <ctype.h> | |
5846 | #if ((' ' & 0x0FF) == 0x020) | |
5847 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5848 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5849 | #else | |
5850 | # define ISLOWER(c) \ | |
5851 | (('a' <= (c) && (c) <= 'i') \ | |
5852 | || ('j' <= (c) && (c) <= 'r') \ | |
5853 | || ('s' <= (c) && (c) <= 'z')) | |
5854 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5855 | #endif | |
5856 | ||
5857 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5858 | int | |
5859 | main () | |
5860 | { | |
5861 | int i; | |
5862 | for (i = 0; i < 256; i++) | |
5863 | if (XOR (islower (i), ISLOWER (i)) | |
5864 | || toupper (i) != TOUPPER (i)) | |
5865 | exit(2); | |
5866 | exit (0); | |
5867 | } | |
5868 | _ACEOF | |
5869 | rm -f conftest$ac_exeext | |
5870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5871 | (eval $ac_link) 2>&5 | |
5872 | ac_status=$? | |
5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5874 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5876 | (eval $ac_try) 2>&5 | |
5877 | ac_status=$? | |
5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5879 | (exit $ac_status); }; }; then | |
5880 | : | |
5881 | else | |
5882 | echo "$as_me: program exited with status $ac_status" >&5 | |
5883 | echo "$as_me: failed program was:" >&5 | |
5884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 5885 | |
20e95c23 DJ |
5886 | ( exit $ac_status ) |
5887 | ac_cv_header_stdc=no | |
5888 | fi | |
5889 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5890 | fi | |
5891 | fi | |
5892 | fi | |
5893 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5894 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5895 | if test $ac_cv_header_stdc = yes; then | |
252b5132 | 5896 | |
20e95c23 DJ |
5897 | cat >>confdefs.h <<\_ACEOF |
5898 | #define STDC_HEADERS 1 | |
5899 | _ACEOF | |
6bf9431b | 5900 | |
20e95c23 | 5901 | fi |
252b5132 | 5902 | |
20e95c23 | 5903 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6bf9431b BE |
5904 | |
5905 | ||
252b5132 | 5906 | |
6bf9431b | 5907 | |
252b5132 | 5908 | |
6bf9431b | 5909 | |
252b5132 | 5910 | |
252b5132 | 5911 | |
6bf9431b | 5912 | |
20e95c23 DJ |
5913 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5914 | inttypes.h stdint.h unistd.h | |
5915 | do | |
5916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5921 | else |
20e95c23 DJ |
5922 | cat >conftest.$ac_ext <<_ACEOF |
5923 | /* confdefs.h. */ | |
5924 | _ACEOF | |
5925 | cat confdefs.h >>conftest.$ac_ext | |
5926 | cat >>conftest.$ac_ext <<_ACEOF | |
5927 | /* end confdefs.h. */ | |
5928 | $ac_includes_default | |
252b5132 | 5929 | |
20e95c23 DJ |
5930 | #include <$ac_header> |
5931 | _ACEOF | |
5932 | rm -f conftest.$ac_objext | |
5933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5934 | (eval $ac_compile) 2>conftest.er1 | |
5935 | ac_status=$? | |
5936 | grep -v '^ *+' conftest.er1 >conftest.err | |
5937 | rm -f conftest.er1 | |
5938 | cat conftest.err >&5 | |
5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5940 | (exit $ac_status); } && | |
5941 | { ac_try='test -z "$ac_c_werror_flag" | |
5942 | || test ! -s conftest.err' | |
5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5944 | (eval $ac_try) 2>&5 | |
5945 | ac_status=$? | |
5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5947 | (exit $ac_status); }; } && | |
5948 | { ac_try='test -s conftest.$ac_objext' | |
5949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5950 | (eval $ac_try) 2>&5 | |
5951 | ac_status=$? | |
5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5953 | (exit $ac_status); }; }; then | |
5954 | eval "$as_ac_Header=yes" | |
252b5132 | 5955 | else |
20e95c23 DJ |
5956 | echo "$as_me: failed program was:" >&5 |
5957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6bf9431b | 5958 | |
20e95c23 DJ |
5959 | eval "$as_ac_Header=no" |
5960 | fi | |
5961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5962 | fi | |
5963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5965 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5966 | cat >>confdefs.h <<_ACEOF | |
5967 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5968 | _ACEOF | |
6bf9431b | 5969 | |
20e95c23 | 5970 | fi |
6bf9431b | 5971 | |
20e95c23 | 5972 | done |
6bf9431b BE |
5973 | |
5974 | ||
5975 | ||
5976 | for ac_header in sys/gmon_out.h | |
5977 | do | |
5978 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5980 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5981 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5982 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5984 | fi | |
5985 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5986 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5987 | else | |
5988 | # Is the header compilable? | |
5989 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5990 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5991 | cat >conftest.$ac_ext <<_ACEOF | |
5992 | /* confdefs.h. */ | |
5993 | _ACEOF | |
5994 | cat confdefs.h >>conftest.$ac_ext | |
5995 | cat >>conftest.$ac_ext <<_ACEOF | |
5996 | /* end confdefs.h. */ | |
5997 | $ac_includes_default | |
5998 | #include <$ac_header> | |
5999 | _ACEOF | |
6000 | rm -f conftest.$ac_objext | |
6001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6002 | (eval $ac_compile) 2>conftest.er1 | |
6003 | ac_status=$? | |
6004 | grep -v '^ *+' conftest.er1 >conftest.err | |
6005 | rm -f conftest.er1 | |
6006 | cat conftest.err >&5 | |
6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6008 | (exit $ac_status); } && | |
df76639a AM |
6009 | { ac_try='test -z "$ac_c_werror_flag" |
6010 | || test ! -s conftest.err' | |
6bf9431b BE |
6011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6012 | (eval $ac_try) 2>&5 | |
6013 | ac_status=$? | |
6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6015 | (exit $ac_status); }; } && | |
6016 | { ac_try='test -s conftest.$ac_objext' | |
6017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6018 | (eval $ac_try) 2>&5 | |
6019 | ac_status=$? | |
6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6021 | (exit $ac_status); }; }; then | |
6022 | ac_header_compiler=yes | |
6023 | else | |
6024 | echo "$as_me: failed program was:" >&5 | |
6025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6026 | ||
6027 | ac_header_compiler=no | |
6028 | fi | |
6029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6030 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6031 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6032 | ||
6033 | # Is the header present? | |
6034 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6035 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6036 | cat >conftest.$ac_ext <<_ACEOF | |
6037 | /* confdefs.h. */ | |
6038 | _ACEOF | |
6039 | cat confdefs.h >>conftest.$ac_ext | |
6040 | cat >>conftest.$ac_ext <<_ACEOF | |
6041 | /* end confdefs.h. */ | |
6042 | #include <$ac_header> | |
6043 | _ACEOF | |
6044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6046 | ac_status=$? | |
6047 | grep -v '^ *+' conftest.er1 >conftest.err | |
6048 | rm -f conftest.er1 | |
6049 | cat conftest.err >&5 | |
6050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6051 | (exit $ac_status); } >/dev/null; then | |
6052 | if test -s conftest.err; then | |
6053 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6055 | else | |
6056 | ac_cpp_err= | |
6057 | fi | |
6058 | else | |
6059 | ac_cpp_err=yes | |
6060 | fi | |
6061 | if test -z "$ac_cpp_err"; then | |
6062 | ac_header_preproc=yes | |
6063 | else | |
6064 | echo "$as_me: failed program was:" >&5 | |
6065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6066 | ||
6067 | ac_header_preproc=no | |
6068 | fi | |
6069 | rm -f conftest.err conftest.$ac_ext | |
6070 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6071 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6072 | ||
6073 | # So? What about this header? | |
6074 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6075 | yes:no: ) | |
6076 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6077 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6078 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6079 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6080 | ac_header_preproc=yes | |
6081 | ;; | |
6082 | no:yes:* ) | |
6083 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6084 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6085 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6086 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6087 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6088 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6089 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6090 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6091 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6092 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6093 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6094 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6095 | ( | |
6096 | cat <<\_ASBOX | |
6097 | ## ------------------------------------------ ## | |
6098 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6099 | ## ------------------------------------------ ## | |
6100 | _ASBOX | |
6101 | ) | | |
6102 | sed "s/^/$as_me: WARNING: /" >&2 | |
6103 | ;; | |
6104 | esac | |
6105 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6107 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6109 | else | |
6110 | eval "$as_ac_Header=\$ac_header_preproc" | |
6111 | fi | |
6112 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6113 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6114 | ||
6115 | fi | |
6116 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6117 | cat >>confdefs.h <<_ACEOF | |
6118 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6119 | _ACEOF | |
6120 | ||
6121 | fi | |
6122 | ||
6123 | done | |
6124 | ||
6125 | ||
34875e64 NC |
6126 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
6127 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
6128 | if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then | |
6129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6130 | else | |
6131 | cat >conftest.$ac_ext <<_ACEOF | |
6132 | /* confdefs.h. */ | |
6133 | _ACEOF | |
6134 | cat confdefs.h >>conftest.$ac_ext | |
6135 | cat >>conftest.$ac_ext <<_ACEOF | |
6136 | /* end confdefs.h. */ | |
6137 | #include <unistd.h> | |
6138 | int | |
6139 | main () | |
6140 | { | |
6141 | extern int getopt (int, char *const*, const char *); | |
6142 | ; | |
6143 | return 0; | |
6144 | } | |
6145 | _ACEOF | |
6146 | rm -f conftest.$ac_objext | |
6147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6148 | (eval $ac_compile) 2>conftest.er1 | |
6149 | ac_status=$? | |
6150 | grep -v '^ *+' conftest.er1 >conftest.err | |
6151 | rm -f conftest.er1 | |
6152 | cat conftest.err >&5 | |
6153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6154 | (exit $ac_status); } && | |
6155 | { ac_try='test -z "$ac_c_werror_flag" | |
6156 | || test ! -s conftest.err' | |
6157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6158 | (eval $ac_try) 2>&5 | |
6159 | ac_status=$? | |
6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6161 | (exit $ac_status); }; } && | |
6162 | { ac_try='test -s conftest.$ac_objext' | |
6163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6164 | (eval $ac_try) 2>&5 | |
6165 | ac_status=$? | |
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6167 | (exit $ac_status); }; }; then | |
6168 | gprof_cv_decl_getopt_unistd_h=yes | |
6169 | else | |
6170 | echo "$as_me: failed program was:" >&5 | |
6171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6172 | ||
6173 | gprof_cv_decl_getopt_unistd_h=no | |
6174 | fi | |
6175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6176 | fi | |
6177 | ||
6178 | echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5 | |
6179 | echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6 | |
6180 | if test $gprof_cv_decl_getopt_unistd_h = yes; then | |
6181 | ||
6182 | cat >>confdefs.h <<\_ACEOF | |
6183 | #define HAVE_DECL_GETOPT 1 | |
6184 | _ACEOF | |
6185 | ||
6186 | fi | |
6187 | ||
9e9b66a9 | 6188 | |
a541e3ce | 6189 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
1ad12f97 | 6190 | |
569acd2c NC |
6191 | # Check whether --enable-werror or --disable-werror was given. |
6192 | if test "${enable_werror+set}" = set; then | |
6193 | enableval="$enable_werror" | |
1ad12f97 NC |
6194 | case "${enableval}" in |
6195 | yes | y) ERROR_ON_WARNING="yes" ;; | |
6196 | no | n) ERROR_ON_WARNING="no" ;; | |
569acd2c NC |
6197 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
6198 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
1ad12f97 NC |
6199 | { (exit 1); exit 1; }; } ;; |
6200 | esac | |
6201 | fi; | |
6202 | ||
9e9b66a9 AM |
6203 | # Enable -Werror by default when using gcc |
6204 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
6205 | ERROR_ON_WARNING=yes | |
6206 | fi | |
6207 | ||
6208 | NO_WERROR= | |
6209 | if test "${ERROR_ON_WARNING}" = yes ; then | |
a541e3ce | 6210 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
9e9b66a9 | 6211 | NO_WERROR="-Wno-error" |
1ad12f97 NC |
6212 | fi |
6213 | ||
a541e3ce SE |
6214 | if test "${GCC}" = yes ; then |
6215 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
6216 | fi | |
6217 | ||
6bf9431b BE |
6218 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
6219 | if test "${enable_build_warnings+set}" = set; then | |
6220 | enableval="$enable_build_warnings" | |
6221 | case "${enableval}" in | |
a541e3ce SE |
6222 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
6223 | no) if test "${GCC}" = yes ; then | |
6224 | WARN_CFLAGS="-w" | |
6225 | fi;; | |
6bf9431b | 6226 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 6227 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; |
6bf9431b | 6228 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 6229 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; |
9e9b66a9 | 6230 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
6bf9431b | 6231 | esac |
9e9b66a9 AM |
6232 | fi; |
6233 | ||
6234 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
6235 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
6bf9431b BE |
6236 | fi |
6237 | ||
6238 | ||
9e9b66a9 AM |
6239 | |
6240 | ||
6241 | ||
108a6f8e CD |
6242 | |
6243 | ||
6244 | ||
6245 | ||
6bf9431b BE |
6246 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
6247 | ||
6bf9431b BE |
6248 | cat >confcache <<\_ACEOF |
6249 | # This file is a shell script that caches the results of configure | |
6250 | # tests run on this system so they can be shared between configure | |
6251 | # scripts and configure runs, see configure's option --config-cache. | |
6252 | # It is not useful on other systems. If it contains results you don't | |
6253 | # want to keep, you may remove or edit it. | |
6254 | # | |
6255 | # config.status only pays attention to the cache file if you give it | |
6256 | # the --recheck option to rerun configure. | |
6257 | # | |
6258 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6259 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6260 | # following values. | |
6261 | ||
6262 | _ACEOF | |
6263 | ||
6264 | # The following way of writing the cache mishandles newlines in values, | |
6265 | # but we know of no workaround that is simple, portable, and efficient. | |
6266 | # So, don't put newlines in cache variables' values. | |
6267 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6268 | # and sets the high bit in the cache file unless we assign to the vars. | |
6269 | { | |
6270 | (set) 2>&1 | | |
6271 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6272 | *ac_space=\ *) | |
6273 | # `set' does not quote correctly, so add quotes (double-quote | |
6274 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6275 | sed -n \ | |
6276 | "s/'/'\\\\''/g; | |
6277 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6278 | ;; | |
6279 | *) | |
6280 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6281 | sed -n \ | |
6282 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6283 | ;; | |
6284 | esac; | |
6285 | } | | |
6286 | sed ' | |
6287 | t clear | |
6288 | : clear | |
6289 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6290 | t end | |
6291 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6292 | : end' >>confcache | |
6293 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
6294 | if test -w $cache_file; then | |
6295 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6296 | cat confcache >$cache_file | |
6297 | else | |
6298 | echo "not updating unwritable cache $cache_file" | |
6299 | fi | |
6300 | fi | |
6301 | rm -f confcache | |
6302 | ||
6303 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6304 | # Let make expand exec_prefix. | |
6305 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6306 | ||
6307 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6308 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6309 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6310 | # (actually we leave an empty line to preserve line numbers). | |
6311 | if test "x$srcdir" = x.; then | |
6312 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6313 | s/:*\$(srcdir):*/:/; | |
6314 | s/:*\${srcdir}:*/:/; | |
6315 | s/:*@srcdir@:*/:/; | |
6316 | s/^\([^=]*=[ ]*\):*/\1/; | |
6317 | s/:*$//; | |
6318 | s/^[^=]*=[ ]*$//; | |
6319 | }' | |
6320 | fi | |
6321 | ||
6322 | DEFS=-DHAVE_CONFIG_H | |
6323 | ||
6324 | ac_libobjs= | |
6325 | ac_ltlibobjs= | |
6326 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6327 | # 1. Remove the extension, and $U if already installed. | |
6328 | ac_i=`echo "$ac_i" | | |
6329 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
6330 | # 2. Add them. | |
6331 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
6332 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6333 | done | |
6334 | LIBOBJS=$ac_libobjs | |
6335 | ||
6336 | LTLIBOBJS=$ac_ltlibobjs | |
6337 | ||
6338 | ||
6339 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
6340 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
6341 | Usually this means the macro was only invoked conditionally." >&5 | |
6342 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
6343 | Usually this means the macro was only invoked conditionally." >&2;} | |
6344 | { (exit 1); exit 1; }; } | |
6345 | fi | |
6346 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
6347 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
6348 | Usually this means the macro was only invoked conditionally." >&5 | |
6349 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
6350 | Usually this means the macro was only invoked conditionally." >&2;} | |
6351 | { (exit 1); exit 1; }; } | |
6352 | fi | |
6353 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
6354 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
6355 | Usually this means the macro was only invoked conditionally." >&5 | |
6356 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
6357 | Usually this means the macro was only invoked conditionally." >&2;} | |
6358 | { (exit 1); exit 1; }; } | |
6359 | fi | |
d5fbea21 DJ |
6360 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
6361 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
6362 | Usually this means the macro was only invoked conditionally." >&5 | |
6363 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
6364 | Usually this means the macro was only invoked conditionally." >&2;} | |
6365 | { (exit 1); exit 1; }; } | |
6366 | fi | |
6bf9431b BE |
6367 | |
6368 | : ${CONFIG_STATUS=./config.status} | |
6369 | ac_clean_files_save=$ac_clean_files | |
6370 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6371 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6372 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6373 | cat >$CONFIG_STATUS <<_ACEOF | |
6374 | #! $SHELL | |
6375 | # Generated by $as_me. | |
6376 | # Run this file to recreate the current configuration. | |
6377 | # Compiler output produced by configure, useful for debugging | |
6378 | # configure, is in config.log if it exists. | |
6379 | ||
6380 | debug=false | |
6381 | ac_cs_recheck=false | |
6382 | ac_cs_silent=false | |
6383 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6384 | _ACEOF | |
6385 | ||
6386 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6387 | ## --------------------- ## | |
6388 | ## M4sh Initialization. ## | |
6389 | ## --------------------- ## | |
6390 | ||
6391 | # Be Bourne compatible | |
6392 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6393 | emulate sh | |
6394 | NULLCMD=: | |
6395 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
6396 | # is contrary to our usage. Disable this feature. | |
6397 | alias -g '${1+"$@"}'='"$@"' | |
6398 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
6399 | set -o posix | |
6400 | fi | |
6401 | DUALCASE=1; export DUALCASE # for MKS sh | |
6402 | ||
6403 | # Support unset when possible. | |
6404 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6405 | as_unset=unset | |
6406 | else | |
6407 | as_unset=false | |
6408 | fi | |
6409 | ||
6410 | ||
6411 | # Work around bugs in pre-3.0 UWIN ksh. | |
6412 | $as_unset ENV MAIL MAILPATH | |
6413 | PS1='$ ' | |
6414 | PS2='> ' | |
6415 | PS4='+ ' | |
6416 | ||
6417 | # NLS nuisances. | |
6418 | for as_var in \ | |
6419 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6420 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6421 | LC_TELEPHONE LC_TIME | |
6422 | do | |
6423 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
6424 | eval $as_var=C; export $as_var | |
6425 | else | |
6426 | $as_unset $as_var | |
6427 | fi | |
6428 | done | |
6429 | ||
6430 | # Required to use basename. | |
6431 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6432 | as_expr=expr | |
6433 | else | |
6434 | as_expr=false | |
6435 | fi | |
6436 | ||
6437 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
6438 | as_basename=basename | |
6439 | else | |
6440 | as_basename=false | |
252b5132 | 6441 | fi |
252b5132 | 6442 | |
252b5132 | 6443 | |
6bf9431b BE |
6444 | # Name of the executable. |
6445 | as_me=`$as_basename "$0" || | |
6446 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6447 | X"$0" : 'X\(//\)$' \| \ | |
6448 | X"$0" : 'X\(/\)$' \| \ | |
6449 | . : '\(.\)' 2>/dev/null || | |
6450 | echo X/"$0" | | |
6451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6452 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6453 | /^X\/\(\/\).*/{ s//\1/; q; } | |
6454 | s/.*/./; q'` | |
252b5132 | 6455 | |
6bf9431b BE |
6456 | |
6457 | # PATH needs CR, and LINENO needs CR and PATH. | |
6458 | # Avoid depending upon Character Ranges. | |
6459 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6460 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6461 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6462 | as_cr_digits='0123456789' | |
6463 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6464 | ||
6465 | # The user is always right. | |
6466 | if test "${PATH_SEPARATOR+set}" != set; then | |
6467 | echo "#! /bin/sh" >conf$$.sh | |
6468 | echo "exit 0" >>conf$$.sh | |
6469 | chmod +x conf$$.sh | |
6470 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6471 | PATH_SEPARATOR=';' | |
252b5132 | 6472 | else |
6bf9431b | 6473 | PATH_SEPARATOR=: |
252b5132 | 6474 | fi |
6bf9431b | 6475 | rm -f conf$$.sh |
252b5132 RH |
6476 | fi |
6477 | ||
252b5132 | 6478 | |
6bf9431b BE |
6479 | as_lineno_1=$LINENO |
6480 | as_lineno_2=$LINENO | |
6481 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6482 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6483 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
6484 | # Find who we are. Look in the path if we contain no path at all | |
6485 | # relative or not. | |
6486 | case $0 in | |
6487 | *[\\/]* ) as_myself=$0 ;; | |
6488 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6489 | for as_dir in $PATH | |
6490 | do | |
6491 | IFS=$as_save_IFS | |
6492 | test -z "$as_dir" && as_dir=. | |
6493 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6494 | done | |
252b5132 | 6495 | |
6bf9431b BE |
6496 | ;; |
6497 | esac | |
6498 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6499 | # in which case we are not to be found in the path. | |
6500 | if test "x$as_myself" = x; then | |
6501 | as_myself=$0 | |
6502 | fi | |
6503 | if test ! -f "$as_myself"; then | |
6504 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
6505 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
6506 | { (exit 1); exit 1; }; } | |
6507 | fi | |
6508 | case $CONFIG_SHELL in | |
6509 | '') | |
6510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6511 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
0eee5820 | 6512 | do |
6bf9431b BE |
6513 | IFS=$as_save_IFS |
6514 | test -z "$as_dir" && as_dir=. | |
6515 | for as_base in sh bash ksh sh5; do | |
6516 | case $as_dir in | |
6517 | /*) | |
6518 | if ("$as_dir/$as_base" -c ' | |
6519 | as_lineno_1=$LINENO | |
6520 | as_lineno_2=$LINENO | |
6521 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6522 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6523 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6524 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
6525 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
6526 | CONFIG_SHELL=$as_dir/$as_base | |
6527 | export CONFIG_SHELL | |
6528 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
6529 | fi;; | |
6530 | esac | |
6531 | done | |
6532 | done | |
6533 | ;; | |
6534 | esac | |
6535 | ||
6536 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6537 | # uniformly replaced by the line number. The first 'sed' inserts a | |
6538 | # line-number line before each line; the second 'sed' does the real | |
6539 | # work. The second script uses 'N' to pair each line-number line | |
6540 | # with the numbered line, and appends trailing '-' during | |
6541 | # substitution so that $LINENO is not a special case at line end. | |
6542 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
6543 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
6544 | sed '=' <$as_myself | | |
6545 | sed ' | |
6546 | N | |
6547 | s,$,-, | |
6548 | : loop | |
6549 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6550 | t loop | |
6551 | s,-$,, | |
6552 | s,^['$as_cr_digits']*\n,, | |
6553 | ' >$as_me.lineno && | |
6554 | chmod +x $as_me.lineno || | |
6555 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
6556 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
6557 | { (exit 1); exit 1; }; } | |
6558 | ||
6559 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6560 | # (the dirname of $[0] is not the place where we might find the | |
6561 | # original and so on. Autoconf is especially sensible to this). | |
6562 | . ./$as_me.lineno | |
6563 | # Exit status is that of the last command. | |
6564 | exit | |
6565 | } | |
6566 | ||
6567 | ||
6568 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
6569 | *c*,-n*) ECHO_N= ECHO_C=' | |
6570 | ' ECHO_T=' ' ;; | |
6571 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
6572 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
6573 | esac | |
6574 | ||
6575 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6576 | as_expr=expr | |
0eee5820 | 6577 | else |
6bf9431b | 6578 | as_expr=false |
0eee5820 | 6579 | fi |
6bf9431b BE |
6580 | |
6581 | rm -f conf$$ conf$$.exe conf$$.file | |
6582 | echo >conf$$.file | |
6583 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6584 | # We could just check for DJGPP; but this test a) works b) is more generic | |
6585 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
6586 | if test -f conf$$.exe; then | |
6587 | # Don't use ln at all; we don't have any links | |
6588 | as_ln_s='cp -p' | |
6589 | else | |
6590 | as_ln_s='ln -s' | |
6591 | fi | |
6592 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6593 | as_ln_s=ln | |
6594 | else | |
6595 | as_ln_s='cp -p' | |
0eee5820 | 6596 | fi |
6bf9431b BE |
6597 | rm -f conf$$ conf$$.exe conf$$.file |
6598 | ||
6599 | if mkdir -p . 2>/dev/null; then | |
6600 | as_mkdir_p=: | |
0eee5820 | 6601 | else |
6bf9431b BE |
6602 | test -d ./-p && rmdir ./-p |
6603 | as_mkdir_p=false | |
0eee5820 | 6604 | fi |
0eee5820 | 6605 | |
6bf9431b | 6606 | as_executable_p="test -f" |
0eee5820 | 6607 | |
6bf9431b BE |
6608 | # Sed expression to map a string onto a valid CPP name. |
6609 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6610 | ||
6611 | # Sed expression to map a string onto a valid variable name. | |
6612 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6613 | ||
6614 | ||
6615 | # IFS | |
6616 | # We need space, tab and new line, in precisely that order. | |
6617 | as_nl=' | |
6618 | ' | |
6619 | IFS=" $as_nl" | |
6620 | ||
6621 | # CDPATH. | |
6622 | $as_unset CDPATH | |
6623 | ||
6624 | exec 6>&1 | |
6625 | ||
6626 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
6627 | # report actual input values of CONFIG_FILES etc. instead of their | |
6628 | # values after options handling. Logging --version etc. is OK. | |
6629 | exec 5>>config.log | |
6630 | { | |
6631 | echo | |
6632 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6633 | ## Running $as_me. ## | |
6634 | _ASBOX | |
6635 | } >&5 | |
6636 | cat >&5 <<_CSEOF | |
6637 | ||
6638 | This file was extended by $as_me, which was | |
6639 | generated by GNU Autoconf 2.59. Invocation command line was | |
6640 | ||
6641 | CONFIG_FILES = $CONFIG_FILES | |
6642 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6643 | CONFIG_LINKS = $CONFIG_LINKS | |
6644 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6645 | $ $0 $@ | |
6646 | ||
6647 | _CSEOF | |
6648 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
6649 | echo >&5 | |
6650 | _ACEOF | |
6651 | ||
6652 | # Files that config.status was made for. | |
6653 | if test -n "$ac_config_files"; then | |
6654 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
a2d91340 | 6655 | fi |
6bf9431b BE |
6656 | |
6657 | if test -n "$ac_config_headers"; then | |
6658 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
a2d91340 | 6659 | fi |
6bf9431b BE |
6660 | |
6661 | if test -n "$ac_config_links"; then | |
6662 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
a2d91340 AC |
6663 | fi |
6664 | ||
6bf9431b BE |
6665 | if test -n "$ac_config_commands"; then |
6666 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
6667 | fi | |
a2d91340 | 6668 | |
6bf9431b BE |
6669 | cat >>$CONFIG_STATUS <<\_ACEOF |
6670 | ||
6671 | ac_cs_usage="\ | |
6672 | \`$as_me' instantiates files from templates according to the | |
6673 | current configuration. | |
6674 | ||
6675 | Usage: $0 [OPTIONS] [FILE]... | |
6676 | ||
6677 | -h, --help print this help, then exit | |
6678 | -V, --version print version number, then exit | |
6679 | -q, --quiet do not print progress messages | |
6680 | -d, --debug don't remove temporary files | |
6681 | --recheck update $as_me by reconfiguring in the same conditions | |
6682 | --file=FILE[:TEMPLATE] | |
6683 | instantiate the configuration file FILE | |
6684 | --header=FILE[:TEMPLATE] | |
6685 | instantiate the configuration header FILE | |
6686 | ||
6687 | Configuration files: | |
6688 | $config_files | |
6689 | ||
6690 | Configuration headers: | |
6691 | $config_headers | |
6692 | ||
6693 | Configuration commands: | |
6694 | $config_commands | |
6695 | ||
6696 | Report bugs to <bug-autoconf@gnu.org>." | |
6697 | _ACEOF | |
6698 | ||
6699 | cat >>$CONFIG_STATUS <<_ACEOF | |
6700 | ac_cs_version="\\ | |
6701 | config.status | |
6702 | configured by $0, generated by GNU Autoconf 2.59, | |
6703 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
6704 | ||
6705 | Copyright (C) 2003 Free Software Foundation, Inc. | |
6706 | This config.status script is free software; the Free Software Foundation | |
6707 | gives unlimited permission to copy, distribute and modify it." | |
6708 | srcdir=$srcdir | |
6709 | INSTALL="$INSTALL" | |
6710 | _ACEOF | |
6711 | ||
6712 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6713 | # If no file are specified by the user, then we need to provide default | |
6714 | # value. By we need to know if files were specified by the user. | |
6715 | ac_need_defaults=: | |
6716 | while test $# != 0 | |
6717 | do | |
6718 | case $1 in | |
6719 | --*=*) | |
6720 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
6721 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6722 | ac_shift=: | |
252b5132 | 6723 | ;; |
6bf9431b BE |
6724 | -*) |
6725 | ac_option=$1 | |
6726 | ac_optarg=$2 | |
6727 | ac_shift=shift | |
252b5132 | 6728 | ;; |
6bf9431b BE |
6729 | *) # This is not an option, so the user has probably given explicit |
6730 | # arguments. | |
6731 | ac_option=$1 | |
6732 | ac_need_defaults=false;; | |
6733 | esac | |
252b5132 | 6734 | |
6bf9431b BE |
6735 | case $ac_option in |
6736 | # Handling of the options. | |
6737 | _ACEOF | |
6738 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6739 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6740 | ac_cs_recheck=: ;; | |
6741 | --version | --vers* | -V ) | |
6742 | echo "$ac_cs_version"; exit 0 ;; | |
6743 | --he | --h) | |
6744 | # Conflict between --help and --header | |
6745 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
6746 | Try \`$0 --help' for more information." >&5 | |
6747 | echo "$as_me: error: ambiguous option: $1 | |
6748 | Try \`$0 --help' for more information." >&2;} | |
6749 | { (exit 1); exit 1; }; };; | |
6750 | --help | --hel | -h ) | |
6751 | echo "$ac_cs_usage"; exit 0 ;; | |
6752 | --debug | --d* | -d ) | |
6753 | debug=: ;; | |
6754 | --file | --fil | --fi | --f ) | |
6755 | $ac_shift | |
6756 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
6757 | ac_need_defaults=false;; | |
6758 | --header | --heade | --head | --hea ) | |
6759 | $ac_shift | |
6760 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
6761 | ac_need_defaults=false;; | |
6762 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
6763 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6764 | ac_cs_silent=: ;; | |
252b5132 | 6765 | |
6bf9431b BE |
6766 | # This is an error. |
6767 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
6768 | Try \`$0 --help' for more information." >&5 | |
6769 | echo "$as_me: error: unrecognized option: $1 | |
6770 | Try \`$0 --help' for more information." >&2;} | |
6771 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 6772 | |
6bf9431b | 6773 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 6774 | |
6bf9431b BE |
6775 | esac |
6776 | shift | |
6777 | done | |
252b5132 | 6778 | |
6bf9431b | 6779 | ac_configure_extra_args= |
252b5132 | 6780 | |
6bf9431b BE |
6781 | if $ac_cs_silent; then |
6782 | exec 6>/dev/null | |
6783 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6784 | fi | |
252b5132 | 6785 | |
6bf9431b BE |
6786 | _ACEOF |
6787 | cat >>$CONFIG_STATUS <<_ACEOF | |
6788 | if \$ac_cs_recheck; then | |
6789 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
6790 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6791 | fi | |
6792 | ||
6793 | _ACEOF | |
6794 | ||
6795 | cat >>$CONFIG_STATUS <<_ACEOF | |
252b5132 | 6796 | # |
6bf9431b | 6797 | # INIT-COMMANDS section. |
252b5132 | 6798 | # |
252b5132 | 6799 | |
6bf9431b | 6800 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20e95c23 DJ |
6801 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
6802 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
6803 | # from automake. | |
6804 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
6805 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
6806 | LINGUAS="${LINGUAS-%UNSET%}" | |
6bf9431b BE |
6807 | |
6808 | ||
6809 | _ACEOF | |
6810 | ||
6811 | ||
6812 | ||
6813 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6814 | for ac_config_target in $ac_config_targets | |
252b5132 | 6815 | do |
6bf9431b BE |
6816 | case "$ac_config_target" in |
6817 | # Handling of arguments. | |
6818 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
6819 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
6820 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
20e95c23 | 6821 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
6bf9431b BE |
6822 | "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;; |
6823 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
6824 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6825 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
6826 | esac |
6827 | done | |
6828 | ||
6bf9431b BE |
6829 | # If the user did not use the arguments to specify the items to instantiate, |
6830 | # then the envvar interface is used. Set only those that are not. | |
6831 | # We use the long form for the default assignment because of an extremely | |
6832 | # bizarre bug on SunOS 4.1.3. | |
6833 | if $ac_need_defaults; then | |
6834 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6835 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6836 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6837 | fi | |
6838 | ||
6839 | # Have a temporary directory for convenience. Make it in the build tree | |
6840 | # simply because there is no reason to put it here, and in addition, | |
6841 | # creating and moving files from /tmp can sometimes cause problems. | |
6842 | # Create a temporary directory, and hook for its removal unless debugging. | |
6843 | $debug || | |
6844 | { | |
6845 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
6846 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
6847 | } | |
6848 | ||
6849 | # Create a (secure) tmp directory for tmp files. | |
252b5132 | 6850 | |
6bf9431b BE |
6851 | { |
6852 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
6853 | test -n "$tmp" && test -d "$tmp" | |
6854 | } || | |
6855 | { | |
6856 | tmp=./confstat$$-$RANDOM | |
6857 | (umask 077 && mkdir $tmp) | |
6858 | } || | |
6859 | { | |
6860 | echo "$me: cannot create a temporary directory in ." >&2 | |
6861 | { (exit 1); exit 1; } | |
6862 | } | |
252b5132 | 6863 | |
6bf9431b | 6864 | _ACEOF |
252b5132 | 6865 | |
6bf9431b BE |
6866 | cat >>$CONFIG_STATUS <<_ACEOF |
6867 | ||
6868 | # | |
6869 | # CONFIG_FILES section. | |
6870 | # | |
6871 | ||
6872 | # No need to generate the scripts if there are no CONFIG_FILES. | |
6873 | # This happens for instance when ./config.status config.h | |
6874 | if test -n "\$CONFIG_FILES"; then | |
6875 | # Protect against being on the right side of a sed subst in config.status. | |
6876 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
6877 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
6878 | s,@SHELL@,$SHELL,;t t | |
6879 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
6880 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
6881 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
6882 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
6883 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
6884 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
6885 | s,@exec_prefix@,$exec_prefix,;t t | |
6886 | s,@prefix@,$prefix,;t t | |
6887 | s,@program_transform_name@,$program_transform_name,;t t | |
6888 | s,@bindir@,$bindir,;t t | |
6889 | s,@sbindir@,$sbindir,;t t | |
6890 | s,@libexecdir@,$libexecdir,;t t | |
6891 | s,@datadir@,$datadir,;t t | |
6892 | s,@sysconfdir@,$sysconfdir,;t t | |
6893 | s,@sharedstatedir@,$sharedstatedir,;t t | |
6894 | s,@localstatedir@,$localstatedir,;t t | |
6895 | s,@libdir@,$libdir,;t t | |
6896 | s,@includedir@,$includedir,;t t | |
6897 | s,@oldincludedir@,$oldincludedir,;t t | |
6898 | s,@infodir@,$infodir,;t t | |
6899 | s,@mandir@,$mandir,;t t | |
6900 | s,@build_alias@,$build_alias,;t t | |
6901 | s,@host_alias@,$host_alias,;t t | |
6902 | s,@target_alias@,$target_alias,;t t | |
6903 | s,@DEFS@,$DEFS,;t t | |
6904 | s,@ECHO_C@,$ECHO_C,;t t | |
6905 | s,@ECHO_N@,$ECHO_N,;t t | |
6906 | s,@ECHO_T@,$ECHO_T,;t t | |
6907 | s,@LIBS@,$LIBS,;t t | |
6908 | s,@build@,$build,;t t | |
6909 | s,@build_cpu@,$build_cpu,;t t | |
6910 | s,@build_vendor@,$build_vendor,;t t | |
6911 | s,@build_os@,$build_os,;t t | |
6912 | s,@host@,$host,;t t | |
6913 | s,@host_cpu@,$host_cpu,;t t | |
6914 | s,@host_vendor@,$host_vendor,;t t | |
6915 | s,@host_os@,$host_os,;t t | |
6916 | s,@target@,$target,;t t | |
6917 | s,@target_cpu@,$target_cpu,;t t | |
6918 | s,@target_vendor@,$target_vendor,;t t | |
6919 | s,@target_os@,$target_os,;t t | |
6920 | s,@CC@,$CC,;t t | |
6921 | s,@CFLAGS@,$CFLAGS,;t t | |
6922 | s,@LDFLAGS@,$LDFLAGS,;t t | |
6923 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
6924 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
6925 | s,@EXEEXT@,$EXEEXT,;t t | |
6926 | s,@OBJEXT@,$OBJEXT,;t t | |
6927 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
6928 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
6929 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
6930 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
6931 | s,@PACKAGE@,$PACKAGE,;t t | |
6932 | s,@VERSION@,$VERSION,;t t | |
6933 | s,@ACLOCAL@,$ACLOCAL,;t t | |
6934 | s,@AUTOCONF@,$AUTOCONF,;t t | |
6935 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
6936 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
6937 | s,@MAKEINFO@,$MAKEINFO,;t t | |
6bf9431b BE |
6938 | s,@install_sh@,$install_sh,;t t |
6939 | s,@STRIP@,$STRIP,;t t | |
6940 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
6941 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
6942 | s,@mkdir_p@,$mkdir_p,;t t | |
6943 | s,@AWK@,$AWK,;t t | |
6944 | s,@SET_MAKE@,$SET_MAKE,;t t | |
6945 | s,@am__leading_dot@,$am__leading_dot,;t t | |
df76639a AM |
6946 | s,@AMTAR@,$AMTAR,;t t |
6947 | s,@am__tar@,$am__tar,;t t | |
6948 | s,@am__untar@,$am__untar,;t t | |
6bf9431b BE |
6949 | s,@DEPDIR@,$DEPDIR,;t t |
6950 | s,@am__include@,$am__include,;t t | |
6951 | s,@am__quote@,$am__quote,;t t | |
6952 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
6953 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
6954 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
6955 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
6956 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
6957 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
6958 | s,@LN_S@,$LN_S,;t t | |
6959 | s,@RANLIB@,$RANLIB,;t t | |
6960 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
6961 | s,@LIBTOOL@,$LIBTOOL,;t t | |
6bf9431b | 6962 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
6963 | s,@LIBINTL@,$LIBINTL,;t t |
6964 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
6965 | s,@INCINTL@,$INCINTL,;t t | |
6bf9431b | 6966 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
6967 | s,@GMSGFMT@,$GMSGFMT,;t t |
6968 | s,@POSUB@,$POSUB,;t t | |
6bf9431b | 6969 | s,@CATALOGS@,$CATALOGS,;t t |
6bf9431b | 6970 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
6bf9431b | 6971 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
6972 | s,@GENCAT@,$GENCAT,;t t |
6973 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
6bf9431b | 6974 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
6975 | s,@MSGFMT@,$MSGFMT,;t t |
6976 | s,@MSGMERGE@,$MSGMERGE,;t t | |
6bf9431b BE |
6977 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
6978 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
6979 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
6980 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
6981 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
20e95c23 DJ |
6982 | s,@CPP@,$CPP,;t t |
6983 | s,@EGREP@,$EGREP,;t t | |
6bf9431b | 6984 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
9e9b66a9 | 6985 | s,@NO_WERROR@,$NO_WERROR,;t t |
108a6f8e CD |
6986 | s,@datarootdir@,$datarootdir,;t t |
6987 | s,@docdir@,$docdir,;t t | |
6988 | s,@htmldir@,$htmldir,;t t | |
6bf9431b BE |
6989 | s,@LIBOBJS@,$LIBOBJS,;t t |
6990 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 6991 | CEOF |
252b5132 | 6992 | |
6bf9431b BE |
6993 | _ACEOF |
6994 | ||
6995 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6996 | # Split the substitutions into bite-sized pieces for seds with | |
6997 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6998 | ac_max_sed_lines=48 | |
6999 | ac_sed_frag=1 # Number of current file. | |
7000 | ac_beg=1 # First line for current file. | |
7001 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7002 | ac_more_lines=: | |
7003 | ac_sed_cmds= | |
7004 | while $ac_more_lines; do | |
7005 | if test $ac_beg -gt 1; then | |
7006 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 7007 | else |
6bf9431b | 7008 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
252b5132 | 7009 | fi |
6bf9431b BE |
7010 | if test ! -s $tmp/subs.frag; then |
7011 | ac_more_lines=false | |
7012 | else | |
7013 | # The purpose of the label and of the branching condition is to | |
7014 | # speed up the sed processing (if there are no `@' at all, there | |
7015 | # is no need to browse any of the substitutions). | |
7016 | # These are the two extra sed commands mentioned above. | |
7017 | (echo ':t | |
7018 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7019 | if test -z "$ac_sed_cmds"; then | |
7020 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7021 | else | |
7022 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7023 | fi | |
7024 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7025 | ac_beg=$ac_end | |
7026 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
7027 | fi | |
7028 | done | |
7029 | if test -z "$ac_sed_cmds"; then | |
7030 | ac_sed_cmds=cat | |
252b5132 | 7031 | fi |
6bf9431b | 7032 | fi # test -n "$CONFIG_FILES" |
252b5132 | 7033 | |
6bf9431b BE |
7034 | _ACEOF |
7035 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7036 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 7037 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6bf9431b BE |
7038 | case $ac_file in |
7039 | - | *:- | *:-:* ) # input from stdin | |
7040 | cat >$tmp/stdin | |
7041 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7042 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7043 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7044 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7045 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
7046 | esac |
7047 | ||
6bf9431b BE |
7048 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7049 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7050 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7051 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7052 | X"$ac_file" : 'X\(//\)$' \| \ | |
7053 | X"$ac_file" : 'X\(/\)' \| \ | |
7054 | . : '\(.\)' 2>/dev/null || | |
7055 | echo X"$ac_file" | | |
7056 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7057 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7058 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7059 | /^X\(\/\).*/{ s//\1/; q; } | |
7060 | s/.*/./; q'` | |
7061 | { if $as_mkdir_p; then | |
7062 | mkdir -p "$ac_dir" | |
252b5132 | 7063 | else |
6bf9431b BE |
7064 | as_dir="$ac_dir" |
7065 | as_dirs= | |
7066 | while test ! -d "$as_dir"; do | |
7067 | as_dirs="$as_dir $as_dirs" | |
7068 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7069 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7070 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7071 | X"$as_dir" : 'X\(//\)$' \| \ | |
7072 | X"$as_dir" : 'X\(/\)' \| \ | |
7073 | . : '\(.\)' 2>/dev/null || | |
7074 | echo X"$as_dir" | | |
7075 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7076 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7077 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7078 | /^X\(\/\).*/{ s//\1/; q; } | |
7079 | s/.*/./; q'` | |
7080 | done | |
7081 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7082 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7083 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7084 | { (exit 1); exit 1; }; }; } | |
7085 | ||
7086 | ac_builddir=. | |
7087 | ||
7088 | if test "$ac_dir" != .; then | |
7089 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7090 | # A "../" for each directory in $ac_dir_suffix. | |
7091 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7092 | else | |
7093 | ac_dir_suffix= ac_top_builddir= | |
7094 | fi | |
252b5132 | 7095 | |
6bf9431b BE |
7096 | case $srcdir in |
7097 | .) # No --srcdir option. We are building in place. | |
7098 | ac_srcdir=. | |
7099 | if test -z "$ac_top_builddir"; then | |
7100 | ac_top_srcdir=. | |
7101 | else | |
7102 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7103 | fi ;; | |
7104 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7105 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7106 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 7107 | *) # Relative path. |
6bf9431b BE |
7108 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
7109 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7110 | esac | |
252b5132 | 7111 | |
6bf9431b BE |
7112 | # Do not use `cd foo && pwd` to compute absolute paths, because |
7113 | # the directories may not exist. | |
7114 | case `pwd` in | |
7115 | .) ac_abs_builddir="$ac_dir";; | |
7116 | *) | |
7117 | case "$ac_dir" in | |
7118 | .) ac_abs_builddir=`pwd`;; | |
7119 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7120 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7121 | esac;; | |
7122 | esac | |
7123 | case $ac_abs_builddir in | |
7124 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7125 | *) | |
7126 | case ${ac_top_builddir}. in | |
7127 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7128 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7129 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7130 | esac;; | |
7131 | esac | |
7132 | case $ac_abs_builddir in | |
7133 | .) ac_abs_srcdir=$ac_srcdir;; | |
7134 | *) | |
7135 | case $ac_srcdir in | |
7136 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7137 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7138 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7139 | esac;; | |
7140 | esac | |
7141 | case $ac_abs_builddir in | |
7142 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7143 | *) | |
7144 | case $ac_top_srcdir in | |
7145 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7146 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7147 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7148 | esac;; | |
7149 | esac | |
252b5132 | 7150 | |
6bf9431b BE |
7151 | |
7152 | case $INSTALL in | |
7153 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7154 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
252b5132 RH |
7155 | esac |
7156 | ||
df76639a AM |
7157 | if test x"$ac_file" != x-; then |
7158 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7159 | echo "$as_me: creating $ac_file" >&6;} | |
7160 | rm -f "$ac_file" | |
7161 | fi | |
6bf9431b BE |
7162 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
7163 | # use $as_me), people would be surprised to read: | |
7164 | # /* config.h. Generated by config.status. */ | |
7165 | if test x"$ac_file" = x-; then | |
7166 | configure_input= | |
7167 | else | |
7168 | configure_input="$ac_file. " | |
7169 | fi | |
7170 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7171 | sed 's,.*/,,'` by configure." | |
7172 | ||
7173 | # First look for the input files in the build tree, otherwise in the | |
7174 | # src tree. | |
7175 | ac_file_inputs=`IFS=: | |
7176 | for f in $ac_file_in; do | |
7177 | case $f in | |
7178 | -) echo $tmp/stdin ;; | |
7179 | [\\/$]*) | |
7180 | # Absolute (can't be DOS-style, as IFS=:) | |
7181 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7182 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7183 | { (exit 1); exit 1; }; } | |
7184 | echo "$f";; | |
7185 | *) # Relative | |
7186 | if test -f "$f"; then | |
7187 | # Build tree | |
7188 | echo "$f" | |
7189 | elif test -f "$srcdir/$f"; then | |
7190 | # Source tree | |
7191 | echo "$srcdir/$f" | |
7192 | else | |
7193 | # /dev/null tree | |
7194 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7195 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7196 | { (exit 1); exit 1; }; } | |
7197 | fi;; | |
7198 | esac | |
7199 | done` || { (exit 1); exit 1; } | |
6bf9431b BE |
7200 | _ACEOF |
7201 | cat >>$CONFIG_STATUS <<_ACEOF | |
7202 | sed "$ac_vpsub | |
7203 | $extrasub | |
7204 | _ACEOF | |
7205 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7206 | :t | |
7207 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7208 | s,@configure_input@,$configure_input,;t t | |
7209 | s,@srcdir@,$ac_srcdir,;t t | |
7210 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7211 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7212 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7213 | s,@builddir@,$ac_builddir,;t t | |
7214 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7215 | s,@top_builddir@,$ac_top_builddir,;t t | |
7216 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7217 | s,@INSTALL@,$ac_INSTALL,;t t | |
7218 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7219 | rm -f $tmp/stdin | |
7220 | if test x"$ac_file" != x-; then | |
7221 | mv $tmp/out $ac_file | |
7222 | else | |
7223 | cat $tmp/out | |
7224 | rm -f $tmp/out | |
7225 | fi | |
7226 | ||
7227 | done | |
7228 | _ACEOF | |
7229 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7230 | ||
7231 | # | |
7232 | # CONFIG_HEADER section. | |
7233 | # | |
252b5132 RH |
7234 | |
7235 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7236 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7237 | # | |
7238 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6bf9431b BE |
7239 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7240 | ac_dB='[ ].*$,\1#\2' | |
7241 | ac_dC=' ' | |
7242 | ac_dD=',;t' | |
7243 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7244 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7245 | ac_uB='$,\1#\2define\3' | |
252b5132 | 7246 | ac_uC=' ' |
6bf9431b BE |
7247 | ac_uD=',;t' |
7248 | ||
7249 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 7250 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6bf9431b BE |
7251 | case $ac_file in |
7252 | - | *:- | *:-:* ) # input from stdin | |
7253 | cat >$tmp/stdin | |
7254 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7255 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7256 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7257 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7258 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
7259 | esac |
7260 | ||
6bf9431b BE |
7261 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
7262 | echo "$as_me: creating $ac_file" >&6;} | |
7263 | ||
7264 | # First look for the input files in the build tree, otherwise in the | |
7265 | # src tree. | |
7266 | ac_file_inputs=`IFS=: | |
7267 | for f in $ac_file_in; do | |
7268 | case $f in | |
7269 | -) echo $tmp/stdin ;; | |
7270 | [\\/$]*) | |
7271 | # Absolute (can't be DOS-style, as IFS=:) | |
7272 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7273 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7274 | { (exit 1); exit 1; }; } | |
7275 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
7276 | echo "$f";; | |
7277 | *) # Relative | |
7278 | if test -f "$f"; then | |
7279 | # Build tree | |
7280 | echo "$f" | |
7281 | elif test -f "$srcdir/$f"; then | |
7282 | # Source tree | |
7283 | echo "$srcdir/$f" | |
7284 | else | |
7285 | # /dev/null tree | |
7286 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7287 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7288 | { (exit 1); exit 1; }; } | |
7289 | fi;; | |
7290 | esac | |
7291 | done` || { (exit 1); exit 1; } | |
7292 | # Remove the trailing spaces. | |
7293 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7294 | ||
7295 | _ACEOF | |
7296 | ||
7297 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7298 | # `conftest.undefs', that substitutes the proper values into | |
7299 | # config.h.in to produce config.h. The first handles `#define' | |
7300 | # templates, and the second `#undef' templates. | |
7301 | # And first: Protect against being on the right side of a sed subst in | |
7302 | # config.status. Protect against being in an unquoted here document | |
7303 | # in config.status. | |
7304 | rm -f conftest.defines conftest.undefs | |
7305 | # Using a here document instead of a string reduces the quoting nightmare. | |
7306 | # Putting comments in sed scripts is not portable. | |
7307 | # | |
7308 | # `end' is used to avoid that the second main sed command (meant for | |
7309 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7310 | # See the Autoconf documentation for `clear'. | |
7311 | cat >confdef2sed.sed <<\_ACEOF | |
7312 | s/[\\&,]/\\&/g | |
7313 | s,[\\$`],\\&,g | |
7314 | t clear | |
7315 | : clear | |
7316 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
7317 | t end | |
7318 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7319 | : end | |
7320 | _ACEOF | |
7321 | # If some macros were called several times there might be several times | |
7322 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7323 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7324 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7325 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7326 | rm -f confdef2sed.sed | |
252b5132 RH |
7327 | |
7328 | # This sed command replaces #undef with comments. This is necessary, for | |
7329 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7330 | # on some systems where configure will not decide to define it. | |
6bf9431b BE |
7331 | cat >>conftest.undefs <<\_ACEOF |
7332 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
7333 | _ACEOF | |
7334 | ||
7335 | # Break up conftest.defines because some shells have a limit on the size | |
7336 | # of here documents, and old seds have small limits too (100 cmds). | |
7337 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7338 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7339 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7340 | echo ' :' >>$CONFIG_STATUS | |
7341 | rm -f conftest.tail | |
7342 | while grep . conftest.defines >/dev/null | |
7343 | do | |
7344 | # Write a limited-size here document to $tmp/defines.sed. | |
7345 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7346 | # Speed up: don't consider the non `#define' lines. | |
7347 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7348 | # Work around the forget-to-reset-the-flag bug. | |
7349 | echo 't clr' >>$CONFIG_STATUS | |
7350 | echo ': clr' >>$CONFIG_STATUS | |
7351 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7352 | echo 'CEOF | |
7353 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7354 | rm -f $tmp/in | |
7355 | mv $tmp/out $tmp/in | |
7356 | ' >>$CONFIG_STATUS | |
7357 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7358 | rm -f conftest.defines | |
7359 | mv conftest.tail conftest.defines | |
7360 | done | |
7361 | rm -f conftest.defines | |
7362 | echo ' fi # grep' >>$CONFIG_STATUS | |
7363 | echo >>$CONFIG_STATUS | |
252b5132 | 7364 | |
6bf9431b BE |
7365 | # Break up conftest.undefs because some shells have a limit on the size |
7366 | # of here documents, and old seds have small limits too (100 cmds). | |
7367 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 7368 | rm -f conftest.tail |
6bf9431b | 7369 | while grep . conftest.undefs >/dev/null |
252b5132 | 7370 | do |
6bf9431b BE |
7371 | # Write a limited-size here document to $tmp/undefs.sed. |
7372 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7373 | # Speed up: don't consider the non `#undef' | |
7374 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7375 | # Work around the forget-to-reset-the-flag bug. | |
7376 | echo 't clr' >>$CONFIG_STATUS | |
7377 | echo ': clr' >>$CONFIG_STATUS | |
7378 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 7379 | echo 'CEOF |
6bf9431b BE |
7380 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
7381 | rm -f $tmp/in | |
7382 | mv $tmp/out $tmp/in | |
7383 | ' >>$CONFIG_STATUS | |
7384 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7385 | rm -f conftest.undefs | |
7386 | mv conftest.tail conftest.undefs | |
252b5132 | 7387 | done |
6bf9431b BE |
7388 | rm -f conftest.undefs |
7389 | ||
7390 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7391 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7392 | # use $as_me), people would be surprised to read: | |
7393 | # /* config.h. Generated by config.status. */ | |
7394 | if test x"$ac_file" = x-; then | |
7395 | echo "/* Generated by configure. */" >$tmp/config.h | |
7396 | else | |
7397 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
7398 | fi | |
7399 | cat $tmp/in >>$tmp/config.h | |
7400 | rm -f $tmp/in | |
7401 | if test x"$ac_file" != x-; then | |
7402 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
7403 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
7404 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7405 | else | |
7406 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7407 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7408 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7409 | X"$ac_file" : 'X\(//\)$' \| \ | |
7410 | X"$ac_file" : 'X\(/\)' \| \ | |
7411 | . : '\(.\)' 2>/dev/null || | |
7412 | echo X"$ac_file" | | |
7413 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7414 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7415 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7416 | /^X\(\/\).*/{ s//\1/; q; } | |
7417 | s/.*/./; q'` | |
7418 | { if $as_mkdir_p; then | |
7419 | mkdir -p "$ac_dir" | |
252b5132 | 7420 | else |
6bf9431b BE |
7421 | as_dir="$ac_dir" |
7422 | as_dirs= | |
7423 | while test ! -d "$as_dir"; do | |
7424 | as_dirs="$as_dir $as_dirs" | |
7425 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7426 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7427 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7428 | X"$as_dir" : 'X\(//\)$' \| \ | |
7429 | X"$as_dir" : 'X\(/\)' \| \ | |
7430 | . : '\(.\)' 2>/dev/null || | |
7431 | echo X"$as_dir" | | |
7432 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7433 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7434 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7435 | /^X\(\/\).*/{ s//\1/; q; } | |
7436 | s/.*/./; q'` | |
7437 | done | |
7438 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7439 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7440 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7441 | { (exit 1); exit 1; }; }; } | |
7442 | ||
7443 | rm -f $ac_file | |
7444 | mv $tmp/config.h $ac_file | |
252b5132 | 7445 | fi |
6bf9431b BE |
7446 | else |
7447 | cat $tmp/config.h | |
7448 | rm -f $tmp/config.h | |
252b5132 | 7449 | fi |
6bf9431b BE |
7450 | # Compute $ac_file's index in $config_headers. |
7451 | _am_stamp_count=1 | |
7452 | for _am_header in $config_headers :; do | |
7453 | case $_am_header in | |
7454 | $ac_file | $ac_file:* ) | |
7455 | break ;; | |
7456 | * ) | |
7457 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
7458 | esac | |
7459 | done | |
7460 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
7461 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7462 | X$ac_file : 'X\(//\)[^/]' \| \ | |
7463 | X$ac_file : 'X\(//\)$' \| \ | |
7464 | X$ac_file : 'X\(/\)' \| \ | |
7465 | . : '\(.\)' 2>/dev/null || | |
7466 | echo X$ac_file | | |
7467 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7468 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7469 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7470 | /^X\(\/\).*/{ s//\1/; q; } | |
7471 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
7472 | done | |
7473 | _ACEOF | |
7474 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 7475 | |
6bf9431b BE |
7476 | # |
7477 | # CONFIG_COMMANDS section. | |
7478 | # | |
7479 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
7480 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7481 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7482 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
7483 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7484 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
7485 | X"$ac_dest" : 'X\(//\)$' \| \ | |
7486 | X"$ac_dest" : 'X\(/\)' \| \ | |
7487 | . : '\(.\)' 2>/dev/null || | |
7488 | echo X"$ac_dest" | | |
7489 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7490 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7491 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7492 | /^X\(\/\).*/{ s//\1/; q; } | |
7493 | s/.*/./; q'` | |
7494 | { if $as_mkdir_p; then | |
7495 | mkdir -p "$ac_dir" | |
7496 | else | |
7497 | as_dir="$ac_dir" | |
7498 | as_dirs= | |
7499 | while test ! -d "$as_dir"; do | |
7500 | as_dirs="$as_dir $as_dirs" | |
7501 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7502 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7503 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7504 | X"$as_dir" : 'X\(//\)$' \| \ | |
7505 | X"$as_dir" : 'X\(/\)' \| \ | |
7506 | . : '\(.\)' 2>/dev/null || | |
7507 | echo X"$as_dir" | | |
7508 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7509 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7510 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7511 | /^X\(\/\).*/{ s//\1/; q; } | |
7512 | s/.*/./; q'` | |
7513 | done | |
7514 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7515 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7516 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7517 | { (exit 1); exit 1; }; }; } | |
252b5132 | 7518 | |
6bf9431b | 7519 | ac_builddir=. |
252b5132 | 7520 | |
6bf9431b BE |
7521 | if test "$ac_dir" != .; then |
7522 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7523 | # A "../" for each directory in $ac_dir_suffix. | |
7524 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7525 | else | |
7526 | ac_dir_suffix= ac_top_builddir= | |
7527 | fi | |
7528 | ||
7529 | case $srcdir in | |
7530 | .) # No --srcdir option. We are building in place. | |
7531 | ac_srcdir=. | |
7532 | if test -z "$ac_top_builddir"; then | |
7533 | ac_top_srcdir=. | |
7534 | else | |
7535 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7536 | fi ;; | |
7537 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7538 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7539 | ac_top_srcdir=$srcdir ;; | |
7540 | *) # Relative path. | |
7541 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7542 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7543 | esac | |
7544 | ||
7545 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7546 | # the directories may not exist. | |
7547 | case `pwd` in | |
7548 | .) ac_abs_builddir="$ac_dir";; | |
7549 | *) | |
7550 | case "$ac_dir" in | |
7551 | .) ac_abs_builddir=`pwd`;; | |
7552 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7553 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7554 | esac;; | |
7555 | esac | |
7556 | case $ac_abs_builddir in | |
7557 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7558 | *) | |
7559 | case ${ac_top_builddir}. in | |
7560 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7561 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7562 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7563 | esac;; | |
7564 | esac | |
7565 | case $ac_abs_builddir in | |
7566 | .) ac_abs_srcdir=$ac_srcdir;; | |
7567 | *) | |
7568 | case $ac_srcdir in | |
7569 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7570 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7571 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7572 | esac;; | |
7573 | esac | |
7574 | case $ac_abs_builddir in | |
7575 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7576 | *) | |
7577 | case $ac_top_srcdir in | |
7578 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7579 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7580 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7581 | esac;; | |
7582 | esac | |
7583 | ||
7584 | ||
7585 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
7586 | echo "$as_me: executing $ac_dest commands" >&6;} | |
7587 | case $ac_dest in | |
7588 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
7589 | # Strip MF so we end up with the name of the file. | |
7590 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
7591 | # Check whether this is an Automake generated Makefile or not. | |
7592 | # We used to match only the files named `Makefile.in', but | |
7593 | # some people rename them; so instead we look at the file content. | |
7594 | # Grep'ing the first line is not enough: some people post-process | |
7595 | # each Makefile.in and add a new line on top of each file to say so. | |
7596 | # So let's grep whole file. | |
7597 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
7598 | dirpart=`(dirname "$mf") 2>/dev/null || | |
7599 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7600 | X"$mf" : 'X\(//\)[^/]' \| \ | |
7601 | X"$mf" : 'X\(//\)$' \| \ | |
7602 | X"$mf" : 'X\(/\)' \| \ | |
7603 | . : '\(.\)' 2>/dev/null || | |
7604 | echo X"$mf" | | |
7605 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7606 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7607 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7608 | /^X\(\/\).*/{ s//\1/; q; } | |
7609 | s/.*/./; q'` | |
7610 | else | |
7611 | continue | |
7612 | fi | |
df76639a AM |
7613 | # Extract the definition of DEPDIR, am__include, and am__quote |
7614 | # from the Makefile without running `make'. | |
6bf9431b BE |
7615 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
7616 | test -z "$DEPDIR" && continue | |
df76639a AM |
7617 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
7618 | test -z "am__include" && continue | |
7619 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
6bf9431b BE |
7620 | # When using ansi2knr, U may be empty or an underscore; expand it |
7621 | U=`sed -n 's/^U = //p' < "$mf"` | |
df76639a AM |
7622 | # Find all dependency output files, they are included files with |
7623 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
7624 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
7625 | # expansion. | |
7626 | for file in `sed -n " | |
7627 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
6bf9431b BE |
7628 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
7629 | # Make sure the directory exists. | |
7630 | test -f "$dirpart/$file" && continue | |
7631 | fdir=`(dirname "$file") 2>/dev/null || | |
7632 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7633 | X"$file" : 'X\(//\)[^/]' \| \ | |
7634 | X"$file" : 'X\(//\)$' \| \ | |
7635 | X"$file" : 'X\(/\)' \| \ | |
7636 | . : '\(.\)' 2>/dev/null || | |
7637 | echo X"$file" | | |
7638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7639 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7640 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7641 | /^X\(\/\).*/{ s//\1/; q; } | |
7642 | s/.*/./; q'` | |
7643 | { if $as_mkdir_p; then | |
7644 | mkdir -p $dirpart/$fdir | |
7645 | else | |
7646 | as_dir=$dirpart/$fdir | |
7647 | as_dirs= | |
7648 | while test ! -d "$as_dir"; do | |
7649 | as_dirs="$as_dir $as_dirs" | |
7650 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7651 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7652 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7653 | X"$as_dir" : 'X\(//\)$' \| \ | |
7654 | X"$as_dir" : 'X\(/\)' \| \ | |
7655 | . : '\(.\)' 2>/dev/null || | |
7656 | echo X"$as_dir" | | |
7657 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7658 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7659 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7660 | /^X\(\/\).*/{ s//\1/; q; } | |
7661 | s/.*/./; q'` | |
7662 | done | |
7663 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7664 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
7665 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
7666 | { (exit 1); exit 1; }; }; } | |
7667 | ||
7668 | # echo "creating $dirpart/$file" | |
7669 | echo '# dummy' > "$dirpart/$file" | |
7670 | done | |
7671 | done | |
7672 | ;; | |
20e95c23 DJ |
7673 | default-1 ) |
7674 | for ac_file in $CONFIG_FILES; do | |
7675 | # Support "outfile[:infile[:infile...]]" | |
7676 | case "$ac_file" in | |
7677 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
7678 | esac | |
7679 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
7680 | case "$ac_file" in */Makefile.in) | |
7681 | # Adjust a relative srcdir. | |
7682 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
7683 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
7684 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
7685 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
7686 | # In autoconf-2.50 it is called $srcdir. | |
7687 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
7688 | case "$ac_given_srcdir" in | |
7689 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
7690 | /*) top_srcdir="$ac_given_srcdir" ;; | |
7691 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
7692 | esac | |
7693 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
7694 | rm -f "$ac_dir/POTFILES" | |
7695 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
7696 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
7697 | POMAKEFILEDEPS="POTFILES.in" | |
7698 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
7699 | # on $ac_dir but don't depend on user-specified configuration | |
7700 | # parameters. | |
7701 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
7702 | # The LINGUAS file contains the set of available languages. | |
7703 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
7704 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
7705 | fi | |
7706 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
7707 | # Hide the ALL_LINGUAS assigment from automake. | |
7708 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
7709 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
7710 | else | |
7711 | # The set of available languages was given in configure.in. | |
7712 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
7713 | fi | |
7714 | case "$ac_given_srcdir" in | |
7715 | .) srcdirpre= ;; | |
7716 | *) srcdirpre='$(srcdir)/' ;; | |
7717 | esac | |
7718 | POFILES= | |
7719 | GMOFILES= | |
7720 | UPDATEPOFILES= | |
7721 | DUMMYPOFILES= | |
7722 | for lang in $ALL_LINGUAS; do | |
7723 | POFILES="$POFILES $srcdirpre$lang.po" | |
7724 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
7725 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
7726 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
7727 | done | |
7728 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
7729 | # environment variable. | |
7730 | INST_LINGUAS= | |
7731 | if test -n "$ALL_LINGUAS"; then | |
7732 | for presentlang in $ALL_LINGUAS; do | |
7733 | useit=no | |
7734 | if test "%UNSET%" != "$LINGUAS"; then | |
7735 | desiredlanguages="$LINGUAS" | |
7736 | else | |
7737 | desiredlanguages="$ALL_LINGUAS" | |
7738 | fi | |
7739 | for desiredlang in $desiredlanguages; do | |
7740 | # Use the presentlang catalog if desiredlang is | |
7741 | # a. equal to presentlang, or | |
7742 | # b. a variant of presentlang (because in this case, | |
7743 | # presentlang can be used as a fallback for messages | |
7744 | # which are not translated in the desiredlang catalog). | |
7745 | case "$desiredlang" in | |
7746 | "$presentlang"*) useit=yes;; | |
7747 | esac | |
7748 | done | |
7749 | if test $useit = yes; then | |
7750 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
7751 | fi | |
7752 | done | |
7753 | fi | |
7754 | CATALOGS= | |
7755 | if test -n "$INST_LINGUAS"; then | |
7756 | for lang in $INST_LINGUAS; do | |
7757 | CATALOGS="$CATALOGS $lang.gmo" | |
7758 | done | |
7759 | fi | |
7760 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
7761 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
7762 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
7763 | if test -f "$f"; then | |
7764 | case "$f" in | |
7765 | *.orig | *.bak | *~) ;; | |
7766 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
7767 | esac | |
7768 | fi | |
7769 | done | |
7770 | fi | |
7771 | ;; | |
7772 | esac | |
7773 | done ;; | |
6bf9431b BE |
7774 | esac |
7775 | done | |
7776 | _ACEOF | |
7777 | ||
7778 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7779 | ||
7780 | { (exit 0); exit 0; } | |
7781 | _ACEOF | |
252b5132 | 7782 | chmod +x $CONFIG_STATUS |
6bf9431b BE |
7783 | ac_clean_files=$ac_clean_files_save |
7784 | ||
7785 | ||
7786 | # configure is writing to config.log, and then calls config.status. | |
7787 | # config.status does its own redirection, appending to config.log. | |
7788 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7789 | # by configure, so config.status won't be able to write to it; its | |
7790 | # output is simply discarded. So we exec the FD to /dev/null, | |
7791 | # effectively closing config.log, so it can be properly (re)opened and | |
7792 | # appended to by config.status. When coming back to configure, we | |
7793 | # need to make the FD available again. | |
7794 | if test "$no_create" != yes; then | |
7795 | ac_cs_success=: | |
7796 | ac_config_status_args= | |
7797 | test "$silent" = yes && | |
7798 | ac_config_status_args="$ac_config_status_args --quiet" | |
7799 | exec 5>/dev/null | |
7800 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7801 | exec 5>>config.log | |
7802 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7803 | # would make configure fail if this is the last instruction. | |
7804 | $ac_cs_success || { (exit 1); exit 1; } | |
7805 | fi | |
252b5132 | 7806 |