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