OSDN Git Service

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