OSDN Git Service

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