Add Irish translation for ld and Malay translation for gprof
[deliverable/binutils-gdb.git] / gprof / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
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`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
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
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 CPP EGREP WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
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=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
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.
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
353 ac_prev=
354 for ac_option
355 do
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
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" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
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"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
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 ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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=*)
464 libexecdir=$ac_optarg ;;
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=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
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 \
485 | --no-cr | --no-c | -n)
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=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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=*)
511 program_prefix=$ac_optarg ;;
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=*)
518 program_suffix=$ac_optarg ;;
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=*)
535 program_transform_name=$ac_optarg ;;
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=*)
545 sbindir=$ac_optarg ;;
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=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
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; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
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" ;;
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=*)
617 x_includes=$ac_optarg ;;
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=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
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
641 *)
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}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
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; }; }
656 fi
657
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
668
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
672 do
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; }; };;
678 esac
679 done
680
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
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
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.
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'`
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
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
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
773
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.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
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.
787
788 Defaults for the options are specified in brackets.
789
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]
809
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'.
814
815 For better control, use the options below.
816
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
831
832 cat <<\_ACEOF
833
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
838
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
844 fi
845
846 if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
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
862 --enable-werror treat compile warnings as errors
863 --enable-build-warnings enable build-time compiler warnings
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
870
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
879
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
884 fi
885
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=.
892
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,/$,,'`
908 fi ;;
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 ;;
915 esac
916
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;;
927 esac
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;;
954 esac
955
956 cd $ac_dir
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
959 echo
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
962 echo
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
966 echo
967 $ac_configure --help
968 else
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 fi
971 cd $ac_popdir
972 done
973 fi
974
975 test -n "$ac_init_help" && exit 0
976 if $ac_init_version; then
977 cat <<\_ACEOF
978
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.
989
990 It was created by $as_me, which was
991 generated by GNU Autoconf 2.59. Invocation command line was
992
993 $ $0 $@
994
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
1028
1029 } >&5
1030
1031 cat >&5 <<_ACEOF
1032
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); } &&
1995 { ac_try='test -z "$ac_c_werror_flag"
1996 || test ! -s conftest.err'
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); } &&
2054 { ac_try='test -z "$ac_c_werror_flag"
2055 || test ! -s conftest.err'
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); } &&
2171 { ac_try='test -z "$ac_c_werror_flag"
2172 || test ! -s conftest.err'
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); } &&
2226 { ac_try='test -z "$ac_c_werror_flag"
2227 || test ! -s conftest.err'
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); } &&
2272 { ac_try='test -z "$ac_c_werror_flag"
2273 || test ! -s conftest.err'
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); } &&
2317 { ac_try='test -z "$ac_c_werror_flag"
2318 || test ! -s conftest.err'
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); } &&
2396 { ac_try='test -z "$ac_c_werror_flag"
2397 || test ! -s conftest.err'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest$ac_exeext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 ac_cv_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); } &&
2451 { ac_try='test -z "$ac_c_werror_flag"
2452 || test ! -s conftest.err'
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`
2486 am__api_version="1.9"
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 :
2532 else
2533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2534 break 3
2535 fi
2536 fi
2537 done
2538 done
2539 ;;
2540 esac
2541 done
2542
2543
2544 fi
2545 if test "${ac_cv_path_install+set}" = set; then
2546 INSTALL=$ac_cv_path_install
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.
2552 INSTALL=$ac_install_sh
2553 fi
2554 fi
2555 echo "$as_me:$LINENO: result: $INSTALL" >&5
2556 echo "${ECHO_T}$INSTALL" >&6
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
2562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2563
2564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2565
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
2568 # Just in case
2569 sleep 1
2570 echo timestamp > conftest.file
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 (
2577 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2578 if test "$*" = "X"; then
2579 # -L didn't work.
2580 set X `ls -t $srcdir/configure conftest.file`
2581 fi
2582 rm -f conftest.file
2583 if test "$*" != "X $srcdir/configure conftest.file" \
2584 && test "$*" != "X conftest.file $srcdir/configure"; then
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".
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; }; }
2595 fi
2596
2597 test "$2" = conftest.file
2598 )
2599 then
2600 # Ok.
2601 :
2602 else
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; }; }
2608 fi
2609 echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611 test "$program_prefix" != NONE &&
2612 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2613 # Use a double $ so make ignores it.
2614 test "$program_suffix" != NONE &&
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
2638 # We used to keeping the `.' as first argument, in order to
2639 # allow $(mkdir_p) to be used without argument. As in
2640 # $(mkdir_p) $(somedir)
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 --'
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
2669
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
2709
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
2715 else
2716 cat >conftest.make <<\_ACEOF
2717 all:
2718 @echo 'ac_maketemp="$(MAKE)"'
2719 _ACEOF
2720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2721 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
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
2727 rm -f conftest.make
2728 fi
2729 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2730 echo "$as_me:$LINENO: result: yes" >&5
2731 echo "${ECHO_T}yes" >&6
2732 SET_MAKE=
2733 else
2734 echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2736 SET_MAKE="MAKE=${MAKE-make}"
2737 fi
2738
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
2787
2788 echo "$as_me:$LINENO: result: $_am_result" >&5
2789 echo "${ECHO_T}$_am_result" >&6
2790 rm -f confinc confmf
2791
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"
2795
2796 fi;
2797 if test "x$enable_dependency_tracking" != xno; then
2798 am_depcomp="$ac_aux_dir/depcomp"
2799 AMDEPBACKSLASH='\'
2800 fi
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
2837 #define PACKAGE "$PACKAGE"
2838 _ACEOF
2839
2840
2841 cat >>confdefs.h <<_ACEOF
2842 #define VERSION "$VERSION"
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
2861 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2862
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
2903
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
2930
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
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2941 fi
2942
2943 STRIP=$ac_ct_STRIP
2944 else
2945 STRIP="$ac_cv_prog_STRIP"
2946 fi
2947
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.
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
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
3049 else
3050 am_cv_CC_dependencies_compiler_type=none
3051 fi
3052
3053 fi
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
3058
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='#'
3065 else
3066 am__fastdepCC_TRUE='#'
3067 am__fastdepCC_FALSE=
3068 fi
3069
3070
3071
3072
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}
3077 case $enableval in
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
3094 fi;
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}
3099 case $enableval in
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
3116 fi;
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}
3121 case $enableval in
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
3138 fi;
3139
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
3146 fi;
3147 ac_prog=ld
3148 if test "$GCC" = yes; then
3149 # Check if gcc -print-prog-name=ld gives a path.
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
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
3159 case $ac_prog in
3160 # Accept absolute paths.
3161 [\\/]* | [A-Za-z]:[\\/]*)
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
3180 echo "$as_me:$LINENO: checking for GNU ld" >&5
3181 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3182 else
3183 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3184 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3185 fi
3186 if test "${lt_cv_path_LD+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 if test -z "$LD"; then
3190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3191 for ac_dir in $PATH; do
3192 test -z "$ac_dir" && ac_dir=.
3193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3194 lt_cv_path_LD="$ac_dir/$ac_prog"
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.
3198 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
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
3207 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3208 fi
3209 fi
3210
3211 LD="$lt_cv_path_LD"
3212 if test -n "$LD"; then
3213 echo "$as_me:$LINENO: result: $LD" >&5
3214 echo "${ECHO_T}$LD" >&6
3215 else
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3218 fi
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
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
3229 lt_cv_prog_gnu_ld=yes
3230 else
3231 lt_cv_prog_gnu_ld=no
3232 fi
3233 fi
3234 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3235 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3236 with_gnu_ld=$lt_cv_prog_gnu_ld
3237
3238
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
3243 else
3244 lt_cv_ld_reload_flag='-r'
3245 fi
3246 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3247 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3248 reload_flag=$lt_cv_ld_reload_flag
3249 test -n "$reload_flag" && reload_flag=" $reload_flag"
3250
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
3255 else
3256 if test -n "$NM"; then
3257 # Let the user override the test.
3258 lt_cv_path_NM="$NM"
3259 else
3260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3261 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3262 test -z "$ac_dir" && ac_dir=.
3263 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3264 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
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
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
3270 lt_cv_path_NM="$tmp_nm -B"
3271 break
3272 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3273 lt_cv_path_NM="$tmp_nm -p"
3274 break
3275 else
3276 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
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"
3282 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3283 fi
3284 fi
3285
3286 NM="$lt_cv_path_NM"
3287 echo "$as_me:$LINENO: result: $NM" >&5
3288 echo "${ECHO_T}$NM" >&6
3289
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
3296 else
3297 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3298 echo "${ECHO_T}no, using $LN_S" >&6
3299 fi
3300
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
3305 else
3306 lt_cv_file_magic_cmd='$MAGIC_CMD'
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
3320 case $host_os in
3321 aix*)
3322 lt_cv_deplibs_check_method=pass_all
3323 ;;
3324
3325 beos*)
3326 lt_cv_deplibs_check_method=pass_all
3327 ;;
3328
3329 bsdi4*)
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'
3332 lt_cv_file_magic_test_file=/shlib/libc.so
3333 ;;
3334
3335 cygwin* | mingw* |pw32*)
3336 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3337 lt_cv_file_magic_cmd='$OBJDUMP -f'
3338 ;;
3339
3340 darwin* | rhapsody*)
3341 # this will be overwritten by pass_all, but leave it in just in case
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
3352 lt_cv_deplibs_check_method=pass_all
3353 ;;
3354
3355 freebsd* | kfreebsd*-gnu)
3356 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3357 case $host_cpu in
3358 i*86 )
3359 # Not sure whether the presence of OpenBSD here was a mistake.
3360 # Let's accept both of them until this is cleared up.
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
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
3375 hpux10.20*|hpux11*)
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
3388 ;;
3389
3390 irix5* | irix6*)
3391 case $host_os in
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 *)
3397 case $LD in
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
3404 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3405 ;;
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.
3412 linux-gnu*)
3413 lt_cv_deplibs_check_method=pass_all
3414 ;;
3415
3416 netbsd* | knetbsd*-gnu)
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]+$'
3419 else
3420 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3421 fi
3422 ;;
3423
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
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
3446 sysv5uw[78]* | sysv4*uw2*)
3447 lt_cv_deplibs_check_method=pass_all
3448 ;;
3449
3450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3451 case $host_vendor in
3452 ncr)
3453 lt_cv_deplibs_check_method=pass_all
3454 ;;
3455 motorola)
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*`
3458 ;;
3459 esac
3460 ;;
3461 esac
3462
3463 fi
3464 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3465 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3466 file_magic_cmd=$lt_cv_file_magic_cmd
3467 deplibs_check_method=$lt_cv_deplibs_check_method
3468
3469
3470
3471
3472 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3473
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
3535 # Only perform the check for file, if the check method requires it
3536 case $deplibs_check_method in
3537 file_magic*)
3538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
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
3543 else
3544 case $MAGIC_CMD in
3545 /*)
3546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3547 ;;
3548 ?:/*)
3549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3550 ;;
3551 *)
3552 ac_save_MAGIC_CMD="$MAGIC_CMD"
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
3558 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3559 if test -n "$file_magic_test_file"; then
3560 case $deplibs_check_method in
3561 "file_magic "*)
3562 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
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"
3587 MAGIC_CMD="$ac_save_MAGIC_CMD"
3588 ;;
3589 esac
3590 fi
3591
3592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3593 if test -n "$MAGIC_CMD"; then
3594 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3595 echo "${ECHO_T}$MAGIC_CMD" >&6
3596 else
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601 if test -z "$lt_cv_path_MAGIC_CMD"; then
3602 if test -n "$ac_tool_prefix"; then
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
3607 else
3608 case $MAGIC_CMD in
3609 /*)
3610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3611 ;;
3612 ?:/*)
3613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3614 ;;
3615 *)
3616 ac_save_MAGIC_CMD="$MAGIC_CMD"
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
3622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3623 if test -n "$file_magic_test_file"; then
3624 case $deplibs_check_method in
3625 "file_magic "*)
3626 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
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"
3651 MAGIC_CMD="$ac_save_MAGIC_CMD"
3652 ;;
3653 esac
3654 fi
3655
3656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3657 if test -n "$MAGIC_CMD"; then
3658 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3659 echo "${ECHO_T}$MAGIC_CMD" >&6
3660 else
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3663 fi
3664
3665 else
3666 MAGIC_CMD=:
3667 fi
3668 fi
3669
3670 fi
3671 ;;
3672 esac
3673
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.
3676 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
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
3681 else
3682 if test -n "$RANLIB"; then
3683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3684 else
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
3699 fi
3700 fi
3701 RANLIB=$ac_cv_prog_RANLIB
3702 if test -n "$RANLIB"; then
3703 echo "$as_me:$LINENO: result: $RANLIB" >&5
3704 echo "${ECHO_T}$RANLIB" >&6
3705 else
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710 fi
3711 if test -z "$ac_cv_prog_RANLIB"; then
3712 ac_ct_RANLIB=$RANLIB
3713 # Extract the first word of "ranlib", so it can be a program name with args.
3714 set dummy ranlib; ac_word=$2
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
3719 else
3720 if test -n "$ac_ct_RANLIB"; then
3721 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3722 else
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=":"
3738 fi
3739 fi
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
3744 else
3745 echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747 fi
3748
3749 RANLIB=$ac_ct_RANLIB
3750 else
3751 RANLIB="$ac_cv_prog_RANLIB"
3752 fi
3753
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.
3756 set dummy ${ac_tool_prefix}strip; ac_word=$2
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
3761 else
3762 if test -n "$STRIP"; then
3763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3764 else
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
3779 fi
3780 fi
3781 STRIP=$ac_cv_prog_STRIP
3782 if test -n "$STRIP"; then
3783 echo "$as_me:$LINENO: result: $STRIP" >&5
3784 echo "${ECHO_T}$STRIP" >&6
3785 else
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788 fi
3789
3790 fi
3791 if test -z "$ac_cv_prog_STRIP"; then
3792 ac_ct_STRIP=$STRIP
3793 # Extract the first word of "strip", so it can be a program name with args.
3794 set dummy strip; ac_word=$2
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
3799 else
3800 if test -n "$ac_ct_STRIP"; then
3801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3802 else
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=":"
3818 fi
3819 fi
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
3824 else
3825 echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829 STRIP=$ac_ct_STRIP
3830 else
3831 STRIP="$ac_cv_prog_STRIP"
3832 fi
3833
3834
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"
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"
3842
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"
3847
3848 fi;
3849 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3850 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3851
3852
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
3859 fi;
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
3863 # Some flags need to be propagated to the compiler or linker for good
3864 # libtool support.
3865 case $host in
3866 *-*-irix6*)
3867 # Find out which ABI we are using.
3868 echo '#line 3868 "configure"' > conftest.$ac_ext
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
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
3887 case `/usr/bin/file conftest.$ac_objext` in
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
3898 fi
3899 fi
3900 rm -rf conftest*
3901 ;;
3902
3903 ia64-*-hpux*)
3904 # Find out which ABI we are using.
3905 echo 'int i;' > conftest.$ac_ext
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
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
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
3969 *-*-sco3.2v5*)
3970 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3971 SAVE_CFLAGS="$CFLAGS"
3972 CFLAGS="$CFLAGS -belf"
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
3977 else
3978
3979
3980 ac_ext=c
3981 ac_cpp='$CPP $CPPFLAGS'
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
3985
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. */
3992
3993 int
3994 main ()
3995 {
3996
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); } &&
4010 { ac_try='test -z "$ac_c_werror_flag"
4011 || test ! -s conftest.err'
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
4023 lt_cv_cc_needs_belf=yes
4024 else
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 lt_cv_cc_needs_belf=no
4029 fi
4030 rm -f conftest.err conftest.$ac_objext \
4031 conftest$ac_exeext conftest.$ac_ext
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
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
4037
4038 fi
4039 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4040 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
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
4047
4048 esac
4049
4050
4051 # Save cache, so that ltconfig can load it
4052 cat >confcache <<\_ACEOF
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
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.
4058 #
4059 # config.status only pays attention to the cache file if you give it
4060 # the --recheck option to rerun configure.
4061 #
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
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.
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
4098 if test -w $cache_file; then
4099 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4100 cat confcache >$cache_file
4101 else
4102 echo "not updating unwritable cache $cache_file"
4103 fi
4104 fi
4105 rm -f confcache
4106
4107 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4108 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4109 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
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" \
4114 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4115 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4116 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4117 echo "$as_me: error: libtool configure failed" >&2;}
4118 { (exit 1); exit 1; }; }
4119
4120 # Reload cache, that may have been modified by ltconfig
4121 if test -r "$cache_file"; then
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
4132 else
4133 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4134 echo "$as_me: creating cache $cache_file" >&6;}
4135 >$cache_file
4136 fi
4137
4138
4139 # This can be used to rebuild libtool when needed
4140 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
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
4149
4150
4151
4152
4153
4154
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.
4203 set dummy gcc; ac_word=$2
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
4250 else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
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
4268 fi
4269 fi
4270 CC=$ac_cv_prog_CC
4271 if test -n "$CC"; then
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
4318 else
4319 CC="$ac_cv_prog_CC"
4320 fi
4321
4322 fi
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
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
4330 else
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
4333 else
4334 ac_prog_rejected=no
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
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
4357 if test $# != 0; then
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
4362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4363 fi
4364 fi
4365 fi
4366 fi
4367 CC=$ac_cv_prog_CC
4368 if test -n "$CC"; then
4369 echo "$as_me:$LINENO: result: $CC" >&5
4370 echo "${ECHO_T}$CC" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4374 fi
4375
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
4387 else
4388 if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 else
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
4405 fi
4406 fi
4407 CC=$ac_cv_prog_CC
4408 if test -n "$CC"; then
4409 echo "$as_me:$LINENO: result: $CC" >&5
4410 echo "${ECHO_T}$CC" >&6
4411 else
4412 echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6
4414 fi
4415
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
4443 fi
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
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458 test -n "$ac_ct_CC" && break
4459 done
4460
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
4510 #endif
4511
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); } &&
4525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
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. */
4566
4567 int
4568 main ()
4569 {
4570
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); } &&
4584 { ac_try='test -z "$ac_c_werror_flag"
4585 || test ! -s conftest.err'
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
4597 ac_cv_prog_cc_g=yes
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 ac_cv_prog_cc_g=no
4603 fi
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
4608 if test "$ac_test_CFLAGS" = set; then
4609 CFLAGS=$ac_save_CFLAGS
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
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); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
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); } &&
4756 { ac_try='test -z "$ac_c_werror_flag"
4757 || test ! -s conftest.err'
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); } &&
4802 { ac_try='test -z "$ac_c_werror_flag"
4803 || test ! -s conftest.err'
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); } &&
4847 { ac_try='test -z "$ac_c_werror_flag"
4848 || test ! -s conftest.err'
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
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
4894 # AmigaOS /C/install, which installs bootblocks on floppy discs
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"
4898 # OS/2's system install, which has a completely different semantic
4899 # ./install, which can be erroneously created by make from ./install.sh.
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
4902 if test -z "$INSTALL"; then
4903 if test "${ac_cv_path_install+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
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
4924 if test $ac_prog = install &&
4925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4926 # AIX install. It has an incompatible calling convention.
4927 :
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 :
4932 else
4933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4934 break 3
4935 fi
4936 fi
4937 done
4938 done
4939 ;;
4940 esac
4941 done
4942
4943
4944 fi
4945 if test "${ac_cv_path_install+set}" = set; then
4946 INSTALL=$ac_cv_path_install
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.
4952 INSTALL=$ac_install_sh
4953 fi
4954 fi
4955 echo "$as_me:$LINENO: result: $INSTALL" >&5
4956 echo "${ECHO_T}$INSTALL" >&6
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
4962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4963
4964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4965
4966
4967
4968 for ac_func in setmode
4969 do
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); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
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
5070 ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms"
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=
5080
5081 if test -f ../intl/config.intl; then
5082 . ../intl/config.intl
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
5204 echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206 if test "${ac_cv_path_MSGFMT+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
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
5237 else
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
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
5261 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265 done
5266 done
5267
5268 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5269 ;;
5270 esac
5271 fi
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
5277 else
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5280 fi
5281
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"
5309 fi
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
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
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
5347 else
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=:
5365 fi
5366 rm -f conf$$.sh
5367 fi
5368
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"
5380 fi
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
5412 fi
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
5417 else
5418 echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6
5420 fi
5421
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
5457 else
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=
5470 fi
5471
5472 MAINT=$MAINTAINER_MODE_TRUE
5473
5474
5475
5476
5477 ac_ext=c
5478 ac_cpp='$CPP $CPPFLAGS'
5479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5483 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5484 # On Suns, sometimes $CPP names a directory.
5485 if test -n "$CPP" && test -d "$CPP"; then
5486 CPP=
5487 fi
5488 if test -z "$CPP"; then
5489 if test "${ac_cv_prog_CPP+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 # Double quotes because CPP needs to be expanded
5493 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5494 do
5495 ac_preproc_ok=false
5496 for ac_c_preproc_warn_flag in '' yes
5497 do
5498 # Use a header file that comes with gcc, so configuring glibc
5499 # with a fresh cross-compiler works.
5500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5501 # <limits.h> exists even on freestanding compilers.
5502 # On the NeXT, cc -E runs the code through the compiler's parser,
5503 # not just through cpp. "Syntax error" is here to catch this case.
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #ifdef __STDC__
5511 # include <limits.h>
5512 #else
5513 # include <assert.h>
5514 #endif
5515 Syntax error
5516 _ACEOF
5517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } >/dev/null; then
5525 if test -s conftest.err; then
5526 ac_cpp_err=$ac_c_preproc_warn_flag
5527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5528 else
5529 ac_cpp_err=
5530 fi
5531 else
5532 ac_cpp_err=yes
5533 fi
5534 if test -z "$ac_cpp_err"; then
5535 :
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540 # Broken: fails on valid input.
5541 continue
5542 fi
5543 rm -f conftest.err conftest.$ac_ext
5544
5545 # OK, works on sane cases. Now check whether non-existent headers
5546 # can be detected and how.
5547 cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h. */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 #include <ac_nonexistent.h>
5554 _ACEOF
5555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } >/dev/null; then
5563 if test -s conftest.err; then
5564 ac_cpp_err=$ac_c_preproc_warn_flag
5565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5566 else
5567 ac_cpp_err=
5568 fi
5569 else
5570 ac_cpp_err=yes
5571 fi
5572 if test -z "$ac_cpp_err"; then
5573 # Broken: success on invalid input.
5574 continue
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579 # Passes both tests.
5580 ac_preproc_ok=:
5581 break
5582 fi
5583 rm -f conftest.err conftest.$ac_ext
5584
5585 done
5586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5587 rm -f conftest.err conftest.$ac_ext
5588 if $ac_preproc_ok; then
5589 break
5590 fi
5591
5592 done
5593 ac_cv_prog_CPP=$CPP
5594
5595 fi
5596 CPP=$ac_cv_prog_CPP
5597 else
5598 ac_cv_prog_CPP=$CPP
5599 fi
5600 echo "$as_me:$LINENO: result: $CPP" >&5
5601 echo "${ECHO_T}$CPP" >&6
5602 ac_preproc_ok=false
5603 for ac_c_preproc_warn_flag in '' yes
5604 do
5605 # Use a header file that comes with gcc, so configuring glibc
5606 # with a fresh cross-compiler works.
5607 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5608 # <limits.h> exists even on freestanding compilers.
5609 # On the NeXT, cc -E runs the code through the compiler's parser,
5610 # not just through cpp. "Syntax error" is here to catch this case.
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h. */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 #ifdef __STDC__
5618 # include <limits.h>
5619 #else
5620 # include <assert.h>
5621 #endif
5622 Syntax error
5623 _ACEOF
5624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } >/dev/null; then
5632 if test -s conftest.err; then
5633 ac_cpp_err=$ac_c_preproc_warn_flag
5634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5635 else
5636 ac_cpp_err=
5637 fi
5638 else
5639 ac_cpp_err=yes
5640 fi
5641 if test -z "$ac_cpp_err"; then
5642 :
5643 else
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5646
5647 # Broken: fails on valid input.
5648 continue
5649 fi
5650 rm -f conftest.err conftest.$ac_ext
5651
5652 # OK, works on sane cases. Now check whether non-existent headers
5653 # can be detected and how.
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <ac_nonexistent.h>
5661 _ACEOF
5662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null; then
5670 if test -s conftest.err; then
5671 ac_cpp_err=$ac_c_preproc_warn_flag
5672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5673 else
5674 ac_cpp_err=
5675 fi
5676 else
5677 ac_cpp_err=yes
5678 fi
5679 if test -z "$ac_cpp_err"; then
5680 # Broken: success on invalid input.
5681 continue
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 # Passes both tests.
5687 ac_preproc_ok=:
5688 break
5689 fi
5690 rm -f conftest.err conftest.$ac_ext
5691
5692 done
5693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5694 rm -f conftest.err conftest.$ac_ext
5695 if $ac_preproc_ok; then
5696 :
5697 else
5698 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5699 See \`config.log' for more details." >&5
5700 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5701 See \`config.log' for more details." >&2;}
5702 { (exit 1); exit 1; }; }
5703 fi
5704
5705 ac_ext=c
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710
5711
5712 echo "$as_me:$LINENO: checking for egrep" >&5
5713 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5714 if test "${ac_cv_prog_egrep+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 else
5717 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5718 then ac_cv_prog_egrep='grep -E'
5719 else ac_cv_prog_egrep='egrep'
5720 fi
5721 fi
5722 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5723 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5724 EGREP=$ac_cv_prog_egrep
5725
5726
5727 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5728 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5729 if test "${ac_cv_header_stdc+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 #include <stdlib.h>
5739 #include <stdarg.h>
5740 #include <string.h>
5741 #include <float.h>
5742
5743 int
5744 main ()
5745 {
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_header_stdc=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778 ac_cv_header_stdc=no
5779 fi
5780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781
5782 if test $ac_cv_header_stdc = yes; then
5783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h. */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 #include <string.h>
5791
5792 _ACEOF
5793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5794 $EGREP "memchr" >/dev/null 2>&1; then
5795 :
5796 else
5797 ac_cv_header_stdc=no
5798 fi
5799 rm -f conftest*
5800
5801 fi
5802
5803 if test $ac_cv_header_stdc = yes; then
5804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <stdlib.h>
5812
5813 _ACEOF
5814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5815 $EGREP "free" >/dev/null 2>&1; then
5816 :
5817 else
5818 ac_cv_header_stdc=no
5819 fi
5820 rm -f conftest*
5821
5822 fi
5823
5824 if test $ac_cv_header_stdc = yes; then
5825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5826 if test "$cross_compiling" = yes; then
5827 :
5828 else
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #include <ctype.h>
5836 #if ((' ' & 0x0FF) == 0x020)
5837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5839 #else
5840 # define ISLOWER(c) \
5841 (('a' <= (c) && (c) <= 'i') \
5842 || ('j' <= (c) && (c) <= 'r') \
5843 || ('s' <= (c) && (c) <= 'z'))
5844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5845 #endif
5846
5847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5848 int
5849 main ()
5850 {
5851 int i;
5852 for (i = 0; i < 256; i++)
5853 if (XOR (islower (i), ISLOWER (i))
5854 || toupper (i) != TOUPPER (i))
5855 exit(2);
5856 exit (0);
5857 }
5858 _ACEOF
5859 rm -f conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 :
5871 else
5872 echo "$as_me: program exited with status $ac_status" >&5
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876 ( exit $ac_status )
5877 ac_cv_header_stdc=no
5878 fi
5879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5880 fi
5881 fi
5882 fi
5883 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5884 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5885 if test $ac_cv_header_stdc = yes; then
5886
5887 cat >>confdefs.h <<\_ACEOF
5888 #define STDC_HEADERS 1
5889 _ACEOF
5890
5891 fi
5892
5893 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5904 inttypes.h stdint.h unistd.h
5905 do
5906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5907 echo "$as_me:$LINENO: checking for $ac_header" >&5
5908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919
5920 #include <$ac_header>
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag"
5932 || test ! -s conftest.err'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; } &&
5938 { ac_try='test -s conftest.$ac_objext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 eval "$as_ac_Header=yes"
5945 else
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 eval "$as_ac_Header=no"
5950 fi
5951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5956 cat >>confdefs.h <<_ACEOF
5957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5958 _ACEOF
5959
5960 fi
5961
5962 done
5963
5964
5965
5966 for ac_header in sys/gmon_out.h
5967 do
5968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5970 echo "$as_me:$LINENO: checking for $ac_header" >&5
5971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 fi
5975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5977 else
5978 # Is the header compilable?
5979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 $ac_includes_default
5988 #include <$ac_header>
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_header_compiler=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ac_header_compiler=no
6018 fi
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6021 echo "${ECHO_T}$ac_header_compiler" >&6
6022
6023 # Is the header present?
6024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <$ac_header>
6033 _ACEOF
6034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } >/dev/null; then
6042 if test -s conftest.err; then
6043 ac_cpp_err=$ac_c_preproc_warn_flag
6044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6045 else
6046 ac_cpp_err=
6047 fi
6048 else
6049 ac_cpp_err=yes
6050 fi
6051 if test -z "$ac_cpp_err"; then
6052 ac_header_preproc=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 ac_header_preproc=no
6058 fi
6059 rm -f conftest.err conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6061 echo "${ECHO_T}$ac_header_preproc" >&6
6062
6063 # So? What about this header?
6064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6065 yes:no: )
6066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6070 ac_header_preproc=yes
6071 ;;
6072 no:yes:* )
6073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6085 (
6086 cat <<\_ASBOX
6087 ## ------------------------------------------ ##
6088 ## Report this to the AC_PACKAGE_NAME lists. ##
6089 ## ------------------------------------------ ##
6090 _ASBOX
6091 ) |
6092 sed "s/^/$as_me: WARNING: /" >&2
6093 ;;
6094 esac
6095 echo "$as_me:$LINENO: checking for $ac_header" >&5
6096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100 eval "$as_ac_Header=\$ac_header_preproc"
6101 fi
6102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6104
6105 fi
6106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6107 cat >>confdefs.h <<_ACEOF
6108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6109 _ACEOF
6110
6111 fi
6112
6113 done
6114
6115
6116 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
6117 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
6118 if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 #include <unistd.h>
6128 int
6129 main ()
6130 {
6131 extern int getopt (int, char *const*, const char *);
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 gprof_cv_decl_getopt_unistd_h=yes
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 gprof_cv_decl_getopt_unistd_h=no
6164 fi
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6166 fi
6167
6168 echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
6169 echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
6170 if test $gprof_cv_decl_getopt_unistd_h = yes; then
6171
6172 cat >>confdefs.h <<\_ACEOF
6173 #define HAVE_DECL_GETOPT 1
6174 _ACEOF
6175
6176 fi
6177
6178
6179 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
6180
6181 # Check whether --enable-werror or --disable-werror was given.
6182 if test "${enable_werror+set}" = set; then
6183 enableval="$enable_werror"
6184 case "${enableval}" in
6185 yes | y) ERROR_ON_WARNING="yes" ;;
6186 no | n) ERROR_ON_WARNING="no" ;;
6187 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
6188 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
6189 { (exit 1); exit 1; }; } ;;
6190 esac
6191 fi;
6192
6193 # Enable -Werror by default when using gcc
6194 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6195 ERROR_ON_WARNING=yes
6196 fi
6197
6198 NO_WERROR=
6199 if test "${ERROR_ON_WARNING}" = yes ; then
6200 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
6201 NO_WERROR="-Wno-error"
6202 fi
6203
6204 if test "${GCC}" = yes ; then
6205 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
6206 fi
6207
6208 # Check whether --enable-build-warnings or --disable-build-warnings was given.
6209 if test "${enable_build_warnings+set}" = set; then
6210 enableval="$enable_build_warnings"
6211 case "${enableval}" in
6212 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
6213 no) if test "${GCC}" = yes ; then
6214 WARN_CFLAGS="-w"
6215 fi;;
6216 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6217 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6218 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6219 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
6220 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6221 esac
6222 fi;
6223
6224 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
6225 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6226 fi
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
6237
6238 cat >confcache <<\_ACEOF
6239 # This file is a shell script that caches the results of configure
6240 # tests run on this system so they can be shared between configure
6241 # scripts and configure runs, see configure's option --config-cache.
6242 # It is not useful on other systems. If it contains results you don't
6243 # want to keep, you may remove or edit it.
6244 #
6245 # config.status only pays attention to the cache file if you give it
6246 # the --recheck option to rerun configure.
6247 #
6248 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6249 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6250 # following values.
6251
6252 _ACEOF
6253
6254 # The following way of writing the cache mishandles newlines in values,
6255 # but we know of no workaround that is simple, portable, and efficient.
6256 # So, don't put newlines in cache variables' values.
6257 # Ultrix sh set writes to stderr and can't be redirected directly,
6258 # and sets the high bit in the cache file unless we assign to the vars.
6259 {
6260 (set) 2>&1 |
6261 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6262 *ac_space=\ *)
6263 # `set' does not quote correctly, so add quotes (double-quote
6264 # substitution turns \\\\ into \\, and sed turns \\ into \).
6265 sed -n \
6266 "s/'/'\\\\''/g;
6267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6268 ;;
6269 *)
6270 # `set' quotes correctly as required by POSIX, so do not add quotes.
6271 sed -n \
6272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6273 ;;
6274 esac;
6275 } |
6276 sed '
6277 t clear
6278 : clear
6279 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6280 t end
6281 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6282 : end' >>confcache
6283 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6284 if test -w $cache_file; then
6285 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6286 cat confcache >$cache_file
6287 else
6288 echo "not updating unwritable cache $cache_file"
6289 fi
6290 fi
6291 rm -f confcache
6292
6293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6294 # Let make expand exec_prefix.
6295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6296
6297 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6298 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6299 # trailing colons and then remove the whole line if VPATH becomes empty
6300 # (actually we leave an empty line to preserve line numbers).
6301 if test "x$srcdir" = x.; then
6302 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6303 s/:*\$(srcdir):*/:/;
6304 s/:*\${srcdir}:*/:/;
6305 s/:*@srcdir@:*/:/;
6306 s/^\([^=]*=[ ]*\):*/\1/;
6307 s/:*$//;
6308 s/^[^=]*=[ ]*$//;
6309 }'
6310 fi
6311
6312 DEFS=-DHAVE_CONFIG_H
6313
6314 ac_libobjs=
6315 ac_ltlibobjs=
6316 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6317 # 1. Remove the extension, and $U if already installed.
6318 ac_i=`echo "$ac_i" |
6319 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6320 # 2. Add them.
6321 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6322 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6323 done
6324 LIBOBJS=$ac_libobjs
6325
6326 LTLIBOBJS=$ac_ltlibobjs
6327
6328
6329 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6330 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6331 Usually this means the macro was only invoked conditionally." >&5
6332 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6333 Usually this means the macro was only invoked conditionally." >&2;}
6334 { (exit 1); exit 1; }; }
6335 fi
6336 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6337 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6338 Usually this means the macro was only invoked conditionally." >&5
6339 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6340 Usually this means the macro was only invoked conditionally." >&2;}
6341 { (exit 1); exit 1; }; }
6342 fi
6343 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6344 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6345 Usually this means the macro was only invoked conditionally." >&5
6346 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6347 Usually this means the macro was only invoked conditionally." >&2;}
6348 { (exit 1); exit 1; }; }
6349 fi
6350
6351 : ${CONFIG_STATUS=./config.status}
6352 ac_clean_files_save=$ac_clean_files
6353 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6354 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6355 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6356 cat >$CONFIG_STATUS <<_ACEOF
6357 #! $SHELL
6358 # Generated by $as_me.
6359 # Run this file to recreate the current configuration.
6360 # Compiler output produced by configure, useful for debugging
6361 # configure, is in config.log if it exists.
6362
6363 debug=false
6364 ac_cs_recheck=false
6365 ac_cs_silent=false
6366 SHELL=\${CONFIG_SHELL-$SHELL}
6367 _ACEOF
6368
6369 cat >>$CONFIG_STATUS <<\_ACEOF
6370 ## --------------------- ##
6371 ## M4sh Initialization. ##
6372 ## --------------------- ##
6373
6374 # Be Bourne compatible
6375 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6376 emulate sh
6377 NULLCMD=:
6378 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6379 # is contrary to our usage. Disable this feature.
6380 alias -g '${1+"$@"}'='"$@"'
6381 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6382 set -o posix
6383 fi
6384 DUALCASE=1; export DUALCASE # for MKS sh
6385
6386 # Support unset when possible.
6387 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6388 as_unset=unset
6389 else
6390 as_unset=false
6391 fi
6392
6393
6394 # Work around bugs in pre-3.0 UWIN ksh.
6395 $as_unset ENV MAIL MAILPATH
6396 PS1='$ '
6397 PS2='> '
6398 PS4='+ '
6399
6400 # NLS nuisances.
6401 for as_var in \
6402 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6403 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6404 LC_TELEPHONE LC_TIME
6405 do
6406 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6407 eval $as_var=C; export $as_var
6408 else
6409 $as_unset $as_var
6410 fi
6411 done
6412
6413 # Required to use basename.
6414 if expr a : '\(a\)' >/dev/null 2>&1; then
6415 as_expr=expr
6416 else
6417 as_expr=false
6418 fi
6419
6420 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6421 as_basename=basename
6422 else
6423 as_basename=false
6424 fi
6425
6426
6427 # Name of the executable.
6428 as_me=`$as_basename "$0" ||
6429 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6430 X"$0" : 'X\(//\)$' \| \
6431 X"$0" : 'X\(/\)$' \| \
6432 . : '\(.\)' 2>/dev/null ||
6433 echo X/"$0" |
6434 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6435 /^X\/\(\/\/\)$/{ s//\1/; q; }
6436 /^X\/\(\/\).*/{ s//\1/; q; }
6437 s/.*/./; q'`
6438
6439
6440 # PATH needs CR, and LINENO needs CR and PATH.
6441 # Avoid depending upon Character Ranges.
6442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6445 as_cr_digits='0123456789'
6446 as_cr_alnum=$as_cr_Letters$as_cr_digits
6447
6448 # The user is always right.
6449 if test "${PATH_SEPARATOR+set}" != set; then
6450 echo "#! /bin/sh" >conf$$.sh
6451 echo "exit 0" >>conf$$.sh
6452 chmod +x conf$$.sh
6453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6454 PATH_SEPARATOR=';'
6455 else
6456 PATH_SEPARATOR=:
6457 fi
6458 rm -f conf$$.sh
6459 fi
6460
6461
6462 as_lineno_1=$LINENO
6463 as_lineno_2=$LINENO
6464 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6465 test "x$as_lineno_1" != "x$as_lineno_2" &&
6466 test "x$as_lineno_3" = "x$as_lineno_2" || {
6467 # Find who we are. Look in the path if we contain no path at all
6468 # relative or not.
6469 case $0 in
6470 *[\\/]* ) as_myself=$0 ;;
6471 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6477 done
6478
6479 ;;
6480 esac
6481 # We did not find ourselves, most probably we were run as `sh COMMAND'
6482 # in which case we are not to be found in the path.
6483 if test "x$as_myself" = x; then
6484 as_myself=$0
6485 fi
6486 if test ! -f "$as_myself"; then
6487 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6488 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6489 { (exit 1); exit 1; }; }
6490 fi
6491 case $CONFIG_SHELL in
6492 '')
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for as_base in sh bash ksh sh5; do
6499 case $as_dir in
6500 /*)
6501 if ("$as_dir/$as_base" -c '
6502 as_lineno_1=$LINENO
6503 as_lineno_2=$LINENO
6504 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6505 test "x$as_lineno_1" != "x$as_lineno_2" &&
6506 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6507 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6508 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6509 CONFIG_SHELL=$as_dir/$as_base
6510 export CONFIG_SHELL
6511 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6512 fi;;
6513 esac
6514 done
6515 done
6516 ;;
6517 esac
6518
6519 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6520 # uniformly replaced by the line number. The first 'sed' inserts a
6521 # line-number line before each line; the second 'sed' does the real
6522 # work. The second script uses 'N' to pair each line-number line
6523 # with the numbered line, and appends trailing '-' during
6524 # substitution so that $LINENO is not a special case at line end.
6525 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6526 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6527 sed '=' <$as_myself |
6528 sed '
6529 N
6530 s,$,-,
6531 : loop
6532 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6533 t loop
6534 s,-$,,
6535 s,^['$as_cr_digits']*\n,,
6536 ' >$as_me.lineno &&
6537 chmod +x $as_me.lineno ||
6538 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6539 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6540 { (exit 1); exit 1; }; }
6541
6542 # Don't try to exec as it changes $[0], causing all sort of problems
6543 # (the dirname of $[0] is not the place where we might find the
6544 # original and so on. Autoconf is especially sensible to this).
6545 . ./$as_me.lineno
6546 # Exit status is that of the last command.
6547 exit
6548 }
6549
6550
6551 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6552 *c*,-n*) ECHO_N= ECHO_C='
6553 ' ECHO_T=' ' ;;
6554 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6555 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6556 esac
6557
6558 if expr a : '\(a\)' >/dev/null 2>&1; then
6559 as_expr=expr
6560 else
6561 as_expr=false
6562 fi
6563
6564 rm -f conf$$ conf$$.exe conf$$.file
6565 echo >conf$$.file
6566 if ln -s conf$$.file conf$$ 2>/dev/null; then
6567 # We could just check for DJGPP; but this test a) works b) is more generic
6568 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6569 if test -f conf$$.exe; then
6570 # Don't use ln at all; we don't have any links
6571 as_ln_s='cp -p'
6572 else
6573 as_ln_s='ln -s'
6574 fi
6575 elif ln conf$$.file conf$$ 2>/dev/null; then
6576 as_ln_s=ln
6577 else
6578 as_ln_s='cp -p'
6579 fi
6580 rm -f conf$$ conf$$.exe conf$$.file
6581
6582 if mkdir -p . 2>/dev/null; then
6583 as_mkdir_p=:
6584 else
6585 test -d ./-p && rmdir ./-p
6586 as_mkdir_p=false
6587 fi
6588
6589 as_executable_p="test -f"
6590
6591 # Sed expression to map a string onto a valid CPP name.
6592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6593
6594 # Sed expression to map a string onto a valid variable name.
6595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6596
6597
6598 # IFS
6599 # We need space, tab and new line, in precisely that order.
6600 as_nl='
6601 '
6602 IFS=" $as_nl"
6603
6604 # CDPATH.
6605 $as_unset CDPATH
6606
6607 exec 6>&1
6608
6609 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6610 # report actual input values of CONFIG_FILES etc. instead of their
6611 # values after options handling. Logging --version etc. is OK.
6612 exec 5>>config.log
6613 {
6614 echo
6615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6616 ## Running $as_me. ##
6617 _ASBOX
6618 } >&5
6619 cat >&5 <<_CSEOF
6620
6621 This file was extended by $as_me, which was
6622 generated by GNU Autoconf 2.59. Invocation command line was
6623
6624 CONFIG_FILES = $CONFIG_FILES
6625 CONFIG_HEADERS = $CONFIG_HEADERS
6626 CONFIG_LINKS = $CONFIG_LINKS
6627 CONFIG_COMMANDS = $CONFIG_COMMANDS
6628 $ $0 $@
6629
6630 _CSEOF
6631 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6632 echo >&5
6633 _ACEOF
6634
6635 # Files that config.status was made for.
6636 if test -n "$ac_config_files"; then
6637 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6638 fi
6639
6640 if test -n "$ac_config_headers"; then
6641 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6642 fi
6643
6644 if test -n "$ac_config_links"; then
6645 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6646 fi
6647
6648 if test -n "$ac_config_commands"; then
6649 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6650 fi
6651
6652 cat >>$CONFIG_STATUS <<\_ACEOF
6653
6654 ac_cs_usage="\
6655 \`$as_me' instantiates files from templates according to the
6656 current configuration.
6657
6658 Usage: $0 [OPTIONS] [FILE]...
6659
6660 -h, --help print this help, then exit
6661 -V, --version print version number, then exit
6662 -q, --quiet do not print progress messages
6663 -d, --debug don't remove temporary files
6664 --recheck update $as_me by reconfiguring in the same conditions
6665 --file=FILE[:TEMPLATE]
6666 instantiate the configuration file FILE
6667 --header=FILE[:TEMPLATE]
6668 instantiate the configuration header FILE
6669
6670 Configuration files:
6671 $config_files
6672
6673 Configuration headers:
6674 $config_headers
6675
6676 Configuration commands:
6677 $config_commands
6678
6679 Report bugs to <bug-autoconf@gnu.org>."
6680 _ACEOF
6681
6682 cat >>$CONFIG_STATUS <<_ACEOF
6683 ac_cs_version="\\
6684 config.status
6685 configured by $0, generated by GNU Autoconf 2.59,
6686 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6687
6688 Copyright (C) 2003 Free Software Foundation, Inc.
6689 This config.status script is free software; the Free Software Foundation
6690 gives unlimited permission to copy, distribute and modify it."
6691 srcdir=$srcdir
6692 INSTALL="$INSTALL"
6693 _ACEOF
6694
6695 cat >>$CONFIG_STATUS <<\_ACEOF
6696 # If no file are specified by the user, then we need to provide default
6697 # value. By we need to know if files were specified by the user.
6698 ac_need_defaults=:
6699 while test $# != 0
6700 do
6701 case $1 in
6702 --*=*)
6703 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6704 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6705 ac_shift=:
6706 ;;
6707 -*)
6708 ac_option=$1
6709 ac_optarg=$2
6710 ac_shift=shift
6711 ;;
6712 *) # This is not an option, so the user has probably given explicit
6713 # arguments.
6714 ac_option=$1
6715 ac_need_defaults=false;;
6716 esac
6717
6718 case $ac_option in
6719 # Handling of the options.
6720 _ACEOF
6721 cat >>$CONFIG_STATUS <<\_ACEOF
6722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6723 ac_cs_recheck=: ;;
6724 --version | --vers* | -V )
6725 echo "$ac_cs_version"; exit 0 ;;
6726 --he | --h)
6727 # Conflict between --help and --header
6728 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6729 Try \`$0 --help' for more information." >&5
6730 echo "$as_me: error: ambiguous option: $1
6731 Try \`$0 --help' for more information." >&2;}
6732 { (exit 1); exit 1; }; };;
6733 --help | --hel | -h )
6734 echo "$ac_cs_usage"; exit 0 ;;
6735 --debug | --d* | -d )
6736 debug=: ;;
6737 --file | --fil | --fi | --f )
6738 $ac_shift
6739 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6740 ac_need_defaults=false;;
6741 --header | --heade | --head | --hea )
6742 $ac_shift
6743 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6744 ac_need_defaults=false;;
6745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6746 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6747 ac_cs_silent=: ;;
6748
6749 # This is an error.
6750 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6751 Try \`$0 --help' for more information." >&5
6752 echo "$as_me: error: unrecognized option: $1
6753 Try \`$0 --help' for more information." >&2;}
6754 { (exit 1); exit 1; }; } ;;
6755
6756 *) ac_config_targets="$ac_config_targets $1" ;;
6757
6758 esac
6759 shift
6760 done
6761
6762 ac_configure_extra_args=
6763
6764 if $ac_cs_silent; then
6765 exec 6>/dev/null
6766 ac_configure_extra_args="$ac_configure_extra_args --silent"
6767 fi
6768
6769 _ACEOF
6770 cat >>$CONFIG_STATUS <<_ACEOF
6771 if \$ac_cs_recheck; then
6772 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6773 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6774 fi
6775
6776 _ACEOF
6777
6778 cat >>$CONFIG_STATUS <<_ACEOF
6779 #
6780 # INIT-COMMANDS section.
6781 #
6782
6783 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6784 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
6785 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
6786 # from automake.
6787 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
6788 # Capture the value of LINGUAS because we need it to compute CATALOGS.
6789 LINGUAS="${LINGUAS-%UNSET%}"
6790
6791
6792 _ACEOF
6793
6794
6795
6796 cat >>$CONFIG_STATUS <<\_ACEOF
6797 for ac_config_target in $ac_config_targets
6798 do
6799 case "$ac_config_target" in
6800 # Handling of arguments.
6801 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6802 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
6803 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6804 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6805 "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
6806 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6807 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6808 { (exit 1); exit 1; }; };;
6809 esac
6810 done
6811
6812 # If the user did not use the arguments to specify the items to instantiate,
6813 # then the envvar interface is used. Set only those that are not.
6814 # We use the long form for the default assignment because of an extremely
6815 # bizarre bug on SunOS 4.1.3.
6816 if $ac_need_defaults; then
6817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6820 fi
6821
6822 # Have a temporary directory for convenience. Make it in the build tree
6823 # simply because there is no reason to put it here, and in addition,
6824 # creating and moving files from /tmp can sometimes cause problems.
6825 # Create a temporary directory, and hook for its removal unless debugging.
6826 $debug ||
6827 {
6828 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6829 trap '{ (exit 1); exit 1; }' 1 2 13 15
6830 }
6831
6832 # Create a (secure) tmp directory for tmp files.
6833
6834 {
6835 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6836 test -n "$tmp" && test -d "$tmp"
6837 } ||
6838 {
6839 tmp=./confstat$$-$RANDOM
6840 (umask 077 && mkdir $tmp)
6841 } ||
6842 {
6843 echo "$me: cannot create a temporary directory in ." >&2
6844 { (exit 1); exit 1; }
6845 }
6846
6847 _ACEOF
6848
6849 cat >>$CONFIG_STATUS <<_ACEOF
6850
6851 #
6852 # CONFIG_FILES section.
6853 #
6854
6855 # No need to generate the scripts if there are no CONFIG_FILES.
6856 # This happens for instance when ./config.status config.h
6857 if test -n "\$CONFIG_FILES"; then
6858 # Protect against being on the right side of a sed subst in config.status.
6859 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6860 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6861 s,@SHELL@,$SHELL,;t t
6862 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6863 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6864 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6865 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6866 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6867 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6868 s,@exec_prefix@,$exec_prefix,;t t
6869 s,@prefix@,$prefix,;t t
6870 s,@program_transform_name@,$program_transform_name,;t t
6871 s,@bindir@,$bindir,;t t
6872 s,@sbindir@,$sbindir,;t t
6873 s,@libexecdir@,$libexecdir,;t t
6874 s,@datadir@,$datadir,;t t
6875 s,@sysconfdir@,$sysconfdir,;t t
6876 s,@sharedstatedir@,$sharedstatedir,;t t
6877 s,@localstatedir@,$localstatedir,;t t
6878 s,@libdir@,$libdir,;t t
6879 s,@includedir@,$includedir,;t t
6880 s,@oldincludedir@,$oldincludedir,;t t
6881 s,@infodir@,$infodir,;t t
6882 s,@mandir@,$mandir,;t t
6883 s,@build_alias@,$build_alias,;t t
6884 s,@host_alias@,$host_alias,;t t
6885 s,@target_alias@,$target_alias,;t t
6886 s,@DEFS@,$DEFS,;t t
6887 s,@ECHO_C@,$ECHO_C,;t t
6888 s,@ECHO_N@,$ECHO_N,;t t
6889 s,@ECHO_T@,$ECHO_T,;t t
6890 s,@LIBS@,$LIBS,;t t
6891 s,@build@,$build,;t t
6892 s,@build_cpu@,$build_cpu,;t t
6893 s,@build_vendor@,$build_vendor,;t t
6894 s,@build_os@,$build_os,;t t
6895 s,@host@,$host,;t t
6896 s,@host_cpu@,$host_cpu,;t t
6897 s,@host_vendor@,$host_vendor,;t t
6898 s,@host_os@,$host_os,;t t
6899 s,@target@,$target,;t t
6900 s,@target_cpu@,$target_cpu,;t t
6901 s,@target_vendor@,$target_vendor,;t t
6902 s,@target_os@,$target_os,;t t
6903 s,@CC@,$CC,;t t
6904 s,@CFLAGS@,$CFLAGS,;t t
6905 s,@LDFLAGS@,$LDFLAGS,;t t
6906 s,@CPPFLAGS@,$CPPFLAGS,;t t
6907 s,@ac_ct_CC@,$ac_ct_CC,;t t
6908 s,@EXEEXT@,$EXEEXT,;t t
6909 s,@OBJEXT@,$OBJEXT,;t t
6910 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6911 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6912 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6913 s,@CYGPATH_W@,$CYGPATH_W,;t t
6914 s,@PACKAGE@,$PACKAGE,;t t
6915 s,@VERSION@,$VERSION,;t t
6916 s,@ACLOCAL@,$ACLOCAL,;t t
6917 s,@AUTOCONF@,$AUTOCONF,;t t
6918 s,@AUTOMAKE@,$AUTOMAKE,;t t
6919 s,@AUTOHEADER@,$AUTOHEADER,;t t
6920 s,@MAKEINFO@,$MAKEINFO,;t t
6921 s,@install_sh@,$install_sh,;t t
6922 s,@STRIP@,$STRIP,;t t
6923 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6924 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6925 s,@mkdir_p@,$mkdir_p,;t t
6926 s,@AWK@,$AWK,;t t
6927 s,@SET_MAKE@,$SET_MAKE,;t t
6928 s,@am__leading_dot@,$am__leading_dot,;t t
6929 s,@AMTAR@,$AMTAR,;t t
6930 s,@am__tar@,$am__tar,;t t
6931 s,@am__untar@,$am__untar,;t t
6932 s,@DEPDIR@,$DEPDIR,;t t
6933 s,@am__include@,$am__include,;t t
6934 s,@am__quote@,$am__quote,;t t
6935 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6936 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6937 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6938 s,@CCDEPMODE@,$CCDEPMODE,;t t
6939 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6940 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6941 s,@LN_S@,$LN_S,;t t
6942 s,@RANLIB@,$RANLIB,;t t
6943 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6944 s,@LIBTOOL@,$LIBTOOL,;t t
6945 s,@USE_NLS@,$USE_NLS,;t t
6946 s,@LIBINTL@,$LIBINTL,;t t
6947 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
6948 s,@INCINTL@,$INCINTL,;t t
6949 s,@XGETTEXT@,$XGETTEXT,;t t
6950 s,@GMSGFMT@,$GMSGFMT,;t t
6951 s,@POSUB@,$POSUB,;t t
6952 s,@CATALOGS@,$CATALOGS,;t t
6953 s,@DATADIRNAME@,$DATADIRNAME,;t t
6954 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
6955 s,@GENCAT@,$GENCAT,;t t
6956 s,@CATOBJEXT@,$CATOBJEXT,;t t
6957 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6958 s,@MSGFMT@,$MSGFMT,;t t
6959 s,@MSGMERGE@,$MSGMERGE,;t t
6960 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6961 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6962 s,@MAINT@,$MAINT,;t t
6963 s,@CPP@,$CPP,;t t
6964 s,@EGREP@,$EGREP,;t t
6965 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
6966 s,@NO_WERROR@,$NO_WERROR,;t t
6967 s,@datarootdir@,$datarootdir,;t t
6968 s,@docdir@,$docdir,;t t
6969 s,@htmldir@,$htmldir,;t t
6970 s,@LIBOBJS@,$LIBOBJS,;t t
6971 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6972 CEOF
6973
6974 _ACEOF
6975
6976 cat >>$CONFIG_STATUS <<\_ACEOF
6977 # Split the substitutions into bite-sized pieces for seds with
6978 # small command number limits, like on Digital OSF/1 and HP-UX.
6979 ac_max_sed_lines=48
6980 ac_sed_frag=1 # Number of current file.
6981 ac_beg=1 # First line for current file.
6982 ac_end=$ac_max_sed_lines # Line after last line for current file.
6983 ac_more_lines=:
6984 ac_sed_cmds=
6985 while $ac_more_lines; do
6986 if test $ac_beg -gt 1; then
6987 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6988 else
6989 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6990 fi
6991 if test ! -s $tmp/subs.frag; then
6992 ac_more_lines=false
6993 else
6994 # The purpose of the label and of the branching condition is to
6995 # speed up the sed processing (if there are no `@' at all, there
6996 # is no need to browse any of the substitutions).
6997 # These are the two extra sed commands mentioned above.
6998 (echo ':t
6999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7000 if test -z "$ac_sed_cmds"; then
7001 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7002 else
7003 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7004 fi
7005 ac_sed_frag=`expr $ac_sed_frag + 1`
7006 ac_beg=$ac_end
7007 ac_end=`expr $ac_end + $ac_max_sed_lines`
7008 fi
7009 done
7010 if test -z "$ac_sed_cmds"; then
7011 ac_sed_cmds=cat
7012 fi
7013 fi # test -n "$CONFIG_FILES"
7014
7015 _ACEOF
7016 cat >>$CONFIG_STATUS <<\_ACEOF
7017 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7019 case $ac_file in
7020 - | *:- | *:-:* ) # input from stdin
7021 cat >$tmp/stdin
7022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7026 * ) ac_file_in=$ac_file.in ;;
7027 esac
7028
7029 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7030 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7031 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7032 X"$ac_file" : 'X\(//\)[^/]' \| \
7033 X"$ac_file" : 'X\(//\)$' \| \
7034 X"$ac_file" : 'X\(/\)' \| \
7035 . : '\(.\)' 2>/dev/null ||
7036 echo X"$ac_file" |
7037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7039 /^X\(\/\/\)$/{ s//\1/; q; }
7040 /^X\(\/\).*/{ s//\1/; q; }
7041 s/.*/./; q'`
7042 { if $as_mkdir_p; then
7043 mkdir -p "$ac_dir"
7044 else
7045 as_dir="$ac_dir"
7046 as_dirs=
7047 while test ! -d "$as_dir"; do
7048 as_dirs="$as_dir $as_dirs"
7049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7051 X"$as_dir" : 'X\(//\)[^/]' \| \
7052 X"$as_dir" : 'X\(//\)$' \| \
7053 X"$as_dir" : 'X\(/\)' \| \
7054 . : '\(.\)' 2>/dev/null ||
7055 echo X"$as_dir" |
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 done
7062 test ! -n "$as_dirs" || mkdir $as_dirs
7063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7065 { (exit 1); exit 1; }; }; }
7066
7067 ac_builddir=.
7068
7069 if test "$ac_dir" != .; then
7070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7071 # A "../" for each directory in $ac_dir_suffix.
7072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7073 else
7074 ac_dir_suffix= ac_top_builddir=
7075 fi
7076
7077 case $srcdir in
7078 .) # No --srcdir option. We are building in place.
7079 ac_srcdir=.
7080 if test -z "$ac_top_builddir"; then
7081 ac_top_srcdir=.
7082 else
7083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7084 fi ;;
7085 [\\/]* | ?:[\\/]* ) # Absolute path.
7086 ac_srcdir=$srcdir$ac_dir_suffix;
7087 ac_top_srcdir=$srcdir ;;
7088 *) # Relative path.
7089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7091 esac
7092
7093 # Do not use `cd foo && pwd` to compute absolute paths, because
7094 # the directories may not exist.
7095 case `pwd` in
7096 .) ac_abs_builddir="$ac_dir";;
7097 *)
7098 case "$ac_dir" in
7099 .) ac_abs_builddir=`pwd`;;
7100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7102 esac;;
7103 esac
7104 case $ac_abs_builddir in
7105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7106 *)
7107 case ${ac_top_builddir}. in
7108 .) ac_abs_top_builddir=$ac_abs_builddir;;
7109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7111 esac;;
7112 esac
7113 case $ac_abs_builddir in
7114 .) ac_abs_srcdir=$ac_srcdir;;
7115 *)
7116 case $ac_srcdir in
7117 .) ac_abs_srcdir=$ac_abs_builddir;;
7118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7120 esac;;
7121 esac
7122 case $ac_abs_builddir in
7123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7124 *)
7125 case $ac_top_srcdir in
7126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7129 esac;;
7130 esac
7131
7132
7133 case $INSTALL in
7134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7135 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7136 esac
7137
7138 if test x"$ac_file" != x-; then
7139 { echo "$as_me:$LINENO: creating $ac_file" >&5
7140 echo "$as_me: creating $ac_file" >&6;}
7141 rm -f "$ac_file"
7142 fi
7143 # Let's still pretend it is `configure' which instantiates (i.e., don't
7144 # use $as_me), people would be surprised to read:
7145 # /* config.h. Generated by config.status. */
7146 if test x"$ac_file" = x-; then
7147 configure_input=
7148 else
7149 configure_input="$ac_file. "
7150 fi
7151 configure_input=$configure_input"Generated from `echo $ac_file_in |
7152 sed 's,.*/,,'` by configure."
7153
7154 # First look for the input files in the build tree, otherwise in the
7155 # src tree.
7156 ac_file_inputs=`IFS=:
7157 for f in $ac_file_in; do
7158 case $f in
7159 -) echo $tmp/stdin ;;
7160 [\\/$]*)
7161 # Absolute (can't be DOS-style, as IFS=:)
7162 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7163 echo "$as_me: error: cannot find input file: $f" >&2;}
7164 { (exit 1); exit 1; }; }
7165 echo "$f";;
7166 *) # Relative
7167 if test -f "$f"; then
7168 # Build tree
7169 echo "$f"
7170 elif test -f "$srcdir/$f"; then
7171 # Source tree
7172 echo "$srcdir/$f"
7173 else
7174 # /dev/null tree
7175 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7176 echo "$as_me: error: cannot find input file: $f" >&2;}
7177 { (exit 1); exit 1; }; }
7178 fi;;
7179 esac
7180 done` || { (exit 1); exit 1; }
7181 _ACEOF
7182 cat >>$CONFIG_STATUS <<_ACEOF
7183 sed "$ac_vpsub
7184 $extrasub
7185 _ACEOF
7186 cat >>$CONFIG_STATUS <<\_ACEOF
7187 :t
7188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7189 s,@configure_input@,$configure_input,;t t
7190 s,@srcdir@,$ac_srcdir,;t t
7191 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7192 s,@top_srcdir@,$ac_top_srcdir,;t t
7193 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7194 s,@builddir@,$ac_builddir,;t t
7195 s,@abs_builddir@,$ac_abs_builddir,;t t
7196 s,@top_builddir@,$ac_top_builddir,;t t
7197 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7198 s,@INSTALL@,$ac_INSTALL,;t t
7199 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7200 rm -f $tmp/stdin
7201 if test x"$ac_file" != x-; then
7202 mv $tmp/out $ac_file
7203 else
7204 cat $tmp/out
7205 rm -f $tmp/out
7206 fi
7207
7208 done
7209 _ACEOF
7210 cat >>$CONFIG_STATUS <<\_ACEOF
7211
7212 #
7213 # CONFIG_HEADER section.
7214 #
7215
7216 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7217 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7218 #
7219 # ac_d sets the value in "#define NAME VALUE" lines.
7220 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7221 ac_dB='[ ].*$,\1#\2'
7222 ac_dC=' '
7223 ac_dD=',;t'
7224 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7225 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7226 ac_uB='$,\1#\2define\3'
7227 ac_uC=' '
7228 ac_uD=',;t'
7229
7230 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7232 case $ac_file in
7233 - | *:- | *:-:* ) # input from stdin
7234 cat >$tmp/stdin
7235 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7237 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7238 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7239 * ) ac_file_in=$ac_file.in ;;
7240 esac
7241
7242 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7243 echo "$as_me: creating $ac_file" >&6;}
7244
7245 # First look for the input files in the build tree, otherwise in the
7246 # src tree.
7247 ac_file_inputs=`IFS=:
7248 for f in $ac_file_in; do
7249 case $f in
7250 -) echo $tmp/stdin ;;
7251 [\\/$]*)
7252 # Absolute (can't be DOS-style, as IFS=:)
7253 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7254 echo "$as_me: error: cannot find input file: $f" >&2;}
7255 { (exit 1); exit 1; }; }
7256 # Do quote $f, to prevent DOS paths from being IFS'd.
7257 echo "$f";;
7258 *) # Relative
7259 if test -f "$f"; then
7260 # Build tree
7261 echo "$f"
7262 elif test -f "$srcdir/$f"; then
7263 # Source tree
7264 echo "$srcdir/$f"
7265 else
7266 # /dev/null tree
7267 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7268 echo "$as_me: error: cannot find input file: $f" >&2;}
7269 { (exit 1); exit 1; }; }
7270 fi;;
7271 esac
7272 done` || { (exit 1); exit 1; }
7273 # Remove the trailing spaces.
7274 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7275
7276 _ACEOF
7277
7278 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7279 # `conftest.undefs', that substitutes the proper values into
7280 # config.h.in to produce config.h. The first handles `#define'
7281 # templates, and the second `#undef' templates.
7282 # And first: Protect against being on the right side of a sed subst in
7283 # config.status. Protect against being in an unquoted here document
7284 # in config.status.
7285 rm -f conftest.defines conftest.undefs
7286 # Using a here document instead of a string reduces the quoting nightmare.
7287 # Putting comments in sed scripts is not portable.
7288 #
7289 # `end' is used to avoid that the second main sed command (meant for
7290 # 0-ary CPP macros) applies to n-ary macro definitions.
7291 # See the Autoconf documentation for `clear'.
7292 cat >confdef2sed.sed <<\_ACEOF
7293 s/[\\&,]/\\&/g
7294 s,[\\$`],\\&,g
7295 t clear
7296 : clear
7297 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7298 t end
7299 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7300 : end
7301 _ACEOF
7302 # If some macros were called several times there might be several times
7303 # the same #defines, which is useless. Nevertheless, we may not want to
7304 # sort them, since we want the *last* AC-DEFINE to be honored.
7305 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7306 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7307 rm -f confdef2sed.sed
7308
7309 # This sed command replaces #undef with comments. This is necessary, for
7310 # example, in the case of _POSIX_SOURCE, which is predefined and required
7311 # on some systems where configure will not decide to define it.
7312 cat >>conftest.undefs <<\_ACEOF
7313 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7314 _ACEOF
7315
7316 # Break up conftest.defines because some shells have a limit on the size
7317 # of here documents, and old seds have small limits too (100 cmds).
7318 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7319 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7320 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7321 echo ' :' >>$CONFIG_STATUS
7322 rm -f conftest.tail
7323 while grep . conftest.defines >/dev/null
7324 do
7325 # Write a limited-size here document to $tmp/defines.sed.
7326 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7327 # Speed up: don't consider the non `#define' lines.
7328 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7329 # Work around the forget-to-reset-the-flag bug.
7330 echo 't clr' >>$CONFIG_STATUS
7331 echo ': clr' >>$CONFIG_STATUS
7332 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7333 echo 'CEOF
7334 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7335 rm -f $tmp/in
7336 mv $tmp/out $tmp/in
7337 ' >>$CONFIG_STATUS
7338 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7339 rm -f conftest.defines
7340 mv conftest.tail conftest.defines
7341 done
7342 rm -f conftest.defines
7343 echo ' fi # grep' >>$CONFIG_STATUS
7344 echo >>$CONFIG_STATUS
7345
7346 # Break up conftest.undefs because some shells have a limit on the size
7347 # of here documents, and old seds have small limits too (100 cmds).
7348 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7349 rm -f conftest.tail
7350 while grep . conftest.undefs >/dev/null
7351 do
7352 # Write a limited-size here document to $tmp/undefs.sed.
7353 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7354 # Speed up: don't consider the non `#undef'
7355 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7356 # Work around the forget-to-reset-the-flag bug.
7357 echo 't clr' >>$CONFIG_STATUS
7358 echo ': clr' >>$CONFIG_STATUS
7359 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7360 echo 'CEOF
7361 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7362 rm -f $tmp/in
7363 mv $tmp/out $tmp/in
7364 ' >>$CONFIG_STATUS
7365 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7366 rm -f conftest.undefs
7367 mv conftest.tail conftest.undefs
7368 done
7369 rm -f conftest.undefs
7370
7371 cat >>$CONFIG_STATUS <<\_ACEOF
7372 # Let's still pretend it is `configure' which instantiates (i.e., don't
7373 # use $as_me), people would be surprised to read:
7374 # /* config.h. Generated by config.status. */
7375 if test x"$ac_file" = x-; then
7376 echo "/* Generated by configure. */" >$tmp/config.h
7377 else
7378 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7379 fi
7380 cat $tmp/in >>$tmp/config.h
7381 rm -f $tmp/in
7382 if test x"$ac_file" != x-; then
7383 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7384 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7385 echo "$as_me: $ac_file is unchanged" >&6;}
7386 else
7387 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7389 X"$ac_file" : 'X\(//\)[^/]' \| \
7390 X"$ac_file" : 'X\(//\)$' \| \
7391 X"$ac_file" : 'X\(/\)' \| \
7392 . : '\(.\)' 2>/dev/null ||
7393 echo X"$ac_file" |
7394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7396 /^X\(\/\/\)$/{ s//\1/; q; }
7397 /^X\(\/\).*/{ s//\1/; q; }
7398 s/.*/./; q'`
7399 { if $as_mkdir_p; then
7400 mkdir -p "$ac_dir"
7401 else
7402 as_dir="$ac_dir"
7403 as_dirs=
7404 while test ! -d "$as_dir"; do
7405 as_dirs="$as_dir $as_dirs"
7406 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7408 X"$as_dir" : 'X\(//\)[^/]' \| \
7409 X"$as_dir" : 'X\(//\)$' \| \
7410 X"$as_dir" : 'X\(/\)' \| \
7411 . : '\(.\)' 2>/dev/null ||
7412 echo X"$as_dir" |
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 done
7419 test ! -n "$as_dirs" || mkdir $as_dirs
7420 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7421 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7422 { (exit 1); exit 1; }; }; }
7423
7424 rm -f $ac_file
7425 mv $tmp/config.h $ac_file
7426 fi
7427 else
7428 cat $tmp/config.h
7429 rm -f $tmp/config.h
7430 fi
7431 # Compute $ac_file's index in $config_headers.
7432 _am_stamp_count=1
7433 for _am_header in $config_headers :; do
7434 case $_am_header in
7435 $ac_file | $ac_file:* )
7436 break ;;
7437 * )
7438 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7439 esac
7440 done
7441 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7442 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7443 X$ac_file : 'X\(//\)[^/]' \| \
7444 X$ac_file : 'X\(//\)$' \| \
7445 X$ac_file : 'X\(/\)' \| \
7446 . : '\(.\)' 2>/dev/null ||
7447 echo X$ac_file |
7448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7449 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7450 /^X\(\/\/\)$/{ s//\1/; q; }
7451 /^X\(\/\).*/{ s//\1/; q; }
7452 s/.*/./; q'`/stamp-h$_am_stamp_count
7453 done
7454 _ACEOF
7455 cat >>$CONFIG_STATUS <<\_ACEOF
7456
7457 #
7458 # CONFIG_COMMANDS section.
7459 #
7460 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7461 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7462 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7463 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7464 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7465 X"$ac_dest" : 'X\(//\)[^/]' \| \
7466 X"$ac_dest" : 'X\(//\)$' \| \
7467 X"$ac_dest" : 'X\(/\)' \| \
7468 . : '\(.\)' 2>/dev/null ||
7469 echo X"$ac_dest" |
7470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7472 /^X\(\/\/\)$/{ s//\1/; q; }
7473 /^X\(\/\).*/{ s//\1/; q; }
7474 s/.*/./; q'`
7475 { if $as_mkdir_p; then
7476 mkdir -p "$ac_dir"
7477 else
7478 as_dir="$ac_dir"
7479 as_dirs=
7480 while test ! -d "$as_dir"; do
7481 as_dirs="$as_dir $as_dirs"
7482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7484 X"$as_dir" : 'X\(//\)[^/]' \| \
7485 X"$as_dir" : 'X\(//\)$' \| \
7486 X"$as_dir" : 'X\(/\)' \| \
7487 . : '\(.\)' 2>/dev/null ||
7488 echo X"$as_dir" |
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 done
7495 test ! -n "$as_dirs" || mkdir $as_dirs
7496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7497 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7498 { (exit 1); exit 1; }; }; }
7499
7500 ac_builddir=.
7501
7502 if test "$ac_dir" != .; then
7503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7504 # A "../" for each directory in $ac_dir_suffix.
7505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7506 else
7507 ac_dir_suffix= ac_top_builddir=
7508 fi
7509
7510 case $srcdir in
7511 .) # No --srcdir option. We are building in place.
7512 ac_srcdir=.
7513 if test -z "$ac_top_builddir"; then
7514 ac_top_srcdir=.
7515 else
7516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7517 fi ;;
7518 [\\/]* | ?:[\\/]* ) # Absolute path.
7519 ac_srcdir=$srcdir$ac_dir_suffix;
7520 ac_top_srcdir=$srcdir ;;
7521 *) # Relative path.
7522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7524 esac
7525
7526 # Do not use `cd foo && pwd` to compute absolute paths, because
7527 # the directories may not exist.
7528 case `pwd` in
7529 .) ac_abs_builddir="$ac_dir";;
7530 *)
7531 case "$ac_dir" in
7532 .) ac_abs_builddir=`pwd`;;
7533 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7534 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7535 esac;;
7536 esac
7537 case $ac_abs_builddir in
7538 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7539 *)
7540 case ${ac_top_builddir}. in
7541 .) ac_abs_top_builddir=$ac_abs_builddir;;
7542 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7543 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7544 esac;;
7545 esac
7546 case $ac_abs_builddir in
7547 .) ac_abs_srcdir=$ac_srcdir;;
7548 *)
7549 case $ac_srcdir in
7550 .) ac_abs_srcdir=$ac_abs_builddir;;
7551 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7552 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7553 esac;;
7554 esac
7555 case $ac_abs_builddir in
7556 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7557 *)
7558 case $ac_top_srcdir in
7559 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7560 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7561 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7562 esac;;
7563 esac
7564
7565
7566 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7567 echo "$as_me: executing $ac_dest commands" >&6;}
7568 case $ac_dest in
7569 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7570 # Strip MF so we end up with the name of the file.
7571 mf=`echo "$mf" | sed -e 's/:.*$//'`
7572 # Check whether this is an Automake generated Makefile or not.
7573 # We used to match only the files named `Makefile.in', but
7574 # some people rename them; so instead we look at the file content.
7575 # Grep'ing the first line is not enough: some people post-process
7576 # each Makefile.in and add a new line on top of each file to say so.
7577 # So let's grep whole file.
7578 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7579 dirpart=`(dirname "$mf") 2>/dev/null ||
7580 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7581 X"$mf" : 'X\(//\)[^/]' \| \
7582 X"$mf" : 'X\(//\)$' \| \
7583 X"$mf" : 'X\(/\)' \| \
7584 . : '\(.\)' 2>/dev/null ||
7585 echo X"$mf" |
7586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7588 /^X\(\/\/\)$/{ s//\1/; q; }
7589 /^X\(\/\).*/{ s//\1/; q; }
7590 s/.*/./; q'`
7591 else
7592 continue
7593 fi
7594 # Extract the definition of DEPDIR, am__include, and am__quote
7595 # from the Makefile without running `make'.
7596 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7597 test -z "$DEPDIR" && continue
7598 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7599 test -z "am__include" && continue
7600 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7601 # When using ansi2knr, U may be empty or an underscore; expand it
7602 U=`sed -n 's/^U = //p' < "$mf"`
7603 # Find all dependency output files, they are included files with
7604 # $(DEPDIR) in their names. We invoke sed twice because it is the
7605 # simplest approach to changing $(DEPDIR) to its actual value in the
7606 # expansion.
7607 for file in `sed -n "
7608 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7609 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7610 # Make sure the directory exists.
7611 test -f "$dirpart/$file" && continue
7612 fdir=`(dirname "$file") 2>/dev/null ||
7613 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7614 X"$file" : 'X\(//\)[^/]' \| \
7615 X"$file" : 'X\(//\)$' \| \
7616 X"$file" : 'X\(/\)' \| \
7617 . : '\(.\)' 2>/dev/null ||
7618 echo X"$file" |
7619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7621 /^X\(\/\/\)$/{ s//\1/; q; }
7622 /^X\(\/\).*/{ s//\1/; q; }
7623 s/.*/./; q'`
7624 { if $as_mkdir_p; then
7625 mkdir -p $dirpart/$fdir
7626 else
7627 as_dir=$dirpart/$fdir
7628 as_dirs=
7629 while test ! -d "$as_dir"; do
7630 as_dirs="$as_dir $as_dirs"
7631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7633 X"$as_dir" : 'X\(//\)[^/]' \| \
7634 X"$as_dir" : 'X\(//\)$' \| \
7635 X"$as_dir" : 'X\(/\)' \| \
7636 . : '\(.\)' 2>/dev/null ||
7637 echo X"$as_dir" |
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 done
7644 test ! -n "$as_dirs" || mkdir $as_dirs
7645 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7646 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7647 { (exit 1); exit 1; }; }; }
7648
7649 # echo "creating $dirpart/$file"
7650 echo '# dummy' > "$dirpart/$file"
7651 done
7652 done
7653 ;;
7654 default-1 )
7655 for ac_file in $CONFIG_FILES; do
7656 # Support "outfile[:infile[:infile...]]"
7657 case "$ac_file" in
7658 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7659 esac
7660 # PO directories have a Makefile.in generated from Makefile.in.in.
7661 case "$ac_file" in */Makefile.in)
7662 # Adjust a relative srcdir.
7663 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
7664 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
7665 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
7666 # In autoconf-2.13 it is called $ac_given_srcdir.
7667 # In autoconf-2.50 it is called $srcdir.
7668 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
7669 case "$ac_given_srcdir" in
7670 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
7671 /*) top_srcdir="$ac_given_srcdir" ;;
7672 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
7673 esac
7674 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
7675 rm -f "$ac_dir/POTFILES"
7676 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
7677 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
7678 POMAKEFILEDEPS="POTFILES.in"
7679 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
7680 # on $ac_dir but don't depend on user-specified configuration
7681 # parameters.
7682 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
7683 # The LINGUAS file contains the set of available languages.
7684 if test -n "$OBSOLETE_ALL_LINGUAS"; then
7685 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
7686 fi
7687 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
7688 # Hide the ALL_LINGUAS assigment from automake.
7689 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
7690 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
7691 else
7692 # The set of available languages was given in configure.in.
7693 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
7694 fi
7695 case "$ac_given_srcdir" in
7696 .) srcdirpre= ;;
7697 *) srcdirpre='$(srcdir)/' ;;
7698 esac
7699 POFILES=
7700 GMOFILES=
7701 UPDATEPOFILES=
7702 DUMMYPOFILES=
7703 for lang in $ALL_LINGUAS; do
7704 POFILES="$POFILES $srcdirpre$lang.po"
7705 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
7706 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
7707 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
7708 done
7709 # CATALOGS depends on both $ac_dir and the user's LINGUAS
7710 # environment variable.
7711 INST_LINGUAS=
7712 if test -n "$ALL_LINGUAS"; then
7713 for presentlang in $ALL_LINGUAS; do
7714 useit=no
7715 if test "%UNSET%" != "$LINGUAS"; then
7716 desiredlanguages="$LINGUAS"
7717 else
7718 desiredlanguages="$ALL_LINGUAS"
7719 fi
7720 for desiredlang in $desiredlanguages; do
7721 # Use the presentlang catalog if desiredlang is
7722 # a. equal to presentlang, or
7723 # b. a variant of presentlang (because in this case,
7724 # presentlang can be used as a fallback for messages
7725 # which are not translated in the desiredlang catalog).
7726 case "$desiredlang" in
7727 "$presentlang"*) useit=yes;;
7728 esac
7729 done
7730 if test $useit = yes; then
7731 INST_LINGUAS="$INST_LINGUAS $presentlang"
7732 fi
7733 done
7734 fi
7735 CATALOGS=
7736 if test -n "$INST_LINGUAS"; then
7737 for lang in $INST_LINGUAS; do
7738 CATALOGS="$CATALOGS $lang.gmo"
7739 done
7740 fi
7741 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
7742 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"
7743 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
7744 if test -f "$f"; then
7745 case "$f" in
7746 *.orig | *.bak | *~) ;;
7747 *) cat "$f" >> "$ac_dir/Makefile" ;;
7748 esac
7749 fi
7750 done
7751 fi
7752 ;;
7753 esac
7754 done ;;
7755 esac
7756 done
7757 _ACEOF
7758
7759 cat >>$CONFIG_STATUS <<\_ACEOF
7760
7761 { (exit 0); exit 0; }
7762 _ACEOF
7763 chmod +x $CONFIG_STATUS
7764 ac_clean_files=$ac_clean_files_save
7765
7766
7767 # configure is writing to config.log, and then calls config.status.
7768 # config.status does its own redirection, appending to config.log.
7769 # Unfortunately, on DOS this fails, as config.log is still kept open
7770 # by configure, so config.status won't be able to write to it; its
7771 # output is simply discarded. So we exec the FD to /dev/null,
7772 # effectively closing config.log, so it can be properly (re)opened and
7773 # appended to by config.status. When coming back to configure, we
7774 # need to make the FD available again.
7775 if test "$no_create" != yes; then
7776 ac_cs_success=:
7777 ac_config_status_args=
7778 test "$silent" = yes &&
7779 ac_config_status_args="$ac_config_status_args --quiet"
7780 exec 5>/dev/null
7781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7782 exec 5>>config.log
7783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7784 # would make configure fail if this is the last instruction.
7785 $ac_cs_success || { (exit 1); exit 1; }
7786 fi
7787
This page took 0.251903 seconds and 5 git commands to generate.