upload tizen1.0 source
[external/popt.git] / 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 # Find the correct PATH separator.  Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13   UNAME=${UNAME-`uname 2>/dev/null`}
14   case X$UNAME in
15     *-DOS) lt_cv_sys_path_separator=';' ;;
16     *)     lt_cv_sys_path_separator=':' ;;
17   esac
18   PATH_SEPARATOR=$lt_cv_sys_path_separator
19 fi
20
21
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
24
25 case X$ECHO in
26 X*--fallback-echo)
27   # Remove one level of quotation (which was required for Make).
28   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29   ;;
30 esac
31
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34   # Discard the --no-reexec flag, and continue.
35   shift
36 elif test "X$1" = X--fallback-echo; then
37   # Avoid inline document here, it may be left over
38   :
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40   # Yippee, $echo works!
41   :
42 else
43   # Restart under the correct shell.
44   exec $SHELL "$0" --no-reexec ${1+"$@"}
45 fi
46
47 if test "X$1" = X--fallback-echo; then
48   # used as fallback echo
49   shift
50   cat <<EOF
51
52 EOF
53   exit 0
54 fi
55
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66        echo_test_string="`eval $cmd`" &&
67        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68     then
69       break
70     fi
71   done
72 fi
73
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76    test "X$echo_testing_string" = "X$echo_test_string"; then
77   :
78 else
79   # The Solaris, AIX, and Digital Unix default echo programs unquote
80   # backslashes.  This makes it impossible to quote backslashes using
81   #   echo "$something" | sed 's/\\/\\\\/g'
82   #
83   # So, first we look for a working echo in the user's PATH.
84
85   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86   for dir in $PATH /usr/ucb; do
87     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90        test "X$echo_testing_string" = "X$echo_test_string"; then
91       echo="$dir/echo"
92       break
93     fi
94   done
95   IFS="$save_ifs"
96
97   if test "X$echo" = Xecho; then
98     # We didn't find a better echo, so look for alternatives.
99     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101        test "X$echo_testing_string" = "X$echo_test_string"; then
102       # This shell has a builtin print -r that does the trick.
103       echo='print -r'
104     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105          test "X$CONFIG_SHELL" != X/bin/ksh; then
106       # If we have ksh, try running configure again with it.
107       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108       export ORIGINAL_CONFIG_SHELL
109       CONFIG_SHELL=/bin/ksh
110       export CONFIG_SHELL
111       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112     else
113       # Try using printf.
114       echo='printf %s\n'
115       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117          test "X$echo_testing_string" = "X$echo_test_string"; then
118         # Cool, printf works
119         :
120       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121            test "X$echo_testing_string" = 'X\t' &&
122            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123            test "X$echo_testing_string" = "X$echo_test_string"; then
124         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125         export CONFIG_SHELL
126         SHELL="$CONFIG_SHELL"
127         export SHELL
128         echo="$CONFIG_SHELL $0 --fallback-echo"
129       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130            test "X$echo_testing_string" = 'X\t' &&
131            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132            test "X$echo_testing_string" = "X$echo_test_string"; then
133         echo="$CONFIG_SHELL $0 --fallback-echo"
134       else
135         # maybe with a smaller string...
136         prev=:
137
138         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140           then
141             break
142           fi
143           prev="$cmd"
144         done
145
146         if test "$prev" != 'sed 50q "$0"'; then
147           echo_test_string=`eval $prev`
148           export echo_test_string
149           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150         else
151           # Oops.  We lost completely, so just stick with echo.
152           echo=echo
153         fi
154       fi
155     fi
156   fi
157 fi
158 fi
159
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
162 ECHO=$echo
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 fi
166
167
168
169 if expr a : '\(a\)' >/dev/null 2>&1; then
170   as_expr=expr
171 else
172   as_expr=false
173 fi
174
175
176 ## --------------------- ##
177 ## M4sh Initialization.  ##
178 ## --------------------- ##
179
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182   emulate sh
183   NULLCMD=:
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185   set -o posix
186 fi
187
188 # NLS nuisances.
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191   as_unset=unset
192 else
193   as_unset=false
194 fi
195
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197     { $as_unset LANG || test "${LANG+set}" != set; } ||
198       { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201       { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204       { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207       { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210       { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213       { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216       { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219       { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225          X"$0" : 'X\(//\)$' \| \
226          X"$0" : 'X\(/\)$' \| \
227          .     : '\(.\)' 2>/dev/null ||
228 echo X/"$0" |
229     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230           /^X\/\(\/\/\)$/{ s//\1/; q; }
231           /^X\/\(\/\).*/{ s//\1/; q; }
232           s/.*/./; q'`
233
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244   echo "#! /bin/sh" >conftest.sh
245   echo  "exit 0"   >>conftest.sh
246   chmod +x conftest.sh
247   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248     PATH_SEPARATOR=';'
249   else
250     PATH_SEPARATOR=:
251   fi
252   rm -f conftest.sh
253 fi
254
255
256   as_lineno_1=$LINENO
257   as_lineno_2=$LINENO
258   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259   test "x$as_lineno_1" != "x$as_lineno_2" &&
260   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
261   # Find who we are.  Look in the path if we contain no path at all
262   # relative or not.
263   case $0 in
264     *[\\/]* ) as_myself=$0 ;;
265     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266 for as_dir in $PATH
267 do
268   IFS=$as_save_IFS
269   test -z "$as_dir" && as_dir=.
270   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271 done
272
273        ;;
274   esac
275   # We did not find ourselves, most probably we were run as `sh COMMAND'
276   # in which case we are not to be found in the path.
277   if test "x$as_myself" = x; then
278     as_myself=$0
279   fi
280   if test ! -f "$as_myself"; then
281     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282    { (exit 1); exit 1; }; }
283   fi
284   case $CONFIG_SHELL in
285   '')
286     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288 do
289   IFS=$as_save_IFS
290   test -z "$as_dir" && as_dir=.
291   for as_base in sh bash ksh sh5; do
292          case $as_dir in
293          /*)
294            if ("$as_dir/$as_base" -c '
295   as_lineno_1=$LINENO
296   as_lineno_2=$LINENO
297   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298   test "x$as_lineno_1" != "x$as_lineno_2" &&
299   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
300              CONFIG_SHELL=$as_dir/$as_base
301              export CONFIG_SHELL
302              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303            fi;;
304          esac
305        done
306 done
307 ;;
308   esac
309
310   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311   # uniformly replaced by the line number.  The first 'sed' inserts a
312   # line-number line before each line; the second 'sed' does the real
313   # work.  The second script uses 'N' to pair each line-number line
314   # with the numbered line, and appends trailing '-' during
315   # substitution so that $LINENO is not a special case at line end.
316   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
318   sed '=' <$as_myself |
319     sed '
320       N
321       s,$,-,
322       : loop
323       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324       t loop
325       s,-$,,
326       s,^['$as_cr_digits']*\n,,
327     ' >$as_me.lineno &&
328   chmod +x $as_me.lineno ||
329     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330    { (exit 1); exit 1; }; }
331
332   # Don't try to exec as it changes $[0], causing all sort of problems
333   # (the dirname of $[0] is not the place where we might find the
334   # original and so on.  Autoconf is especially sensible to this).
335   . ./$as_me.lineno
336   # Exit status is that of the last command.
337   exit
338 }
339
340
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342   *c*,-n*) ECHO_N= ECHO_C='
343 ' ECHO_T='      ' ;;
344   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
346 esac
347
348 if expr a : '\(a\)' >/dev/null 2>&1; then
349   as_expr=expr
350 else
351   as_expr=false
352 fi
353
354 rm -f conf$$ conf$$.exe conf$$.file
355 echo >conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357   # We could just check for DJGPP; but this test a) works b) is more generic
358   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359   if test -f conf$$.exe; then
360     # Don't use ln at all; we don't have any links
361     as_ln_s='cp -p'
362   else
363     as_ln_s='ln -s'
364   fi
365 elif ln conf$$.file conf$$ 2>/dev/null; then
366   as_ln_s=ln
367 else
368   as_ln_s='cp -p'
369 fi
370 rm -f conf$$ conf$$.exe conf$$.file
371
372 as_executable_p="test -f"
373
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381 # IFS
382 # We need space, tab and new line, in precisely that order.
383 as_nl='
384 '
385 IFS="   $as_nl"
386
387 # CDPATH.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391 # Name of the host.
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396 exec 6>&1
397
398 #
399 # Initializations.
400 #
401 ac_default_prefix=/usr/local
402 cross_compiling=no
403 subdirs=
404 MFLAGS=
405 MAKEFLAGS=
406 SHELL=${CONFIG_SHELL-/bin/sh}
407
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete.  It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
412
413 # Identity of this package.
414 PACKAGE_NAME=
415 PACKAGE_TARNAME=
416 PACKAGE_VERSION=
417 PACKAGE_STRING=
418 PACKAGE_BUGREPORT=
419
420 ac_unique_file="popt.h"
421 # Factoring default headers for most tests.
422 ac_includes_default="\
423 #include <stdio.h>
424 #if HAVE_SYS_TYPES_H
425 # include <sys/types.h>
426 #endif
427 #if HAVE_SYS_STAT_H
428 # include <sys/stat.h>
429 #endif
430 #if STDC_HEADERS
431 # include <stdlib.h>
432 # include <stddef.h>
433 #else
434 # if HAVE_STDLIB_H
435 #  include <stdlib.h>
436 # endif
437 #endif
438 #if HAVE_STRING_H
439 # if !STDC_HEADERS && HAVE_MEMORY_H
440 #  include <memory.h>
441 # endif
442 # include <string.h>
443 #endif
444 #if HAVE_STRINGS_H
445 # include <strings.h>
446 #endif
447 #if HAVE_INTTYPES_H
448 # include <inttypes.h>
449 #else
450 # if HAVE_STDINT_H
451 #  include <stdint.h>
452 # endif
453 #endif
454 #if HAVE_UNISTD_H
455 # include <unistd.h>
456 #endif"
457
458
459 # Initialize some variables set by options.
460 ac_init_help=
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
464 cache_file=/dev/null
465 exec_prefix=NONE
466 no_create=
467 no_recursion=
468 prefix=NONE
469 program_prefix=NONE
470 program_suffix=NONE
471 program_transform_name=s,x,x,
472 silent=
473 site=
474 srcdir=
475 verbose=
476 x_includes=NONE
477 x_libraries=NONE
478
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
496
497 ac_prev=
498 for ac_option
499 do
500   # If the previous option needs an argument, assign it.
501   if test -n "$ac_prev"; then
502     eval "$ac_prev=\$ac_option"
503     ac_prev=
504     continue
505   fi
506
507   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
508
509   # Accept the important Cygnus configure options, so we can diagnose typos.
510
511   case $ac_option in
512
513   -bindir | --bindir | --bindi | --bind | --bin | --bi)
514     ac_prev=bindir ;;
515   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
516     bindir=$ac_optarg ;;
517
518   -build | --build | --buil | --bui | --bu)
519     ac_prev=build_alias ;;
520   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521     build_alias=$ac_optarg ;;
522
523   -cache-file | --cache-file | --cache-fil | --cache-fi \
524   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525     ac_prev=cache_file ;;
526   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528     cache_file=$ac_optarg ;;
529
530   --config-cache | -C)
531     cache_file=config.cache ;;
532
533   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534     ac_prev=datadir ;;
535   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536   | --da=*)
537     datadir=$ac_optarg ;;
538
539   -disable-* | --disable-*)
540     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541     # Reject names that are not valid shell variable names.
542     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544    { (exit 1); exit 1; }; }
545     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546     eval "enable_$ac_feature=no" ;;
547
548   -enable-* | --enable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     case $ac_option in
556       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557       *) ac_optarg=yes ;;
558     esac
559     eval "enable_$ac_feature='$ac_optarg'" ;;
560
561   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563   | --exec | --exe | --ex)
564     ac_prev=exec_prefix ;;
565   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567   | --exec=* | --exe=* | --ex=*)
568     exec_prefix=$ac_optarg ;;
569
570   -gas | --gas | --ga | --g)
571     # Obsolete; use --with-gas.
572     with_gas=yes ;;
573
574   -help | --help | --hel | --he | -h)
575     ac_init_help=long ;;
576   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577     ac_init_help=recursive ;;
578   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579     ac_init_help=short ;;
580
581   -host | --host | --hos | --ho)
582     ac_prev=host_alias ;;
583   -host=* | --host=* | --hos=* | --ho=*)
584     host_alias=$ac_optarg ;;
585
586   -includedir | --includedir | --includedi | --included | --include \
587   | --includ | --inclu | --incl | --inc)
588     ac_prev=includedir ;;
589   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590   | --includ=* | --inclu=* | --incl=* | --inc=*)
591     includedir=$ac_optarg ;;
592
593   -infodir | --infodir | --infodi | --infod | --info | --inf)
594     ac_prev=infodir ;;
595   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596     infodir=$ac_optarg ;;
597
598   -libdir | --libdir | --libdi | --libd)
599     ac_prev=libdir ;;
600   -libdir=* | --libdir=* | --libdi=* | --libd=*)
601     libdir=$ac_optarg ;;
602
603   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604   | --libexe | --libex | --libe)
605     ac_prev=libexecdir ;;
606   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607   | --libexe=* | --libex=* | --libe=*)
608     libexecdir=$ac_optarg ;;
609
610   -localstatedir | --localstatedir | --localstatedi | --localstated \
611   | --localstate | --localstat | --localsta | --localst \
612   | --locals | --local | --loca | --loc | --lo)
613     ac_prev=localstatedir ;;
614   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617     localstatedir=$ac_optarg ;;
618
619   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
620     ac_prev=mandir ;;
621   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622     mandir=$ac_optarg ;;
623
624   -nfp | --nfp | --nf)
625     # Obsolete; use --without-fp.
626     with_fp=no ;;
627
628   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629   | --no-cr | --no-c | -n)
630     no_create=yes ;;
631
632   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
634     no_recursion=yes ;;
635
636   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638   | --oldin | --oldi | --old | --ol | --o)
639     ac_prev=oldincludedir ;;
640   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643     oldincludedir=$ac_optarg ;;
644
645   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
646     ac_prev=prefix ;;
647   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
648     prefix=$ac_optarg ;;
649
650   -program-prefix | --program-prefix | --program-prefi | --program-pref \
651   | --program-pre | --program-pr | --program-p)
652     ac_prev=program_prefix ;;
653   -program-prefix=* | --program-prefix=* | --program-prefi=* \
654   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655     program_prefix=$ac_optarg ;;
656
657   -program-suffix | --program-suffix | --program-suffi | --program-suff \
658   | --program-suf | --program-su | --program-s)
659     ac_prev=program_suffix ;;
660   -program-suffix=* | --program-suffix=* | --program-suffi=* \
661   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662     program_suffix=$ac_optarg ;;
663
664   -program-transform-name | --program-transform-name \
665   | --program-transform-nam | --program-transform-na \
666   | --program-transform-n | --program-transform- \
667   | --program-transform | --program-transfor \
668   | --program-transfo | --program-transf \
669   | --program-trans | --program-tran \
670   | --progr-tra | --program-tr | --program-t)
671     ac_prev=program_transform_name ;;
672   -program-transform-name=* | --program-transform-name=* \
673   | --program-transform-nam=* | --program-transform-na=* \
674   | --program-transform-n=* | --program-transform-=* \
675   | --program-transform=* | --program-transfor=* \
676   | --program-transfo=* | --program-transf=* \
677   | --program-trans=* | --program-tran=* \
678   | --progr-tra=* | --program-tr=* | --program-t=*)
679     program_transform_name=$ac_optarg ;;
680
681   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682   | -silent | --silent | --silen | --sile | --sil)
683     silent=yes ;;
684
685   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
686     ac_prev=sbindir ;;
687   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
688   | --sbi=* | --sb=*)
689     sbindir=$ac_optarg ;;
690
691   -sharedstatedir | --sharedstatedir | --sharedstatedi \
692   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693   | --sharedst | --shareds | --shared | --share | --shar \
694   | --sha | --sh)
695     ac_prev=sharedstatedir ;;
696   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
699   | --sha=* | --sh=*)
700     sharedstatedir=$ac_optarg ;;
701
702   -site | --site | --sit)
703     ac_prev=site ;;
704   -site=* | --site=* | --sit=*)
705     site=$ac_optarg ;;
706
707   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
708     ac_prev=srcdir ;;
709   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
710     srcdir=$ac_optarg ;;
711
712   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713   | --syscon | --sysco | --sysc | --sys | --sy)
714     ac_prev=sysconfdir ;;
715   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717     sysconfdir=$ac_optarg ;;
718
719   -target | --target | --targe | --targ | --tar | --ta | --t)
720     ac_prev=target_alias ;;
721   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722     target_alias=$ac_optarg ;;
723
724   -v | -verbose | --verbose | --verbos | --verbo | --verb)
725     verbose=yes ;;
726
727   -version | --version | --versio | --versi | --vers | -V)
728     ac_init_version=: ;;
729
730   -with-* | --with-*)
731     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732     # Reject names that are not valid shell variable names.
733     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734       { echo "$as_me: error: invalid package name: $ac_package" >&2
735    { (exit 1); exit 1; }; }
736     ac_package=`echo $ac_package| sed 's/-/_/g'`
737     case $ac_option in
738       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739       *) ac_optarg=yes ;;
740     esac
741     eval "with_$ac_package='$ac_optarg'" ;;
742
743   -without-* | --without-*)
744     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package | sed 's/-/_/g'`
750     eval "with_$ac_package=no" ;;
751
752   --x)
753     # Obsolete; use --with-x.
754     with_x=yes ;;
755
756   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757   | --x-incl | --x-inc | --x-in | --x-i)
758     ac_prev=x_includes ;;
759   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761     x_includes=$ac_optarg ;;
762
763   -x-libraries | --x-libraries | --x-librarie | --x-librari \
764   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765     ac_prev=x_libraries ;;
766   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768     x_libraries=$ac_optarg ;;
769
770   -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772    { (exit 1); exit 1; }; }
773     ;;
774
775   *=*)
776     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777     # Reject names that are not valid shell variable names.
778     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780    { (exit 1); exit 1; }; }
781     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782     eval "$ac_envvar='$ac_optarg'"
783     export $ac_envvar ;;
784
785   *)
786     # FIXME: should be removed in autoconf 3.0.
787     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
791     ;;
792
793   esac
794 done
795
796 if test -n "$ac_prev"; then
797   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798   { echo "$as_me: error: missing argument to $ac_option" >&2
799    { (exit 1); exit 1; }; }
800 fi
801
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
804 do
805   eval ac_val=$`echo $ac_var`
806   case $ac_val in
807     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809    { (exit 1); exit 1; }; };;
810   esac
811 done
812
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815               localstatedir libdir includedir oldincludedir infodir mandir
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
828 build=$build_alias
829 host=$host_alias
830 target=$target_alias
831
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834   if test "x$build_alias" = x; then
835     cross_compiling=maybe
836     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837     If a cross compiler is detected then cross compile mode will be used." >&2
838   elif test "x$build_alias" != "x$host_alias"; then
839     cross_compiling=yes
840   fi
841 fi
842
843 ac_tool_prefix=
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
845
846 test "$silent" = yes && exec 6>/dev/null
847
848
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851   ac_srcdir_defaulted=yes
852   # Try the directory containing this script, then its parent.
853   ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855          X"$0" : 'X\(//\)[^/]' \| \
856          X"$0" : 'X\(//\)$' \| \
857          X"$0" : 'X\(/\)' \| \
858          .     : '\(.\)' 2>/dev/null ||
859 echo X"$0" |
860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862           /^X\(\/\/\)$/{ s//\1/; q; }
863           /^X\(\/\).*/{ s//\1/; q; }
864           s/.*/./; q'`
865   srcdir=$ac_confdir
866   if test ! -r $srcdir/$ac_unique_file; then
867     srcdir=..
868   fi
869 else
870   ac_srcdir_defaulted=no
871 fi
872 if test ! -r $srcdir/$ac_unique_file; then
873   if test "$ac_srcdir_defaulted" = yes; then
874     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875    { (exit 1); exit 1; }; }
876   else
877     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878    { (exit 1); exit 1; }; }
879   fi
880 fi
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
895 ac_env_CC_value=$CC
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CPP_set=${CPP+set}
911 ac_env_CPP_value=$CPP
912 ac_cv_env_CPP_set=${CPP+set}
913 ac_cv_env_CPP_value=$CPP
914
915 #
916 # Report the --help message.
917 #
918 if test "$ac_init_help" = "long"; then
919   # Omit some internal or obsolete options to make the list less imposing.
920   # This message is too long to be a string in the A/UX 3.1 sh.
921   cat <<_ACEOF
922 \`configure' configures this package to adapt to many kinds of systems.
923
924 Usage: $0 [OPTION]... [VAR=VALUE]...
925
926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
927 VAR=VALUE.  See below for descriptions of some of the useful variables.
928
929 Defaults for the options are specified in brackets.
930
931 Configuration:
932   -h, --help              display this help and exit
933       --help=short        display options specific to this package
934       --help=recursive    display the short help of all the included packages
935   -V, --version           display version information and exit
936   -q, --quiet, --silent   do not print \`checking...' messages
937       --cache-file=FILE   cache test results in FILE [disabled]
938   -C, --config-cache      alias for \`--cache-file=config.cache'
939   -n, --no-create         do not create output files
940       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
941
942 _ACEOF
943
944   cat <<_ACEOF
945 Installation directories:
946   --prefix=PREFIX         install architecture-independent files in PREFIX
947                           [$ac_default_prefix]
948   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
949                           [PREFIX]
950
951 By default, \`make install' will install all the files in
952 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
953 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
954 for instance \`--prefix=\$HOME'.
955
956 For better control, use the options below.
957
958 Fine tuning of the installation directories:
959   --bindir=DIR           user executables [EPREFIX/bin]
960   --sbindir=DIR          system admin executables [EPREFIX/sbin]
961   --libexecdir=DIR       program executables [EPREFIX/libexec]
962   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
963   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
964   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
965   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
966   --libdir=DIR           object code libraries [EPREFIX/lib]
967   --includedir=DIR       C header files [PREFIX/include]
968   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
969   --infodir=DIR          info documentation [PREFIX/info]
970   --mandir=DIR           man documentation [PREFIX/man]
971 _ACEOF
972
973   cat <<\_ACEOF
974
975 Program names:
976   --program-prefix=PREFIX            prepend PREFIX to installed program names
977   --program-suffix=SUFFIX            append SUFFIX to installed program names
978   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
979
980 System types:
981   --build=BUILD     configure for building on BUILD [guessed]
982   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
983   --target=TARGET   configure for building compilers for TARGET [HOST]
984 _ACEOF
985 fi
986
987 if test -n "$ac_init_help"; then
988
989   cat <<\_ACEOF
990
991 Optional Features:
992   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
993   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
994   --disable-dependency-tracking Speeds up one-time builds
995   --enable-dependency-tracking  Do not reject slow dependency extractors
996   --enable-shared=PKGS  build shared libraries default=yes
997   --enable-static=PKGS  build static libraries default=yes
998   --enable-fast-install=PKGS  optimize for fast installation default=yes
999   --disable-libtool-lock  avoid locking (might break parallel builds)
1000   --disable-rpath         do not hardcode runtime library paths
1001   --disable-nls           do not use Native Language Support
1002
1003 Optional Packages:
1004   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1005   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1006   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1007   --with-pic              try to use only PIC/non-PIC objects default=use both
1008   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1009   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1010   --with-included-gettext use the GNU gettext library included here
1011   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1012   --without-libintl-prefix     don't search for libintl in includedir and libdir
1013
1014 Some influential environment variables:
1015   CC          C compiler command
1016   CFLAGS      C compiler flags
1017   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1018               nonstandard directory <lib dir>
1019   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020               headers in a nonstandard directory <include dir>
1021   CPP         C preprocessor
1022
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1025
1026 _ACEOF
1027 fi
1028
1029 if test "$ac_init_help" = "recursive"; then
1030   # If there are subdirs, report their specific --help.
1031   ac_popdir=`pwd`
1032   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033     test -d $ac_dir || continue
1034     ac_builddir=.
1035
1036 if test "$ac_dir" != .; then
1037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038   # A "../" for each directory in $ac_dir_suffix.
1039   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041   ac_dir_suffix= ac_top_builddir=
1042 fi
1043
1044 case $srcdir in
1045   .)  # No --srcdir option.  We are building in place.
1046     ac_srcdir=.
1047     if test -z "$ac_top_builddir"; then
1048        ac_top_srcdir=.
1049     else
1050        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051     fi ;;
1052   [\\/]* | ?:[\\/]* )  # Absolute path.
1053     ac_srcdir=$srcdir$ac_dir_suffix;
1054     ac_top_srcdir=$srcdir ;;
1055   *) # Relative path.
1056     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1060 # absolute.
1061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1062 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1065
1066     cd $ac_dir
1067     # Check for guested configure; otherwise get Cygnus style configure.
1068     if test -f $ac_srcdir/configure.gnu; then
1069       echo
1070       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1071     elif test -f $ac_srcdir/configure; then
1072       echo
1073       $SHELL $ac_srcdir/configure  --help=recursive
1074     elif test -f $ac_srcdir/configure.ac ||
1075            test -f $ac_srcdir/configure.in; then
1076       echo
1077       $ac_configure --help
1078     else
1079       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1080     fi
1081     cd $ac_popdir
1082   done
1083 fi
1084
1085 test -n "$ac_init_help" && exit 0
1086 if $ac_init_version; then
1087   cat <<\_ACEOF
1088
1089 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1090 Free Software Foundation, Inc.
1091 This configure script is free software; the Free Software Foundation
1092 gives unlimited permission to copy, distribute and modify it.
1093 _ACEOF
1094   exit 0
1095 fi
1096 exec 5>config.log
1097 cat >&5 <<_ACEOF
1098 This file contains any messages produced by compilers while
1099 running configure, to aid debugging if configure makes a mistake.
1100
1101 It was created by $as_me, which was
1102 generated by GNU Autoconf 2.53.  Invocation command line was
1103
1104   $ $0 $@
1105
1106 _ACEOF
1107 {
1108 cat <<_ASUNAME
1109 ## --------- ##
1110 ## Platform. ##
1111 ## --------- ##
1112
1113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1118
1119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1120 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1121
1122 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1123 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1125 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1126 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1127 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1128 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1129
1130 _ASUNAME
1131
1132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1133 for as_dir in $PATH
1134 do
1135   IFS=$as_save_IFS
1136   test -z "$as_dir" && as_dir=.
1137   echo "PATH: $as_dir"
1138 done
1139
1140 } >&5
1141
1142 cat >&5 <<_ACEOF
1143
1144
1145 ## ----------- ##
1146 ## Core tests. ##
1147 ## ----------- ##
1148
1149 _ACEOF
1150
1151
1152 # Keep a trace of the command line.
1153 # Strip out --no-create and --no-recursion so they do not pile up.
1154 # Also quote any args containing shell meta-characters.
1155 ac_configure_args=
1156 ac_sep=
1157 for ac_arg
1158 do
1159   case $ac_arg in
1160   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161   | --no-cr | --no-c | -n ) continue ;;
1162   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164     continue ;;
1165   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1167   esac
1168   case " $ac_configure_args " in
1169     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1170     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1171        ac_sep=" " ;;
1172   esac
1173   # Get rid of the leading space.
1174 done
1175
1176 # When interrupted or exit'd, cleanup temporary files, and complete
1177 # config.log.  We remove comments because anyway the quotes in there
1178 # would cause problems or look ugly.
1179 # WARNING: Be sure not to use single quotes in there, as some shells,
1180 # such as our DU 5.0 friend, will then `close' the trap.
1181 trap 'exit_status=$?
1182   # Save into config.log some information that might help in debugging.
1183   {
1184     echo
1185     cat <<\_ASBOX
1186 ## ---------------- ##
1187 ## Cache variables. ##
1188 ## ---------------- ##
1189 _ASBOX
1190     echo
1191     # The following way of writing the cache mishandles newlines in values,
1192 {
1193   (set) 2>&1 |
1194     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1195     *ac_space=\ *)
1196       sed -n \
1197         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1198           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1199       ;;
1200     *)
1201       sed -n \
1202         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1203       ;;
1204     esac;
1205 }
1206     echo
1207     if test -s confdefs.h; then
1208       cat <<\_ASBOX
1209 ## ----------- ##
1210 ## confdefs.h. ##
1211 ## ----------- ##
1212 _ASBOX
1213       echo
1214       sed "/^$/d" confdefs.h
1215       echo
1216     fi
1217     test "$ac_signal" != 0 &&
1218       echo "$as_me: caught signal $ac_signal"
1219     echo "$as_me: exit $exit_status"
1220   } >&5
1221   rm -f core core.* *.core &&
1222   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1223     exit $exit_status
1224      ' 0
1225 for ac_signal in 1 2 13 15; do
1226   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1227 done
1228 ac_signal=0
1229
1230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1231 rm -rf conftest* confdefs.h
1232 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1233 echo >confdefs.h
1234
1235 # Predefined preprocessor variables.
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_NAME "$PACKAGE_NAME"
1239 _ACEOF
1240
1241
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1244 _ACEOF
1245
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_STRING "$PACKAGE_STRING"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1259 _ACEOF
1260
1261
1262 # Let the site file select an alternate cache file if it wants to.
1263 # Prefer explicitly selected file to automatically selected ones.
1264 if test -z "$CONFIG_SITE"; then
1265   if test "x$prefix" != xNONE; then
1266     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1267   else
1268     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1269   fi
1270 fi
1271 for ac_site_file in $CONFIG_SITE; do
1272   if test -r "$ac_site_file"; then
1273     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1274 echo "$as_me: loading site script $ac_site_file" >&6;}
1275     sed 's/^/| /' "$ac_site_file" >&5
1276     . "$ac_site_file"
1277   fi
1278 done
1279
1280 if test -r "$cache_file"; then
1281   # Some versions of bash will fail to source /dev/null (special
1282   # files actually), so we avoid doing that.
1283   if test -f "$cache_file"; then
1284     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1285 echo "$as_me: loading cache $cache_file" >&6;}
1286     case $cache_file in
1287       [\\/]* | ?:[\\/]* ) . $cache_file;;
1288       *)                      . ./$cache_file;;
1289     esac
1290   fi
1291 else
1292   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1293 echo "$as_me: creating cache $cache_file" >&6;}
1294   >$cache_file
1295 fi
1296
1297 # Check that the precious variables saved in the cache have kept the same
1298 # value.
1299 ac_cache_corrupted=false
1300 for ac_var in `(set) 2>&1 |
1301                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1302   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1303   eval ac_new_set=\$ac_env_${ac_var}_set
1304   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1305   eval ac_new_val="\$ac_env_${ac_var}_value"
1306   case $ac_old_set,$ac_new_set in
1307     set,)
1308       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1310       ac_cache_corrupted=: ;;
1311     ,set)
1312       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1314       ac_cache_corrupted=: ;;
1315     ,);;
1316     *)
1317       if test "x$ac_old_val" != "x$ac_new_val"; then
1318         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1319 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1320         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1321 echo "$as_me:   former value:  $ac_old_val" >&2;}
1322         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1323 echo "$as_me:   current value: $ac_new_val" >&2;}
1324         ac_cache_corrupted=:
1325       fi;;
1326   esac
1327   # Pass precious variables to config.status.
1328   if test "$ac_new_set" = set; then
1329     case $ac_new_val in
1330     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1332     *) ac_arg=$ac_var=$ac_new_val ;;
1333     esac
1334     case " $ac_configure_args " in
1335       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1336       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1337     esac
1338   fi
1339 done
1340 if $ac_cache_corrupted; then
1341   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1342 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1343   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1344 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1345    { (exit 1); exit 1; }; }
1346 fi
1347
1348 ac_ext=c
1349 ac_cpp='$CPP $CPPFLAGS'
1350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371 ac_aux_dir=
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373   if test -f $ac_dir/install-sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install-sh -c"
1376     break
1377   elif test -f $ac_dir/install.sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install.sh -c"
1380     break
1381   elif test -f $ac_dir/shtool; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/shtool install -c"
1384     break
1385   fi
1386 done
1387 if test -z "$ac_aux_dir"; then
1388   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390    { (exit 1); exit 1; }; }
1391 fi
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400    { (exit 1); exit 1; }; }
1401
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409   ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413    { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435   ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457   ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475   test "$program_prefix$program_suffix$program_transform_name" = \
1476     NONENONEs,x,x, &&
1477   program_prefix=${target_alias}-
1478
1479 ac_config_headers="$ac_config_headers "
1480
1481 am__api_version="1.6"
1482 # Find a good install program.  We prefer a C program (faster),
1483 # so one script is as good as another.  But avoid the broken or
1484 # incompatible versions:
1485 # SysV /etc/install, /usr/sbin/install
1486 # SunOS /usr/etc/install
1487 # IRIX /sbin/install
1488 # AIX /bin/install
1489 # AmigaOS /C/install, which installs bootblocks on floppy discs
1490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1493 # ./install, which can be erroneously created by make from ./install.sh.
1494 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1495 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1496 if test -z "$INSTALL"; then
1497 if test "${ac_cv_path_install+set}" = set; then
1498   echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   # Account for people who put trailing slashes in PATH elements.
1506 case $as_dir/ in
1507   ./ | .// | /cC/* | \
1508   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1509   /usr/ucb/* ) ;;
1510   *)
1511     # OSF1 and SCO ODT 3.0 have their own names for install.
1512     # Don't use installbsd from OSF since it installs stuff as root
1513     # by default.
1514     for ac_prog in ginstall scoinst install; do
1515       for ac_exec_ext in '' $ac_executable_extensions; do
1516         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1517           if test $ac_prog = install &&
1518             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1519             # AIX install.  It has an incompatible calling convention.
1520             :
1521           elif test $ac_prog = install &&
1522             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1523             # program-specific install script used by HP pwplus--don't use.
1524             :
1525           else
1526             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1527             break 3
1528           fi
1529         fi
1530       done
1531     done
1532     ;;
1533 esac
1534 done
1535
1536
1537 fi
1538   if test "${ac_cv_path_install+set}" = set; then
1539     INSTALL=$ac_cv_path_install
1540   else
1541     # As a last resort, use the slow shell script.  We don't cache a
1542     # path for INSTALL within a source directory, because that will
1543     # break other packages using the cache if that directory is
1544     # removed, or if the path is relative.
1545     INSTALL=$ac_install_sh
1546   fi
1547 fi
1548 echo "$as_me:$LINENO: result: $INSTALL" >&5
1549 echo "${ECHO_T}$INSTALL" >&6
1550
1551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1552 # It thinks the first close brace ends the variable substitution.
1553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1554
1555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1556
1557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1558
1559 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1560 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1561 # Just in case
1562 sleep 1
1563 echo timestamp > conftest.file
1564 # Do `set' in a subshell so we don't clobber the current shell's
1565 # arguments.  Must try -L first in case configure is actually a
1566 # symlink; some systems play weird games with the mod time of symlinks
1567 # (eg FreeBSD returns the mod time of the symlink's containing
1568 # directory).
1569 if (
1570    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1571    if test "$*" = "X"; then
1572       # -L didn't work.
1573       set X `ls -t $srcdir/configure conftest.file`
1574    fi
1575    rm -f conftest.file
1576    if test "$*" != "X $srcdir/configure conftest.file" \
1577       && test "$*" != "X conftest.file $srcdir/configure"; then
1578
1579       # If neither matched, then we have a broken ls.  This can happen
1580       # if, for instance, CONFIG_SHELL is bash and it inherits a
1581       # broken ls alias from the environment.  This has actually
1582       # happened.  Such a system could not be considered "sane".
1583       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1584 alias in your environment" >&5
1585 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1586 alias in your environment" >&2;}
1587    { (exit 1); exit 1; }; }
1588    fi
1589
1590    test "$2" = conftest.file
1591    )
1592 then
1593    # Ok.
1594    :
1595 else
1596    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1597 Check your system clock" >&5
1598 echo "$as_me: error: newly created file is older than distributed files!
1599 Check your system clock" >&2;}
1600    { (exit 1); exit 1; }; }
1601 fi
1602 echo "$as_me:$LINENO: result: yes" >&5
1603 echo "${ECHO_T}yes" >&6
1604 test "$program_prefix" != NONE &&
1605   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1606 # Use a double $ so make ignores it.
1607 test "$program_suffix" != NONE &&
1608   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1609 # Double any \ or $.  echo might interpret backslashes.
1610 # By default was `s,x,x', remove it if useless.
1611 cat <<\_ACEOF >conftest.sed
1612 s/[\\$]/&&/g;s/;s,x,x,$//
1613 _ACEOF
1614 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1615 rm conftest.sed
1616
1617
1618 # expand $ac_aux_dir to an absolute path
1619 am_aux_dir=`cd $ac_aux_dir && pwd`
1620
1621 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1622 # Use eval to expand $SHELL
1623 if eval "$MISSING --run true"; then
1624   am_missing_run="$MISSING --run "
1625 else
1626   am_missing_run=
1627   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1628 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1629 fi
1630
1631 for ac_prog in gawk mawk nawk awk
1632 do
1633   # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_AWK+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   if test -n "$AWK"; then
1641   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646   IFS=$as_save_IFS
1647   test -z "$as_dir" && as_dir=.
1648   for ac_exec_ext in '' $ac_executable_extensions; do
1649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650     ac_cv_prog_AWK="$ac_prog"
1651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652     break 2
1653   fi
1654 done
1655 done
1656
1657 fi
1658 fi
1659 AWK=$ac_cv_prog_AWK
1660 if test -n "$AWK"; then
1661   echo "$as_me:$LINENO: result: $AWK" >&5
1662 echo "${ECHO_T}$AWK" >&6
1663 else
1664   echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1666 fi
1667
1668   test -n "$AWK" && break
1669 done
1670
1671 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1672 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1673 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1674 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   cat >conftest.make <<\_ACEOF
1678 all:
1679         @echo 'ac_maketemp="${MAKE}"'
1680 _ACEOF
1681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683 if test -n "$ac_maketemp"; then
1684   eval ac_cv_prog_make_${ac_make}_set=yes
1685 else
1686   eval ac_cv_prog_make_${ac_make}_set=no
1687 fi
1688 rm -f conftest.make
1689 fi
1690 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691   echo "$as_me:$LINENO: result: yes" >&5
1692 echo "${ECHO_T}yes" >&6
1693   SET_MAKE=
1694 else
1695   echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697   SET_MAKE="MAKE=${MAKE-make}"
1698 fi
1699
1700  # test to see if srcdir already configured
1701 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1702    test -f $srcdir/config.status; then
1703   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1704 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1705    { (exit 1); exit 1; }; }
1706 fi
1707
1708 # Define the identity of the package.
1709  PACKAGE=popt
1710  VERSION=1.7
1711
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE "$PACKAGE"
1715 _ACEOF
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define VERSION "$VERSION"
1720 _ACEOF
1721
1722 # Some tools Automake needs.
1723
1724 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1725
1726
1727 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1728
1729
1730 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1731
1732
1733 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1734
1735
1736 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1737
1738
1739 AMTAR=${AMTAR-"${am_missing_run}tar"}
1740
1741 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1742
1743 # Installed binaries are usually stripped using `strip' when the user
1744 # run `make install-strip'.  However `strip' might not be the right
1745 # tool to use in cross-compilation environments, therefore Automake
1746 # will honor the `STRIP' environment variable to overrule this program.
1747 if test "$cross_compiling" != no; then
1748   if test -n "$ac_tool_prefix"; then
1749   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}strip; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_STRIP+set}" = set; then
1754   echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756   if test -n "$STRIP"; then
1757   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1758 else
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   for ac_exec_ext in '' $ac_executable_extensions; do
1765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768     break 2
1769   fi
1770 done
1771 done
1772
1773 fi
1774 fi
1775 STRIP=$ac_cv_prog_STRIP
1776 if test -n "$STRIP"; then
1777   echo "$as_me:$LINENO: result: $STRIP" >&5
1778 echo "${ECHO_T}$STRIP" >&6
1779 else
1780   echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1782 fi
1783
1784 fi
1785 if test -z "$ac_cv_prog_STRIP"; then
1786   ac_ct_STRIP=$STRIP
1787   # Extract the first word of "strip", so it can be a program name with args.
1788 set dummy strip; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   if test -n "$ac_ct_STRIP"; then
1795   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1799 do
1800   IFS=$as_save_IFS
1801   test -z "$as_dir" && as_dir=.
1802   for ac_exec_ext in '' $ac_executable_extensions; do
1803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804     ac_cv_prog_ac_ct_STRIP="strip"
1805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806     break 2
1807   fi
1808 done
1809 done
1810
1811   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1812 fi
1813 fi
1814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1815 if test -n "$ac_ct_STRIP"; then
1816   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1817 echo "${ECHO_T}$ac_ct_STRIP" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823   STRIP=$ac_ct_STRIP
1824 else
1825   STRIP="$ac_cv_prog_STRIP"
1826 fi
1827
1828 fi
1829 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1830
1831 # We need awk for the "check" target.  The system "awk" is bad on
1832 # some platforms.
1833
1834
1835
1836 # Add the stamp file to the list of files AC keeps track of,
1837 # along with our hook.
1838 ac_config_headers="$ac_config_headers config.h"
1839
1840
1841
1842
1843 ALL_LINGUAS="cs da de es eu_ES fi fr gl hu id is it ja ko no pl pt pt_BR ro ru sk sl sr sv tr uk wa zh zh_CN.GB2312"
1844
1845 rm -f .deps 2>/dev/null
1846 mkdir .deps 2>/dev/null
1847 if test -d .deps; then
1848   DEPDIR=.deps
1849 else
1850   # MS-DOS does not allow filenames that begin with a dot.
1851   DEPDIR=_deps
1852 fi
1853 rmdir .deps 2>/dev/null
1854
1855
1856 ac_config_commands="$ac_config_commands depfiles"
1857
1858
1859 am_make=${MAKE-make}
1860 cat > confinc << 'END'
1861 doit:
1862         @echo done
1863 END
1864 # If we don't find an include directive, just comment out the code.
1865 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1866 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1867 am__include="#"
1868 am__quote=
1869 _am_result=none
1870 # First try GNU make style include.
1871 echo "include confinc" > confmf
1872 # We grep out `Entering directory' and `Leaving directory'
1873 # messages which can occur if `w' ends up in MAKEFLAGS.
1874 # In particular we don't look at `^make:' because GNU make might
1875 # be invoked under some other name (usually "gmake"), in which
1876 # case it prints its new name instead of `make'.
1877 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1878    am__include=include
1879    am__quote=
1880    _am_result=GNU
1881 fi
1882 # Now try BSD make style include.
1883 if test "$am__include" = "#"; then
1884    echo '.include "confinc"' > confmf
1885    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1886       am__include=.include
1887       am__quote="\""
1888       _am_result=BSD
1889    fi
1890 fi
1891
1892
1893 echo "$as_me:$LINENO: result: $_am_result" >&5
1894 echo "${ECHO_T}$_am_result" >&6
1895 rm -f confinc confmf
1896
1897 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1898 if test "${enable_dependency_tracking+set}" = set; then
1899   enableval="$enable_dependency_tracking"
1900
1901 fi;
1902 if test "x$enable_dependency_tracking" != xno; then
1903   am_depcomp="$ac_aux_dir/depcomp"
1904   AMDEPBACKSLASH='\'
1905 fi
1906
1907
1908 if test "x$enable_dependency_tracking" != xno; then
1909   AMDEP_TRUE=
1910   AMDEP_FALSE='#'
1911 else
1912   AMDEP_TRUE='#'
1913   AMDEP_FALSE=
1914 fi
1915
1916
1917
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923 if test -n "$ac_tool_prefix"; then
1924   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1925 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   if test -n "$CC"; then
1932   ac_cv_prog_CC="$CC" # Let the user override the test.
1933 else
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937   IFS=$as_save_IFS
1938   test -z "$as_dir" && as_dir=.
1939   for ac_exec_ext in '' $ac_executable_extensions; do
1940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943     break 2
1944   fi
1945 done
1946 done
1947
1948 fi
1949 fi
1950 CC=$ac_cv_prog_CC
1951 if test -n "$CC"; then
1952   echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6
1954 else
1955   echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1957 fi
1958
1959 fi
1960 if test -z "$ac_cv_prog_CC"; then
1961   ac_ct_CC=$CC
1962   # Extract the first word of "gcc", so it can be a program name with args.
1963 set dummy gcc; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$ac_ct_CC"; then
1970   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979     ac_cv_prog_ac_ct_CC="gcc"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985
1986 fi
1987 fi
1988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989 if test -n "$ac_ct_CC"; then
1990   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991 echo "${ECHO_T}$ac_ct_CC" >&6
1992 else
1993   echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 fi
1996
1997   CC=$ac_ct_CC
1998 else
1999   CC="$ac_cv_prog_CC"
2000 fi
2001
2002 if test -z "$CC"; then
2003   if test -n "$ac_tool_prefix"; then
2004   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}cc; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   if test -n "$CC"; then
2012   ac_cv_prog_CC="$CC" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021     ac_cv_prog_CC="${ac_tool_prefix}cc"
2022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027
2028 fi
2029 fi
2030 CC=$ac_cv_prog_CC
2031 if test -n "$CC"; then
2032   echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2034 else
2035   echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2037 fi
2038
2039 fi
2040 if test -z "$ac_cv_prog_CC"; then
2041   ac_ct_CC=$CC
2042   # Extract the first word of "cc", so it can be a program name with args.
2043 set dummy cc; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$ac_ct_CC"; then
2050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     ac_cv_prog_ac_ct_CC="cc"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065
2066 fi
2067 fi
2068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2069 if test -n "$ac_ct_CC"; then
2070   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2071 echo "${ECHO_T}$ac_ct_CC" >&6
2072 else
2073   echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2075 fi
2076
2077   CC=$ac_ct_CC
2078 else
2079   CC="$ac_cv_prog_CC"
2080 fi
2081
2082 fi
2083 if test -z "$CC"; then
2084   # Extract the first word of "cc", so it can be a program name with args.
2085 set dummy cc; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_CC+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$CC"; then
2092   ac_cv_prog_CC="$CC" # Let the user override the test.
2093 else
2094   ac_prog_rejected=no
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100   for ac_exec_ext in '' $ac_executable_extensions; do
2101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2103        ac_prog_rejected=yes
2104        continue
2105      fi
2106     ac_cv_prog_CC="cc"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 if test $ac_prog_rejected = yes; then
2114   # We found a bogon in the path, so make sure we never use it.
2115   set dummy $ac_cv_prog_CC
2116   shift
2117   if test $# != 0; then
2118     # We chose a different compiler from the bogus one.
2119     # However, it has the same basename, so the bogon will be chosen
2120     # first if we set CC to just the basename; use the full file name.
2121     shift
2122     set dummy "$as_dir/$ac_word" ${1+"$@"}
2123     shift
2124     ac_cv_prog_CC="$@"
2125   fi
2126 fi
2127 fi
2128 fi
2129 CC=$ac_cv_prog_CC
2130 if test -n "$CC"; then
2131   echo "$as_me:$LINENO: result: $CC" >&5
2132 echo "${ECHO_T}$CC" >&6
2133 else
2134   echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6
2136 fi
2137
2138 fi
2139 if test -z "$CC"; then
2140   if test -n "$ac_tool_prefix"; then
2141   for ac_prog in cl
2142   do
2143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2145 echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   if test -n "$CC"; then
2151   ac_cv_prog_CC="$CC" # Let the user override the test.
2152 else
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158   for ac_exec_ext in '' $ac_executable_extensions; do
2159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162     break 2
2163   fi
2164 done
2165 done
2166
2167 fi
2168 fi
2169 CC=$ac_cv_prog_CC
2170 if test -n "$CC"; then
2171   echo "$as_me:$LINENO: result: $CC" >&5
2172 echo "${ECHO_T}$CC" >&6
2173 else
2174   echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6
2176 fi
2177
2178     test -n "$CC" && break
2179   done
2180 fi
2181 if test -z "$CC"; then
2182   ac_ct_CC=$CC
2183   for ac_prog in cl
2184 do
2185   # Extract the first word of "$ac_prog", so it can be a program name with args.
2186 set dummy $ac_prog; ac_word=$2
2187 echo "$as_me:$LINENO: checking for $ac_word" >&5
2188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   if test -n "$ac_ct_CC"; then
2193   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194 else
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2197 do
2198   IFS=$as_save_IFS
2199   test -z "$as_dir" && as_dir=.
2200   for ac_exec_ext in '' $ac_executable_extensions; do
2201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2202     ac_cv_prog_ac_ct_CC="$ac_prog"
2203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204     break 2
2205   fi
2206 done
2207 done
2208
2209 fi
2210 fi
2211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212 if test -n "$ac_ct_CC"; then
2213   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2214 echo "${ECHO_T}$ac_ct_CC" >&6
2215 else
2216   echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2218 fi
2219
2220   test -n "$ac_ct_CC" && break
2221 done
2222
2223   CC=$ac_ct_CC
2224 fi
2225
2226 fi
2227
2228
2229 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2230 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2231    { (exit 1); exit 1; }; }
2232
2233 # Provide some information about the compiler.
2234 echo "$as_me:$LINENO:" \
2235      "checking for C compiler version" >&5
2236 ac_compiler=`set X $ac_compile; echo $2`
2237 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2238   (eval $ac_compiler --version </dev/null >&5) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }
2242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2243   (eval $ac_compiler -v </dev/null >&5) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }
2247 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2248   (eval $ac_compiler -V </dev/null >&5) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }
2252
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #line $LINENO "configure"
2255 #include "confdefs.h"
2256
2257 #ifdef F77_DUMMY_MAIN
2258 #  ifdef __cplusplus
2259      extern "C"
2260 #  endif
2261    int F77_DUMMY_MAIN() { return 1; }
2262 #endif
2263 int
2264 main ()
2265 {
2266
2267   ;
2268   return 0;
2269 }
2270 _ACEOF
2271 ac_clean_files_save=$ac_clean_files
2272 ac_clean_files="$ac_clean_files a.out a.exe"
2273 # Try to create an executable without -o first, disregard a.out.
2274 # It will help us diagnose broken compilers, and finding out an intuition
2275 # of exeext.
2276 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2277 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2278 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2279 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2280   (eval $ac_link_default) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; then
2284   # Find the output, starting from the most likely.  This scheme is
2285 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2286 # resort.
2287
2288 # Be careful to initialize this variable, since it used to be cached.
2289 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2290 ac_cv_exeext=
2291 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2292                 ls a.out conftest 2>/dev/null;
2293                 ls a.* conftest.* 2>/dev/null`; do
2294   case $ac_file in
2295     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2296     a.out ) # We found the default executable, but exeext='' is most
2297             # certainly right.
2298             break;;
2299     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2301           export ac_cv_exeext
2302           break;;
2303     * ) break;;
2304   esac
2305 done
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2309 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2310 echo "$as_me: error: C compiler cannot create executables" >&2;}
2311    { (exit 77); exit 77; }; }
2312 fi
2313
2314 ac_exeext=$ac_cv_exeext
2315 echo "$as_me:$LINENO: result: $ac_file" >&5
2316 echo "${ECHO_T}$ac_file" >&6
2317
2318 # Check the compiler produces executables we can run.  If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2321 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2322 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2323 # If not cross compiling, check that we can run a simple program.
2324 if test "$cross_compiling" != yes; then
2325   if { ac_try='./$ac_file'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331     cross_compiling=no
2332   else
2333     if test "$cross_compiling" = maybe; then
2334         cross_compiling=yes
2335     else
2336         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'." >&5
2338 echo "$as_me: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'." >&2;}
2340    { (exit 1); exit 1; }; }
2341     fi
2342   fi
2343 fi
2344 echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6
2346
2347 rm -f a.out a.exe conftest$ac_cv_exeext
2348 ac_clean_files=$ac_clean_files_save
2349 # Check the compiler produces executables we can run.  If not, either
2350 # the compiler is broken, or we cross compile.
2351 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2353 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2354 echo "${ECHO_T}$cross_compiling" >&6
2355
2356 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2359   (eval $ac_link) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; then
2363   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2364 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2365 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 # `rm'.
2367 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2368   case $ac_file in
2369     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2370     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2371           export ac_cv_exeext
2372           break;;
2373     * ) break;;
2374   esac
2375 done
2376 else
2377   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2378 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2379    { (exit 1); exit 1; }; }
2380 fi
2381
2382 rm -f conftest$ac_cv_exeext
2383 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2384 echo "${ECHO_T}$ac_cv_exeext" >&6
2385
2386 rm -f conftest.$ac_ext
2387 EXEEXT=$ac_cv_exeext
2388 ac_exeext=$EXEEXT
2389 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2390 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2391 if test "${ac_cv_objext+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   cat >conftest.$ac_ext <<_ACEOF
2395 #line $LINENO "configure"
2396 #include "confdefs.h"
2397
2398 #ifdef F77_DUMMY_MAIN
2399 #  ifdef __cplusplus
2400      extern "C"
2401 #  endif
2402    int F77_DUMMY_MAIN() { return 1; }
2403 #endif
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414   (eval $ac_compile) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; then
2418   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2419   case $ac_file in
2420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2421     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2422        break;;
2423   esac
2424 done
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2429 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2430    { (exit 1); exit 1; }; }
2431 fi
2432
2433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2434 fi
2435 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2436 echo "${ECHO_T}$ac_cv_objext" >&6
2437 OBJEXT=$ac_cv_objext
2438 ac_objext=$OBJEXT
2439 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2440 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2441 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 #include "confdefs.h"
2447
2448 #ifdef F77_DUMMY_MAIN
2449 #  ifdef __cplusplus
2450      extern "C"
2451 #  endif
2452    int F77_DUMMY_MAIN() { return 1; }
2453 #endif
2454 int
2455 main ()
2456 {
2457 #ifndef __GNUC__
2458        choke me
2459 #endif
2460
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477   ac_compiler_gnu=yes
2478 else
2479   echo "$as_me: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 ac_compiler_gnu=no
2482 fi
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2484 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2485
2486 fi
2487 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2488 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2489 GCC=`test $ac_compiler_gnu = yes && echo yes`
2490 ac_test_CFLAGS=${CFLAGS+set}
2491 ac_save_CFLAGS=$CFLAGS
2492 CFLAGS="-g"
2493 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2494 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2495 if test "${ac_cv_prog_cc_g+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 #include "confdefs.h"
2501
2502 #ifdef F77_DUMMY_MAIN
2503 #  ifdef __cplusplus
2504      extern "C"
2505 #  endif
2506    int F77_DUMMY_MAIN() { return 1; }
2507 #endif
2508 int
2509 main ()
2510 {
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518   (eval $ac_compile) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -s conftest.$ac_objext'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   ac_cv_prog_cc_g=yes
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 ac_cv_prog_cc_g=no
2533 fi
2534 rm -f conftest.$ac_objext conftest.$ac_ext
2535 fi
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2538 if test "$ac_test_CFLAGS" = set; then
2539   CFLAGS=$ac_save_CFLAGS
2540 elif test $ac_cv_prog_cc_g = yes; then
2541   if test "$GCC" = yes; then
2542     CFLAGS="-g -O2"
2543   else
2544     CFLAGS="-g"
2545   fi
2546 else
2547   if test "$GCC" = yes; then
2548     CFLAGS="-O2"
2549   else
2550     CFLAGS=
2551   fi
2552 fi
2553 # Some people use a C++ compiler to compile C.  Since we use `exit',
2554 # in C++ we need to declare it.  In case someone uses the same compiler
2555 # for both compiling C and C++ we need to have the C++ compiler decide
2556 # the declaration of exit, since it's the most demanding environment.
2557 cat >conftest.$ac_ext <<_ACEOF
2558 #ifndef __cplusplus
2559   choke me
2560 #endif
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564   (eval $ac_compile) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); } &&
2568          { ac_try='test -s conftest.$ac_objext'
2569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570   (eval $ac_try) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; }; then
2574   for ac_declaration in \
2575    ''\
2576    '#include <stdlib.h>' \
2577    'extern "C" void std::exit (int) throw (); using std::exit;' \
2578    'extern "C" void std::exit (int); using std::exit;' \
2579    'extern "C" void exit (int) throw ();' \
2580    'extern "C" void exit (int);' \
2581    'void exit (int);'
2582 do
2583   cat >conftest.$ac_ext <<_ACEOF
2584 #line $LINENO "configure"
2585 #include "confdefs.h"
2586 #include <stdlib.h>
2587 $ac_declaration
2588 #ifdef F77_DUMMY_MAIN
2589 #  ifdef __cplusplus
2590      extern "C"
2591 #  endif
2592    int F77_DUMMY_MAIN() { return 1; }
2593 #endif
2594 int
2595 main ()
2596 {
2597 exit (42);
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604   (eval $ac_compile) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -s conftest.$ac_objext'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; }; then
2614   :
2615 else
2616   echo "$as_me: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 continue
2619 fi
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621   cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 #include "confdefs.h"
2624 $ac_declaration
2625 #ifdef F77_DUMMY_MAIN
2626 #  ifdef __cplusplus
2627      extern "C"
2628 #  endif
2629    int F77_DUMMY_MAIN() { return 1; }
2630 #endif
2631 int
2632 main ()
2633 {
2634 exit (42);
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641   (eval $ac_compile) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); } &&
2645          { ac_try='test -s conftest.$ac_objext'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; }; then
2651   break
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2655 fi
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2657 done
2658 rm -f conftest*
2659 if test -n "$ac_declaration"; then
2660   echo '#ifdef __cplusplus' >>confdefs.h
2661   echo $ac_declaration      >>confdefs.h
2662   echo '#endif'             >>confdefs.h
2663 fi
2664
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 cat conftest.$ac_ext >&5
2668 fi
2669 rm -f conftest.$ac_objext conftest.$ac_ext
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675
2676 depcc="$CC"   am_compiler_list=
2677
2678 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2679 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2680 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2684   # We make a subdir and do the tests there.  Otherwise we can end up
2685   # making bogus files that we don't know about and never remove.  For
2686   # instance it was reported that on HP-UX the gcc test will end up
2687   # making a dummy file named `D' -- because `-MD' means `put the output
2688   # in D'.
2689   mkdir conftest.dir
2690   # Copy depcomp to subdir because otherwise we won't find it if we're
2691   # using a relative directory.
2692   cp "$am_depcomp" conftest.dir
2693   cd conftest.dir
2694
2695   am_cv_CC_dependencies_compiler_type=none
2696   if test "$am_compiler_list" = ""; then
2697      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2698   fi
2699   for depmode in $am_compiler_list; do
2700     # We need to recreate these files for each test, as the compiler may
2701     # overwrite some of them when testing with obscure command lines.
2702     # This happens at least with the AIX C compiler.
2703     echo '#include "conftest.h"' > conftest.c
2704     echo 'int i;' > conftest.h
2705     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2706
2707     case $depmode in
2708     nosideeffect)
2709       # after this tag, mechanisms are not by side-effect, so they'll
2710       # only be used when explicitly requested
2711       if test "x$enable_dependency_tracking" = xyes; then
2712         continue
2713       else
2714         break
2715       fi
2716       ;;
2717     none) break ;;
2718     esac
2719     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2720     # mode.  It turns out that the SunPro C++ compiler does not properly
2721     # handle `-M -o', and we need to detect this.
2722     if depmode=$depmode \
2723        source=conftest.c object=conftest.o \
2724        depfile=conftest.Po tmpdepfile=conftest.TPo \
2725        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2726        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2727        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2728       am_cv_CC_dependencies_compiler_type=$depmode
2729       break
2730     fi
2731   done
2732
2733   cd ..
2734   rm -rf conftest.dir
2735 else
2736   am_cv_CC_dependencies_compiler_type=none
2737 fi
2738
2739 fi
2740 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2741 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2743
2744
2745
2746
2747         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2748 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2749 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   ac_check_lib_save_LIBS=$LIBS
2753 LIBS="-lcposix  $LIBS"
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2757
2758 /* Override any gcc2 internal prototype to avoid an error.  */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 /* We use char because int might match the return type of a gcc2
2763    builtin and then its argument prototype would still apply.  */
2764 char strerror ();
2765 #ifdef F77_DUMMY_MAIN
2766 #  ifdef __cplusplus
2767      extern "C"
2768 #  endif
2769    int F77_DUMMY_MAIN() { return 1; }
2770 #endif
2771 int
2772 main ()
2773 {
2774 strerror ();
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext conftest$ac_exeext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2781   (eval $ac_link) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -s conftest$ac_exeext'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; }; then
2791   ac_cv_lib_cposix_strerror=yes
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 ac_cv_lib_cposix_strerror=no
2796 fi
2797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2798 LIBS=$ac_check_lib_save_LIBS
2799 fi
2800 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2801 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2802 if test $ac_cv_lib_cposix_strerror = yes; then
2803   LIBS="$LIBS -lcposix"
2804 fi
2805
2806
2807
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 if test -n "$ac_tool_prefix"; then
2815   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820   echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822   if test -n "$CC"; then
2823   ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838
2839 fi
2840 fi
2841 CC=$ac_cv_prog_CC
2842 if test -n "$CC"; then
2843   echo "$as_me:$LINENO: result: $CC" >&5
2844 echo "${ECHO_T}$CC" >&6
2845 else
2846   echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2848 fi
2849
2850 fi
2851 if test -z "$ac_cv_prog_CC"; then
2852   ac_ct_CC=$CC
2853   # Extract the first word of "gcc", so it can be a program name with args.
2854 set dummy gcc; ac_word=$2
2855 echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   if test -n "$ac_ct_CC"; then
2861   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868   for ac_exec_ext in '' $ac_executable_extensions; do
2869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870     ac_cv_prog_ac_ct_CC="gcc"
2871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875 done
2876
2877 fi
2878 fi
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882 echo "${ECHO_T}$ac_ct_CC" >&6
2883 else
2884   echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2886 fi
2887
2888   CC=$ac_ct_CC
2889 else
2890   CC="$ac_cv_prog_CC"
2891 fi
2892
2893 if test -z "$CC"; then
2894   if test -n "$ac_tool_prefix"; then
2895   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}cc; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_CC+set}" = set; then
2900   echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902   if test -n "$CC"; then
2903   ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910   for ac_exec_ext in '' $ac_executable_extensions; do
2911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912     ac_cv_prog_CC="${ac_tool_prefix}cc"
2913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917 done
2918
2919 fi
2920 fi
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923   echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6
2925 else
2926   echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2928 fi
2929
2930 fi
2931 if test -z "$ac_cv_prog_CC"; then
2932   ac_ct_CC=$CC
2933   # Extract the first word of "cc", so it can be a program name with args.
2934 set dummy cc; ac_word=$2
2935 echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   if test -n "$ac_ct_CC"; then
2941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   for ac_exec_ext in '' $ac_executable_extensions; do
2949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950     ac_cv_prog_ac_ct_CC="cc"
2951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955 done
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6
2963 else
2964   echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6
2966 fi
2967
2968   CC=$ac_ct_CC
2969 else
2970   CC="$ac_cv_prog_CC"
2971 fi
2972
2973 fi
2974 if test -z "$CC"; then
2975   # Extract the first word of "cc", so it can be a program name with args.
2976 set dummy cc; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_CC+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   if test -n "$CC"; then
2983   ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985   ac_prog_rejected=no
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991   for ac_exec_ext in '' $ac_executable_extensions; do
2992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994        ac_prog_rejected=yes
2995        continue
2996      fi
2997     ac_cv_prog_CC="cc"
2998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002 done
3003
3004 if test $ac_prog_rejected = yes; then
3005   # We found a bogon in the path, so make sure we never use it.
3006   set dummy $ac_cv_prog_CC
3007   shift
3008   if test $# != 0; then
3009     # We chose a different compiler from the bogus one.
3010     # However, it has the same basename, so the bogon will be chosen
3011     # first if we set CC to just the basename; use the full file name.
3012     shift
3013     set dummy "$as_dir/$ac_word" ${1+"$@"}
3014     shift
3015     ac_cv_prog_CC="$@"
3016   fi
3017 fi
3018 fi
3019 fi
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022   echo "$as_me:$LINENO: result: $CC" >&5
3023 echo "${ECHO_T}$CC" >&6
3024 else
3025   echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3027 fi
3028
3029 fi
3030 if test -z "$CC"; then
3031   if test -n "$ac_tool_prefix"; then
3032   for ac_prog in cl
3033   do
3034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3036 echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3038 if test "${ac_cv_prog_CC+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   if test -n "$CC"; then
3042   ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049   for ac_exec_ext in '' $ac_executable_extensions; do
3050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056 done
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062   echo "$as_me:$LINENO: result: $CC" >&5
3063 echo "${ECHO_T}$CC" >&6
3064 else
3065   echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6
3067 fi
3068
3069     test -n "$CC" && break
3070   done
3071 fi
3072 if test -z "$CC"; then
3073   ac_ct_CC=$CC
3074   for ac_prog in cl
3075 do
3076   # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   if test -n "$ac_ct_CC"; then
3084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091   for ac_exec_ext in '' $ac_executable_extensions; do
3092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093     ac_cv_prog_ac_ct_CC="$ac_prog"
3094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098 done
3099
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3105 echo "${ECHO_T}$ac_ct_CC" >&6
3106 else
3107   echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6
3109 fi
3110
3111   test -n "$ac_ct_CC" && break
3112 done
3113
3114   CC=$ac_ct_CC
3115 fi
3116
3117 fi
3118
3119
3120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
3121 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
3122    { (exit 1); exit 1; }; }
3123
3124 # Provide some information about the compiler.
3125 echo "$as_me:$LINENO:" \
3126      "checking for C compiler version" >&5
3127 ac_compiler=`set X $ac_compile; echo $2`
3128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3129   (eval $ac_compiler --version </dev/null >&5) 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }
3133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3134   (eval $ac_compiler -v </dev/null >&5) 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }
3138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3139   (eval $ac_compiler -V </dev/null >&5) 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }
3143
3144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   cat >conftest.$ac_ext <<_ACEOF
3150 #line $LINENO "configure"
3151 #include "confdefs.h"
3152
3153 #ifdef F77_DUMMY_MAIN
3154 #  ifdef __cplusplus
3155      extern "C"
3156 #  endif
3157    int F77_DUMMY_MAIN() { return 1; }
3158 #endif
3159 int
3160 main ()
3161 {
3162 #ifndef __GNUC__
3163        choke me
3164 #endif
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172   (eval $ac_compile) 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); } &&
3176          { ac_try='test -s conftest.$ac_objext'
3177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178   (eval $ac_try) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182   ac_compiler_gnu=yes
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 ac_compiler_gnu=no
3187 fi
3188 rm -f conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190
3191 fi
3192 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3194 GCC=`test $ac_compiler_gnu = yes && echo yes`
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3197 CFLAGS="-g"
3198 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3199 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3200 if test "${ac_cv_prog_cc_g+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   cat >conftest.$ac_ext <<_ACEOF
3204 #line $LINENO "configure"
3205 #include "confdefs.h"
3206
3207 #ifdef F77_DUMMY_MAIN
3208 #  ifdef __cplusplus
3209      extern "C"
3210 #  endif
3211    int F77_DUMMY_MAIN() { return 1; }
3212 #endif
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223   (eval $ac_compile) 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); } &&
3227          { ac_try='test -s conftest.$ac_objext'
3228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229   (eval $ac_try) 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); }; }; then
3233   ac_cv_prog_cc_g=yes
3234 else
3235   echo "$as_me: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3237 ac_cv_prog_cc_g=no
3238 fi
3239 rm -f conftest.$ac_objext conftest.$ac_ext
3240 fi
3241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3243 if test "$ac_test_CFLAGS" = set; then
3244   CFLAGS=$ac_save_CFLAGS
3245 elif test $ac_cv_prog_cc_g = yes; then
3246   if test "$GCC" = yes; then
3247     CFLAGS="-g -O2"
3248   else
3249     CFLAGS="-g"
3250   fi
3251 else
3252   if test "$GCC" = yes; then
3253     CFLAGS="-O2"
3254   else
3255     CFLAGS=
3256   fi
3257 fi
3258 # Some people use a C++ compiler to compile C.  Since we use `exit',
3259 # in C++ we need to declare it.  In case someone uses the same compiler
3260 # for both compiling C and C++ we need to have the C++ compiler decide
3261 # the declaration of exit, since it's the most demanding environment.
3262 cat >conftest.$ac_ext <<_ACEOF
3263 #ifndef __cplusplus
3264   choke me
3265 #endif
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269   (eval $ac_compile) 2>&5
3270   ac_status=$?
3271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); } &&
3273          { ac_try='test -s conftest.$ac_objext'
3274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275   (eval $ac_try) 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; }; then
3279   for ac_declaration in \
3280    ''\
3281    '#include <stdlib.h>' \
3282    'extern "C" void std::exit (int) throw (); using std::exit;' \
3283    'extern "C" void std::exit (int); using std::exit;' \
3284    'extern "C" void exit (int) throw ();' \
3285    'extern "C" void exit (int);' \
3286    'void exit (int);'
3287 do
3288   cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
3290 #include "confdefs.h"
3291 #include <stdlib.h>
3292 $ac_declaration
3293 #ifdef F77_DUMMY_MAIN
3294 #  ifdef __cplusplus
3295      extern "C"
3296 #  endif
3297    int F77_DUMMY_MAIN() { return 1; }
3298 #endif
3299 int
3300 main ()
3301 {
3302 exit (42);
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309   (eval $ac_compile) 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } &&
3313          { ac_try='test -s conftest.$ac_objext'
3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315   (eval $ac_try) 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   :
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 continue
3324 fi
3325 rm -f conftest.$ac_objext conftest.$ac_ext
3326   cat >conftest.$ac_ext <<_ACEOF
3327 #line $LINENO "configure"
3328 #include "confdefs.h"
3329 $ac_declaration
3330 #ifdef F77_DUMMY_MAIN
3331 #  ifdef __cplusplus
3332      extern "C"
3333 #  endif
3334    int F77_DUMMY_MAIN() { return 1; }
3335 #endif
3336 int
3337 main ()
3338 {
3339 exit (42);
3340   ;
3341   return 0;
3342 }
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346   (eval $ac_compile) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); } &&
3350          { ac_try='test -s conftest.$ac_objext'
3351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352   (eval $ac_try) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; }; then
3356   break
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3360 fi
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3362 done
3363 rm -f conftest*
3364 if test -n "$ac_declaration"; then
3365   echo '#ifdef __cplusplus' >>confdefs.h
3366   echo $ac_declaration      >>confdefs.h
3367   echo '#endif'             >>confdefs.h
3368 fi
3369
3370 else
3371   echo "$as_me: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3373 fi
3374 rm -f conftest.$ac_objext conftest.$ac_ext
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380
3381 depcc="$CC"   am_compiler_list=
3382
3383 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3384 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3385 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3389   # We make a subdir and do the tests there.  Otherwise we can end up
3390   # making bogus files that we don't know about and never remove.  For
3391   # instance it was reported that on HP-UX the gcc test will end up
3392   # making a dummy file named `D' -- because `-MD' means `put the output
3393   # in D'.
3394   mkdir conftest.dir
3395   # Copy depcomp to subdir because otherwise we won't find it if we're
3396   # using a relative directory.
3397   cp "$am_depcomp" conftest.dir
3398   cd conftest.dir
3399
3400   am_cv_CC_dependencies_compiler_type=none
3401   if test "$am_compiler_list" = ""; then
3402      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3403   fi
3404   for depmode in $am_compiler_list; do
3405     # We need to recreate these files for each test, as the compiler may
3406     # overwrite some of them when testing with obscure command lines.
3407     # This happens at least with the AIX C compiler.
3408     echo '#include "conftest.h"' > conftest.c
3409     echo 'int i;' > conftest.h
3410     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3411
3412     case $depmode in
3413     nosideeffect)
3414       # after this tag, mechanisms are not by side-effect, so they'll
3415       # only be used when explicitly requested
3416       if test "x$enable_dependency_tracking" = xyes; then
3417         continue
3418       else
3419         break
3420       fi
3421       ;;
3422     none) break ;;
3423     esac
3424     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3425     # mode.  It turns out that the SunPro C++ compiler does not properly
3426     # handle `-M -o', and we need to detect this.
3427     if depmode=$depmode \
3428        source=conftest.c object=conftest.o \
3429        depfile=conftest.Po tmpdepfile=conftest.TPo \
3430        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3431        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3432        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3433       am_cv_CC_dependencies_compiler_type=$depmode
3434       break
3435     fi
3436   done
3437
3438   cd ..
3439   rm -rf conftest.dir
3440 else
3441   am_cv_CC_dependencies_compiler_type=none
3442 fi
3443
3444 fi
3445 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3446 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3447 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3448
3449
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3456 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3457 # On Suns, sometimes $CPP names a directory.
3458 if test -n "$CPP" && test -d "$CPP"; then
3459   CPP=
3460 fi
3461 if test -z "$CPP"; then
3462   if test "${ac_cv_prog_CPP+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465       # Double quotes because CPP needs to be expanded
3466     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3467     do
3468       ac_preproc_ok=false
3469 for ac_c_preproc_warn_flag in '' yes
3470 do
3471   # Use a header file that comes with gcc, so configuring glibc
3472   # with a fresh cross-compiler works.
3473   # On the NeXT, cc -E runs the code through the compiler's parser,
3474   # not just through cpp. "Syntax error" is here to catch this case.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 #line $LINENO "configure"
3477 #include "confdefs.h"
3478 #include <assert.h>
3479                      Syntax error
3480 _ACEOF
3481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3483   ac_status=$?
3484   egrep -v '^ *\+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } >/dev/null; then
3489   if test -s conftest.err; then
3490     ac_cpp_err=$ac_c_preproc_warn_flag
3491   else
3492     ac_cpp_err=
3493   fi
3494 else
3495   ac_cpp_err=yes
3496 fi
3497 if test -z "$ac_cpp_err"; then
3498   :
3499 else
3500   echo "$as_me: failed program was:" >&5
3501   cat conftest.$ac_ext >&5
3502   # Broken: fails on valid input.
3503 continue
3504 fi
3505 rm -f conftest.err conftest.$ac_ext
3506
3507   # OK, works on sane cases.  Now check whether non-existent headers
3508   # can be detected and how.
3509   cat >conftest.$ac_ext <<_ACEOF
3510 #line $LINENO "configure"
3511 #include "confdefs.h"
3512 #include <ac_nonexistent.h>
3513 _ACEOF
3514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3515   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3516   ac_status=$?
3517   egrep -v '^ *\+' conftest.er1 >conftest.err
3518   rm -f conftest.er1
3519   cat conftest.err >&5
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); } >/dev/null; then
3522   if test -s conftest.err; then
3523     ac_cpp_err=$ac_c_preproc_warn_flag
3524   else
3525     ac_cpp_err=
3526   fi
3527 else
3528   ac_cpp_err=yes
3529 fi
3530 if test -z "$ac_cpp_err"; then
3531   # Broken: success on invalid input.
3532 continue
3533 else
3534   echo "$as_me: failed program was:" >&5
3535   cat conftest.$ac_ext >&5
3536   # Passes both tests.
3537 ac_preproc_ok=:
3538 break
3539 fi
3540 rm -f conftest.err conftest.$ac_ext
3541
3542 done
3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544 rm -f conftest.err conftest.$ac_ext
3545 if $ac_preproc_ok; then
3546   break
3547 fi
3548
3549     done
3550     ac_cv_prog_CPP=$CPP
3551
3552 fi
3553   CPP=$ac_cv_prog_CPP
3554 else
3555   ac_cv_prog_CPP=$CPP
3556 fi
3557 echo "$as_me:$LINENO: result: $CPP" >&5
3558 echo "${ECHO_T}$CPP" >&6
3559 ac_preproc_ok=false
3560 for ac_c_preproc_warn_flag in '' yes
3561 do
3562   # Use a header file that comes with gcc, so configuring glibc
3563   # with a fresh cross-compiler works.
3564   # On the NeXT, cc -E runs the code through the compiler's parser,
3565   # not just through cpp. "Syntax error" is here to catch this case.
3566   cat >conftest.$ac_ext <<_ACEOF
3567 #line $LINENO "configure"
3568 #include "confdefs.h"
3569 #include <assert.h>
3570                      Syntax error
3571 _ACEOF
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3574   ac_status=$?
3575   egrep -v '^ *\+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } >/dev/null; then
3580   if test -s conftest.err; then
3581     ac_cpp_err=$ac_c_preproc_warn_flag
3582   else
3583     ac_cpp_err=
3584   fi
3585 else
3586   ac_cpp_err=yes
3587 fi
3588 if test -z "$ac_cpp_err"; then
3589   :
3590 else
3591   echo "$as_me: failed program was:" >&5
3592   cat conftest.$ac_ext >&5
3593   # Broken: fails on valid input.
3594 continue
3595 fi
3596 rm -f conftest.err conftest.$ac_ext
3597
3598   # OK, works on sane cases.  Now check whether non-existent headers
3599   # can be detected and how.
3600   cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3603 #include <ac_nonexistent.h>
3604 _ACEOF
3605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3607   ac_status=$?
3608   egrep -v '^ *\+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } >/dev/null; then
3613   if test -s conftest.err; then
3614     ac_cpp_err=$ac_c_preproc_warn_flag
3615   else
3616     ac_cpp_err=
3617   fi
3618 else
3619   ac_cpp_err=yes
3620 fi
3621 if test -z "$ac_cpp_err"; then
3622   # Broken: success on invalid input.
3623 continue
3624 else
3625   echo "$as_me: failed program was:" >&5
3626   cat conftest.$ac_ext >&5
3627   # Passes both tests.
3628 ac_preproc_ok=:
3629 break
3630 fi
3631 rm -f conftest.err conftest.$ac_ext
3632
3633 done
3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635 rm -f conftest.err conftest.$ac_ext
3636 if $ac_preproc_ok; then
3637   :
3638 else
3639   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3641    { (exit 1); exit 1; }; }
3642 fi
3643
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650
3651 if test $ac_cv_c_compiler_gnu = yes; then
3652     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3653 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3654 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657     ac_pattern="Autoconf.*'x'"
3658   cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 #include "confdefs.h"
3661 #include <sgtty.h>
3662 Autoconf TIOCGETP
3663 _ACEOF
3664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665   egrep "$ac_pattern" >/dev/null 2>&1; then
3666   ac_cv_prog_gcc_traditional=yes
3667 else
3668   ac_cv_prog_gcc_traditional=no
3669 fi
3670 rm -f conftest*
3671
3672
3673   if test $ac_cv_prog_gcc_traditional = no; then
3674     cat >conftest.$ac_ext <<_ACEOF
3675 #line $LINENO "configure"
3676 #include "confdefs.h"
3677 #include <termio.h>
3678 Autoconf TCGETA
3679 _ACEOF
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681   egrep "$ac_pattern" >/dev/null 2>&1; then
3682   ac_cv_prog_gcc_traditional=yes
3683 fi
3684 rm -f conftest*
3685
3686   fi
3687 fi
3688 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3689 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3690   if test $ac_cv_prog_gcc_traditional = yes; then
3691     CC="$CC -traditional"
3692   fi
3693 fi
3694
3695
3696
3697
3698 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3699 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3700 if test "${am_cv_prog_cc_stdc+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   am_cv_prog_cc_stdc=no
3704 ac_save_CC="$CC"
3705 # Don't try gcc -ansi; that turns off useful extensions and
3706 # breaks some systems' header files.
3707 # AIX                   -qlanglvl=ansi
3708 # Ultrix and OSF/1      -std1
3709 # HP-UX 10.20 and later -Ae
3710 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3711 # SVR4                  -Xc -D__EXTENSIONS__
3712 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3713 do
3714   CC="$ac_save_CC $ac_arg"
3715   cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3717 #include "confdefs.h"
3718 #include <stdarg.h>
3719 #include <stdio.h>
3720 #include <sys/types.h>
3721 #include <sys/stat.h>
3722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3723 struct buf { int x; };
3724 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3725 static char *e (p, i)
3726      char **p;
3727      int i;
3728 {
3729   return p[i];
3730 }
3731 static char *f (char * (*g) (char **, int), char **p, ...)
3732 {
3733   char *s;
3734   va_list v;
3735   va_start (v,p);
3736   s = g (p, va_arg (v,int));
3737   va_end (v);
3738   return s;
3739 }
3740 int test (int i, double x);
3741 struct s1 {int (*f) (int a);};
3742 struct s2 {int (*f) (double a);};
3743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3744 int argc;
3745 char **argv;
3746
3747 #ifdef F77_DUMMY_MAIN
3748 #  ifdef __cplusplus
3749      extern "C"
3750 #  endif
3751    int F77_DUMMY_MAIN() { return 1; }
3752 #endif
3753 int
3754 main ()
3755 {
3756
3757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3758
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.$ac_objext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765   (eval $ac_compile) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); } &&
3769          { ac_try='test -s conftest.$ac_objext'
3770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771   (eval $ac_try) 2>&5
3772   ac_status=$?
3773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774   (exit $ac_status); }; }; then
3775   am_cv_prog_cc_stdc="$ac_arg"; break
3776 else
3777   echo "$as_me: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3779 fi
3780 rm -f conftest.$ac_objext conftest.$ac_ext
3781 done
3782 CC="$ac_save_CC"
3783
3784 fi
3785
3786 if test -z "$am_cv_prog_cc_stdc"; then
3787   echo "$as_me:$LINENO: result: none needed" >&5
3788 echo "${ECHO_T}none needed" >&6
3789 else
3790   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3791 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3792 fi
3793 case "x$am_cv_prog_cc_stdc" in
3794   x|xno) ;;
3795   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3796 esac
3797
3798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3809                   inttypes.h stdint.h unistd.h
3810 do
3811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3812 echo "$as_me:$LINENO: checking for $ac_header" >&5
3813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   cat >conftest.$ac_ext <<_ACEOF
3818 #line $LINENO "configure"
3819 #include "confdefs.h"
3820 $ac_includes_default
3821
3822 #include <$ac_header>
3823 _ACEOF
3824 rm -f conftest.$ac_objext
3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3826   (eval $ac_compile) 2>&5
3827   ac_status=$?
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); } &&
3830          { ac_try='test -s conftest.$ac_objext'
3831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832   (eval $ac_try) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }; }; then
3836   eval "$as_ac_Header=yes"
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3840 eval "$as_ac_Header=no"
3841 fi
3842 rm -f conftest.$ac_objext conftest.$ac_ext
3843 fi
3844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3847   cat >>confdefs.h <<_ACEOF
3848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3849 _ACEOF
3850
3851 fi
3852
3853 done
3854
3855
3856
3857
3858 echo "$as_me:$LINENO: checking for function prototypes" >&5
3859 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3860 if test "$am_cv_prog_cc_stdc" != no; then
3861   echo "$as_me:$LINENO: result: yes" >&5
3862 echo "${ECHO_T}yes" >&6
3863
3864 cat >>confdefs.h <<\_ACEOF
3865 #define PROTOTYPES 1
3866 _ACEOF
3867
3868   U= ANSI2KNR=
3869 else
3870   echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3872   U=_ ANSI2KNR=./ansi2knr
3873 fi
3874 # Ensure some checks needed by ansi2knr itself.
3875 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3876 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3877 if test "${ac_cv_header_stdc+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   cat >conftest.$ac_ext <<_ACEOF
3881 #line $LINENO "configure"
3882 #include "confdefs.h"
3883 #include <stdlib.h>
3884 #include <stdarg.h>
3885 #include <string.h>
3886 #include <float.h>
3887
3888 _ACEOF
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891   ac_status=$?
3892   egrep -v '^ *\+' conftest.er1 >conftest.err
3893   rm -f conftest.er1
3894   cat conftest.err >&5
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); } >/dev/null; then
3897   if test -s conftest.err; then
3898     ac_cpp_err=$ac_c_preproc_warn_flag
3899   else
3900     ac_cpp_err=
3901   fi
3902 else
3903   ac_cpp_err=yes
3904 fi
3905 if test -z "$ac_cpp_err"; then
3906   ac_cv_header_stdc=yes
3907 else
3908   echo "$as_me: failed program was:" >&5
3909   cat conftest.$ac_ext >&5
3910   ac_cv_header_stdc=no
3911 fi
3912 rm -f conftest.err conftest.$ac_ext
3913
3914 if test $ac_cv_header_stdc = yes; then
3915   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3916   cat >conftest.$ac_ext <<_ACEOF
3917 #line $LINENO "configure"
3918 #include "confdefs.h"
3919 #include <string.h>
3920
3921 _ACEOF
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923   egrep "memchr" >/dev/null 2>&1; then
3924   :
3925 else
3926   ac_cv_header_stdc=no
3927 fi
3928 rm -f conftest*
3929
3930 fi
3931
3932 if test $ac_cv_header_stdc = yes; then
3933   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3934   cat >conftest.$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3936 #include "confdefs.h"
3937 #include <stdlib.h>
3938
3939 _ACEOF
3940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3941   egrep "free" >/dev/null 2>&1; then
3942   :
3943 else
3944   ac_cv_header_stdc=no
3945 fi
3946 rm -f conftest*
3947
3948 fi
3949
3950 if test $ac_cv_header_stdc = yes; then
3951   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3952   if test "$cross_compiling" = yes; then
3953   :
3954 else
3955   cat >conftest.$ac_ext <<_ACEOF
3956 #line $LINENO "configure"
3957 #include "confdefs.h"
3958 #include <ctype.h>
3959 #if ((' ' & 0x0FF) == 0x020)
3960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3962 #else
3963 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3964                      || ('j' <= (c) && (c) <= 'r') \
3965                      || ('s' <= (c) && (c) <= 'z'))
3966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3967 #endif
3968
3969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3970 int
3971 main ()
3972 {
3973   int i;
3974   for (i = 0; i < 256; i++)
3975     if (XOR (islower (i), ISLOWER (i))
3976         || toupper (i) != TOUPPER (i))
3977       exit(2);
3978   exit (0);
3979 }
3980 _ACEOF
3981 rm -f conftest$ac_exeext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983   (eval $ac_link) 2>&5
3984   ac_status=$?
3985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988   (eval $ac_try) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); }; }; then
3992   :
3993 else
3994   echo "$as_me: program exited with status $ac_status" >&5
3995 echo "$as_me: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3997 ( exit $ac_status )
3998 ac_cv_header_stdc=no
3999 fi
4000 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001 fi
4002 fi
4003 fi
4004 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4005 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4006 if test $ac_cv_header_stdc = yes; then
4007
4008 cat >>confdefs.h <<\_ACEOF
4009 #define STDC_HEADERS 1
4010 _ACEOF
4011
4012 fi
4013
4014
4015 for ac_header in string.h
4016 do
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019   echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 fi
4024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4026 else
4027   # Is the header compilable?
4028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4030 cat >conftest.$ac_ext <<_ACEOF
4031 #line $LINENO "configure"
4032 #include "confdefs.h"
4033 $ac_includes_default
4034 #include <$ac_header>
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038   (eval $ac_compile) 2>&5
4039   ac_status=$?
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -s conftest.$ac_objext'
4043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044   (eval $ac_try) 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; }; then
4048   ac_header_compiler=yes
4049 else
4050   echo "$as_me: failed program was:" >&5
4051 cat conftest.$ac_ext >&5
4052 ac_header_compiler=no
4053 fi
4054 rm -f conftest.$ac_objext conftest.$ac_ext
4055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4056 echo "${ECHO_T}$ac_header_compiler" >&6
4057
4058 # Is the header present?
4059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4061 cat >conftest.$ac_ext <<_ACEOF
4062 #line $LINENO "configure"
4063 #include "confdefs.h"
4064 #include <$ac_header>
4065 _ACEOF
4066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4068   ac_status=$?
4069   egrep -v '^ *\+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } >/dev/null; then
4074   if test -s conftest.err; then
4075     ac_cpp_err=$ac_c_preproc_warn_flag
4076   else
4077     ac_cpp_err=
4078   fi
4079 else
4080   ac_cpp_err=yes
4081 fi
4082 if test -z "$ac_cpp_err"; then
4083   ac_header_preproc=yes
4084 else
4085   echo "$as_me: failed program was:" >&5
4086   cat conftest.$ac_ext >&5
4087   ac_header_preproc=no
4088 fi
4089 rm -f conftest.err conftest.$ac_ext
4090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4091 echo "${ECHO_T}$ac_header_preproc" >&6
4092
4093 # So?  What about this header?
4094 case $ac_header_compiler:$ac_header_preproc in
4095   yes:no )
4096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4100   no:yes )
4101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4103     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4107 esac
4108 echo "$as_me:$LINENO: checking for $ac_header" >&5
4109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   eval "$as_ac_Header=$ac_header_preproc"
4114 fi
4115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4117
4118 fi
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120   cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 _ACEOF
4123
4124 fi
4125
4126 done
4127
4128
4129
4130 # Check whether --enable-shared or --disable-shared was given.
4131 if test "${enable_shared+set}" = set; then
4132   enableval="$enable_shared"
4133   p=${PACKAGE-default}
4134 case $enableval in
4135 yes) enable_shared=yes ;;
4136 no) enable_shared=no ;;
4137 *)
4138   enable_shared=no
4139   # Look at the argument we got.  We use all the common list separators.
4140   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4141   for pkg in $enableval; do
4142     if test "X$pkg" = "X$p"; then
4143       enable_shared=yes
4144     fi
4145   done
4146   IFS="$ac_save_ifs"
4147   ;;
4148 esac
4149 else
4150   enable_shared=yes
4151 fi;
4152 # Check whether --enable-static or --disable-static was given.
4153 if test "${enable_static+set}" = set; then
4154   enableval="$enable_static"
4155   p=${PACKAGE-default}
4156 case $enableval in
4157 yes) enable_static=yes ;;
4158 no) enable_static=no ;;
4159 *)
4160   enable_static=no
4161   # Look at the argument we got.  We use all the common list separators.
4162   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4163   for pkg in $enableval; do
4164     if test "X$pkg" = "X$p"; then
4165       enable_static=yes
4166     fi
4167   done
4168   IFS="$ac_save_ifs"
4169   ;;
4170 esac
4171 else
4172   enable_static=yes
4173 fi;
4174 # Check whether --enable-fast-install or --disable-fast-install was given.
4175 if test "${enable_fast_install+set}" = set; then
4176   enableval="$enable_fast_install"
4177   p=${PACKAGE-default}
4178 case $enableval in
4179 yes) enable_fast_install=yes ;;
4180 no) enable_fast_install=no ;;
4181 *)
4182   enable_fast_install=no
4183   # Look at the argument we got.  We use all the common list separators.
4184   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4185   for pkg in $enableval; do
4186     if test "X$pkg" = "X$p"; then
4187       enable_fast_install=yes
4188     fi
4189   done
4190   IFS="$ac_save_ifs"
4191   ;;
4192 esac
4193 else
4194   enable_fast_install=yes
4195 fi;
4196 # Find the correct PATH separator.  Usually this is `:', but
4197 # DJGPP uses `;' like DOS.
4198 if test "X${PATH_SEPARATOR+set}" != Xset; then
4199   UNAME=${UNAME-`uname 2>/dev/null`}
4200   case X$UNAME in
4201     *-DOS) lt_cv_sys_path_separator=';' ;;
4202     *)     lt_cv_sys_path_separator=':' ;;
4203   esac
4204   PATH_SEPARATOR=$lt_cv_sys_path_separator
4205 fi
4206
4207
4208 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4209 if test "${with_gnu_ld+set}" = set; then
4210   withval="$with_gnu_ld"
4211   test "$withval" = no || with_gnu_ld=yes
4212 else
4213   with_gnu_ld=no
4214 fi;
4215 ac_prog=ld
4216 if test "$GCC" = yes; then
4217   # Check if gcc -print-prog-name=ld gives a path.
4218   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4219 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4220   case $host in
4221   *-*-mingw*)
4222     # gcc leaves a trailing carriage return which upsets mingw
4223     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4224   *)
4225     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4226   esac
4227   case $ac_prog in
4228     # Accept absolute paths.
4229     [\\/]* | [A-Za-z]:[\\/]*)
4230       re_direlt='/[^/][^/]*/\.\./'
4231       # Canonicalize the path of ld
4232       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4233       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4234         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4235       done
4236       test -z "$LD" && LD="$ac_prog"
4237       ;;
4238   "")
4239     # If it fails, then pretend we aren't using GCC.
4240     ac_prog=ld
4241     ;;
4242   *)
4243     # If it is relative, then search for the first ld in PATH.
4244     with_gnu_ld=unknown
4245     ;;
4246   esac
4247 elif test "$with_gnu_ld" = yes; then
4248   echo "$as_me:$LINENO: checking for GNU ld" >&5
4249 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4250 else
4251   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4252 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4253 fi
4254 if test "${lt_cv_path_LD+set}" = set; then
4255   echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257   if test -z "$LD"; then
4258   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4259   for ac_dir in $PATH; do
4260     test -z "$ac_dir" && ac_dir=.
4261     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4262       lt_cv_path_LD="$ac_dir/$ac_prog"
4263       # Check to see if the program is GNU ld.  I'd rather use --version,
4264       # but apparently some GNU ld's only accept -v.
4265       # Break only if it was the GNU/non-GNU ld that we prefer.
4266       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4267         test "$with_gnu_ld" != no && break
4268       else
4269         test "$with_gnu_ld" != yes && break
4270       fi
4271     fi
4272   done
4273   IFS="$ac_save_ifs"
4274 else
4275   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4276 fi
4277 fi
4278
4279 LD="$lt_cv_path_LD"
4280 if test -n "$LD"; then
4281   echo "$as_me:$LINENO: result: $LD" >&5
4282 echo "${ECHO_T}$LD" >&6
4283 else
4284   echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4286 fi
4287 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4288 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4289    { (exit 1); exit 1; }; }
4290 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4291 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4292 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4296 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4297   lt_cv_prog_gnu_ld=yes
4298 else
4299   lt_cv_prog_gnu_ld=no
4300 fi
4301 fi
4302 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4303 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4304 with_gnu_ld=$lt_cv_prog_gnu_ld
4305
4306
4307 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4308 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4309 if test "${lt_cv_ld_reload_flag+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   lt_cv_ld_reload_flag='-r'
4313 fi
4314 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4315 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4316 reload_flag=$lt_cv_ld_reload_flag
4317 test -n "$reload_flag" && reload_flag=" $reload_flag"
4318
4319 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4320 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4321 if test "${lt_cv_path_NM+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   if test -n "$NM"; then
4325   # Let the user override the test.
4326   lt_cv_path_NM="$NM"
4327 else
4328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4329   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4330     test -z "$ac_dir" && ac_dir=.
4331     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4332     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4333       # Check to see if the nm accepts a BSD-compat flag.
4334       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4335       #   nm: unknown option "B" ignored
4336       # Tru64's nm complains that /dev/null is an invalid object file
4337       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4338         lt_cv_path_NM="$tmp_nm -B"
4339         break
4340       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4341         lt_cv_path_NM="$tmp_nm -p"
4342         break
4343       else
4344         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4345         continue # so that we can try to find one that supports BSD flags
4346       fi
4347     fi
4348   done
4349   IFS="$ac_save_ifs"
4350   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4351 fi
4352 fi
4353
4354 NM="$lt_cv_path_NM"
4355 echo "$as_me:$LINENO: result: $NM" >&5
4356 echo "${ECHO_T}$NM" >&6
4357
4358 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4359 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4360 LN_S=$as_ln_s
4361 if test "$LN_S" = "ln -s"; then
4362   echo "$as_me:$LINENO: result: yes" >&5
4363 echo "${ECHO_T}yes" >&6
4364 else
4365   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4366 echo "${ECHO_T}no, using $LN_S" >&6
4367 fi
4368
4369 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4370 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4371 if test "${lt_cv_deplibs_check_method+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   lt_cv_file_magic_cmd='$MAGIC_CMD'
4375 lt_cv_file_magic_test_file=
4376 lt_cv_deplibs_check_method='unknown'
4377 # Need to set the preceding variable on all platforms that support
4378 # interlibrary dependencies.
4379 # 'none' -- dependencies not supported.
4380 # `unknown' -- same as none, but documents that we really don't know.
4381 # 'pass_all' -- all dependencies passed with no checks.
4382 # 'test_compile' -- check by making test program.
4383 # 'file_magic [[regex]]' -- check by looking for files in library path
4384 # which responds to the $file_magic_cmd with a given egrep regex.
4385 # If you have `file' or equivalent on your system and you're not sure
4386 # whether `pass_all' will *always* work, you probably want this one.
4387
4388 case $host_os in
4389 aix4* | aix5*)
4390   lt_cv_deplibs_check_method=pass_all
4391   ;;
4392
4393 beos*)
4394   lt_cv_deplibs_check_method=pass_all
4395   ;;
4396
4397 bsdi4*)
4398   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4399   lt_cv_file_magic_cmd='/usr/bin/file -L'
4400   lt_cv_file_magic_test_file=/shlib/libc.so
4401   ;;
4402
4403 cygwin* | mingw* | pw32*)
4404   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4405   lt_cv_file_magic_cmd='$OBJDUMP -f'
4406   ;;
4407
4408 darwin* | rhapsody*)
4409   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4410   lt_cv_file_magic_cmd='/usr/bin/file -L'
4411   case "$host_os" in
4412   rhapsody* | darwin1.[012])
4413     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4414     ;;
4415   *) # Darwin 1.3 on
4416     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4417     ;;
4418   esac
4419   ;;
4420
4421 freebsd*)
4422   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4423     case $host_cpu in
4424     i*86 )
4425       # Not sure whether the presence of OpenBSD here was a mistake.
4426       # Let's accept both of them until this is cleared up.
4427       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4428       lt_cv_file_magic_cmd=/usr/bin/file
4429       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4430       ;;
4431     esac
4432   else
4433     lt_cv_deplibs_check_method=pass_all
4434   fi
4435   ;;
4436
4437 gnu*)
4438   lt_cv_deplibs_check_method=pass_all
4439   ;;
4440
4441 hpux10.20*|hpux11*)
4442   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4443   lt_cv_file_magic_cmd=/usr/bin/file
4444   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4445   ;;
4446
4447 irix5* | irix6*)
4448   case $host_os in
4449   irix5*)
4450     # this will be overridden with pass_all, but let us keep it just in case
4451     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4452     ;;
4453   *)
4454     case $LD in
4455     *-32|*"-32 ") libmagic=32-bit;;
4456     *-n32|*"-n32 ") libmagic=N32;;
4457     *-64|*"-64 ") libmagic=64-bit;;
4458     *) libmagic=never-match;;
4459     esac
4460     # this will be overridden with pass_all, but let us keep it just in case
4461     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4462     ;;
4463   esac
4464   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4465   lt_cv_deplibs_check_method=pass_all
4466   ;;
4467
4468 # This must be Linux ELF.
4469 linux-gnu*)
4470   case $host_cpu in
4471   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
4472     lt_cv_deplibs_check_method=pass_all ;;
4473   *)
4474     # glibc up to 2.1.1 does not perform some relocations on ARM
4475     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4476   esac
4477   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4478   ;;
4479
4480 netbsd*)
4481   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4482     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4483   else
4484     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4485   fi
4486   ;;
4487
4488 newos6*)
4489   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4490   lt_cv_file_magic_cmd=/usr/bin/file
4491   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4492   ;;
4493
4494 openbsd*)
4495   lt_cv_file_magic_cmd=/usr/bin/file
4496   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4497   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4498     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4499   else
4500     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4501   fi
4502   ;;
4503
4504 osf3* | osf4* | osf5*)
4505   # this will be overridden with pass_all, but let us keep it just in case
4506   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4507   lt_cv_file_magic_test_file=/shlib/libc.so
4508   lt_cv_deplibs_check_method=pass_all
4509   ;;
4510
4511 sco3.2v5*)
4512   lt_cv_deplibs_check_method=pass_all
4513   ;;
4514
4515 solaris*)
4516   lt_cv_deplibs_check_method=pass_all
4517   lt_cv_file_magic_test_file=/lib/libc.so
4518   ;;
4519
4520 sysv5uw[78]* | sysv4*uw2*)
4521   lt_cv_deplibs_check_method=pass_all
4522   ;;
4523
4524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4525   case $host_vendor in
4526   motorola)
4527     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]'
4528     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4529     ;;
4530   ncr)
4531     lt_cv_deplibs_check_method=pass_all
4532     ;;
4533   sequent)
4534     lt_cv_file_magic_cmd='/bin/file'
4535     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4536     ;;
4537   sni)
4538     lt_cv_file_magic_cmd='/bin/file'
4539     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4540     lt_cv_file_magic_test_file=/lib/libc.so
4541     ;;
4542   esac
4543   ;;
4544 esac
4545
4546 fi
4547 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4548 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4549 file_magic_cmd=$lt_cv_file_magic_cmd
4550 deplibs_check_method=$lt_cv_deplibs_check_method
4551
4552
4553
4554
4555
4556
4557
4558 # Check for command to grab the raw symbol name followed by C symbol from nm.
4559 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4560 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4561 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564
4565 # These are sane defaults that work on at least a few old systems.
4566 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4567
4568 # Character class describing NM global symbol codes.
4569 symcode='[BCDEGRST]'
4570
4571 # Regexp to match symbols that can be accessed directly from C.
4572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4573
4574 # Transform the above into a raw symbol and a C symbol.
4575 symxfrm='\1 \2\3 \3'
4576
4577 # Transform an extracted symbol line into a proper C declaration
4578 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4579
4580 # Transform an extracted symbol line into symbol name and symbol address
4581 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4582
4583 # Define system-specific variables.
4584 case $host_os in
4585 aix*)
4586   symcode='[BCDT]'
4587   ;;
4588 cygwin* | mingw* | pw32*)
4589   symcode='[ABCDGISTW]'
4590   ;;
4591 hpux*) # Its linker distinguishes data from code symbols
4592   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4593   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4594   ;;
4595 irix*)
4596   symcode='[BCDEGRST]'
4597   ;;
4598 solaris* | sysv5*)
4599   symcode='[BDT]'
4600   ;;
4601 sysv4)
4602   symcode='[DFNSTU]'
4603   ;;
4604 esac
4605
4606 # Handle CRLF in mingw tool chain
4607 opt_cr=
4608 case $host_os in
4609 mingw*)
4610   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4611   ;;
4612 esac
4613
4614 # If we're using GNU nm, then use its standard symbol codes.
4615 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4616   symcode='[ABCDGISTW]'
4617 fi
4618
4619 # Try without a prefix undercore, then with it.
4620 for ac_symprfx in "" "_"; do
4621
4622   # Write the raw and C identifiers.
4623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4624
4625   # Check to see that the pipe works correctly.
4626   pipe_works=no
4627   rm -f conftest*
4628   cat > conftest.$ac_ext <<EOF
4629 #ifdef __cplusplus
4630 extern "C" {
4631 #endif
4632 char nm_test_var;
4633 void nm_test_func(){}
4634 #ifdef __cplusplus
4635 }
4636 #endif
4637 int main(){nm_test_var='a';nm_test_func();return(0);}
4638 EOF
4639
4640   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641   (eval $ac_compile) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; then
4645     # Now try to grab the symbols.
4646     nlist=conftest.nm
4647     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4648   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } && test -s "$nlist"; then
4652       # Try sorting and uniquifying the output.
4653       if sort "$nlist" | uniq > "$nlist"T; then
4654         mv -f "$nlist"T "$nlist"
4655       else
4656         rm -f "$nlist"T
4657       fi
4658
4659       # Make sure that we snagged all the symbols we need.
4660       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4661         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4662           cat <<EOF > conftest.$ac_ext
4663 #ifdef __cplusplus
4664 extern "C" {
4665 #endif
4666
4667 EOF
4668           # Now generate the symbol file.
4669           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4670
4671           cat <<EOF >> conftest.$ac_ext
4672 #if defined (__STDC__) && __STDC__
4673 # define lt_ptr void *
4674 #else
4675 # define lt_ptr char *
4676 # define const
4677 #endif
4678
4679 /* The mapping between symbol names and symbols. */
4680 const struct {
4681   const char *name;
4682   lt_ptr address;
4683 }
4684 lt_preloaded_symbols[] =
4685 {
4686 EOF
4687           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4688           cat <<\EOF >> conftest.$ac_ext
4689   {0, (lt_ptr) 0}
4690 };
4691
4692 #ifdef __cplusplus
4693 }
4694 #endif
4695 EOF
4696           # Now try linking the two files.
4697           mv conftest.$ac_objext conftstm.$ac_objext
4698           save_LIBS="$LIBS"
4699           save_CFLAGS="$CFLAGS"
4700           LIBS="conftstm.$ac_objext"
4701           CFLAGS="$CFLAGS$no_builtin_flag"
4702           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703   (eval $ac_link) 2>&5
4704   ac_status=$?
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); } && test -s conftest; then
4707             pipe_works=yes
4708           fi
4709           LIBS="$save_LIBS"
4710           CFLAGS="$save_CFLAGS"
4711         else
4712           echo "cannot find nm_test_func in $nlist" >&5
4713         fi
4714       else
4715         echo "cannot find nm_test_var in $nlist" >&5
4716       fi
4717     else
4718       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4719     fi
4720   else
4721     echo "$progname: failed program was:" >&5
4722     cat conftest.$ac_ext >&5
4723   fi
4724   rm -f conftest* conftst*
4725
4726   # Do not use the global_symbol_pipe unless it works.
4727   if test "$pipe_works" = yes; then
4728     break
4729   else
4730     lt_cv_sys_global_symbol_pipe=
4731   fi
4732 done
4733
4734 fi
4735
4736 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4738   global_symbol_to_cdecl=
4739   global_symbol_to_c_name_address=
4740 else
4741   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4742   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4743 fi
4744 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4745 then
4746   echo "$as_me:$LINENO: result: failed" >&5
4747 echo "${ECHO_T}failed" >&6
4748 else
4749   echo "$as_me:$LINENO: result: ok" >&5
4750 echo "${ECHO_T}ok" >&6
4751 fi
4752
4753
4754 for ac_header in dlfcn.h
4755 do
4756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4758   echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 fi
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 else
4766   # Is the header compilable?
4767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4772 $ac_includes_default
4773 #include <$ac_header>
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777   (eval $ac_compile) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -s conftest.$ac_objext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   ac_header_compiler=yes
4788 else
4789   echo "$as_me: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 ac_header_compiler=no
4792 fi
4793 rm -f conftest.$ac_objext conftest.$ac_ext
4794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4795 echo "${ECHO_T}$ac_header_compiler" >&6
4796
4797 # Is the header present?
4798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4800 cat >conftest.$ac_ext <<_ACEOF
4801 #line $LINENO "configure"
4802 #include "confdefs.h"
4803 #include <$ac_header>
4804 _ACEOF
4805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4807   ac_status=$?
4808   egrep -v '^ *\+' conftest.er1 >conftest.err
4809   rm -f conftest.er1
4810   cat conftest.err >&5
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); } >/dev/null; then
4813   if test -s conftest.err; then
4814     ac_cpp_err=$ac_c_preproc_warn_flag
4815   else
4816     ac_cpp_err=
4817   fi
4818 else
4819   ac_cpp_err=yes
4820 fi
4821 if test -z "$ac_cpp_err"; then
4822   ac_header_preproc=yes
4823 else
4824   echo "$as_me: failed program was:" >&5
4825   cat conftest.$ac_ext >&5
4826   ac_header_preproc=no
4827 fi
4828 rm -f conftest.err conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4830 echo "${ECHO_T}$ac_header_preproc" >&6
4831
4832 # So?  What about this header?
4833 case $ac_header_compiler:$ac_header_preproc in
4834   yes:no )
4835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4839   no:yes )
4840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4842     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4846 esac
4847 echo "$as_me:$LINENO: checking for $ac_header" >&5
4848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   eval "$as_ac_Header=$ac_header_preproc"
4853 fi
4854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4856
4857 fi
4858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4859   cat >>confdefs.h <<_ACEOF
4860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4861 _ACEOF
4862
4863 fi
4864
4865 done
4866
4867
4868
4869
4870
4871 # Only perform the check for file, if the check method requires it
4872 case $deplibs_check_method in
4873 file_magic*)
4874   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4875     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4876 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4878   echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880   case $MAGIC_CMD in
4881   /*)
4882   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4883   ;;
4884   ?:/*)
4885   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4886   ;;
4887   *)
4888   ac_save_MAGIC_CMD="$MAGIC_CMD"
4889   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4890   ac_dummy="/usr/bin:$PATH"
4891   for ac_dir in $ac_dummy; do
4892     test -z "$ac_dir" && ac_dir=.
4893     if test -f $ac_dir/${ac_tool_prefix}file; then
4894       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4895       if test -n "$file_magic_test_file"; then
4896         case $deplibs_check_method in
4897         "file_magic "*)
4898           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4899           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4900           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4901             egrep "$file_magic_regex" > /dev/null; then
4902             :
4903           else
4904             cat <<EOF 1>&2
4905
4906 *** Warning: the command libtool uses to detect shared libraries,
4907 *** $file_magic_cmd, produces output that libtool cannot recognize.
4908 *** The result is that libtool may fail to recognize shared libraries
4909 *** as such.  This will affect the creation of libtool libraries that
4910 *** depend on shared libraries, but programs linked with such libtool
4911 *** libraries will work regardless of this problem.  Nevertheless, you
4912 *** may want to report the problem to your system manager and/or to
4913 *** bug-libtool@gnu.org
4914
4915 EOF
4916           fi ;;
4917         esac
4918       fi
4919       break
4920     fi
4921   done
4922   IFS="$ac_save_ifs"
4923   MAGIC_CMD="$ac_save_MAGIC_CMD"
4924   ;;
4925 esac
4926 fi
4927
4928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4929 if test -n "$MAGIC_CMD"; then
4930   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4931 echo "${ECHO_T}$MAGIC_CMD" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937 if test -z "$lt_cv_path_MAGIC_CMD"; then
4938   if test -n "$ac_tool_prefix"; then
4939     echo "$as_me:$LINENO: checking for file" >&5
4940 echo $ECHO_N "checking for file... $ECHO_C" >&6
4941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   case $MAGIC_CMD in
4945   /*)
4946   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4947   ;;
4948   ?:/*)
4949   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4950   ;;
4951   *)
4952   ac_save_MAGIC_CMD="$MAGIC_CMD"
4953   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4954   ac_dummy="/usr/bin:$PATH"
4955   for ac_dir in $ac_dummy; do
4956     test -z "$ac_dir" && ac_dir=.
4957     if test -f $ac_dir/file; then
4958       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4959       if test -n "$file_magic_test_file"; then
4960         case $deplibs_check_method in
4961         "file_magic "*)
4962           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4963           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4964           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4965             egrep "$file_magic_regex" > /dev/null; then
4966             :
4967           else
4968             cat <<EOF 1>&2
4969
4970 *** Warning: the command libtool uses to detect shared libraries,
4971 *** $file_magic_cmd, produces output that libtool cannot recognize.
4972 *** The result is that libtool may fail to recognize shared libraries
4973 *** as such.  This will affect the creation of libtool libraries that
4974 *** depend on shared libraries, but programs linked with such libtool
4975 *** libraries will work regardless of this problem.  Nevertheless, you
4976 *** may want to report the problem to your system manager and/or to
4977 *** bug-libtool@gnu.org
4978
4979 EOF
4980           fi ;;
4981         esac
4982       fi
4983       break
4984     fi
4985   done
4986   IFS="$ac_save_ifs"
4987   MAGIC_CMD="$ac_save_MAGIC_CMD"
4988   ;;
4989 esac
4990 fi
4991
4992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4993 if test -n "$MAGIC_CMD"; then
4994   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4995 echo "${ECHO_T}$MAGIC_CMD" >&6
4996 else
4997   echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
4999 fi
5000
5001   else
5002     MAGIC_CMD=:
5003   fi
5004 fi
5005
5006   fi
5007   ;;
5008 esac
5009
5010 if test -n "$ac_tool_prefix"; then
5011   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5012 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_RANLIB+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   if test -n "$RANLIB"; then
5019   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026   for ac_exec_ext in '' $ac_executable_extensions; do
5027   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033 done
5034
5035 fi
5036 fi
5037 RANLIB=$ac_cv_prog_RANLIB
5038 if test -n "$RANLIB"; then
5039   echo "$as_me:$LINENO: result: $RANLIB" >&5
5040 echo "${ECHO_T}$RANLIB" >&6
5041 else
5042   echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5044 fi
5045
5046 fi
5047 if test -z "$ac_cv_prog_RANLIB"; then
5048   ac_ct_RANLIB=$RANLIB
5049   # Extract the first word of "ranlib", so it can be a program name with args.
5050 set dummy ranlib; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   if test -n "$ac_ct_RANLIB"; then
5057   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5066     ac_cv_prog_ac_ct_RANLIB="ranlib"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072
5073   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5074 fi
5075 fi
5076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5077 if test -n "$ac_ct_RANLIB"; then
5078   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5079 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5080 else
5081   echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6
5083 fi
5084
5085   RANLIB=$ac_ct_RANLIB
5086 else
5087   RANLIB="$ac_cv_prog_RANLIB"
5088 fi
5089
5090 if test -n "$ac_tool_prefix"; then
5091   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5092 set dummy ${ac_tool_prefix}strip; ac_word=$2
5093 echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095 if test "${ac_cv_prog_STRIP+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   if test -n "$STRIP"; then
5099   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114
5115 fi
5116 fi
5117 STRIP=$ac_cv_prog_STRIP
5118 if test -n "$STRIP"; then
5119   echo "$as_me:$LINENO: result: $STRIP" >&5
5120 echo "${ECHO_T}$STRIP" >&6
5121 else
5122   echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5124 fi
5125
5126 fi
5127 if test -z "$ac_cv_prog_STRIP"; then
5128   ac_ct_STRIP=$STRIP
5129   # Extract the first word of "strip", so it can be a program name with args.
5130 set dummy strip; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   if test -n "$ac_ct_STRIP"; then
5137   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144   for ac_exec_ext in '' $ac_executable_extensions; do
5145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146     ac_cv_prog_ac_ct_STRIP="strip"
5147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151 done
5152
5153   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5154 fi
5155 fi
5156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5157 if test -n "$ac_ct_STRIP"; then
5158   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5159 echo "${ECHO_T}$ac_ct_STRIP" >&6
5160 else
5161   echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6
5163 fi
5164
5165   STRIP=$ac_ct_STRIP
5166 else
5167   STRIP="$ac_cv_prog_STRIP"
5168 fi
5169
5170
5171 enable_dlopen=no
5172 enable_win32_dll=no
5173
5174 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5175 if test "${enable_libtool_lock+set}" = set; then
5176   enableval="$enable_libtool_lock"
5177
5178 fi;
5179 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5180
5181 # Some flags need to be propagated to the compiler or linker for good
5182 # libtool support.
5183 case $host in
5184 *-*-irix6*)
5185   # Find out which ABI we are using.
5186   echo '#line 5186 "configure"' > conftest.$ac_ext
5187   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188   (eval $ac_compile) 2>&5
5189   ac_status=$?
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); }; then
5192     case `/usr/bin/file conftest.$ac_objext` in
5193     *32-bit*)
5194       LD="${LD-ld} -32"
5195       ;;
5196     *N32*)
5197       LD="${LD-ld} -n32"
5198       ;;
5199     *64-bit*)
5200       LD="${LD-ld} -64"
5201       ;;
5202     esac
5203   fi
5204   rm -rf conftest*
5205   ;;
5206
5207 *-*-sco3.2v5*)
5208   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5209   SAVE_CFLAGS="$CFLAGS"
5210   CFLAGS="$CFLAGS -belf"
5211   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5212 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5213 if test "${lt_cv_cc_needs_belf+set}" = set; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216
5217
5218      ac_ext=c
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223
5224      cat >conftest.$ac_ext <<_ACEOF
5225 #line $LINENO "configure"
5226 #include "confdefs.h"
5227
5228 #ifdef F77_DUMMY_MAIN
5229 #  ifdef __cplusplus
5230      extern "C"
5231 #  endif
5232    int F77_DUMMY_MAIN() { return 1; }
5233 #endif
5234 int
5235 main ()
5236 {
5237
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext conftest$ac_exeext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244   (eval $ac_link) 2>&5
5245   ac_status=$?
5246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247   (exit $ac_status); } &&
5248          { ac_try='test -s conftest$ac_exeext'
5249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250   (eval $ac_try) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; }; then
5254   lt_cv_cc_needs_belf=yes
5255 else
5256   echo "$as_me: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5258 lt_cv_cc_needs_belf=no
5259 fi
5260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5261      ac_ext=c
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266
5267 fi
5268 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5269 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5270   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5271     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5272     CFLAGS="$SAVE_CFLAGS"
5273   fi
5274   ;;
5275
5276
5277 esac
5278
5279 # Sed substitution that helps us do robust quoting.  It backslashifies
5280 # metacharacters that are still active within double-quoted strings.
5281 Xsed='sed -e s/^X//'
5282 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5283
5284 # Same as above, but do not quote variable references.
5285 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5286
5287 # Sed substitution to delay expansion of an escaped shell variable in a
5288 # double_quote_subst'ed string.
5289 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5290
5291 # Constants:
5292 rm="rm -f"
5293
5294 # Global variables:
5295 default_ofile=libtool
5296 can_build_shared=yes
5297
5298 # All known linkers require a `.a' archive for static linking (except M$VC,
5299 # which needs '.lib').
5300 libext=a
5301 ltmain="$ac_aux_dir/ltmain.sh"
5302 ofile="$default_ofile"
5303 with_gnu_ld="$lt_cv_prog_gnu_ld"
5304 need_locks="$enable_libtool_lock"
5305
5306 old_CC="$CC"
5307 old_CFLAGS="$CFLAGS"
5308
5309 # Set sane defaults for various variables
5310 test -z "$AR" && AR=ar
5311 test -z "$AR_FLAGS" && AR_FLAGS=cru
5312 test -z "$AS" && AS=as
5313 test -z "$CC" && CC=cc
5314 test -z "$DLLTOOL" && DLLTOOL=dlltool
5315 test -z "$LD" && LD=ld
5316 test -z "$LN_S" && LN_S="ln -s"
5317 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5318 test -z "$NM" && NM=nm
5319 test -z "$OBJDUMP" && OBJDUMP=objdump
5320 test -z "$RANLIB" && RANLIB=:
5321 test -z "$STRIP" && STRIP=:
5322 test -z "$ac_objext" && ac_objext=o
5323
5324 if test x"$host" != x"$build"; then
5325   ac_tool_prefix=${host_alias}-
5326 else
5327   ac_tool_prefix=
5328 fi
5329
5330 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5331 case $host_os in
5332 linux-gnu*) ;;
5333 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5334 esac
5335
5336 case $host_os in
5337 aix3*)
5338   # AIX sometimes has problems with the GCC collect2 program.  For some
5339   # reason, if we set the COLLECT_NAMES environment variable, the problems
5340   # vanish in a puff of smoke.
5341   if test "X${COLLECT_NAMES+set}" != Xset; then
5342     COLLECT_NAMES=
5343     export COLLECT_NAMES
5344   fi
5345   ;;
5346 esac
5347
5348 # Determine commands to create old-style static archives.
5349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5350 old_postinstall_cmds='chmod 644 $oldlib'
5351 old_postuninstall_cmds=
5352
5353 if test -n "$RANLIB"; then
5354   case $host_os in
5355   openbsd*)
5356     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5357     ;;
5358   *)
5359     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5360     ;;
5361   esac
5362   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5363 fi
5364
5365 # Allow CC to be a program name with arguments.
5366 set dummy $CC
5367 compiler="$2"
5368
5369 echo "$as_me:$LINENO: checking for objdir" >&5
5370 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5371 rm -f .libs 2>/dev/null
5372 mkdir .libs 2>/dev/null
5373 if test -d .libs; then
5374   objdir=.libs
5375 else
5376   # MS-DOS does not allow filenames that begin with a dot.
5377   objdir=_libs
5378 fi
5379 rmdir .libs 2>/dev/null
5380 echo "$as_me:$LINENO: result: $objdir" >&5
5381 echo "${ECHO_T}$objdir" >&6
5382
5383
5384
5385 # Check whether --with-pic or --without-pic was given.
5386 if test "${with_pic+set}" = set; then
5387   withval="$with_pic"
5388   pic_mode="$withval"
5389 else
5390   pic_mode=default
5391 fi;
5392 test -z "$pic_mode" && pic_mode=default
5393
5394 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5395 # in isolation, and that seeing it set (from the cache) indicates that
5396 # the associated values are set (in the cache) correctly too.
5397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5399 if test "${lt_cv_prog_cc_pic+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402    lt_cv_prog_cc_pic=
5403   lt_cv_prog_cc_shlib=
5404   lt_cv_prog_cc_wl=
5405   lt_cv_prog_cc_static=
5406   lt_cv_prog_cc_no_builtin=
5407   lt_cv_prog_cc_can_build_shared=$can_build_shared
5408
5409   if test "$GCC" = yes; then
5410     lt_cv_prog_cc_wl='-Wl,'
5411     lt_cv_prog_cc_static='-static'
5412
5413     case $host_os in
5414     aix*)
5415       # Below there is a dirty hack to force normal static linking with -ldl
5416       # The problem is because libdl dynamically linked with both libc and
5417       # libC (AIX C++ library), which obviously doesn't included in libraries
5418       # list by gcc. This cause undefined symbols with -static flags.
5419       # This hack allows C programs to be linked with "-static -ldl", but
5420       # not sure about C++ programs.
5421       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5422       ;;
5423     amigaos*)
5424       # FIXME: we need at least 68020 code to build shared libraries, but
5425       # adding the `-m68020' flag to GCC prevents building anything better,
5426       # like `-m68040'.
5427       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5428       ;;
5429     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5430       # PIC is the default for these OSes.
5431       ;;
5432     darwin* | rhapsody*)
5433       # PIC is the default on this platform
5434       # Common symbols not allowed in MH_DYLIB files
5435       lt_cv_prog_cc_pic='-fno-common'
5436       ;;
5437     cygwin* | mingw* | pw32* | os2*)
5438       # This hack is so that the source file can tell whether it is being
5439       # built for inclusion in a dll (and should export symbols for example).
5440       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5441       ;;
5442     sysv4*MP*)
5443       if test -d /usr/nec; then
5444          lt_cv_prog_cc_pic=-Kconform_pic
5445       fi
5446       ;;
5447     *)
5448       lt_cv_prog_cc_pic='-fPIC'
5449       ;;
5450     esac
5451   else
5452     # PORTME Check for PIC flags for the system compiler.
5453     case $host_os in
5454     aix3* | aix4* | aix5*)
5455       lt_cv_prog_cc_wl='-Wl,'
5456       # All AIX code is PIC.
5457       if test "$host_cpu" = ia64; then
5458         # AIX 5 now supports IA64 processor
5459         lt_cv_prog_cc_static='-Bstatic'
5460       else
5461         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5462       fi
5463       ;;
5464
5465     hpux9* | hpux10* | hpux11*)
5466       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5467       lt_cv_prog_cc_wl='-Wl,'
5468       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5469       lt_cv_prog_cc_pic='+Z'
5470       ;;
5471
5472     irix5* | irix6*)
5473       lt_cv_prog_cc_wl='-Wl,'
5474       lt_cv_prog_cc_static='-non_shared'
5475       # PIC (with -KPIC) is the default.
5476       ;;
5477
5478     cygwin* | mingw* | pw32* | os2*)
5479       # This hack is so that the source file can tell whether it is being
5480       # built for inclusion in a dll (and should export symbols for example).
5481       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5482       ;;
5483
5484     newsos6)
5485       lt_cv_prog_cc_pic='-KPIC'
5486       lt_cv_prog_cc_static='-Bstatic'
5487       ;;
5488
5489     osf3* | osf4* | osf5*)
5490       # All OSF/1 code is PIC.
5491       lt_cv_prog_cc_wl='-Wl,'
5492       lt_cv_prog_cc_static='-non_shared'
5493       ;;
5494
5495     sco3.2v5*)
5496       lt_cv_prog_cc_pic='-Kpic'
5497       lt_cv_prog_cc_static='-dn'
5498       lt_cv_prog_cc_shlib='-belf'
5499       ;;
5500
5501     solaris*)
5502       lt_cv_prog_cc_pic='-KPIC'
5503       lt_cv_prog_cc_static='-Bstatic'
5504       lt_cv_prog_cc_wl='-Wl,'
5505       ;;
5506
5507     sunos4*)
5508       lt_cv_prog_cc_pic='-PIC'
5509       lt_cv_prog_cc_static='-Bstatic'
5510       lt_cv_prog_cc_wl='-Qoption ld '
5511       ;;
5512
5513     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5514       lt_cv_prog_cc_pic='-KPIC'
5515       lt_cv_prog_cc_static='-Bstatic'
5516       if test "x$host_vendor" = xsni; then
5517         lt_cv_prog_cc_wl='-LD'
5518       else
5519         lt_cv_prog_cc_wl='-Wl,'
5520       fi
5521       ;;
5522
5523     uts4*)
5524       lt_cv_prog_cc_pic='-pic'
5525       lt_cv_prog_cc_static='-Bstatic'
5526       ;;
5527
5528     sysv4*MP*)
5529       if test -d /usr/nec ;then
5530         lt_cv_prog_cc_pic='-Kconform_pic'
5531         lt_cv_prog_cc_static='-Bstatic'
5532       fi
5533       ;;
5534
5535     *)
5536       lt_cv_prog_cc_can_build_shared=no
5537       ;;
5538     esac
5539   fi
5540
5541 fi
5542
5543 if test -z "$lt_cv_prog_cc_pic"; then
5544   echo "$as_me:$LINENO: result: none" >&5
5545 echo "${ECHO_T}none" >&6
5546 else
5547   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5548 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5549
5550   # Check to make sure the pic_flag actually works.
5551   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5552 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5553   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5554   echo $ECHO_N "(cached) $ECHO_C" >&6
5555 else
5556       save_CFLAGS="$CFLAGS"
5557     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5558     cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 #include "confdefs.h"
5561
5562 #ifdef F77_DUMMY_MAIN
5563 #  ifdef __cplusplus
5564      extern "C"
5565 #  endif
5566    int F77_DUMMY_MAIN() { return 1; }
5567 #endif
5568 int
5569 main ()
5570 {
5571
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578   (eval $ac_compile) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } &&
5582          { ac_try='test -s conftest.$ac_objext'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588         case $host_os in
5589       hpux9* | hpux10* | hpux11*)
5590         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5591         # they create non-PIC objects.  So, if there were any warnings, we
5592         # assume that PIC is not supported.
5593         if test -s conftest.err; then
5594           lt_cv_prog_cc_pic_works=no
5595         else
5596           lt_cv_prog_cc_pic_works=yes
5597         fi
5598         ;;
5599       *)
5600         lt_cv_prog_cc_pic_works=yes
5601         ;;
5602       esac
5603
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607       lt_cv_prog_cc_pic_works=no
5608
5609 fi
5610 rm -f conftest.$ac_objext conftest.$ac_ext
5611     CFLAGS="$save_CFLAGS"
5612
5613 fi
5614
5615
5616   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5617     lt_cv_prog_cc_pic=
5618     lt_cv_prog_cc_can_build_shared=no
5619   else
5620     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5621   fi
5622
5623   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5624 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5625 fi
5626
5627 # Check for any special shared library compilation flags.
5628 if test -n "$lt_cv_prog_cc_shlib"; then
5629   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5630 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5631   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5632   else
5633    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5634 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5635     lt_cv_prog_cc_can_build_shared=no
5636   fi
5637 fi
5638
5639 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5640 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5641 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644     lt_cv_prog_cc_static_works=no
5645   save_LDFLAGS="$LDFLAGS"
5646   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5647   cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5649 #include "confdefs.h"
5650
5651 #ifdef F77_DUMMY_MAIN
5652 #  ifdef __cplusplus
5653      extern "C"
5654 #  endif
5655    int F77_DUMMY_MAIN() { return 1; }
5656 #endif
5657 int
5658 main ()
5659 {
5660
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667   (eval $ac_link) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } &&
5671          { ac_try='test -s conftest$ac_exeext'
5672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673   (eval $ac_try) 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }; }; then
5677   lt_cv_prog_cc_static_works=yes
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 fi
5682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5683   LDFLAGS="$save_LDFLAGS"
5684
5685 fi
5686
5687
5688 # Belt *and* braces to stop my trousers falling down:
5689 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5690 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5691 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5692
5693 pic_flag="$lt_cv_prog_cc_pic"
5694 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5695 wl="$lt_cv_prog_cc_wl"
5696 link_static_flag="$lt_cv_prog_cc_static"
5697 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5698 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5699
5700
5701 # Check to see if options -o and -c are simultaneously supported by compiler
5702 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5703 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5704 if test "${lt_cv_compiler_c_o+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707
5708 $rm -r conftest 2>/dev/null
5709 mkdir conftest
5710 cd conftest
5711 echo "int some_variable = 0;" > conftest.$ac_ext
5712 mkdir out
5713 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5714 # that will create temporary files in the current directory regardless of
5715 # the output directory.  Thus, making CWD read-only will cause this test
5716 # to fail, enabling locking or at least warning the user not to do parallel
5717 # builds.
5718 chmod -w .
5719 save_CFLAGS="$CFLAGS"
5720 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5721 compiler_c_o=no
5722 if { (eval echo configure:5722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5723   # The compiler can only warn and ignore the option if not recognized
5724   # So say no if there are warnings
5725   if test -s out/conftest.err; then
5726     lt_cv_compiler_c_o=no
5727   else
5728     lt_cv_compiler_c_o=yes
5729   fi
5730 else
5731   # Append any errors to the config.log.
5732   cat out/conftest.err 1>&5
5733   lt_cv_compiler_c_o=no
5734 fi
5735 CFLAGS="$save_CFLAGS"
5736 chmod u+w .
5737 $rm conftest* out/*
5738 rmdir out
5739 cd ..
5740 rmdir conftest
5741 $rm -r conftest 2>/dev/null
5742
5743 fi
5744
5745 compiler_c_o=$lt_cv_compiler_c_o
5746 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5747 echo "${ECHO_T}$compiler_c_o" >&6
5748
5749 if test x"$compiler_c_o" = x"yes"; then
5750   # Check to see if we can write to a .lo
5751   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5752 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5753   if test "${lt_cv_compiler_o_lo+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756
5757   lt_cv_compiler_o_lo=no
5758   save_CFLAGS="$CFLAGS"
5759   CFLAGS="$CFLAGS -c -o conftest.lo"
5760   save_objext="$ac_objext"
5761   ac_objext=lo
5762   cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 #include "confdefs.h"
5765
5766 #ifdef F77_DUMMY_MAIN
5767 #  ifdef __cplusplus
5768      extern "C"
5769 #  endif
5770    int F77_DUMMY_MAIN() { return 1; }
5771 #endif
5772 int
5773 main ()
5774 {
5775 int some_variable = 0;
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782   (eval $ac_compile) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -s conftest.$ac_objext'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; }; then
5792       # The compiler can only warn and ignore the option if not recognized
5793     # So say no if there are warnings
5794     if test -s conftest.err; then
5795       lt_cv_compiler_o_lo=no
5796     else
5797       lt_cv_compiler_o_lo=yes
5798     fi
5799
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5803 fi
5804 rm -f conftest.$ac_objext conftest.$ac_ext
5805   ac_objext="$save_objext"
5806   CFLAGS="$save_CFLAGS"
5807
5808 fi
5809
5810   compiler_o_lo=$lt_cv_compiler_o_lo
5811   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5812 echo "${ECHO_T}$compiler_o_lo" >&6
5813 else
5814   compiler_o_lo=no
5815 fi
5816
5817 # Check to see if we can do hard links to lock some files if needed
5818 hard_links="nottested"
5819 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5820   # do not overwrite the value of need_locks provided by the user
5821   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5822 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5823   hard_links=yes
5824   $rm conftest*
5825   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5826   touch conftest.a
5827   ln conftest.a conftest.b 2>&5 || hard_links=no
5828   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5829   echo "$as_me:$LINENO: result: $hard_links" >&5
5830 echo "${ECHO_T}$hard_links" >&6
5831   if test "$hard_links" = no; then
5832     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5833 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5834     need_locks=warn
5835   fi
5836 else
5837   need_locks=no
5838 fi
5839
5840 if test "$GCC" = yes; then
5841   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5842   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5843 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5844   echo "int some_variable = 0;" > conftest.$ac_ext
5845   save_CFLAGS="$CFLAGS"
5846   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5847   compiler_rtti_exceptions=no
5848   cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5851
5852 #ifdef F77_DUMMY_MAIN
5853 #  ifdef __cplusplus
5854      extern "C"
5855 #  endif
5856    int F77_DUMMY_MAIN() { return 1; }
5857 #endif
5858 int
5859 main ()
5860 {
5861 int some_variable = 0;
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868   (eval $ac_compile) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } &&
5872          { ac_try='test -s conftest.$ac_objext'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878       # The compiler can only warn and ignore the option if not recognized
5879     # So say no if there are warnings
5880     if test -s conftest.err; then
5881       compiler_rtti_exceptions=no
5882     else
5883       compiler_rtti_exceptions=yes
5884     fi
5885
5886 else
5887   echo "$as_me: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5889 fi
5890 rm -f conftest.$ac_objext conftest.$ac_ext
5891   CFLAGS="$save_CFLAGS"
5892   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5893 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5894
5895   if test "$compiler_rtti_exceptions" = "yes"; then
5896     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5897   else
5898     no_builtin_flag=' -fno-builtin'
5899   fi
5900 fi
5901
5902 # See if the linker supports building shared libraries.
5903 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5904 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5905
5906 allow_undefined_flag=
5907 no_undefined_flag=
5908 need_lib_prefix=unknown
5909 need_version=unknown
5910 # when you set need_version to no, make sure it does not cause -set_version
5911 # flags to be left without arguments
5912 archive_cmds=
5913 archive_expsym_cmds=
5914 old_archive_from_new_cmds=
5915 old_archive_from_expsyms_cmds=
5916 export_dynamic_flag_spec=
5917 whole_archive_flag_spec=
5918 thread_safe_flag_spec=
5919 hardcode_into_libs=no
5920 hardcode_libdir_flag_spec=
5921 hardcode_libdir_separator=
5922 hardcode_direct=no
5923 hardcode_minus_L=no
5924 hardcode_shlibpath_var=unsupported
5925 runpath_var=
5926 link_all_deplibs=unknown
5927 always_export_symbols=no
5928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5929 # include_expsyms should be a list of space-separated symbols to be *always*
5930 # included in the symbol list
5931 include_expsyms=
5932 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5933 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5934 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5935 # as well as any symbol that contains `d'.
5936 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5937 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5938 # platforms (ab)use it in PIC code, but their linkers get confused if
5939 # the symbol is explicitly referenced.  Since portable code cannot
5940 # rely on this symbol name, it's probably fine to never include it in
5941 # preloaded symbol tables.
5942 extract_expsyms_cmds=
5943
5944 case $host_os in
5945 cygwin* | mingw* | pw32*)
5946   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5947   # When not using gcc, we currently assume that we are using
5948   # Microsoft Visual C++.
5949   if test "$GCC" != yes; then
5950     with_gnu_ld=no
5951   fi
5952   ;;
5953 openbsd*)
5954   with_gnu_ld=no
5955   ;;
5956 esac
5957
5958 ld_shlibs=yes
5959 if test "$with_gnu_ld" = yes; then
5960   # If archive_cmds runs LD, not CC, wlarc should be empty
5961   wlarc='${wl}'
5962
5963   # See if GNU ld supports shared libraries.
5964   case $host_os in
5965   aix3* | aix4* | aix5*)
5966     # On AIX, the GNU linker is very broken
5967     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5968     ld_shlibs=no
5969     cat <<EOF 1>&2
5970
5971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5972 *** to be unable to reliably create shared libraries on AIX.
5973 *** Therefore, libtool is disabling shared libraries support.  If you
5974 *** really care for shared libraries, you may want to modify your PATH
5975 *** so that a non-GNU linker is found, and then restart.
5976
5977 EOF
5978     ;;
5979
5980   amigaos*)
5981     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5982     hardcode_libdir_flag_spec='-L$libdir'
5983     hardcode_minus_L=yes
5984
5985     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5986     # that the semantics of dynamic libraries on AmigaOS, at least up
5987     # to version 4, is to share data among multiple programs linked
5988     # with the same dynamic library.  Since this doesn't match the
5989     # behavior of shared libraries on other platforms, we can use
5990     # them.
5991     ld_shlibs=no
5992     ;;
5993
5994   beos*)
5995     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5996       allow_undefined_flag=unsupported
5997       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5998       # support --undefined.  This deserves some investigation.  FIXME
5999       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6000     else
6001       ld_shlibs=no
6002     fi
6003     ;;
6004
6005   cygwin* | mingw* | pw32*)
6006     # hardcode_libdir_flag_spec is actually meaningless, as there is
6007     # no search path for DLLs.
6008     hardcode_libdir_flag_spec='-L$libdir'
6009     allow_undefined_flag=unsupported
6010     always_export_symbols=yes
6011
6012     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6013       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6014       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6015       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6016       else $CC -o impgen impgen.c ; fi)~
6017       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6018
6019     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6020
6021     # cygwin and mingw dlls have different entry points and sets of symbols
6022     # to exclude.
6023     # FIXME: what about values for MSVC?
6024     dll_entry=__cygwin_dll_entry@12
6025     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6026     case $host_os in
6027     mingw*)
6028       # mingw values
6029       dll_entry=_DllMainCRTStartup@12
6030       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6031       ;;
6032     esac
6033
6034     # mingw and cygwin differ, and it's simplest to just exclude the union
6035     # of the two symbol sets.
6036     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6037
6038     # recent cygwin and mingw systems supply a stub DllMain which the user
6039     # can override, but on older systems we have to supply one (in ltdll.c)
6040     if test "x$lt_cv_need_dllmain" = "xyes"; then
6041       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6042       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6043         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6044     else
6045       ltdll_obj=
6046       ltdll_cmds=
6047     fi
6048
6049     # Extract the symbol export list from an `--export-all' def file,
6050     # then regenerate the def file from the symbol export list, so that
6051     # the compiled dll only exports the symbol export list.
6052     # Be careful not to strip the DATA tag left be newer dlltools.
6053     export_symbols_cmds="$ltdll_cmds"'
6054       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6055       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6056
6057     # If the export-symbols file already is a .def file (1st line
6058     # is EXPORTS), use it as is.
6059     # If DATA tags from a recent dlltool are present, honour them!
6060     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6061         cp $export_symbols $output_objdir/$soname-def;
6062       else
6063         echo EXPORTS > $output_objdir/$soname-def;
6064         _lt_hint=1;
6065         cat $export_symbols | while read symbol; do
6066          set dummy \$symbol;
6067          case \$# in
6068            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6069            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6070          esac;
6071          _lt_hint=`expr 1 + \$_lt_hint`;
6072         done;
6073       fi~
6074       '"$ltdll_cmds"'
6075       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6076       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6077       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6078       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6079       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6080     ;;
6081
6082   netbsd*)
6083     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6084       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6085       wlarc=
6086     else
6087       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6088       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6089     fi
6090     ;;
6091
6092   solaris* | sysv5*)
6093     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6094       ld_shlibs=no
6095       cat <<EOF 1>&2
6096
6097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6098 *** create shared libraries on Solaris systems.  Therefore, libtool
6099 *** is disabling shared libraries support.  We urge you to upgrade GNU
6100 *** binutils to release 2.9.1 or newer.  Another option is to modify
6101 *** your PATH or compiler configuration so that the native linker is
6102 *** used, and then restart.
6103
6104 EOF
6105     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6106       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6107       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6108     else
6109       ld_shlibs=no
6110     fi
6111     ;;
6112
6113   sunos4*)
6114     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6115     wlarc=
6116     hardcode_direct=yes
6117     hardcode_shlibpath_var=no
6118     ;;
6119
6120   *)
6121     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6122       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6123       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6124     else
6125       ld_shlibs=no
6126     fi
6127     ;;
6128   esac
6129
6130   if test "$ld_shlibs" = yes; then
6131     runpath_var=LD_RUN_PATH
6132     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6133     export_dynamic_flag_spec='${wl}--export-dynamic'
6134     case $host_os in
6135     cygwin* | mingw* | pw32*)
6136       # dlltool doesn't understand --whole-archive et. al.
6137       whole_archive_flag_spec=
6138       ;;
6139     *)
6140       # ancient GNU ld didn't support --whole-archive et. al.
6141       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6142         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6143       else
6144         whole_archive_flag_spec=
6145       fi
6146       ;;
6147     esac
6148   fi
6149 else
6150   # PORTME fill in a description of your system's linker (not GNU ld)
6151   case $host_os in
6152   aix3*)
6153     allow_undefined_flag=unsupported
6154     always_export_symbols=yes
6155     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6156     # Note: this linker hardcodes the directories in LIBPATH if there
6157     # are no directories specified by -L.
6158     hardcode_minus_L=yes
6159     if test "$GCC" = yes && test -z "$link_static_flag"; then
6160       # Neither direct hardcoding nor static linking is supported with a
6161       # broken collect2.
6162       hardcode_direct=unsupported
6163     fi
6164     ;;
6165
6166   aix4* | aix5*)
6167     if test "$host_cpu" = ia64; then
6168       # On IA64, the linker does run time linking by default, so we don't
6169       # have to do anything special.
6170       aix_use_runtimelinking=no
6171       exp_sym_flag='-Bexport'
6172       no_entry_flag=""
6173     else
6174       aix_use_runtimelinking=no
6175
6176       # Test if we are trying to use run time linking or normal
6177       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6178       # need to do runtime linking.
6179       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6180         for ld_flag in $LDFLAGS; do
6181           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6182             aix_use_runtimelinking=yes
6183             break
6184           fi
6185         done
6186       esac
6187
6188       exp_sym_flag='-bexport'
6189       no_entry_flag='-bnoentry'
6190     fi
6191
6192     # When large executables or shared objects are built, AIX ld can
6193     # have problems creating the table of contents.  If linking a library
6194     # or program results in "error TOC overflow" add -mminimal-toc to
6195     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6196     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6197
6198     hardcode_direct=yes
6199     archive_cmds=''
6200     hardcode_libdir_separator=':'
6201     if test "$GCC" = yes; then
6202       case $host_os in aix4.[012]|aix4.[012].*)
6203         collect2name=`${CC} -print-prog-name=collect2`
6204         if test -f "$collect2name" && \
6205           strings "$collect2name" | grep resolve_lib_name >/dev/null
6206         then
6207           # We have reworked collect2
6208           hardcode_direct=yes
6209         else
6210           # We have old collect2
6211           hardcode_direct=unsupported
6212           # It fails to find uninstalled libraries when the uninstalled
6213           # path is not listed in the libpath.  Setting hardcode_minus_L
6214           # to unsupported forces relinking
6215           hardcode_minus_L=yes
6216           hardcode_libdir_flag_spec='-L$libdir'
6217           hardcode_libdir_separator=
6218         fi
6219       esac
6220
6221       shared_flag='-shared'
6222     else
6223       # not using gcc
6224       if test "$host_cpu" = ia64; then
6225         shared_flag='${wl}-G'
6226       else
6227         if test "$aix_use_runtimelinking" = yes; then
6228           shared_flag='${wl}-G'
6229         else
6230           shared_flag='${wl}-bM:SRE'
6231         fi
6232       fi
6233     fi
6234
6235     # It seems that -bexpall can do strange things, so it is better to
6236     # generate a list of symbols to export.
6237     always_export_symbols=yes
6238     if test "$aix_use_runtimelinking" = yes; then
6239       # Warning - without using the other runtime loading flags (-brtl),
6240       # -berok will link without error, but may produce a broken library.
6241       allow_undefined_flag='-berok'
6242       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6243       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6244     else
6245       if test "$host_cpu" = ia64; then
6246         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6247         allow_undefined_flag="-z nodefs"
6248         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6249       else
6250         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6251         # Warning - without using the other run time loading flags,
6252         # -berok will link without error, but may produce a broken library.
6253         allow_undefined_flag='${wl}-berok'
6254         # This is a bit strange, but is similar to how AIX traditionally builds
6255         # it's shared libraries.
6256         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6257       fi
6258     fi
6259     ;;
6260
6261   amigaos*)
6262     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6263     hardcode_libdir_flag_spec='-L$libdir'
6264     hardcode_minus_L=yes
6265     # see comment about different semantics on the GNU ld section
6266     ld_shlibs=no
6267     ;;
6268
6269   cygwin* | mingw* | pw32*)
6270     # When not using gcc, we currently assume that we are using
6271     # Microsoft Visual C++.
6272     # hardcode_libdir_flag_spec is actually meaningless, as there is
6273     # no search path for DLLs.
6274     hardcode_libdir_flag_spec=' '
6275     allow_undefined_flag=unsupported
6276     # Tell ltmain to make .lib files, not .a files.
6277     libext=lib
6278     # FIXME: Setting linknames here is a bad hack.
6279     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6280     # The linker will automatically build a .lib file if we build a DLL.
6281     old_archive_from_new_cmds='true'
6282     # FIXME: Should let the user specify the lib program.
6283     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6284     fix_srcfile_path='`cygpath -w "$srcfile"`'
6285     ;;
6286
6287   darwin* | rhapsody*)
6288     case "$host_os" in
6289     rhapsody* | darwin1.[012])
6290       allow_undefined_flag='-undefined suppress'
6291       ;;
6292     *) # Darwin 1.3 on
6293       allow_undefined_flag='-flat_namespace -undefined suppress'
6294       ;;
6295     esac
6296     # FIXME: Relying on posixy $() will cause problems for
6297     #        cross-compilation, but unfortunately the echo tests do not
6298     #        yet detect zsh echo's removal of \ escapes.
6299     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6300     # We need to add '_' to the symbols in $export_symbols first
6301     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6302     hardcode_direct=yes
6303     hardcode_shlibpath_var=no
6304     whole_archive_flag_spec='-all_load $convenience'
6305     ;;
6306
6307   freebsd1*)
6308     ld_shlibs=no
6309     ;;
6310
6311   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6312   # support.  Future versions do this automatically, but an explicit c++rt0.o
6313   # does not break anything, and helps significantly (at the cost of a little
6314   # extra space).
6315   freebsd2.2*)
6316     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6317     hardcode_libdir_flag_spec='-R$libdir'
6318     hardcode_direct=yes
6319     hardcode_shlibpath_var=no
6320     ;;
6321
6322   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6323   freebsd2*)
6324     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6325     hardcode_direct=yes
6326     hardcode_minus_L=yes
6327     hardcode_shlibpath_var=no
6328     ;;
6329
6330   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6331   freebsd*)
6332     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6333     hardcode_libdir_flag_spec='-R$libdir'
6334     hardcode_direct=yes
6335     hardcode_shlibpath_var=no
6336     ;;
6337
6338   hpux9* | hpux10* | hpux11*)
6339     case $host_os in
6340     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6341     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6342     esac
6343     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6344     hardcode_libdir_separator=:
6345     hardcode_direct=yes
6346     hardcode_minus_L=yes # Not in the search PATH, but as the default
6347                          # location of the library.
6348     export_dynamic_flag_spec='${wl}-E'
6349     ;;
6350
6351   irix5* | irix6*)
6352     if test "$GCC" = yes; then
6353       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6354     else
6355       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6356     fi
6357     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6358     hardcode_libdir_separator=:
6359     link_all_deplibs=yes
6360     ;;
6361
6362   netbsd*)
6363     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6364       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6365     else
6366       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6367     fi
6368     hardcode_libdir_flag_spec='-R$libdir'
6369     hardcode_direct=yes
6370     hardcode_shlibpath_var=no
6371     ;;
6372
6373   newsos6)
6374     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6375     hardcode_direct=yes
6376     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6377     hardcode_libdir_separator=:
6378     hardcode_shlibpath_var=no
6379     ;;
6380
6381   openbsd*)
6382     hardcode_direct=yes
6383     hardcode_shlibpath_var=no
6384     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6385       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6386       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6387       export_dynamic_flag_spec='${wl}-E'
6388     else
6389       case "$host_os" in
6390       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6391         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6392         hardcode_libdir_flag_spec='-R$libdir'
6393         ;;
6394       *)
6395         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6396         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6397         ;;
6398       esac
6399     fi
6400     ;;
6401
6402   os2*)
6403     hardcode_libdir_flag_spec='-L$libdir'
6404     hardcode_minus_L=yes
6405     allow_undefined_flag=unsupported
6406     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6407     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6408     ;;
6409
6410   osf3*)
6411     if test "$GCC" = yes; then
6412       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6413       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6414     else
6415       allow_undefined_flag=' -expect_unresolved \*'
6416       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6417     fi
6418     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6419     hardcode_libdir_separator=:
6420     ;;
6421
6422   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6423     if test "$GCC" = yes; then
6424       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6425       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6426       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6427     else
6428       allow_undefined_flag=' -expect_unresolved \*'
6429       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6430       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6431       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6432
6433       #Both c and cxx compiler support -rpath directly
6434       hardcode_libdir_flag_spec='-rpath $libdir'
6435     fi
6436     hardcode_libdir_separator=:
6437     ;;
6438
6439   sco3.2v5*)
6440     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6441     hardcode_shlibpath_var=no
6442     runpath_var=LD_RUN_PATH
6443     hardcode_runpath_var=yes
6444     export_dynamic_flag_spec='${wl}-Bexport'
6445     ;;
6446
6447   solaris*)
6448     # gcc --version < 3.0 without binutils cannot create self contained
6449     # shared libraries reliably, requiring libgcc.a to resolve some of
6450     # the object symbols generated in some cases.  Libraries that use
6451     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6452     # a copy of libgcc.a into every shared library to guarantee resolving
6453     # such symbols causes other problems:  According to Tim Van Holder
6454     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6455     # (to the application) exception stack for one thing.
6456     no_undefined_flag=' -z defs'
6457     if test "$GCC" = yes; then
6458       case `$CC --version 2>/dev/null` in
6459       [12].*)
6460         cat <<EOF 1>&2
6461
6462 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6463 *** create self contained shared libraries on Solaris systems, without
6464 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6465 *** -no-undefined support, which will at least allow you to build shared
6466 *** libraries.  However, you may find that when you link such libraries
6467 *** into an application without using GCC, you have to manually add
6468 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6469 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6470 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6471
6472 EOF
6473         no_undefined_flag=
6474         ;;
6475       esac
6476     fi
6477     # $CC -shared without GNU ld will not create a library from C++
6478     # object files and a static libstdc++, better avoid it by now
6479     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6480     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6481                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6482     hardcode_libdir_flag_spec='-R$libdir'
6483     hardcode_shlibpath_var=no
6484     case $host_os in
6485     solaris2.[0-5] | solaris2.[0-5].*) ;;
6486     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6487       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6488     esac
6489     link_all_deplibs=yes
6490     ;;
6491
6492   sunos4*)
6493     if test "x$host_vendor" = xsequent; then
6494       # Use $CC to link under sequent, because it throws in some extra .o
6495       # files that make .init and .fini sections work.
6496       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6497     else
6498       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6499     fi
6500     hardcode_libdir_flag_spec='-L$libdir'
6501     hardcode_direct=yes
6502     hardcode_minus_L=yes
6503     hardcode_shlibpath_var=no
6504     ;;
6505
6506   sysv4)
6507     if test "x$host_vendor" = xsno; then
6508       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6509       hardcode_direct=yes # is this really true???
6510     else
6511       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6512       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6513     fi
6514     runpath_var='LD_RUN_PATH'
6515     hardcode_shlibpath_var=no
6516     ;;
6517
6518   sysv4.3*)
6519     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6520     hardcode_shlibpath_var=no
6521     export_dynamic_flag_spec='-Bexport'
6522     ;;
6523
6524   sysv5*)
6525     no_undefined_flag=' -z text'
6526     # $CC -shared without GNU ld will not create a library from C++
6527     # object files and a static libstdc++, better avoid it by now
6528     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6529     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6530                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6531     hardcode_libdir_flag_spec=
6532     hardcode_shlibpath_var=no
6533     runpath_var='LD_RUN_PATH'
6534     ;;
6535
6536   uts4*)
6537     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6538     hardcode_libdir_flag_spec='-L$libdir'
6539     hardcode_shlibpath_var=no
6540     ;;
6541
6542   dgux*)
6543     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6544     hardcode_libdir_flag_spec='-L$libdir'
6545     hardcode_shlibpath_var=no
6546     ;;
6547
6548   sysv4*MP*)
6549     if test -d /usr/nec; then
6550       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6551       hardcode_shlibpath_var=no
6552       runpath_var=LD_RUN_PATH
6553       hardcode_runpath_var=yes
6554       ld_shlibs=yes
6555     fi
6556     ;;
6557
6558   sysv4.2uw2*)
6559     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6560     hardcode_direct=yes
6561     hardcode_minus_L=no
6562     hardcode_shlibpath_var=no
6563     hardcode_runpath_var=yes
6564     runpath_var=LD_RUN_PATH
6565     ;;
6566
6567   sysv5uw7* | unixware7*)
6568     no_undefined_flag='${wl}-z ${wl}text'
6569     if test "$GCC" = yes; then
6570       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6571     else
6572       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6573     fi
6574     runpath_var='LD_RUN_PATH'
6575     hardcode_shlibpath_var=no
6576     ;;
6577
6578   *)
6579     ld_shlibs=no
6580     ;;
6581   esac
6582 fi
6583 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6584 echo "${ECHO_T}$ld_shlibs" >&6
6585 test "$ld_shlibs" = no && can_build_shared=no
6586
6587 # Check hardcoding attributes.
6588 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6590 hardcode_action=
6591 if test -n "$hardcode_libdir_flag_spec" || \
6592    test -n "$runpath_var"; then
6593
6594   # We can hardcode non-existant directories.
6595   if test "$hardcode_direct" != no &&
6596      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6597      # have to relink, otherwise we might link with an installed library
6598      # when we should be linking with a yet-to-be-installed one
6599      ## test "$hardcode_shlibpath_var" != no &&
6600      test "$hardcode_minus_L" != no; then
6601     # Linking always hardcodes the temporary library directory.
6602     hardcode_action=relink
6603   else
6604     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6605     hardcode_action=immediate
6606   fi
6607 else
6608   # We cannot hardcode anything, or else we can only hardcode existing
6609   # directories.
6610   hardcode_action=unsupported
6611 fi
6612 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6613 echo "${ECHO_T}$hardcode_action" >&6
6614
6615 striplib=
6616 old_striplib=
6617 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6618 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6619 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6620   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6621   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6622   echo "$as_me:$LINENO: result: yes" >&5
6623 echo "${ECHO_T}yes" >&6
6624 else
6625   echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6
6627 fi
6628
6629 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6630 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6631
6632 # PORTME Fill in your ld.so characteristics
6633 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6635 library_names_spec=
6636 libname_spec='lib$name'
6637 soname_spec=
6638 postinstall_cmds=
6639 postuninstall_cmds=
6640 finish_cmds=
6641 finish_eval=
6642 shlibpath_var=
6643 shlibpath_overrides_runpath=unknown
6644 version_type=none
6645 dynamic_linker="$host_os ld.so"
6646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6647 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6648
6649 case $host_os in
6650 aix3*)
6651   version_type=linux
6652   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6653   shlibpath_var=LIBPATH
6654
6655   # AIX has no versioning support, so we append a major version to the name.
6656   soname_spec='${libname}${release}.so$major'
6657   ;;
6658
6659 aix4* | aix5*)
6660   version_type=linux
6661   if test "$host_cpu" = ia64; then
6662     # AIX 5 supports IA64
6663     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6664     shlibpath_var=LD_LIBRARY_PATH
6665   else
6666     # With GCC up to 2.95.x, collect2 would create an import file
6667     # for dependence libraries.  The import file would start with
6668     # the line `#! .'.  This would cause the generated library to
6669     # depend on `.', always an invalid library.  This was fixed in
6670     # development snapshots of GCC prior to 3.0.
6671     case $host_os in
6672       aix4 | aix4.[01] | aix4.[01].*)
6673         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6674              echo ' yes '
6675              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6676           :
6677         else
6678           can_build_shared=no
6679         fi
6680         ;;
6681     esac
6682     # AIX (on Power*) has no versioning support, so currently we can
6683     # not hardcode correct soname into executable. Probably we can
6684     # add versioning support to collect2, so additional links can
6685     # be useful in future.
6686     if test "$aix_use_runtimelinking" = yes; then
6687       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6688       # instead of lib<name>.a to let people know that these are not
6689       # typical AIX shared libraries.
6690       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6691     else
6692       # We preserve .a as extension for shared libraries through AIX4.2
6693       # and later when we are not doing run time linking.
6694       library_names_spec='${libname}${release}.a $libname.a'
6695       soname_spec='${libname}${release}.so$major'
6696     fi
6697     shlibpath_var=LIBPATH
6698   fi
6699   ;;
6700
6701 amigaos*)
6702   library_names_spec='$libname.ixlibrary $libname.a'
6703   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6704   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6705   ;;
6706
6707 beos*)
6708   library_names_spec='${libname}.so'
6709   dynamic_linker="$host_os ld.so"
6710   shlibpath_var=LIBRARY_PATH
6711   ;;
6712
6713 bsdi4*)
6714   version_type=linux
6715   need_version=no
6716   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6717   soname_spec='${libname}${release}.so$major'
6718   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6719   shlibpath_var=LD_LIBRARY_PATH
6720   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6721   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6722   export_dynamic_flag_spec=-rdynamic
6723   # the default ld.so.conf also contains /usr/contrib/lib and
6724   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6725   # libtool to hard-code these into programs
6726   ;;
6727
6728 cygwin* | mingw* | pw32*)
6729   version_type=windows
6730   need_version=no
6731   need_lib_prefix=no
6732   case $GCC,$host_os in
6733   yes,cygwin*)
6734     library_names_spec='$libname.dll.a'
6735     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6736     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6737       dldir=$destdir/`dirname \$dlpath`~
6738       test -d \$dldir || mkdir -p \$dldir~
6739       $install_prog .libs/$dlname \$dldir/$dlname'
6740     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6741       dlpath=$dir/\$dldll~
6742        $rm \$dlpath'
6743     ;;
6744   yes,mingw*)
6745     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6746     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6747     ;;
6748   yes,pw32*)
6749     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6750     ;;
6751   *)
6752     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6753     ;;
6754   esac
6755   dynamic_linker='Win32 ld.exe'
6756   # FIXME: first we should search . and the directory the executable is in
6757   shlibpath_var=PATH
6758   ;;
6759
6760 darwin* | rhapsody*)
6761   dynamic_linker="$host_os dyld"
6762   version_type=darwin
6763   need_lib_prefix=no
6764   need_version=no
6765   # FIXME: Relying on posixy $() will cause problems for
6766   #        cross-compilation, but unfortunately the echo tests do not
6767   #        yet detect zsh echo's removal of \ escapes.
6768   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6769   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6770   shlibpath_overrides_runpath=yes
6771   shlibpath_var=DYLD_LIBRARY_PATH
6772   ;;
6773
6774 freebsd1*)
6775   dynamic_linker=no
6776   ;;
6777
6778 freebsd*)
6779   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6780   version_type=freebsd-$objformat
6781   case $version_type in
6782     freebsd-elf*)
6783       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6784       need_version=no
6785       need_lib_prefix=no
6786       ;;
6787     freebsd-*)
6788       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6789       need_version=yes
6790       ;;
6791   esac
6792   shlibpath_var=LD_LIBRARY_PATH
6793   case $host_os in
6794   freebsd2*)
6795     shlibpath_overrides_runpath=yes
6796     ;;
6797   *)
6798     shlibpath_overrides_runpath=no
6799     hardcode_into_libs=yes
6800     ;;
6801   esac
6802   ;;
6803
6804 gnu*)
6805   version_type=linux
6806   need_lib_prefix=no
6807   need_version=no
6808   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6809   soname_spec='${libname}${release}.so$major'
6810   shlibpath_var=LD_LIBRARY_PATH
6811   hardcode_into_libs=yes
6812   ;;
6813
6814 hpux9* | hpux10* | hpux11*)
6815   # Give a soname corresponding to the major version so that dld.sl refuses to
6816   # link against other versions.
6817   dynamic_linker="$host_os dld.sl"
6818   version_type=sunos
6819   need_lib_prefix=no
6820   need_version=no
6821   shlibpath_var=SHLIB_PATH
6822   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6823   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6824   soname_spec='${libname}${release}.sl$major'
6825   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6826   postinstall_cmds='chmod 555 $lib'
6827   ;;
6828
6829 irix5* | irix6*)
6830   version_type=irix
6831   need_lib_prefix=no
6832   need_version=no
6833   soname_spec='${libname}${release}.so$major'
6834   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6835   case $host_os in
6836   irix5*)
6837     libsuff= shlibsuff=
6838     ;;
6839   *)
6840     case $LD in # libtool.m4 will add one of these switches to LD
6841     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6842     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6843     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6844     *) libsuff= shlibsuff= libmagic=never-match;;
6845     esac
6846     ;;
6847   esac
6848   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6849   shlibpath_overrides_runpath=no
6850   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6851   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6852   ;;
6853
6854 # No shared lib support for Linux oldld, aout, or coff.
6855 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6856   dynamic_linker=no
6857   ;;
6858
6859 # This must be Linux ELF.
6860 linux-gnu*)
6861   version_type=linux
6862   need_lib_prefix=no
6863   need_version=no
6864   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6865   soname_spec='${libname}${release}.so$major'
6866   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6867   shlibpath_var=LD_LIBRARY_PATH
6868   shlibpath_overrides_runpath=no
6869   # This implies no fast_install, which is unacceptable.
6870   # Some rework will be needed to allow for fast_install
6871   # before this can be enabled.
6872   hardcode_into_libs=yes
6873
6874   # We used to test for /lib/ld.so.1 and disable shared libraries on
6875   # powerpc, because MkLinux only supported shared libraries with the
6876   # GNU dynamic linker.  Since this was broken with cross compilers,
6877   # most powerpc-linux boxes support dynamic linking these days and
6878   # people can always --disable-shared, the test was removed, and we
6879   # assume the GNU/Linux dynamic linker is in use.
6880   dynamic_linker='GNU/Linux ld.so'
6881   ;;
6882
6883 netbsd*)
6884   version_type=sunos
6885   need_lib_prefix=no
6886   need_version=no
6887   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6888     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6889     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6890     dynamic_linker='NetBSD (a.out) ld.so'
6891   else
6892     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6893     soname_spec='${libname}${release}.so$major'
6894     dynamic_linker='NetBSD ld.elf_so'
6895   fi
6896   shlibpath_var=LD_LIBRARY_PATH
6897   shlibpath_overrides_runpath=yes
6898   hardcode_into_libs=yes
6899   ;;
6900
6901 newsos6)
6902   version_type=linux
6903   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6904   shlibpath_var=LD_LIBRARY_PATH
6905   shlibpath_overrides_runpath=yes
6906   ;;
6907
6908 openbsd*)
6909   version_type=sunos
6910   need_lib_prefix=no
6911   need_version=no
6912   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6913     case "$host_os" in
6914     openbsd2.[89] | openbsd2.[89].*)
6915       shlibpath_overrides_runpath=no
6916       ;;
6917     *)
6918       shlibpath_overrides_runpath=yes
6919       ;;
6920     esac
6921   else
6922     shlibpath_overrides_runpath=yes
6923   fi
6924   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6926   shlibpath_var=LD_LIBRARY_PATH
6927   ;;
6928
6929 os2*)
6930   libname_spec='$name'
6931   need_lib_prefix=no
6932   library_names_spec='$libname.dll $libname.a'
6933   dynamic_linker='OS/2 ld.exe'
6934   shlibpath_var=LIBPATH
6935   ;;
6936
6937 osf3* | osf4* | osf5*)
6938   version_type=osf
6939   need_version=no
6940   soname_spec='${libname}${release}.so'
6941   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6942   shlibpath_var=LD_LIBRARY_PATH
6943   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6944   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6945   ;;
6946
6947 sco3.2v5*)
6948   version_type=osf
6949   soname_spec='${libname}${release}.so$major'
6950   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6951   shlibpath_var=LD_LIBRARY_PATH
6952   ;;
6953
6954 solaris*)
6955   version_type=linux
6956   need_lib_prefix=no
6957   need_version=no
6958   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6959   soname_spec='${libname}${release}.so$major'
6960   shlibpath_var=LD_LIBRARY_PATH
6961   shlibpath_overrides_runpath=yes
6962   hardcode_into_libs=yes
6963   # ldd complains unless libraries are executable
6964   postinstall_cmds='chmod +x $lib'
6965   ;;
6966
6967 sunos4*)
6968   version_type=sunos
6969   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6970   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6971   shlibpath_var=LD_LIBRARY_PATH
6972   shlibpath_overrides_runpath=yes
6973   if test "$with_gnu_ld" = yes; then
6974     need_lib_prefix=no
6975   fi
6976   need_version=yes
6977   ;;
6978
6979 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6980   version_type=linux
6981   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6982   soname_spec='${libname}${release}.so$major'
6983   shlibpath_var=LD_LIBRARY_PATH
6984   case $host_vendor in
6985     sni)
6986       shlibpath_overrides_runpath=no
6987       ;;
6988     motorola)
6989       need_lib_prefix=no
6990       need_version=no
6991       shlibpath_overrides_runpath=no
6992       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6993       ;;
6994   esac
6995   ;;
6996
6997 uts4*)
6998   version_type=linux
6999   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7000   soname_spec='${libname}${release}.so$major'
7001   shlibpath_var=LD_LIBRARY_PATH
7002   ;;
7003
7004 dgux*)
7005   version_type=linux
7006   need_lib_prefix=no
7007   need_version=no
7008   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7009   soname_spec='${libname}${release}.so$major'
7010   shlibpath_var=LD_LIBRARY_PATH
7011   ;;
7012
7013 sysv4*MP*)
7014   if test -d /usr/nec ;then
7015     version_type=linux
7016     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7017     soname_spec='$libname.so.$major'
7018     shlibpath_var=LD_LIBRARY_PATH
7019   fi
7020   ;;
7021
7022 *)
7023   dynamic_linker=no
7024   ;;
7025 esac
7026 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7027 echo "${ECHO_T}$dynamic_linker" >&6
7028 test "$dynamic_linker" = no && can_build_shared=no
7029
7030 # Report the final consequences.
7031 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7032 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7033 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7034 echo "${ECHO_T}$can_build_shared" >&6
7035
7036 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7037 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7038 test "$can_build_shared" = "no" && enable_shared=no
7039
7040 # On AIX, shared libraries and static libraries use the same namespace, and
7041 # are all built from PIC.
7042 case "$host_os" in
7043 aix3*)
7044   test "$enable_shared" = yes && enable_static=no
7045   if test -n "$RANLIB"; then
7046     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7047     postinstall_cmds='$RANLIB $lib'
7048   fi
7049   ;;
7050
7051 aix4*)
7052   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7053     test "$enable_shared" = yes && enable_static=no
7054   fi
7055   ;;
7056 esac
7057 echo "$as_me:$LINENO: result: $enable_shared" >&5
7058 echo "${ECHO_T}$enable_shared" >&6
7059
7060 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7061 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7062 # Make sure either enable_shared or enable_static is yes.
7063 test "$enable_shared" = yes || enable_static=yes
7064 echo "$as_me:$LINENO: result: $enable_static" >&5
7065 echo "${ECHO_T}$enable_static" >&6
7066
7067 if test "$hardcode_action" = relink; then
7068   # Fast installation is not supported
7069   enable_fast_install=no
7070 elif test "$shlibpath_overrides_runpath" = yes ||
7071      test "$enable_shared" = no; then
7072   # Fast installation is not necessary
7073   enable_fast_install=needless
7074 fi
7075
7076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7077 if test "$GCC" = yes; then
7078   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7079 fi
7080
7081 if test "x$enable_dlopen" != xyes; then
7082   enable_dlopen=unknown
7083   enable_dlopen_self=unknown
7084   enable_dlopen_self_static=unknown
7085 else
7086   lt_cv_dlopen=no
7087   lt_cv_dlopen_libs=
7088
7089   case $host_os in
7090   beos*)
7091     lt_cv_dlopen="load_add_on"
7092     lt_cv_dlopen_libs=
7093     lt_cv_dlopen_self=yes
7094     ;;
7095
7096   cygwin* | mingw* | pw32*)
7097     lt_cv_dlopen="LoadLibrary"
7098     lt_cv_dlopen_libs=
7099    ;;
7100
7101   *)
7102     echo "$as_me:$LINENO: checking for shl_load" >&5
7103 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7104 if test "${ac_cv_func_shl_load+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   cat >conftest.$ac_ext <<_ACEOF
7108 #line $LINENO "configure"
7109 #include "confdefs.h"
7110 /* System header to define __stub macros and hopefully few prototypes,
7111     which can conflict with char shl_load (); below.  */
7112 #include <assert.h>
7113 /* Override any gcc2 internal prototype to avoid an error.  */
7114 #ifdef __cplusplus
7115 extern "C"
7116 #endif
7117 /* We use char because int might match the return type of a gcc2
7118    builtin and then its argument prototype would still apply.  */
7119 char shl_load ();
7120 char (*f) ();
7121
7122 #ifdef F77_DUMMY_MAIN
7123 #  ifdef __cplusplus
7124      extern "C"
7125 #  endif
7126    int F77_DUMMY_MAIN() { return 1; }
7127 #endif
7128 int
7129 main ()
7130 {
7131 /* The GNU C library defines this for functions which it implements
7132     to always fail with ENOSYS.  Some functions are actually named
7133     something starting with __ and the normal name is an alias.  */
7134 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7135 choke me
7136 #else
7137 f = shl_load;
7138 #endif
7139
7140   ;
7141   return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest.$ac_objext conftest$ac_exeext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146   (eval $ac_link) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); } &&
7150          { ac_try='test -s conftest$ac_exeext'
7151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152   (eval $ac_try) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; }; then
7156   ac_cv_func_shl_load=yes
7157 else
7158   echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 ac_cv_func_shl_load=no
7161 fi
7162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7163 fi
7164 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7165 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7166 if test $ac_cv_func_shl_load = yes; then
7167   lt_cv_dlopen="shl_load"
7168 else
7169   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7170 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7171 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7172   echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174   ac_check_lib_save_LIBS=$LIBS
7175 LIBS="-ldld  $LIBS"
7176 cat >conftest.$ac_ext <<_ACEOF
7177 #line $LINENO "configure"
7178 #include "confdefs.h"
7179
7180 /* Override any gcc2 internal prototype to avoid an error.  */
7181 #ifdef __cplusplus
7182 extern "C"
7183 #endif
7184 /* We use char because int might match the return type of a gcc2
7185    builtin and then its argument prototype would still apply.  */
7186 char shl_load ();
7187 #ifdef F77_DUMMY_MAIN
7188 #  ifdef __cplusplus
7189      extern "C"
7190 #  endif
7191    int F77_DUMMY_MAIN() { return 1; }
7192 #endif
7193 int
7194 main ()
7195 {
7196 shl_load ();
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 rm -f conftest.$ac_objext conftest$ac_exeext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203   (eval $ac_link) 2>&5
7204   ac_status=$?
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); } &&
7207          { ac_try='test -s conftest$ac_exeext'
7208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209   (eval $ac_try) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }; }; then
7213   ac_cv_lib_dld_shl_load=yes
7214 else
7215   echo "$as_me: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7217 ac_cv_lib_dld_shl_load=no
7218 fi
7219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7221 fi
7222 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7223 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7224 if test $ac_cv_lib_dld_shl_load = yes; then
7225   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7226 else
7227   echo "$as_me:$LINENO: checking for dlopen" >&5
7228 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7229 if test "${ac_cv_func_dlopen+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   cat >conftest.$ac_ext <<_ACEOF
7233 #line $LINENO "configure"
7234 #include "confdefs.h"
7235 /* System header to define __stub macros and hopefully few prototypes,
7236     which can conflict with char dlopen (); below.  */
7237 #include <assert.h>
7238 /* Override any gcc2 internal prototype to avoid an error.  */
7239 #ifdef __cplusplus
7240 extern "C"
7241 #endif
7242 /* We use char because int might match the return type of a gcc2
7243    builtin and then its argument prototype would still apply.  */
7244 char dlopen ();
7245 char (*f) ();
7246
7247 #ifdef F77_DUMMY_MAIN
7248 #  ifdef __cplusplus
7249      extern "C"
7250 #  endif
7251    int F77_DUMMY_MAIN() { return 1; }
7252 #endif
7253 int
7254 main ()
7255 {
7256 /* The GNU C library defines this for functions which it implements
7257     to always fail with ENOSYS.  Some functions are actually named
7258     something starting with __ and the normal name is an alias.  */
7259 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7260 choke me
7261 #else
7262 f = dlopen;
7263 #endif
7264
7265   ;
7266   return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7271   (eval $ac_link) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); } &&
7275          { ac_try='test -s conftest$ac_exeext'
7276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277   (eval $ac_try) 2>&5
7278   ac_status=$?
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); }; }; then
7281   ac_cv_func_dlopen=yes
7282 else
7283   echo "$as_me: failed program was:" >&5
7284 cat conftest.$ac_ext >&5
7285 ac_cv_func_dlopen=no
7286 fi
7287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7288 fi
7289 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7290 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7291 if test $ac_cv_func_dlopen = yes; then
7292   lt_cv_dlopen="dlopen"
7293 else
7294   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7295 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7296 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   ac_check_lib_save_LIBS=$LIBS
7300 LIBS="-ldl  $LIBS"
7301 cat >conftest.$ac_ext <<_ACEOF
7302 #line $LINENO "configure"
7303 #include "confdefs.h"
7304
7305 /* Override any gcc2 internal prototype to avoid an error.  */
7306 #ifdef __cplusplus
7307 extern "C"
7308 #endif
7309 /* We use char because int might match the return type of a gcc2
7310    builtin and then its argument prototype would still apply.  */
7311 char dlopen ();
7312 #ifdef F77_DUMMY_MAIN
7313 #  ifdef __cplusplus
7314      extern "C"
7315 #  endif
7316    int F77_DUMMY_MAIN() { return 1; }
7317 #endif
7318 int
7319 main ()
7320 {
7321 dlopen ();
7322   ;
7323   return 0;
7324 }
7325 _ACEOF
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7328   (eval $ac_link) 2>&5
7329   ac_status=$?
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } &&
7332          { ac_try='test -s conftest$ac_exeext'
7333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334   (eval $ac_try) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; }; then
7338   ac_cv_lib_dl_dlopen=yes
7339 else
7340   echo "$as_me: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7342 ac_cv_lib_dl_dlopen=no
7343 fi
7344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7345 LIBS=$ac_check_lib_save_LIBS
7346 fi
7347 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7348 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7349 if test $ac_cv_lib_dl_dlopen = yes; then
7350   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7351 else
7352   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7353 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7354 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7355   echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357   ac_check_lib_save_LIBS=$LIBS
7358 LIBS="-lsvld  $LIBS"
7359 cat >conftest.$ac_ext <<_ACEOF
7360 #line $LINENO "configure"
7361 #include "confdefs.h"
7362
7363 /* Override any gcc2 internal prototype to avoid an error.  */
7364 #ifdef __cplusplus
7365 extern "C"
7366 #endif
7367 /* We use char because int might match the return type of a gcc2
7368    builtin and then its argument prototype would still apply.  */
7369 char dlopen ();
7370 #ifdef F77_DUMMY_MAIN
7371 #  ifdef __cplusplus
7372      extern "C"
7373 #  endif
7374    int F77_DUMMY_MAIN() { return 1; }
7375 #endif
7376 int
7377 main ()
7378 {
7379 dlopen ();
7380   ;
7381   return 0;
7382 }
7383 _ACEOF
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386   (eval $ac_link) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } &&
7390          { ac_try='test -s conftest$ac_exeext'
7391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392   (eval $ac_try) 2>&5
7393   ac_status=$?
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); }; }; then
7396   ac_cv_lib_svld_dlopen=yes
7397 else
7398   echo "$as_me: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7400 ac_cv_lib_svld_dlopen=no
7401 fi
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7403 LIBS=$ac_check_lib_save_LIBS
7404 fi
7405 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7406 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7407 if test $ac_cv_lib_svld_dlopen = yes; then
7408   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7409 else
7410   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7411 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7412 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   ac_check_lib_save_LIBS=$LIBS
7416 LIBS="-ldld  $LIBS"
7417 cat >conftest.$ac_ext <<_ACEOF
7418 #line $LINENO "configure"
7419 #include "confdefs.h"
7420
7421 /* Override any gcc2 internal prototype to avoid an error.  */
7422 #ifdef __cplusplus
7423 extern "C"
7424 #endif
7425 /* We use char because int might match the return type of a gcc2
7426    builtin and then its argument prototype would still apply.  */
7427 char dld_link ();
7428 #ifdef F77_DUMMY_MAIN
7429 #  ifdef __cplusplus
7430      extern "C"
7431 #  endif
7432    int F77_DUMMY_MAIN() { return 1; }
7433 #endif
7434 int
7435 main ()
7436 {
7437 dld_link ();
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444   (eval $ac_link) 2>&5
7445   ac_status=$?
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); } &&
7448          { ac_try='test -s conftest$ac_exeext'
7449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450   (eval $ac_try) 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }; }; then
7454   ac_cv_lib_dld_dld_link=yes
7455 else
7456   echo "$as_me: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7458 ac_cv_lib_dld_dld_link=no
7459 fi
7460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7461 LIBS=$ac_check_lib_save_LIBS
7462 fi
7463 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7464 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7465 if test $ac_cv_lib_dld_dld_link = yes; then
7466   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7467 fi
7468
7469
7470 fi
7471
7472
7473 fi
7474
7475
7476 fi
7477
7478
7479 fi
7480
7481
7482 fi
7483
7484     ;;
7485   esac
7486
7487   if test "x$lt_cv_dlopen" != xno; then
7488     enable_dlopen=yes
7489   else
7490     enable_dlopen=no
7491   fi
7492
7493   case $lt_cv_dlopen in
7494   dlopen)
7495     save_CPPFLAGS="$CPPFLAGS"
7496         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7497
7498     save_LDFLAGS="$LDFLAGS"
7499     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7500
7501     save_LIBS="$LIBS"
7502     LIBS="$lt_cv_dlopen_libs $LIBS"
7503
7504     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7505 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7506 if test "${lt_cv_dlopen_self+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509           if test "$cross_compiling" = yes; then :
7510   lt_cv_dlopen_self=cross
7511 else
7512     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7513   lt_status=$lt_dlunknown
7514   cat > conftest.$ac_ext <<EOF
7515 #line 7515 "configure"
7516 #include "confdefs.h"
7517
7518 #if HAVE_DLFCN_H
7519 #include <dlfcn.h>
7520 #endif
7521
7522 #include <stdio.h>
7523
7524 #ifdef RTLD_GLOBAL
7525 #  define LT_DLGLOBAL           RTLD_GLOBAL
7526 #else
7527 #  ifdef DL_GLOBAL
7528 #    define LT_DLGLOBAL         DL_GLOBAL
7529 #  else
7530 #    define LT_DLGLOBAL         0
7531 #  endif
7532 #endif
7533
7534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7535    find out it does not work in some platform. */
7536 #ifndef LT_DLLAZY_OR_NOW
7537 #  ifdef RTLD_LAZY
7538 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7539 #  else
7540 #    ifdef DL_LAZY
7541 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7542 #    else
7543 #      ifdef RTLD_NOW
7544 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7545 #      else
7546 #        ifdef DL_NOW
7547 #          define LT_DLLAZY_OR_NOW      DL_NOW
7548 #        else
7549 #          define LT_DLLAZY_OR_NOW      0
7550 #        endif
7551 #      endif
7552 #    endif
7553 #  endif
7554 #endif
7555
7556 #ifdef __cplusplus
7557 extern "C" void exit (int);
7558 #endif
7559
7560 void fnord() { int i=42;}
7561 int main ()
7562 {
7563   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7564   int status = $lt_dlunknown;
7565
7566   if (self)
7567     {
7568       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7569       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7570       /* dlclose (self); */
7571     }
7572
7573     exit (status);
7574 }
7575 EOF
7576   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577   (eval $ac_link) 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7581     (./conftest; exit; ) 2>/dev/null
7582     lt_status=$?
7583     case x$lt_status in
7584       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7585       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7586       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7587     esac
7588   else :
7589     # compilation failed
7590     lt_cv_dlopen_self=no
7591   fi
7592 fi
7593 rm -fr conftest*
7594
7595
7596 fi
7597 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7598 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7599
7600     if test "x$lt_cv_dlopen_self" = xyes; then
7601       LDFLAGS="$LDFLAGS $link_static_flag"
7602       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7603 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7604 if test "${lt_cv_dlopen_self_static+set}" = set; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607           if test "$cross_compiling" = yes; then :
7608   lt_cv_dlopen_self_static=cross
7609 else
7610     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7611   lt_status=$lt_dlunknown
7612   cat > conftest.$ac_ext <<EOF
7613 #line 7613 "configure"
7614 #include "confdefs.h"
7615
7616 #if HAVE_DLFCN_H
7617 #include <dlfcn.h>
7618 #endif
7619
7620 #include <stdio.h>
7621
7622 #ifdef RTLD_GLOBAL
7623 #  define LT_DLGLOBAL           RTLD_GLOBAL
7624 #else
7625 #  ifdef DL_GLOBAL
7626 #    define LT_DLGLOBAL         DL_GLOBAL
7627 #  else
7628 #    define LT_DLGLOBAL         0
7629 #  endif
7630 #endif
7631
7632 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7633    find out it does not work in some platform. */
7634 #ifndef LT_DLLAZY_OR_NOW
7635 #  ifdef RTLD_LAZY
7636 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7637 #  else
7638 #    ifdef DL_LAZY
7639 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7640 #    else
7641 #      ifdef RTLD_NOW
7642 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7643 #      else
7644 #        ifdef DL_NOW
7645 #          define LT_DLLAZY_OR_NOW      DL_NOW
7646 #        else
7647 #          define LT_DLLAZY_OR_NOW      0
7648 #        endif
7649 #      endif
7650 #    endif
7651 #  endif
7652 #endif
7653
7654 #ifdef __cplusplus
7655 extern "C" void exit (int);
7656 #endif
7657
7658 void fnord() { int i=42;}
7659 int main ()
7660 {
7661   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7662   int status = $lt_dlunknown;
7663
7664   if (self)
7665     {
7666       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7667       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7668       /* dlclose (self); */
7669     }
7670
7671     exit (status);
7672 }
7673 EOF
7674   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675   (eval $ac_link) 2>&5
7676   ac_status=$?
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7679     (./conftest; exit; ) 2>/dev/null
7680     lt_status=$?
7681     case x$lt_status in
7682       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7683       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7684       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7685     esac
7686   else :
7687     # compilation failed
7688     lt_cv_dlopen_self_static=no
7689   fi
7690 fi
7691 rm -fr conftest*
7692
7693
7694 fi
7695 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7696 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7697     fi
7698
7699     CPPFLAGS="$save_CPPFLAGS"
7700     LDFLAGS="$save_LDFLAGS"
7701     LIBS="$save_LIBS"
7702     ;;
7703   esac
7704
7705   case $lt_cv_dlopen_self in
7706   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7707   *) enable_dlopen_self=unknown ;;
7708   esac
7709
7710   case $lt_cv_dlopen_self_static in
7711   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7712   *) enable_dlopen_self_static=unknown ;;
7713   esac
7714 fi
7715
7716
7717 if test "$enable_shared" = yes && test "$GCC" = yes; then
7718   case $archive_cmds in
7719   *'~'*)
7720     # FIXME: we may have to deal with multi-command sequences.
7721     ;;
7722   '$CC '*)
7723     # Test whether the compiler implicitly links with -lc since on some
7724     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7725     # to ld, don't add -lc before -lgcc.
7726     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7727 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7728     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   $rm conftest*
7732     echo 'static int dummy;' > conftest.$ac_ext
7733
7734     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7735   (eval $ac_compile) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); }; then
7739       soname=conftest
7740       lib=conftest
7741       libobjs=conftest.$ac_objext
7742       deplibs=
7743       wl=$lt_cv_prog_cc_wl
7744       compiler_flags=-v
7745       linker_flags=-v
7746       verstring=
7747       output_objdir=.
7748       libname=conftest
7749       save_allow_undefined_flag=$allow_undefined_flag
7750       allow_undefined_flag=
7751       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7752   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7753   ac_status=$?
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); }
7756       then
7757         lt_cv_archive_cmds_need_lc=no
7758       else
7759         lt_cv_archive_cmds_need_lc=yes
7760       fi
7761       allow_undefined_flag=$save_allow_undefined_flag
7762     else
7763       cat conftest.err 1>&5
7764     fi
7765 fi
7766
7767     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7768 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7769     ;;
7770   esac
7771 fi
7772 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7773
7774 # The second clause should only fire when bootstrapping the
7775 # libtool distribution, otherwise you forgot to ship ltmain.sh
7776 # with your package, and you will get complaints that there are
7777 # no rules to generate ltmain.sh.
7778 if test -f "$ltmain"; then
7779   :
7780 else
7781   # If there is no Makefile yet, we rely on a make rule to execute
7782   # `config.status --recheck' to rerun these tests and create the
7783   # libtool script then.
7784   test -f Makefile && make "$ltmain"
7785 fi
7786
7787 if test -f "$ltmain"; then
7788   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7789   $rm -f "${ofile}T"
7790
7791   echo creating $ofile
7792
7793   # Now quote all the things that may contain metacharacters while being
7794   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7795   # variables and quote the copies for generation of the libtool script.
7796   for var in echo old_CC old_CFLAGS \
7797     AR AR_FLAGS CC LD LN_S NM SHELL \
7798     reload_flag reload_cmds wl \
7799     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7800     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7801     library_names_spec soname_spec \
7802     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7803     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7804     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7805     old_striplib striplib file_magic_cmd export_symbols_cmds \
7806     deplibs_check_method allow_undefined_flag no_undefined_flag \
7807     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7808     global_symbol_to_c_name_address \
7809     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7810     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7811     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7812
7813     case $var in
7814     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7815     old_postinstall_cmds | old_postuninstall_cmds | \
7816     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7817     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7818     postinstall_cmds | postuninstall_cmds | \
7819     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7820       # Double-quote double-evaled strings.
7821       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7822       ;;
7823     *)
7824       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7825       ;;
7826     esac
7827   done
7828
7829   cat <<__EOF__ > "${ofile}T"
7830 #! $SHELL
7831
7832 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7833 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7835 #
7836 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7837 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7838 #
7839 # This program is free software; you can redistribute it and/or modify
7840 # it under the terms of the GNU General Public License as published by
7841 # the Free Software Foundation; either version 2 of the License, or
7842 # (at your option) any later version.
7843 #
7844 # This program is distributed in the hope that it will be useful, but
7845 # WITHOUT ANY WARRANTY; without even the implied warranty of
7846 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7847 # General Public License for more details.
7848 #
7849 # You should have received a copy of the GNU General Public License
7850 # along with this program; if not, write to the Free Software
7851 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7852 #
7853 # As a special exception to the GNU General Public License, if you
7854 # distribute this file as part of a program that contains a
7855 # configuration script generated by Autoconf, you may include it under
7856 # the same distribution terms that you use for the rest of that program.
7857
7858 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7859 Xsed="sed -e s/^X//"
7860
7861 # The HP-UX ksh and POSIX shell print the target directory to stdout
7862 # if CDPATH is set.
7863 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7864
7865 # ### BEGIN LIBTOOL CONFIG
7866
7867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7868
7869 # Shell to use when invoking shell scripts.
7870 SHELL=$lt_SHELL
7871
7872 # Whether or not to build shared libraries.
7873 build_libtool_libs=$enable_shared
7874
7875 # Whether or not to build static libraries.
7876 build_old_libs=$enable_static
7877
7878 # Whether or not to add -lc for building shared libraries.
7879 build_libtool_need_lc=$need_lc
7880
7881 # Whether or not to optimize for fast installation.
7882 fast_install=$enable_fast_install
7883
7884 # The host system.
7885 host_alias=$host_alias
7886 host=$host
7887
7888 # An echo program that does not interpret backslashes.
7889 echo=$lt_echo
7890
7891 # The archiver.
7892 AR=$lt_AR
7893 AR_FLAGS=$lt_AR_FLAGS
7894
7895 # The default C compiler.
7896 CC=$lt_CC
7897
7898 # Is the compiler the GNU C compiler?
7899 with_gcc=$GCC
7900
7901 # The linker used to build libraries.
7902 LD=$lt_LD
7903
7904 # Whether we need hard or soft links.
7905 LN_S=$lt_LN_S
7906
7907 # A BSD-compatible nm program.
7908 NM=$lt_NM
7909
7910 # A symbol stripping program
7911 STRIP=$STRIP
7912
7913 # Used to examine libraries when file_magic_cmd begins "file"
7914 MAGIC_CMD=$MAGIC_CMD
7915
7916 # Used on cygwin: DLL creation program.
7917 DLLTOOL="$DLLTOOL"
7918
7919 # Used on cygwin: object dumper.
7920 OBJDUMP="$OBJDUMP"
7921
7922 # Used on cygwin: assembler.
7923 AS="$AS"
7924
7925 # The name of the directory that contains temporary libtool files.
7926 objdir=$objdir
7927
7928 # How to create reloadable object files.
7929 reload_flag=$lt_reload_flag
7930 reload_cmds=$lt_reload_cmds
7931
7932 # How to pass a linker flag through the compiler.
7933 wl=$lt_wl
7934
7935 # Object file suffix (normally "o").
7936 objext="$ac_objext"
7937
7938 # Old archive suffix (normally "a").
7939 libext="$libext"
7940
7941 # Executable file suffix (normally "").
7942 exeext="$exeext"
7943
7944 # Additional compiler flags for building library objects.
7945 pic_flag=$lt_pic_flag
7946 pic_mode=$pic_mode
7947
7948 # Does compiler simultaneously support -c and -o options?
7949 compiler_c_o=$lt_compiler_c_o
7950
7951 # Can we write directly to a .lo ?
7952 compiler_o_lo=$lt_compiler_o_lo
7953
7954 # Must we lock files when doing compilation ?
7955 need_locks=$lt_need_locks
7956
7957 # Do we need the lib prefix for modules?
7958 need_lib_prefix=$need_lib_prefix
7959
7960 # Do we need a version for libraries?
7961 need_version=$need_version
7962
7963 # Whether dlopen is supported.
7964 dlopen_support=$enable_dlopen
7965
7966 # Whether dlopen of programs is supported.
7967 dlopen_self=$enable_dlopen_self
7968
7969 # Whether dlopen of statically linked programs is supported.
7970 dlopen_self_static=$enable_dlopen_self_static
7971
7972 # Compiler flag to prevent dynamic linking.
7973 link_static_flag=$lt_link_static_flag
7974
7975 # Compiler flag to turn off builtin functions.
7976 no_builtin_flag=$lt_no_builtin_flag
7977
7978 # Compiler flag to allow reflexive dlopens.
7979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7980
7981 # Compiler flag to generate shared objects directly from archives.
7982 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7983
7984 # Compiler flag to generate thread-safe objects.
7985 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7986
7987 # Library versioning type.
7988 version_type=$version_type
7989
7990 # Format of library name prefix.
7991 libname_spec=$lt_libname_spec
7992
7993 # List of archive names.  First name is the real one, the rest are links.
7994 # The last name is the one that the linker finds with -lNAME.
7995 library_names_spec=$lt_library_names_spec
7996
7997 # The coded name of the library, if different from the real name.
7998 soname_spec=$lt_soname_spec
7999
8000 # Commands used to build and install an old-style archive.
8001 RANLIB=$lt_RANLIB
8002 old_archive_cmds=$lt_old_archive_cmds
8003 old_postinstall_cmds=$lt_old_postinstall_cmds
8004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8005
8006 # Create an old-style archive from a shared archive.
8007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8008
8009 # Create a temporary old-style archive to link instead of a shared archive.
8010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8011
8012 # Commands used to build and install a shared archive.
8013 archive_cmds=$lt_archive_cmds
8014 archive_expsym_cmds=$lt_archive_expsym_cmds
8015 postinstall_cmds=$lt_postinstall_cmds
8016 postuninstall_cmds=$lt_postuninstall_cmds
8017
8018 # Commands to strip libraries.
8019 old_striplib=$lt_old_striplib
8020 striplib=$lt_striplib
8021
8022 # Method to check whether dependent libraries are shared objects.
8023 deplibs_check_method=$lt_deplibs_check_method
8024
8025 # Command to use when deplibs_check_method == file_magic.
8026 file_magic_cmd=$lt_file_magic_cmd
8027
8028 # Flag that allows shared libraries with undefined symbols to be built.
8029 allow_undefined_flag=$lt_allow_undefined_flag
8030
8031 # Flag that forces no undefined symbols.
8032 no_undefined_flag=$lt_no_undefined_flag
8033
8034 # Commands used to finish a libtool library installation in a directory.
8035 finish_cmds=$lt_finish_cmds
8036
8037 # Same as above, but a single script fragment to be evaled but not shown.
8038 finish_eval=$lt_finish_eval
8039
8040 # Take the output of nm and produce a listing of raw symbols and C names.
8041 global_symbol_pipe=$lt_global_symbol_pipe
8042
8043 # Transform the output of nm in a proper C declaration
8044 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8045
8046 # Transform the output of nm in a C name address pair
8047 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8048
8049 # This is the shared library runtime path variable.
8050 runpath_var=$runpath_var
8051
8052 # This is the shared library path variable.
8053 shlibpath_var=$shlibpath_var
8054
8055 # Is shlibpath searched before the hard-coded library search path?
8056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8057
8058 # How to hardcode a shared library path into an executable.
8059 hardcode_action=$hardcode_action
8060
8061 # Whether we should hardcode library paths into libraries.
8062 hardcode_into_libs=$hardcode_into_libs
8063
8064 # Flag to hardcode \$libdir into a binary during linking.
8065 # This must work even if \$libdir does not exist.
8066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8067
8068 # Whether we need a single -rpath flag with a separated argument.
8069 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8070
8071 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8072 # resulting binary.
8073 hardcode_direct=$hardcode_direct
8074
8075 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8076 # resulting binary.
8077 hardcode_minus_L=$hardcode_minus_L
8078
8079 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8080 # the resulting binary.
8081 hardcode_shlibpath_var=$hardcode_shlibpath_var
8082
8083 # Variables whose values should be saved in libtool wrapper scripts and
8084 # restored at relink time.
8085 variables_saved_for_relink="$variables_saved_for_relink"
8086
8087 # Whether libtool must link a program against all its dependency libraries.
8088 link_all_deplibs=$link_all_deplibs
8089
8090 # Compile-time system search path for libraries
8091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8092
8093 # Run-time system search path for libraries
8094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8095
8096 # Fix the shell variable \$srcfile for the compiler.
8097 fix_srcfile_path="$fix_srcfile_path"
8098
8099 # Set to yes if exported symbols are required.
8100 always_export_symbols=$always_export_symbols
8101
8102 # The commands to list exported symbols.
8103 export_symbols_cmds=$lt_export_symbols_cmds
8104
8105 # The commands to extract the exported symbol list from a shared archive.
8106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8107
8108 # Symbols that should not be listed in the preloaded symbols.
8109 exclude_expsyms=$lt_exclude_expsyms
8110
8111 # Symbols that must always be exported.
8112 include_expsyms=$lt_include_expsyms
8113
8114 # ### END LIBTOOL CONFIG
8115
8116 __EOF__
8117
8118   case $host_os in
8119   aix3*)
8120     cat <<\EOF >> "${ofile}T"
8121
8122 # AIX sometimes has problems with the GCC collect2 program.  For some
8123 # reason, if we set the COLLECT_NAMES environment variable, the problems
8124 # vanish in a puff of smoke.
8125 if test "X${COLLECT_NAMES+set}" != Xset; then
8126   COLLECT_NAMES=
8127   export COLLECT_NAMES
8128 fi
8129 EOF
8130     ;;
8131   esac
8132
8133   case $host_os in
8134   cygwin* | mingw* | pw32* | os2*)
8135     cat <<'EOF' >> "${ofile}T"
8136       # This is a source program that is used to create dlls on Windows
8137       # Don't remove nor modify the starting and closing comments
8138 # /* ltdll.c starts here */
8139 # #define WIN32_LEAN_AND_MEAN
8140 # #include <windows.h>
8141 # #undef WIN32_LEAN_AND_MEAN
8142 # #include <stdio.h>
8143 #
8144 # #ifndef __CYGWIN__
8145 # #  ifdef __CYGWIN32__
8146 # #    define __CYGWIN__ __CYGWIN32__
8147 # #  endif
8148 # #endif
8149 #
8150 # #ifdef __cplusplus
8151 # extern "C" {
8152 # #endif
8153 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8154 # #ifdef __cplusplus
8155 # }
8156 # #endif
8157 #
8158 # #ifdef __CYGWIN__
8159 # #include <cygwin/cygwin_dll.h>
8160 # DECLARE_CYGWIN_DLL( DllMain );
8161 # #endif
8162 # HINSTANCE __hDllInstance_base;
8163 #
8164 # BOOL APIENTRY
8165 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8166 # {
8167 #   __hDllInstance_base = hInst;
8168 #   return TRUE;
8169 # }
8170 # /* ltdll.c ends here */
8171         # This is a source program that is used to create import libraries
8172         # on Windows for dlls which lack them. Don't remove nor modify the
8173         # starting and closing comments
8174 # /* impgen.c starts here */
8175 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8176 #
8177 #  This file is part of GNU libtool.
8178 #
8179 #  This program is free software; you can redistribute it and/or modify
8180 #  it under the terms of the GNU General Public License as published by
8181 #  the Free Software Foundation; either version 2 of the License, or
8182 #  (at your option) any later version.
8183 #
8184 #  This program is distributed in the hope that it will be useful,
8185 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8186 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8187 #  GNU General Public License for more details.
8188 #
8189 #  You should have received a copy of the GNU General Public License
8190 #  along with this program; if not, write to the Free Software
8191 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8192 #  */
8193 #
8194 # #include <stdio.h>            /* for printf() */
8195 # #include <unistd.h>           /* for open(), lseek(), read() */
8196 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8197 # #include <string.h>           /* for strdup() */
8198 #
8199 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8200 # #ifndef O_BINARY
8201 # #define O_BINARY 0
8202 # #endif
8203 #
8204 # static unsigned int
8205 # pe_get16 (fd, offset)
8206 #      int fd;
8207 #      int offset;
8208 # {
8209 #   unsigned char b[2];
8210 #   lseek (fd, offset, SEEK_SET);
8211 #   read (fd, b, 2);
8212 #   return b[0] + (b[1]<<8);
8213 # }
8214 #
8215 # static unsigned int
8216 # pe_get32 (fd, offset)
8217 #     int fd;
8218 #     int offset;
8219 # {
8220 #   unsigned char b[4];
8221 #   lseek (fd, offset, SEEK_SET);
8222 #   read (fd, b, 4);
8223 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8224 # }
8225 #
8226 # static unsigned int
8227 # pe_as32 (ptr)
8228 #      void *ptr;
8229 # {
8230 #   unsigned char *b = ptr;
8231 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8232 # }
8233 #
8234 # int
8235 # main (argc, argv)
8236 #     int argc;
8237 #     char *argv[];
8238 # {
8239 #     int dll;
8240 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8241 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8242 #     unsigned long name_rvas, nexp;
8243 #     unsigned char *expdata, *erva;
8244 #     char *filename, *dll_name;
8245 #
8246 #     filename = argv[1];
8247 #
8248 #     dll = open(filename, O_RDONLY|O_BINARY);
8249 #     if (dll < 1)
8250 #       return 1;
8251 #
8252 #     dll_name = filename;
8253 #
8254 #     for (i=0; filename[i]; i++)
8255 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8256 #           dll_name = filename + i +1;
8257 #
8258 #     pe_header_offset = pe_get32 (dll, 0x3c);
8259 #     opthdr_ofs = pe_header_offset + 4 + 20;
8260 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8261 #
8262 #     if (num_entries < 1) /* no exports */
8263 #       return 1;
8264 #
8265 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8266 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8267 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8268 #     secptr = (pe_header_offset + 4 + 20 +
8269 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8270 #
8271 #     expptr = 0;
8272 #     for (i = 0; i < nsections; i++)
8273 #     {
8274 #       char sname[8];
8275 #       unsigned long secptr1 = secptr + 40 * i;
8276 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8277 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8278 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8279 #       lseek(dll, secptr1, SEEK_SET);
8280 #       read(dll, sname, 8);
8281 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8282 #       {
8283 #           expptr = fptr + (export_rva - vaddr);
8284 #           if (export_rva + export_size > vaddr + vsize)
8285 #               export_size = vsize - (export_rva - vaddr);
8286 #           break;
8287 #       }
8288 #     }
8289 #
8290 #     expdata = (unsigned char*)malloc(export_size);
8291 #     lseek (dll, expptr, SEEK_SET);
8292 #     read (dll, expdata, export_size);
8293 #     erva = expdata - export_rva;
8294 #
8295 #     nexp = pe_as32 (expdata+24);
8296 #     name_rvas = pe_as32 (expdata+32);
8297 #
8298 #     printf ("EXPORTS\n");
8299 #     for (i = 0; i<nexp; i++)
8300 #     {
8301 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8302 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8303 #     }
8304 #
8305 #     return 0;
8306 # }
8307 # /* impgen.c ends here */
8308
8309 EOF
8310     ;;
8311   esac
8312
8313   # We use sed instead of cat because bash on DJGPP gets confused if
8314   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8315   # text mode, it properly converts lines to CR/LF.  This bash problem
8316   # is reportedly fixed, but why not run on old versions too?
8317   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8318
8319   mv -f "${ofile}T" "$ofile" || \
8320     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8321   chmod +x "$ofile"
8322 fi
8323
8324
8325
8326
8327
8328 # This can be used to rebuild libtool when needed
8329 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8330
8331 # Always use our own libtool.
8332 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8333
8334 # Prevent multiple expansion
8335
8336
8337
8338 # Find a good install program.  We prefer a C program (faster),
8339 # so one script is as good as another.  But avoid the broken or
8340 # incompatible versions:
8341 # SysV /etc/install, /usr/sbin/install
8342 # SunOS /usr/etc/install
8343 # IRIX /sbin/install
8344 # AIX /bin/install
8345 # AmigaOS /C/install, which installs bootblocks on floppy discs
8346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8349 # ./install, which can be erroneously created by make from ./install.sh.
8350 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8351 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8352 if test -z "$INSTALL"; then
8353 if test "${ac_cv_path_install+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8358 do
8359   IFS=$as_save_IFS
8360   test -z "$as_dir" && as_dir=.
8361   # Account for people who put trailing slashes in PATH elements.
8362 case $as_dir/ in
8363   ./ | .// | /cC/* | \
8364   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8365   /usr/ucb/* ) ;;
8366   *)
8367     # OSF1 and SCO ODT 3.0 have their own names for install.
8368     # Don't use installbsd from OSF since it installs stuff as root
8369     # by default.
8370     for ac_prog in ginstall scoinst install; do
8371       for ac_exec_ext in '' $ac_executable_extensions; do
8372         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8373           if test $ac_prog = install &&
8374             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8375             # AIX install.  It has an incompatible calling convention.
8376             :
8377           elif test $ac_prog = install &&
8378             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8379             # program-specific install script used by HP pwplus--don't use.
8380             :
8381           else
8382             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8383             break 3
8384           fi
8385         fi
8386       done
8387     done
8388     ;;
8389 esac
8390 done
8391
8392
8393 fi
8394   if test "${ac_cv_path_install+set}" = set; then
8395     INSTALL=$ac_cv_path_install
8396   else
8397     # As a last resort, use the slow shell script.  We don't cache a
8398     # path for INSTALL within a source directory, because that will
8399     # break other packages using the cache if that directory is
8400     # removed, or if the path is relative.
8401     INSTALL=$ac_install_sh
8402   fi
8403 fi
8404 echo "$as_me:$LINENO: result: $INSTALL" >&5
8405 echo "${ECHO_T}$INSTALL" >&6
8406
8407 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8408 # It thinks the first close brace ends the variable substitution.
8409 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8410
8411 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8412
8413 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8414
8415
8416 if test "X$CC" = Xgcc; then
8417     CFLAGS="-Wall $CFLAGS"
8418 fi
8419
8420 LIBS=
8421 addlib() {
8422   l=$1
8423   shift
8424   case "$target" in
8425     *-*-solaris*)       LIBS="$LIBS -L$l -R $l $*";;
8426     *)          LIBS="$LIBS -L$l $*";;
8427   esac
8428 }
8429
8430 if test X"$GCC" = "Xyes" ; then
8431     TARGET="depend allprogs"
8432 else
8433     TARGET="everything"
8434     #
8435     # let the Makefile know that we're done with `depend', since we don't
8436     # have gcc we're not going to rebuild our dependencies at all.
8437     #
8438     echo > .depend-done
8439 fi
8440
8441
8442
8443
8444
8445
8446
8447 for ac_header in alloca.h float.h libintl.h mcheck.h unistd.h
8448 do
8449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8451   echo "$as_me:$LINENO: checking for $ac_header" >&5
8452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 fi
8456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8458 else
8459   # Is the header compilable?
8460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8462 cat >conftest.$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8464 #include "confdefs.h"
8465 $ac_includes_default
8466 #include <$ac_header>
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470   (eval $ac_compile) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); } &&
8474          { ac_try='test -s conftest.$ac_objext'
8475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476   (eval $ac_try) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; }; then
8480   ac_header_compiler=yes
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 cat conftest.$ac_ext >&5
8484 ac_header_compiler=no
8485 fi
8486 rm -f conftest.$ac_objext conftest.$ac_ext
8487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8488 echo "${ECHO_T}$ac_header_compiler" >&6
8489
8490 # Is the header present?
8491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8493 cat >conftest.$ac_ext <<_ACEOF
8494 #line $LINENO "configure"
8495 #include "confdefs.h"
8496 #include <$ac_header>
8497 _ACEOF
8498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8500   ac_status=$?
8501   egrep -v '^ *\+' conftest.er1 >conftest.err
8502   rm -f conftest.er1
8503   cat conftest.err >&5
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } >/dev/null; then
8506   if test -s conftest.err; then
8507     ac_cpp_err=$ac_c_preproc_warn_flag
8508   else
8509     ac_cpp_err=
8510   fi
8511 else
8512   ac_cpp_err=yes
8513 fi
8514 if test -z "$ac_cpp_err"; then
8515   ac_header_preproc=yes
8516 else
8517   echo "$as_me: failed program was:" >&5
8518   cat conftest.$ac_ext >&5
8519   ac_header_preproc=no
8520 fi
8521 rm -f conftest.err conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523 echo "${ECHO_T}$ac_header_preproc" >&6
8524
8525 # So?  What about this header?
8526 case $ac_header_compiler:$ac_header_preproc in
8527   yes:no )
8528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8532   no:yes )
8533     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8535     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8539 esac
8540 echo "$as_me:$LINENO: checking for $ac_header" >&5
8541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   eval "$as_ac_Header=$ac_header_preproc"
8546 fi
8547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8549
8550 fi
8551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8552   cat >>confdefs.h <<_ACEOF
8553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8554 _ACEOF
8555
8556 fi
8557
8558 done
8559
8560 echo "$as_me:$LINENO: checking for /usr/ucblib in LIBS" >&5
8561 echo $ECHO_N "checking for /usr/ucblib in LIBS... $ECHO_C" >&6
8562 if test -d /usr/ucblib ; then
8563         if test "$build" = "mips-sni-sysv4" ; then
8564                 addlib /usr/ccs/lib -lc
8565         fi
8566
8567         addlib /usr/ucblib
8568
8569         echo "$as_me:$LINENO: result: yes" >&5
8570 echo "${ECHO_T}yes" >&6
8571 else
8572         echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6
8574 fi
8575
8576 if test ! -f ../rpm.c
8577 then
8578   echo "$as_me:$LINENO: checking for GNU xgettext" >&5
8579 echo $ECHO_N "checking for GNU xgettext... $ECHO_C" >&6
8580   xgettext --version 2>&1 | grep 'GNU gettext' >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error:
8581   *** GNU gettext is required. The latest version
8582   *** is always available from ftp://ftp.gnu.org/gnu/gettext/." >&5
8583 echo "$as_me: error:
8584   *** GNU gettext is required. The latest version
8585   *** is always available from ftp://ftp.gnu.org/gnu/gettext/." >&2;}
8586    { (exit 1); exit 1; }; }
8587   echo "$as_me:$LINENO: result: yes" >&5
8588 echo "${ECHO_T}yes" >&6
8589 fi
8590
8591
8592
8593
8594
8595 for ac_func in strerror mtrace getuid geteuid
8596 do
8597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8598 echo "$as_me:$LINENO: checking for $ac_func" >&5
8599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8600 if eval "test \"\${$as_ac_var+set}\" = set"; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   cat >conftest.$ac_ext <<_ACEOF
8604 #line $LINENO "configure"
8605 #include "confdefs.h"
8606 /* System header to define __stub macros and hopefully few prototypes,
8607     which can conflict with char $ac_func (); below.  */
8608 #include <assert.h>
8609 /* Override any gcc2 internal prototype to avoid an error.  */
8610 #ifdef __cplusplus
8611 extern "C"
8612 #endif
8613 /* We use char because int might match the return type of a gcc2
8614    builtin and then its argument prototype would still apply.  */
8615 char $ac_func ();
8616 char (*f) ();
8617
8618 #ifdef F77_DUMMY_MAIN
8619 #  ifdef __cplusplus
8620      extern "C"
8621 #  endif
8622    int F77_DUMMY_MAIN() { return 1; }
8623 #endif
8624 int
8625 main ()
8626 {
8627 /* The GNU C library defines this for functions which it implements
8628     to always fail with ENOSYS.  Some functions are actually named
8629     something starting with __ and the normal name is an alias.  */
8630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8631 choke me
8632 #else
8633 f = $ac_func;
8634 #endif
8635
8636   ;
8637   return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642   (eval $ac_link) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } &&
8646          { ac_try='test -s conftest$ac_exeext'
8647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648   (eval $ac_try) 2>&5
8649   ac_status=$?
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); }; }; then
8652   eval "$as_ac_var=yes"
8653 else
8654   echo "$as_me: failed program was:" >&5
8655 cat conftest.$ac_ext >&5
8656 eval "$as_ac_var=no"
8657 fi
8658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8659 fi
8660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8662 if test `eval echo '${'$as_ac_var'}'` = yes; then
8663   cat >>confdefs.h <<_ACEOF
8664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8665 _ACEOF
8666
8667 fi
8668 done
8669
8670 echo "$as_me:$LINENO: checking for setreuid" >&5
8671 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
8672 if test "${ac_cv_func_setreuid+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   cat >conftest.$ac_ext <<_ACEOF
8676 #line $LINENO "configure"
8677 #include "confdefs.h"
8678 /* System header to define __stub macros and hopefully few prototypes,
8679     which can conflict with char setreuid (); below.  */
8680 #include <assert.h>
8681 /* Override any gcc2 internal prototype to avoid an error.  */
8682 #ifdef __cplusplus
8683 extern "C"
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686    builtin and then its argument prototype would still apply.  */
8687 char setreuid ();
8688 char (*f) ();
8689
8690 #ifdef F77_DUMMY_MAIN
8691 #  ifdef __cplusplus
8692      extern "C"
8693 #  endif
8694    int F77_DUMMY_MAIN() { return 1; }
8695 #endif
8696 int
8697 main ()
8698 {
8699 /* The GNU C library defines this for functions which it implements
8700     to always fail with ENOSYS.  Some functions are actually named
8701     something starting with __ and the normal name is an alias.  */
8702 #if defined (__stub_setreuid) || defined (__stub___setreuid)
8703 choke me
8704 #else
8705 f = setreuid;
8706 #endif
8707
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714   (eval $ac_link) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -s conftest$ac_exeext'
8719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720   (eval $ac_try) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; }; then
8724   ac_cv_func_setreuid=yes
8725 else
8726   echo "$as_me: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8728 ac_cv_func_setreuid=no
8729 fi
8730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8731 fi
8732 echo "$as_me:$LINENO: result: $ac_cv_func_setreuid" >&5
8733 echo "${ECHO_T}$ac_cv_func_setreuid" >&6
8734 if test $ac_cv_func_setreuid = yes; then
8735   :
8736 else
8737
8738     echo "$as_me:$LINENO: checking for setreuid in -lucb" >&5
8739 echo $ECHO_N "checking for setreuid in -lucb... $ECHO_C" >&6
8740 if test "${ac_cv_lib_ucb_setreuid+set}" = set; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743   ac_check_lib_save_LIBS=$LIBS
8744 LIBS="-lucb  $LIBS"
8745 cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 #include "confdefs.h"
8748
8749 /* Override any gcc2 internal prototype to avoid an error.  */
8750 #ifdef __cplusplus
8751 extern "C"
8752 #endif
8753 /* We use char because int might match the return type of a gcc2
8754    builtin and then its argument prototype would still apply.  */
8755 char setreuid ();
8756 #ifdef F77_DUMMY_MAIN
8757 #  ifdef __cplusplus
8758      extern "C"
8759 #  endif
8760    int F77_DUMMY_MAIN() { return 1; }
8761 #endif
8762 int
8763 main ()
8764 {
8765 setreuid ();
8766   ;
8767   return 0;
8768 }
8769 _ACEOF
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772   (eval $ac_link) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -s conftest$ac_exeext'
8777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; }; then
8782   ac_cv_lib_ucb_setreuid=yes
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8786 ac_cv_lib_ucb_setreuid=no
8787 fi
8788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8790 fi
8791 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_setreuid" >&5
8792 echo "${ECHO_T}$ac_cv_lib_ucb_setreuid" >&6
8793 if test $ac_cv_lib_ucb_setreuid = yes; then
8794   if echo $LIBS | grep -- -lucb >/dev/null ;then :; else LIBS="$LIBS -lc -lucb" USEUCB=y;fi
8795 fi
8796
8797
8798 fi
8799
8800
8801
8802         MKINSTALLDIRS=
8803   if test -n "$ac_aux_dir"; then
8804     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8805   fi
8806   if test -z "$MKINSTALLDIRS"; then
8807     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8808   fi
8809
8810
8811
8812
8813
8814         # Extract the first word of "msgfmt", so it can be a program name with args.
8815 set dummy msgfmt; ac_word=$2
8816 echo "$as_me:$LINENO: checking for $ac_word" >&5
8817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8818 if test "${ac_cv_path_MSGFMT+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   case "$MSGFMT" in
8822   /*)
8823   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8824   ;;
8825   *)
8826   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8827   for ac_dir in $PATH; do
8828     test -z "$ac_dir" && ac_dir=.
8829     if test -f $ac_dir/$ac_word; then
8830       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
8831      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8832         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8833         break
8834       fi
8835     fi
8836   done
8837   IFS="$ac_save_ifs"
8838   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8839   ;;
8840 esac
8841 fi
8842 MSGFMT="$ac_cv_path_MSGFMT"
8843 if test "$MSGFMT" != ":"; then
8844   echo "$as_me:$LINENO: result: $MSGFMT" >&5
8845 echo "${ECHO_T}$MSGFMT" >&6
8846 else
8847   echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8849 fi
8850
8851   # Extract the first word of "gmsgfmt", so it can be a program name with args.
8852 set dummy gmsgfmt; ac_word=$2
8853 echo "$as_me:$LINENO: checking for $ac_word" >&5
8854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8855 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8856   echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858   case $GMSGFMT in
8859   [\\/]* | ?:[\\/]*)
8860   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8861   ;;
8862   *)
8863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8865 do
8866   IFS=$as_save_IFS
8867   test -z "$as_dir" && as_dir=.
8868   for ac_exec_ext in '' $ac_executable_extensions; do
8869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8872     break 2
8873   fi
8874 done
8875 done
8876
8877   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8878   ;;
8879 esac
8880 fi
8881 GMSGFMT=$ac_cv_path_GMSGFMT
8882
8883 if test -n "$GMSGFMT"; then
8884   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8885 echo "${ECHO_T}$GMSGFMT" >&6
8886 else
8887   echo "$as_me:$LINENO: result: no" >&5
8888 echo "${ECHO_T}no" >&6
8889 fi
8890
8891
8892         # Extract the first word of "xgettext", so it can be a program name with args.
8893 set dummy xgettext; ac_word=$2
8894 echo "$as_me:$LINENO: checking for $ac_word" >&5
8895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8896 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   case "$XGETTEXT" in
8900   /*)
8901   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8902   ;;
8903   *)
8904   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8905   for ac_dir in $PATH; do
8906     test -z "$ac_dir" && ac_dir=.
8907     if test -f $ac_dir/$ac_word; then
8908       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
8909      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8910         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8911         break
8912       fi
8913     fi
8914   done
8915   IFS="$ac_save_ifs"
8916   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8917   ;;
8918 esac
8919 fi
8920 XGETTEXT="$ac_cv_path_XGETTEXT"
8921 if test "$XGETTEXT" != ":"; then
8922   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8923 echo "${ECHO_T}$XGETTEXT" >&6
8924 else
8925   echo "$as_me:$LINENO: result: no" >&5
8926 echo "${ECHO_T}no" >&6
8927 fi
8928
8929     rm -f messages.po
8930
8931     # Extract the first word of "msgmerge", so it can be a program name with args.
8932 set dummy msgmerge; ac_word=$2
8933 echo "$as_me:$LINENO: checking for $ac_word" >&5
8934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8935 if test "${ac_cv_path_MSGMERGE+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   case "$MSGMERGE" in
8939   /*)
8940   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8941   ;;
8942   *)
8943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8944   for ac_dir in $PATH; do
8945     test -z "$ac_dir" && ac_dir=.
8946     if test -f $ac_dir/$ac_word; then
8947       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
8948         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
8949         break
8950       fi
8951     fi
8952   done
8953   IFS="$ac_save_ifs"
8954   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8955   ;;
8956 esac
8957 fi
8958 MSGMERGE="$ac_cv_path_MSGMERGE"
8959 if test "$MSGMERGE" != ":"; then
8960   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
8961 echo "${ECHO_T}$MSGMERGE" >&6
8962 else
8963   echo "$as_me:$LINENO: result: no" >&5
8964 echo "${ECHO_T}no" >&6
8965 fi
8966
8967
8968       if test "$GMSGFMT" != ":"; then
8969             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
8970        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8971       : ;
8972     else
8973       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
8974       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
8975 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
8976       GMSGFMT=":"
8977     fi
8978   fi
8979
8980       if test "$XGETTEXT" != ":"; then
8981             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
8982        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8983       : ;
8984     else
8985       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8986 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8987       XGETTEXT=":"
8988     fi
8989         rm -f messages.po
8990   fi
8991
8992   ac_config_commands="$ac_config_commands default-1"
8993
8994
8995 if test -n "$ac_tool_prefix"; then
8996   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8998 echo "$as_me:$LINENO: checking for $ac_word" >&5
8999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9000 if test "${ac_cv_prog_RANLIB+set}" = set; then
9001   echo $ECHO_N "(cached) $ECHO_C" >&6
9002 else
9003   if test -n "$RANLIB"; then
9004   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9005 else
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9008 do
9009   IFS=$as_save_IFS
9010   test -z "$as_dir" && as_dir=.
9011   for ac_exec_ext in '' $ac_executable_extensions; do
9012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9015     break 2
9016   fi
9017 done
9018 done
9019
9020 fi
9021 fi
9022 RANLIB=$ac_cv_prog_RANLIB
9023 if test -n "$RANLIB"; then
9024   echo "$as_me:$LINENO: result: $RANLIB" >&5
9025 echo "${ECHO_T}$RANLIB" >&6
9026 else
9027   echo "$as_me:$LINENO: result: no" >&5
9028 echo "${ECHO_T}no" >&6
9029 fi
9030
9031 fi
9032 if test -z "$ac_cv_prog_RANLIB"; then
9033   ac_ct_RANLIB=$RANLIB
9034   # Extract the first word of "ranlib", so it can be a program name with args.
9035 set dummy ranlib; ac_word=$2
9036 echo "$as_me:$LINENO: checking for $ac_word" >&5
9037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9039   echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041   if test -n "$ac_ct_RANLIB"; then
9042   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9043 else
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9046 do
9047   IFS=$as_save_IFS
9048   test -z "$as_dir" && as_dir=.
9049   for ac_exec_ext in '' $ac_executable_extensions; do
9050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051     ac_cv_prog_ac_ct_RANLIB="ranlib"
9052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9053     break 2
9054   fi
9055 done
9056 done
9057
9058   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9059 fi
9060 fi
9061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9062 if test -n "$ac_ct_RANLIB"; then
9063   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9064 echo "${ECHO_T}$ac_ct_RANLIB" >&6
9065 else
9066   echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6
9068 fi
9069
9070   RANLIB=$ac_ct_RANLIB
9071 else
9072   RANLIB="$ac_cv_prog_RANLIB"
9073 fi
9074
9075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
9076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   ac_cv_prog_cc_stdc=no
9081 ac_save_CC=$CC
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 #include "confdefs.h"
9085 #include <stdarg.h>
9086 #include <stdio.h>
9087 #include <sys/types.h>
9088 #include <sys/stat.h>
9089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
9090 struct buf { int x; };
9091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9092 static char *e (p, i)
9093      char **p;
9094      int i;
9095 {
9096   return p[i];
9097 }
9098 static char *f (char * (*g) (char **, int), char **p, ...)
9099 {
9100   char *s;
9101   va_list v;
9102   va_start (v,p);
9103   s = g (p, va_arg (v,int));
9104   va_end (v);
9105   return s;
9106 }
9107 int test (int i, double x);
9108 struct s1 {int (*f) (int a);};
9109 struct s2 {int (*f) (double a);};
9110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9111 int argc;
9112 char **argv;
9113 #ifdef F77_DUMMY_MAIN
9114 #  ifdef __cplusplus
9115      extern "C"
9116 #  endif
9117    int F77_DUMMY_MAIN() { return 1; }
9118 #endif
9119 int
9120 main ()
9121 {
9122 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
9123   ;
9124   return 0;
9125 }
9126 _ACEOF
9127 # Don't try gcc -ansi; that turns off useful extensions and
9128 # breaks some systems' header files.
9129 # AIX                   -qlanglvl=ansi
9130 # Ultrix and OSF/1      -std1
9131 # HP-UX 10.20 and later -Ae
9132 # HP-UX older versions  -Aa -D_HPUX_SOURCE
9133 # SVR4                  -Xc -D__EXTENSIONS__
9134 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9135 do
9136   CC="$ac_save_CC $ac_arg"
9137   rm -f conftest.$ac_objext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139   (eval $ac_compile) 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -s conftest.$ac_objext'
9144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145   (eval $ac_try) 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); }; }; then
9149   ac_cv_prog_cc_stdc=$ac_arg
9150 break
9151 else
9152   echo "$as_me: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9154 fi
9155 rm -f conftest.$ac_objext
9156 done
9157 rm -f conftest.$ac_ext conftest.$ac_objext
9158 CC=$ac_save_CC
9159
9160 fi
9161
9162 case "x$ac_cv_prog_cc_stdc" in
9163   x|xno)
9164     echo "$as_me:$LINENO: result: none needed" >&5
9165 echo "${ECHO_T}none needed" >&6 ;;
9166   *)
9167     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
9168 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9169     CC="$CC $ac_cv_prog_cc_stdc" ;;
9170 esac
9171
9172 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9173 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9174 if test "${ac_cv_c_const+set}" = set; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177   cat >conftest.$ac_ext <<_ACEOF
9178 #line $LINENO "configure"
9179 #include "confdefs.h"
9180
9181 #ifdef F77_DUMMY_MAIN
9182 #  ifdef __cplusplus
9183      extern "C"
9184 #  endif
9185    int F77_DUMMY_MAIN() { return 1; }
9186 #endif
9187 int
9188 main ()
9189 {
9190 /* FIXME: Include the comments suggested by Paul. */
9191 #ifndef __cplusplus
9192   /* Ultrix mips cc rejects this.  */
9193   typedef int charset[2];
9194   const charset x;
9195   /* SunOS 4.1.1 cc rejects this.  */
9196   char const *const *ccp;
9197   char **p;
9198   /* NEC SVR4.0.2 mips cc rejects this.  */
9199   struct point {int x, y;};
9200   static struct point const zero = {0,0};
9201   /* AIX XL C 1.02.0.0 rejects this.
9202      It does not let you subtract one const X* pointer from another in
9203      an arm of an if-expression whose if-part is not a constant
9204      expression */
9205   const char *g = "string";
9206   ccp = &g + (g ? g-g : 0);
9207   /* HPUX 7.0 cc rejects these. */
9208   ++ccp;
9209   p = (char**) ccp;
9210   ccp = (char const *const *) p;
9211   { /* SCO 3.2v4 cc rejects this.  */
9212     char *t;
9213     char const *s = 0 ? (char *) 0 : (char const *) 0;
9214
9215     *t++ = 0;
9216   }
9217   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9218     int x[] = {25, 17};
9219     const int *foo = &x[0];
9220     ++foo;
9221   }
9222   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9223     typedef const int *iptr;
9224     iptr p = 0;
9225     ++p;
9226   }
9227   { /* AIX XL C 1.02.0.0 rejects this saying
9228        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9229     struct s { int j; const int *ap[3]; };
9230     struct s *b; b->j = 5;
9231   }
9232   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9233     const int foo = 10;
9234   }
9235 #endif
9236
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 rm -f conftest.$ac_objext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9243   (eval $ac_compile) 2>&5
9244   ac_status=$?
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -s conftest.$ac_objext'
9248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249   (eval $ac_try) 2>&5
9250   ac_status=$?
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); }; }; then
9253   ac_cv_c_const=yes
9254 else
9255   echo "$as_me: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 ac_cv_c_const=no
9258 fi
9259 rm -f conftest.$ac_objext conftest.$ac_ext
9260 fi
9261 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9262 echo "${ECHO_T}$ac_cv_c_const" >&6
9263 if test $ac_cv_c_const = no; then
9264
9265 cat >>confdefs.h <<\_ACEOF
9266 #define const
9267 _ACEOF
9268
9269 fi
9270
9271 echo "$as_me:$LINENO: checking for inline" >&5
9272 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9273 if test "${ac_cv_c_inline+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   ac_cv_c_inline=no
9277 for ac_kw in inline __inline__ __inline; do
9278   cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 #include "confdefs.h"
9281 #ifndef __cplusplus
9282 static $ac_kw int static_foo () {return 0; }
9283 $ac_kw int foo () {return 0; }
9284 #endif
9285
9286 _ACEOF
9287 rm -f conftest.$ac_objext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9289   (eval $ac_compile) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } &&
9293          { ac_try='test -s conftest.$ac_objext'
9294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295   (eval $ac_try) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); }; }; then
9299   ac_cv_c_inline=$ac_kw; break
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 fi
9304 rm -f conftest.$ac_objext conftest.$ac_ext
9305 done
9306
9307 fi
9308 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9309 echo "${ECHO_T}$ac_cv_c_inline" >&6
9310 case $ac_cv_c_inline in
9311   inline | yes) ;;
9312   no)
9313 cat >>confdefs.h <<\_ACEOF
9314 #define inline
9315 _ACEOF
9316  ;;
9317   *)  cat >>confdefs.h <<_ACEOF
9318 #define inline $ac_cv_c_inline
9319 _ACEOF
9320  ;;
9321 esac
9322
9323 echo "$as_me:$LINENO: checking for off_t" >&5
9324 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9325 if test "${ac_cv_type_off_t+set}" = set; then
9326   echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328   cat >conftest.$ac_ext <<_ACEOF
9329 #line $LINENO "configure"
9330 #include "confdefs.h"
9331 $ac_includes_default
9332 #ifdef F77_DUMMY_MAIN
9333 #  ifdef __cplusplus
9334      extern "C"
9335 #  endif
9336    int F77_DUMMY_MAIN() { return 1; }
9337 #endif
9338 int
9339 main ()
9340 {
9341 if ((off_t *) 0)
9342   return 0;
9343 if (sizeof (off_t))
9344   return 0;
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351   (eval $ac_compile) 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); } &&
9355          { ac_try='test -s conftest.$ac_objext'
9356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357   (eval $ac_try) 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   ac_cv_type_off_t=yes
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 ac_cv_type_off_t=no
9366 fi
9367 rm -f conftest.$ac_objext conftest.$ac_ext
9368 fi
9369 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9370 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9371 if test $ac_cv_type_off_t = yes; then
9372   :
9373 else
9374
9375 cat >>confdefs.h <<_ACEOF
9376 #define off_t long
9377 _ACEOF
9378
9379 fi
9380
9381 echo "$as_me:$LINENO: checking for size_t" >&5
9382 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9383 if test "${ac_cv_type_size_t+set}" = set; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 #include "confdefs.h"
9389 $ac_includes_default
9390 #ifdef F77_DUMMY_MAIN
9391 #  ifdef __cplusplus
9392      extern "C"
9393 #  endif
9394    int F77_DUMMY_MAIN() { return 1; }
9395 #endif
9396 int
9397 main ()
9398 {
9399 if ((size_t *) 0)
9400   return 0;
9401 if (sizeof (size_t))
9402   return 0;
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest.$ac_objext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409   (eval $ac_compile) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); } &&
9413          { ac_try='test -s conftest.$ac_objext'
9414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415   (eval $ac_try) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); }; }; then
9419   ac_cv_type_size_t=yes
9420 else
9421   echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9423 ac_cv_type_size_t=no
9424 fi
9425 rm -f conftest.$ac_objext conftest.$ac_ext
9426 fi
9427 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9428 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9429 if test $ac_cv_type_size_t = yes; then
9430   :
9431 else
9432
9433 cat >>confdefs.h <<_ACEOF
9434 #define size_t unsigned
9435 _ACEOF
9436
9437 fi
9438
9439 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9440 # for constant arguments.  Useless!
9441 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9442 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9443 if test "${ac_cv_working_alloca_h+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446   cat >conftest.$ac_ext <<_ACEOF
9447 #line $LINENO "configure"
9448 #include "confdefs.h"
9449 #include <alloca.h>
9450 #ifdef F77_DUMMY_MAIN
9451 #  ifdef __cplusplus
9452      extern "C"
9453 #  endif
9454    int F77_DUMMY_MAIN() { return 1; }
9455 #endif
9456 int
9457 main ()
9458 {
9459 char *p = (char *) alloca (2 * sizeof (int));
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466   (eval $ac_link) 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); } &&
9470          { ac_try='test -s conftest$ac_exeext'
9471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472   (eval $ac_try) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); }; }; then
9476   ac_cv_working_alloca_h=yes
9477 else
9478   echo "$as_me: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9480 ac_cv_working_alloca_h=no
9481 fi
9482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9483 fi
9484 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9485 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9486 if test $ac_cv_working_alloca_h = yes; then
9487
9488 cat >>confdefs.h <<\_ACEOF
9489 #define HAVE_ALLOCA_H 1
9490 _ACEOF
9491
9492 fi
9493
9494 echo "$as_me:$LINENO: checking for alloca" >&5
9495 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9496 if test "${ac_cv_func_alloca_works+set}" = set; then
9497   echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499   cat >conftest.$ac_ext <<_ACEOF
9500 #line $LINENO "configure"
9501 #include "confdefs.h"
9502 #ifdef __GNUC__
9503 # define alloca __builtin_alloca
9504 #else
9505 # ifdef _MSC_VER
9506 #  include <malloc.h>
9507 #  define alloca _alloca
9508 # else
9509 #  if HAVE_ALLOCA_H
9510 #   include <alloca.h>
9511 #  else
9512 #   ifdef _AIX
9513  #pragma alloca
9514 #   else
9515 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9516 char *alloca ();
9517 #    endif
9518 #   endif
9519 #  endif
9520 # endif
9521 #endif
9522
9523 #ifdef F77_DUMMY_MAIN
9524 #  ifdef __cplusplus
9525      extern "C"
9526 #  endif
9527    int F77_DUMMY_MAIN() { return 1; }
9528 #endif
9529 int
9530 main ()
9531 {
9532 char *p = (char *) alloca (1);
9533   ;
9534   return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539   (eval $ac_link) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } &&
9543          { ac_try='test -s conftest$ac_exeext'
9544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545   (eval $ac_try) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; }; then
9549   ac_cv_func_alloca_works=yes
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9553 ac_cv_func_alloca_works=no
9554 fi
9555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9556 fi
9557 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9558 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9559
9560 if test $ac_cv_func_alloca_works = yes; then
9561
9562 cat >>confdefs.h <<\_ACEOF
9563 #define HAVE_ALLOCA 1
9564 _ACEOF
9565
9566 else
9567   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9568 # that cause trouble.  Some versions do not even contain alloca or
9569 # contain a buggy version.  If you still want to use their alloca,
9570 # use ar to extract alloca.o from them instead of compiling alloca.c.
9571
9572 ALLOCA=alloca.$ac_objext
9573
9574 cat >>confdefs.h <<\_ACEOF
9575 #define C_ALLOCA 1
9576 _ACEOF
9577
9578
9579 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9580 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9581 if test "${ac_cv_os_cray+set}" = set; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   cat >conftest.$ac_ext <<_ACEOF
9585 #line $LINENO "configure"
9586 #include "confdefs.h"
9587 #if defined(CRAY) && ! defined(CRAY2)
9588 webecray
9589 #else
9590 wenotbecray
9591 #endif
9592
9593 _ACEOF
9594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9595   egrep "webecray" >/dev/null 2>&1; then
9596   ac_cv_os_cray=yes
9597 else
9598   ac_cv_os_cray=no
9599 fi
9600 rm -f conftest*
9601
9602 fi
9603 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9604 echo "${ECHO_T}$ac_cv_os_cray" >&6
9605 if test $ac_cv_os_cray = yes; then
9606   for ac_func in _getb67 GETB67 getb67; do
9607     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9608 echo "$as_me:$LINENO: checking for $ac_func" >&5
9609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9610 if eval "test \"\${$as_ac_var+set}\" = set"; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613   cat >conftest.$ac_ext <<_ACEOF
9614 #line $LINENO "configure"
9615 #include "confdefs.h"
9616 /* System header to define __stub macros and hopefully few prototypes,
9617     which can conflict with char $ac_func (); below.  */
9618 #include <assert.h>
9619 /* Override any gcc2 internal prototype to avoid an error.  */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 /* We use char because int might match the return type of a gcc2
9624    builtin and then its argument prototype would still apply.  */
9625 char $ac_func ();
9626 char (*f) ();
9627
9628 #ifdef F77_DUMMY_MAIN
9629 #  ifdef __cplusplus
9630      extern "C"
9631 #  endif
9632    int F77_DUMMY_MAIN() { return 1; }
9633 #endif
9634 int
9635 main ()
9636 {
9637 /* The GNU C library defines this for functions which it implements
9638     to always fail with ENOSYS.  Some functions are actually named
9639     something starting with __ and the normal name is an alias.  */
9640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9641 choke me
9642 #else
9643 f = $ac_func;
9644 #endif
9645
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652   (eval $ac_link) 2>&5
9653   ac_status=$?
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); } &&
9656          { ac_try='test -s conftest$ac_exeext'
9657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658   (eval $ac_try) 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); }; }; then
9662   eval "$as_ac_var=yes"
9663 else
9664   echo "$as_me: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9666 eval "$as_ac_var=no"
9667 fi
9668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9669 fi
9670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9672 if test `eval echo '${'$as_ac_var'}'` = yes; then
9673
9674 cat >>confdefs.h <<_ACEOF
9675 #define CRAY_STACKSEG_END $ac_func
9676 _ACEOF
9677
9678     break
9679 fi
9680
9681   done
9682 fi
9683
9684 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9685 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9686 if test "${ac_cv_c_stack_direction+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   if test "$cross_compiling" = yes; then
9690   ac_cv_c_stack_direction=0
9691 else
9692   cat >conftest.$ac_ext <<_ACEOF
9693 #line $LINENO "configure"
9694 #include "confdefs.h"
9695 int
9696 find_stack_direction ()
9697 {
9698   static char *addr = 0;
9699   auto char dummy;
9700   if (addr == 0)
9701     {
9702       addr = &dummy;
9703       return find_stack_direction ();
9704     }
9705   else
9706     return (&dummy > addr) ? 1 : -1;
9707 }
9708
9709 int
9710 main ()
9711 {
9712   exit (find_stack_direction () < 0);
9713 }
9714 _ACEOF
9715 rm -f conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717   (eval $ac_link) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_c_stack_direction=1
9727 else
9728   echo "$as_me: program exited with status $ac_status" >&5
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9731 ( exit $ac_status )
9732 ac_cv_c_stack_direction=-1
9733 fi
9734 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9735 fi
9736 fi
9737 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9738 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9739
9740 cat >>confdefs.h <<_ACEOF
9741 #define STACK_DIRECTION $ac_cv_c_stack_direction
9742 _ACEOF
9743
9744
9745 fi
9746
9747
9748
9749 for ac_header in stdlib.h unistd.h
9750 do
9751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9753   echo "$as_me:$LINENO: checking for $ac_header" >&5
9754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 fi
9758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9760 else
9761   # Is the header compilable?
9762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9764 cat >conftest.$ac_ext <<_ACEOF
9765 #line $LINENO "configure"
9766 #include "confdefs.h"
9767 $ac_includes_default
9768 #include <$ac_header>
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9772   (eval $ac_compile) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); } &&
9776          { ac_try='test -s conftest.$ac_objext'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   ac_header_compiler=yes
9783 else
9784   echo "$as_me: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 ac_header_compiler=no
9787 fi
9788 rm -f conftest.$ac_objext conftest.$ac_ext
9789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9790 echo "${ECHO_T}$ac_header_compiler" >&6
9791
9792 # Is the header present?
9793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9795 cat >conftest.$ac_ext <<_ACEOF
9796 #line $LINENO "configure"
9797 #include "confdefs.h"
9798 #include <$ac_header>
9799 _ACEOF
9800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9802   ac_status=$?
9803   egrep -v '^ *\+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } >/dev/null; then
9808   if test -s conftest.err; then
9809     ac_cpp_err=$ac_c_preproc_warn_flag
9810   else
9811     ac_cpp_err=
9812   fi
9813 else
9814   ac_cpp_err=yes
9815 fi
9816 if test -z "$ac_cpp_err"; then
9817   ac_header_preproc=yes
9818 else
9819   echo "$as_me: failed program was:" >&5
9820   cat conftest.$ac_ext >&5
9821   ac_header_preproc=no
9822 fi
9823 rm -f conftest.err conftest.$ac_ext
9824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9825 echo "${ECHO_T}$ac_header_preproc" >&6
9826
9827 # So?  What about this header?
9828 case $ac_header_compiler:$ac_header_preproc in
9829   yes:no )
9830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9834   no:yes )
9835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9837     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9841 esac
9842 echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847   eval "$as_ac_Header=$ac_header_preproc"
9848 fi
9849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9851
9852 fi
9853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9854   cat >>confdefs.h <<_ACEOF
9855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9856 _ACEOF
9857
9858 fi
9859
9860 done
9861
9862
9863 for ac_func in getpagesize
9864 do
9865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9866 echo "$as_me:$LINENO: checking for $ac_func" >&5
9867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9868 if eval "test \"\${$as_ac_var+set}\" = set"; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   cat >conftest.$ac_ext <<_ACEOF
9872 #line $LINENO "configure"
9873 #include "confdefs.h"
9874 /* System header to define __stub macros and hopefully few prototypes,
9875     which can conflict with char $ac_func (); below.  */
9876 #include <assert.h>
9877 /* Override any gcc2 internal prototype to avoid an error.  */
9878 #ifdef __cplusplus
9879 extern "C"
9880 #endif
9881 /* We use char because int might match the return type of a gcc2
9882    builtin and then its argument prototype would still apply.  */
9883 char $ac_func ();
9884 char (*f) ();
9885
9886 #ifdef F77_DUMMY_MAIN
9887 #  ifdef __cplusplus
9888      extern "C"
9889 #  endif
9890    int F77_DUMMY_MAIN() { return 1; }
9891 #endif
9892 int
9893 main ()
9894 {
9895 /* The GNU C library defines this for functions which it implements
9896     to always fail with ENOSYS.  Some functions are actually named
9897     something starting with __ and the normal name is an alias.  */
9898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9899 choke me
9900 #else
9901 f = $ac_func;
9902 #endif
9903
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9910   (eval $ac_link) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -s conftest$ac_exeext'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920   eval "$as_ac_var=yes"
9921 else
9922   echo "$as_me: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 eval "$as_ac_var=no"
9925 fi
9926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9927 fi
9928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9930 if test `eval echo '${'$as_ac_var'}'` = yes; then
9931   cat >>confdefs.h <<_ACEOF
9932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9933 _ACEOF
9934
9935 fi
9936 done
9937
9938 echo "$as_me:$LINENO: checking for working mmap" >&5
9939 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9940 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   if test "$cross_compiling" = yes; then
9944   ac_cv_func_mmap_fixed_mapped=no
9945 else
9946   cat >conftest.$ac_ext <<_ACEOF
9947 #line $LINENO "configure"
9948 #include "confdefs.h"
9949 $ac_includes_default
9950 /* malloc might have been renamed as rpl_malloc. */
9951 #undef malloc
9952
9953 /* Thanks to Mike Haertel and Jim Avera for this test.
9954    Here is a matrix of mmap possibilities:
9955         mmap private not fixed
9956         mmap private fixed at somewhere currently unmapped
9957         mmap private fixed at somewhere already mapped
9958         mmap shared not fixed
9959         mmap shared fixed at somewhere currently unmapped
9960         mmap shared fixed at somewhere already mapped
9961    For private mappings, we should verify that changes cannot be read()
9962    back from the file, nor mmap's back from the file at a different
9963    address.  (There have been systems where private was not correctly
9964    implemented like the infamous i386 svr4.0, and systems where the
9965    VM page cache was not coherent with the file system buffer cache
9966    like early versions of FreeBSD and possibly contemporary NetBSD.)
9967    For shared mappings, we should conversely verify that changes get
9968    propagated back to all the places they're supposed to be.
9969
9970    Grep wants private fixed already mapped.
9971    The main things grep needs to know about mmap are:
9972    * does it exist and is it safe to write into the mmap'd area
9973    * how to use it (BSD variants)  */
9974
9975 #include <fcntl.h>
9976 #include <sys/mman.h>
9977
9978 #if !STDC_HEADERS && !HAVE_STDLIB_H
9979 char *malloc ();
9980 #endif
9981
9982 /* This mess was copied from the GNU getpagesize.h.  */
9983 #if !HAVE_GETPAGESIZE
9984 /* Assume that all systems that can run configure have sys/param.h.  */
9985 # if !HAVE_SYS_PARAM_H
9986 #  define HAVE_SYS_PARAM_H 1
9987 # endif
9988
9989 # ifdef _SC_PAGESIZE
9990 #  define getpagesize() sysconf(_SC_PAGESIZE)
9991 # else /* no _SC_PAGESIZE */
9992 #  if HAVE_SYS_PARAM_H
9993 #   include <sys/param.h>
9994 #   ifdef EXEC_PAGESIZE
9995 #    define getpagesize() EXEC_PAGESIZE
9996 #   else /* no EXEC_PAGESIZE */
9997 #    ifdef NBPG
9998 #     define getpagesize() NBPG * CLSIZE
9999 #     ifndef CLSIZE
10000 #      define CLSIZE 1
10001 #     endif /* no CLSIZE */
10002 #    else /* no NBPG */
10003 #     ifdef NBPC
10004 #      define getpagesize() NBPC
10005 #     else /* no NBPC */
10006 #      ifdef PAGESIZE
10007 #       define getpagesize() PAGESIZE
10008 #      endif /* PAGESIZE */
10009 #     endif /* no NBPC */
10010 #    endif /* no NBPG */
10011 #   endif /* no EXEC_PAGESIZE */
10012 #  else /* no HAVE_SYS_PARAM_H */
10013 #   define getpagesize() 8192   /* punt totally */
10014 #  endif /* no HAVE_SYS_PARAM_H */
10015 # endif /* no _SC_PAGESIZE */
10016
10017 #endif /* no HAVE_GETPAGESIZE */
10018
10019 int
10020 main ()
10021 {
10022   char *data, *data2, *data3;
10023   int i, pagesize;
10024   int fd;
10025
10026   pagesize = getpagesize ();
10027
10028   /* First, make a file with some known garbage in it. */
10029   data = (char *) malloc (pagesize);
10030   if (!data)
10031     exit (1);
10032   for (i = 0; i < pagesize; ++i)
10033     *(data + i) = rand ();
10034   umask (0);
10035   fd = creat ("conftest.mmap", 0600);
10036   if (fd < 0)
10037     exit (1);
10038   if (write (fd, data, pagesize) != pagesize)
10039     exit (1);
10040   close (fd);
10041
10042   /* Next, try to mmap the file at a fixed address which already has
10043      something else allocated at it.  If we can, also make sure that
10044      we see the same garbage.  */
10045   fd = open ("conftest.mmap", O_RDWR);
10046   if (fd < 0)
10047     exit (1);
10048   data2 = (char *) malloc (2 * pagesize);
10049   if (!data2)
10050     exit (1);
10051   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10052   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10053                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10054     exit (1);
10055   for (i = 0; i < pagesize; ++i)
10056     if (*(data + i) != *(data2 + i))
10057       exit (1);
10058
10059   /* Finally, make sure that changes to the mapped area do not
10060      percolate back to the file as seen by read().  (This is a bug on
10061      some variants of i386 svr4.0.)  */
10062   for (i = 0; i < pagesize; ++i)
10063     *(data2 + i) = *(data2 + i) + 1;
10064   data3 = (char *) malloc (pagesize);
10065   if (!data3)
10066     exit (1);
10067   if (read (fd, data3, pagesize) != pagesize)
10068     exit (1);
10069   for (i = 0; i < pagesize; ++i)
10070     if (*(data + i) != *(data3 + i))
10071       exit (1);
10072   close (fd);
10073   exit (0);
10074 }
10075 _ACEOF
10076 rm -f conftest$ac_exeext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078   (eval $ac_link) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_cv_func_mmap_fixed_mapped=yes
10088 else
10089   echo "$as_me: program exited with status $ac_status" >&5
10090 echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 ( exit $ac_status )
10093 ac_cv_func_mmap_fixed_mapped=no
10094 fi
10095 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 fi
10098 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10099 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
10100 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10101
10102 cat >>confdefs.h <<\_ACEOF
10103 #define HAVE_MMAP 1
10104 _ACEOF
10105
10106 fi
10107 rm -f conftest.mmap
10108
10109
10110     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10111 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
10112 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10113   echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115   cat >conftest.$ac_ext <<_ACEOF
10116 #line $LINENO "configure"
10117 #include "confdefs.h"
10118
10119 #include <features.h>
10120 #ifdef __GNU_LIBRARY__
10121  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10122   Lucky GNU user
10123  #endif
10124 #endif
10125
10126 _ACEOF
10127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10128   egrep "Lucky GNU user" >/dev/null 2>&1; then
10129   ac_cv_gnu_library_2_1=yes
10130 else
10131   ac_cv_gnu_library_2_1=no
10132 fi
10133 rm -f conftest*
10134
10135
10136
10137 fi
10138 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10139 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
10140
10141     GLIBC21="$ac_cv_gnu_library_2_1"
10142
10143
10144
10145
10146   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10147 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
10148 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151
10152       if test "$cross_compiling" = yes; then
10153
10154           # Guess based on the CPU.
10155           case "$host_cpu" in
10156             alpha* | i3456786 | m68k | s390*)
10157               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10158             *)
10159               gt_cv_int_divbyzero_sigfpe="guessing no";;
10160           esac
10161
10162 else
10163   cat >conftest.$ac_ext <<_ACEOF
10164 #line $LINENO "configure"
10165 #include "confdefs.h"
10166
10167 #include <stdlib.h>
10168 #include <signal.h>
10169
10170 static void
10171 #ifdef __cplusplus
10172 sigfpe_handler (int sig)
10173 #else
10174 sigfpe_handler (sig) int sig;
10175 #endif
10176 {
10177   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10178   exit (sig != SIGFPE);
10179 }
10180
10181 int x = 1;
10182 int y = 0;
10183 int z;
10184 int nan;
10185
10186 int main ()
10187 {
10188   signal (SIGFPE, sigfpe_handler);
10189 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10190 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10191   signal (SIGTRAP, sigfpe_handler);
10192 #endif
10193 /* Linux/SPARC yields signal SIGILL.  */
10194 #if defined (__sparc__) && defined (__linux__)
10195   signal (SIGILL, sigfpe_handler);
10196 #endif
10197
10198   z = x / y;
10199   nan = y / y;
10200   exit (1);
10201 }
10202
10203 _ACEOF
10204 rm -f conftest$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206   (eval $ac_link) 2>&5
10207   ac_status=$?
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211   (eval $ac_try) 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; }; then
10215   gt_cv_int_divbyzero_sigfpe=yes
10216 else
10217   echo "$as_me: program exited with status $ac_status" >&5
10218 echo "$as_me: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10220 ( exit $ac_status )
10221 gt_cv_int_divbyzero_sigfpe=no
10222 fi
10223 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10224 fi
10225
10226 fi
10227 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10228 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
10229   case "$gt_cv_int_divbyzero_sigfpe" in
10230     *yes) value=1;;
10231     *) value=0;;
10232   esac
10233
10234 cat >>confdefs.h <<_ACEOF
10235 #define INTDIV0_RAISES_SIGFPE $value
10236 _ACEOF
10237
10238
10239
10240   echo "$as_me:$LINENO: checking for inttypes.h" >&5
10241 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10242 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   cat >conftest.$ac_ext <<_ACEOF
10246 #line $LINENO "configure"
10247 #include "confdefs.h"
10248 #include <sys/types.h>
10249 #include <inttypes.h>
10250 #ifdef F77_DUMMY_MAIN
10251 #  ifdef __cplusplus
10252      extern "C"
10253 #  endif
10254    int F77_DUMMY_MAIN() { return 1; }
10255 #endif
10256 int
10257 main ()
10258 {
10259 uintmax_t i = (uintmax_t) -1;
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 rm -f conftest.$ac_objext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266   (eval $ac_compile) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } &&
10270          { ac_try='test -s conftest.$ac_objext'
10271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272   (eval $ac_try) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; }; then
10276   jm_ac_cv_header_inttypes_h=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 jm_ac_cv_header_inttypes_h=no
10281 fi
10282 rm -f conftest.$ac_objext conftest.$ac_ext
10283 fi
10284 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
10285 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
10286   if test $jm_ac_cv_header_inttypes_h = yes; then
10287
10288 cat >>confdefs.h <<_ACEOF
10289 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
10290 _ACEOF
10291
10292   fi
10293
10294
10295   echo "$as_me:$LINENO: checking for stdint.h" >&5
10296 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
10297 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300   cat >conftest.$ac_ext <<_ACEOF
10301 #line $LINENO "configure"
10302 #include "confdefs.h"
10303 #include <sys/types.h>
10304 #include <stdint.h>
10305 #ifdef F77_DUMMY_MAIN
10306 #  ifdef __cplusplus
10307      extern "C"
10308 #  endif
10309    int F77_DUMMY_MAIN() { return 1; }
10310 #endif
10311 int
10312 main ()
10313 {
10314 uintmax_t i = (uintmax_t) -1;
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321   (eval $ac_compile) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); } &&
10325          { ac_try='test -s conftest.$ac_objext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   jm_ac_cv_header_stdint_h=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 jm_ac_cv_header_stdint_h=no
10336 fi
10337 rm -f conftest.$ac_objext conftest.$ac_ext
10338 fi
10339 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
10340 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
10341   if test $jm_ac_cv_header_stdint_h = yes; then
10342
10343 cat >>confdefs.h <<_ACEOF
10344 #define HAVE_STDINT_H_WITH_UINTMAX 1
10345 _ACEOF
10346
10347   fi
10348
10349
10350   echo "$as_me:$LINENO: checking for unsigned long long" >&5
10351 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
10352 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   cat >conftest.$ac_ext <<_ACEOF
10356 #line $LINENO "configure"
10357 #include "confdefs.h"
10358 unsigned long long ull = 1; int i = 63;
10359 #ifdef F77_DUMMY_MAIN
10360 #  ifdef __cplusplus
10361      extern "C"
10362 #  endif
10363    int F77_DUMMY_MAIN() { return 1; }
10364 #endif
10365 int
10366 main ()
10367 {
10368 unsigned long long ullmax = (unsigned long long) -1;
10369      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376   (eval $ac_link) 2>&5
10377   ac_status=$?
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); } &&
10380          { ac_try='test -s conftest$ac_exeext'
10381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382   (eval $ac_try) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; }; then
10386   ac_cv_type_unsigned_long_long=yes
10387 else
10388   echo "$as_me: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 ac_cv_type_unsigned_long_long=no
10391 fi
10392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10393 fi
10394 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10395 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
10396   if test $ac_cv_type_unsigned_long_long = yes; then
10397
10398 cat >>confdefs.h <<\_ACEOF
10399 #define HAVE_UNSIGNED_LONG_LONG 1
10400 _ACEOF
10401
10402   fi
10403
10404
10405
10406
10407   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
10408
10409     test $ac_cv_type_unsigned_long_long = yes \
10410       && ac_type='unsigned long long' \
10411       || ac_type='unsigned long'
10412
10413 cat >>confdefs.h <<_ACEOF
10414 #define uintmax_t $ac_type
10415 _ACEOF
10416
10417   fi
10418
10419
10420   echo "$as_me:$LINENO: checking for inttypes.h" >&5
10421 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10422 if test "${gt_cv_header_inttypes_h+set}" = set; then
10423   echo $ECHO_N "(cached) $ECHO_C" >&6
10424 else
10425
10426     cat >conftest.$ac_ext <<_ACEOF
10427 #line $LINENO "configure"
10428 #include "confdefs.h"
10429 #include <sys/types.h>
10430 #include <inttypes.h>
10431 #ifdef F77_DUMMY_MAIN
10432 #  ifdef __cplusplus
10433      extern "C"
10434 #  endif
10435    int F77_DUMMY_MAIN() { return 1; }
10436 #endif
10437 int
10438 main ()
10439 {
10440
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
10445 rm -f conftest.$ac_objext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447   (eval $ac_compile) 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -s conftest.$ac_objext'
10452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453   (eval $ac_try) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; }; then
10457   gt_cv_header_inttypes_h=yes
10458 else
10459   echo "$as_me: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10461 gt_cv_header_inttypes_h=no
10462 fi
10463 rm -f conftest.$ac_objext conftest.$ac_ext
10464
10465 fi
10466 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10467 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
10468   if test $gt_cv_header_inttypes_h = yes; then
10469
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_INTTYPES_H 1
10472 _ACEOF
10473
10474   fi
10475
10476
10477
10478   if test $gt_cv_header_inttypes_h = yes; then
10479     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10480 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
10481 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484
10485         cat >conftest.$ac_ext <<_ACEOF
10486 #line $LINENO "configure"
10487 #include "confdefs.h"
10488 #include <inttypes.h>
10489 #ifdef PRId32
10490 char *p = PRId32;
10491 #endif
10492
10493 #ifdef F77_DUMMY_MAIN
10494 #  ifdef __cplusplus
10495      extern "C"
10496 #  endif
10497    int F77_DUMMY_MAIN() { return 1; }
10498 #endif
10499 int
10500 main ()
10501 {
10502
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509   (eval $ac_compile) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } &&
10513          { ac_try='test -s conftest.$ac_objext'
10514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515   (eval $ac_try) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; }; then
10519   gt_cv_inttypes_pri_broken=no
10520 else
10521   echo "$as_me: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 gt_cv_inttypes_pri_broken=yes
10524 fi
10525 rm -f conftest.$ac_objext conftest.$ac_ext
10526
10527 fi
10528 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10529 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
10530   fi
10531   if test "$gt_cv_inttypes_pri_broken" = yes; then
10532
10533 cat >>confdefs.h <<_ACEOF
10534 #define PRI_MACROS_BROKEN 1
10535 _ACEOF
10536
10537   fi
10538
10539
10540       if test "X$prefix" = "XNONE"; then
10541     acl_final_prefix="$ac_default_prefix"
10542   else
10543     acl_final_prefix="$prefix"
10544   fi
10545   if test "X$exec_prefix" = "XNONE"; then
10546     acl_final_exec_prefix='${prefix}'
10547   else
10548     acl_final_exec_prefix="$exec_prefix"
10549   fi
10550   acl_save_prefix="$prefix"
10551   prefix="$acl_final_prefix"
10552   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10553   prefix="$acl_save_prefix"
10554
10555
10556 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10557 if test "${with_gnu_ld+set}" = set; then
10558   withval="$with_gnu_ld"
10559   test "$withval" = no || with_gnu_ld=yes
10560 else
10561   with_gnu_ld=no
10562 fi;
10563 ac_prog=ld
10564 if test "$GCC" = yes; then
10565   # Check if gcc -print-prog-name=ld gives a path.
10566   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10567 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10568   case $host in
10569   *-*-mingw*)
10570     # gcc leaves a trailing carriage return which upsets mingw
10571     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10572   *)
10573     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10574   esac
10575   case $ac_prog in
10576     # Accept absolute paths.
10577     [\\/]* | [A-Za-z]:[\\/]*)
10578       re_direlt='/[^/][^/]*/\.\./'
10579       # Canonicalize the path of ld
10580       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10581       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10582         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10583       done
10584       test -z "$LD" && LD="$ac_prog"
10585       ;;
10586   "")
10587     # If it fails, then pretend we aren't using GCC.
10588     ac_prog=ld
10589     ;;
10590   *)
10591     # If it is relative, then search for the first ld in PATH.
10592     with_gnu_ld=unknown
10593     ;;
10594   esac
10595 elif test "$with_gnu_ld" = yes; then
10596   echo "$as_me:$LINENO: checking for GNU ld" >&5
10597 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10598 else
10599   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10600 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10601 fi
10602 if test "${acl_cv_path_LD+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   if test -z "$LD"; then
10606   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10607   for ac_dir in $PATH; do
10608     test -z "$ac_dir" && ac_dir=.
10609     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10610       acl_cv_path_LD="$ac_dir/$ac_prog"
10611       # Check to see if the program is GNU ld.  I'd rather use --version,
10612       # but apparently some GNU ld's only accept -v.
10613       # Break only if it was the GNU/non-GNU ld that we prefer.
10614       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10615         test "$with_gnu_ld" != no && break
10616       else
10617         test "$with_gnu_ld" != yes && break
10618       fi
10619     fi
10620   done
10621   IFS="$ac_save_ifs"
10622 else
10623   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10624 fi
10625 fi
10626
10627 LD="$acl_cv_path_LD"
10628 if test -n "$LD"; then
10629   echo "$as_me:$LINENO: result: $LD" >&5
10630 echo "${ECHO_T}$LD" >&6
10631 else
10632   echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6
10634 fi
10635 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10636 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10637    { (exit 1); exit 1; }; }
10638 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10639 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10640 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10644 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10645   acl_cv_prog_gnu_ld=yes
10646 else
10647   acl_cv_prog_gnu_ld=no
10648 fi
10649 fi
10650 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10651 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10652 with_gnu_ld=$acl_cv_prog_gnu_ld
10653
10654
10655
10656                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10657 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10658 if test "${acl_cv_rpath+set}" = set; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661
10662     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10663     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10664     . ./conftest.sh
10665     rm -f ./conftest.sh
10666     acl_cv_rpath=done
10667
10668 fi
10669 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10670 echo "${ECHO_T}$acl_cv_rpath" >&6
10671   wl="$acl_cv_wl"
10672   libext="$acl_cv_libext"
10673   shlibext="$acl_cv_shlibext"
10674   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10675   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10676   hardcode_direct="$acl_cv_hardcode_direct"
10677   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10678   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
10679   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
10680     # Check whether --enable-rpath or --disable-rpath was given.
10681 if test "${enable_rpath+set}" = set; then
10682   enableval="$enable_rpath"
10683   :
10684 else
10685   enable_rpath=yes
10686 fi;
10687
10688
10689
10690
10691
10692
10693
10694     use_additional=yes
10695
10696   acl_save_prefix="$prefix"
10697   prefix="$acl_final_prefix"
10698   acl_save_exec_prefix="$exec_prefix"
10699   exec_prefix="$acl_final_exec_prefix"
10700
10701     eval additional_includedir=\"$includedir\"
10702     eval additional_libdir=\"$libdir\"
10703
10704   exec_prefix="$acl_save_exec_prefix"
10705   prefix="$acl_save_prefix"
10706
10707
10708 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10709 if test "${with_libiconv_prefix+set}" = set; then
10710   withval="$with_libiconv_prefix"
10711
10712     if test "X$withval" = "Xno"; then
10713       use_additional=no
10714     else
10715       if test "X$withval" = "X"; then
10716
10717   acl_save_prefix="$prefix"
10718   prefix="$acl_final_prefix"
10719   acl_save_exec_prefix="$exec_prefix"
10720   exec_prefix="$acl_final_exec_prefix"
10721
10722           eval additional_includedir=\"$includedir\"
10723           eval additional_libdir=\"$libdir\"
10724
10725   exec_prefix="$acl_save_exec_prefix"
10726   prefix="$acl_save_prefix"
10727
10728       else
10729         additional_includedir="$withval/include"
10730         additional_libdir="$withval/lib"
10731       fi
10732     fi
10733
10734 fi;
10735       LIBICONV=
10736   LTLIBICONV=
10737   INCICONV=
10738   rpathdirs=
10739   ltrpathdirs=
10740   names_already_handled=
10741   names_next_round='iconv '
10742   while test -n "$names_next_round"; do
10743     names_this_round="$names_next_round"
10744     names_next_round=
10745     for name in $names_this_round; do
10746       already_handled=
10747       for n in $names_already_handled; do
10748         if test "$n" = "$name"; then
10749           already_handled=yes
10750           break
10751         fi
10752       done
10753       if test -z "$already_handled"; then
10754         names_already_handled="$names_already_handled $name"
10755                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10756         eval value=\"\$HAVE_LIB$uppername\"
10757         if test -n "$value"; then
10758           if test "$value" = yes; then
10759             eval value=\"\$LIB$uppername\"
10760             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10761             eval value=\"\$LTLIB$uppername\"
10762             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10763           else
10764                                     :
10765           fi
10766         else
10767                               found_dir=
10768           found_la=
10769           found_so=
10770           found_a=
10771           if test $use_additional = yes; then
10772             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10773               found_dir="$additional_libdir"
10774               found_so="$additional_libdir/lib$name.$shlibext"
10775               if test -f "$additional_libdir/lib$name.la"; then
10776                 found_la="$additional_libdir/lib$name.la"
10777               fi
10778             else
10779               if test -f "$additional_libdir/lib$name.$libext"; then
10780                 found_dir="$additional_libdir"
10781                 found_a="$additional_libdir/lib$name.$libext"
10782                 if test -f "$additional_libdir/lib$name.la"; then
10783                   found_la="$additional_libdir/lib$name.la"
10784                 fi
10785               fi
10786             fi
10787           fi
10788           if test "X$found_dir" = "X"; then
10789             for x in $LDFLAGS $LTLIBICONV; do
10790
10791   acl_save_prefix="$prefix"
10792   prefix="$acl_final_prefix"
10793   acl_save_exec_prefix="$exec_prefix"
10794   exec_prefix="$acl_final_exec_prefix"
10795   eval x=\"$x\"
10796   exec_prefix="$acl_save_exec_prefix"
10797   prefix="$acl_save_prefix"
10798
10799               case "$x" in
10800                 -L*)
10801                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10802                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10803                     found_dir="$dir"
10804                     found_so="$dir/lib$name.$shlibext"
10805                     if test -f "$dir/lib$name.la"; then
10806                       found_la="$dir/lib$name.la"
10807                     fi
10808                   else
10809                     if test -f "$dir/lib$name.$libext"; then
10810                       found_dir="$dir"
10811                       found_a="$dir/lib$name.$libext"
10812                       if test -f "$dir/lib$name.la"; then
10813                         found_la="$dir/lib$name.la"
10814                       fi
10815                     fi
10816                   fi
10817                   ;;
10818               esac
10819               if test "X$found_dir" != "X"; then
10820                 break
10821               fi
10822             done
10823           fi
10824           if test "X$found_dir" != "X"; then
10825                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10826             if test "X$found_so" != "X"; then
10827                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10828                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10829               else
10830                                                                                 haveit=
10831                 for x in $ltrpathdirs; do
10832                   if test "X$x" = "X$found_dir"; then
10833                     haveit=yes
10834                     break
10835                   fi
10836                 done
10837                 if test -z "$haveit"; then
10838                   ltrpathdirs="$ltrpathdirs $found_dir"
10839                 fi
10840                                 if test "$hardcode_direct" = yes; then
10841                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10842                 else
10843                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10844                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10845                                                             haveit=
10846                     for x in $rpathdirs; do
10847                       if test "X$x" = "X$found_dir"; then
10848                         haveit=yes
10849                         break
10850                       fi
10851                     done
10852                     if test -z "$haveit"; then
10853                       rpathdirs="$rpathdirs $found_dir"
10854                     fi
10855                   else
10856                                                                                 haveit=
10857                     for x in $LDFLAGS $LIBICONV; do
10858
10859   acl_save_prefix="$prefix"
10860   prefix="$acl_final_prefix"
10861   acl_save_exec_prefix="$exec_prefix"
10862   exec_prefix="$acl_final_exec_prefix"
10863   eval x=\"$x\"
10864   exec_prefix="$acl_save_exec_prefix"
10865   prefix="$acl_save_prefix"
10866
10867                       if test "X$x" = "X-L$found_dir"; then
10868                         haveit=yes
10869                         break
10870                       fi
10871                     done
10872                     if test -z "$haveit"; then
10873                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10874                     fi
10875                     if test "$hardcode_minus_L" != no; then
10876                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10877                     else
10878                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10879                     fi
10880                   fi
10881                 fi
10882               fi
10883             else
10884               if test "X$found_a" != "X"; then
10885                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10886               else
10887                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10888               fi
10889             fi
10890                         additional_includedir=
10891             case "$found_dir" in
10892               */lib | */lib/)
10893                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10894                 additional_includedir="$basedir/include"
10895                 ;;
10896             esac
10897             if test "X$additional_includedir" != "X"; then
10898                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10899                 haveit=
10900                 if test "X$additional_includedir" = "X/usr/local/include"; then
10901                   if test -n "$GCC"; then
10902                     case $host_os in
10903                       linux*) haveit=yes;;
10904                     esac
10905                   fi
10906                 fi
10907                 if test -z "$haveit"; then
10908                   for x in $CPPFLAGS $INCICONV; do
10909
10910   acl_save_prefix="$prefix"
10911   prefix="$acl_final_prefix"
10912   acl_save_exec_prefix="$exec_prefix"
10913   exec_prefix="$acl_final_exec_prefix"
10914   eval x=\"$x\"
10915   exec_prefix="$acl_save_exec_prefix"
10916   prefix="$acl_save_prefix"
10917
10918                     if test "X$x" = "X-I$additional_includedir"; then
10919                       haveit=yes
10920                       break
10921                     fi
10922                   done
10923                   if test -z "$haveit"; then
10924                     if test -d "$additional_includedir"; then
10925                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10926                     fi
10927                   fi
10928                 fi
10929               fi
10930             fi
10931                         if test -n "$found_la"; then
10932                                                         save_libdir="$libdir"
10933               case "$found_la" in
10934                 */* | *\\*) . "$found_la" ;;
10935                 *) . "./$found_la" ;;
10936               esac
10937               libdir="$save_libdir"
10938                             for dep in $dependency_libs; do
10939                 case "$dep" in
10940                   -L*)
10941                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10942                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10943                       haveit=
10944                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10945                         if test -n "$GCC"; then
10946                           case $host_os in
10947                             linux*) haveit=yes;;
10948                           esac
10949                         fi
10950                       fi
10951                       if test -z "$haveit"; then
10952                         haveit=
10953                         for x in $LDFLAGS $LIBICONV; do
10954
10955   acl_save_prefix="$prefix"
10956   prefix="$acl_final_prefix"
10957   acl_save_exec_prefix="$exec_prefix"
10958   exec_prefix="$acl_final_exec_prefix"
10959   eval x=\"$x\"
10960   exec_prefix="$acl_save_exec_prefix"
10961   prefix="$acl_save_prefix"
10962
10963                           if test "X$x" = "X-L$additional_libdir"; then
10964                             haveit=yes
10965                             break
10966                           fi
10967                         done
10968                         if test -z "$haveit"; then
10969                           if test -d "$additional_libdir"; then
10970                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10971                           fi
10972                         fi
10973                         haveit=
10974                         for x in $LDFLAGS $LTLIBICONV; do
10975
10976   acl_save_prefix="$prefix"
10977   prefix="$acl_final_prefix"
10978   acl_save_exec_prefix="$exec_prefix"
10979   exec_prefix="$acl_final_exec_prefix"
10980   eval x=\"$x\"
10981   exec_prefix="$acl_save_exec_prefix"
10982   prefix="$acl_save_prefix"
10983
10984                           if test "X$x" = "X-L$additional_libdir"; then
10985                             haveit=yes
10986                             break
10987                           fi
10988                         done
10989                         if test -z "$haveit"; then
10990                           if test -d "$additional_libdir"; then
10991                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10992                           fi
10993                         fi
10994                       fi
10995                     fi
10996                     ;;
10997                   -R*)
10998                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10999                     if test "$enable_rpath" != no; then
11000                                                                   haveit=
11001                       for x in $rpathdirs; do
11002                         if test "X$x" = "X$dir"; then
11003                           haveit=yes
11004                           break
11005                         fi
11006                       done
11007                       if test -z "$haveit"; then
11008                         rpathdirs="$rpathdirs $dir"
11009                       fi
11010                                                                   haveit=
11011                       for x in $ltrpathdirs; do
11012                         if test "X$x" = "X$dir"; then
11013                           haveit=yes
11014                           break
11015                         fi
11016                       done
11017                       if test -z "$haveit"; then
11018                         ltrpathdirs="$ltrpathdirs $dir"
11019                       fi
11020                     fi
11021                     ;;
11022                   -l*)
11023                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11024                     ;;
11025                   *.la)
11026                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11027                     ;;
11028                   *)
11029                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11030                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11031                     ;;
11032                 esac
11033               done
11034             fi
11035           else
11036                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11037             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11038           fi
11039         fi
11040       fi
11041     done
11042   done
11043   if test "X$rpathdirs" != "X"; then
11044     if test -n "$hardcode_libdir_separator"; then
11045                         alldirs=
11046       for found_dir in $rpathdirs; do
11047         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11048       done
11049             acl_save_libdir="$libdir"
11050       libdir="$alldirs"
11051       eval flag=\"$hardcode_libdir_flag_spec\"
11052       libdir="$acl_save_libdir"
11053       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11054     else
11055             for found_dir in $rpathdirs; do
11056         acl_save_libdir="$libdir"
11057         libdir="$found_dir"
11058         eval flag=\"$hardcode_libdir_flag_spec\"
11059         libdir="$acl_save_libdir"
11060         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11061       done
11062     fi
11063   fi
11064   if test "X$ltrpathdirs" != "X"; then
11065             for found_dir in $ltrpathdirs; do
11066       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11067     done
11068   fi
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11084 stdlib.h string.h unistd.h sys/param.h
11085 do
11086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11088   echo "$as_me:$LINENO: checking for $ac_header" >&5
11089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 fi
11093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11095 else
11096   # Is the header compilable?
11097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11099 cat >conftest.$ac_ext <<_ACEOF
11100 #line $LINENO "configure"
11101 #include "confdefs.h"
11102 $ac_includes_default
11103 #include <$ac_header>
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11107   (eval $ac_compile) 2>&5
11108   ac_status=$?
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); } &&
11111          { ac_try='test -s conftest.$ac_objext'
11112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113   (eval $ac_try) 2>&5
11114   ac_status=$?
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); }; }; then
11117   ac_header_compiler=yes
11118 else
11119   echo "$as_me: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 ac_header_compiler=no
11122 fi
11123 rm -f conftest.$ac_objext conftest.$ac_ext
11124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11125 echo "${ECHO_T}$ac_header_compiler" >&6
11126
11127 # Is the header present?
11128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11130 cat >conftest.$ac_ext <<_ACEOF
11131 #line $LINENO "configure"
11132 #include "confdefs.h"
11133 #include <$ac_header>
11134 _ACEOF
11135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11137   ac_status=$?
11138   egrep -v '^ *\+' conftest.er1 >conftest.err
11139   rm -f conftest.er1
11140   cat conftest.err >&5
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); } >/dev/null; then
11143   if test -s conftest.err; then
11144     ac_cpp_err=$ac_c_preproc_warn_flag
11145   else
11146     ac_cpp_err=
11147   fi
11148 else
11149   ac_cpp_err=yes
11150 fi
11151 if test -z "$ac_cpp_err"; then
11152   ac_header_preproc=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155   cat conftest.$ac_ext >&5
11156   ac_header_preproc=no
11157 fi
11158 rm -f conftest.err conftest.$ac_ext
11159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160 echo "${ECHO_T}$ac_header_preproc" >&6
11161
11162 # So?  What about this header?
11163 case $ac_header_compiler:$ac_header_preproc in
11164   yes:no )
11165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11169   no:yes )
11170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11172     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11176 esac
11177 echo "$as_me:$LINENO: checking for $ac_header" >&5
11178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11180   echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182   eval "$as_ac_Header=$ac_header_preproc"
11183 fi
11184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11186
11187 fi
11188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11189   cat >>confdefs.h <<_ACEOF
11190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11191 _ACEOF
11192
11193 fi
11194
11195 done
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
11219 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
11220 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
11221 do
11222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11223 echo "$as_me:$LINENO: checking for $ac_func" >&5
11224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11225 if eval "test \"\${$as_ac_var+set}\" = set"; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   cat >conftest.$ac_ext <<_ACEOF
11229 #line $LINENO "configure"
11230 #include "confdefs.h"
11231 /* System header to define __stub macros and hopefully few prototypes,
11232     which can conflict with char $ac_func (); below.  */
11233 #include <assert.h>
11234 /* Override any gcc2 internal prototype to avoid an error.  */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 /* We use char because int might match the return type of a gcc2
11239    builtin and then its argument prototype would still apply.  */
11240 char $ac_func ();
11241 char (*f) ();
11242
11243 #ifdef F77_DUMMY_MAIN
11244 #  ifdef __cplusplus
11245      extern "C"
11246 #  endif
11247    int F77_DUMMY_MAIN() { return 1; }
11248 #endif
11249 int
11250 main ()
11251 {
11252 /* The GNU C library defines this for functions which it implements
11253     to always fail with ENOSYS.  Some functions are actually named
11254     something starting with __ and the normal name is an alias.  */
11255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11256 choke me
11257 #else
11258 f = $ac_func;
11259 #endif
11260
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267   (eval $ac_link) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); } &&
11271          { ac_try='test -s conftest$ac_exeext'
11272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273   (eval $ac_try) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; }; then
11277   eval "$as_ac_var=yes"
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 eval "$as_ac_var=no"
11282 fi
11283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11284 fi
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11287 if test `eval echo '${'$as_ac_var'}'` = yes; then
11288   cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290 _ACEOF
11291
11292 fi
11293 done
11294
11295
11296
11297
11298
11299
11300
11301           am_save_CPPFLAGS="$CPPFLAGS"
11302
11303   for element in $INCICONV; do
11304     haveit=
11305     for x in $CPPFLAGS; do
11306
11307   acl_save_prefix="$prefix"
11308   prefix="$acl_final_prefix"
11309   acl_save_exec_prefix="$exec_prefix"
11310   exec_prefix="$acl_final_exec_prefix"
11311   eval x=\"$x\"
11312   exec_prefix="$acl_save_exec_prefix"
11313   prefix="$acl_save_prefix"
11314
11315       if test "X$x" = "X$element"; then
11316         haveit=yes
11317         break
11318       fi
11319     done
11320     if test -z "$haveit"; then
11321       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11322     fi
11323   done
11324
11325
11326   echo "$as_me:$LINENO: checking for iconv" >&5
11327 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11328 if test "${am_cv_func_iconv+set}" = set; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331
11332     am_cv_func_iconv="no, consider installing GNU libiconv"
11333     am_cv_lib_iconv=no
11334     cat >conftest.$ac_ext <<_ACEOF
11335 #line $LINENO "configure"
11336 #include "confdefs.h"
11337 #include <stdlib.h>
11338 #include <iconv.h>
11339 #ifdef F77_DUMMY_MAIN
11340 #  ifdef __cplusplus
11341      extern "C"
11342 #  endif
11343    int F77_DUMMY_MAIN() { return 1; }
11344 #endif
11345 int
11346 main ()
11347 {
11348 iconv_t cd = iconv_open("","");
11349        iconv(cd,NULL,NULL,NULL,NULL);
11350        iconv_close(cd);
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11357   (eval $ac_link) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -s conftest$ac_exeext'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; }; then
11367   am_cv_func_iconv=yes
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 fi
11372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11373     if test "$am_cv_func_iconv" != yes; then
11374       am_save_LIBS="$LIBS"
11375       LIBS="$LIBS $LIBICONV"
11376       cat >conftest.$ac_ext <<_ACEOF
11377 #line $LINENO "configure"
11378 #include "confdefs.h"
11379 #include <stdlib.h>
11380 #include <iconv.h>
11381 #ifdef F77_DUMMY_MAIN
11382 #  ifdef __cplusplus
11383      extern "C"
11384 #  endif
11385    int F77_DUMMY_MAIN() { return 1; }
11386 #endif
11387 int
11388 main ()
11389 {
11390 iconv_t cd = iconv_open("","");
11391          iconv(cd,NULL,NULL,NULL,NULL);
11392          iconv_close(cd);
11393   ;
11394   return 0;
11395 }
11396 _ACEOF
11397 rm -f conftest.$ac_objext conftest$ac_exeext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11399   (eval $ac_link) 2>&5
11400   ac_status=$?
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); } &&
11403          { ac_try='test -s conftest$ac_exeext'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; }; then
11409   am_cv_lib_iconv=yes
11410         am_cv_func_iconv=yes
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 fi
11415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11416       LIBS="$am_save_LIBS"
11417     fi
11418
11419 fi
11420 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11421 echo "${ECHO_T}$am_cv_func_iconv" >&6
11422   if test "$am_cv_func_iconv" = yes; then
11423
11424 cat >>confdefs.h <<\_ACEOF
11425 #define HAVE_ICONV 1
11426 _ACEOF
11427
11428   fi
11429   if test "$am_cv_lib_iconv" = yes; then
11430     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11431 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11432     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11433 echo "${ECHO_T}$LIBICONV" >&6
11434   else
11435             CPPFLAGS="$am_save_CPPFLAGS"
11436     LIBICONV=
11437     LTLIBICONV=
11438   fi
11439
11440
11441
11442   if test "$am_cv_func_iconv" = yes; then
11443     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11444 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11445     if test "${am_cv_proto_iconv+set}" = set; then
11446   echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448
11449       cat >conftest.$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11451 #include "confdefs.h"
11452
11453 #include <stdlib.h>
11454 #include <iconv.h>
11455 extern
11456 #ifdef __cplusplus
11457 "C"
11458 #endif
11459 #if defined(__STDC__) || defined(__cplusplus)
11460 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11461 #else
11462 size_t iconv();
11463 #endif
11464
11465 #ifdef F77_DUMMY_MAIN
11466 #  ifdef __cplusplus
11467      extern "C"
11468 #  endif
11469    int F77_DUMMY_MAIN() { return 1; }
11470 #endif
11471 int
11472 main ()
11473 {
11474
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext
11480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11481   (eval $ac_compile) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } &&
11485          { ac_try='test -s conftest.$ac_objext'
11486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487   (eval $ac_try) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }; }; then
11491   am_cv_proto_iconv_arg1=""
11492 else
11493   echo "$as_me: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11495 am_cv_proto_iconv_arg1="const"
11496 fi
11497 rm -f conftest.$ac_objext conftest.$ac_ext
11498       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11499 fi
11500
11501     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11502     echo "$as_me:$LINENO: result: ${ac_t:-
11503          }$am_cv_proto_iconv" >&5
11504 echo "${ECHO_T}${ac_t:-
11505          }$am_cv_proto_iconv" >&6
11506
11507 cat >>confdefs.h <<_ACEOF
11508 #define ICONV_CONST $am_cv_proto_iconv_arg1
11509 _ACEOF
11510
11511   fi
11512
11513
11514   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11515 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11516 if test "${am_cv_langinfo_codeset+set}" = set; then
11517   echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519   cat >conftest.$ac_ext <<_ACEOF
11520 #line $LINENO "configure"
11521 #include "confdefs.h"
11522 #include <langinfo.h>
11523 #ifdef F77_DUMMY_MAIN
11524 #  ifdef __cplusplus
11525      extern "C"
11526 #  endif
11527    int F77_DUMMY_MAIN() { return 1; }
11528 #endif
11529 int
11530 main ()
11531 {
11532 char* cs = nl_langinfo(CODESET);
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539   (eval $ac_link) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -s conftest$ac_exeext'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; }; then
11549   am_cv_langinfo_codeset=yes
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 cat conftest.$ac_ext >&5
11553 am_cv_langinfo_codeset=no
11554 fi
11555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11556
11557 fi
11558 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11559 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11560   if test $am_cv_langinfo_codeset = yes; then
11561
11562 cat >>confdefs.h <<\_ACEOF
11563 #define HAVE_LANGINFO_CODESET 1
11564 _ACEOF
11565
11566   fi
11567
11568   if test $ac_cv_header_locale_h = yes; then
11569
11570   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11571 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11572 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11573   echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575   cat >conftest.$ac_ext <<_ACEOF
11576 #line $LINENO "configure"
11577 #include "confdefs.h"
11578 #include <locale.h>
11579 #ifdef F77_DUMMY_MAIN
11580 #  ifdef __cplusplus
11581      extern "C"
11582 #  endif
11583    int F77_DUMMY_MAIN() { return 1; }
11584 #endif
11585 int
11586 main ()
11587 {
11588 return LC_MESSAGES
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595   (eval $ac_link) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } &&
11599          { ac_try='test -s conftest$ac_exeext'
11600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601   (eval $ac_try) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; }; then
11605   am_cv_val_LC_MESSAGES=yes
11606 else
11607   echo "$as_me: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 am_cv_val_LC_MESSAGES=no
11610 fi
11611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11612 fi
11613 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11614 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11615   if test $am_cv_val_LC_MESSAGES = yes; then
11616
11617 cat >>confdefs.h <<\_ACEOF
11618 #define HAVE_LC_MESSAGES 1
11619 _ACEOF
11620
11621   fi
11622
11623   fi
11624
11625                       for ac_prog in bison
11626 do
11627   # Extract the first word of "$ac_prog", so it can be a program name with args.
11628 set dummy $ac_prog; ac_word=$2
11629 echo "$as_me:$LINENO: checking for $ac_word" >&5
11630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11631 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634   if test -n "$INTLBISON"; then
11635   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11636 else
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11639 do
11640   IFS=$as_save_IFS
11641   test -z "$as_dir" && as_dir=.
11642   for ac_exec_ext in '' $ac_executable_extensions; do
11643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11644     ac_cv_prog_INTLBISON="$ac_prog"
11645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11646     break 2
11647   fi
11648 done
11649 done
11650
11651 fi
11652 fi
11653 INTLBISON=$ac_cv_prog_INTLBISON
11654 if test -n "$INTLBISON"; then
11655   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11656 echo "${ECHO_T}$INTLBISON" >&6
11657 else
11658   echo "$as_me:$LINENO: result: no" >&5
11659 echo "${ECHO_T}no" >&6
11660 fi
11661
11662   test -n "$INTLBISON" && break
11663 done
11664
11665   if test -z "$INTLBISON"; then
11666     ac_verc_fail=yes
11667   else
11668         echo "$as_me:$LINENO: checking version of bison" >&5
11669 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11670     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11671     case $ac_prog_version in
11672       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11673       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11674          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11675       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11676     esac
11677     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11678 echo "${ECHO_T}$ac_prog_version" >&6
11679   fi
11680   if test $ac_verc_fail = yes; then
11681     INTLBISON=:
11682   fi
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11699 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11700     # Check whether --enable-nls or --disable-nls was given.
11701 if test "${enable_nls+set}" = set; then
11702   enableval="$enable_nls"
11703   USE_NLS=$enableval
11704 else
11705   USE_NLS=yes
11706 fi;
11707   echo "$as_me:$LINENO: result: $USE_NLS" >&5
11708 echo "${ECHO_T}$USE_NLS" >&6
11709
11710
11711
11712     BUILD_INCLUDED_LIBINTL=no
11713     USE_INCLUDED_LIBINTL=no
11714
11715   LIBINTL=
11716   LTLIBINTL=
11717   POSUB=
11718
11719     if test "$USE_NLS" = "yes"; then
11720     gt_use_preinstalled_gnugettext=no
11721
11722       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11723 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11724
11725 # Check whether --with-included-gettext or --without-included-gettext was given.
11726 if test "${with_included_gettext+set}" = set; then
11727   withval="$with_included_gettext"
11728   nls_cv_force_use_gnu_gettext=$withval
11729 else
11730   nls_cv_force_use_gnu_gettext=no
11731 fi;
11732       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11733 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11734
11735       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11736       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11737
11738
11739
11740
11741
11742
11743         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11744 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11745 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 #include <libintl.h>
11752 extern int _nl_msg_cat_cntr;
11753 extern int *_nl_domain_bindings;
11754 #ifdef F77_DUMMY_MAIN
11755 #  ifdef __cplusplus
11756      extern "C"
11757 #  endif
11758    int F77_DUMMY_MAIN() { return 1; }
11759 #endif
11760 int
11761 main ()
11762 {
11763 bindtextdomain ("", "");
11764 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771   (eval $ac_link) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } &&
11775          { ac_try='test -s conftest$ac_exeext'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; }; then
11781   gt_cv_func_gnugettext1_libc=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11785 gt_cv_func_gnugettext1_libc=no
11786 fi
11787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11788 fi
11789 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11790 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11791
11792         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11793
11794
11795
11796     use_additional=yes
11797
11798   acl_save_prefix="$prefix"
11799   prefix="$acl_final_prefix"
11800   acl_save_exec_prefix="$exec_prefix"
11801   exec_prefix="$acl_final_exec_prefix"
11802
11803     eval additional_includedir=\"$includedir\"
11804     eval additional_libdir=\"$libdir\"
11805
11806   exec_prefix="$acl_save_exec_prefix"
11807   prefix="$acl_save_prefix"
11808
11809
11810 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
11811 if test "${with_libintl_prefix+set}" = set; then
11812   withval="$with_libintl_prefix"
11813
11814     if test "X$withval" = "Xno"; then
11815       use_additional=no
11816     else
11817       if test "X$withval" = "X"; then
11818
11819   acl_save_prefix="$prefix"
11820   prefix="$acl_final_prefix"
11821   acl_save_exec_prefix="$exec_prefix"
11822   exec_prefix="$acl_final_exec_prefix"
11823
11824           eval additional_includedir=\"$includedir\"
11825           eval additional_libdir=\"$libdir\"
11826
11827   exec_prefix="$acl_save_exec_prefix"
11828   prefix="$acl_save_prefix"
11829
11830       else
11831         additional_includedir="$withval/include"
11832         additional_libdir="$withval/lib"
11833       fi
11834     fi
11835
11836 fi;
11837       LIBINTL=
11838   LTLIBINTL=
11839   INCINTL=
11840   rpathdirs=
11841   ltrpathdirs=
11842   names_already_handled=
11843   names_next_round='intl '
11844   while test -n "$names_next_round"; do
11845     names_this_round="$names_next_round"
11846     names_next_round=
11847     for name in $names_this_round; do
11848       already_handled=
11849       for n in $names_already_handled; do
11850         if test "$n" = "$name"; then
11851           already_handled=yes
11852           break
11853         fi
11854       done
11855       if test -z "$already_handled"; then
11856         names_already_handled="$names_already_handled $name"
11857                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11858         eval value=\"\$HAVE_LIB$uppername\"
11859         if test -n "$value"; then
11860           if test "$value" = yes; then
11861             eval value=\"\$LIB$uppername\"
11862             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11863             eval value=\"\$LTLIB$uppername\"
11864             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11865           else
11866                                     :
11867           fi
11868         else
11869                               found_dir=
11870           found_la=
11871           found_so=
11872           found_a=
11873           if test $use_additional = yes; then
11874             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11875               found_dir="$additional_libdir"
11876               found_so="$additional_libdir/lib$name.$shlibext"
11877               if test -f "$additional_libdir/lib$name.la"; then
11878                 found_la="$additional_libdir/lib$name.la"
11879               fi
11880             else
11881               if test -f "$additional_libdir/lib$name.$libext"; then
11882                 found_dir="$additional_libdir"
11883                 found_a="$additional_libdir/lib$name.$libext"
11884                 if test -f "$additional_libdir/lib$name.la"; then
11885                   found_la="$additional_libdir/lib$name.la"
11886                 fi
11887               fi
11888             fi
11889           fi
11890           if test "X$found_dir" = "X"; then
11891             for x in $LDFLAGS $LTLIBINTL; do
11892
11893   acl_save_prefix="$prefix"
11894   prefix="$acl_final_prefix"
11895   acl_save_exec_prefix="$exec_prefix"
11896   exec_prefix="$acl_final_exec_prefix"
11897   eval x=\"$x\"
11898   exec_prefix="$acl_save_exec_prefix"
11899   prefix="$acl_save_prefix"
11900
11901               case "$x" in
11902                 -L*)
11903                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11904                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11905                     found_dir="$dir"
11906                     found_so="$dir/lib$name.$shlibext"
11907                     if test -f "$dir/lib$name.la"; then
11908                       found_la="$dir/lib$name.la"
11909                     fi
11910                   else
11911                     if test -f "$dir/lib$name.$libext"; then
11912                       found_dir="$dir"
11913                       found_a="$dir/lib$name.$libext"
11914                       if test -f "$dir/lib$name.la"; then
11915                         found_la="$dir/lib$name.la"
11916                       fi
11917                     fi
11918                   fi
11919                   ;;
11920               esac
11921               if test "X$found_dir" != "X"; then
11922                 break
11923               fi
11924             done
11925           fi
11926           if test "X$found_dir" != "X"; then
11927                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11928             if test "X$found_so" != "X"; then
11929                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11930                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11931               else
11932                                                                                 haveit=
11933                 for x in $ltrpathdirs; do
11934                   if test "X$x" = "X$found_dir"; then
11935                     haveit=yes
11936                     break
11937                   fi
11938                 done
11939                 if test -z "$haveit"; then
11940                   ltrpathdirs="$ltrpathdirs $found_dir"
11941                 fi
11942                                 if test "$hardcode_direct" = yes; then
11943                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11944                 else
11945                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11946                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11947                                                             haveit=
11948                     for x in $rpathdirs; do
11949                       if test "X$x" = "X$found_dir"; then
11950                         haveit=yes
11951                         break
11952                       fi
11953                     done
11954                     if test -z "$haveit"; then
11955                       rpathdirs="$rpathdirs $found_dir"
11956                     fi
11957                   else
11958                                                                                 haveit=
11959                     for x in $LDFLAGS $LIBINTL; do
11960
11961   acl_save_prefix="$prefix"
11962   prefix="$acl_final_prefix"
11963   acl_save_exec_prefix="$exec_prefix"
11964   exec_prefix="$acl_final_exec_prefix"
11965   eval x=\"$x\"
11966   exec_prefix="$acl_save_exec_prefix"
11967   prefix="$acl_save_prefix"
11968
11969                       if test "X$x" = "X-L$found_dir"; then
11970                         haveit=yes
11971                         break
11972                       fi
11973                     done
11974                     if test -z "$haveit"; then
11975                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11976                     fi
11977                     if test "$hardcode_minus_L" != no; then
11978                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11979                     else
11980                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11981                     fi
11982                   fi
11983                 fi
11984               fi
11985             else
11986               if test "X$found_a" != "X"; then
11987                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11988               else
11989                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11990               fi
11991             fi
11992                         additional_includedir=
11993             case "$found_dir" in
11994               */lib | */lib/)
11995                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11996                 additional_includedir="$basedir/include"
11997                 ;;
11998             esac
11999             if test "X$additional_includedir" != "X"; then
12000                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12001                 haveit=
12002                 if test "X$additional_includedir" = "X/usr/local/include"; then
12003                   if test -n "$GCC"; then
12004                     case $host_os in
12005                       linux*) haveit=yes;;
12006                     esac
12007                   fi
12008                 fi
12009                 if test -z "$haveit"; then
12010                   for x in $CPPFLAGS $INCINTL; do
12011
12012   acl_save_prefix="$prefix"
12013   prefix="$acl_final_prefix"
12014   acl_save_exec_prefix="$exec_prefix"
12015   exec_prefix="$acl_final_exec_prefix"
12016   eval x=\"$x\"
12017   exec_prefix="$acl_save_exec_prefix"
12018   prefix="$acl_save_prefix"
12019
12020                     if test "X$x" = "X-I$additional_includedir"; then
12021                       haveit=yes
12022                       break
12023                     fi
12024                   done
12025                   if test -z "$haveit"; then
12026                     if test -d "$additional_includedir"; then
12027                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12028                     fi
12029                   fi
12030                 fi
12031               fi
12032             fi
12033                         if test -n "$found_la"; then
12034                                                         save_libdir="$libdir"
12035               case "$found_la" in
12036                 */* | *\\*) . "$found_la" ;;
12037                 *) . "./$found_la" ;;
12038               esac
12039               libdir="$save_libdir"
12040                             for dep in $dependency_libs; do
12041                 case "$dep" in
12042                   -L*)
12043                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12044                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12045                       haveit=
12046                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12047                         if test -n "$GCC"; then
12048                           case $host_os in
12049                             linux*) haveit=yes;;
12050                           esac
12051                         fi
12052                       fi
12053                       if test -z "$haveit"; then
12054                         haveit=
12055                         for x in $LDFLAGS $LIBINTL; do
12056
12057   acl_save_prefix="$prefix"
12058   prefix="$acl_final_prefix"
12059   acl_save_exec_prefix="$exec_prefix"
12060   exec_prefix="$acl_final_exec_prefix"
12061   eval x=\"$x\"
12062   exec_prefix="$acl_save_exec_prefix"
12063   prefix="$acl_save_prefix"
12064
12065                           if test "X$x" = "X-L$additional_libdir"; then
12066                             haveit=yes
12067                             break
12068                           fi
12069                         done
12070                         if test -z "$haveit"; then
12071                           if test -d "$additional_libdir"; then
12072                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12073                           fi
12074                         fi
12075                         haveit=
12076                         for x in $LDFLAGS $LTLIBINTL; do
12077
12078   acl_save_prefix="$prefix"
12079   prefix="$acl_final_prefix"
12080   acl_save_exec_prefix="$exec_prefix"
12081   exec_prefix="$acl_final_exec_prefix"
12082   eval x=\"$x\"
12083   exec_prefix="$acl_save_exec_prefix"
12084   prefix="$acl_save_prefix"
12085
12086                           if test "X$x" = "X-L$additional_libdir"; then
12087                             haveit=yes
12088                             break
12089                           fi
12090                         done
12091                         if test -z "$haveit"; then
12092                           if test -d "$additional_libdir"; then
12093                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12094                           fi
12095                         fi
12096                       fi
12097                     fi
12098                     ;;
12099                   -R*)
12100                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12101                     if test "$enable_rpath" != no; then
12102                                                                   haveit=
12103                       for x in $rpathdirs; do
12104                         if test "X$x" = "X$dir"; then
12105                           haveit=yes
12106                           break
12107                         fi
12108                       done
12109                       if test -z "$haveit"; then
12110                         rpathdirs="$rpathdirs $dir"
12111                       fi
12112                                                                   haveit=
12113                       for x in $ltrpathdirs; do
12114                         if test "X$x" = "X$dir"; then
12115                           haveit=yes
12116                           break
12117                         fi
12118                       done
12119                       if test -z "$haveit"; then
12120                         ltrpathdirs="$ltrpathdirs $dir"
12121                       fi
12122                     fi
12123                     ;;
12124                   -l*)
12125                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12126                     ;;
12127                   *.la)
12128                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12129                     ;;
12130                   *)
12131                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12132                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12133                     ;;
12134                 esac
12135               done
12136             fi
12137           else
12138                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12139             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12140           fi
12141         fi
12142       fi
12143     done
12144   done
12145   if test "X$rpathdirs" != "X"; then
12146     if test -n "$hardcode_libdir_separator"; then
12147                         alldirs=
12148       for found_dir in $rpathdirs; do
12149         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12150       done
12151             acl_save_libdir="$libdir"
12152       libdir="$alldirs"
12153       eval flag=\"$hardcode_libdir_flag_spec\"
12154       libdir="$acl_save_libdir"
12155       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12156     else
12157             for found_dir in $rpathdirs; do
12158         acl_save_libdir="$libdir"
12159         libdir="$found_dir"
12160         eval flag=\"$hardcode_libdir_flag_spec\"
12161         libdir="$acl_save_libdir"
12162         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12163       done
12164     fi
12165   fi
12166   if test "X$ltrpathdirs" != "X"; then
12167             for found_dir in $ltrpathdirs; do
12168       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12169     done
12170   fi
12171
12172           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12173 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12174 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   gt_save_CPPFLAGS="$CPPFLAGS"
12178             CPPFLAGS="$CPPFLAGS $INCINTL"
12179             gt_save_LIBS="$LIBS"
12180             LIBS="$LIBS $LIBINTL"
12181                         cat >conftest.$ac_ext <<_ACEOF
12182 #line $LINENO "configure"
12183 #include "confdefs.h"
12184 #include <libintl.h>
12185 extern int _nl_msg_cat_cntr;
12186 extern
12187 #ifdef __cplusplus
12188 "C"
12189 #endif
12190 const char *_nl_expand_alias ();
12191 #ifdef F77_DUMMY_MAIN
12192 #  ifdef __cplusplus
12193      extern "C"
12194 #  endif
12195    int F77_DUMMY_MAIN() { return 1; }
12196 #endif
12197 int
12198 main ()
12199 {
12200 bindtextdomain ("", "");
12201 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208   (eval $ac_link) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); } &&
12212          { ac_try='test -s conftest$ac_exeext'
12213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214   (eval $ac_try) 2>&5
12215   ac_status=$?
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); }; }; then
12218   gt_cv_func_gnugettext1_libintl=yes
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222 gt_cv_func_gnugettext1_libintl=no
12223 fi
12224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12225                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12226               LIBS="$LIBS $LIBICONV"
12227               cat >conftest.$ac_ext <<_ACEOF
12228 #line $LINENO "configure"
12229 #include "confdefs.h"
12230 #include <libintl.h>
12231 extern int _nl_msg_cat_cntr;
12232 extern
12233 #ifdef __cplusplus
12234 "C"
12235 #endif
12236 const char *_nl_expand_alias ();
12237 #ifdef F77_DUMMY_MAIN
12238 #  ifdef __cplusplus
12239      extern "C"
12240 #  endif
12241    int F77_DUMMY_MAIN() { return 1; }
12242 #endif
12243 int
12244 main ()
12245 {
12246 bindtextdomain ("", "");
12247 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
12248   ;
12249   return 0;
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254   (eval $ac_link) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); } &&
12258          { ac_try='test -s conftest$ac_exeext'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   LIBINTL="$LIBINTL $LIBICONV"
12265                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12266                 gt_cv_func_gnugettext1_libintl=yes
12267
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 cat conftest.$ac_ext >&5
12271 fi
12272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12273             fi
12274             CPPFLAGS="$gt_save_CPPFLAGS"
12275             LIBS="$gt_save_LIBS"
12276 fi
12277 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12278 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12279         fi
12280
12281                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12282            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12283                 && test "$PACKAGE" != gettext; }; then
12284           gt_use_preinstalled_gnugettext=yes
12285         else
12286                     LIBINTL=
12287           LTLIBINTL=
12288           INCINTL=
12289         fi
12290
12291
12292         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12293                               nls_cv_use_gnu_gettext=yes
12294         fi
12295       fi
12296
12297       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12298                 INTLOBJS="\$(GETTOBJS)"
12299         BUILD_INCLUDED_LIBINTL=yes
12300         USE_INCLUDED_LIBINTL=yes
12301         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12302         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12303         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12304       fi
12305
12306       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12307          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12308                 CATOBJEXT=.gmo
12309       fi
12310
12311
12312     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12313        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12314
12315 cat >>confdefs.h <<\_ACEOF
12316 #define ENABLE_NLS 1
12317 _ACEOF
12318
12319     else
12320       USE_NLS=no
12321     fi
12322   fi
12323
12324   if test "$USE_NLS" = "yes"; then
12325
12326     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12327       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12328         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12329 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12330         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12331 echo "${ECHO_T}$LIBINTL" >&6
12332
12333   for element in $INCINTL; do
12334     haveit=
12335     for x in $CPPFLAGS; do
12336
12337   acl_save_prefix="$prefix"
12338   prefix="$acl_final_prefix"
12339   acl_save_exec_prefix="$exec_prefix"
12340   exec_prefix="$acl_final_exec_prefix"
12341   eval x=\"$x\"
12342   exec_prefix="$acl_save_exec_prefix"
12343   prefix="$acl_save_prefix"
12344
12345       if test "X$x" = "X$element"; then
12346         haveit=yes
12347         break
12348       fi
12349     done
12350     if test -z "$haveit"; then
12351       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12352     fi
12353   done
12354
12355       fi
12356
12357
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_GETTEXT 1
12360 _ACEOF
12361
12362
12363 cat >>confdefs.h <<\_ACEOF
12364 #define HAVE_DCGETTEXT 1
12365 _ACEOF
12366
12367     fi
12368
12369         POSUB=po
12370   fi
12371
12372
12373             if test "$PACKAGE" = gettext; then
12374       BUILD_INCLUDED_LIBINTL=yes
12375     fi
12376
12377
12378
12379
12380
12381
12382         nls_cv_header_intl=
12383     nls_cv_header_libgt=
12384
12385         DATADIRNAME=share
12386
12387
12388         INSTOBJEXT=.mo
12389
12390
12391         GENCAT=gencat
12392
12393
12394         INTL_LIBTOOL_SUFFIX_PREFIX=
12395
12396
12397
12398     INTLLIBS="$LIBINTL"
12399
12400
12401
12402
12403
12404
12405
12406 POPT_SOURCE_PATH="`pwd`"
12407
12408 cat >>confdefs.h <<_ACEOF
12409 #define POPT_SOURCE_PATH "$POPT_SOURCE_PATH"
12410 _ACEOF
12411
12412
12413
12414 ac_config_files="$ac_config_files Doxyfile Makefile intl/Makefile po/Makefile.in"
12415 cat >confcache <<\_ACEOF
12416 # This file is a shell script that caches the results of configure
12417 # tests run on this system so they can be shared between configure
12418 # scripts and configure runs, see configure's option --config-cache.
12419 # It is not useful on other systems.  If it contains results you don't
12420 # want to keep, you may remove or edit it.
12421 #
12422 # config.status only pays attention to the cache file if you give it
12423 # the --recheck option to rerun configure.
12424 #
12425 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12427 # following values.
12428
12429 _ACEOF
12430
12431 # The following way of writing the cache mishandles newlines in values,
12432 # but we know of no workaround that is simple, portable, and efficient.
12433 # So, don't put newlines in cache variables' values.
12434 # Ultrix sh set writes to stderr and can't be redirected directly,
12435 # and sets the high bit in the cache file unless we assign to the vars.
12436 {
12437   (set) 2>&1 |
12438     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12439     *ac_space=\ *)
12440       # `set' does not quote correctly, so add quotes (double-quote
12441       # substitution turns \\\\ into \\, and sed turns \\ into \).
12442       sed -n \
12443         "s/'/'\\\\''/g;
12444           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12445       ;;
12446     *)
12447       # `set' quotes correctly as required by POSIX, so do not add quotes.
12448       sed -n \
12449         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12450       ;;
12451     esac;
12452 } |
12453   sed '
12454      t clear
12455      : clear
12456      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12457      t end
12458      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12459      : end' >>confcache
12460 if cmp -s $cache_file confcache; then :; else
12461   if test -w $cache_file; then
12462     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12463     cat confcache >$cache_file
12464   else
12465     echo "not updating unwritable cache $cache_file"
12466   fi
12467 fi
12468 rm -f confcache
12469
12470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12471 # Let make expand exec_prefix.
12472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12473
12474 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12475 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12476 # trailing colons and then remove the whole line if VPATH becomes empty
12477 # (actually we leave an empty line to preserve line numbers).
12478 if test "x$srcdir" = x.; then
12479   ac_vpsub='/^[         ]*VPATH[        ]*=/{
12480 s/:*\$(srcdir):*/:/;
12481 s/:*\${srcdir}:*/:/;
12482 s/:*@srcdir@:*/:/;
12483 s/^\([^=]*=[    ]*\):*/\1/;
12484 s/:*$//;
12485 s/^[^=]*=[      ]*$//;
12486 }'
12487 fi
12488
12489 DEFS=-DHAVE_CONFIG_H
12490
12491 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12492   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12493 Usually this means the macro was only invoked conditionally." >&5
12494 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12495 Usually this means the macro was only invoked conditionally." >&2;}
12496    { (exit 1); exit 1; }; }
12497 fi
12498
12499 : ${CONFIG_STATUS=./config.status}
12500 ac_clean_files_save=$ac_clean_files
12501 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12502 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12503 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12504 cat >$CONFIG_STATUS <<_ACEOF
12505 #! $SHELL
12506 # Generated by $as_me.
12507 # Run this file to recreate the current configuration.
12508 # Compiler output produced by configure, useful for debugging
12509 # configure, is in config.log if it exists.
12510
12511 debug=false
12512 SHELL=\${CONFIG_SHELL-$SHELL}
12513 _ACEOF
12514
12515 cat >>$CONFIG_STATUS <<\_ACEOF
12516
12517 ## --------------------- ##
12518 ## M4sh Initialization.  ##
12519 ## --------------------- ##
12520
12521 # Be Bourne compatible
12522 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12523   emulate sh
12524   NULLCMD=:
12525 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12526   set -o posix
12527 fi
12528
12529 # NLS nuisances.
12530 # Support unset when possible.
12531 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12532   as_unset=unset
12533 else
12534   as_unset=false
12535 fi
12536
12537 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
12538     { $as_unset LANG || test "${LANG+set}" != set; } ||
12539       { LANG=C; export LANG; }
12540 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
12541     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
12542       { LC_ALL=C; export LC_ALL; }
12543 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
12544     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
12545       { LC_TIME=C; export LC_TIME; }
12546 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
12547     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
12548       { LC_CTYPE=C; export LC_CTYPE; }
12549 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
12550     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
12551       { LANGUAGE=C; export LANGUAGE; }
12552 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
12553     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
12554       { LC_COLLATE=C; export LC_COLLATE; }
12555 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
12556     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
12557       { LC_NUMERIC=C; export LC_NUMERIC; }
12558 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
12559     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
12560       { LC_MESSAGES=C; export LC_MESSAGES; }
12561
12562
12563 # Name of the executable.
12564 as_me=`(basename "$0") 2>/dev/null ||
12565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12566          X"$0" : 'X\(//\)$' \| \
12567          X"$0" : 'X\(/\)$' \| \
12568          .     : '\(.\)' 2>/dev/null ||
12569 echo X/"$0" |
12570     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12571           /^X\/\(\/\/\)$/{ s//\1/; q; }
12572           /^X\/\(\/\).*/{ s//\1/; q; }
12573           s/.*/./; q'`
12574
12575 # PATH needs CR, and LINENO needs CR and PATH.
12576 # Avoid depending upon Character Ranges.
12577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12580 as_cr_digits='0123456789'
12581 as_cr_alnum=$as_cr_Letters$as_cr_digits
12582
12583 # The user is always right.
12584 if test "${PATH_SEPARATOR+set}" != set; then
12585   echo "#! /bin/sh" >conftest.sh
12586   echo  "exit 0"   >>conftest.sh
12587   chmod +x conftest.sh
12588   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
12589     PATH_SEPARATOR=';'
12590   else
12591     PATH_SEPARATOR=:
12592   fi
12593   rm -f conftest.sh
12594 fi
12595
12596
12597   as_lineno_1=$LINENO
12598   as_lineno_2=$LINENO
12599   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12600   test "x$as_lineno_1" != "x$as_lineno_2" &&
12601   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12602   # Find who we are.  Look in the path if we contain no path at all
12603   # relative or not.
12604   case $0 in
12605     *[\\/]* ) as_myself=$0 ;;
12606     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12608 do
12609   IFS=$as_save_IFS
12610   test -z "$as_dir" && as_dir=.
12611   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12612 done
12613
12614        ;;
12615   esac
12616   # We did not find ourselves, most probably we were run as `sh COMMAND'
12617   # in which case we are not to be found in the path.
12618   if test "x$as_myself" = x; then
12619     as_myself=$0
12620   fi
12621   if test ! -f "$as_myself"; then
12622     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12623 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12624    { (exit 1); exit 1; }; }
12625   fi
12626   case $CONFIG_SHELL in
12627   '')
12628     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12630 do
12631   IFS=$as_save_IFS
12632   test -z "$as_dir" && as_dir=.
12633   for as_base in sh bash ksh sh5; do
12634          case $as_dir in
12635          /*)
12636            if ("$as_dir/$as_base" -c '
12637   as_lineno_1=$LINENO
12638   as_lineno_2=$LINENO
12639   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12640   test "x$as_lineno_1" != "x$as_lineno_2" &&
12641   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12642              CONFIG_SHELL=$as_dir/$as_base
12643              export CONFIG_SHELL
12644              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12645            fi;;
12646          esac
12647        done
12648 done
12649 ;;
12650   esac
12651
12652   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12653   # uniformly replaced by the line number.  The first 'sed' inserts a
12654   # line-number line before each line; the second 'sed' does the real
12655   # work.  The second script uses 'N' to pair each line-number line
12656   # with the numbered line, and appends trailing '-' during
12657   # substitution so that $LINENO is not a special case at line end.
12658   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12659   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12660   sed '=' <$as_myself |
12661     sed '
12662       N
12663       s,$,-,
12664       : loop
12665       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12666       t loop
12667       s,-$,,
12668       s,^['$as_cr_digits']*\n,,
12669     ' >$as_me.lineno &&
12670   chmod +x $as_me.lineno ||
12671     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12672 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12673    { (exit 1); exit 1; }; }
12674
12675   # Don't try to exec as it changes $[0], causing all sort of problems
12676   # (the dirname of $[0] is not the place where we might find the
12677   # original and so on.  Autoconf is especially sensible to this).
12678   . ./$as_me.lineno
12679   # Exit status is that of the last command.
12680   exit
12681 }
12682
12683
12684 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12685   *c*,-n*) ECHO_N= ECHO_C='
12686 ' ECHO_T='      ' ;;
12687   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12688   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12689 esac
12690
12691 if expr a : '\(a\)' >/dev/null 2>&1; then
12692   as_expr=expr
12693 else
12694   as_expr=false
12695 fi
12696
12697 rm -f conf$$ conf$$.exe conf$$.file
12698 echo >conf$$.file
12699 if ln -s conf$$.file conf$$ 2>/dev/null; then
12700   # We could just check for DJGPP; but this test a) works b) is more generic
12701   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12702   if test -f conf$$.exe; then
12703     # Don't use ln at all; we don't have any links
12704     as_ln_s='cp -p'
12705   else
12706     as_ln_s='ln -s'
12707   fi
12708 elif ln conf$$.file conf$$ 2>/dev/null; then
12709   as_ln_s=ln
12710 else
12711   as_ln_s='cp -p'
12712 fi
12713 rm -f conf$$ conf$$.exe conf$$.file
12714
12715 as_executable_p="test -f"
12716
12717 # Sed expression to map a string onto a valid CPP name.
12718 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12719
12720 # Sed expression to map a string onto a valid variable name.
12721 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12722
12723
12724 # IFS
12725 # We need space, tab and new line, in precisely that order.
12726 as_nl='
12727 '
12728 IFS="   $as_nl"
12729
12730 # CDPATH.
12731 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
12732
12733 exec 6>&1
12734
12735 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12736 # report actual input values of CONFIG_FILES etc. instead of their
12737 # values after options handling.  Logging --version etc. is OK.
12738 exec 5>>config.log
12739 {
12740   echo
12741   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12742 ## Running $as_me. ##
12743 _ASBOX
12744 } >&5
12745 cat >&5 <<_CSEOF
12746
12747 This file was extended by $as_me, which was
12748 generated by GNU Autoconf 2.53.  Invocation command line was
12749
12750   CONFIG_FILES    = $CONFIG_FILES
12751   CONFIG_HEADERS  = $CONFIG_HEADERS
12752   CONFIG_LINKS    = $CONFIG_LINKS
12753   CONFIG_COMMANDS = $CONFIG_COMMANDS
12754   $ $0 $@
12755
12756 _CSEOF
12757 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12758 echo >&5
12759 _ACEOF
12760
12761 # Files that config.status was made for.
12762 if test -n "$ac_config_files"; then
12763   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12764 fi
12765
12766 if test -n "$ac_config_headers"; then
12767   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12768 fi
12769
12770 if test -n "$ac_config_links"; then
12771   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12772 fi
12773
12774 if test -n "$ac_config_commands"; then
12775   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12776 fi
12777
12778 cat >>$CONFIG_STATUS <<\_ACEOF
12779
12780 ac_cs_usage="\
12781 \`$as_me' instantiates files from templates according to the
12782 current configuration.
12783
12784 Usage: $0 [OPTIONS] [FILE]...
12785
12786   -h, --help       print this help, then exit
12787   -V, --version    print version number, then exit
12788   -d, --debug      don't remove temporary files
12789       --recheck    update $as_me by reconfiguring in the same conditions
12790   --file=FILE[:TEMPLATE]
12791                    instantiate the configuration file FILE
12792   --header=FILE[:TEMPLATE]
12793                    instantiate the configuration header FILE
12794
12795 Configuration files:
12796 $config_files
12797
12798 Configuration headers:
12799 $config_headers
12800
12801 Configuration commands:
12802 $config_commands
12803
12804 Report bugs to <bug-autoconf@gnu.org>."
12805 _ACEOF
12806
12807 cat >>$CONFIG_STATUS <<_ACEOF
12808 ac_cs_version="\\
12809 config.status
12810 configured by $0, generated by GNU Autoconf 2.53,
12811   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12812
12813 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12814 Free Software Foundation, Inc.
12815 This config.status script is free software; the Free Software Foundation
12816 gives unlimited permission to copy, distribute and modify it."
12817 srcdir=$srcdir
12818 INSTALL="$INSTALL"
12819 _ACEOF
12820
12821 cat >>$CONFIG_STATUS <<\_ACEOF
12822 # If no file are specified by the user, then we need to provide default
12823 # value.  By we need to know if files were specified by the user.
12824 ac_need_defaults=:
12825 while test $# != 0
12826 do
12827   case $1 in
12828   --*=*)
12829     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12830     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12831     shift
12832     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12833     shift
12834     ;;
12835   -*);;
12836   *) # This is not an option, so the user has probably given explicit
12837      # arguments.
12838      ac_need_defaults=false;;
12839   esac
12840
12841   case $1 in
12842   # Handling of the options.
12843 _ACEOF
12844 cat >>$CONFIG_STATUS <<_ACEOF
12845   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12846     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12847     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12848 _ACEOF
12849 cat >>$CONFIG_STATUS <<\_ACEOF
12850   --version | --vers* | -V )
12851     echo "$ac_cs_version"; exit 0 ;;
12852   --he | --h)
12853     # Conflict between --help and --header
12854     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12855 Try \`$0 --help' for more information." >&5
12856 echo "$as_me: error: ambiguous option: $1
12857 Try \`$0 --help' for more information." >&2;}
12858    { (exit 1); exit 1; }; };;
12859   --help | --hel | -h )
12860     echo "$ac_cs_usage"; exit 0 ;;
12861   --debug | --d* | -d )
12862     debug=: ;;
12863   --file | --fil | --fi | --f )
12864     shift
12865     CONFIG_FILES="$CONFIG_FILES $1"
12866     ac_need_defaults=false;;
12867   --header | --heade | --head | --hea )
12868     shift
12869     CONFIG_HEADERS="$CONFIG_HEADERS $1"
12870     ac_need_defaults=false;;
12871
12872   # This is an error.
12873   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12874 Try \`$0 --help' for more information." >&5
12875 echo "$as_me: error: unrecognized option: $1
12876 Try \`$0 --help' for more information." >&2;}
12877    { (exit 1); exit 1; }; } ;;
12878
12879   *) ac_config_targets="$ac_config_targets $1" ;;
12880
12881   esac
12882   shift
12883 done
12884
12885 _ACEOF
12886
12887 cat >>$CONFIG_STATUS <<_ACEOF
12888 #
12889 # INIT-COMMANDS section.
12890 #
12891
12892 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12893 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
12894     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12895     # from automake.
12896     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
12897     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12898     LINGUAS="${LINGUAS-%UNSET%}"
12899
12900
12901 _ACEOF
12902
12903
12904
12905 cat >>$CONFIG_STATUS <<\_ACEOF
12906 for ac_config_target in $ac_config_targets
12907 do
12908   case "$ac_config_target" in
12909   # Handling of arguments.
12910   "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
12911   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12912   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12913   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12914   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12915   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12916   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12917   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12918 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12919    { (exit 1); exit 1; }; };;
12920   esac
12921 done
12922
12923 # If the user did not use the arguments to specify the items to instantiate,
12924 # then the envvar interface is used.  Set only those that are not.
12925 # We use the long form for the default assignment because of an extremely
12926 # bizarre bug on SunOS 4.1.3.
12927 if $ac_need_defaults; then
12928   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12929   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12930   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12931 fi
12932
12933 # Create a temporary directory, and hook for its removal unless debugging.
12934 $debug ||
12935 {
12936   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12937   trap '{ (exit 1); exit 1; }' 1 2 13 15
12938 }
12939
12940 # Create a (secure) tmp directory for tmp files.
12941 : ${TMPDIR=/tmp}
12942 {
12943   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12944   test -n "$tmp" && test -d "$tmp"
12945 }  ||
12946 {
12947   tmp=$TMPDIR/cs$$-$RANDOM
12948   (umask 077 && mkdir $tmp)
12949 } ||
12950 {
12951    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12952    { (exit 1); exit 1; }
12953 }
12954
12955 _ACEOF
12956
12957 cat >>$CONFIG_STATUS <<_ACEOF
12958
12959 #
12960 # CONFIG_FILES section.
12961 #
12962
12963 # No need to generate the scripts if there are no CONFIG_FILES.
12964 # This happens for instance when ./config.status config.h
12965 if test -n "\$CONFIG_FILES"; then
12966   # Protect against being on the right side of a sed subst in config.status.
12967   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12968    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12969 s,@SHELL@,$SHELL,;t t
12970 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12971 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12972 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12973 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12974 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12975 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12976 s,@exec_prefix@,$exec_prefix,;t t
12977 s,@prefix@,$prefix,;t t
12978 s,@program_transform_name@,$program_transform_name,;t t
12979 s,@bindir@,$bindir,;t t
12980 s,@sbindir@,$sbindir,;t t
12981 s,@libexecdir@,$libexecdir,;t t
12982 s,@datadir@,$datadir,;t t
12983 s,@sysconfdir@,$sysconfdir,;t t
12984 s,@sharedstatedir@,$sharedstatedir,;t t
12985 s,@localstatedir@,$localstatedir,;t t
12986 s,@libdir@,$libdir,;t t
12987 s,@includedir@,$includedir,;t t
12988 s,@oldincludedir@,$oldincludedir,;t t
12989 s,@infodir@,$infodir,;t t
12990 s,@mandir@,$mandir,;t t
12991 s,@build_alias@,$build_alias,;t t
12992 s,@host_alias@,$host_alias,;t t
12993 s,@target_alias@,$target_alias,;t t
12994 s,@DEFS@,$DEFS,;t t
12995 s,@ECHO_C@,$ECHO_C,;t t
12996 s,@ECHO_N@,$ECHO_N,;t t
12997 s,@ECHO_T@,$ECHO_T,;t t
12998 s,@LIBS@,$LIBS,;t t
12999 s,@build@,$build,;t t
13000 s,@build_cpu@,$build_cpu,;t t
13001 s,@build_vendor@,$build_vendor,;t t
13002 s,@build_os@,$build_os,;t t
13003 s,@host@,$host,;t t
13004 s,@host_cpu@,$host_cpu,;t t
13005 s,@host_vendor@,$host_vendor,;t t
13006 s,@host_os@,$host_os,;t t
13007 s,@target@,$target,;t t
13008 s,@target_cpu@,$target_cpu,;t t
13009 s,@target_vendor@,$target_vendor,;t t
13010 s,@target_os@,$target_os,;t t
13011 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13012 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13013 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13014 s,@PACKAGE@,$PACKAGE,;t t
13015 s,@VERSION@,$VERSION,;t t
13016 s,@ACLOCAL@,$ACLOCAL,;t t
13017 s,@AUTOCONF@,$AUTOCONF,;t t
13018 s,@AUTOMAKE@,$AUTOMAKE,;t t
13019 s,@AUTOHEADER@,$AUTOHEADER,;t t
13020 s,@MAKEINFO@,$MAKEINFO,;t t
13021 s,@AMTAR@,$AMTAR,;t t
13022 s,@install_sh@,$install_sh,;t t
13023 s,@STRIP@,$STRIP,;t t
13024 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13025 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13026 s,@AWK@,$AWK,;t t
13027 s,@SET_MAKE@,$SET_MAKE,;t t
13028 s,@CC@,$CC,;t t
13029 s,@CFLAGS@,$CFLAGS,;t t
13030 s,@LDFLAGS@,$LDFLAGS,;t t
13031 s,@CPPFLAGS@,$CPPFLAGS,;t t
13032 s,@ac_ct_CC@,$ac_ct_CC,;t t
13033 s,@EXEEXT@,$EXEEXT,;t t
13034 s,@OBJEXT@,$OBJEXT,;t t
13035 s,@DEPDIR@,$DEPDIR,;t t
13036 s,@am__include@,$am__include,;t t
13037 s,@am__quote@,$am__quote,;t t
13038 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13039 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13040 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13041 s,@CCDEPMODE@,$CCDEPMODE,;t t
13042 s,@CPP@,$CPP,;t t
13043 s,@U@,$U,;t t
13044 s,@ANSI2KNR@,$ANSI2KNR,;t t
13045 s,@LN_S@,$LN_S,;t t
13046 s,@ECHO@,$ECHO,;t t
13047 s,@RANLIB@,$RANLIB,;t t
13048 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13049 s,@LIBTOOL@,$LIBTOOL,;t t
13050 s,@TARGET@,$TARGET,;t t
13051 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13052 s,@MSGFMT@,$MSGFMT,;t t
13053 s,@GMSGFMT@,$GMSGFMT,;t t
13054 s,@XGETTEXT@,$XGETTEXT,;t t
13055 s,@MSGMERGE@,$MSGMERGE,;t t
13056 s,@ALLOCA@,$ALLOCA,;t t
13057 s,@GLIBC21@,$GLIBC21,;t t
13058 s,@LIBICONV@,$LIBICONV,;t t
13059 s,@LTLIBICONV@,$LTLIBICONV,;t t
13060 s,@INTLBISON@,$INTLBISON,;t t
13061 s,@USE_NLS@,$USE_NLS,;t t
13062 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
13063 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13064 s,@CATOBJEXT@,$CATOBJEXT,;t t
13065 s,@INTLOBJS@,$INTLOBJS,;t t
13066 s,@DATADIRNAME@,$DATADIRNAME,;t t
13067 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13068 s,@GENCAT@,$GENCAT,;t t
13069 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
13070 s,@INTLLIBS@,$INTLLIBS,;t t
13071 s,@LIBINTL@,$LIBINTL,;t t
13072 s,@LTLIBINTL@,$LTLIBINTL,;t t
13073 s,@POSUB@,$POSUB,;t t
13074 s,@POPT_SOURCE_PATH@,$POPT_SOURCE_PATH,;t t
13075 CEOF
13076
13077 _ACEOF
13078
13079   cat >>$CONFIG_STATUS <<\_ACEOF
13080   # Split the substitutions into bite-sized pieces for seds with
13081   # small command number limits, like on Digital OSF/1 and HP-UX.
13082   ac_max_sed_lines=48
13083   ac_sed_frag=1 # Number of current file.
13084   ac_beg=1 # First line for current file.
13085   ac_end=$ac_max_sed_lines # Line after last line for current file.
13086   ac_more_lines=:
13087   ac_sed_cmds=
13088   while $ac_more_lines; do
13089     if test $ac_beg -gt 1; then
13090       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13091     else
13092       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13093     fi
13094     if test ! -s $tmp/subs.frag; then
13095       ac_more_lines=false
13096     else
13097       # The purpose of the label and of the branching condition is to
13098       # speed up the sed processing (if there are no `@' at all, there
13099       # is no need to browse any of the substitutions).
13100       # These are the two extra sed commands mentioned above.
13101       (echo ':t
13102   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13103       if test -z "$ac_sed_cmds"; then
13104         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13105       else
13106         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13107       fi
13108       ac_sed_frag=`expr $ac_sed_frag + 1`
13109       ac_beg=$ac_end
13110       ac_end=`expr $ac_end + $ac_max_sed_lines`
13111     fi
13112   done
13113   if test -z "$ac_sed_cmds"; then
13114     ac_sed_cmds=cat
13115   fi
13116 fi # test -n "$CONFIG_FILES"
13117
13118 _ACEOF
13119 cat >>$CONFIG_STATUS <<\_ACEOF
13120 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13121   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13122   case $ac_file in
13123   - | *:- | *:-:* ) # input from stdin
13124         cat >$tmp/stdin
13125         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13126         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13127   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13128         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13129   * )   ac_file_in=$ac_file.in ;;
13130   esac
13131
13132   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13133   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13135          X"$ac_file" : 'X\(//\)[^/]' \| \
13136          X"$ac_file" : 'X\(//\)$' \| \
13137          X"$ac_file" : 'X\(/\)' \| \
13138          .     : '\(.\)' 2>/dev/null ||
13139 echo X"$ac_file" |
13140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13141           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13142           /^X\(\/\/\)$/{ s//\1/; q; }
13143           /^X\(\/\).*/{ s//\1/; q; }
13144           s/.*/./; q'`
13145   { case "$ac_dir" in
13146   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13147   *)                      as_incr_dir=.;;
13148 esac
13149 as_dummy="$ac_dir"
13150 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13151   case $as_mkdir_dir in
13152     # Skip DOS drivespec
13153     ?:) as_incr_dir=$as_mkdir_dir ;;
13154     *)
13155       as_incr_dir=$as_incr_dir/$as_mkdir_dir
13156       test -d "$as_incr_dir" ||
13157         mkdir "$as_incr_dir" ||
13158         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13159 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13160    { (exit 1); exit 1; }; }
13161     ;;
13162   esac
13163 done; }
13164
13165   ac_builddir=.
13166
13167 if test "$ac_dir" != .; then
13168   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13169   # A "../" for each directory in $ac_dir_suffix.
13170   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13171 else
13172   ac_dir_suffix= ac_top_builddir=
13173 fi
13174
13175 case $srcdir in
13176   .)  # No --srcdir option.  We are building in place.
13177     ac_srcdir=.
13178     if test -z "$ac_top_builddir"; then
13179        ac_top_srcdir=.
13180     else
13181        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13182     fi ;;
13183   [\\/]* | ?:[\\/]* )  # Absolute path.
13184     ac_srcdir=$srcdir$ac_dir_suffix;
13185     ac_top_srcdir=$srcdir ;;
13186   *) # Relative path.
13187     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13188     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13189 esac
13190 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13191 # absolute.
13192 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13193 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13194 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13195 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13196
13197
13198   case $INSTALL in
13199   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13200   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13201   esac
13202
13203   if test x"$ac_file" != x-; then
13204     { echo "$as_me:$LINENO: creating $ac_file" >&5
13205 echo "$as_me: creating $ac_file" >&6;}
13206     rm -f "$ac_file"
13207   fi
13208   # Let's still pretend it is `configure' which instantiates (i.e., don't
13209   # use $as_me), people would be surprised to read:
13210   #    /* config.h.  Generated by config.status.  */
13211   if test x"$ac_file" = x-; then
13212     configure_input=
13213   else
13214     configure_input="$ac_file.  "
13215   fi
13216   configure_input=$configure_input"Generated from `echo $ac_file_in |
13217                                      sed 's,.*/,,'` by configure."
13218
13219   # First look for the input files in the build tree, otherwise in the
13220   # src tree.
13221   ac_file_inputs=`IFS=:
13222     for f in $ac_file_in; do
13223       case $f in
13224       -) echo $tmp/stdin ;;
13225       [\\/$]*)
13226          # Absolute (can't be DOS-style, as IFS=:)
13227          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13228 echo "$as_me: error: cannot find input file: $f" >&2;}
13229    { (exit 1); exit 1; }; }
13230          echo $f;;
13231       *) # Relative
13232          if test -f "$f"; then
13233            # Build tree
13234            echo $f
13235          elif test -f "$srcdir/$f"; then
13236            # Source tree
13237            echo $srcdir/$f
13238          else
13239            # /dev/null tree
13240            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13241 echo "$as_me: error: cannot find input file: $f" >&2;}
13242    { (exit 1); exit 1; }; }
13243          fi;;
13244       esac
13245     done` || { (exit 1); exit 1; }
13246 _ACEOF
13247 cat >>$CONFIG_STATUS <<_ACEOF
13248   sed "$ac_vpsub
13249 $extrasub
13250 _ACEOF
13251 cat >>$CONFIG_STATUS <<\_ACEOF
13252 :t
13253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13254 s,@configure_input@,$configure_input,;t t
13255 s,@srcdir@,$ac_srcdir,;t t
13256 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13257 s,@top_srcdir@,$ac_top_srcdir,;t t
13258 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13259 s,@builddir@,$ac_builddir,;t t
13260 s,@abs_builddir@,$ac_abs_builddir,;t t
13261 s,@top_builddir@,$ac_top_builddir,;t t
13262 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13263 s,@INSTALL@,$ac_INSTALL,;t t
13264 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13265   rm -f $tmp/stdin
13266   if test x"$ac_file" != x-; then
13267     mv $tmp/out $ac_file
13268   else
13269     cat $tmp/out
13270     rm -f $tmp/out
13271   fi
13272
13273 done
13274 _ACEOF
13275 cat >>$CONFIG_STATUS <<\_ACEOF
13276
13277 #
13278 # CONFIG_HEADER section.
13279 #
13280
13281 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13282 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13283 #
13284 # ac_d sets the value in "#define NAME VALUE" lines.
13285 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
13286 ac_dB='[        ].*$,\1#\2'
13287 ac_dC=' '
13288 ac_dD=',;t'
13289 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13290 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13291 ac_uB='$,\1#\2define\3'
13292 ac_uC=' '
13293 ac_uD=',;t'
13294
13295 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13296   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13297   case $ac_file in
13298   - | *:- | *:-:* ) # input from stdin
13299         cat >$tmp/stdin
13300         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13301         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13302   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13304   * )   ac_file_in=$ac_file.in ;;
13305   esac
13306
13307   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13308 echo "$as_me: creating $ac_file" >&6;}
13309
13310   # First look for the input files in the build tree, otherwise in the
13311   # src tree.
13312   ac_file_inputs=`IFS=:
13313     for f in $ac_file_in; do
13314       case $f in
13315       -) echo $tmp/stdin ;;
13316       [\\/$]*)
13317          # Absolute (can't be DOS-style, as IFS=:)
13318          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13319 echo "$as_me: error: cannot find input file: $f" >&2;}
13320    { (exit 1); exit 1; }; }
13321          echo $f;;
13322       *) # Relative
13323          if test -f "$f"; then
13324            # Build tree
13325            echo $f
13326          elif test -f "$srcdir/$f"; then
13327            # Source tree
13328            echo $srcdir/$f
13329          else
13330            # /dev/null tree
13331            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13332 echo "$as_me: error: cannot find input file: $f" >&2;}
13333    { (exit 1); exit 1; }; }
13334          fi;;
13335       esac
13336     done` || { (exit 1); exit 1; }
13337   # Remove the trailing spaces.
13338   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
13339
13340 _ACEOF
13341
13342 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13343 # `conftest.undefs', that substitutes the proper values into
13344 # config.h.in to produce config.h.  The first handles `#define'
13345 # templates, and the second `#undef' templates.
13346 # And first: Protect against being on the right side of a sed subst in
13347 # config.status.  Protect against being in an unquoted here document
13348 # in config.status.
13349 rm -f conftest.defines conftest.undefs
13350 # Using a here document instead of a string reduces the quoting nightmare.
13351 # Putting comments in sed scripts is not portable.
13352 #
13353 # `end' is used to avoid that the second main sed command (meant for
13354 # 0-ary CPP macros) applies to n-ary macro definitions.
13355 # See the Autoconf documentation for `clear'.
13356 cat >confdef2sed.sed <<\_ACEOF
13357 s/[\\&,]/\\&/g
13358 s,[\\$`],\\&,g
13359 t clear
13360 : clear
13361 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13362 t end
13363 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13364 : end
13365 _ACEOF
13366 # If some macros were called several times there might be several times
13367 # the same #defines, which is useless.  Nevertheless, we may not want to
13368 # sort them, since we want the *last* AC-DEFINE to be honored.
13369 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13370 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13371 rm -f confdef2sed.sed
13372
13373 # This sed command replaces #undef with comments.  This is necessary, for
13374 # example, in the case of _POSIX_SOURCE, which is predefined and required
13375 # on some systems where configure will not decide to define it.
13376 cat >>conftest.undefs <<\_ACEOF
13377 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13378 _ACEOF
13379
13380 # Break up conftest.defines because some shells have a limit on the size
13381 # of here documents, and old seds have small limits too (100 cmds).
13382 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13383 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13384 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13385 echo '  :' >>$CONFIG_STATUS
13386 rm -f conftest.tail
13387 while grep . conftest.defines >/dev/null
13388 do
13389   # Write a limited-size here document to $tmp/defines.sed.
13390   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13391   # Speed up: don't consider the non `#define' lines.
13392   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
13393   # Work around the forget-to-reset-the-flag bug.
13394   echo 't clr' >>$CONFIG_STATUS
13395   echo ': clr' >>$CONFIG_STATUS
13396   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13397   echo 'CEOF
13398   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13399   rm -f $tmp/in
13400   mv $tmp/out $tmp/in
13401 ' >>$CONFIG_STATUS
13402   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13403   rm -f conftest.defines
13404   mv conftest.tail conftest.defines
13405 done
13406 rm -f conftest.defines
13407 echo '  fi # egrep' >>$CONFIG_STATUS
13408 echo >>$CONFIG_STATUS
13409
13410 # Break up conftest.undefs because some shells have a limit on the size
13411 # of here documents, and old seds have small limits too (100 cmds).
13412 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13413 rm -f conftest.tail
13414 while grep . conftest.undefs >/dev/null
13415 do
13416   # Write a limited-size here document to $tmp/undefs.sed.
13417   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13418   # Speed up: don't consider the non `#undef'
13419   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13420   # Work around the forget-to-reset-the-flag bug.
13421   echo 't clr' >>$CONFIG_STATUS
13422   echo ': clr' >>$CONFIG_STATUS
13423   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13424   echo 'CEOF
13425   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13426   rm -f $tmp/in
13427   mv $tmp/out $tmp/in
13428 ' >>$CONFIG_STATUS
13429   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13430   rm -f conftest.undefs
13431   mv conftest.tail conftest.undefs
13432 done
13433 rm -f conftest.undefs
13434
13435 cat >>$CONFIG_STATUS <<\_ACEOF
13436   # Let's still pretend it is `configure' which instantiates (i.e., don't
13437   # use $as_me), people would be surprised to read:
13438   #    /* config.h.  Generated by config.status.  */
13439   if test x"$ac_file" = x-; then
13440     echo "/* Generated by configure.  */" >$tmp/config.h
13441   else
13442     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13443   fi
13444   cat $tmp/in >>$tmp/config.h
13445   rm -f $tmp/in
13446   if test x"$ac_file" != x-; then
13447     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13448       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13449 echo "$as_me: $ac_file is unchanged" >&6;}
13450     else
13451       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13452 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13453          X"$ac_file" : 'X\(//\)[^/]' \| \
13454          X"$ac_file" : 'X\(//\)$' \| \
13455          X"$ac_file" : 'X\(/\)' \| \
13456          .     : '\(.\)' 2>/dev/null ||
13457 echo X"$ac_file" |
13458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13460           /^X\(\/\/\)$/{ s//\1/; q; }
13461           /^X\(\/\).*/{ s//\1/; q; }
13462           s/.*/./; q'`
13463       { case "$ac_dir" in
13464   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13465   *)                      as_incr_dir=.;;
13466 esac
13467 as_dummy="$ac_dir"
13468 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13469   case $as_mkdir_dir in
13470     # Skip DOS drivespec
13471     ?:) as_incr_dir=$as_mkdir_dir ;;
13472     *)
13473       as_incr_dir=$as_incr_dir/$as_mkdir_dir
13474       test -d "$as_incr_dir" ||
13475         mkdir "$as_incr_dir" ||
13476         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
13477 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
13478    { (exit 1); exit 1; }; }
13479     ;;
13480   esac
13481 done; }
13482
13483       rm -f $ac_file
13484       mv $tmp/config.h $ac_file
13485     fi
13486   else
13487     cat $tmp/config.h
13488     rm -f $tmp/config.h
13489   fi
13490   # Run the commands associated with the file.
13491   case $ac_file in
13492     config.h ) # update the timestamp
13493 echo 'timestamp for config.h' >"./stamp-h1"
13494  ;;
13495   esac
13496 done
13497 _ACEOF
13498 cat >>$CONFIG_STATUS <<\_ACEOF
13499
13500 #
13501 # CONFIG_COMMANDS section.
13502 #
13503 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13504   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13505   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13506   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13507 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13508          X"$ac_dest" : 'X\(//\)[^/]' \| \
13509          X"$ac_dest" : 'X\(//\)$' \| \
13510          X"$ac_dest" : 'X\(/\)' \| \
13511          .     : '\(.\)' 2>/dev/null ||
13512 echo X"$ac_dest" |
13513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13514           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13515           /^X\(\/\/\)$/{ s//\1/; q; }
13516           /^X\(\/\).*/{ s//\1/; q; }
13517           s/.*/./; q'`
13518   ac_builddir=.
13519
13520 if test "$ac_dir" != .; then
13521   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13522   # A "../" for each directory in $ac_dir_suffix.
13523   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13524 else
13525   ac_dir_suffix= ac_top_builddir=
13526 fi
13527
13528 case $srcdir in
13529   .)  # No --srcdir option.  We are building in place.
13530     ac_srcdir=.
13531     if test -z "$ac_top_builddir"; then
13532        ac_top_srcdir=.
13533     else
13534        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13535     fi ;;
13536   [\\/]* | ?:[\\/]* )  # Absolute path.
13537     ac_srcdir=$srcdir$ac_dir_suffix;
13538     ac_top_srcdir=$srcdir ;;
13539   *) # Relative path.
13540     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13541     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13542 esac
13543 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13544 # absolute.
13545 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13546 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
13547 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13548 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13549
13550
13551   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13552 echo "$as_me: executing $ac_dest commands" >&6;}
13553   case $ac_dest in
13554     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13555   # Strip MF so we end up with the name of the file.
13556   mf=`echo "$mf" | sed -e 's/:.*$//'`
13557   # Check whether this is an Automake generated Makefile or not.
13558   # We used to match only the files named `Makefile.in', but
13559   # some people rename them; so instead we look at the file content.
13560   # Grep'ing the first line is not enough: some people post-process
13561   # each Makefile.in and add a new line on top of each file to say so.
13562   # So let's grep whole file.
13563   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13564     dirpart=`(dirname "$mf") 2>/dev/null ||
13565 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13566          X"$mf" : 'X\(//\)[^/]' \| \
13567          X"$mf" : 'X\(//\)$' \| \
13568          X"$mf" : 'X\(/\)' \| \
13569          .     : '\(.\)' 2>/dev/null ||
13570 echo X"$mf" |
13571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13572           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13573           /^X\(\/\/\)$/{ s//\1/; q; }
13574           /^X\(\/\).*/{ s//\1/; q; }
13575           s/.*/./; q'`
13576   else
13577     continue
13578   fi
13579   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13580   # Extract the definition of DEP_FILES from the Makefile without
13581   # running `make'.
13582   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13583   test -z "$DEPDIR" && continue
13584   # When using ansi2knr, U may be empty or an underscore; expand it
13585   U=`sed -n -e '/^U = / s///p' < "$mf"`
13586   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13587   # We invoke sed twice because it is the simplest approach to
13588   # changing $(DEPDIR) to its actual value in the expansion.
13589   for file in `sed -n -e '
13590     /^DEP_FILES = .*\\\\$/ {
13591       s/^DEP_FILES = //
13592       :loop
13593         s/\\\\$//
13594         p
13595         n
13596         /\\\\$/ b loop
13597       p
13598     }
13599     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13600        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13601     # Make sure the directory exists.
13602     test -f "$dirpart/$file" && continue
13603     fdir=`(dirname "$file") 2>/dev/null ||
13604 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13605          X"$file" : 'X\(//\)[^/]' \| \
13606          X"$file" : 'X\(//\)$' \| \
13607          X"$file" : 'X\(/\)' \| \
13608          .     : '\(.\)' 2>/dev/null ||
13609 echo X"$file" |
13610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13611           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13612           /^X\(\/\/\)$/{ s//\1/; q; }
13613           /^X\(\/\).*/{ s//\1/; q; }
13614           s/.*/./; q'`
13615     { case $dirpart/$fdir in
13616   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13617   *)                      as_incr_dir=.;;
13618 esac
13619 as_dummy=$dirpart/$fdir
13620 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13621   case $as_mkdir_dir in
13622     # Skip DOS drivespec
13623     ?:) as_incr_dir=$as_mkdir_dir ;;
13624     *)
13625       as_incr_dir=$as_incr_dir/$as_mkdir_dir
13626       test -d "$as_incr_dir" ||
13627         mkdir "$as_incr_dir" ||
13628         { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
13629 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
13630    { (exit 1); exit 1; }; }
13631     ;;
13632   esac
13633 done; }
13634
13635     # echo "creating $dirpart/$file"
13636     echo '# dummy' > "$dirpart/$file"
13637   done
13638 done
13639  ;;
13640     default-1 )
13641     for ac_file in $CONFIG_FILES; do
13642       # Support "outfile[:infile[:infile...]]"
13643       case "$ac_file" in
13644         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13645       esac
13646       # PO directories have a Makefile.in generated from Makefile.in.in.
13647       case "$ac_file" in */Makefile.in)
13648         # Adjust a relative srcdir.
13649         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13650         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13651         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13652         # In autoconf-2.13 it is called $ac_given_srcdir.
13653         # In autoconf-2.50 it is called $srcdir.
13654         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13655         case "$ac_given_srcdir" in
13656           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13657           /*) top_srcdir="$ac_given_srcdir" ;;
13658           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13659         esac
13660         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13661           rm -f "$ac_dir/POTFILES"
13662           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13663           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13664           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13665           # on $ac_dir but don't depend on user-specified configuration
13666           # parameters.
13667           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13668             # The LINGUAS file contains the set of available languages.
13669             if test -n "$ALL_LINGUAS"; then
13670               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13671             fi
13672             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13673             # Hide the ALL_LINGUAS assigment from automake.
13674             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13675           fi
13676           case "$ac_given_srcdir" in
13677             .) srcdirpre= ;;
13678             *) srcdirpre='$(srcdir)/' ;;
13679           esac
13680           POFILES=
13681           GMOFILES=
13682           UPDATEPOFILES=
13683           DUMMYPOFILES=
13684           for lang in $ALL_LINGUAS; do
13685             POFILES="$POFILES $srcdirpre$lang.po"
13686             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13687             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13688             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13689           done
13690           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13691           # environment variable.
13692           INST_LINGUAS=
13693           if test -n "$ALL_LINGUAS"; then
13694             for presentlang in $ALL_LINGUAS; do
13695               useit=no
13696               if test "%UNSET%" != "$LINGUAS"; then
13697                 desiredlanguages="$LINGUAS"
13698               else
13699                 desiredlanguages="$ALL_LINGUAS"
13700               fi
13701               for desiredlang in $desiredlanguages; do
13702                 # Use the presentlang catalog if desiredlang is
13703                 #   a. equal to presentlang, or
13704                 #   b. a variant of presentlang (because in this case,
13705                 #      presentlang can be used as a fallback for messages
13706                 #      which are not translated in the desiredlang catalog).
13707                 case "$desiredlang" in
13708                   "$presentlang"*) useit=yes;;
13709                 esac
13710               done
13711               if test $useit = yes; then
13712                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13713               fi
13714             done
13715           fi
13716           CATALOGS=
13717           if test -n "$INST_LINGUAS"; then
13718             for lang in $INST_LINGUAS; do
13719               CATALOGS="$CATALOGS $lang.gmo"
13720             done
13721           fi
13722           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13723           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13724           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13725             if test -f "$f"; then
13726               case "$f" in
13727                 *.orig | *.bak | *~) ;;
13728                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13729               esac
13730             fi
13731           done
13732         fi
13733         ;;
13734       esac
13735     done ;;
13736   esac
13737 done
13738 _ACEOF
13739
13740 cat >>$CONFIG_STATUS <<\_ACEOF
13741
13742 { (exit 0); exit 0; }
13743 _ACEOF
13744 chmod +x $CONFIG_STATUS
13745 ac_clean_files=$ac_clean_files_save
13746
13747
13748 # configure is writing to config.log, and then calls config.status.
13749 # config.status does its own redirection, appending to config.log.
13750 # Unfortunately, on DOS this fails, as config.log is still kept open
13751 # by configure, so config.status won't be able to write to it; its
13752 # output is simply discarded.  So we exec the FD to /dev/null,
13753 # effectively closing config.log, so it can be properly (re)opened and
13754 # appended to by config.status.  When coming back to configure, we
13755 # need to make the FD available again.
13756 if test "$no_create" != yes; then
13757   ac_cs_success=:
13758   exec 5>/dev/null
13759   $SHELL $CONFIG_STATUS || ac_cs_success=false
13760   exec 5>>config.log
13761   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13762   # would make configure fail if this is the last instruction.
13763   $ac_cs_success || { (exit 1); exit 1; }
13764 fi
13765