]> www.wagner.pp.ru Git - oss/fgis.git/blob - configure
d2f035ab7601eda32487311984eb87c92b1fe78a
[oss/fgis.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for fGIS 0.0.1.
4 #
5 # Report bugs to <dron@remotesensing.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Find the correct PATH separator.  Usually this is `:', but
13 # DJGPP uses `;' like DOS.
14 if test "X${PATH_SEPARATOR+set}" != Xset; then
15   UNAME=${UNAME-`uname 2>/dev/null`}
16   case X$UNAME in
17     *-DOS) lt_cv_sys_path_separator=';' ;;
18     *)     lt_cv_sys_path_separator=':' ;;
19   esac
20   PATH_SEPARATOR=$lt_cv_sys_path_separator
21 fi
22
23
24 # Check that we are running under the correct shell.
25 SHELL=${CONFIG_SHELL-/bin/sh}
26
27 case X$ECHO in
28 X*--fallback-echo)
29   # Remove one level of quotation (which was required for Make).
30   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31   ;;
32 esac
33
34 echo=${ECHO-echo}
35 if test "X$1" = X--no-reexec; then
36   # Discard the --no-reexec flag, and continue.
37   shift
38 elif test "X$1" = X--fallback-echo; then
39   # Avoid inline document here, it may be left over
40   :
41 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42   # Yippee, $echo works!
43   :
44 else
45   # Restart under the correct shell.
46   exec $SHELL "$0" --no-reexec ${1+"$@"}
47 fi
48
49 if test "X$1" = X--fallback-echo; then
50   # used as fallback echo
51   shift
52   cat <<EOF
53
54 EOF
55   exit 0
56 fi
57
58 # The HP-UX ksh and POSIX shell print the target directory to stdout
59 # if CDPATH is set.
60 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
61
62 if test -z "$ECHO"; then
63 if test "X${echo_test_string+set}" != Xset; then
64 # find a string as large as possible, as long as the shell can cope with it
65   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
66     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
67     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
68        echo_test_string="`eval $cmd`" &&
69        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
70     then
71       break
72     fi
73   done
74 fi
75
76 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
77    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
78    test "X$echo_testing_string" = "X$echo_test_string"; then
79   :
80 else
81   # The Solaris, AIX, and Digital Unix default echo programs unquote
82   # backslashes.  This makes it impossible to quote backslashes using
83   #   echo "$something" | sed 's/\\/\\\\/g'
84   #
85   # So, first we look for a working echo in the user's PATH.
86
87   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88   for dir in $PATH /usr/ucb; do
89     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
92        test "X$echo_testing_string" = "X$echo_test_string"; then
93       echo="$dir/echo"
94       break
95     fi
96   done
97   IFS="$save_ifs"
98
99   if test "X$echo" = Xecho; then
100     # We didn't find a better echo, so look for alternatives.
101     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
103        test "X$echo_testing_string" = "X$echo_test_string"; then
104       # This shell has a builtin print -r that does the trick.
105       echo='print -r'
106     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
107          test "X$CONFIG_SHELL" != X/bin/ksh; then
108       # If we have ksh, try running configure again with it.
109       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
110       export ORIGINAL_CONFIG_SHELL
111       CONFIG_SHELL=/bin/ksh
112       export CONFIG_SHELL
113       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114     else
115       # Try using printf.
116       echo='printf %s\n'
117       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
118          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
119          test "X$echo_testing_string" = "X$echo_test_string"; then
120         # Cool, printf works
121         :
122       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
123            test "X$echo_testing_string" = 'X\t' &&
124            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
125            test "X$echo_testing_string" = "X$echo_test_string"; then
126         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
127         export CONFIG_SHELL
128         SHELL="$CONFIG_SHELL"
129         export SHELL
130         echo="$CONFIG_SHELL $0 --fallback-echo"
131       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
132            test "X$echo_testing_string" = 'X\t' &&
133            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
134            test "X$echo_testing_string" = "X$echo_test_string"; then
135         echo="$CONFIG_SHELL $0 --fallback-echo"
136       else
137         # maybe with a smaller string...
138         prev=:
139
140         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
141           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
142           then
143             break
144           fi
145           prev="$cmd"
146         done
147
148         if test "$prev" != 'sed 50q "$0"'; then
149           echo_test_string=`eval $prev`
150           export echo_test_string
151           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
152         else
153           # Oops.  We lost completely, so just stick with echo.
154           echo=echo
155         fi
156       fi
157     fi
158   fi
159 fi
160 fi
161
162 # Copy echo and quote the copy suitably for passing to libtool from
163 # the Makefile, instead of quoting the original, which is used later.
164 ECHO=$echo
165 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
167 fi
168
169
170
171 if expr a : '\(a\)' >/dev/null 2>&1; then
172   as_expr=expr
173 else
174   as_expr=false
175 fi
176
177
178 ## --------------------- ##
179 ## M4sh Initialization.  ##
180 ## --------------------- ##
181
182 # Be Bourne compatible
183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184   emulate sh
185   NULLCMD=:
186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187   set -o posix
188 fi
189
190 # NLS nuisances.
191 # Support unset when possible.
192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
193   as_unset=unset
194 else
195   as_unset=false
196 fi
197
198 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
199     { $as_unset LANG || test "${LANG+set}" != set; } ||
200       { LANG=C; export LANG; }
201 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
202     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
203       { LC_ALL=C; export LC_ALL; }
204 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
205     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
206       { LC_TIME=C; export LC_TIME; }
207 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
208     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
209       { LC_CTYPE=C; export LC_CTYPE; }
210 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
211     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
212       { LANGUAGE=C; export LANGUAGE; }
213 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
214     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
215       { LC_COLLATE=C; export LC_COLLATE; }
216 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
217     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
218       { LC_NUMERIC=C; export LC_NUMERIC; }
219 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
220     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
221       { LC_MESSAGES=C; export LC_MESSAGES; }
222
223
224 # Name of the executable.
225 as_me=`(basename "$0") 2>/dev/null ||
226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227          X"$0" : 'X\(//\)$' \| \
228          X"$0" : 'X\(/\)$' \| \
229          .     : '\(.\)' 2>/dev/null ||
230 echo X/"$0" |
231     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
232           /^X\/\(\/\/\)$/{ s//\1/; q; }
233           /^X\/\(\/\).*/{ s//\1/; q; }
234           s/.*/./; q'`
235
236 # PATH needs CR, and LINENO needs CR and PATH.
237 # Avoid depending upon Character Ranges.
238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241 as_cr_digits='0123456789'
242 as_cr_alnum=$as_cr_Letters$as_cr_digits
243
244 # The user is always right.
245 if test "${PATH_SEPARATOR+set}" != set; then
246   echo "#! /bin/sh" >conftest.sh
247   echo  "exit 0"   >>conftest.sh
248   chmod +x conftest.sh
249   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
250     PATH_SEPARATOR=';'
251   else
252     PATH_SEPARATOR=:
253   fi
254   rm -f conftest.sh
255 fi
256
257
258   as_lineno_1=$LINENO
259   as_lineno_2=$LINENO
260   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
261   test "x$as_lineno_1" != "x$as_lineno_2" &&
262   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
263   # Find who we are.  Look in the path if we contain no path at all
264   # relative or not.
265   case $0 in
266     *[\\/]* ) as_myself=$0 ;;
267     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
268 for as_dir in $PATH
269 do
270   IFS=$as_save_IFS
271   test -z "$as_dir" && as_dir=.
272   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
273 done
274
275        ;;
276   esac
277   # We did not find ourselves, most probably we were run as `sh COMMAND'
278   # in which case we are not to be found in the path.
279   if test "x$as_myself" = x; then
280     as_myself=$0
281   fi
282   if test ! -f "$as_myself"; then
283     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
284    { (exit 1); exit 1; }; }
285   fi
286   case $CONFIG_SHELL in
287   '')
288     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290 do
291   IFS=$as_save_IFS
292   test -z "$as_dir" && as_dir=.
293   for as_base in sh bash ksh sh5; do
294          case $as_dir in
295          /*)
296            if ("$as_dir/$as_base" -c '
297   as_lineno_1=$LINENO
298   as_lineno_2=$LINENO
299   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
300   test "x$as_lineno_1" != "x$as_lineno_2" &&
301   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
302              CONFIG_SHELL=$as_dir/$as_base
303              export CONFIG_SHELL
304              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
305            fi;;
306          esac
307        done
308 done
309 ;;
310   esac
311
312   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
313   # uniformly replaced by the line number.  The first 'sed' inserts a
314   # line-number line before each line; the second 'sed' does the real
315   # work.  The second script uses 'N' to pair each line-number line
316   # with the numbered line, and appends trailing '-' during
317   # substitution so that $LINENO is not a special case at line end.
318   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
319   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
320   sed '=' <$as_myself |
321     sed '
322       N
323       s,$,-,
324       : loop
325       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
326       t loop
327       s,-$,,
328       s,^['$as_cr_digits']*\n,,
329     ' >$as_me.lineno &&
330   chmod +x $as_me.lineno ||
331     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
332    { (exit 1); exit 1; }; }
333
334   # Don't try to exec as it changes $[0], causing all sort of problems
335   # (the dirname of $[0] is not the place where we might find the
336   # original and so on.  Autoconf is especially sensible to this).
337   . ./$as_me.lineno
338   # Exit status is that of the last command.
339   exit
340 }
341
342
343 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
344   *c*,-n*) ECHO_N= ECHO_C='
345 ' ECHO_T='      ' ;;
346   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
347   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
348 esac
349
350 if expr a : '\(a\)' >/dev/null 2>&1; then
351   as_expr=expr
352 else
353   as_expr=false
354 fi
355
356 rm -f conf$$ conf$$.exe conf$$.file
357 echo >conf$$.file
358 if ln -s conf$$.file conf$$ 2>/dev/null; then
359   # We could just check for DJGPP; but this test a) works b) is more generic
360   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
361   if test -f conf$$.exe; then
362     # Don't use ln at all; we don't have any links
363     as_ln_s='cp -p'
364   else
365     as_ln_s='ln -s'
366   fi
367 elif ln conf$$.file conf$$ 2>/dev/null; then
368   as_ln_s=ln
369 else
370   as_ln_s='cp -p'
371 fi
372 rm -f conf$$ conf$$.exe conf$$.file
373
374 as_executable_p="test -f"
375
376 # Sed expression to map a string onto a valid CPP name.
377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
378
379 # Sed expression to map a string onto a valid variable name.
380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
381
382
383 # IFS
384 # We need space, tab and new line, in precisely that order.
385 as_nl='
386 '
387 IFS="   $as_nl"
388
389 # CDPATH.
390 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 cross_compiling=no
405 subdirs=
406 MFLAGS=
407 MAKEFLAGS=
408 SHELL=${CONFIG_SHELL-/bin/sh}
409
410 # Maximum number of lines to put in a shell here document.
411 # This variable seems obsolete.  It should probably be removed, and
412 # only ac_max_sed_lines should be used.
413 : ${ac_max_here_lines=38}
414
415 # Identity of this package.
416 PACKAGE_NAME='fGIS'
417 PACKAGE_TARNAME='fgis'
418 PACKAGE_VERSION='0.0.1'
419 PACKAGE_STRING='fGIS 0.0.1'
420 PACKAGE_BUGREPORT='dron@remotesensing.org'
421
422 # Factoring default headers for most tests.
423 ac_includes_default="\
424 #include <stdio.h>
425 #if HAVE_SYS_TYPES_H
426 # include <sys/types.h>
427 #endif
428 #if HAVE_SYS_STAT_H
429 # include <sys/stat.h>
430 #endif
431 #if STDC_HEADERS
432 # include <stdlib.h>
433 # include <stddef.h>
434 #else
435 # if HAVE_STDLIB_H
436 #  include <stdlib.h>
437 # endif
438 #endif
439 #if HAVE_STRING_H
440 # if !STDC_HEADERS && HAVE_MEMORY_H
441 #  include <memory.h>
442 # endif
443 # include <string.h>
444 #endif
445 #if HAVE_STRINGS_H
446 # include <strings.h>
447 #endif
448 #if HAVE_INTTYPES_H
449 # include <inttypes.h>
450 #else
451 # if HAVE_STDINT_H
452 #  include <stdint.h>
453 # endif
454 #endif
455 #if HAVE_UNISTD_H
456 # include <unistd.h>
457 #endif"
458
459
460 # Initialize some variables set by options.
461 ac_init_help=
462 ac_init_version=false
463 # The variables have the same names as the options, with
464 # dashes changed to underlines.
465 cache_file=/dev/null
466 exec_prefix=NONE
467 no_create=
468 no_recursion=
469 prefix=NONE
470 program_prefix=NONE
471 program_suffix=NONE
472 program_transform_name=s,x,x,
473 silent=
474 site=
475 srcdir=
476 verbose=
477 x_includes=NONE
478 x_libraries=NONE
479
480 # Installation directory options.
481 # These are left unexpanded so users can "make install exec_prefix=/foo"
482 # and all the variables that are supposed to be based on exec_prefix
483 # by default will actually change.
484 # Use braces instead of parens because sh, perl, etc. also accept them.
485 bindir='${exec_prefix}/bin'
486 sbindir='${exec_prefix}/sbin'
487 libexecdir='${exec_prefix}/libexec'
488 datadir='${prefix}/share'
489 sysconfdir='${prefix}/etc'
490 sharedstatedir='${prefix}/com'
491 localstatedir='${prefix}/var'
492 libdir='${exec_prefix}/lib'
493 includedir='${prefix}/include'
494 oldincludedir='/usr/include'
495 infodir='${prefix}/info'
496 mandir='${prefix}/man'
497
498 ac_prev=
499 for ac_option
500 do
501   # If the previous option needs an argument, assign it.
502   if test -n "$ac_prev"; then
503     eval "$ac_prev=\$ac_option"
504     ac_prev=
505     continue
506   fi
507
508   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
509
510   # Accept the important Cygnus configure options, so we can diagnose typos.
511
512   case $ac_option in
513
514   -bindir | --bindir | --bindi | --bind | --bin | --bi)
515     ac_prev=bindir ;;
516   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
517     bindir=$ac_optarg ;;
518
519   -build | --build | --buil | --bui | --bu)
520     ac_prev=build_alias ;;
521   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
522     build_alias=$ac_optarg ;;
523
524   -cache-file | --cache-file | --cache-fil | --cache-fi \
525   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
526     ac_prev=cache_file ;;
527   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
528   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
529     cache_file=$ac_optarg ;;
530
531   --config-cache | -C)
532     cache_file=config.cache ;;
533
534   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535     ac_prev=datadir ;;
536   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537   | --da=*)
538     datadir=$ac_optarg ;;
539
540   -disable-* | --disable-*)
541     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
542     # Reject names that are not valid shell variable names.
543     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
544       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
545    { (exit 1); exit 1; }; }
546     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
547     eval "enable_$ac_feature=no" ;;
548
549   -enable-* | --enable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     case $ac_option in
557       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558       *) ac_optarg=yes ;;
559     esac
560     eval "enable_$ac_feature='$ac_optarg'" ;;
561
562   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
563   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
564   | --exec | --exe | --ex)
565     ac_prev=exec_prefix ;;
566   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
567   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
568   | --exec=* | --exe=* | --ex=*)
569     exec_prefix=$ac_optarg ;;
570
571   -gas | --gas | --ga | --g)
572     # Obsolete; use --with-gas.
573     with_gas=yes ;;
574
575   -help | --help | --hel | --he | -h)
576     ac_init_help=long ;;
577   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
578     ac_init_help=recursive ;;
579   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
580     ac_init_help=short ;;
581
582   -host | --host | --hos | --ho)
583     ac_prev=host_alias ;;
584   -host=* | --host=* | --hos=* | --ho=*)
585     host_alias=$ac_optarg ;;
586
587   -includedir | --includedir | --includedi | --included | --include \
588   | --includ | --inclu | --incl | --inc)
589     ac_prev=includedir ;;
590   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
591   | --includ=* | --inclu=* | --incl=* | --inc=*)
592     includedir=$ac_optarg ;;
593
594   -infodir | --infodir | --infodi | --infod | --info | --inf)
595     ac_prev=infodir ;;
596   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
597     infodir=$ac_optarg ;;
598
599   -libdir | --libdir | --libdi | --libd)
600     ac_prev=libdir ;;
601   -libdir=* | --libdir=* | --libdi=* | --libd=*)
602     libdir=$ac_optarg ;;
603
604   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
605   | --libexe | --libex | --libe)
606     ac_prev=libexecdir ;;
607   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
608   | --libexe=* | --libex=* | --libe=*)
609     libexecdir=$ac_optarg ;;
610
611   -localstatedir | --localstatedir | --localstatedi | --localstated \
612   | --localstate | --localstat | --localsta | --localst \
613   | --locals | --local | --loca | --loc | --lo)
614     ac_prev=localstatedir ;;
615   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
616   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
617   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
618     localstatedir=$ac_optarg ;;
619
620   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621     ac_prev=mandir ;;
622   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
623     mandir=$ac_optarg ;;
624
625   -nfp | --nfp | --nf)
626     # Obsolete; use --without-fp.
627     with_fp=no ;;
628
629   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
630   | --no-cr | --no-c | -n)
631     no_create=yes ;;
632
633   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
634   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
635     no_recursion=yes ;;
636
637   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
638   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
639   | --oldin | --oldi | --old | --ol | --o)
640     ac_prev=oldincludedir ;;
641   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
642   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
643   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
644     oldincludedir=$ac_optarg ;;
645
646   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647     ac_prev=prefix ;;
648   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
649     prefix=$ac_optarg ;;
650
651   -program-prefix | --program-prefix | --program-prefi | --program-pref \
652   | --program-pre | --program-pr | --program-p)
653     ac_prev=program_prefix ;;
654   -program-prefix=* | --program-prefix=* | --program-prefi=* \
655   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
656     program_prefix=$ac_optarg ;;
657
658   -program-suffix | --program-suffix | --program-suffi | --program-suff \
659   | --program-suf | --program-su | --program-s)
660     ac_prev=program_suffix ;;
661   -program-suffix=* | --program-suffix=* | --program-suffi=* \
662   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
663     program_suffix=$ac_optarg ;;
664
665   -program-transform-name | --program-transform-name \
666   | --program-transform-nam | --program-transform-na \
667   | --program-transform-n | --program-transform- \
668   | --program-transform | --program-transfor \
669   | --program-transfo | --program-transf \
670   | --program-trans | --program-tran \
671   | --progr-tra | --program-tr | --program-t)
672     ac_prev=program_transform_name ;;
673   -program-transform-name=* | --program-transform-name=* \
674   | --program-transform-nam=* | --program-transform-na=* \
675   | --program-transform-n=* | --program-transform-=* \
676   | --program-transform=* | --program-transfor=* \
677   | --program-transfo=* | --program-transf=* \
678   | --program-trans=* | --program-tran=* \
679   | --progr-tra=* | --program-tr=* | --program-t=*)
680     program_transform_name=$ac_optarg ;;
681
682   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
683   | -silent | --silent | --silen | --sile | --sil)
684     silent=yes ;;
685
686   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687     ac_prev=sbindir ;;
688   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689   | --sbi=* | --sb=*)
690     sbindir=$ac_optarg ;;
691
692   -sharedstatedir | --sharedstatedir | --sharedstatedi \
693   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
694   | --sharedst | --shareds | --shared | --share | --shar \
695   | --sha | --sh)
696     ac_prev=sharedstatedir ;;
697   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
698   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
699   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700   | --sha=* | --sh=*)
701     sharedstatedir=$ac_optarg ;;
702
703   -site | --site | --sit)
704     ac_prev=site ;;
705   -site=* | --site=* | --sit=*)
706     site=$ac_optarg ;;
707
708   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709     ac_prev=srcdir ;;
710   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
711     srcdir=$ac_optarg ;;
712
713   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
714   | --syscon | --sysco | --sysc | --sys | --sy)
715     ac_prev=sysconfdir ;;
716   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
717   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
718     sysconfdir=$ac_optarg ;;
719
720   -target | --target | --targe | --targ | --tar | --ta | --t)
721     ac_prev=target_alias ;;
722   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
723     target_alias=$ac_optarg ;;
724
725   -v | -verbose | --verbose | --verbos | --verbo | --verb)
726     verbose=yes ;;
727
728   -version | --version | --versio | --versi | --vers | -V)
729     ac_init_version=: ;;
730
731   -with-* | --with-*)
732     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
733     # Reject names that are not valid shell variable names.
734     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
735       { echo "$as_me: error: invalid package name: $ac_package" >&2
736    { (exit 1); exit 1; }; }
737     ac_package=`echo $ac_package| sed 's/-/_/g'`
738     case $ac_option in
739       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
740       *) ac_optarg=yes ;;
741     esac
742     eval "with_$ac_package='$ac_optarg'" ;;
743
744   -without-* | --without-*)
745     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package | sed 's/-/_/g'`
751     eval "with_$ac_package=no" ;;
752
753   --x)
754     # Obsolete; use --with-x.
755     with_x=yes ;;
756
757   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
758   | --x-incl | --x-inc | --x-in | --x-i)
759     ac_prev=x_includes ;;
760   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
761   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
762     x_includes=$ac_optarg ;;
763
764   -x-libraries | --x-libraries | --x-librarie | --x-librari \
765   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
766     ac_prev=x_libraries ;;
767   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
768   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
769     x_libraries=$ac_optarg ;;
770
771   -*) { echo "$as_me: error: unrecognized option: $ac_option
772 Try \`$0 --help' for more information." >&2
773    { (exit 1); exit 1; }; }
774     ;;
775
776   *=*)
777     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
778     # Reject names that are not valid shell variable names.
779     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
780       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
781    { (exit 1); exit 1; }; }
782     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
783     eval "$ac_envvar='$ac_optarg'"
784     export $ac_envvar ;;
785
786   *)
787     # FIXME: should be removed in autoconf 3.0.
788     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
789     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
790       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
791     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
792     ;;
793
794   esac
795 done
796
797 if test -n "$ac_prev"; then
798   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
799   { echo "$as_me: error: missing argument to $ac_option" >&2
800    { (exit 1); exit 1; }; }
801 fi
802
803 # Be sure to have absolute paths.
804 for ac_var in exec_prefix prefix
805 do
806   eval ac_val=$`echo $ac_var`
807   case $ac_val in
808     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
809     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
810    { (exit 1); exit 1; }; };;
811   esac
812 done
813
814 # Be sure to have absolute paths.
815 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
816               localstatedir libdir includedir oldincludedir infodir mandir
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # There might be people who depend on the old broken behavior: `$host'
827 # used to hold the argument of --host etc.
828 # FIXME: To remove some day.
829 build=$build_alias
830 host=$host_alias
831 target=$target_alias
832
833 # FIXME: To remove some day.
834 if test "x$host_alias" != x; then
835   if test "x$build_alias" = x; then
836     cross_compiling=maybe
837     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
838     If a cross compiler is detected then cross compile mode will be used." >&2
839   elif test "x$build_alias" != "x$host_alias"; then
840     cross_compiling=yes
841   fi
842 fi
843
844 ac_tool_prefix=
845 test -n "$host_alias" && ac_tool_prefix=$host_alias-
846
847 test "$silent" = yes && exec 6>/dev/null
848
849
850 # Find the source files, if location was not specified.
851 if test -z "$srcdir"; then
852   ac_srcdir_defaulted=yes
853   # Try the directory containing this script, then its parent.
854   ac_confdir=`(dirname "$0") 2>/dev/null ||
855 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
856          X"$0" : 'X\(//\)[^/]' \| \
857          X"$0" : 'X\(//\)$' \| \
858          X"$0" : 'X\(/\)' \| \
859          .     : '\(.\)' 2>/dev/null ||
860 echo X"$0" |
861     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
862           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
863           /^X\(\/\/\)$/{ s//\1/; q; }
864           /^X\(\/\).*/{ s//\1/; q; }
865           s/.*/./; q'`
866   srcdir=$ac_confdir
867   if test ! -r $srcdir/$ac_unique_file; then
868     srcdir=..
869   fi
870 else
871   ac_srcdir_defaulted=no
872 fi
873 if test ! -r $srcdir/$ac_unique_file; then
874   if test "$ac_srcdir_defaulted" = yes; then
875     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
876    { (exit 1); exit 1; }; }
877   else
878     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
879    { (exit 1); exit 1; }; }
880   fi
881 fi
882 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
883 ac_env_build_alias_set=${build_alias+set}
884 ac_env_build_alias_value=$build_alias
885 ac_cv_env_build_alias_set=${build_alias+set}
886 ac_cv_env_build_alias_value=$build_alias
887 ac_env_host_alias_set=${host_alias+set}
888 ac_env_host_alias_value=$host_alias
889 ac_cv_env_host_alias_set=${host_alias+set}
890 ac_cv_env_host_alias_value=$host_alias
891 ac_env_target_alias_set=${target_alias+set}
892 ac_env_target_alias_value=$target_alias
893 ac_cv_env_target_alias_set=${target_alias+set}
894 ac_cv_env_target_alias_value=$target_alias
895 ac_env_CC_set=${CC+set}
896 ac_env_CC_value=$CC
897 ac_cv_env_CC_set=${CC+set}
898 ac_cv_env_CC_value=$CC
899 ac_env_CFLAGS_set=${CFLAGS+set}
900 ac_env_CFLAGS_value=$CFLAGS
901 ac_cv_env_CFLAGS_set=${CFLAGS+set}
902 ac_cv_env_CFLAGS_value=$CFLAGS
903 ac_env_LDFLAGS_set=${LDFLAGS+set}
904 ac_env_LDFLAGS_value=$LDFLAGS
905 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
906 ac_cv_env_LDFLAGS_value=$LDFLAGS
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CPP_set=${CPP+set}
912 ac_env_CPP_value=$CPP
913 ac_cv_env_CPP_set=${CPP+set}
914 ac_cv_env_CPP_value=$CPP
915
916 #
917 # Report the --help message.
918 #
919 if test "$ac_init_help" = "long"; then
920   # Omit some internal or obsolete options to make the list less imposing.
921   # This message is too long to be a string in the A/UX 3.1 sh.
922   cat <<_ACEOF
923 \`configure' configures fGIS 0.0.1 to adapt to many kinds of systems.
924
925 Usage: $0 [OPTION]... [VAR=VALUE]...
926
927 To assign environment variables (e.g., CC, CFLAGS...), specify them as
928 VAR=VALUE.  See below for descriptions of some of the useful variables.
929
930 Defaults for the options are specified in brackets.
931
932 Configuration:
933   -h, --help              display this help and exit
934       --help=short        display options specific to this package
935       --help=recursive    display the short help of all the included packages
936   -V, --version           display version information and exit
937   -q, --quiet, --silent   do not print \`checking...' messages
938       --cache-file=FILE   cache test results in FILE [disabled]
939   -C, --config-cache      alias for \`--cache-file=config.cache'
940   -n, --no-create         do not create output files
941       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
942
943 _ACEOF
944
945   cat <<_ACEOF
946 Installation directories:
947   --prefix=PREFIX         install architecture-independent files in PREFIX
948                           [$ac_default_prefix]
949   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
950                           [PREFIX]
951
952 By default, \`make install' will install all the files in
953 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
954 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
955 for instance \`--prefix=\$HOME'.
956
957 For better control, use the options below.
958
959 Fine tuning of the installation directories:
960   --bindir=DIR           user executables [EPREFIX/bin]
961   --sbindir=DIR          system admin executables [EPREFIX/sbin]
962   --libexecdir=DIR       program executables [EPREFIX/libexec]
963   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
964   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
965   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
966   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
967   --libdir=DIR           object code libraries [EPREFIX/lib]
968   --includedir=DIR       C header files [PREFIX/include]
969   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
970   --infodir=DIR          info documentation [PREFIX/info]
971   --mandir=DIR           man documentation [PREFIX/man]
972 _ACEOF
973
974   cat <<\_ACEOF
975
976 Program names:
977   --program-prefix=PREFIX            prepend PREFIX to installed program names
978   --program-suffix=SUFFIX            append SUFFIX to installed program names
979   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
980
981 X features:
982   --x-includes=DIR    X include files are in DIR
983   --x-libraries=DIR   X library files are in DIR
984
985 System types:
986   --build=BUILD     configure for building on BUILD [guessed]
987   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
988 _ACEOF
989 fi
990
991 if test -n "$ac_init_help"; then
992   case $ac_init_help in
993      short | recursive ) echo "Configuration of fGIS 0.0.1:";;
994    esac
995   cat <<\_ACEOF
996
997 Optional Features:
998   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
999   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1000   --enable-shared=PKGS  build shared libraries default=yes
1001   --enable-static=PKGS  build static libraries default=yes
1002   --enable-fast-install=PKGS  optimize for fast installation default=yes
1003   --disable-dependency-tracking Speeds up one-time builds
1004   --enable-dependency-tracking  Do not reject slow dependency extractors
1005   --disable-libtool-lock  avoid locking (might break parallel builds)
1006
1007 Optional Packages:
1008   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1009   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1010   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1011   --with-pic              try to use only PIC/non-PIC objects default=use both
1012   --with-x                use the X Window System
1013   --with-tcl=ARG          Include Tcl support (ARG=yes or path)
1014
1015 Some influential environment variables:
1016   CC          C compiler command
1017   CFLAGS      C compiler flags
1018   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1019               nonstandard directory <lib dir>
1020   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021               headers in a nonstandard directory <include dir>
1022   CPP         C preprocessor
1023
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1026
1027 Report bugs to <dron@remotesensing.org>.
1028 _ACEOF
1029 fi
1030
1031 if test "$ac_init_help" = "recursive"; then
1032   # If there are subdirs, report their specific --help.
1033   ac_popdir=`pwd`
1034   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1035     test -d $ac_dir || continue
1036     ac_builddir=.
1037
1038 if test "$ac_dir" != .; then
1039   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1040   # A "../" for each directory in $ac_dir_suffix.
1041   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1042 else
1043   ac_dir_suffix= ac_top_builddir=
1044 fi
1045
1046 case $srcdir in
1047   .)  # No --srcdir option.  We are building in place.
1048     ac_srcdir=.
1049     if test -z "$ac_top_builddir"; then
1050        ac_top_srcdir=.
1051     else
1052        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1053     fi ;;
1054   [\\/]* | ?:[\\/]* )  # Absolute path.
1055     ac_srcdir=$srcdir$ac_dir_suffix;
1056     ac_top_srcdir=$srcdir ;;
1057   *) # Relative path.
1058     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1059     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1060 esac
1061 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1062 # absolute.
1063 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1064 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1065 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1066 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1067
1068     cd $ac_dir
1069     # Check for guested configure; otherwise get Cygnus style configure.
1070     if test -f $ac_srcdir/configure.gnu; then
1071       echo
1072       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1073     elif test -f $ac_srcdir/configure; then
1074       echo
1075       $SHELL $ac_srcdir/configure  --help=recursive
1076     elif test -f $ac_srcdir/configure.ac ||
1077            test -f $ac_srcdir/configure.in; then
1078       echo
1079       $ac_configure --help
1080     else
1081       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1082     fi
1083     cd $ac_popdir
1084   done
1085 fi
1086
1087 test -n "$ac_init_help" && exit 0
1088 if $ac_init_version; then
1089   cat <<\_ACEOF
1090 fGIS configure 0.0.1
1091 generated by GNU Autoconf 2.53
1092
1093 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1094 Free Software Foundation, Inc.
1095 This configure script is free software; the Free Software Foundation
1096 gives unlimited permission to copy, distribute and modify it.
1097 _ACEOF
1098   exit 0
1099 fi
1100 exec 5>config.log
1101 cat >&5 <<_ACEOF
1102 This file contains any messages produced by compilers while
1103 running configure, to aid debugging if configure makes a mistake.
1104
1105 It was created by fGIS $as_me 0.0.1, which was
1106 generated by GNU Autoconf 2.53.  Invocation command line was
1107
1108   $ $0 $@
1109
1110 _ACEOF
1111 {
1112 cat <<_ASUNAME
1113 ## --------- ##
1114 ## Platform. ##
1115 ## --------- ##
1116
1117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1122
1123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1124 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1125
1126 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1127 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1129 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1130 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1131 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1132 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1133
1134 _ASUNAME
1135
1136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1137 for as_dir in $PATH
1138 do
1139   IFS=$as_save_IFS
1140   test -z "$as_dir" && as_dir=.
1141   echo "PATH: $as_dir"
1142 done
1143
1144 } >&5
1145
1146 cat >&5 <<_ACEOF
1147
1148
1149 ## ----------- ##
1150 ## Core tests. ##
1151 ## ----------- ##
1152
1153 _ACEOF
1154
1155
1156 # Keep a trace of the command line.
1157 # Strip out --no-create and --no-recursion so they do not pile up.
1158 # Also quote any args containing shell meta-characters.
1159 ac_configure_args=
1160 ac_sep=
1161 for ac_arg
1162 do
1163   case $ac_arg in
1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165   | --no-cr | --no-c | -n ) continue ;;
1166   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168     continue ;;
1169   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1170     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1171   esac
1172   case " $ac_configure_args " in
1173     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1174     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1175        ac_sep=" " ;;
1176   esac
1177   # Get rid of the leading space.
1178 done
1179
1180 # When interrupted or exit'd, cleanup temporary files, and complete
1181 # config.log.  We remove comments because anyway the quotes in there
1182 # would cause problems or look ugly.
1183 # WARNING: Be sure not to use single quotes in there, as some shells,
1184 # such as our DU 5.0 friend, will then `close' the trap.
1185 trap 'exit_status=$?
1186   # Save into config.log some information that might help in debugging.
1187   {
1188     echo
1189     cat <<\_ASBOX
1190 ## ---------------- ##
1191 ## Cache variables. ##
1192 ## ---------------- ##
1193 _ASBOX
1194     echo
1195     # The following way of writing the cache mishandles newlines in values,
1196 {
1197   (set) 2>&1 |
1198     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1199     *ac_space=\ *)
1200       sed -n \
1201         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1202           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1203       ;;
1204     *)
1205       sed -n \
1206         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1207       ;;
1208     esac;
1209 }
1210     echo
1211     if test -s confdefs.h; then
1212       cat <<\_ASBOX
1213 ## ----------- ##
1214 ## confdefs.h. ##
1215 ## ----------- ##
1216 _ASBOX
1217       echo
1218       sed "/^$/d" confdefs.h
1219       echo
1220     fi
1221     test "$ac_signal" != 0 &&
1222       echo "$as_me: caught signal $ac_signal"
1223     echo "$as_me: exit $exit_status"
1224   } >&5
1225   rm -f core core.* *.core &&
1226   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1227     exit $exit_status
1228      ' 0
1229 for ac_signal in 1 2 13 15; do
1230   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231 done
1232 ac_signal=0
1233
1234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1235 rm -rf conftest* confdefs.h
1236 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1237 echo >confdefs.h
1238
1239 # Predefined preprocessor variables.
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_NAME "$PACKAGE_NAME"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253 _ACEOF
1254
1255
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_STRING "$PACKAGE_STRING"
1258 _ACEOF
1259
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263 _ACEOF
1264
1265
1266 # Let the site file select an alternate cache file if it wants to.
1267 # Prefer explicitly selected file to automatically selected ones.
1268 if test -z "$CONFIG_SITE"; then
1269   if test "x$prefix" != xNONE; then
1270     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1271   else
1272     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1273   fi
1274 fi
1275 for ac_site_file in $CONFIG_SITE; do
1276   if test -r "$ac_site_file"; then
1277     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1278 echo "$as_me: loading site script $ac_site_file" >&6;}
1279     sed 's/^/| /' "$ac_site_file" >&5
1280     . "$ac_site_file"
1281   fi
1282 done
1283
1284 if test -r "$cache_file"; then
1285   # Some versions of bash will fail to source /dev/null (special
1286   # files actually), so we avoid doing that.
1287   if test -f "$cache_file"; then
1288     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1289 echo "$as_me: loading cache $cache_file" >&6;}
1290     case $cache_file in
1291       [\\/]* | ?:[\\/]* ) . $cache_file;;
1292       *)                      . ./$cache_file;;
1293     esac
1294   fi
1295 else
1296   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1297 echo "$as_me: creating cache $cache_file" >&6;}
1298   >$cache_file
1299 fi
1300
1301 # Check that the precious variables saved in the cache have kept the same
1302 # value.
1303 ac_cache_corrupted=false
1304 for ac_var in `(set) 2>&1 |
1305                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1306   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1307   eval ac_new_set=\$ac_env_${ac_var}_set
1308   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1309   eval ac_new_val="\$ac_env_${ac_var}_value"
1310   case $ac_old_set,$ac_new_set in
1311     set,)
1312       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1314       ac_cache_corrupted=: ;;
1315     ,set)
1316       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1318       ac_cache_corrupted=: ;;
1319     ,);;
1320     *)
1321       if test "x$ac_old_val" != "x$ac_new_val"; then
1322         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1323 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1324         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1325 echo "$as_me:   former value:  $ac_old_val" >&2;}
1326         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1327 echo "$as_me:   current value: $ac_new_val" >&2;}
1328         ac_cache_corrupted=:
1329       fi;;
1330   esac
1331   # Pass precious variables to config.status.
1332   if test "$ac_new_set" = set; then
1333     case $ac_new_val in
1334     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336     *) ac_arg=$ac_var=$ac_new_val ;;
1337     esac
1338     case " $ac_configure_args " in
1339       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1340       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341     esac
1342   fi
1343 done
1344 if $ac_cache_corrupted; then
1345   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1346 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1347   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1348 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1349    { (exit 1); exit 1; }; }
1350 fi
1351
1352 ac_ext=c
1353 ac_cpp='$CPP $CPPFLAGS'
1354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383 # AC_CONFIG_HEADERS([config.h])
1384 am__api_version="1.6"
1385 ac_aux_dir=
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387   if test -f $ac_dir/install-sh; then
1388     ac_aux_dir=$ac_dir
1389     ac_install_sh="$ac_aux_dir/install-sh -c"
1390     break
1391   elif test -f $ac_dir/install.sh; then
1392     ac_aux_dir=$ac_dir
1393     ac_install_sh="$ac_aux_dir/install.sh -c"
1394     break
1395   elif test -f $ac_dir/shtool; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/shtool install -c"
1398     break
1399   fi
1400 done
1401 if test -z "$ac_aux_dir"; then
1402   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404    { (exit 1); exit 1; }; }
1405 fi
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1409
1410 # Find a good install program.  We prefer a C program (faster),
1411 # so one script is as good as another.  But avoid the broken or
1412 # incompatible versions:
1413 # SysV /etc/install, /usr/sbin/install
1414 # SunOS /usr/etc/install
1415 # IRIX /sbin/install
1416 # AIX /bin/install
1417 # AmigaOS /C/install, which installs bootblocks on floppy discs
1418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1421 # ./install, which can be erroneously created by make from ./install.sh.
1422 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1423 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1424 if test -z "$INSTALL"; then
1425 if test "${ac_cv_path_install+set}" = set; then
1426   echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   # Account for people who put trailing slashes in PATH elements.
1434 case $as_dir/ in
1435   ./ | .// | /cC/* | \
1436   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1437   /usr/ucb/* ) ;;
1438   *)
1439     # OSF1 and SCO ODT 3.0 have their own names for install.
1440     # Don't use installbsd from OSF since it installs stuff as root
1441     # by default.
1442     for ac_prog in ginstall scoinst install; do
1443       for ac_exec_ext in '' $ac_executable_extensions; do
1444         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1445           if test $ac_prog = install &&
1446             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1447             # AIX install.  It has an incompatible calling convention.
1448             :
1449           elif test $ac_prog = install &&
1450             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1451             # program-specific install script used by HP pwplus--don't use.
1452             :
1453           else
1454             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1455             break 3
1456           fi
1457         fi
1458       done
1459     done
1460     ;;
1461 esac
1462 done
1463
1464
1465 fi
1466   if test "${ac_cv_path_install+set}" = set; then
1467     INSTALL=$ac_cv_path_install
1468   else
1469     # As a last resort, use the slow shell script.  We don't cache a
1470     # path for INSTALL within a source directory, because that will
1471     # break other packages using the cache if that directory is
1472     # removed, or if the path is relative.
1473     INSTALL=$ac_install_sh
1474   fi
1475 fi
1476 echo "$as_me:$LINENO: result: $INSTALL" >&5
1477 echo "${ECHO_T}$INSTALL" >&6
1478
1479 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1480 # It thinks the first close brace ends the variable substitution.
1481 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1482
1483 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1484
1485 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1486
1487 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1488 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1489 # Just in case
1490 sleep 1
1491 echo timestamp > conftest.file
1492 # Do `set' in a subshell so we don't clobber the current shell's
1493 # arguments.  Must try -L first in case configure is actually a
1494 # symlink; some systems play weird games with the mod time of symlinks
1495 # (eg FreeBSD returns the mod time of the symlink's containing
1496 # directory).
1497 if (
1498    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1499    if test "$*" = "X"; then
1500       # -L didn't work.
1501       set X `ls -t $srcdir/configure conftest.file`
1502    fi
1503    rm -f conftest.file
1504    if test "$*" != "X $srcdir/configure conftest.file" \
1505       && test "$*" != "X conftest.file $srcdir/configure"; then
1506
1507       # If neither matched, then we have a broken ls.  This can happen
1508       # if, for instance, CONFIG_SHELL is bash and it inherits a
1509       # broken ls alias from the environment.  This has actually
1510       # happened.  Such a system could not be considered "sane".
1511       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1512 alias in your environment" >&5
1513 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1514 alias in your environment" >&2;}
1515    { (exit 1); exit 1; }; }
1516    fi
1517
1518    test "$2" = conftest.file
1519    )
1520 then
1521    # Ok.
1522    :
1523 else
1524    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1525 Check your system clock" >&5
1526 echo "$as_me: error: newly created file is older than distributed files!
1527 Check your system clock" >&2;}
1528    { (exit 1); exit 1; }; }
1529 fi
1530 echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1532 test "$program_prefix" != NONE &&
1533   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1534 # Use a double $ so make ignores it.
1535 test "$program_suffix" != NONE &&
1536   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1537 # Double any \ or $.  echo might interpret backslashes.
1538 # By default was `s,x,x', remove it if useless.
1539 cat <<\_ACEOF >conftest.sed
1540 s/[\\$]/&&/g;s/;s,x,x,$//
1541 _ACEOF
1542 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1543 rm conftest.sed
1544
1545
1546 # expand $ac_aux_dir to an absolute path
1547 am_aux_dir=`cd $ac_aux_dir && pwd`
1548
1549 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1550 # Use eval to expand $SHELL
1551 if eval "$MISSING --run true"; then
1552   am_missing_run="$MISSING --run "
1553 else
1554   am_missing_run=
1555   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1556 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1557 fi
1558
1559 for ac_prog in gawk mawk nawk awk
1560 do
1561   # Extract the first word of "$ac_prog", so it can be a program name with args.
1562 set dummy $ac_prog; ac_word=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_AWK+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   if test -n "$AWK"; then
1569   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1570 else
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1573 do
1574   IFS=$as_save_IFS
1575   test -z "$as_dir" && as_dir=.
1576   for ac_exec_ext in '' $ac_executable_extensions; do
1577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578     ac_cv_prog_AWK="$ac_prog"
1579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580     break 2
1581   fi
1582 done
1583 done
1584
1585 fi
1586 fi
1587 AWK=$ac_cv_prog_AWK
1588 if test -n "$AWK"; then
1589   echo "$as_me:$LINENO: result: $AWK" >&5
1590 echo "${ECHO_T}$AWK" >&6
1591 else
1592   echo "$as_me:$LINENO: result: no" >&5
1593 echo "${ECHO_T}no" >&6
1594 fi
1595
1596   test -n "$AWK" && break
1597 done
1598
1599 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1600 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1601 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1602 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   cat >conftest.make <<\_ACEOF
1606 all:
1607         @echo 'ac_maketemp="${MAKE}"'
1608 _ACEOF
1609 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1610 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1611 if test -n "$ac_maketemp"; then
1612   eval ac_cv_prog_make_${ac_make}_set=yes
1613 else
1614   eval ac_cv_prog_make_${ac_make}_set=no
1615 fi
1616 rm -f conftest.make
1617 fi
1618 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1619   echo "$as_me:$LINENO: result: yes" >&5
1620 echo "${ECHO_T}yes" >&6
1621   SET_MAKE=
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625   SET_MAKE="MAKE=${MAKE-make}"
1626 fi
1627
1628  # test to see if srcdir already configured
1629 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1630    test -f $srcdir/config.status; then
1631   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1632 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1633    { (exit 1); exit 1; }; }
1634 fi
1635
1636 # Define the identity of the package.
1637  PACKAGE=fgis
1638  VERSION=0.0.1
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE "$PACKAGE"
1643 _ACEOF
1644
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define VERSION "$VERSION"
1648 _ACEOF
1649
1650 # Some tools Automake needs.
1651
1652 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1653
1654
1655 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1656
1657
1658 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1659
1660
1661 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1662
1663
1664 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1665
1666
1667 AMTAR=${AMTAR-"${am_missing_run}tar"}
1668
1669 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1670
1671 # Installed binaries are usually stripped using `strip' when the user
1672 # run `make install-strip'.  However `strip' might not be the right
1673 # tool to use in cross-compilation environments, therefore Automake
1674 # will honor the `STRIP' environment variable to overrule this program.
1675 if test "$cross_compiling" != no; then
1676   if test -n "$ac_tool_prefix"; then
1677   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1678 set dummy ${ac_tool_prefix}strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_STRIP+set}" = set; then
1682   echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684   if test -n "$STRIP"; then
1685   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   for ac_exec_ext in '' $ac_executable_extensions; do
1693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696     break 2
1697   fi
1698 done
1699 done
1700
1701 fi
1702 fi
1703 STRIP=$ac_cv_prog_STRIP
1704 if test -n "$STRIP"; then
1705   echo "$as_me:$LINENO: result: $STRIP" >&5
1706 echo "${ECHO_T}$STRIP" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712 fi
1713 if test -z "$ac_cv_prog_STRIP"; then
1714   ac_ct_STRIP=$STRIP
1715   # Extract the first word of "strip", so it can be a program name with args.
1716 set dummy strip; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$ac_ct_STRIP"; then
1723   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_ac_ct_STRIP="strip"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1740 fi
1741 fi
1742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1743 if test -n "$ac_ct_STRIP"; then
1744   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1745 echo "${ECHO_T}$ac_ct_STRIP" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751   STRIP=$ac_ct_STRIP
1752 else
1753   STRIP="$ac_cv_prog_STRIP"
1754 fi
1755
1756 fi
1757 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1758
1759 # We need awk for the "check" target.  The system "awk" is bad on
1760 # some platforms.
1761
1762
1763
1764 # AC_CONFIG_SRCDIR([include/regex.h])
1765 # Add the stamp file to the list of files AC keeps track of,
1766 # along with our hook.
1767 ac_config_headers="$ac_config_headers include/config.h"
1768
1769
1770
1771
1772
1773 # Check whether --enable-shared or --disable-shared was given.
1774 if test "${enable_shared+set}" = set; then
1775   enableval="$enable_shared"
1776   p=${PACKAGE-default}
1777 case $enableval in
1778 yes) enable_shared=yes ;;
1779 no) enable_shared=no ;;
1780 *)
1781   enable_shared=no
1782   # Look at the argument we got.  We use all the common list separators.
1783   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1784   for pkg in $enableval; do
1785     if test "X$pkg" = "X$p"; then
1786       enable_shared=yes
1787     fi
1788   done
1789   IFS="$ac_save_ifs"
1790   ;;
1791 esac
1792 else
1793   enable_shared=yes
1794 fi;
1795 # Check whether --enable-static or --disable-static was given.
1796 if test "${enable_static+set}" = set; then
1797   enableval="$enable_static"
1798   p=${PACKAGE-default}
1799 case $enableval in
1800 yes) enable_static=yes ;;
1801 no) enable_static=no ;;
1802 *)
1803   enable_static=no
1804   # Look at the argument we got.  We use all the common list separators.
1805   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1806   for pkg in $enableval; do
1807     if test "X$pkg" = "X$p"; then
1808       enable_static=yes
1809     fi
1810   done
1811   IFS="$ac_save_ifs"
1812   ;;
1813 esac
1814 else
1815   enable_static=yes
1816 fi;
1817 # Check whether --enable-fast-install or --disable-fast-install was given.
1818 if test "${enable_fast_install+set}" = set; then
1819   enableval="$enable_fast_install"
1820   p=${PACKAGE-default}
1821 case $enableval in
1822 yes) enable_fast_install=yes ;;
1823 no) enable_fast_install=no ;;
1824 *)
1825   enable_fast_install=no
1826   # Look at the argument we got.  We use all the common list separators.
1827   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1828   for pkg in $enableval; do
1829     if test "X$pkg" = "X$p"; then
1830       enable_fast_install=yes
1831     fi
1832   done
1833   IFS="$ac_save_ifs"
1834   ;;
1835 esac
1836 else
1837   enable_fast_install=yes
1838 fi;
1839 # Make sure we can run config.sub.
1840 $ac_config_sub sun4 >/dev/null 2>&1 ||
1841   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1842 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1843    { (exit 1); exit 1; }; }
1844
1845 echo "$as_me:$LINENO: checking build system type" >&5
1846 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1847 if test "${ac_cv_build+set}" = set; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   ac_cv_build_alias=$build_alias
1851 test -z "$ac_cv_build_alias" &&
1852   ac_cv_build_alias=`$ac_config_guess`
1853 test -z "$ac_cv_build_alias" &&
1854   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1855 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1856    { (exit 1); exit 1; }; }
1857 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1858   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1859 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1860    { (exit 1); exit 1; }; }
1861
1862 fi
1863 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1864 echo "${ECHO_T}$ac_cv_build" >&6
1865 build=$ac_cv_build
1866 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1867 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1868 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1869
1870
1871 echo "$as_me:$LINENO: checking host system type" >&5
1872 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1873 if test "${ac_cv_host+set}" = set; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   ac_cv_host_alias=$host_alias
1877 test -z "$ac_cv_host_alias" &&
1878   ac_cv_host_alias=$ac_cv_build_alias
1879 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1880   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1881 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1882    { (exit 1); exit 1; }; }
1883
1884 fi
1885 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1886 echo "${ECHO_T}$ac_cv_host" >&6
1887 host=$ac_cv_host
1888 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1889 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1890 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1891
1892
1893 rm -f .deps 2>/dev/null
1894 mkdir .deps 2>/dev/null
1895 if test -d .deps; then
1896   DEPDIR=.deps
1897 else
1898   # MS-DOS does not allow filenames that begin with a dot.
1899   DEPDIR=_deps
1900 fi
1901 rmdir .deps 2>/dev/null
1902
1903
1904 ac_config_commands="$ac_config_commands depfiles"
1905
1906
1907 am_make=${MAKE-make}
1908 cat > confinc << 'END'
1909 doit:
1910         @echo done
1911 END
1912 # If we don't find an include directive, just comment out the code.
1913 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1914 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1915 am__include="#"
1916 am__quote=
1917 _am_result=none
1918 # First try GNU make style include.
1919 echo "include confinc" > confmf
1920 # We grep out `Entering directory' and `Leaving directory'
1921 # messages which can occur if `w' ends up in MAKEFLAGS.
1922 # In particular we don't look at `^make:' because GNU make might
1923 # be invoked under some other name (usually "gmake"), in which
1924 # case it prints its new name instead of `make'.
1925 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1926    am__include=include
1927    am__quote=
1928    _am_result=GNU
1929 fi
1930 # Now try BSD make style include.
1931 if test "$am__include" = "#"; then
1932    echo '.include "confinc"' > confmf
1933    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1934       am__include=.include
1935       am__quote="\""
1936       _am_result=BSD
1937    fi
1938 fi
1939
1940
1941 echo "$as_me:$LINENO: result: $_am_result" >&5
1942 echo "${ECHO_T}$_am_result" >&6
1943 rm -f confinc confmf
1944
1945 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1946 if test "${enable_dependency_tracking+set}" = set; then
1947   enableval="$enable_dependency_tracking"
1948
1949 fi;
1950 if test "x$enable_dependency_tracking" != xno; then
1951   am_depcomp="$ac_aux_dir/depcomp"
1952   AMDEPBACKSLASH='\'
1953 fi
1954
1955
1956 if test "x$enable_dependency_tracking" != xno; then
1957   AMDEP_TRUE=
1958   AMDEP_FALSE='#'
1959 else
1960   AMDEP_TRUE='#'
1961   AMDEP_FALSE=
1962 fi
1963
1964
1965
1966 ac_ext=c
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 if test -n "$ac_tool_prefix"; then
1972   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$CC"; then
1980   ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007 fi
2008 if test -z "$ac_cv_prog_CC"; then
2009   ac_ct_CC=$CC
2010   # Extract the first word of "gcc", so it can be a program name with args.
2011 set dummy gcc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   if test -n "$ac_ct_CC"; then
2018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   for ac_exec_ext in '' $ac_executable_extensions; do
2026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027     ac_cv_prog_ac_ct_CC="gcc"
2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032 done
2033
2034 fi
2035 fi
2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2037 if test -n "$ac_ct_CC"; then
2038   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2039 echo "${ECHO_T}$ac_ct_CC" >&6
2040 else
2041   echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043 fi
2044
2045   CC=$ac_ct_CC
2046 else
2047   CC="$ac_cv_prog_CC"
2048 fi
2049
2050 if test -z "$CC"; then
2051   if test -n "$ac_tool_prefix"; then
2052   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069     ac_cv_prog_CC="${ac_tool_prefix}cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080   echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6
2082 else
2083   echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2085 fi
2086
2087 fi
2088 if test -z "$ac_cv_prog_CC"; then
2089   ac_ct_CC=$CC
2090   # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   if test -n "$ac_ct_CC"; then
2098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   for ac_exec_ext in '' $ac_executable_extensions; do
2106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107     ac_cv_prog_ac_ct_CC="cc"
2108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109     break 2
2110   fi
2111 done
2112 done
2113
2114 fi
2115 fi
2116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2117 if test -n "$ac_ct_CC"; then
2118   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2119 echo "${ECHO_T}$ac_ct_CC" >&6
2120 else
2121   echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2123 fi
2124
2125   CC=$ac_ct_CC
2126 else
2127   CC="$ac_cv_prog_CC"
2128 fi
2129
2130 fi
2131 if test -z "$CC"; then
2132   # Extract the first word of "cc", so it can be a program name with args.
2133 set dummy cc; ac_word=$2
2134 echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137   echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139   if test -n "$CC"; then
2140   ac_cv_prog_CC="$CC" # Let the user override the test.
2141 else
2142   ac_prog_rejected=no
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2151        ac_prog_rejected=yes
2152        continue
2153      fi
2154     ac_cv_prog_CC="cc"
2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156     break 2
2157   fi
2158 done
2159 done
2160
2161 if test $ac_prog_rejected = yes; then
2162   # We found a bogon in the path, so make sure we never use it.
2163   set dummy $ac_cv_prog_CC
2164   shift
2165   if test $# != 0; then
2166     # We chose a different compiler from the bogus one.
2167     # However, it has the same basename, so the bogon will be chosen
2168     # first if we set CC to just the basename; use the full file name.
2169     shift
2170     set dummy "$as_dir/$ac_word" ${1+"$@"}
2171     shift
2172     ac_cv_prog_CC="$@"
2173   fi
2174 fi
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179   echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6
2181 else
2182   echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6
2184 fi
2185
2186 fi
2187 if test -z "$CC"; then
2188   if test -n "$ac_tool_prefix"; then
2189   for ac_prog in cl
2190   do
2191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196   echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198   if test -n "$CC"; then
2199   ac_cv_prog_CC="$CC" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204   IFS=$as_save_IFS
2205   test -z "$as_dir" && as_dir=.
2206   for ac_exec_ext in '' $ac_executable_extensions; do
2207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210     break 2
2211   fi
2212 done
2213 done
2214
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219   echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6
2221 else
2222   echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2224 fi
2225
2226     test -n "$CC" && break
2227   done
2228 fi
2229 if test -z "$CC"; then
2230   ac_ct_CC=$CC
2231   for ac_prog in cl
2232 do
2233   # Extract the first word of "$ac_prog", so it can be a program name with args.
2234 set dummy $ac_prog; ac_word=$2
2235 echo "$as_me:$LINENO: checking for $ac_word" >&5
2236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238   echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240   if test -n "$ac_ct_CC"; then
2241   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242 else
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246   IFS=$as_save_IFS
2247   test -z "$as_dir" && as_dir=.
2248   for ac_exec_ext in '' $ac_executable_extensions; do
2249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2250     ac_cv_prog_ac_ct_CC="$ac_prog"
2251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252     break 2
2253   fi
2254 done
2255 done
2256
2257 fi
2258 fi
2259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2260 if test -n "$ac_ct_CC"; then
2261   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2262 echo "${ECHO_T}$ac_ct_CC" >&6
2263 else
2264   echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2266 fi
2267
2268   test -n "$ac_ct_CC" && break
2269 done
2270
2271   CC=$ac_ct_CC
2272 fi
2273
2274 fi
2275
2276
2277 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2278 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2279    { (exit 1); exit 1; }; }
2280
2281 # Provide some information about the compiler.
2282 echo "$as_me:$LINENO:" \
2283      "checking for C compiler version" >&5
2284 ac_compiler=`set X $ac_compile; echo $2`
2285 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2286   (eval $ac_compiler --version </dev/null >&5) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }
2290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2291   (eval $ac_compiler -v </dev/null >&5) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }
2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2296   (eval $ac_compiler -V </dev/null >&5) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }
2300
2301 cat >conftest.$ac_ext <<_ACEOF
2302 #line $LINENO "configure"
2303 #include "confdefs.h"
2304
2305 #ifdef F77_DUMMY_MAIN
2306 #  ifdef __cplusplus
2307      extern "C"
2308 #  endif
2309    int F77_DUMMY_MAIN() { return 1; }
2310 #endif
2311 int
2312 main ()
2313 {
2314
2315   ;
2316   return 0;
2317 }
2318 _ACEOF
2319 ac_clean_files_save=$ac_clean_files
2320 ac_clean_files="$ac_clean_files a.out a.exe"
2321 # Try to create an executable without -o first, disregard a.out.
2322 # It will help us diagnose broken compilers, and finding out an intuition
2323 # of exeext.
2324 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2325 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2326 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2328   (eval $ac_link_default) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   # Find the output, starting from the most likely.  This scheme is
2333 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2334 # resort.
2335
2336 # Be careful to initialize this variable, since it used to be cached.
2337 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2338 ac_cv_exeext=
2339 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2340                 ls a.out conftest 2>/dev/null;
2341                 ls a.* conftest.* 2>/dev/null`; do
2342   case $ac_file in
2343     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2344     a.out ) # We found the default executable, but exeext='' is most
2345             # certainly right.
2346             break;;
2347     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2348           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2349           export ac_cv_exeext
2350           break;;
2351     * ) break;;
2352   esac
2353 done
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2358 echo "$as_me: error: C compiler cannot create executables" >&2;}
2359    { (exit 77); exit 77; }; }
2360 fi
2361
2362 ac_exeext=$ac_cv_exeext
2363 echo "$as_me:$LINENO: result: $ac_file" >&5
2364 echo "${ECHO_T}$ac_file" >&6
2365
2366 # Check the compiler produces executables we can run.  If not, either
2367 # the compiler is broken, or we cross compile.
2368 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2369 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2370 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2371 # If not cross compiling, check that we can run a simple program.
2372 if test "$cross_compiling" != yes; then
2373   if { ac_try='./$ac_file'
2374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; }; then
2379     cross_compiling=no
2380   else
2381     if test "$cross_compiling" = maybe; then
2382         cross_compiling=yes
2383     else
2384         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2385 If you meant to cross compile, use \`--host'." >&5
2386 echo "$as_me: error: cannot run C compiled programs.
2387 If you meant to cross compile, use \`--host'." >&2;}
2388    { (exit 1); exit 1; }; }
2389     fi
2390   fi
2391 fi
2392 echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6
2394
2395 rm -f a.out a.exe conftest$ac_cv_exeext
2396 ac_clean_files=$ac_clean_files_save
2397 # Check the compiler produces executables we can run.  If not, either
2398 # the compiler is broken, or we cross compile.
2399 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2400 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2401 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2402 echo "${ECHO_T}$cross_compiling" >&6
2403
2404 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2405 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2407   (eval $ac_link) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; then
2411   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2412 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2413 # work properly (i.e., refer to `conftest.exe'), while it won't with
2414 # `rm'.
2415 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2416   case $ac_file in
2417     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2418     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419           export ac_cv_exeext
2420           break;;
2421     * ) break;;
2422   esac
2423 done
2424 else
2425   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2426 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2427    { (exit 1); exit 1; }; }
2428 fi
2429
2430 rm -f conftest$ac_cv_exeext
2431 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2432 echo "${ECHO_T}$ac_cv_exeext" >&6
2433
2434 rm -f conftest.$ac_ext
2435 EXEEXT=$ac_cv_exeext
2436 ac_exeext=$EXEEXT
2437 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2438 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2439 if test "${ac_cv_objext+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   cat >conftest.$ac_ext <<_ACEOF
2443 #line $LINENO "configure"
2444 #include "confdefs.h"
2445
2446 #ifdef F77_DUMMY_MAIN
2447 #  ifdef __cplusplus
2448      extern "C"
2449 #  endif
2450    int F77_DUMMY_MAIN() { return 1; }
2451 #endif
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 rm -f conftest.o conftest.obj
2461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462   (eval $ac_compile) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; then
2466   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2467   case $ac_file in
2468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2469     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2470        break;;
2471   esac
2472 done
2473 else
2474   echo "$as_me: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2476 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2477 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2478    { (exit 1); exit 1; }; }
2479 fi
2480
2481 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2482 fi
2483 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2484 echo "${ECHO_T}$ac_cv_objext" >&6
2485 OBJEXT=$ac_cv_objext
2486 ac_objext=$OBJEXT
2487 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2488 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2489 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   cat >conftest.$ac_ext <<_ACEOF
2493 #line $LINENO "configure"
2494 #include "confdefs.h"
2495
2496 #ifdef F77_DUMMY_MAIN
2497 #  ifdef __cplusplus
2498      extern "C"
2499 #  endif
2500    int F77_DUMMY_MAIN() { return 1; }
2501 #endif
2502 int
2503 main ()
2504 {
2505 #ifndef __GNUC__
2506        choke me
2507 #endif
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.$ac_objext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515   (eval $ac_compile) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); } &&
2519          { ac_try='test -s conftest.$ac_objext'
2520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521   (eval $ac_try) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; }; then
2525   ac_compiler_gnu=yes
2526 else
2527   echo "$as_me: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 ac_compiler_gnu=no
2530 fi
2531 rm -f conftest.$ac_objext conftest.$ac_ext
2532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2533
2534 fi
2535 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2537 GCC=`test $ac_compiler_gnu = yes && echo yes`
2538 ac_test_CFLAGS=${CFLAGS+set}
2539 ac_save_CFLAGS=$CFLAGS
2540 CFLAGS="-g"
2541 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2542 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_g+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   cat >conftest.$ac_ext <<_ACEOF
2547 #line $LINENO "configure"
2548 #include "confdefs.h"
2549
2550 #ifdef F77_DUMMY_MAIN
2551 #  ifdef __cplusplus
2552      extern "C"
2553 #  endif
2554    int F77_DUMMY_MAIN() { return 1; }
2555 #endif
2556 int
2557 main ()
2558 {
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566   (eval $ac_compile) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   ac_cv_prog_cc_g=yes
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 ac_cv_prog_cc_g=no
2581 fi
2582 rm -f conftest.$ac_objext conftest.$ac_ext
2583 fi
2584 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2585 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2586 if test "$ac_test_CFLAGS" = set; then
2587   CFLAGS=$ac_save_CFLAGS
2588 elif test $ac_cv_prog_cc_g = yes; then
2589   if test "$GCC" = yes; then
2590     CFLAGS="-g -O2"
2591   else
2592     CFLAGS="-g"
2593   fi
2594 else
2595   if test "$GCC" = yes; then
2596     CFLAGS="-O2"
2597   else
2598     CFLAGS=
2599   fi
2600 fi
2601 # Some people use a C++ compiler to compile C.  Since we use `exit',
2602 # in C++ we need to declare it.  In case someone uses the same compiler
2603 # for both compiling C and C++ we need to have the C++ compiler decide
2604 # the declaration of exit, since it's the most demanding environment.
2605 cat >conftest.$ac_ext <<_ACEOF
2606 #ifndef __cplusplus
2607   choke me
2608 #endif
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   for ac_declaration in \
2623    ''\
2624    '#include <stdlib.h>' \
2625    'extern "C" void std::exit (int) throw (); using std::exit;' \
2626    'extern "C" void std::exit (int); using std::exit;' \
2627    'extern "C" void exit (int) throw ();' \
2628    'extern "C" void exit (int);' \
2629    'void exit (int);'
2630 do
2631   cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 #include "confdefs.h"
2634 #include <stdlib.h>
2635 $ac_declaration
2636 #ifdef F77_DUMMY_MAIN
2637 #  ifdef __cplusplus
2638      extern "C"
2639 #  endif
2640    int F77_DUMMY_MAIN() { return 1; }
2641 #endif
2642 int
2643 main ()
2644 {
2645 exit (42);
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652   (eval $ac_compile) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   :
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2666 continue
2667 fi
2668 rm -f conftest.$ac_objext conftest.$ac_ext
2669   cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 #include "confdefs.h"
2672 $ac_declaration
2673 #ifdef F77_DUMMY_MAIN
2674 #  ifdef __cplusplus
2675      extern "C"
2676 #  endif
2677    int F77_DUMMY_MAIN() { return 1; }
2678 #endif
2679 int
2680 main ()
2681 {
2682 exit (42);
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 rm -f conftest.$ac_objext
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689   (eval $ac_compile) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693          { ac_try='test -s conftest.$ac_objext'
2694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; }; then
2699   break
2700 else
2701   echo "$as_me: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 fi
2704 rm -f conftest.$ac_objext conftest.$ac_ext
2705 done
2706 rm -f conftest*
2707 if test -n "$ac_declaration"; then
2708   echo '#ifdef __cplusplus' >>confdefs.h
2709   echo $ac_declaration      >>confdefs.h
2710   echo '#endif'             >>confdefs.h
2711 fi
2712
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2716 fi
2717 rm -f conftest.$ac_objext conftest.$ac_ext
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724 depcc="$CC"   am_compiler_list=
2725
2726 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2727 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2728 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2732   # We make a subdir and do the tests there.  Otherwise we can end up
2733   # making bogus files that we don't know about and never remove.  For
2734   # instance it was reported that on HP-UX the gcc test will end up
2735   # making a dummy file named `D' -- because `-MD' means `put the output
2736   # in D'.
2737   mkdir conftest.dir
2738   # Copy depcomp to subdir because otherwise we won't find it if we're
2739   # using a relative directory.
2740   cp "$am_depcomp" conftest.dir
2741   cd conftest.dir
2742
2743   am_cv_CC_dependencies_compiler_type=none
2744   if test "$am_compiler_list" = ""; then
2745      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2746   fi
2747   for depmode in $am_compiler_list; do
2748     # We need to recreate these files for each test, as the compiler may
2749     # overwrite some of them when testing with obscure command lines.
2750     # This happens at least with the AIX C compiler.
2751     echo '#include "conftest.h"' > conftest.c
2752     echo 'int i;' > conftest.h
2753     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2754
2755     case $depmode in
2756     nosideeffect)
2757       # after this tag, mechanisms are not by side-effect, so they'll
2758       # only be used when explicitly requested
2759       if test "x$enable_dependency_tracking" = xyes; then
2760         continue
2761       else
2762         break
2763       fi
2764       ;;
2765     none) break ;;
2766     esac
2767     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2768     # mode.  It turns out that the SunPro C++ compiler does not properly
2769     # handle `-M -o', and we need to detect this.
2770     if depmode=$depmode \
2771        source=conftest.c object=conftest.o \
2772        depfile=conftest.Po tmpdepfile=conftest.TPo \
2773        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2774        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2775        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2776       am_cv_CC_dependencies_compiler_type=$depmode
2777       break
2778     fi
2779   done
2780
2781   cd ..
2782   rm -rf conftest.dir
2783 else
2784   am_cv_CC_dependencies_compiler_type=none
2785 fi
2786
2787 fi
2788 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2789 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2790 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2791
2792
2793 # Find the correct PATH separator.  Usually this is `:', but
2794 # DJGPP uses `;' like DOS.
2795 if test "X${PATH_SEPARATOR+set}" != Xset; then
2796   UNAME=${UNAME-`uname 2>/dev/null`}
2797   case X$UNAME in
2798     *-DOS) lt_cv_sys_path_separator=';' ;;
2799     *)     lt_cv_sys_path_separator=':' ;;
2800   esac
2801   PATH_SEPARATOR=$lt_cv_sys_path_separator
2802 fi
2803
2804
2805 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2806 if test "${with_gnu_ld+set}" = set; then
2807   withval="$with_gnu_ld"
2808   test "$withval" = no || with_gnu_ld=yes
2809 else
2810   with_gnu_ld=no
2811 fi;
2812 ac_prog=ld
2813 if test "$GCC" = yes; then
2814   # Check if gcc -print-prog-name=ld gives a path.
2815   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2816 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2817   case $host in
2818   *-*-mingw*)
2819     # gcc leaves a trailing carriage return which upsets mingw
2820     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2821   *)
2822     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2823   esac
2824   case $ac_prog in
2825     # Accept absolute paths.
2826     [\\/]* | [A-Za-z]:[\\/]*)
2827       re_direlt='/[^/][^/]*/\.\./'
2828       # Canonicalize the path of ld
2829       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2830       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2831         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2832       done
2833       test -z "$LD" && LD="$ac_prog"
2834       ;;
2835   "")
2836     # If it fails, then pretend we aren't using GCC.
2837     ac_prog=ld
2838     ;;
2839   *)
2840     # If it is relative, then search for the first ld in PATH.
2841     with_gnu_ld=unknown
2842     ;;
2843   esac
2844 elif test "$with_gnu_ld" = yes; then
2845   echo "$as_me:$LINENO: checking for GNU ld" >&5
2846 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2847 else
2848   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2849 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2850 fi
2851 if test "${lt_cv_path_LD+set}" = set; then
2852   echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854   if test -z "$LD"; then
2855   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2856   for ac_dir in $PATH; do
2857     test -z "$ac_dir" && ac_dir=.
2858     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2859       lt_cv_path_LD="$ac_dir/$ac_prog"
2860       # Check to see if the program is GNU ld.  I'd rather use --version,
2861       # but apparently some GNU ld's only accept -v.
2862       # Break only if it was the GNU/non-GNU ld that we prefer.
2863       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2864         test "$with_gnu_ld" != no && break
2865       else
2866         test "$with_gnu_ld" != yes && break
2867       fi
2868     fi
2869   done
2870   IFS="$ac_save_ifs"
2871 else
2872   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2873 fi
2874 fi
2875
2876 LD="$lt_cv_path_LD"
2877 if test -n "$LD"; then
2878   echo "$as_me:$LINENO: result: $LD" >&5
2879 echo "${ECHO_T}$LD" >&6
2880 else
2881   echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6
2883 fi
2884 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2885 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2886    { (exit 1); exit 1; }; }
2887 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2888 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2889 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2893 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2894   lt_cv_prog_gnu_ld=yes
2895 else
2896   lt_cv_prog_gnu_ld=no
2897 fi
2898 fi
2899 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2900 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2901 with_gnu_ld=$lt_cv_prog_gnu_ld
2902
2903
2904 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2905 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2906 if test "${lt_cv_ld_reload_flag+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909   lt_cv_ld_reload_flag='-r'
2910 fi
2911 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2912 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2913 reload_flag=$lt_cv_ld_reload_flag
2914 test -n "$reload_flag" && reload_flag=" $reload_flag"
2915
2916 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2917 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2918 if test "${lt_cv_path_NM+set}" = set; then
2919   echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921   if test -n "$NM"; then
2922   # Let the user override the test.
2923   lt_cv_path_NM="$NM"
2924 else
2925   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2926   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2927     test -z "$ac_dir" && ac_dir=.
2928     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2929     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2930       # Check to see if the nm accepts a BSD-compat flag.
2931       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2932       #   nm: unknown option "B" ignored
2933       # Tru64's nm complains that /dev/null is an invalid object file
2934       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2935         lt_cv_path_NM="$tmp_nm -B"
2936         break
2937       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2938         lt_cv_path_NM="$tmp_nm -p"
2939         break
2940       else
2941         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2942         continue # so that we can try to find one that supports BSD flags
2943       fi
2944     fi
2945   done
2946   IFS="$ac_save_ifs"
2947   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2948 fi
2949 fi
2950
2951 NM="$lt_cv_path_NM"
2952 echo "$as_me:$LINENO: result: $NM" >&5
2953 echo "${ECHO_T}$NM" >&6
2954
2955 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2957 LN_S=$as_ln_s
2958 if test "$LN_S" = "ln -s"; then
2959   echo "$as_me:$LINENO: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2961 else
2962   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2963 echo "${ECHO_T}no, using $LN_S" >&6
2964 fi
2965
2966 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2967 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2968 if test "${lt_cv_deplibs_check_method+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   lt_cv_file_magic_cmd='$MAGIC_CMD'
2972 lt_cv_file_magic_test_file=
2973 lt_cv_deplibs_check_method='unknown'
2974 # Need to set the preceding variable on all platforms that support
2975 # interlibrary dependencies.
2976 # 'none' -- dependencies not supported.
2977 # `unknown' -- same as none, but documents that we really don't know.
2978 # 'pass_all' -- all dependencies passed with no checks.
2979 # 'test_compile' -- check by making test program.
2980 # 'file_magic [[regex]]' -- check by looking for files in library path
2981 # which responds to the $file_magic_cmd with a given egrep regex.
2982 # If you have `file' or equivalent on your system and you're not sure
2983 # whether `pass_all' will *always* work, you probably want this one.
2984
2985 case $host_os in
2986 aix4* | aix5*)
2987   lt_cv_deplibs_check_method=pass_all
2988   ;;
2989
2990 beos*)
2991   lt_cv_deplibs_check_method=pass_all
2992   ;;
2993
2994 bsdi4*)
2995   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2996   lt_cv_file_magic_cmd='/usr/bin/file -L'
2997   lt_cv_file_magic_test_file=/shlib/libc.so
2998   ;;
2999
3000 cygwin* | mingw* | pw32*)
3001   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3002   lt_cv_file_magic_cmd='$OBJDUMP -f'
3003   ;;
3004
3005 darwin* | rhapsody*)
3006   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3007   lt_cv_file_magic_cmd='/usr/bin/file -L'
3008   case "$host_os" in
3009   rhapsody* | darwin1.[012])
3010     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3011     ;;
3012   *) # Darwin 1.3 on
3013     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3014     ;;
3015   esac
3016   ;;
3017
3018 freebsd*)
3019   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3020     case $host_cpu in
3021     i*86 )
3022       # Not sure whether the presence of OpenBSD here was a mistake.
3023       # Let's accept both of them until this is cleared up.
3024       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3025       lt_cv_file_magic_cmd=/usr/bin/file
3026       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3027       ;;
3028     esac
3029   else
3030     lt_cv_deplibs_check_method=pass_all
3031   fi
3032   ;;
3033
3034 gnu*)
3035   lt_cv_deplibs_check_method=pass_all
3036   ;;
3037
3038 hpux10.20*|hpux11*)
3039   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3040   lt_cv_file_magic_cmd=/usr/bin/file
3041   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3042   ;;
3043
3044 irix5* | irix6* | nonstopux*)
3045   case $host_os in
3046   irix5* | nonstopux*)
3047     # this will be overridden with pass_all, but let us keep it just in case
3048     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3049     ;;
3050   *)
3051     case $LD in
3052     *-32|*"-32 ") libmagic=32-bit;;
3053     *-n32|*"-n32 ") libmagic=N32;;
3054     *-64|*"-64 ") libmagic=64-bit;;
3055     *) libmagic=never-match;;
3056     esac
3057     # this will be overridden with pass_all, but let us keep it just in case
3058     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3059     ;;
3060   esac
3061   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3062   lt_cv_deplibs_check_method=pass_all
3063   ;;
3064
3065 # This must be Linux ELF.
3066 linux-gnu*)
3067   lt_cv_deplibs_check_method=pass_all
3068   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3069   ;;
3070
3071 netbsd*)
3072   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3073     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3074   else
3075     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3076   fi
3077   ;;
3078
3079 newos6*)
3080   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3081   lt_cv_file_magic_cmd=/usr/bin/file
3082   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3083   ;;
3084
3085 openbsd*)
3086   lt_cv_file_magic_cmd=/usr/bin/file
3087   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3088   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3089     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3090   else
3091     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3092   fi
3093   ;;
3094
3095 osf3* | osf4* | osf5*)
3096   # this will be overridden with pass_all, but let us keep it just in case
3097   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3098   lt_cv_file_magic_test_file=/shlib/libc.so
3099   lt_cv_deplibs_check_method=pass_all
3100   ;;
3101
3102 sco3.2v5*)
3103   lt_cv_deplibs_check_method=pass_all
3104   ;;
3105
3106 solaris*)
3107   lt_cv_deplibs_check_method=pass_all
3108   lt_cv_file_magic_test_file=/lib/libc.so
3109   ;;
3110
3111 sysv5uw[78]* | sysv4*uw2*)
3112   lt_cv_deplibs_check_method=pass_all
3113   ;;
3114
3115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3116   case $host_vendor in
3117   motorola)
3118     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]'
3119     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3120     ;;
3121   ncr)
3122     lt_cv_deplibs_check_method=pass_all
3123     ;;
3124   sequent)
3125     lt_cv_file_magic_cmd='/bin/file'
3126     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3127     ;;
3128   sni)
3129     lt_cv_file_magic_cmd='/bin/file'
3130     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3131     lt_cv_file_magic_test_file=/lib/libc.so
3132     ;;
3133   esac
3134   ;;
3135 esac
3136
3137 fi
3138 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3139 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3140 file_magic_cmd=$lt_cv_file_magic_cmd
3141 deplibs_check_method=$lt_cv_deplibs_check_method
3142
3143
3144
3145
3146
3147
3148
3149
3150 # Check for command to grab the raw symbol name followed by C symbol from nm.
3151 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3152 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3153 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156
3157 # These are sane defaults that work on at least a few old systems.
3158 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3159
3160 # Character class describing NM global symbol codes.
3161 symcode='[BCDEGRST]'
3162
3163 # Regexp to match symbols that can be accessed directly from C.
3164 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3165
3166 # Transform the above into a raw symbol and a C symbol.
3167 symxfrm='\1 \2\3 \3'
3168
3169 # Transform an extracted symbol line into a proper C declaration
3170 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3171
3172 # Transform an extracted symbol line into symbol name and symbol address
3173 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'"
3174
3175 # Define system-specific variables.
3176 case $host_os in
3177 aix*)
3178   symcode='[BCDT]'
3179   ;;
3180 cygwin* | mingw* | pw32*)
3181   symcode='[ABCDGISTW]'
3182   ;;
3183 hpux*) # Its linker distinguishes data from code symbols
3184   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3185   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'"
3186   ;;
3187 irix* | nonstopux*)
3188   symcode='[BCDEGRST]'
3189   ;;
3190 solaris* | sysv5*)
3191   symcode='[BDT]'
3192   ;;
3193 sysv4)
3194   symcode='[DFNSTU]'
3195   ;;
3196 esac
3197
3198 # Handle CRLF in mingw tool chain
3199 opt_cr=
3200 case $host_os in
3201 mingw*)
3202   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3203   ;;
3204 esac
3205
3206 # If we're using GNU nm, then use its standard symbol codes.
3207 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3208   symcode='[ABCDGISTW]'
3209 fi
3210
3211 # Try without a prefix undercore, then with it.
3212 for ac_symprfx in "" "_"; do
3213
3214   # Write the raw and C identifiers.
3215 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3216
3217   # Check to see that the pipe works correctly.
3218   pipe_works=no
3219   rm -f conftest*
3220   cat > conftest.$ac_ext <<EOF
3221 #ifdef __cplusplus
3222 extern "C" {
3223 #endif
3224 char nm_test_var;
3225 void nm_test_func(){}
3226 #ifdef __cplusplus
3227 }
3228 #endif
3229 int main(){nm_test_var='a';nm_test_func();return(0);}
3230 EOF
3231
3232   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233   (eval $ac_compile) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; then
3237     # Now try to grab the symbols.
3238     nlist=conftest.nm
3239     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3240   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } && test -s "$nlist"; then
3244       # Try sorting and uniquifying the output.
3245       if sort "$nlist" | uniq > "$nlist"T; then
3246         mv -f "$nlist"T "$nlist"
3247       else
3248         rm -f "$nlist"T
3249       fi
3250
3251       # Make sure that we snagged all the symbols we need.
3252       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3253         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3254           cat <<EOF > conftest.$ac_ext
3255 #ifdef __cplusplus
3256 extern "C" {
3257 #endif
3258
3259 EOF
3260           # Now generate the symbol file.
3261           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3262
3263           cat <<EOF >> conftest.$ac_ext
3264 #if defined (__STDC__) && __STDC__
3265 # define lt_ptr void *
3266 #else
3267 # define lt_ptr char *
3268 # define const
3269 #endif
3270
3271 /* The mapping between symbol names and symbols. */
3272 const struct {
3273   const char *name;
3274   lt_ptr address;
3275 }
3276 lt_preloaded_symbols[] =
3277 {
3278 EOF
3279           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3280           cat <<\EOF >> conftest.$ac_ext
3281   {0, (lt_ptr) 0}
3282 };
3283
3284 #ifdef __cplusplus
3285 }
3286 #endif
3287 EOF
3288           # Now try linking the two files.
3289           mv conftest.$ac_objext conftstm.$ac_objext
3290           save_LIBS="$LIBS"
3291           save_CFLAGS="$CFLAGS"
3292           LIBS="conftstm.$ac_objext"
3293           CFLAGS="$CFLAGS$no_builtin_flag"
3294           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3295   (eval $ac_link) 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } && test -s conftest; then
3299             pipe_works=yes
3300           fi
3301           LIBS="$save_LIBS"
3302           CFLAGS="$save_CFLAGS"
3303         else
3304           echo "cannot find nm_test_func in $nlist" >&5
3305         fi
3306       else
3307         echo "cannot find nm_test_var in $nlist" >&5
3308       fi
3309     else
3310       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3311     fi
3312   else
3313     echo "$progname: failed program was:" >&5
3314     cat conftest.$ac_ext >&5
3315   fi
3316   rm -f conftest* conftst*
3317
3318   # Do not use the global_symbol_pipe unless it works.
3319   if test "$pipe_works" = yes; then
3320     break
3321   else
3322     lt_cv_sys_global_symbol_pipe=
3323   fi
3324 done
3325
3326 fi
3327
3328 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3329 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3330   global_symbol_to_cdecl=
3331   global_symbol_to_c_name_address=
3332 else
3333   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3334   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3335 fi
3336 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3337 then
3338   echo "$as_me:$LINENO: result: failed" >&5
3339 echo "${ECHO_T}failed" >&6
3340 else
3341   echo "$as_me:$LINENO: result: ok" >&5
3342 echo "${ECHO_T}ok" >&6
3343 fi
3344
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3351 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3352 # On Suns, sometimes $CPP names a directory.
3353 if test -n "$CPP" && test -d "$CPP"; then
3354   CPP=
3355 fi
3356 if test -z "$CPP"; then
3357   if test "${ac_cv_prog_CPP+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360       # Double quotes because CPP needs to be expanded
3361     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3362     do
3363       ac_preproc_ok=false
3364 for ac_c_preproc_warn_flag in '' yes
3365 do
3366   # Use a header file that comes with gcc, so configuring glibc
3367   # with a fresh cross-compiler works.
3368   # On the NeXT, cc -E runs the code through the compiler's parser,
3369   # not just through cpp. "Syntax error" is here to catch this case.
3370   cat >conftest.$ac_ext <<_ACEOF
3371 #line $LINENO "configure"
3372 #include "confdefs.h"
3373 #include <assert.h>
3374                      Syntax error
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378   ac_status=$?
3379   egrep -v '^ *\+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386   else
3387     ac_cpp_err=
3388   fi
3389 else
3390   ac_cpp_err=yes
3391 fi
3392 if test -z "$ac_cpp_err"; then
3393   :
3394 else
3395   echo "$as_me: failed program was:" >&5
3396   cat conftest.$ac_ext >&5
3397   # Broken: fails on valid input.
3398 continue
3399 fi
3400 rm -f conftest.err conftest.$ac_ext
3401
3402   # OK, works on sane cases.  Now check whether non-existent headers
3403   # can be detected and how.
3404   cat >conftest.$ac_ext <<_ACEOF
3405 #line $LINENO "configure"
3406 #include "confdefs.h"
3407 #include <ac_nonexistent.h>
3408 _ACEOF
3409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411   ac_status=$?
3412   egrep -v '^ *\+' conftest.er1 >conftest.err
3413   rm -f conftest.er1
3414   cat conftest.err >&5
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } >/dev/null; then
3417   if test -s conftest.err; then
3418     ac_cpp_err=$ac_c_preproc_warn_flag
3419   else
3420     ac_cpp_err=
3421   fi
3422 else
3423   ac_cpp_err=yes
3424 fi
3425 if test -z "$ac_cpp_err"; then
3426   # Broken: success on invalid input.
3427 continue
3428 else
3429   echo "$as_me: failed program was:" >&5
3430   cat conftest.$ac_ext >&5
3431   # Passes both tests.
3432 ac_preproc_ok=:
3433 break
3434 fi
3435 rm -f conftest.err conftest.$ac_ext
3436
3437 done
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3441   break
3442 fi
3443
3444     done
3445     ac_cv_prog_CPP=$CPP
3446
3447 fi
3448   CPP=$ac_cv_prog_CPP
3449 else
3450   ac_cv_prog_CPP=$CPP
3451 fi
3452 echo "$as_me:$LINENO: result: $CPP" >&5
3453 echo "${ECHO_T}$CPP" >&6
3454 ac_preproc_ok=false
3455 for ac_c_preproc_warn_flag in '' yes
3456 do
3457   # Use a header file that comes with gcc, so configuring glibc
3458   # with a fresh cross-compiler works.
3459   # On the NeXT, cc -E runs the code through the compiler's parser,
3460   # not just through cpp. "Syntax error" is here to catch this case.
3461   cat >conftest.$ac_ext <<_ACEOF
3462 #line $LINENO "configure"
3463 #include "confdefs.h"
3464 #include <assert.h>
3465                      Syntax error
3466 _ACEOF
3467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469   ac_status=$?
3470   egrep -v '^ *\+' conftest.er1 >conftest.err
3471   rm -f conftest.er1
3472   cat conftest.err >&5
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); } >/dev/null; then
3475   if test -s conftest.err; then
3476     ac_cpp_err=$ac_c_preproc_warn_flag
3477   else
3478     ac_cpp_err=
3479   fi
3480 else
3481   ac_cpp_err=yes
3482 fi
3483 if test -z "$ac_cpp_err"; then
3484   :
3485 else
3486   echo "$as_me: failed program was:" >&5
3487   cat conftest.$ac_ext >&5
3488   # Broken: fails on valid input.
3489 continue
3490 fi
3491 rm -f conftest.err conftest.$ac_ext
3492
3493   # OK, works on sane cases.  Now check whether non-existent headers
3494   # can be detected and how.
3495   cat >conftest.$ac_ext <<_ACEOF
3496 #line $LINENO "configure"
3497 #include "confdefs.h"
3498 #include <ac_nonexistent.h>
3499 _ACEOF
3500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3502   ac_status=$?
3503   egrep -v '^ *\+' conftest.er1 >conftest.err
3504   rm -f conftest.er1
3505   cat conftest.err >&5
3506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507   (exit $ac_status); } >/dev/null; then
3508   if test -s conftest.err; then
3509     ac_cpp_err=$ac_c_preproc_warn_flag
3510   else
3511     ac_cpp_err=
3512   fi
3513 else
3514   ac_cpp_err=yes
3515 fi
3516 if test -z "$ac_cpp_err"; then
3517   # Broken: success on invalid input.
3518 continue
3519 else
3520   echo "$as_me: failed program was:" >&5
3521   cat conftest.$ac_ext >&5
3522   # Passes both tests.
3523 ac_preproc_ok=:
3524 break
3525 fi
3526 rm -f conftest.err conftest.$ac_ext
3527
3528 done
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3532   :
3533 else
3534   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3535 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3536    { (exit 1); exit 1; }; }
3537 fi
3538
3539 ac_ext=c
3540 ac_cpp='$CPP $CPPFLAGS'
3541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544
3545
3546 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3548 if test "${ac_cv_header_stdc+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   cat >conftest.$ac_ext <<_ACEOF
3552 #line $LINENO "configure"
3553 #include "confdefs.h"
3554 #include <stdlib.h>
3555 #include <stdarg.h>
3556 #include <string.h>
3557 #include <float.h>
3558
3559 _ACEOF
3560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3562   ac_status=$?
3563   egrep -v '^ *\+' conftest.er1 >conftest.err
3564   rm -f conftest.er1
3565   cat conftest.err >&5
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } >/dev/null; then
3568   if test -s conftest.err; then
3569     ac_cpp_err=$ac_c_preproc_warn_flag
3570   else
3571     ac_cpp_err=
3572   fi
3573 else
3574   ac_cpp_err=yes
3575 fi
3576 if test -z "$ac_cpp_err"; then
3577   ac_cv_header_stdc=yes
3578 else
3579   echo "$as_me: failed program was:" >&5
3580   cat conftest.$ac_ext >&5
3581   ac_cv_header_stdc=no
3582 fi
3583 rm -f conftest.err conftest.$ac_ext
3584
3585 if test $ac_cv_header_stdc = yes; then
3586   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3587   cat >conftest.$ac_ext <<_ACEOF
3588 #line $LINENO "configure"
3589 #include "confdefs.h"
3590 #include <string.h>
3591
3592 _ACEOF
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594   egrep "memchr" >/dev/null 2>&1; then
3595   :
3596 else
3597   ac_cv_header_stdc=no
3598 fi
3599 rm -f conftest*
3600
3601 fi
3602
3603 if test $ac_cv_header_stdc = yes; then
3604   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3605   cat >conftest.$ac_ext <<_ACEOF
3606 #line $LINENO "configure"
3607 #include "confdefs.h"
3608 #include <stdlib.h>
3609
3610 _ACEOF
3611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3612   egrep "free" >/dev/null 2>&1; then
3613   :
3614 else
3615   ac_cv_header_stdc=no
3616 fi
3617 rm -f conftest*
3618
3619 fi
3620
3621 if test $ac_cv_header_stdc = yes; then
3622   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3623   if test "$cross_compiling" = yes; then
3624   :
3625 else
3626   cat >conftest.$ac_ext <<_ACEOF
3627 #line $LINENO "configure"
3628 #include "confdefs.h"
3629 #include <ctype.h>
3630 #if ((' ' & 0x0FF) == 0x020)
3631 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3632 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3633 #else
3634 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3635                      || ('j' <= (c) && (c) <= 'r') \
3636                      || ('s' <= (c) && (c) <= 'z'))
3637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3638 #endif
3639
3640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3641 int
3642 main ()
3643 {
3644   int i;
3645   for (i = 0; i < 256; i++)
3646     if (XOR (islower (i), ISLOWER (i))
3647         || toupper (i) != TOUPPER (i))
3648       exit(2);
3649   exit (0);
3650 }
3651 _ACEOF
3652 rm -f conftest$ac_exeext
3653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654   (eval $ac_link) 2>&5
3655   ac_status=$?
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659   (eval $ac_try) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }; }; then
3663   :
3664 else
3665   echo "$as_me: program exited with status $ac_status" >&5
3666 echo "$as_me: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 ( exit $ac_status )
3669 ac_cv_header_stdc=no
3670 fi
3671 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3672 fi
3673 fi
3674 fi
3675 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3676 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3677 if test $ac_cv_header_stdc = yes; then
3678
3679 cat >>confdefs.h <<\_ACEOF
3680 #define STDC_HEADERS 1
3681 _ACEOF
3682
3683 fi
3684
3685 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3696                   inttypes.h stdint.h unistd.h
3697 do
3698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3699 echo "$as_me:$LINENO: checking for $ac_header" >&5
3700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 #include "confdefs.h"
3707 $ac_includes_default
3708
3709 #include <$ac_header>
3710 _ACEOF
3711 rm -f conftest.$ac_objext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713   (eval $ac_compile) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); } &&
3717          { ac_try='test -s conftest.$ac_objext'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   eval "$as_ac_Header=yes"
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 eval "$as_ac_Header=no"
3728 fi
3729 rm -f conftest.$ac_objext conftest.$ac_ext
3730 fi
3731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3734   cat >>confdefs.h <<_ACEOF
3735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3736 _ACEOF
3737
3738 fi
3739
3740 done
3741
3742
3743
3744 for ac_header in dlfcn.h
3745 do
3746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3748   echo "$as_me:$LINENO: checking for $ac_header" >&5
3749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 fi
3753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3755 else
3756   # Is the header compilable?
3757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3760 #line $LINENO "configure"
3761 #include "confdefs.h"
3762 $ac_includes_default
3763 #include <$ac_header>
3764 _ACEOF
3765 rm -f conftest.$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767   (eval $ac_compile) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); } &&
3771          { ac_try='test -s conftest.$ac_objext'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; }; then
3777   ac_header_compiler=yes
3778 else
3779   echo "$as_me: failed program was:" >&5
3780 cat conftest.$ac_ext >&5
3781 ac_header_compiler=no
3782 fi
3783 rm -f conftest.$ac_objext conftest.$ac_ext
3784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3785 echo "${ECHO_T}$ac_header_compiler" >&6
3786
3787 # Is the header present?
3788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3790 cat >conftest.$ac_ext <<_ACEOF
3791 #line $LINENO "configure"
3792 #include "confdefs.h"
3793 #include <$ac_header>
3794 _ACEOF
3795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3797   ac_status=$?
3798   egrep -v '^ *\+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } >/dev/null; then
3803   if test -s conftest.err; then
3804     ac_cpp_err=$ac_c_preproc_warn_flag
3805   else
3806     ac_cpp_err=
3807   fi
3808 else
3809   ac_cpp_err=yes
3810 fi
3811 if test -z "$ac_cpp_err"; then
3812   ac_header_preproc=yes
3813 else
3814   echo "$as_me: failed program was:" >&5
3815   cat conftest.$ac_ext >&5
3816   ac_header_preproc=no
3817 fi
3818 rm -f conftest.err conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3820 echo "${ECHO_T}$ac_header_preproc" >&6
3821
3822 # So?  What about this header?
3823 case $ac_header_compiler:$ac_header_preproc in
3824   yes:no )
3825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3829   no:yes )
3830     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3832     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3836 esac
3837 echo "$as_me:$LINENO: checking for $ac_header" >&5
3838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   eval "$as_ac_Header=$ac_header_preproc"
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
3847 fi
3848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3849   cat >>confdefs.h <<_ACEOF
3850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3851 _ACEOF
3852
3853 fi
3854
3855 done
3856
3857
3858
3859
3860
3861 # Only perform the check for file, if the check method requires it
3862 case $deplibs_check_method in
3863 file_magic*)
3864   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3865     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3866 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3867 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   case $MAGIC_CMD in
3871   /*)
3872   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3873   ;;
3874   ?:/*)
3875   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3876   ;;
3877   *)
3878   ac_save_MAGIC_CMD="$MAGIC_CMD"
3879   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3880   ac_dummy="/usr/bin:$PATH"
3881   for ac_dir in $ac_dummy; do
3882     test -z "$ac_dir" && ac_dir=.
3883     if test -f $ac_dir/${ac_tool_prefix}file; then
3884       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3885       if test -n "$file_magic_test_file"; then
3886         case $deplibs_check_method in
3887         "file_magic "*)
3888           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3889           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3890           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3891             egrep "$file_magic_regex" > /dev/null; then
3892             :
3893           else
3894             cat <<EOF 1>&2
3895
3896 *** Warning: the command libtool uses to detect shared libraries,
3897 *** $file_magic_cmd, produces output that libtool cannot recognize.
3898 *** The result is that libtool may fail to recognize shared libraries
3899 *** as such.  This will affect the creation of libtool libraries that
3900 *** depend on shared libraries, but programs linked with such libtool
3901 *** libraries will work regardless of this problem.  Nevertheless, you
3902 *** may want to report the problem to your system manager and/or to
3903 *** bug-libtool@gnu.org
3904
3905 EOF
3906           fi ;;
3907         esac
3908       fi
3909       break
3910     fi
3911   done
3912   IFS="$ac_save_ifs"
3913   MAGIC_CMD="$ac_save_MAGIC_CMD"
3914   ;;
3915 esac
3916 fi
3917
3918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3919 if test -n "$MAGIC_CMD"; then
3920   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3921 echo "${ECHO_T}$MAGIC_CMD" >&6
3922 else
3923   echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3925 fi
3926
3927 if test -z "$lt_cv_path_MAGIC_CMD"; then
3928   if test -n "$ac_tool_prefix"; then
3929     echo "$as_me:$LINENO: checking for file" >&5
3930 echo $ECHO_N "checking for file... $ECHO_C" >&6
3931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   case $MAGIC_CMD in
3935   /*)
3936   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3937   ;;
3938   ?:/*)
3939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3940   ;;
3941   *)
3942   ac_save_MAGIC_CMD="$MAGIC_CMD"
3943   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3944   ac_dummy="/usr/bin:$PATH"
3945   for ac_dir in $ac_dummy; do
3946     test -z "$ac_dir" && ac_dir=.
3947     if test -f $ac_dir/file; then
3948       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3949       if test -n "$file_magic_test_file"; then
3950         case $deplibs_check_method in
3951         "file_magic "*)
3952           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3953           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3954           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3955             egrep "$file_magic_regex" > /dev/null; then
3956             :
3957           else
3958             cat <<EOF 1>&2
3959
3960 *** Warning: the command libtool uses to detect shared libraries,
3961 *** $file_magic_cmd, produces output that libtool cannot recognize.
3962 *** The result is that libtool may fail to recognize shared libraries
3963 *** as such.  This will affect the creation of libtool libraries that
3964 *** depend on shared libraries, but programs linked with such libtool
3965 *** libraries will work regardless of this problem.  Nevertheless, you
3966 *** may want to report the problem to your system manager and/or to
3967 *** bug-libtool@gnu.org
3968
3969 EOF
3970           fi ;;
3971         esac
3972       fi
3973       break
3974     fi
3975   done
3976   IFS="$ac_save_ifs"
3977   MAGIC_CMD="$ac_save_MAGIC_CMD"
3978   ;;
3979 esac
3980 fi
3981
3982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3983 if test -n "$MAGIC_CMD"; then
3984   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3985 echo "${ECHO_T}$MAGIC_CMD" >&6
3986 else
3987   echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3989 fi
3990
3991   else
3992     MAGIC_CMD=:
3993   fi
3994 fi
3995
3996   fi
3997   ;;
3998 esac
3999
4000 if test -n "$ac_tool_prefix"; then
4001   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_prog_RANLIB+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   if test -n "$RANLIB"; then
4009   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4010 else
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014   IFS=$as_save_IFS
4015   test -z "$as_dir" && as_dir=.
4016   for ac_exec_ext in '' $ac_executable_extensions; do
4017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020     break 2
4021   fi
4022 done
4023 done
4024
4025 fi
4026 fi
4027 RANLIB=$ac_cv_prog_RANLIB
4028 if test -n "$RANLIB"; then
4029   echo "$as_me:$LINENO: result: $RANLIB" >&5
4030 echo "${ECHO_T}$RANLIB" >&6
4031 else
4032   echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4034 fi
4035
4036 fi
4037 if test -z "$ac_cv_prog_RANLIB"; then
4038   ac_ct_RANLIB=$RANLIB
4039   # Extract the first word of "ranlib", so it can be a program name with args.
4040 set dummy ranlib; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   if test -n "$ac_ct_RANLIB"; then
4047   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054   for ac_exec_ext in '' $ac_executable_extensions; do
4055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056     ac_cv_prog_ac_ct_RANLIB="ranlib"
4057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058     break 2
4059   fi
4060 done
4061 done
4062
4063   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4064 fi
4065 fi
4066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4067 if test -n "$ac_ct_RANLIB"; then
4068   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4069 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4070 else
4071   echo "$as_me:$LINENO: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4073 fi
4074
4075   RANLIB=$ac_ct_RANLIB
4076 else
4077   RANLIB="$ac_cv_prog_RANLIB"
4078 fi
4079
4080 if test -n "$ac_tool_prefix"; then
4081   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}strip; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_STRIP+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   if test -n "$STRIP"; then
4089   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103 done
4104
4105 fi
4106 fi
4107 STRIP=$ac_cv_prog_STRIP
4108 if test -n "$STRIP"; then
4109   echo "$as_me:$LINENO: result: $STRIP" >&5
4110 echo "${ECHO_T}$STRIP" >&6
4111 else
4112   echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4114 fi
4115
4116 fi
4117 if test -z "$ac_cv_prog_STRIP"; then
4118   ac_ct_STRIP=$STRIP
4119   # Extract the first word of "strip", so it can be a program name with args.
4120 set dummy strip; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   if test -n "$ac_ct_STRIP"; then
4127   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134   for ac_exec_ext in '' $ac_executable_extensions; do
4135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136     ac_cv_prog_ac_ct_STRIP="strip"
4137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138     break 2
4139   fi
4140 done
4141 done
4142
4143   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4144 fi
4145 fi
4146 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4147 if test -n "$ac_ct_STRIP"; then
4148   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4149 echo "${ECHO_T}$ac_ct_STRIP" >&6
4150 else
4151   echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4153 fi
4154
4155   STRIP=$ac_ct_STRIP
4156 else
4157   STRIP="$ac_cv_prog_STRIP"
4158 fi
4159
4160
4161 enable_dlopen=no
4162 enable_win32_dll=no
4163
4164 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4165 if test "${enable_libtool_lock+set}" = set; then
4166   enableval="$enable_libtool_lock"
4167
4168 fi;
4169 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4170
4171 # Some flags need to be propagated to the compiler or linker for good
4172 # libtool support.
4173 case $host in
4174 *-*-irix6*)
4175   # Find out which ABI we are using.
4176   echo '#line 4176 "configure"' > conftest.$ac_ext
4177   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178   (eval $ac_compile) 2>&5
4179   ac_status=$?
4180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); }; then
4182     case `/usr/bin/file conftest.$ac_objext` in
4183     *32-bit*)
4184       LD="${LD-ld} -32"
4185       ;;
4186     *N32*)
4187       LD="${LD-ld} -n32"
4188       ;;
4189     *64-bit*)
4190       LD="${LD-ld} -64"
4191       ;;
4192     esac
4193   fi
4194   rm -rf conftest*
4195   ;;
4196
4197 *-*-sco3.2v5*)
4198   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4199   SAVE_CFLAGS="$CFLAGS"
4200   CFLAGS="$CFLAGS -belf"
4201   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4202 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4203 if test "${lt_cv_cc_needs_belf+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206
4207
4208      ac_ext=c
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213
4214      cat >conftest.$ac_ext <<_ACEOF
4215 #line $LINENO "configure"
4216 #include "confdefs.h"
4217
4218 #ifdef F77_DUMMY_MAIN
4219 #  ifdef __cplusplus
4220      extern "C"
4221 #  endif
4222    int F77_DUMMY_MAIN() { return 1; }
4223 #endif
4224 int
4225 main ()
4226 {
4227
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 rm -f conftest.$ac_objext conftest$ac_exeext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4234   (eval $ac_link) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -s conftest$ac_exeext'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   lt_cv_cc_needs_belf=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4248 lt_cv_cc_needs_belf=no
4249 fi
4250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4251      ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257 fi
4258 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4259 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4260   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4261     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4262     CFLAGS="$SAVE_CFLAGS"
4263   fi
4264   ;;
4265
4266
4267 esac
4268
4269 # Sed substitution that helps us do robust quoting.  It backslashifies
4270 # metacharacters that are still active within double-quoted strings.
4271 Xsed='sed -e s/^X//'
4272 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4273
4274 # Same as above, but do not quote variable references.
4275 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4276
4277 # Sed substitution to delay expansion of an escaped shell variable in a
4278 # double_quote_subst'ed string.
4279 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4280
4281 # Constants:
4282 rm="rm -f"
4283
4284 # Global variables:
4285 default_ofile=libtool
4286 can_build_shared=yes
4287
4288 # All known linkers require a `.a' archive for static linking (except M$VC,
4289 # which needs '.lib').
4290 libext=a
4291 ltmain="$ac_aux_dir/ltmain.sh"
4292 ofile="$default_ofile"
4293 with_gnu_ld="$lt_cv_prog_gnu_ld"
4294 need_locks="$enable_libtool_lock"
4295
4296 old_CC="$CC"
4297 old_CFLAGS="$CFLAGS"
4298
4299 # Set sane defaults for various variables
4300 test -z "$AR" && AR=ar
4301 test -z "$AR_FLAGS" && AR_FLAGS=cru
4302 test -z "$AS" && AS=as
4303 test -z "$CC" && CC=cc
4304 test -z "$DLLTOOL" && DLLTOOL=dlltool
4305 test -z "$LD" && LD=ld
4306 test -z "$LN_S" && LN_S="ln -s"
4307 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4308 test -z "$NM" && NM=nm
4309 test -z "$OBJDUMP" && OBJDUMP=objdump
4310 test -z "$RANLIB" && RANLIB=:
4311 test -z "$STRIP" && STRIP=:
4312 test -z "$ac_objext" && ac_objext=o
4313
4314 if test x"$host" != x"$build"; then
4315   ac_tool_prefix=${host_alias}-
4316 else
4317   ac_tool_prefix=
4318 fi
4319
4320 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4321 case $host_os in
4322 linux-gnu*) ;;
4323 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4324 esac
4325
4326 case $host_os in
4327 aix3*)
4328   # AIX sometimes has problems with the GCC collect2 program.  For some
4329   # reason, if we set the COLLECT_NAMES environment variable, the problems
4330   # vanish in a puff of smoke.
4331   if test "X${COLLECT_NAMES+set}" != Xset; then
4332     COLLECT_NAMES=
4333     export COLLECT_NAMES
4334   fi
4335   ;;
4336 esac
4337
4338 # Determine commands to create old-style static archives.
4339 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4340 old_postinstall_cmds='chmod 644 $oldlib'
4341 old_postuninstall_cmds=
4342
4343 if test -n "$RANLIB"; then
4344   case $host_os in
4345   openbsd*)
4346     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4347     ;;
4348   *)
4349     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4350     ;;
4351   esac
4352   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4353 fi
4354
4355 # Allow CC to be a program name with arguments.
4356 set dummy $CC
4357 compiler="$2"
4358
4359 echo "$as_me:$LINENO: checking for objdir" >&5
4360 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4361 rm -f .libs 2>/dev/null
4362 mkdir .libs 2>/dev/null
4363 if test -d .libs; then
4364   objdir=.libs
4365 else
4366   # MS-DOS does not allow filenames that begin with a dot.
4367   objdir=_libs
4368 fi
4369 rmdir .libs 2>/dev/null
4370 echo "$as_me:$LINENO: result: $objdir" >&5
4371 echo "${ECHO_T}$objdir" >&6
4372
4373
4374
4375 # Check whether --with-pic or --without-pic was given.
4376 if test "${with_pic+set}" = set; then
4377   withval="$with_pic"
4378   pic_mode="$withval"
4379 else
4380   pic_mode=default
4381 fi;
4382 test -z "$pic_mode" && pic_mode=default
4383
4384 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4385 # in isolation, and that seeing it set (from the cache) indicates that
4386 # the associated values are set (in the cache) correctly too.
4387 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4389 if test "${lt_cv_prog_cc_pic+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392    lt_cv_prog_cc_pic=
4393   lt_cv_prog_cc_shlib=
4394   lt_cv_prog_cc_wl=
4395   lt_cv_prog_cc_static=
4396   lt_cv_prog_cc_no_builtin=
4397   lt_cv_prog_cc_can_build_shared=$can_build_shared
4398
4399   if test "$GCC" = yes; then
4400     lt_cv_prog_cc_wl='-Wl,'
4401     lt_cv_prog_cc_static='-static'
4402
4403     case $host_os in
4404     aix*)
4405       # Below there is a dirty hack to force normal static linking with -ldl
4406       # The problem is because libdl dynamically linked with both libc and
4407       # libC (AIX C++ library), which obviously doesn't included in libraries
4408       # list by gcc. This cause undefined symbols with -static flags.
4409       # This hack allows C programs to be linked with "-static -ldl", but
4410       # not sure about C++ programs.
4411       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4412       ;;
4413     amigaos*)
4414       # FIXME: we need at least 68020 code to build shared libraries, but
4415       # adding the `-m68020' flag to GCC prevents building anything better,
4416       # like `-m68040'.
4417       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4418       ;;
4419     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4420       # PIC is the default for these OSes.
4421       ;;
4422     darwin* | rhapsody*)
4423       # PIC is the default on this platform
4424       # Common symbols not allowed in MH_DYLIB files
4425       lt_cv_prog_cc_pic='-fno-common'
4426       ;;
4427     cygwin* | mingw* | pw32* | os2*)
4428       # This hack is so that the source file can tell whether it is being
4429       # built for inclusion in a dll (and should export symbols for example).
4430       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4431       ;;
4432     sysv4*MP*)
4433       if test -d /usr/nec; then
4434          lt_cv_prog_cc_pic=-Kconform_pic
4435       fi
4436       ;;
4437     *)
4438       lt_cv_prog_cc_pic='-fPIC'
4439       ;;
4440     esac
4441   else
4442     # PORTME Check for PIC flags for the system compiler.
4443     case $host_os in
4444     aix3* | aix4* | aix5*)
4445       lt_cv_prog_cc_wl='-Wl,'
4446       # All AIX code is PIC.
4447       if test "$host_cpu" = ia64; then
4448         # AIX 5 now supports IA64 processor
4449         lt_cv_prog_cc_static='-Bstatic'
4450       else
4451         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4452       fi
4453       ;;
4454
4455     hpux9* | hpux10* | hpux11*)
4456       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4457       lt_cv_prog_cc_wl='-Wl,'
4458       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4459       lt_cv_prog_cc_pic='+Z'
4460       ;;
4461
4462     irix5* | irix6* | nonstopux*)
4463       lt_cv_prog_cc_wl='-Wl,'
4464       lt_cv_prog_cc_static='-non_shared'
4465       # PIC (with -KPIC) is the default.
4466       ;;
4467
4468     cygwin* | mingw* | pw32* | os2*)
4469       # This hack is so that the source file can tell whether it is being
4470       # built for inclusion in a dll (and should export symbols for example).
4471       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4472       ;;
4473
4474     newsos6)
4475       lt_cv_prog_cc_pic='-KPIC'
4476       lt_cv_prog_cc_static='-Bstatic'
4477       ;;
4478
4479     osf3* | osf4* | osf5*)
4480       # All OSF/1 code is PIC.
4481       lt_cv_prog_cc_wl='-Wl,'
4482       lt_cv_prog_cc_static='-non_shared'
4483       ;;
4484
4485     sco3.2v5*)
4486       lt_cv_prog_cc_pic='-Kpic'
4487       lt_cv_prog_cc_static='-dn'
4488       lt_cv_prog_cc_shlib='-belf'
4489       ;;
4490
4491     solaris*)
4492       lt_cv_prog_cc_pic='-KPIC'
4493       lt_cv_prog_cc_static='-Bstatic'
4494       lt_cv_prog_cc_wl='-Wl,'
4495       ;;
4496
4497     sunos4*)
4498       lt_cv_prog_cc_pic='-PIC'
4499       lt_cv_prog_cc_static='-Bstatic'
4500       lt_cv_prog_cc_wl='-Qoption ld '
4501       ;;
4502
4503     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4504       lt_cv_prog_cc_pic='-KPIC'
4505       lt_cv_prog_cc_static='-Bstatic'
4506       if test "x$host_vendor" = xsni; then
4507         lt_cv_prog_cc_wl='-LD'
4508       else
4509         lt_cv_prog_cc_wl='-Wl,'
4510       fi
4511       ;;
4512
4513     uts4*)
4514       lt_cv_prog_cc_pic='-pic'
4515       lt_cv_prog_cc_static='-Bstatic'
4516       ;;
4517
4518     sysv4*MP*)
4519       if test -d /usr/nec ;then
4520         lt_cv_prog_cc_pic='-Kconform_pic'
4521         lt_cv_prog_cc_static='-Bstatic'
4522       fi
4523       ;;
4524
4525     *)
4526       lt_cv_prog_cc_can_build_shared=no
4527       ;;
4528     esac
4529   fi
4530
4531 fi
4532
4533 if test -z "$lt_cv_prog_cc_pic"; then
4534   echo "$as_me:$LINENO: result: none" >&5
4535 echo "${ECHO_T}none" >&6
4536 else
4537   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4538 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4539
4540   # Check to make sure the pic_flag actually works.
4541   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4542 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4543   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546       save_CFLAGS="$CFLAGS"
4547     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4548     cat >conftest.$ac_ext <<_ACEOF
4549 #line $LINENO "configure"
4550 #include "confdefs.h"
4551
4552 #ifdef F77_DUMMY_MAIN
4553 #  ifdef __cplusplus
4554      extern "C"
4555 #  endif
4556    int F77_DUMMY_MAIN() { return 1; }
4557 #endif
4558 int
4559 main ()
4560 {
4561
4562   ;
4563   return 0;
4564 }
4565 _ACEOF
4566 rm -f conftest.$ac_objext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4568   (eval $ac_compile) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); } &&
4572          { ac_try='test -s conftest.$ac_objext'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578         case $host_os in
4579       hpux9* | hpux10* | hpux11*)
4580         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4581         # they create non-PIC objects.  So, if there were any warnings, we
4582         # assume that PIC is not supported.
4583         if test -s conftest.err; then
4584           lt_cv_prog_cc_pic_works=no
4585         else
4586           lt_cv_prog_cc_pic_works=yes
4587         fi
4588         ;;
4589       *)
4590         lt_cv_prog_cc_pic_works=yes
4591         ;;
4592       esac
4593
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597       lt_cv_prog_cc_pic_works=no
4598
4599 fi
4600 rm -f conftest.$ac_objext conftest.$ac_ext
4601     CFLAGS="$save_CFLAGS"
4602
4603 fi
4604
4605
4606   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4607     lt_cv_prog_cc_pic=
4608     lt_cv_prog_cc_can_build_shared=no
4609   else
4610     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4611   fi
4612
4613   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4614 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4615 fi
4616
4617 # Check for any special shared library compilation flags.
4618 if test -n "$lt_cv_prog_cc_shlib"; then
4619   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4620 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4621   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4622   else
4623    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4624 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4625     lt_cv_prog_cc_can_build_shared=no
4626   fi
4627 fi
4628
4629 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4630 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4631 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634     lt_cv_prog_cc_static_works=no
4635   save_LDFLAGS="$LDFLAGS"
4636   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4637   cat >conftest.$ac_ext <<_ACEOF
4638 #line $LINENO "configure"
4639 #include "confdefs.h"
4640
4641 #ifdef F77_DUMMY_MAIN
4642 #  ifdef __cplusplus
4643      extern "C"
4644 #  endif
4645    int F77_DUMMY_MAIN() { return 1; }
4646 #endif
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 rm -f conftest.$ac_objext conftest$ac_exeext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4657   (eval $ac_link) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } &&
4661          { ac_try='test -s conftest$ac_exeext'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; }; then
4667   lt_cv_prog_cc_static_works=yes
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4671 fi
4672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4673   LDFLAGS="$save_LDFLAGS"
4674
4675 fi
4676
4677
4678 # Belt *and* braces to stop my trousers falling down:
4679 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4680 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4681 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4682
4683 pic_flag="$lt_cv_prog_cc_pic"
4684 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4685 wl="$lt_cv_prog_cc_wl"
4686 link_static_flag="$lt_cv_prog_cc_static"
4687 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4688 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4689
4690
4691 # Check to see if options -o and -c are simultaneously supported by compiler
4692 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4693 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4694 if test "${lt_cv_compiler_c_o+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697
4698 $rm -r conftest 2>/dev/null
4699 mkdir conftest
4700 cd conftest
4701 echo "int some_variable = 0;" > conftest.$ac_ext
4702 mkdir out
4703 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4704 # that will create temporary files in the current directory regardless of
4705 # the output directory.  Thus, making CWD read-only will cause this test
4706 # to fail, enabling locking or at least warning the user not to do parallel
4707 # builds.
4708 chmod -w .
4709 save_CFLAGS="$CFLAGS"
4710 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4711 compiler_c_o=no
4712 if { (eval echo configure:4712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4713   # The compiler can only warn and ignore the option if not recognized
4714   # So say no if there are warnings
4715   if test -s out/conftest.err; then
4716     lt_cv_compiler_c_o=no
4717   else
4718     lt_cv_compiler_c_o=yes
4719   fi
4720 else
4721   # Append any errors to the config.log.
4722   cat out/conftest.err 1>&5
4723   lt_cv_compiler_c_o=no
4724 fi
4725 CFLAGS="$save_CFLAGS"
4726 chmod u+w .
4727 $rm conftest* out/*
4728 rmdir out
4729 cd ..
4730 rmdir conftest
4731 $rm -r conftest 2>/dev/null
4732
4733 fi
4734
4735 compiler_c_o=$lt_cv_compiler_c_o
4736 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4737 echo "${ECHO_T}$compiler_c_o" >&6
4738
4739 if test x"$compiler_c_o" = x"yes"; then
4740   # Check to see if we can write to a .lo
4741   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4742 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4743   if test "${lt_cv_compiler_o_lo+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746
4747   lt_cv_compiler_o_lo=no
4748   save_CFLAGS="$CFLAGS"
4749   CFLAGS="$CFLAGS -c -o conftest.lo"
4750   save_objext="$ac_objext"
4751   ac_objext=lo
4752   cat >conftest.$ac_ext <<_ACEOF
4753 #line $LINENO "configure"
4754 #include "confdefs.h"
4755
4756 #ifdef F77_DUMMY_MAIN
4757 #  ifdef __cplusplus
4758      extern "C"
4759 #  endif
4760    int F77_DUMMY_MAIN() { return 1; }
4761 #endif
4762 int
4763 main ()
4764 {
4765 int some_variable = 0;
4766   ;
4767   return 0;
4768 }
4769 _ACEOF
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772   (eval $ac_compile) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } &&
4776          { ac_try='test -s conftest.$ac_objext'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; }; then
4782       # The compiler can only warn and ignore the option if not recognized
4783     # So say no if there are warnings
4784     if test -s conftest.err; then
4785       lt_cv_compiler_o_lo=no
4786     else
4787       lt_cv_compiler_o_lo=yes
4788     fi
4789
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4793 fi
4794 rm -f conftest.$ac_objext conftest.$ac_ext
4795   ac_objext="$save_objext"
4796   CFLAGS="$save_CFLAGS"
4797
4798 fi
4799
4800   compiler_o_lo=$lt_cv_compiler_o_lo
4801   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4802 echo "${ECHO_T}$compiler_o_lo" >&6
4803 else
4804   compiler_o_lo=no
4805 fi
4806
4807 # Check to see if we can do hard links to lock some files if needed
4808 hard_links="nottested"
4809 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4810   # do not overwrite the value of need_locks provided by the user
4811   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4812 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4813   hard_links=yes
4814   $rm conftest*
4815   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4816   touch conftest.a
4817   ln conftest.a conftest.b 2>&5 || hard_links=no
4818   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4819   echo "$as_me:$LINENO: result: $hard_links" >&5
4820 echo "${ECHO_T}$hard_links" >&6
4821   if test "$hard_links" = no; then
4822     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4823 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4824     need_locks=warn
4825   fi
4826 else
4827   need_locks=no
4828 fi
4829
4830 if test "$GCC" = yes; then
4831   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4832   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4833 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4834   echo "int some_variable = 0;" > conftest.$ac_ext
4835   save_CFLAGS="$CFLAGS"
4836   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4837   compiler_rtti_exceptions=no
4838   cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 #include "confdefs.h"
4841
4842 #ifdef F77_DUMMY_MAIN
4843 #  ifdef __cplusplus
4844      extern "C"
4845 #  endif
4846    int F77_DUMMY_MAIN() { return 1; }
4847 #endif
4848 int
4849 main ()
4850 {
4851 int some_variable = 0;
4852   ;
4853   return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858   (eval $ac_compile) 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } &&
4862          { ac_try='test -s conftest.$ac_objext'
4863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864   (eval $ac_try) 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); }; }; then
4868       # The compiler can only warn and ignore the option if not recognized
4869     # So say no if there are warnings
4870     if test -s conftest.err; then
4871       compiler_rtti_exceptions=no
4872     else
4873       compiler_rtti_exceptions=yes
4874     fi
4875
4876 else
4877   echo "$as_me: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4879 fi
4880 rm -f conftest.$ac_objext conftest.$ac_ext
4881   CFLAGS="$save_CFLAGS"
4882   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4883 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4884
4885   if test "$compiler_rtti_exceptions" = "yes"; then
4886     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4887   else
4888     no_builtin_flag=' -fno-builtin'
4889   fi
4890 fi
4891
4892 # See if the linker supports building shared libraries.
4893 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4894 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4895
4896 allow_undefined_flag=
4897 no_undefined_flag=
4898 need_lib_prefix=unknown
4899 need_version=unknown
4900 # when you set need_version to no, make sure it does not cause -set_version
4901 # flags to be left without arguments
4902 archive_cmds=
4903 archive_expsym_cmds=
4904 old_archive_from_new_cmds=
4905 old_archive_from_expsyms_cmds=
4906 export_dynamic_flag_spec=
4907 whole_archive_flag_spec=
4908 thread_safe_flag_spec=
4909 hardcode_into_libs=no
4910 hardcode_libdir_flag_spec=
4911 hardcode_libdir_separator=
4912 hardcode_direct=no
4913 hardcode_minus_L=no
4914 hardcode_shlibpath_var=unsupported
4915 runpath_var=
4916 link_all_deplibs=unknown
4917 always_export_symbols=no
4918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4919 # include_expsyms should be a list of space-separated symbols to be *always*
4920 # included in the symbol list
4921 include_expsyms=
4922 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4923 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4924 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4925 # as well as any symbol that contains `d'.
4926 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4928 # platforms (ab)use it in PIC code, but their linkers get confused if
4929 # the symbol is explicitly referenced.  Since portable code cannot
4930 # rely on this symbol name, it's probably fine to never include it in
4931 # preloaded symbol tables.
4932 extract_expsyms_cmds=
4933
4934 case $host_os in
4935 cygwin* | mingw* | pw32*)
4936   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4937   # When not using gcc, we currently assume that we are using
4938   # Microsoft Visual C++.
4939   if test "$GCC" != yes; then
4940     with_gnu_ld=no
4941   fi
4942   ;;
4943 openbsd*)
4944   with_gnu_ld=no
4945   ;;
4946 esac
4947
4948 ld_shlibs=yes
4949 if test "$with_gnu_ld" = yes; then
4950   # If archive_cmds runs LD, not CC, wlarc should be empty
4951   wlarc='${wl}'
4952
4953   # See if GNU ld supports shared libraries.
4954   case $host_os in
4955   aix3* | aix4* | aix5*)
4956     # On AIX, the GNU linker is very broken
4957     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4958     ld_shlibs=no
4959     cat <<EOF 1>&2
4960
4961 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4962 *** to be unable to reliably create shared libraries on AIX.
4963 *** Therefore, libtool is disabling shared libraries support.  If you
4964 *** really care for shared libraries, you may want to modify your PATH
4965 *** so that a non-GNU linker is found, and then restart.
4966
4967 EOF
4968     ;;
4969
4970   amigaos*)
4971     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)'
4972     hardcode_libdir_flag_spec='-L$libdir'
4973     hardcode_minus_L=yes
4974
4975     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4976     # that the semantics of dynamic libraries on AmigaOS, at least up
4977     # to version 4, is to share data among multiple programs linked
4978     # with the same dynamic library.  Since this doesn't match the
4979     # behavior of shared libraries on other platforms, we can use
4980     # them.
4981     ld_shlibs=no
4982     ;;
4983
4984   beos*)
4985     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4986       allow_undefined_flag=unsupported
4987       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4988       # support --undefined.  This deserves some investigation.  FIXME
4989       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4990     else
4991       ld_shlibs=no
4992     fi
4993     ;;
4994
4995   cygwin* | mingw* | pw32*)
4996     # hardcode_libdir_flag_spec is actually meaningless, as there is
4997     # no search path for DLLs.
4998     hardcode_libdir_flag_spec='-L$libdir'
4999     allow_undefined_flag=unsupported
5000     always_export_symbols=yes
5001
5002     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5003       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5004       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5005       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5006       else $CC -o impgen impgen.c ; fi)~
5007       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5008
5009     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5010
5011     # cygwin and mingw dlls have different entry points and sets of symbols
5012     # to exclude.
5013     # FIXME: what about values for MSVC?
5014     dll_entry=__cygwin_dll_entry@12
5015     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5016     case $host_os in
5017     mingw*)
5018       # mingw values
5019       dll_entry=_DllMainCRTStartup@12
5020       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5021       ;;
5022     esac
5023
5024     # mingw and cygwin differ, and it's simplest to just exclude the union
5025     # of the two symbol sets.
5026     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5027
5028     # recent cygwin and mingw systems supply a stub DllMain which the user
5029     # can override, but on older systems we have to supply one (in ltdll.c)
5030     if test "x$lt_cv_need_dllmain" = "xyes"; then
5031       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5032       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~
5033         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5034     else
5035       ltdll_obj=
5036       ltdll_cmds=
5037     fi
5038
5039     # Extract the symbol export list from an `--export-all' def file,
5040     # then regenerate the def file from the symbol export list, so that
5041     # the compiled dll only exports the symbol export list.
5042     # Be careful not to strip the DATA tag left be newer dlltools.
5043     export_symbols_cmds="$ltdll_cmds"'
5044       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5045       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5046
5047     # If the export-symbols file already is a .def file (1st line
5048     # is EXPORTS), use it as is.
5049     # If DATA tags from a recent dlltool are present, honour them!
5050     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5051         cp $export_symbols $output_objdir/$soname-def;
5052       else
5053         echo EXPORTS > $output_objdir/$soname-def;
5054         _lt_hint=1;
5055         cat $export_symbols | while read symbol; do
5056          set dummy \$symbol;
5057          case \$# in
5058            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5059            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5060          esac;
5061          _lt_hint=`expr 1 + \$_lt_hint`;
5062         done;
5063       fi~
5064       '"$ltdll_cmds"'
5065       $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~
5066       $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~
5067       $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~
5068       $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~
5069       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5070     ;;
5071
5072   netbsd*)
5073     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5074       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5075       wlarc=
5076     else
5077       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5078       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5079     fi
5080     ;;
5081
5082   solaris* | sysv5*)
5083     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5084       ld_shlibs=no
5085       cat <<EOF 1>&2
5086
5087 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5088 *** create shared libraries on Solaris systems.  Therefore, libtool
5089 *** is disabling shared libraries support.  We urge you to upgrade GNU
5090 *** binutils to release 2.9.1 or newer.  Another option is to modify
5091 *** your PATH or compiler configuration so that the native linker is
5092 *** used, and then restart.
5093
5094 EOF
5095     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5096       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5097       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5098     else
5099       ld_shlibs=no
5100     fi
5101     ;;
5102
5103   sunos4*)
5104     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5105     wlarc=
5106     hardcode_direct=yes
5107     hardcode_shlibpath_var=no
5108     ;;
5109
5110   *)
5111     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5112       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5113       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5114     else
5115       ld_shlibs=no
5116     fi
5117     ;;
5118   esac
5119
5120   if test "$ld_shlibs" = yes; then
5121     runpath_var=LD_RUN_PATH
5122     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5123     export_dynamic_flag_spec='${wl}--export-dynamic'
5124     case $host_os in
5125     cygwin* | mingw* | pw32*)
5126       # dlltool doesn't understand --whole-archive et. al.
5127       whole_archive_flag_spec=
5128       ;;
5129     *)
5130       # ancient GNU ld didn't support --whole-archive et. al.
5131       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5132         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5133       else
5134         whole_archive_flag_spec=
5135       fi
5136       ;;
5137     esac
5138   fi
5139 else
5140   # PORTME fill in a description of your system's linker (not GNU ld)
5141   case $host_os in
5142   aix3*)
5143     allow_undefined_flag=unsupported
5144     always_export_symbols=yes
5145     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'
5146     # Note: this linker hardcodes the directories in LIBPATH if there
5147     # are no directories specified by -L.
5148     hardcode_minus_L=yes
5149     if test "$GCC" = yes && test -z "$link_static_flag"; then
5150       # Neither direct hardcoding nor static linking is supported with a
5151       # broken collect2.
5152       hardcode_direct=unsupported
5153     fi
5154     ;;
5155
5156   aix4* | aix5*)
5157     if test "$host_cpu" = ia64; then
5158       # On IA64, the linker does run time linking by default, so we don't
5159       # have to do anything special.
5160       aix_use_runtimelinking=no
5161       exp_sym_flag='-Bexport'
5162       no_entry_flag=""
5163     else
5164       aix_use_runtimelinking=no
5165
5166       # Test if we are trying to use run time linking or normal
5167       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5168       # need to do runtime linking.
5169       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5170         for ld_flag in $LDFLAGS; do
5171           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5172             aix_use_runtimelinking=yes
5173             break
5174           fi
5175         done
5176       esac
5177
5178       exp_sym_flag='-bexport'
5179       no_entry_flag='-bnoentry'
5180     fi
5181
5182     # When large executables or shared objects are built, AIX ld can
5183     # have problems creating the table of contents.  If linking a library
5184     # or program results in "error TOC overflow" add -mminimal-toc to
5185     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5186     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5187
5188     hardcode_direct=yes
5189     archive_cmds=''
5190     hardcode_libdir_separator=':'
5191     if test "$GCC" = yes; then
5192       case $host_os in aix4.[012]|aix4.[012].*)
5193         collect2name=`${CC} -print-prog-name=collect2`
5194         if test -f "$collect2name" && \
5195           strings "$collect2name" | grep resolve_lib_name >/dev/null
5196         then
5197           # We have reworked collect2
5198           hardcode_direct=yes
5199         else
5200           # We have old collect2
5201           hardcode_direct=unsupported
5202           # It fails to find uninstalled libraries when the uninstalled
5203           # path is not listed in the libpath.  Setting hardcode_minus_L
5204           # to unsupported forces relinking
5205           hardcode_minus_L=yes
5206           hardcode_libdir_flag_spec='-L$libdir'
5207           hardcode_libdir_separator=
5208         fi
5209       esac
5210
5211       shared_flag='-shared'
5212     else
5213       # not using gcc
5214       if test "$host_cpu" = ia64; then
5215         shared_flag='${wl}-G'
5216       else
5217         if test "$aix_use_runtimelinking" = yes; then
5218           shared_flag='${wl}-G'
5219         else
5220           shared_flag='${wl}-bM:SRE'
5221         fi
5222       fi
5223     fi
5224
5225     # It seems that -bexpall can do strange things, so it is better to
5226     # generate a list of symbols to export.
5227     always_export_symbols=yes
5228     if test "$aix_use_runtimelinking" = yes; then
5229       # Warning - without using the other runtime loading flags (-brtl),
5230       # -berok will link without error, but may produce a broken library.
5231       allow_undefined_flag='-berok'
5232       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5233       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"
5234     else
5235       if test "$host_cpu" = ia64; then
5236         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5237         allow_undefined_flag="-z nodefs"
5238         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"
5239       else
5240         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5241         # Warning - without using the other run time loading flags,
5242         # -berok will link without error, but may produce a broken library.
5243         allow_undefined_flag='${wl}-berok'
5244         # This is a bit strange, but is similar to how AIX traditionally builds
5245         # it's shared libraries.
5246         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'
5247       fi
5248     fi
5249     ;;
5250
5251   amigaos*)
5252     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)'
5253     hardcode_libdir_flag_spec='-L$libdir'
5254     hardcode_minus_L=yes
5255     # see comment about different semantics on the GNU ld section
5256     ld_shlibs=no
5257     ;;
5258
5259   cygwin* | mingw* | pw32*)
5260     # When not using gcc, we currently assume that we are using
5261     # Microsoft Visual C++.
5262     # hardcode_libdir_flag_spec is actually meaningless, as there is
5263     # no search path for DLLs.
5264     hardcode_libdir_flag_spec=' '
5265     allow_undefined_flag=unsupported
5266     # Tell ltmain to make .lib files, not .a files.
5267     libext=lib
5268     # FIXME: Setting linknames here is a bad hack.
5269     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5270     # The linker will automatically build a .lib file if we build a DLL.
5271     old_archive_from_new_cmds='true'
5272     # FIXME: Should let the user specify the lib program.
5273     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5274     fix_srcfile_path='`cygpath -w "$srcfile"`'
5275     ;;
5276
5277   darwin* | rhapsody*)
5278     case "$host_os" in
5279     rhapsody* | darwin1.[012])
5280       allow_undefined_flag='-undefined suppress'
5281       ;;
5282     *) # Darwin 1.3 on
5283       allow_undefined_flag='-flat_namespace -undefined suppress'
5284       ;;
5285     esac
5286     # FIXME: Relying on posixy $() will cause problems for
5287     #        cross-compilation, but unfortunately the echo tests do not
5288     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5289     #        `"' quotes if we put them in here... so don't!
5290     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5291     # We need to add '_' to the symbols in $export_symbols first
5292     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5293     hardcode_direct=yes
5294     hardcode_shlibpath_var=no
5295     whole_archive_flag_spec='-all_load $convenience'
5296     ;;
5297
5298   freebsd1*)
5299     ld_shlibs=no
5300     ;;
5301
5302   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5303   # support.  Future versions do this automatically, but an explicit c++rt0.o
5304   # does not break anything, and helps significantly (at the cost of a little
5305   # extra space).
5306   freebsd2.2*)
5307     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5308     hardcode_libdir_flag_spec='-R$libdir'
5309     hardcode_direct=yes
5310     hardcode_shlibpath_var=no
5311     ;;
5312
5313   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5314   freebsd2*)
5315     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5316     hardcode_direct=yes
5317     hardcode_minus_L=yes
5318     hardcode_shlibpath_var=no
5319     ;;
5320
5321   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5322   freebsd*)
5323     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5324     hardcode_libdir_flag_spec='-R$libdir'
5325     hardcode_direct=yes
5326     hardcode_shlibpath_var=no
5327     ;;
5328
5329   hpux9* | hpux10* | hpux11*)
5330     case $host_os in
5331     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' ;;
5332     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5333     esac
5334     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5335     hardcode_libdir_separator=:
5336     hardcode_direct=yes
5337     hardcode_minus_L=yes # Not in the search PATH, but as the default
5338                          # location of the library.
5339     export_dynamic_flag_spec='${wl}-E'
5340     ;;
5341
5342   irix5* | irix6* | nonstopux*)
5343     if test "$GCC" = yes; then
5344       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'
5345     else
5346       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'
5347     fi
5348     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5349     hardcode_libdir_separator=:
5350     link_all_deplibs=yes
5351     ;;
5352
5353   netbsd*)
5354     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5355       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5356     else
5357       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5358     fi
5359     hardcode_libdir_flag_spec='-R$libdir'
5360     hardcode_direct=yes
5361     hardcode_shlibpath_var=no
5362     ;;
5363
5364   newsos6)
5365     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5366     hardcode_direct=yes
5367     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5368     hardcode_libdir_separator=:
5369     hardcode_shlibpath_var=no
5370     ;;
5371
5372   openbsd*)
5373     hardcode_direct=yes
5374     hardcode_shlibpath_var=no
5375     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5376       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5377       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5378       export_dynamic_flag_spec='${wl}-E'
5379     else
5380       case "$host_os" in
5381       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5382         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5383         hardcode_libdir_flag_spec='-R$libdir'
5384         ;;
5385       *)
5386         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5387         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5388         ;;
5389       esac
5390     fi
5391     ;;
5392
5393   os2*)
5394     hardcode_libdir_flag_spec='-L$libdir'
5395     hardcode_minus_L=yes
5396     allow_undefined_flag=unsupported
5397     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'
5398     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5399     ;;
5400
5401   osf3*)
5402     if test "$GCC" = yes; then
5403       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5404       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'
5405     else
5406       allow_undefined_flag=' -expect_unresolved \*'
5407       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'
5408     fi
5409     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5410     hardcode_libdir_separator=:
5411     ;;
5412
5413   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5414     if test "$GCC" = yes; then
5415       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5416       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'
5417       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5418     else
5419       allow_undefined_flag=' -expect_unresolved \*'
5420       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'
5421       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5422       $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'
5423
5424       #Both c and cxx compiler support -rpath directly
5425       hardcode_libdir_flag_spec='-rpath $libdir'
5426     fi
5427     hardcode_libdir_separator=:
5428     ;;
5429
5430   sco3.2v5*)
5431     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5432     hardcode_shlibpath_var=no
5433     runpath_var=LD_RUN_PATH
5434     hardcode_runpath_var=yes
5435     export_dynamic_flag_spec='${wl}-Bexport'
5436     ;;
5437
5438   solaris*)
5439     # gcc --version < 3.0 without binutils cannot create self contained
5440     # shared libraries reliably, requiring libgcc.a to resolve some of
5441     # the object symbols generated in some cases.  Libraries that use
5442     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5443     # a copy of libgcc.a into every shared library to guarantee resolving
5444     # such symbols causes other problems:  According to Tim Van Holder
5445     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5446     # (to the application) exception stack for one thing.
5447     no_undefined_flag=' -z defs'
5448     if test "$GCC" = yes; then
5449       case `$CC --version 2>/dev/null` in
5450       [12].*)
5451         cat <<EOF 1>&2
5452
5453 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5454 *** create self contained shared libraries on Solaris systems, without
5455 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5456 *** -no-undefined support, which will at least allow you to build shared
5457 *** libraries.  However, you may find that when you link such libraries
5458 *** into an application without using GCC, you have to manually add
5459 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5460 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5461 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5462
5463 EOF
5464         no_undefined_flag=
5465         ;;
5466       esac
5467     fi
5468     # $CC -shared without GNU ld will not create a library from C++
5469     # object files and a static libstdc++, better avoid it by now
5470     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5471     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5472                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5473     hardcode_libdir_flag_spec='-R$libdir'
5474     hardcode_shlibpath_var=no
5475     case $host_os in
5476     solaris2.[0-5] | solaris2.[0-5].*) ;;
5477     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5478       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5479     esac
5480     link_all_deplibs=yes
5481     ;;
5482
5483   sunos4*)
5484     if test "x$host_vendor" = xsequent; then
5485       # Use $CC to link under sequent, because it throws in some extra .o
5486       # files that make .init and .fini sections work.
5487       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5488     else
5489       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5490     fi
5491     hardcode_libdir_flag_spec='-L$libdir'
5492     hardcode_direct=yes
5493     hardcode_minus_L=yes
5494     hardcode_shlibpath_var=no
5495     ;;
5496
5497   sysv4)
5498     if test "x$host_vendor" = xsno; then
5499       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5500       hardcode_direct=yes # is this really true???
5501     else
5502       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5503       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5504     fi
5505     runpath_var='LD_RUN_PATH'
5506     hardcode_shlibpath_var=no
5507     ;;
5508
5509   sysv4.3*)
5510     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5511     hardcode_shlibpath_var=no
5512     export_dynamic_flag_spec='-Bexport'
5513     ;;
5514
5515   sysv5*)
5516     no_undefined_flag=' -z text'
5517     # $CC -shared without GNU ld will not create a library from C++
5518     # object files and a static libstdc++, better avoid it by now
5519     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5520     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5521                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5522     hardcode_libdir_flag_spec=
5523     hardcode_shlibpath_var=no
5524     runpath_var='LD_RUN_PATH'
5525     ;;
5526
5527   uts4*)
5528     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5529     hardcode_libdir_flag_spec='-L$libdir'
5530     hardcode_shlibpath_var=no
5531     ;;
5532
5533   dgux*)
5534     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5535     hardcode_libdir_flag_spec='-L$libdir'
5536     hardcode_shlibpath_var=no
5537     ;;
5538
5539   sysv4*MP*)
5540     if test -d /usr/nec; then
5541       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5542       hardcode_shlibpath_var=no
5543       runpath_var=LD_RUN_PATH
5544       hardcode_runpath_var=yes
5545       ld_shlibs=yes
5546     fi
5547     ;;
5548
5549   sysv4.2uw2*)
5550     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5551     hardcode_direct=yes
5552     hardcode_minus_L=no
5553     hardcode_shlibpath_var=no
5554     hardcode_runpath_var=yes
5555     runpath_var=LD_RUN_PATH
5556     ;;
5557
5558   sysv5uw7* | unixware7*)
5559     no_undefined_flag='${wl}-z ${wl}text'
5560     if test "$GCC" = yes; then
5561       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5562     else
5563       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5564     fi
5565     runpath_var='LD_RUN_PATH'
5566     hardcode_shlibpath_var=no
5567     ;;
5568
5569   *)
5570     ld_shlibs=no
5571     ;;
5572   esac
5573 fi
5574 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5575 echo "${ECHO_T}$ld_shlibs" >&6
5576 test "$ld_shlibs" = no && can_build_shared=no
5577
5578 # Check hardcoding attributes.
5579 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5580 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5581 hardcode_action=
5582 if test -n "$hardcode_libdir_flag_spec" || \
5583    test -n "$runpath_var"; then
5584
5585   # We can hardcode non-existant directories.
5586   if test "$hardcode_direct" != no &&
5587      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5588      # have to relink, otherwise we might link with an installed library
5589      # when we should be linking with a yet-to-be-installed one
5590      ## test "$hardcode_shlibpath_var" != no &&
5591      test "$hardcode_minus_L" != no; then
5592     # Linking always hardcodes the temporary library directory.
5593     hardcode_action=relink
5594   else
5595     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5596     hardcode_action=immediate
5597   fi
5598 else
5599   # We cannot hardcode anything, or else we can only hardcode existing
5600   # directories.
5601   hardcode_action=unsupported
5602 fi
5603 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5604 echo "${ECHO_T}$hardcode_action" >&6
5605
5606 striplib=
5607 old_striplib=
5608 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5611   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5612   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5613   echo "$as_me:$LINENO: result: yes" >&5
5614 echo "${ECHO_T}yes" >&6
5615 else
5616   echo "$as_me:$LINENO: result: no" >&5
5617 echo "${ECHO_T}no" >&6
5618 fi
5619
5620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5621 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5622
5623 # PORTME Fill in your ld.so characteristics
5624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5626 library_names_spec=
5627 libname_spec='lib$name'
5628 soname_spec=
5629 postinstall_cmds=
5630 postuninstall_cmds=
5631 finish_cmds=
5632 finish_eval=
5633 shlibpath_var=
5634 shlibpath_overrides_runpath=unknown
5635 version_type=none
5636 dynamic_linker="$host_os ld.so"
5637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5639
5640 case $host_os in
5641 aix3*)
5642   version_type=linux
5643   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5644   shlibpath_var=LIBPATH
5645
5646   # AIX has no versioning support, so we append a major version to the name.
5647   soname_spec='${libname}${release}.so$major'
5648   ;;
5649
5650 aix4* | aix5*)
5651   version_type=linux
5652   if test "$host_cpu" = ia64; then
5653     # AIX 5 supports IA64
5654     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5655     shlibpath_var=LD_LIBRARY_PATH
5656   else
5657     # With GCC up to 2.95.x, collect2 would create an import file
5658     # for dependence libraries.  The import file would start with
5659     # the line `#! .'.  This would cause the generated library to
5660     # depend on `.', always an invalid library.  This was fixed in
5661     # development snapshots of GCC prior to 3.0.
5662     case $host_os in
5663       aix4 | aix4.[01] | aix4.[01].*)
5664         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5665              echo ' yes '
5666              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5667           :
5668         else
5669           can_build_shared=no
5670         fi
5671         ;;
5672     esac
5673     # AIX (on Power*) has no versioning support, so currently we can
5674     # not hardcode correct soname into executable. Probably we can
5675     # add versioning support to collect2, so additional links can
5676     # be useful in future.
5677     if test "$aix_use_runtimelinking" = yes; then
5678       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5679       # instead of lib<name>.a to let people know that these are not
5680       # typical AIX shared libraries.
5681       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5682     else
5683       # We preserve .a as extension for shared libraries through AIX4.2
5684       # and later when we are not doing run time linking.
5685       library_names_spec='${libname}${release}.a $libname.a'
5686       soname_spec='${libname}${release}.so$major'
5687     fi
5688     shlibpath_var=LIBPATH
5689   fi
5690   ;;
5691
5692 amigaos*)
5693   library_names_spec='$libname.ixlibrary $libname.a'
5694   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5695   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'
5696   ;;
5697
5698 beos*)
5699   library_names_spec='${libname}.so'
5700   dynamic_linker="$host_os ld.so"
5701   shlibpath_var=LIBRARY_PATH
5702   ;;
5703
5704 bsdi4*)
5705   version_type=linux
5706   need_version=no
5707   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5708   soname_spec='${libname}${release}.so$major'
5709   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5710   shlibpath_var=LD_LIBRARY_PATH
5711   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5712   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5713   export_dynamic_flag_spec=-rdynamic
5714   # the default ld.so.conf also contains /usr/contrib/lib and
5715   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5716   # libtool to hard-code these into programs
5717   ;;
5718
5719 cygwin* | mingw* | pw32*)
5720   version_type=windows
5721   need_version=no
5722   need_lib_prefix=no
5723   case $GCC,$host_os in
5724   yes,cygwin*)
5725     library_names_spec='$libname.dll.a'
5726     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5727     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5728       dldir=$destdir/`dirname \$dlpath`~
5729       test -d \$dldir || mkdir -p \$dldir~
5730       $install_prog .libs/$dlname \$dldir/$dlname'
5731     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5732       dlpath=$dir/\$dldll~
5733        $rm \$dlpath'
5734     ;;
5735   yes,mingw*)
5736     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5737     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5738     ;;
5739   yes,pw32*)
5740     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5741     ;;
5742   *)
5743     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5744     ;;
5745   esac
5746   dynamic_linker='Win32 ld.exe'
5747   # FIXME: first we should search . and the directory the executable is in
5748   shlibpath_var=PATH
5749   ;;
5750
5751 darwin* | rhapsody*)
5752   dynamic_linker="$host_os dyld"
5753   version_type=darwin
5754   need_lib_prefix=no
5755   need_version=no
5756   # FIXME: Relying on posixy $() will cause problems for
5757   #        cross-compilation, but unfortunately the echo tests do not
5758   #        yet detect zsh echo's removal of \ escapes.
5759   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)'
5760   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5761   shlibpath_overrides_runpath=yes
5762   shlibpath_var=DYLD_LIBRARY_PATH
5763   ;;
5764
5765 freebsd1*)
5766   dynamic_linker=no
5767   ;;
5768
5769 freebsd*)
5770   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5771   version_type=freebsd-$objformat
5772   case $version_type in
5773     freebsd-elf*)
5774       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5775       need_version=no
5776       need_lib_prefix=no
5777       ;;
5778     freebsd-*)
5779       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5780       need_version=yes
5781       ;;
5782   esac
5783   shlibpath_var=LD_LIBRARY_PATH
5784   case $host_os in
5785   freebsd2*)
5786     shlibpath_overrides_runpath=yes
5787     ;;
5788   *)
5789     shlibpath_overrides_runpath=no
5790     hardcode_into_libs=yes
5791     ;;
5792   esac
5793   ;;
5794
5795 gnu*)
5796   version_type=linux
5797   need_lib_prefix=no
5798   need_version=no
5799   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5800   soname_spec='${libname}${release}.so$major'
5801   shlibpath_var=LD_LIBRARY_PATH
5802   hardcode_into_libs=yes
5803   ;;
5804
5805 hpux9* | hpux10* | hpux11*)
5806   # Give a soname corresponding to the major version so that dld.sl refuses to
5807   # link against other versions.
5808   dynamic_linker="$host_os dld.sl"
5809   version_type=sunos
5810   need_lib_prefix=no
5811   need_version=no
5812   shlibpath_var=SHLIB_PATH
5813   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5814   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5815   soname_spec='${libname}${release}.sl$major'
5816   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5817   postinstall_cmds='chmod 555 $lib'
5818   ;;
5819
5820 irix5* | irix6* | nonstopux*)
5821   case $host_os in
5822     nonstopux*) version_type=nonstopux ;;
5823     *)          version_type=irix ;;
5824   esac
5825   need_lib_prefix=no
5826   need_version=no
5827   soname_spec='${libname}${release}.so$major'
5828   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5829   case $host_os in
5830   irix5* | nonstopux*)
5831     libsuff= shlibsuff=
5832     ;;
5833   *)
5834     case $LD in # libtool.m4 will add one of these switches to LD
5835     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5836     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5837     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5838     *) libsuff= shlibsuff= libmagic=never-match;;
5839     esac
5840     ;;
5841   esac
5842   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5843   shlibpath_overrides_runpath=no
5844   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5845   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5846   ;;
5847
5848 # No shared lib support for Linux oldld, aout, or coff.
5849 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5850   dynamic_linker=no
5851   ;;
5852
5853 # This must be Linux ELF.
5854 linux-gnu*)
5855   version_type=linux
5856   need_lib_prefix=no
5857   need_version=no
5858   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5859   soname_spec='${libname}${release}.so$major'
5860   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5861   shlibpath_var=LD_LIBRARY_PATH
5862   shlibpath_overrides_runpath=no
5863   # This implies no fast_install, which is unacceptable.
5864   # Some rework will be needed to allow for fast_install
5865   # before this can be enabled.
5866   hardcode_into_libs=yes
5867
5868   # We used to test for /lib/ld.so.1 and disable shared libraries on
5869   # powerpc, because MkLinux only supported shared libraries with the
5870   # GNU dynamic linker.  Since this was broken with cross compilers,
5871   # most powerpc-linux boxes support dynamic linking these days and
5872   # people can always --disable-shared, the test was removed, and we
5873   # assume the GNU/Linux dynamic linker is in use.
5874   dynamic_linker='GNU/Linux ld.so'
5875   ;;
5876
5877 netbsd*)
5878   version_type=sunos
5879   need_lib_prefix=no
5880   need_version=no
5881   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5882     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5883     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5884     dynamic_linker='NetBSD (a.out) ld.so'
5885   else
5886     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5887     soname_spec='${libname}${release}.so$major'
5888     dynamic_linker='NetBSD ld.elf_so'
5889   fi
5890   shlibpath_var=LD_LIBRARY_PATH
5891   shlibpath_overrides_runpath=yes
5892   hardcode_into_libs=yes
5893   ;;
5894
5895 newsos6)
5896   version_type=linux
5897   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5898   shlibpath_var=LD_LIBRARY_PATH
5899   shlibpath_overrides_runpath=yes
5900   ;;
5901
5902 openbsd*)
5903   version_type=sunos
5904   need_lib_prefix=no
5905   need_version=no
5906   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5907     case "$host_os" in
5908     openbsd2.[89] | openbsd2.[89].*)
5909       shlibpath_overrides_runpath=no
5910       ;;
5911     *)
5912       shlibpath_overrides_runpath=yes
5913       ;;
5914     esac
5915   else
5916     shlibpath_overrides_runpath=yes
5917   fi
5918   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5920   shlibpath_var=LD_LIBRARY_PATH
5921   ;;
5922
5923 os2*)
5924   libname_spec='$name'
5925   need_lib_prefix=no
5926   library_names_spec='$libname.dll $libname.a'
5927   dynamic_linker='OS/2 ld.exe'
5928   shlibpath_var=LIBPATH
5929   ;;
5930
5931 osf3* | osf4* | osf5*)
5932   version_type=osf
5933   need_version=no
5934   need_lib_prefix=no
5935   soname_spec='${libname}${release}.so'
5936   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5937   shlibpath_var=LD_LIBRARY_PATH
5938   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5939   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5940   ;;
5941
5942 sco3.2v5*)
5943   version_type=osf
5944   soname_spec='${libname}${release}.so$major'
5945   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5946   shlibpath_var=LD_LIBRARY_PATH
5947   ;;
5948
5949 solaris*)
5950   version_type=linux
5951   need_lib_prefix=no
5952   need_version=no
5953   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5954   soname_spec='${libname}${release}.so$major'
5955   shlibpath_var=LD_LIBRARY_PATH
5956   shlibpath_overrides_runpath=yes
5957   hardcode_into_libs=yes
5958   # ldd complains unless libraries are executable
5959   postinstall_cmds='chmod +x $lib'
5960   ;;
5961
5962 sunos4*)
5963   version_type=sunos
5964   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5965   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5966   shlibpath_var=LD_LIBRARY_PATH
5967   shlibpath_overrides_runpath=yes
5968   if test "$with_gnu_ld" = yes; then
5969     need_lib_prefix=no
5970   fi
5971   need_version=yes
5972   ;;
5973
5974 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5975   version_type=linux
5976   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5977   soname_spec='${libname}${release}.so$major'
5978   shlibpath_var=LD_LIBRARY_PATH
5979   case $host_vendor in
5980     sni)
5981       shlibpath_overrides_runpath=no
5982       ;;
5983     motorola)
5984       need_lib_prefix=no
5985       need_version=no
5986       shlibpath_overrides_runpath=no
5987       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5988       ;;
5989   esac
5990   ;;
5991
5992 uts4*)
5993   version_type=linux
5994   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5995   soname_spec='${libname}${release}.so$major'
5996   shlibpath_var=LD_LIBRARY_PATH
5997   ;;
5998
5999 dgux*)
6000   version_type=linux
6001   need_lib_prefix=no
6002   need_version=no
6003   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6004   soname_spec='${libname}${release}.so$major'
6005   shlibpath_var=LD_LIBRARY_PATH
6006   ;;
6007
6008 sysv4*MP*)
6009   if test -d /usr/nec ;then
6010     version_type=linux
6011     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6012     soname_spec='$libname.so.$major'
6013     shlibpath_var=LD_LIBRARY_PATH
6014   fi
6015   ;;
6016
6017 *)
6018   dynamic_linker=no
6019   ;;
6020 esac
6021 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6022 echo "${ECHO_T}$dynamic_linker" >&6
6023 test "$dynamic_linker" = no && can_build_shared=no
6024
6025 # Report the final consequences.
6026 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6027 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6028 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6029 echo "${ECHO_T}$can_build_shared" >&6
6030
6031 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6032 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6033 test "$can_build_shared" = "no" && enable_shared=no
6034
6035 # On AIX, shared libraries and static libraries use the same namespace, and
6036 # are all built from PIC.
6037 case "$host_os" in
6038 aix3*)
6039   test "$enable_shared" = yes && enable_static=no
6040   if test -n "$RANLIB"; then
6041     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6042     postinstall_cmds='$RANLIB $lib'
6043   fi
6044   ;;
6045
6046 aix4*)
6047   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6048     test "$enable_shared" = yes && enable_static=no
6049   fi
6050   ;;
6051 esac
6052 echo "$as_me:$LINENO: result: $enable_shared" >&5
6053 echo "${ECHO_T}$enable_shared" >&6
6054
6055 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6056 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6057 # Make sure either enable_shared or enable_static is yes.
6058 test "$enable_shared" = yes || enable_static=yes
6059 echo "$as_me:$LINENO: result: $enable_static" >&5
6060 echo "${ECHO_T}$enable_static" >&6
6061
6062 if test "$hardcode_action" = relink; then
6063   # Fast installation is not supported
6064   enable_fast_install=no
6065 elif test "$shlibpath_overrides_runpath" = yes ||
6066      test "$enable_shared" = no; then
6067   # Fast installation is not necessary
6068   enable_fast_install=needless
6069 fi
6070
6071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6072 if test "$GCC" = yes; then
6073   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6074 fi
6075
6076 if test "x$enable_dlopen" != xyes; then
6077   enable_dlopen=unknown
6078   enable_dlopen_self=unknown
6079   enable_dlopen_self_static=unknown
6080 else
6081   lt_cv_dlopen=no
6082   lt_cv_dlopen_libs=
6083
6084   case $host_os in
6085   beos*)
6086     lt_cv_dlopen="load_add_on"
6087     lt_cv_dlopen_libs=
6088     lt_cv_dlopen_self=yes
6089     ;;
6090
6091   cygwin* | mingw* | pw32*)
6092     lt_cv_dlopen="LoadLibrary"
6093     lt_cv_dlopen_libs=
6094    ;;
6095
6096   *)
6097     echo "$as_me:$LINENO: checking for shl_load" >&5
6098 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6099 if test "${ac_cv_func_shl_load+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   cat >conftest.$ac_ext <<_ACEOF
6103 #line $LINENO "configure"
6104 #include "confdefs.h"
6105 /* System header to define __stub macros and hopefully few prototypes,
6106     which can conflict with char shl_load (); below.  */
6107 #include <assert.h>
6108 /* Override any gcc2 internal prototype to avoid an error.  */
6109 #ifdef __cplusplus
6110 extern "C"
6111 #endif
6112 /* We use char because int might match the return type of a gcc2
6113    builtin and then its argument prototype would still apply.  */
6114 char shl_load ();
6115 char (*f) ();
6116
6117 #ifdef F77_DUMMY_MAIN
6118 #  ifdef __cplusplus
6119      extern "C"
6120 #  endif
6121    int F77_DUMMY_MAIN() { return 1; }
6122 #endif
6123 int
6124 main ()
6125 {
6126 /* The GNU C library defines this for functions which it implements
6127     to always fail with ENOSYS.  Some functions are actually named
6128     something starting with __ and the normal name is an alias.  */
6129 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6130 choke me
6131 #else
6132 f = shl_load;
6133 #endif
6134
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext conftest$ac_exeext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141   (eval $ac_link) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } &&
6145          { ac_try='test -s conftest$ac_exeext'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; }; then
6151   ac_cv_func_shl_load=yes
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6155 ac_cv_func_shl_load=no
6156 fi
6157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6158 fi
6159 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6160 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6161 if test $ac_cv_func_shl_load = yes; then
6162   lt_cv_dlopen="shl_load"
6163 else
6164   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6165 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6166 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   ac_check_lib_save_LIBS=$LIBS
6170 LIBS="-ldld  $LIBS"
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6173 #include "confdefs.h"
6174
6175 /* Override any gcc2 internal prototype to avoid an error.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180    builtin and then its argument prototype would still apply.  */
6181 char shl_load ();
6182 #ifdef F77_DUMMY_MAIN
6183 #  ifdef __cplusplus
6184      extern "C"
6185 #  endif
6186    int F77_DUMMY_MAIN() { return 1; }
6187 #endif
6188 int
6189 main ()
6190 {
6191 shl_load ();
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198   (eval $ac_link) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } &&
6202          { ac_try='test -s conftest$ac_exeext'
6203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204   (eval $ac_try) 2>&5
6205   ac_status=$?
6206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207   (exit $ac_status); }; }; then
6208   ac_cv_lib_dld_shl_load=yes
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6212 ac_cv_lib_dld_shl_load=no
6213 fi
6214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6215 LIBS=$ac_check_lib_save_LIBS
6216 fi
6217 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6218 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6219 if test $ac_cv_lib_dld_shl_load = yes; then
6220   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6221 else
6222   echo "$as_me:$LINENO: checking for dlopen" >&5
6223 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6224 if test "${ac_cv_func_dlopen+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   cat >conftest.$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6229 #include "confdefs.h"
6230 /* System header to define __stub macros and hopefully few prototypes,
6231     which can conflict with char dlopen (); below.  */
6232 #include <assert.h>
6233 /* Override any gcc2 internal prototype to avoid an error.  */
6234 #ifdef __cplusplus
6235 extern "C"
6236 #endif
6237 /* We use char because int might match the return type of a gcc2
6238    builtin and then its argument prototype would still apply.  */
6239 char dlopen ();
6240 char (*f) ();
6241
6242 #ifdef F77_DUMMY_MAIN
6243 #  ifdef __cplusplus
6244      extern "C"
6245 #  endif
6246    int F77_DUMMY_MAIN() { return 1; }
6247 #endif
6248 int
6249 main ()
6250 {
6251 /* The GNU C library defines this for functions which it implements
6252     to always fail with ENOSYS.  Some functions are actually named
6253     something starting with __ and the normal name is an alias.  */
6254 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6255 choke me
6256 #else
6257 f = dlopen;
6258 #endif
6259
6260   ;
6261   return 0;
6262 }
6263 _ACEOF
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266   (eval $ac_link) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); } &&
6270          { ac_try='test -s conftest$ac_exeext'
6271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; }; then
6276   ac_cv_func_dlopen=yes
6277 else
6278   echo "$as_me: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6280 ac_cv_func_dlopen=no
6281 fi
6282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6283 fi
6284 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6285 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6286 if test $ac_cv_func_dlopen = yes; then
6287   lt_cv_dlopen="dlopen"
6288 else
6289   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   ac_check_lib_save_LIBS=$LIBS
6295 LIBS="-ldl  $LIBS"
6296 cat >conftest.$ac_ext <<_ACEOF
6297 #line $LINENO "configure"
6298 #include "confdefs.h"
6299
6300 /* Override any gcc2 internal prototype to avoid an error.  */
6301 #ifdef __cplusplus
6302 extern "C"
6303 #endif
6304 /* We use char because int might match the return type of a gcc2
6305    builtin and then its argument prototype would still apply.  */
6306 char dlopen ();
6307 #ifdef F77_DUMMY_MAIN
6308 #  ifdef __cplusplus
6309      extern "C"
6310 #  endif
6311    int F77_DUMMY_MAIN() { return 1; }
6312 #endif
6313 int
6314 main ()
6315 {
6316 dlopen ();
6317   ;
6318   return 0;
6319 }
6320 _ACEOF
6321 rm -f conftest.$ac_objext conftest$ac_exeext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6323   (eval $ac_link) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); } &&
6327          { ac_try='test -s conftest$ac_exeext'
6328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329   (eval $ac_try) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; }; then
6333   ac_cv_lib_dl_dlopen=yes
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6337 ac_cv_lib_dl_dlopen=no
6338 fi
6339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6340 LIBS=$ac_check_lib_save_LIBS
6341 fi
6342 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6343 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6344 if test $ac_cv_lib_dl_dlopen = yes; then
6345   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6346 else
6347   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6348 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6349 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   ac_check_lib_save_LIBS=$LIBS
6353 LIBS="-lsvld  $LIBS"
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 #include "confdefs.h"
6357
6358 /* Override any gcc2 internal prototype to avoid an error.  */
6359 #ifdef __cplusplus
6360 extern "C"
6361 #endif
6362 /* We use char because int might match the return type of a gcc2
6363    builtin and then its argument prototype would still apply.  */
6364 char dlopen ();
6365 #ifdef F77_DUMMY_MAIN
6366 #  ifdef __cplusplus
6367      extern "C"
6368 #  endif
6369    int F77_DUMMY_MAIN() { return 1; }
6370 #endif
6371 int
6372 main ()
6373 {
6374 dlopen ();
6375   ;
6376   return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381   (eval $ac_link) 2>&5
6382   ac_status=$?
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } &&
6385          { ac_try='test -s conftest$ac_exeext'
6386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387   (eval $ac_try) 2>&5
6388   ac_status=$?
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); }; }; then
6391   ac_cv_lib_svld_dlopen=yes
6392 else
6393   echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 ac_cv_lib_svld_dlopen=no
6396 fi
6397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6398 LIBS=$ac_check_lib_save_LIBS
6399 fi
6400 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6401 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6402 if test $ac_cv_lib_svld_dlopen = yes; then
6403   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6404 else
6405   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6406 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6407 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   ac_check_lib_save_LIBS=$LIBS
6411 LIBS="-ldld  $LIBS"
6412 cat >conftest.$ac_ext <<_ACEOF
6413 #line $LINENO "configure"
6414 #include "confdefs.h"
6415
6416 /* Override any gcc2 internal prototype to avoid an error.  */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 /* We use char because int might match the return type of a gcc2
6421    builtin and then its argument prototype would still apply.  */
6422 char dld_link ();
6423 #ifdef F77_DUMMY_MAIN
6424 #  ifdef __cplusplus
6425      extern "C"
6426 #  endif
6427    int F77_DUMMY_MAIN() { return 1; }
6428 #endif
6429 int
6430 main ()
6431 {
6432 dld_link ();
6433   ;
6434   return 0;
6435 }
6436 _ACEOF
6437 rm -f conftest.$ac_objext conftest$ac_exeext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6439   (eval $ac_link) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); } &&
6443          { ac_try='test -s conftest$ac_exeext'
6444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445   (eval $ac_try) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; }; then
6449   ac_cv_lib_dld_dld_link=yes
6450 else
6451   echo "$as_me: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6453 ac_cv_lib_dld_dld_link=no
6454 fi
6455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6456 LIBS=$ac_check_lib_save_LIBS
6457 fi
6458 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6459 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6460 if test $ac_cv_lib_dld_dld_link = yes; then
6461   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6462 fi
6463
6464
6465 fi
6466
6467
6468 fi
6469
6470
6471 fi
6472
6473
6474 fi
6475
6476
6477 fi
6478
6479     ;;
6480   esac
6481
6482   if test "x$lt_cv_dlopen" != xno; then
6483     enable_dlopen=yes
6484   else
6485     enable_dlopen=no
6486   fi
6487
6488   case $lt_cv_dlopen in
6489   dlopen)
6490     save_CPPFLAGS="$CPPFLAGS"
6491         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6492
6493     save_LDFLAGS="$LDFLAGS"
6494     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6495
6496     save_LIBS="$LIBS"
6497     LIBS="$lt_cv_dlopen_libs $LIBS"
6498
6499     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6500 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6501 if test "${lt_cv_dlopen_self+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504           if test "$cross_compiling" = yes; then :
6505   lt_cv_dlopen_self=cross
6506 else
6507     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6508   lt_status=$lt_dlunknown
6509   cat > conftest.$ac_ext <<EOF
6510 #line 6510 "configure"
6511 #include "confdefs.h"
6512
6513 #if HAVE_DLFCN_H
6514 #include <dlfcn.h>
6515 #endif
6516
6517 #include <stdio.h>
6518
6519 #ifdef RTLD_GLOBAL
6520 #  define LT_DLGLOBAL           RTLD_GLOBAL
6521 #else
6522 #  ifdef DL_GLOBAL
6523 #    define LT_DLGLOBAL         DL_GLOBAL
6524 #  else
6525 #    define LT_DLGLOBAL         0
6526 #  endif
6527 #endif
6528
6529 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6530    find out it does not work in some platform. */
6531 #ifndef LT_DLLAZY_OR_NOW
6532 #  ifdef RTLD_LAZY
6533 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6534 #  else
6535 #    ifdef DL_LAZY
6536 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6537 #    else
6538 #      ifdef RTLD_NOW
6539 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6540 #      else
6541 #        ifdef DL_NOW
6542 #          define LT_DLLAZY_OR_NOW      DL_NOW
6543 #        else
6544 #          define LT_DLLAZY_OR_NOW      0
6545 #        endif
6546 #      endif
6547 #    endif
6548 #  endif
6549 #endif
6550
6551 #ifdef __cplusplus
6552 extern "C" void exit (int);
6553 #endif
6554
6555 void fnord() { int i=42;}
6556 int main ()
6557 {
6558   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6559   int status = $lt_dlunknown;
6560
6561   if (self)
6562     {
6563       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6564       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6565       /* dlclose (self); */
6566     }
6567
6568     exit (status);
6569 }
6570 EOF
6571   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6576     (./conftest; exit; ) 2>/dev/null
6577     lt_status=$?
6578     case x$lt_status in
6579       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6580       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6581       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6582     esac
6583   else :
6584     # compilation failed
6585     lt_cv_dlopen_self=no
6586   fi
6587 fi
6588 rm -fr conftest*
6589
6590
6591 fi
6592 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6593 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6594
6595     if test "x$lt_cv_dlopen_self" = xyes; then
6596       LDFLAGS="$LDFLAGS $link_static_flag"
6597       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6598 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6599 if test "${lt_cv_dlopen_self_static+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602           if test "$cross_compiling" = yes; then :
6603   lt_cv_dlopen_self_static=cross
6604 else
6605     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6606   lt_status=$lt_dlunknown
6607   cat > conftest.$ac_ext <<EOF
6608 #line 6608 "configure"
6609 #include "confdefs.h"
6610
6611 #if HAVE_DLFCN_H
6612 #include <dlfcn.h>
6613 #endif
6614
6615 #include <stdio.h>
6616
6617 #ifdef RTLD_GLOBAL
6618 #  define LT_DLGLOBAL           RTLD_GLOBAL
6619 #else
6620 #  ifdef DL_GLOBAL
6621 #    define LT_DLGLOBAL         DL_GLOBAL
6622 #  else
6623 #    define LT_DLGLOBAL         0
6624 #  endif
6625 #endif
6626
6627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6628    find out it does not work in some platform. */
6629 #ifndef LT_DLLAZY_OR_NOW
6630 #  ifdef RTLD_LAZY
6631 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6632 #  else
6633 #    ifdef DL_LAZY
6634 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6635 #    else
6636 #      ifdef RTLD_NOW
6637 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6638 #      else
6639 #        ifdef DL_NOW
6640 #          define LT_DLLAZY_OR_NOW      DL_NOW
6641 #        else
6642 #          define LT_DLLAZY_OR_NOW      0
6643 #        endif
6644 #      endif
6645 #    endif
6646 #  endif
6647 #endif
6648
6649 #ifdef __cplusplus
6650 extern "C" void exit (int);
6651 #endif
6652
6653 void fnord() { int i=42;}
6654 int main ()
6655 {
6656   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6657   int status = $lt_dlunknown;
6658
6659   if (self)
6660     {
6661       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6662       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6663       /* dlclose (self); */
6664     }
6665
6666     exit (status);
6667 }
6668 EOF
6669   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670   (eval $ac_link) 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6674     (./conftest; exit; ) 2>/dev/null
6675     lt_status=$?
6676     case x$lt_status in
6677       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6678       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6679       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6680     esac
6681   else :
6682     # compilation failed
6683     lt_cv_dlopen_self_static=no
6684   fi
6685 fi
6686 rm -fr conftest*
6687
6688
6689 fi
6690 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6691 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6692     fi
6693
6694     CPPFLAGS="$save_CPPFLAGS"
6695     LDFLAGS="$save_LDFLAGS"
6696     LIBS="$save_LIBS"
6697     ;;
6698   esac
6699
6700   case $lt_cv_dlopen_self in
6701   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6702   *) enable_dlopen_self=unknown ;;
6703   esac
6704
6705   case $lt_cv_dlopen_self_static in
6706   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6707   *) enable_dlopen_self_static=unknown ;;
6708   esac
6709 fi
6710
6711
6712 if test "$enable_shared" = yes && test "$GCC" = yes; then
6713   case $archive_cmds in
6714   *'~'*)
6715     # FIXME: we may have to deal with multi-command sequences.
6716     ;;
6717   '$CC '*)
6718     # Test whether the compiler implicitly links with -lc since on some
6719     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6720     # to ld, don't add -lc before -lgcc.
6721     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6722 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6723     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726   $rm conftest*
6727     echo 'static int dummy;' > conftest.$ac_ext
6728
6729     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730   (eval $ac_compile) 2>&5
6731   ac_status=$?
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); }; then
6734       soname=conftest
6735       lib=conftest
6736       libobjs=conftest.$ac_objext
6737       deplibs=
6738       wl=$lt_cv_prog_cc_wl
6739       compiler_flags=-v
6740       linker_flags=-v
6741       verstring=
6742       output_objdir=.
6743       libname=conftest
6744       save_allow_undefined_flag=$allow_undefined_flag
6745       allow_undefined_flag=
6746       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6747   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }
6751       then
6752         lt_cv_archive_cmds_need_lc=no
6753       else
6754         lt_cv_archive_cmds_need_lc=yes
6755       fi
6756       allow_undefined_flag=$save_allow_undefined_flag
6757     else
6758       cat conftest.err 1>&5
6759     fi
6760 fi
6761
6762     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6763 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6764     ;;
6765   esac
6766 fi
6767 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6768
6769 # The second clause should only fire when bootstrapping the
6770 # libtool distribution, otherwise you forgot to ship ltmain.sh
6771 # with your package, and you will get complaints that there are
6772 # no rules to generate ltmain.sh.
6773 if test -f "$ltmain"; then
6774   :
6775 else
6776   # If there is no Makefile yet, we rely on a make rule to execute
6777   # `config.status --recheck' to rerun these tests and create the
6778   # libtool script then.
6779   test -f Makefile && make "$ltmain"
6780 fi
6781
6782 if test -f "$ltmain"; then
6783   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6784   $rm -f "${ofile}T"
6785
6786   echo creating $ofile
6787
6788   # Now quote all the things that may contain metacharacters while being
6789   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6790   # variables and quote the copies for generation of the libtool script.
6791   for var in echo old_CC old_CFLAGS \
6792     AR AR_FLAGS CC LD LN_S NM SHELL \
6793     reload_flag reload_cmds wl \
6794     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6795     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6796     library_names_spec soname_spec \
6797     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6798     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6799     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6800     old_striplib striplib file_magic_cmd export_symbols_cmds \
6801     deplibs_check_method allow_undefined_flag no_undefined_flag \
6802     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6803     global_symbol_to_c_name_address \
6804     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6805     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6806     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6807
6808     case $var in
6809     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6810     old_postinstall_cmds | old_postuninstall_cmds | \
6811     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6812     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6813     postinstall_cmds | postuninstall_cmds | \
6814     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6815       # Double-quote double-evaled strings.
6816       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6817       ;;
6818     *)
6819       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6820       ;;
6821     esac
6822   done
6823
6824   cat <<__EOF__ > "${ofile}T"
6825 #! $SHELL
6826
6827 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6828 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6829 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6830 #
6831 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6832 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6833 #
6834 # This program is free software; you can redistribute it and/or modify
6835 # it under the terms of the GNU General Public License as published by
6836 # the Free Software Foundation; either version 2 of the License, or
6837 # (at your option) any later version.
6838 #
6839 # This program is distributed in the hope that it will be useful, but
6840 # WITHOUT ANY WARRANTY; without even the implied warranty of
6841 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6842 # General Public License for more details.
6843 #
6844 # You should have received a copy of the GNU General Public License
6845 # along with this program; if not, write to the Free Software
6846 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6847 #
6848 # As a special exception to the GNU General Public License, if you
6849 # distribute this file as part of a program that contains a
6850 # configuration script generated by Autoconf, you may include it under
6851 # the same distribution terms that you use for the rest of that program.
6852
6853 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6854 Xsed="sed -e s/^X//"
6855
6856 # The HP-UX ksh and POSIX shell print the target directory to stdout
6857 # if CDPATH is set.
6858 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6859
6860 # ### BEGIN LIBTOOL CONFIG
6861
6862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6863
6864 # Shell to use when invoking shell scripts.
6865 SHELL=$lt_SHELL
6866
6867 # Whether or not to build shared libraries.
6868 build_libtool_libs=$enable_shared
6869
6870 # Whether or not to build static libraries.
6871 build_old_libs=$enable_static
6872
6873 # Whether or not to add -lc for building shared libraries.
6874 build_libtool_need_lc=$need_lc
6875
6876 # Whether or not to optimize for fast installation.
6877 fast_install=$enable_fast_install
6878
6879 # The host system.
6880 host_alias=$host_alias
6881 host=$host
6882
6883 # An echo program that does not interpret backslashes.
6884 echo=$lt_echo
6885
6886 # The archiver.
6887 AR=$lt_AR
6888 AR_FLAGS=$lt_AR_FLAGS
6889
6890 # The default C compiler.
6891 CC=$lt_CC
6892
6893 # Is the compiler the GNU C compiler?
6894 with_gcc=$GCC
6895
6896 # The linker used to build libraries.
6897 LD=$lt_LD
6898
6899 # Whether we need hard or soft links.
6900 LN_S=$lt_LN_S
6901
6902 # A BSD-compatible nm program.
6903 NM=$lt_NM
6904
6905 # A symbol stripping program
6906 STRIP=$STRIP
6907
6908 # Used to examine libraries when file_magic_cmd begins "file"
6909 MAGIC_CMD=$MAGIC_CMD
6910
6911 # Used on cygwin: DLL creation program.
6912 DLLTOOL="$DLLTOOL"
6913
6914 # Used on cygwin: object dumper.
6915 OBJDUMP="$OBJDUMP"
6916
6917 # Used on cygwin: assembler.
6918 AS="$AS"
6919
6920 # The name of the directory that contains temporary libtool files.
6921 objdir=$objdir
6922
6923 # How to create reloadable object files.
6924 reload_flag=$lt_reload_flag
6925 reload_cmds=$lt_reload_cmds
6926
6927 # How to pass a linker flag through the compiler.
6928 wl=$lt_wl
6929
6930 # Object file suffix (normally "o").
6931 objext="$ac_objext"
6932
6933 # Old archive suffix (normally "a").
6934 libext="$libext"
6935
6936 # Executable file suffix (normally "").
6937 exeext="$exeext"
6938
6939 # Additional compiler flags for building library objects.
6940 pic_flag=$lt_pic_flag
6941 pic_mode=$pic_mode
6942
6943 # Does compiler simultaneously support -c and -o options?
6944 compiler_c_o=$lt_compiler_c_o
6945
6946 # Can we write directly to a .lo ?
6947 compiler_o_lo=$lt_compiler_o_lo
6948
6949 # Must we lock files when doing compilation ?
6950 need_locks=$lt_need_locks
6951
6952 # Do we need the lib prefix for modules?
6953 need_lib_prefix=$need_lib_prefix
6954
6955 # Do we need a version for libraries?
6956 need_version=$need_version
6957
6958 # Whether dlopen is supported.
6959 dlopen_support=$enable_dlopen
6960
6961 # Whether dlopen of programs is supported.
6962 dlopen_self=$enable_dlopen_self
6963
6964 # Whether dlopen of statically linked programs is supported.
6965 dlopen_self_static=$enable_dlopen_self_static
6966
6967 # Compiler flag to prevent dynamic linking.
6968 link_static_flag=$lt_link_static_flag
6969
6970 # Compiler flag to turn off builtin functions.
6971 no_builtin_flag=$lt_no_builtin_flag
6972
6973 # Compiler flag to allow reflexive dlopens.
6974 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6975
6976 # Compiler flag to generate shared objects directly from archives.
6977 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6978
6979 # Compiler flag to generate thread-safe objects.
6980 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6981
6982 # Library versioning type.
6983 version_type=$version_type
6984
6985 # Format of library name prefix.
6986 libname_spec=$lt_libname_spec
6987
6988 # List of archive names.  First name is the real one, the rest are links.
6989 # The last name is the one that the linker finds with -lNAME.
6990 library_names_spec=$lt_library_names_spec
6991
6992 # The coded name of the library, if different from the real name.
6993 soname_spec=$lt_soname_spec
6994
6995 # Commands used to build and install an old-style archive.
6996 RANLIB=$lt_RANLIB
6997 old_archive_cmds=$lt_old_archive_cmds
6998 old_postinstall_cmds=$lt_old_postinstall_cmds
6999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7000
7001 # Create an old-style archive from a shared archive.
7002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7003
7004 # Create a temporary old-style archive to link instead of a shared archive.
7005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7006
7007 # Commands used to build and install a shared archive.
7008 archive_cmds=$lt_archive_cmds
7009 archive_expsym_cmds=$lt_archive_expsym_cmds
7010 postinstall_cmds=$lt_postinstall_cmds
7011 postuninstall_cmds=$lt_postuninstall_cmds
7012
7013 # Commands to strip libraries.
7014 old_striplib=$lt_old_striplib
7015 striplib=$lt_striplib
7016
7017 # Method to check whether dependent libraries are shared objects.
7018 deplibs_check_method=$lt_deplibs_check_method
7019
7020 # Command to use when deplibs_check_method == file_magic.
7021 file_magic_cmd=$lt_file_magic_cmd
7022
7023 # Flag that allows shared libraries with undefined symbols to be built.
7024 allow_undefined_flag=$lt_allow_undefined_flag
7025
7026 # Flag that forces no undefined symbols.
7027 no_undefined_flag=$lt_no_undefined_flag
7028
7029 # Commands used to finish a libtool library installation in a directory.
7030 finish_cmds=$lt_finish_cmds
7031
7032 # Same as above, but a single script fragment to be evaled but not shown.
7033 finish_eval=$lt_finish_eval
7034
7035 # Take the output of nm and produce a listing of raw symbols and C names.
7036 global_symbol_pipe=$lt_global_symbol_pipe
7037
7038 # Transform the output of nm in a proper C declaration
7039 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7040
7041 # Transform the output of nm in a C name address pair
7042 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7043
7044 # This is the shared library runtime path variable.
7045 runpath_var=$runpath_var
7046
7047 # This is the shared library path variable.
7048 shlibpath_var=$shlibpath_var
7049
7050 # Is shlibpath searched before the hard-coded library search path?
7051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7052
7053 # How to hardcode a shared library path into an executable.
7054 hardcode_action=$hardcode_action
7055
7056 # Whether we should hardcode library paths into libraries.
7057 hardcode_into_libs=$hardcode_into_libs
7058
7059 # Flag to hardcode \$libdir into a binary during linking.
7060 # This must work even if \$libdir does not exist.
7061 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7062
7063 # Whether we need a single -rpath flag with a separated argument.
7064 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7065
7066 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7067 # resulting binary.
7068 hardcode_direct=$hardcode_direct
7069
7070 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7071 # resulting binary.
7072 hardcode_minus_L=$hardcode_minus_L
7073
7074 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7075 # the resulting binary.
7076 hardcode_shlibpath_var=$hardcode_shlibpath_var
7077
7078 # Variables whose values should be saved in libtool wrapper scripts and
7079 # restored at relink time.
7080 variables_saved_for_relink="$variables_saved_for_relink"
7081
7082 # Whether libtool must link a program against all its dependency libraries.
7083 link_all_deplibs=$link_all_deplibs
7084
7085 # Compile-time system search path for libraries
7086 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7087
7088 # Run-time system search path for libraries
7089 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7090
7091 # Fix the shell variable \$srcfile for the compiler.
7092 fix_srcfile_path="$fix_srcfile_path"
7093
7094 # Set to yes if exported symbols are required.
7095 always_export_symbols=$always_export_symbols
7096
7097 # The commands to list exported symbols.
7098 export_symbols_cmds=$lt_export_symbols_cmds
7099
7100 # The commands to extract the exported symbol list from a shared archive.
7101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7102
7103 # Symbols that should not be listed in the preloaded symbols.
7104 exclude_expsyms=$lt_exclude_expsyms
7105
7106 # Symbols that must always be exported.
7107 include_expsyms=$lt_include_expsyms
7108
7109 # ### END LIBTOOL CONFIG
7110
7111 __EOF__
7112
7113   case $host_os in
7114   aix3*)
7115     cat <<\EOF >> "${ofile}T"
7116
7117 # AIX sometimes has problems with the GCC collect2 program.  For some
7118 # reason, if we set the COLLECT_NAMES environment variable, the problems
7119 # vanish in a puff of smoke.
7120 if test "X${COLLECT_NAMES+set}" != Xset; then
7121   COLLECT_NAMES=
7122   export COLLECT_NAMES
7123 fi
7124 EOF
7125     ;;
7126   esac
7127
7128   case $host_os in
7129   cygwin* | mingw* | pw32* | os2*)
7130     cat <<'EOF' >> "${ofile}T"
7131       # This is a source program that is used to create dlls on Windows
7132       # Don't remove nor modify the starting and closing comments
7133 # /* ltdll.c starts here */
7134 # #define WIN32_LEAN_AND_MEAN
7135 # #include <windows.h>
7136 # #undef WIN32_LEAN_AND_MEAN
7137 # #include <stdio.h>
7138 #
7139 # #ifndef __CYGWIN__
7140 # #  ifdef __CYGWIN32__
7141 # #    define __CYGWIN__ __CYGWIN32__
7142 # #  endif
7143 # #endif
7144 #
7145 # #ifdef __cplusplus
7146 # extern "C" {
7147 # #endif
7148 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7149 # #ifdef __cplusplus
7150 # }
7151 # #endif
7152 #
7153 # #ifdef __CYGWIN__
7154 # #include <cygwin/cygwin_dll.h>
7155 # DECLARE_CYGWIN_DLL( DllMain );
7156 # #endif
7157 # HINSTANCE __hDllInstance_base;
7158 #
7159 # BOOL APIENTRY
7160 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7161 # {
7162 #   __hDllInstance_base = hInst;
7163 #   return TRUE;
7164 # }
7165 # /* ltdll.c ends here */
7166         # This is a source program that is used to create import libraries
7167         # on Windows for dlls which lack them. Don't remove nor modify the
7168         # starting and closing comments
7169 # /* impgen.c starts here */
7170 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7171 #
7172 #  This file is part of GNU libtool.
7173 #
7174 #  This program is free software; you can redistribute it and/or modify
7175 #  it under the terms of the GNU General Public License as published by
7176 #  the Free Software Foundation; either version 2 of the License, or
7177 #  (at your option) any later version.
7178 #
7179 #  This program is distributed in the hope that it will be useful,
7180 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7181 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7182 #  GNU General Public License for more details.
7183 #
7184 #  You should have received a copy of the GNU General Public License
7185 #  along with this program; if not, write to the Free Software
7186 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7187 #  */
7188 #
7189 # #include <stdio.h>            /* for printf() */
7190 # #include <unistd.h>           /* for open(), lseek(), read() */
7191 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7192 # #include <string.h>           /* for strdup() */
7193 #
7194 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7195 # #ifndef O_BINARY
7196 # #define O_BINARY 0
7197 # #endif
7198 #
7199 # static unsigned int
7200 # pe_get16 (fd, offset)
7201 #      int fd;
7202 #      int offset;
7203 # {
7204 #   unsigned char b[2];
7205 #   lseek (fd, offset, SEEK_SET);
7206 #   read (fd, b, 2);
7207 #   return b[0] + (b[1]<<8);
7208 # }
7209 #
7210 # static unsigned int
7211 # pe_get32 (fd, offset)
7212 #     int fd;
7213 #     int offset;
7214 # {
7215 #   unsigned char b[4];
7216 #   lseek (fd, offset, SEEK_SET);
7217 #   read (fd, b, 4);
7218 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7219 # }
7220 #
7221 # static unsigned int
7222 # pe_as32 (ptr)
7223 #      void *ptr;
7224 # {
7225 #   unsigned char *b = ptr;
7226 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7227 # }
7228 #
7229 # int
7230 # main (argc, argv)
7231 #     int argc;
7232 #     char *argv[];
7233 # {
7234 #     int dll;
7235 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7236 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7237 #     unsigned long name_rvas, nexp;
7238 #     unsigned char *expdata, *erva;
7239 #     char *filename, *dll_name;
7240 #
7241 #     filename = argv[1];
7242 #
7243 #     dll = open(filename, O_RDONLY|O_BINARY);
7244 #     if (dll < 1)
7245 #       return 1;
7246 #
7247 #     dll_name = filename;
7248 #
7249 #     for (i=0; filename[i]; i++)
7250 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7251 #           dll_name = filename + i +1;
7252 #
7253 #     pe_header_offset = pe_get32 (dll, 0x3c);
7254 #     opthdr_ofs = pe_header_offset + 4 + 20;
7255 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7256 #
7257 #     if (num_entries < 1) /* no exports */
7258 #       return 1;
7259 #
7260 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7261 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7262 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7263 #     secptr = (pe_header_offset + 4 + 20 +
7264 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7265 #
7266 #     expptr = 0;
7267 #     for (i = 0; i < nsections; i++)
7268 #     {
7269 #       char sname[8];
7270 #       unsigned long secptr1 = secptr + 40 * i;
7271 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7272 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7273 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7274 #       lseek(dll, secptr1, SEEK_SET);
7275 #       read(dll, sname, 8);
7276 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7277 #       {
7278 #           expptr = fptr + (export_rva - vaddr);
7279 #           if (export_rva + export_size > vaddr + vsize)
7280 #               export_size = vsize - (export_rva - vaddr);
7281 #           break;
7282 #       }
7283 #     }
7284 #
7285 #     expdata = (unsigned char*)malloc(export_size);
7286 #     lseek (dll, expptr, SEEK_SET);
7287 #     read (dll, expdata, export_size);
7288 #     erva = expdata - export_rva;
7289 #
7290 #     nexp = pe_as32 (expdata+24);
7291 #     name_rvas = pe_as32 (expdata+32);
7292 #
7293 #     printf ("EXPORTS\n");
7294 #     for (i = 0; i<nexp; i++)
7295 #     {
7296 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7297 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7298 #     }
7299 #
7300 #     return 0;
7301 # }
7302 # /* impgen.c ends here */
7303
7304 EOF
7305     ;;
7306   esac
7307
7308   # We use sed instead of cat because bash on DJGPP gets confused if
7309   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7310   # text mode, it properly converts lines to CR/LF.  This bash problem
7311   # is reportedly fixed, but why not run on old versions too?
7312   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7313
7314   mv -f "${ofile}T" "$ofile" || \
7315     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7316   chmod +x "$ofile"
7317 fi
7318
7319
7320
7321
7322
7323 # This can be used to rebuild libtool when needed
7324 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7325
7326 # Always use our own libtool.
7327 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7328
7329 # Prevent multiple expansion
7330
7331
7332 for ac_prog in 'bison -y' byacc
7333 do
7334   # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 echo "$as_me:$LINENO: checking for $ac_word" >&5
7337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7338 if test "${ac_cv_prog_YACC+set}" = set; then
7339   echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341   if test -n "$YACC"; then
7342   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349   for ac_exec_ext in '' $ac_executable_extensions; do
7350   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351     ac_cv_prog_YACC="$ac_prog"
7352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356 done
7357
7358 fi
7359 fi
7360 YACC=$ac_cv_prog_YACC
7361 if test -n "$YACC"; then
7362   echo "$as_me:$LINENO: result: $YACC" >&5
7363 echo "${ECHO_T}$YACC" >&6
7364 else
7365   echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7367 fi
7368
7369   test -n "$YACC" && break
7370 done
7371 test -n "$YACC" || YACC="yacc"
7372
7373 ac_ext=c
7374 ac_cpp='$CPP $CPPFLAGS'
7375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378 if test -n "$ac_tool_prefix"; then
7379   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7381 echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383 if test "${ac_cv_prog_CC+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   if test -n "$CC"; then
7387   ac_cv_prog_CC="$CC" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394   for ac_exec_ext in '' $ac_executable_extensions; do
7395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396     ac_cv_prog_CC="${ac_tool_prefix}gcc"
7397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401 done
7402
7403 fi
7404 fi
7405 CC=$ac_cv_prog_CC
7406 if test -n "$CC"; then
7407   echo "$as_me:$LINENO: result: $CC" >&5
7408 echo "${ECHO_T}$CC" >&6
7409 else
7410   echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6
7412 fi
7413
7414 fi
7415 if test -z "$ac_cv_prog_CC"; then
7416   ac_ct_CC=$CC
7417   # Extract the first word of "gcc", so it can be a program name with args.
7418 set dummy gcc; ac_word=$2
7419 echo "$as_me:$LINENO: checking for $ac_word" >&5
7420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7422   echo $ECHO_N "(cached) $ECHO_C" >&6
7423 else
7424   if test -n "$ac_ct_CC"; then
7425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432   for ac_exec_ext in '' $ac_executable_extensions; do
7433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434     ac_cv_prog_ac_ct_CC="gcc"
7435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439 done
7440
7441 fi
7442 fi
7443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7444 if test -n "$ac_ct_CC"; then
7445   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7446 echo "${ECHO_T}$ac_ct_CC" >&6
7447 else
7448   echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7450 fi
7451
7452   CC=$ac_ct_CC
7453 else
7454   CC="$ac_cv_prog_CC"
7455 fi
7456
7457 if test -z "$CC"; then
7458   if test -n "$ac_tool_prefix"; then
7459   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}cc; ac_word=$2
7461 echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463 if test "${ac_cv_prog_CC+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   if test -n "$CC"; then
7467   ac_cv_prog_CC="$CC" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476     ac_cv_prog_CC="${ac_tool_prefix}cc"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482
7483 fi
7484 fi
7485 CC=$ac_cv_prog_CC
7486 if test -n "$CC"; then
7487   echo "$as_me:$LINENO: result: $CC" >&5
7488 echo "${ECHO_T}$CC" >&6
7489 else
7490   echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7492 fi
7493
7494 fi
7495 if test -z "$ac_cv_prog_CC"; then
7496   ac_ct_CC=$CC
7497   # Extract the first word of "cc", so it can be a program name with args.
7498 set dummy cc; ac_word=$2
7499 echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   if test -n "$ac_ct_CC"; then
7505   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514     ac_cv_prog_ac_ct_CC="cc"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520
7521 fi
7522 fi
7523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7524 if test -n "$ac_ct_CC"; then
7525   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7526 echo "${ECHO_T}$ac_ct_CC" >&6
7527 else
7528   echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7530 fi
7531
7532   CC=$ac_ct_CC
7533 else
7534   CC="$ac_cv_prog_CC"
7535 fi
7536
7537 fi
7538 if test -z "$CC"; then
7539   # Extract the first word of "cc", so it can be a program name with args.
7540 set dummy cc; ac_word=$2
7541 echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7543 if test "${ac_cv_prog_CC+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   if test -n "$CC"; then
7547   ac_cv_prog_CC="$CC" # Let the user override the test.
7548 else
7549   ac_prog_rejected=no
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555   for ac_exec_ext in '' $ac_executable_extensions; do
7556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7558        ac_prog_rejected=yes
7559        continue
7560      fi
7561     ac_cv_prog_CC="cc"
7562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567
7568 if test $ac_prog_rejected = yes; then
7569   # We found a bogon in the path, so make sure we never use it.
7570   set dummy $ac_cv_prog_CC
7571   shift
7572   if test $# != 0; then
7573     # We chose a different compiler from the bogus one.
7574     # However, it has the same basename, so the bogon will be chosen
7575     # first if we set CC to just the basename; use the full file name.
7576     shift
7577     set dummy "$as_dir/$ac_word" ${1+"$@"}
7578     shift
7579     ac_cv_prog_CC="$@"
7580   fi
7581 fi
7582 fi
7583 fi
7584 CC=$ac_cv_prog_CC
7585 if test -n "$CC"; then
7586   echo "$as_me:$LINENO: result: $CC" >&5
7587 echo "${ECHO_T}$CC" >&6
7588 else
7589   echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6
7591 fi
7592
7593 fi
7594 if test -z "$CC"; then
7595   if test -n "$ac_tool_prefix"; then
7596   for ac_prog in cl
7597   do
7598     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7600 echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7602 if test "${ac_cv_prog_CC+set}" = set; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605   if test -n "$CC"; then
7606   ac_cv_prog_CC="$CC" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613   for ac_exec_ext in '' $ac_executable_extensions; do
7614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620 done
7621
7622 fi
7623 fi
7624 CC=$ac_cv_prog_CC
7625 if test -n "$CC"; then
7626   echo "$as_me:$LINENO: result: $CC" >&5
7627 echo "${ECHO_T}$CC" >&6
7628 else
7629   echo "$as_me:$LINENO: result: no" >&5
7630 echo "${ECHO_T}no" >&6
7631 fi
7632
7633     test -n "$CC" && break
7634   done
7635 fi
7636 if test -z "$CC"; then
7637   ac_ct_CC=$CC
7638   for ac_prog in cl
7639 do
7640   # Extract the first word of "$ac_prog", so it can be a program name with args.
7641 set dummy $ac_prog; ac_word=$2
7642 echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647   if test -n "$ac_ct_CC"; then
7648   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657     ac_cv_prog_ac_ct_CC="$ac_prog"
7658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663
7664 fi
7665 fi
7666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7667 if test -n "$ac_ct_CC"; then
7668   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7669 echo "${ECHO_T}$ac_ct_CC" >&6
7670 else
7671   echo "$as_me:$LINENO: result: no" >&5
7672 echo "${ECHO_T}no" >&6
7673 fi
7674
7675   test -n "$ac_ct_CC" && break
7676 done
7677
7678   CC=$ac_ct_CC
7679 fi
7680
7681 fi
7682
7683
7684 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7685 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7686    { (exit 1); exit 1; }; }
7687
7688 # Provide some information about the compiler.
7689 echo "$as_me:$LINENO:" \
7690      "checking for C compiler version" >&5
7691 ac_compiler=`set X $ac_compile; echo $2`
7692 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7693   (eval $ac_compiler --version </dev/null >&5) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }
7697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7698   (eval $ac_compiler -v </dev/null >&5) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }
7702 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7703   (eval $ac_compiler -V </dev/null >&5) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }
7707
7708 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7709 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7710 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   cat >conftest.$ac_ext <<_ACEOF
7714 #line $LINENO "configure"
7715 #include "confdefs.h"
7716
7717 #ifdef F77_DUMMY_MAIN
7718 #  ifdef __cplusplus
7719      extern "C"
7720 #  endif
7721    int F77_DUMMY_MAIN() { return 1; }
7722 #endif
7723 int
7724 main ()
7725 {
7726 #ifndef __GNUC__
7727        choke me
7728 #endif
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736   (eval $ac_compile) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -s conftest.$ac_objext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   ac_compiler_gnu=yes
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7750 ac_compiler_gnu=no
7751 fi
7752 rm -f conftest.$ac_objext conftest.$ac_ext
7753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7754
7755 fi
7756 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7757 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7758 GCC=`test $ac_compiler_gnu = yes && echo yes`
7759 ac_test_CFLAGS=${CFLAGS+set}
7760 ac_save_CFLAGS=$CFLAGS
7761 CFLAGS="-g"
7762 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7763 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7764 if test "${ac_cv_prog_cc_g+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7770
7771 #ifdef F77_DUMMY_MAIN
7772 #  ifdef __cplusplus
7773      extern "C"
7774 #  endif
7775    int F77_DUMMY_MAIN() { return 1; }
7776 #endif
7777 int
7778 main ()
7779 {
7780
7781   ;
7782   return 0;
7783 }
7784 _ACEOF
7785 rm -f conftest.$ac_objext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7787   (eval $ac_compile) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); } &&
7791          { ac_try='test -s conftest.$ac_objext'
7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; }; then
7797   ac_cv_prog_cc_g=yes
7798 else
7799   echo "$as_me: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7801 ac_cv_prog_cc_g=no
7802 fi
7803 rm -f conftest.$ac_objext conftest.$ac_ext
7804 fi
7805 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7807 if test "$ac_test_CFLAGS" = set; then
7808   CFLAGS=$ac_save_CFLAGS
7809 elif test $ac_cv_prog_cc_g = yes; then
7810   if test "$GCC" = yes; then
7811     CFLAGS="-g -O2"
7812   else
7813     CFLAGS="-g"
7814   fi
7815 else
7816   if test "$GCC" = yes; then
7817     CFLAGS="-O2"
7818   else
7819     CFLAGS=
7820   fi
7821 fi
7822 # Some people use a C++ compiler to compile C.  Since we use `exit',
7823 # in C++ we need to declare it.  In case someone uses the same compiler
7824 # for both compiling C and C++ we need to have the C++ compiler decide
7825 # the declaration of exit, since it's the most demanding environment.
7826 cat >conftest.$ac_ext <<_ACEOF
7827 #ifndef __cplusplus
7828   choke me
7829 #endif
7830 _ACEOF
7831 rm -f conftest.$ac_objext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7833   (eval $ac_compile) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } &&
7837          { ac_try='test -s conftest.$ac_objext'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; }; then
7843   for ac_declaration in \
7844    ''\
7845    '#include <stdlib.h>' \
7846    'extern "C" void std::exit (int) throw (); using std::exit;' \
7847    'extern "C" void std::exit (int); using std::exit;' \
7848    'extern "C" void exit (int) throw ();' \
7849    'extern "C" void exit (int);' \
7850    'void exit (int);'
7851 do
7852   cat >conftest.$ac_ext <<_ACEOF
7853 #line $LINENO "configure"
7854 #include "confdefs.h"
7855 #include <stdlib.h>
7856 $ac_declaration
7857 #ifdef F77_DUMMY_MAIN
7858 #  ifdef __cplusplus
7859      extern "C"
7860 #  endif
7861    int F77_DUMMY_MAIN() { return 1; }
7862 #endif
7863 int
7864 main ()
7865 {
7866 exit (42);
7867   ;
7868   return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest.$ac_objext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873   (eval $ac_compile) 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } &&
7877          { ac_try='test -s conftest.$ac_objext'
7878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879   (eval $ac_try) 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); }; }; then
7883   :
7884 else
7885   echo "$as_me: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7887 continue
7888 fi
7889 rm -f conftest.$ac_objext conftest.$ac_ext
7890   cat >conftest.$ac_ext <<_ACEOF
7891 #line $LINENO "configure"
7892 #include "confdefs.h"
7893 $ac_declaration
7894 #ifdef F77_DUMMY_MAIN
7895 #  ifdef __cplusplus
7896      extern "C"
7897 #  endif
7898    int F77_DUMMY_MAIN() { return 1; }
7899 #endif
7900 int
7901 main ()
7902 {
7903 exit (42);
7904   ;
7905   return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910   (eval $ac_compile) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -s conftest.$ac_objext'
7915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916   (eval $ac_try) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; }; then
7920   break
7921 else
7922   echo "$as_me: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7924 fi
7925 rm -f conftest.$ac_objext conftest.$ac_ext
7926 done
7927 rm -f conftest*
7928 if test -n "$ac_declaration"; then
7929   echo '#ifdef __cplusplus' >>confdefs.h
7930   echo $ac_declaration      >>confdefs.h
7931   echo '#endif'             >>confdefs.h
7932 fi
7933
7934 else
7935   echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 fi
7938 rm -f conftest.$ac_objext conftest.$ac_ext
7939 ac_ext=c
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945 depcc="$CC"   am_compiler_list=
7946
7947 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7948 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7949 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7953   # We make a subdir and do the tests there.  Otherwise we can end up
7954   # making bogus files that we don't know about and never remove.  For
7955   # instance it was reported that on HP-UX the gcc test will end up
7956   # making a dummy file named `D' -- because `-MD' means `put the output
7957   # in D'.
7958   mkdir conftest.dir
7959   # Copy depcomp to subdir because otherwise we won't find it if we're
7960   # using a relative directory.
7961   cp "$am_depcomp" conftest.dir
7962   cd conftest.dir
7963
7964   am_cv_CC_dependencies_compiler_type=none
7965   if test "$am_compiler_list" = ""; then
7966      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7967   fi
7968   for depmode in $am_compiler_list; do
7969     # We need to recreate these files for each test, as the compiler may
7970     # overwrite some of them when testing with obscure command lines.
7971     # This happens at least with the AIX C compiler.
7972     echo '#include "conftest.h"' > conftest.c
7973     echo 'int i;' > conftest.h
7974     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7975
7976     case $depmode in
7977     nosideeffect)
7978       # after this tag, mechanisms are not by side-effect, so they'll
7979       # only be used when explicitly requested
7980       if test "x$enable_dependency_tracking" = xyes; then
7981         continue
7982       else
7983         break
7984       fi
7985       ;;
7986     none) break ;;
7987     esac
7988     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7989     # mode.  It turns out that the SunPro C++ compiler does not properly
7990     # handle `-M -o', and we need to detect this.
7991     if depmode=$depmode \
7992        source=conftest.c object=conftest.o \
7993        depfile=conftest.Po tmpdepfile=conftest.TPo \
7994        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7995        grep conftest.h conftest.Po > /dev/null 2>&1 &&
7996        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7997       am_cv_CC_dependencies_compiler_type=$depmode
7998       break
7999     fi
8000   done
8001
8002   cd ..
8003   rm -rf conftest.dir
8004 else
8005   am_cv_CC_dependencies_compiler_type=none
8006 fi
8007
8008 fi
8009 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8010 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8011 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8012
8013
8014 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8015 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8016 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8017 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   cat >conftest.make <<\_ACEOF
8021 all:
8022         @echo 'ac_maketemp="${MAKE}"'
8023 _ACEOF
8024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8025 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8026 if test -n "$ac_maketemp"; then
8027   eval ac_cv_prog_make_${ac_make}_set=yes
8028 else
8029   eval ac_cv_prog_make_${ac_make}_set=no
8030 fi
8031 rm -f conftest.make
8032 fi
8033 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8034   echo "$as_me:$LINENO: result: yes" >&5
8035 echo "${ECHO_T}yes" >&6
8036   SET_MAKE=
8037 else
8038   echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6
8040   SET_MAKE="MAKE=${MAKE-make}"
8041 fi
8042
8043
8044 # Checks for libraries.
8045 # FIXME: Replace `main' with a function in `-lX11':
8046 # AC_CHECK_LIB([X11], [main])
8047 # FIXME: Replace `main' with a function in `-ldl':
8048 # AC_CHECK_LIB([dl], [main])
8049 # FIXME: Replace `main' with a function in `-lefence':
8050 # AC_CHECK_LIB([efence], [main])
8051 # FIXME: Replace `main' with a function in `-lepp':
8052 # AC_CHECK_LIB([epp], [main])
8053 # FIXME: Replace `main' with a function in `-lm':
8054 # AC_CHECK_LIB([m], [main])
8055 # FIXME: Replace `main' with a function in `-lproj':
8056 # AC_CHECK_LIB([proj], [main])
8057
8058 # Checks for header files.
8059 echo "$as_me:$LINENO: checking for X" >&5
8060 echo $ECHO_N "checking for X... $ECHO_C" >&6
8061
8062
8063 # Check whether --with-x or --without-x was given.
8064 if test "${with_x+set}" = set; then
8065   withval="$with_x"
8066
8067 fi;
8068 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8069 if test "x$with_x" = xno; then
8070   # The user explicitly disabled X.
8071   have_x=disabled
8072 else
8073   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8074     # Both variables are already set.
8075     have_x=yes
8076   else
8077     if test "${ac_cv_have_x+set}" = set; then
8078   echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080   # One or both of the vars are not set, and there is no cached value.
8081 ac_x_includes=no ac_x_libraries=no
8082 rm -fr conftest.dir
8083 if mkdir conftest.dir; then
8084   cd conftest.dir
8085   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8086   cat >Imakefile <<'_ACEOF'
8087 acfindx:
8088         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8089 _ACEOF
8090   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8091     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8092     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8093     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8094     for ac_extension in a so sl; do
8095       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8096          test -f $ac_im_libdir/libX11.$ac_extension; then
8097         ac_im_usrlibdir=$ac_im_libdir; break
8098       fi
8099     done
8100     # Screen out bogus values from the imake configuration.  They are
8101     # bogus both because they are the default anyway, and because
8102     # using them would break gcc on systems where it needs fixed includes.
8103     case $ac_im_incroot in
8104         /usr/include) ;;
8105         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8106     esac
8107     case $ac_im_usrlibdir in
8108         /usr/lib | /lib) ;;
8109         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8110     esac
8111   fi
8112   cd ..
8113   rm -fr conftest.dir
8114 fi
8115
8116 # Standard set of common directories for X headers.
8117 # Check X11 before X11Rn because it is often a symlink to the current release.
8118 ac_x_header_dirs='
8119 /usr/X11/include
8120 /usr/X11R6/include
8121 /usr/X11R5/include
8122 /usr/X11R4/include
8123
8124 /usr/include/X11
8125 /usr/include/X11R6
8126 /usr/include/X11R5
8127 /usr/include/X11R4
8128
8129 /usr/local/X11/include
8130 /usr/local/X11R6/include
8131 /usr/local/X11R5/include
8132 /usr/local/X11R4/include
8133
8134 /usr/local/include/X11
8135 /usr/local/include/X11R6
8136 /usr/local/include/X11R5
8137 /usr/local/include/X11R4
8138
8139 /usr/X386/include
8140 /usr/x386/include
8141 /usr/XFree86/include/X11
8142
8143 /usr/include
8144 /usr/local/include
8145 /usr/unsupported/include
8146 /usr/athena/include
8147 /usr/local/x11r5/include
8148 /usr/lpp/Xamples/include
8149
8150 /usr/openwin/include
8151 /usr/openwin/share/include'
8152
8153 if test "$ac_x_includes" = no; then
8154   # Guess where to find include files, by looking for Intrinsic.h.
8155   # First, try using that file with no special directory specified.
8156   cat >conftest.$ac_ext <<_ACEOF
8157 #line $LINENO "configure"
8158 #include "confdefs.h"
8159 #include <X11/Intrinsic.h>
8160 _ACEOF
8161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8163   ac_status=$?
8164   egrep -v '^ *\+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } >/dev/null; then
8169   if test -s conftest.err; then
8170     ac_cpp_err=$ac_c_preproc_warn_flag
8171   else
8172     ac_cpp_err=
8173   fi
8174 else
8175   ac_cpp_err=yes
8176 fi
8177 if test -z "$ac_cpp_err"; then
8178   # We can compile using X headers with no special include directory.
8179 ac_x_includes=
8180 else
8181   echo "$as_me: failed program was:" >&5
8182   cat conftest.$ac_ext >&5
8183   for ac_dir in $ac_x_header_dirs; do
8184   if test -r "$ac_dir/X11/Intrinsic.h"; then
8185     ac_x_includes=$ac_dir
8186     break
8187   fi
8188 done
8189 fi
8190 rm -f conftest.err conftest.$ac_ext
8191 fi # $ac_x_includes = no
8192
8193 if test "$ac_x_libraries" = no; then
8194   # Check for the libraries.
8195   # See if we find them without any special options.
8196   # Don't add to $LIBS permanently.
8197   ac_save_LIBS=$LIBS
8198   LIBS="-lXt $LIBS"
8199   cat >conftest.$ac_ext <<_ACEOF
8200 #line $LINENO "configure"
8201 #include "confdefs.h"
8202 #include <X11/Intrinsic.h>
8203 #ifdef F77_DUMMY_MAIN
8204 #  ifdef __cplusplus
8205      extern "C"
8206 #  endif
8207    int F77_DUMMY_MAIN() { return 1; }
8208 #endif
8209 int
8210 main ()
8211 {
8212 XtMalloc (0)
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8219   (eval $ac_link) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); } &&
8223          { ac_try='test -s conftest$ac_exeext'
8224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225   (eval $ac_try) 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; }; then
8229   LIBS=$ac_save_LIBS
8230 # We can link X programs with no special library path.
8231 ac_x_libraries=
8232 else
8233   echo "$as_me: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 LIBS=$ac_save_LIBS
8236 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8237 do
8238   # Don't even attempt the hair of trying to link an X program!
8239   for ac_extension in a so sl; do
8240     if test -r $ac_dir/libXt.$ac_extension; then
8241       ac_x_libraries=$ac_dir
8242       break 2
8243     fi
8244   done
8245 done
8246 fi
8247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8248 fi # $ac_x_libraries = no
8249
8250 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8251   # Didn't find X anywhere.  Cache the known absence of X.
8252   ac_cv_have_x="have_x=no"
8253 else
8254   # Record where we found X for the cache.
8255   ac_cv_have_x="have_x=yes \
8256                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8257 fi
8258 fi
8259
8260   fi
8261   eval "$ac_cv_have_x"
8262 fi # $with_x != no
8263
8264 if test "$have_x" != yes; then
8265   echo "$as_me:$LINENO: result: $have_x" >&5
8266 echo "${ECHO_T}$have_x" >&6
8267   no_x=yes
8268 else
8269   # If each of the values was on the command line, it overrides each guess.
8270   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8271   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8272   # Update the cache value to reflect the command line values.
8273   ac_cv_have_x="have_x=yes \
8274                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8275   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8276 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8277 fi
8278
8279 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8280 # for constant arguments.  Useless!
8281 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8282 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8283 if test "${ac_cv_working_alloca_h+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286   cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 #include "confdefs.h"
8289 #include <alloca.h>
8290 #ifdef F77_DUMMY_MAIN
8291 #  ifdef __cplusplus
8292      extern "C"
8293 #  endif
8294    int F77_DUMMY_MAIN() { return 1; }
8295 #endif
8296 int
8297 main ()
8298 {
8299 char *p = (char *) alloca (2 * sizeof (int));
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306   (eval $ac_link) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } &&
8310          { ac_try='test -s conftest$ac_exeext'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_cv_working_alloca_h=yes
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 ac_cv_working_alloca_h=no
8321 fi
8322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8323 fi
8324 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8325 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8326 if test $ac_cv_working_alloca_h = yes; then
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define HAVE_ALLOCA_H 1
8330 _ACEOF
8331
8332 fi
8333
8334 echo "$as_me:$LINENO: checking for alloca" >&5
8335 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8336 if test "${ac_cv_func_alloca_works+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339   cat >conftest.$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8341 #include "confdefs.h"
8342 #ifdef __GNUC__
8343 # define alloca __builtin_alloca
8344 #else
8345 # ifdef _MSC_VER
8346 #  include <malloc.h>
8347 #  define alloca _alloca
8348 # else
8349 #  if HAVE_ALLOCA_H
8350 #   include <alloca.h>
8351 #  else
8352 #   ifdef _AIX
8353  #pragma alloca
8354 #   else
8355 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8356 char *alloca ();
8357 #    endif
8358 #   endif
8359 #  endif
8360 # endif
8361 #endif
8362
8363 #ifdef F77_DUMMY_MAIN
8364 #  ifdef __cplusplus
8365      extern "C"
8366 #  endif
8367    int F77_DUMMY_MAIN() { return 1; }
8368 #endif
8369 int
8370 main ()
8371 {
8372 char *p = (char *) alloca (1);
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379   (eval $ac_link) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -s conftest$ac_exeext'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; }; then
8389   ac_cv_func_alloca_works=yes
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 ac_cv_func_alloca_works=no
8394 fi
8395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8396 fi
8397 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8398 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8399
8400 if test $ac_cv_func_alloca_works = yes; then
8401
8402 cat >>confdefs.h <<\_ACEOF
8403 #define HAVE_ALLOCA 1
8404 _ACEOF
8405
8406 else
8407   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8408 # that cause trouble.  Some versions do not even contain alloca or
8409 # contain a buggy version.  If you still want to use their alloca,
8410 # use ar to extract alloca.o from them instead of compiling alloca.c.
8411
8412 ALLOCA=alloca.$ac_objext
8413
8414 cat >>confdefs.h <<\_ACEOF
8415 #define C_ALLOCA 1
8416 _ACEOF
8417
8418
8419 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8420 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8421 if test "${ac_cv_os_cray+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8426 #include "confdefs.h"
8427 #if defined(CRAY) && ! defined(CRAY2)
8428 webecray
8429 #else
8430 wenotbecray
8431 #endif
8432
8433 _ACEOF
8434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8435   egrep "webecray" >/dev/null 2>&1; then
8436   ac_cv_os_cray=yes
8437 else
8438   ac_cv_os_cray=no
8439 fi
8440 rm -f conftest*
8441
8442 fi
8443 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8444 echo "${ECHO_T}$ac_cv_os_cray" >&6
8445 if test $ac_cv_os_cray = yes; then
8446   for ac_func in _getb67 GETB67 getb67; do
8447     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8448 echo "$as_me:$LINENO: checking for $ac_func" >&5
8449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8450 if eval "test \"\${$as_ac_var+set}\" = set"; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453   cat >conftest.$ac_ext <<_ACEOF
8454 #line $LINENO "configure"
8455 #include "confdefs.h"
8456 /* System header to define __stub macros and hopefully few prototypes,
8457     which can conflict with char $ac_func (); below.  */
8458 #include <assert.h>
8459 /* Override any gcc2 internal prototype to avoid an error.  */
8460 #ifdef __cplusplus
8461 extern "C"
8462 #endif
8463 /* We use char because int might match the return type of a gcc2
8464    builtin and then its argument prototype would still apply.  */
8465 char $ac_func ();
8466 char (*f) ();
8467
8468 #ifdef F77_DUMMY_MAIN
8469 #  ifdef __cplusplus
8470      extern "C"
8471 #  endif
8472    int F77_DUMMY_MAIN() { return 1; }
8473 #endif
8474 int
8475 main ()
8476 {
8477 /* The GNU C library defines this for functions which it implements
8478     to always fail with ENOSYS.  Some functions are actually named
8479     something starting with __ and the normal name is an alias.  */
8480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8481 choke me
8482 #else
8483 f = $ac_func;
8484 #endif
8485
8486   ;
8487   return 0;
8488 }
8489 _ACEOF
8490 rm -f conftest.$ac_objext conftest$ac_exeext
8491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8492   (eval $ac_link) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); } &&
8496          { ac_try='test -s conftest$ac_exeext'
8497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498   (eval $ac_try) 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; }; then
8502   eval "$as_ac_var=yes"
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 eval "$as_ac_var=no"
8507 fi
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509 fi
8510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8512 if test `eval echo '${'$as_ac_var'}'` = yes; then
8513
8514 cat >>confdefs.h <<_ACEOF
8515 #define CRAY_STACKSEG_END $ac_func
8516 _ACEOF
8517
8518     break
8519 fi
8520
8521   done
8522 fi
8523
8524 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8525 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8526 if test "${ac_cv_c_stack_direction+set}" = set; then
8527   echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529   if test "$cross_compiling" = yes; then
8530   ac_cv_c_stack_direction=0
8531 else
8532   cat >conftest.$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8534 #include "confdefs.h"
8535 int
8536 find_stack_direction ()
8537 {
8538   static char *addr = 0;
8539   auto char dummy;
8540   if (addr == 0)
8541     {
8542       addr = &dummy;
8543       return find_stack_direction ();
8544     }
8545   else
8546     return (&dummy > addr) ? 1 : -1;
8547 }
8548
8549 int
8550 main ()
8551 {
8552   exit (find_stack_direction () < 0);
8553 }
8554 _ACEOF
8555 rm -f conftest$ac_exeext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8557   (eval $ac_link) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   ac_cv_c_stack_direction=1
8567 else
8568   echo "$as_me: program exited with status $ac_status" >&5
8569 echo "$as_me: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 ( exit $ac_status )
8572 ac_cv_c_stack_direction=-1
8573 fi
8574 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8575 fi
8576 fi
8577 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8578 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8579
8580 cat >>confdefs.h <<_ACEOF
8581 #define STACK_DIRECTION $ac_cv_c_stack_direction
8582 _ACEOF
8583
8584
8585 fi
8586
8587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8589 if test "${ac_cv_header_stdc+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 #include "confdefs.h"
8595 #include <stdlib.h>
8596 #include <stdarg.h>
8597 #include <string.h>
8598 #include <float.h>
8599
8600 _ACEOF
8601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8603   ac_status=$?
8604   egrep -v '^ *\+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } >/dev/null; then
8609   if test -s conftest.err; then
8610     ac_cpp_err=$ac_c_preproc_warn_flag
8611   else
8612     ac_cpp_err=
8613   fi
8614 else
8615   ac_cpp_err=yes
8616 fi
8617 if test -z "$ac_cpp_err"; then
8618   ac_cv_header_stdc=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621   cat conftest.$ac_ext >&5
8622   ac_cv_header_stdc=no
8623 fi
8624 rm -f conftest.err conftest.$ac_ext
8625
8626 if test $ac_cv_header_stdc = yes; then
8627   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8628   cat >conftest.$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8631 #include <string.h>
8632
8633 _ACEOF
8634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8635   egrep "memchr" >/dev/null 2>&1; then
8636   :
8637 else
8638   ac_cv_header_stdc=no
8639 fi
8640 rm -f conftest*
8641
8642 fi
8643
8644 if test $ac_cv_header_stdc = yes; then
8645   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8646   cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8649 #include <stdlib.h>
8650
8651 _ACEOF
8652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8653   egrep "free" >/dev/null 2>&1; then
8654   :
8655 else
8656   ac_cv_header_stdc=no
8657 fi
8658 rm -f conftest*
8659
8660 fi
8661
8662 if test $ac_cv_header_stdc = yes; then
8663   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8664   if test "$cross_compiling" = yes; then
8665   :
8666 else
8667   cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8670 #include <ctype.h>
8671 #if ((' ' & 0x0FF) == 0x020)
8672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8674 #else
8675 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8676                      || ('j' <= (c) && (c) <= 'r') \
8677                      || ('s' <= (c) && (c) <= 'z'))
8678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8679 #endif
8680
8681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8682 int
8683 main ()
8684 {
8685   int i;
8686   for (i = 0; i < 256; i++)
8687     if (XOR (islower (i), ISLOWER (i))
8688         || toupper (i) != TOUPPER (i))
8689       exit(2);
8690   exit (0);
8691 }
8692 _ACEOF
8693 rm -f conftest$ac_exeext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695   (eval $ac_link) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   :
8705 else
8706   echo "$as_me: program exited with status $ac_status" >&5
8707 echo "$as_me: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8709 ( exit $ac_status )
8710 ac_cv_header_stdc=no
8711 fi
8712 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8713 fi
8714 fi
8715 fi
8716 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8717 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8718 if test $ac_cv_header_stdc = yes; then
8719
8720 cat >>confdefs.h <<\_ACEOF
8721 #define STDC_HEADERS 1
8722 _ACEOF
8723
8724 fi
8725
8726
8727
8728
8729
8730
8731
8732
8733 for ac_header in limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h
8734 do
8735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737   echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 fi
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 else
8745   # Is the header compilable?
8746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8749 #line $LINENO "configure"
8750 #include "confdefs.h"
8751 $ac_includes_default
8752 #include <$ac_header>
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8756   (eval $ac_compile) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } &&
8760          { ac_try='test -s conftest.$ac_objext'
8761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); }; }; then
8766   ac_header_compiler=yes
8767 else
8768   echo "$as_me: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8770 ac_header_compiler=no
8771 fi
8772 rm -f conftest.$ac_objext conftest.$ac_ext
8773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8774 echo "${ECHO_T}$ac_header_compiler" >&6
8775
8776 # Is the header present?
8777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 #line $LINENO "configure"
8781 #include "confdefs.h"
8782 #include <$ac_header>
8783 _ACEOF
8784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8785   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8786   ac_status=$?
8787   egrep -v '^ *\+' conftest.er1 >conftest.err
8788   rm -f conftest.er1
8789   cat conftest.err >&5
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); } >/dev/null; then
8792   if test -s conftest.err; then
8793     ac_cpp_err=$ac_c_preproc_warn_flag
8794   else
8795     ac_cpp_err=
8796   fi
8797 else
8798   ac_cpp_err=yes
8799 fi
8800 if test -z "$ac_cpp_err"; then
8801   ac_header_preproc=yes
8802 else
8803   echo "$as_me: failed program was:" >&5
8804   cat conftest.$ac_ext >&5
8805   ac_header_preproc=no
8806 fi
8807 rm -f conftest.err conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8809 echo "${ECHO_T}$ac_header_preproc" >&6
8810
8811 # So?  What about this header?
8812 case $ac_header_compiler:$ac_header_preproc in
8813   yes:no )
8814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8818   no:yes )
8819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8821     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8825 esac
8826 echo "$as_me:$LINENO: checking for $ac_header" >&5
8827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8829   echo $ECHO_N "(cached) $ECHO_C" >&6
8830 else
8831   eval "$as_ac_Header=$ac_header_preproc"
8832 fi
8833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8835
8836 fi
8837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838   cat >>confdefs.h <<_ACEOF
8839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8840 _ACEOF
8841
8842 fi
8843
8844 done
8845
8846
8847 # Checks for typedefs, structures, and compiler characteristics.
8848 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8849 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8850 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   ac_cv_prog_cc_stdc=no
8854 ac_save_CC=$CC
8855 cat >conftest.$ac_ext <<_ACEOF
8856 #line $LINENO "configure"
8857 #include "confdefs.h"
8858 #include <stdarg.h>
8859 #include <stdio.h>
8860 #include <sys/types.h>
8861 #include <sys/stat.h>
8862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8863 struct buf { int x; };
8864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8865 static char *e (p, i)
8866      char **p;
8867      int i;
8868 {
8869   return p[i];
8870 }
8871 static char *f (char * (*g) (char **, int), char **p, ...)
8872 {
8873   char *s;
8874   va_list v;
8875   va_start (v,p);
8876   s = g (p, va_arg (v,int));
8877   va_end (v);
8878   return s;
8879 }
8880 int test (int i, double x);
8881 struct s1 {int (*f) (int a);};
8882 struct s2 {int (*f) (double a);};
8883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8884 int argc;
8885 char **argv;
8886 #ifdef F77_DUMMY_MAIN
8887 #  ifdef __cplusplus
8888      extern "C"
8889 #  endif
8890    int F77_DUMMY_MAIN() { return 1; }
8891 #endif
8892 int
8893 main ()
8894 {
8895 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8896   ;
8897   return 0;
8898 }
8899 _ACEOF
8900 # Don't try gcc -ansi; that turns off useful extensions and
8901 # breaks some systems' header files.
8902 # AIX                   -qlanglvl=ansi
8903 # Ultrix and OSF/1      -std1
8904 # HP-UX 10.20 and later -Ae
8905 # HP-UX older versions  -Aa -D_HPUX_SOURCE
8906 # SVR4                  -Xc -D__EXTENSIONS__
8907 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8908 do
8909   CC="$ac_save_CC $ac_arg"
8910   rm -f conftest.$ac_objext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8912   (eval $ac_compile) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } &&
8916          { ac_try='test -s conftest.$ac_objext'
8917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918   (eval $ac_try) 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); }; }; then
8922   ac_cv_prog_cc_stdc=$ac_arg
8923 break
8924 else
8925   echo "$as_me: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8927 fi
8928 rm -f conftest.$ac_objext
8929 done
8930 rm -f conftest.$ac_ext conftest.$ac_objext
8931 CC=$ac_save_CC
8932
8933 fi
8934
8935 case "x$ac_cv_prog_cc_stdc" in
8936   x|xno)
8937     echo "$as_me:$LINENO: result: none needed" >&5
8938 echo "${ECHO_T}none needed" >&6 ;;
8939   *)
8940     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8941 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8942     CC="$CC $ac_cv_prog_cc_stdc" ;;
8943 esac
8944
8945 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8946 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8947 if test "${ac_cv_c_const+set}" = set; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   cat >conftest.$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8952 #include "confdefs.h"
8953
8954 #ifdef F77_DUMMY_MAIN
8955 #  ifdef __cplusplus
8956      extern "C"
8957 #  endif
8958    int F77_DUMMY_MAIN() { return 1; }
8959 #endif
8960 int
8961 main ()
8962 {
8963 /* FIXME: Include the comments suggested by Paul. */
8964 #ifndef __cplusplus
8965   /* Ultrix mips cc rejects this.  */
8966   typedef int charset[2];
8967   const charset x;
8968   /* SunOS 4.1.1 cc rejects this.  */
8969   char const *const *ccp;
8970   char **p;
8971   /* NEC SVR4.0.2 mips cc rejects this.  */
8972   struct point {int x, y;};
8973   static struct point const zero = {0,0};
8974   /* AIX XL C 1.02.0.0 rejects this.
8975      It does not let you subtract one const X* pointer from another in
8976      an arm of an if-expression whose if-part is not a constant
8977      expression */
8978   const char *g = "string";
8979   ccp = &g + (g ? g-g : 0);
8980   /* HPUX 7.0 cc rejects these. */
8981   ++ccp;
8982   p = (char**) ccp;
8983   ccp = (char const *const *) p;
8984   { /* SCO 3.2v4 cc rejects this.  */
8985     char *t;
8986     char const *s = 0 ? (char *) 0 : (char const *) 0;
8987
8988     *t++ = 0;
8989   }
8990   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8991     int x[] = {25, 17};
8992     const int *foo = &x[0];
8993     ++foo;
8994   }
8995   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8996     typedef const int *iptr;
8997     iptr p = 0;
8998     ++p;
8999   }
9000   { /* AIX XL C 1.02.0.0 rejects this saying
9001        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9002     struct s { int j; const int *ap[3]; };
9003     struct s *b; b->j = 5;
9004   }
9005   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9006     const int foo = 10;
9007   }
9008 #endif
9009
9010   ;
9011   return 0;
9012 }
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016   (eval $ac_compile) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } &&
9020          { ac_try='test -s conftest.$ac_objext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   ac_cv_c_const=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 ac_cv_c_const=no
9031 fi
9032 rm -f conftest.$ac_objext conftest.$ac_ext
9033 fi
9034 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9035 echo "${ECHO_T}$ac_cv_c_const" >&6
9036 if test $ac_cv_c_const = no; then
9037
9038 cat >>confdefs.h <<\_ACEOF
9039 #define const
9040 _ACEOF
9041
9042 fi
9043
9044 echo "$as_me:$LINENO: checking for size_t" >&5
9045 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9046 if test "${ac_cv_type_size_t+set}" = set; then
9047   echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049   cat >conftest.$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9051 #include "confdefs.h"
9052 $ac_includes_default
9053 #ifdef F77_DUMMY_MAIN
9054 #  ifdef __cplusplus
9055      extern "C"
9056 #  endif
9057    int F77_DUMMY_MAIN() { return 1; }
9058 #endif
9059 int
9060 main ()
9061 {
9062 if ((size_t *) 0)
9063   return 0;
9064 if (sizeof (size_t))
9065   return 0;
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072   (eval $ac_compile) 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } &&
9076          { ac_try='test -s conftest.$ac_objext'
9077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078   (eval $ac_try) 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; }; then
9082   ac_cv_type_size_t=yes
9083 else
9084   echo "$as_me: failed program was:" >&5
9085 cat conftest.$ac_ext >&5
9086 ac_cv_type_size_t=no
9087 fi
9088 rm -f conftest.$ac_objext conftest.$ac_ext
9089 fi
9090 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9091 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9092 if test $ac_cv_type_size_t = yes; then
9093   :
9094 else
9095
9096 cat >>confdefs.h <<_ACEOF
9097 #define size_t unsigned
9098 _ACEOF
9099
9100 fi
9101
9102 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9103 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9104 if test "${ac_cv_struct_tm+set}" = set; then
9105   echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107   cat >conftest.$ac_ext <<_ACEOF
9108 #line $LINENO "configure"
9109 #include "confdefs.h"
9110 #include <sys/types.h>
9111 #include <time.h>
9112
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 struct tm *tp; tp->tm_sec;
9123   ;
9124   return 0;
9125 }
9126 _ACEOF
9127 rm -f conftest.$ac_objext
9128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9129   (eval $ac_compile) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } &&
9133          { ac_try='test -s conftest.$ac_objext'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; }; then
9139   ac_cv_struct_tm=time.h
9140 else
9141   echo "$as_me: failed program was:" >&5
9142 cat conftest.$ac_ext >&5
9143 ac_cv_struct_tm=sys/time.h
9144 fi
9145 rm -f conftest.$ac_objext conftest.$ac_ext
9146 fi
9147 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9148 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9149 if test $ac_cv_struct_tm = sys/time.h; then
9150
9151 cat >>confdefs.h <<\_ACEOF
9152 #define TM_IN_SYS_TIME 1
9153 _ACEOF
9154
9155 fi
9156
9157
9158 # Checks for library functions.
9159 echo "$as_me:$LINENO: checking for error_at_line" >&5
9160 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9161 if test "${ac_cv_lib_error_at_line+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167
9168 #ifdef F77_DUMMY_MAIN
9169 #  ifdef __cplusplus
9170      extern "C"
9171 #  endif
9172    int F77_DUMMY_MAIN() { return 1; }
9173 #endif
9174 int
9175 main ()
9176 {
9177 error_at_line (0, 0, "", 0, "");
9178   ;
9179   return 0;
9180 }
9181 _ACEOF
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184   (eval $ac_link) 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); } &&
9188          { ac_try='test -s conftest$ac_exeext'
9189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190   (eval $ac_try) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); }; }; then
9194   ac_cv_lib_error_at_line=yes
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9198 ac_cv_lib_error_at_line=no
9199 fi
9200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9201 fi
9202 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9203 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9204 if test $ac_cv_lib_error_at_line = no; then
9205   LIBOBJS="$LIBOBJS error.$ac_objext"
9206 fi
9207
9208
9209 for ac_header in stdlib.h
9210 do
9211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213   echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 fi
9218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9220 else
9221   # Is the header compilable?
9222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9226 #include "confdefs.h"
9227 $ac_includes_default
9228 #include <$ac_header>
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232   (eval $ac_compile) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } &&
9236          { ac_try='test -s conftest.$ac_objext'
9237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238   (eval $ac_try) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; }; then
9242   ac_header_compiler=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9246 ac_header_compiler=no
9247 fi
9248 rm -f conftest.$ac_objext conftest.$ac_ext
9249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9250 echo "${ECHO_T}$ac_header_compiler" >&6
9251
9252 # Is the header present?
9253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9257 #include "confdefs.h"
9258 #include <$ac_header>
9259 _ACEOF
9260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9262   ac_status=$?
9263   egrep -v '^ *\+' conftest.er1 >conftest.err
9264   rm -f conftest.er1
9265   cat conftest.err >&5
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } >/dev/null; then
9268   if test -s conftest.err; then
9269     ac_cpp_err=$ac_c_preproc_warn_flag
9270   else
9271     ac_cpp_err=
9272   fi
9273 else
9274   ac_cpp_err=yes
9275 fi
9276 if test -z "$ac_cpp_err"; then
9277   ac_header_preproc=yes
9278 else
9279   echo "$as_me: failed program was:" >&5
9280   cat conftest.$ac_ext >&5
9281   ac_header_preproc=no
9282 fi
9283 rm -f conftest.err conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285 echo "${ECHO_T}$ac_header_preproc" >&6
9286
9287 # So?  What about this header?
9288 case $ac_header_compiler:$ac_header_preproc in
9289   yes:no )
9290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9294   no:yes )
9295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9297     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9301 esac
9302 echo "$as_me:$LINENO: checking for $ac_header" >&5
9303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9305   echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307   eval "$as_ac_Header=$ac_header_preproc"
9308 fi
9309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9311
9312 fi
9313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9314   cat >>confdefs.h <<_ACEOF
9315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9316 _ACEOF
9317
9318 fi
9319
9320 done
9321
9322 echo "$as_me:$LINENO: checking for working malloc" >&5
9323 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
9324 if test "${ac_cv_func_malloc_works+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   if test "$cross_compiling" = yes; then
9328   ac_cv_func_malloc_works=no
9329 else
9330   cat >conftest.$ac_ext <<_ACEOF
9331 #line $LINENO "configure"
9332 #include "confdefs.h"
9333 #if STDC_HEADERS || HAVE_STDLIB_H
9334 # include <stdlib.h>
9335 #else
9336 char *malloc ();
9337 #endif
9338
9339 #ifdef F77_DUMMY_MAIN
9340 #  ifdef __cplusplus
9341      extern "C"
9342 #  endif
9343    int F77_DUMMY_MAIN() { return 1; }
9344 #endif
9345 int
9346 main ()
9347 {
9348 exit (malloc (0) ? 0 : 1);
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 rm -f conftest$ac_exeext
9354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9355   (eval $ac_link) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360   (eval $ac_try) 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; }; then
9364   ac_cv_func_malloc_works=yes
9365 else
9366   echo "$as_me: program exited with status $ac_status" >&5
9367 echo "$as_me: failed program was:" >&5
9368 cat conftest.$ac_ext >&5
9369 ( exit $ac_status )
9370 ac_cv_func_malloc_works=no
9371 fi
9372 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9373 fi
9374 fi
9375 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
9376 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
9377 if test $ac_cv_func_malloc_works = yes; then
9378
9379 cat >>confdefs.h <<\_ACEOF
9380 #define HAVE_MALLOC 1
9381 _ACEOF
9382
9383 fi
9384
9385
9386
9387 for ac_header in stdlib.h unistd.h
9388 do
9389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9391   echo "$as_me:$LINENO: checking for $ac_header" >&5
9392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9394   echo $ECHO_N "(cached) $ECHO_C" >&6
9395 fi
9396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9398 else
9399   # Is the header compilable?
9400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line $LINENO "configure"
9404 #include "confdefs.h"
9405 $ac_includes_default
9406 #include <$ac_header>
9407 _ACEOF
9408 rm -f conftest.$ac_objext
9409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9410   (eval $ac_compile) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); } &&
9414          { ac_try='test -s conftest.$ac_objext'
9415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416   (eval $ac_try) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); }; }; then
9420   ac_header_compiler=yes
9421 else
9422   echo "$as_me: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 ac_header_compiler=no
9425 fi
9426 rm -f conftest.$ac_objext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9428 echo "${ECHO_T}$ac_header_compiler" >&6
9429
9430 # Is the header present?
9431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9433 cat >conftest.$ac_ext <<_ACEOF
9434 #line $LINENO "configure"
9435 #include "confdefs.h"
9436 #include <$ac_header>
9437 _ACEOF
9438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9440   ac_status=$?
9441   egrep -v '^ *\+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } >/dev/null; then
9446   if test -s conftest.err; then
9447     ac_cpp_err=$ac_c_preproc_warn_flag
9448   else
9449     ac_cpp_err=
9450   fi
9451 else
9452   ac_cpp_err=yes
9453 fi
9454 if test -z "$ac_cpp_err"; then
9455   ac_header_preproc=yes
9456 else
9457   echo "$as_me: failed program was:" >&5
9458   cat conftest.$ac_ext >&5
9459   ac_header_preproc=no
9460 fi
9461 rm -f conftest.err conftest.$ac_ext
9462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9463 echo "${ECHO_T}$ac_header_preproc" >&6
9464
9465 # So?  What about this header?
9466 case $ac_header_compiler:$ac_header_preproc in
9467   yes:no )
9468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9472   no:yes )
9473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9475     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9479 esac
9480 echo "$as_me:$LINENO: checking for $ac_header" >&5
9481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   eval "$as_ac_Header=$ac_header_preproc"
9486 fi
9487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9489
9490 fi
9491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9492   cat >>confdefs.h <<_ACEOF
9493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9494 _ACEOF
9495
9496 fi
9497
9498 done
9499
9500
9501 for ac_func in getpagesize
9502 do
9503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9504 echo "$as_me:$LINENO: checking for $ac_func" >&5
9505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9506 if eval "test \"\${$as_ac_var+set}\" = set"; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509   cat >conftest.$ac_ext <<_ACEOF
9510 #line $LINENO "configure"
9511 #include "confdefs.h"
9512 /* System header to define __stub macros and hopefully few prototypes,
9513     which can conflict with char $ac_func (); below.  */
9514 #include <assert.h>
9515 /* Override any gcc2 internal prototype to avoid an error.  */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 /* We use char because int might match the return type of a gcc2
9520    builtin and then its argument prototype would still apply.  */
9521 char $ac_func ();
9522 char (*f) ();
9523
9524 #ifdef F77_DUMMY_MAIN
9525 #  ifdef __cplusplus
9526      extern "C"
9527 #  endif
9528    int F77_DUMMY_MAIN() { return 1; }
9529 #endif
9530 int
9531 main ()
9532 {
9533 /* The GNU C library defines this for functions which it implements
9534     to always fail with ENOSYS.  Some functions are actually named
9535     something starting with __ and the normal name is an alias.  */
9536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9537 choke me
9538 #else
9539 f = $ac_func;
9540 #endif
9541
9542   ;
9543   return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548   (eval $ac_link) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); } &&
9552          { ac_try='test -s conftest$ac_exeext'
9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; }; then
9558   eval "$as_ac_var=yes"
9559 else
9560   echo "$as_me: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9562 eval "$as_ac_var=no"
9563 fi
9564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9565 fi
9566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9568 if test `eval echo '${'$as_ac_var'}'` = yes; then
9569   cat >>confdefs.h <<_ACEOF
9570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9571 _ACEOF
9572
9573 fi
9574 done
9575
9576 echo "$as_me:$LINENO: checking for working mmap" >&5
9577 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9578 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581   if test "$cross_compiling" = yes; then
9582   ac_cv_func_mmap_fixed_mapped=no
9583 else
9584   cat >conftest.$ac_ext <<_ACEOF
9585 #line $LINENO "configure"
9586 #include "confdefs.h"
9587 $ac_includes_default
9588 /* malloc might have been renamed as rpl_malloc. */
9589 #undef malloc
9590
9591 /* Thanks to Mike Haertel and Jim Avera for this test.
9592    Here is a matrix of mmap possibilities:
9593         mmap private not fixed
9594         mmap private fixed at somewhere currently unmapped
9595         mmap private fixed at somewhere already mapped
9596         mmap shared not fixed
9597         mmap shared fixed at somewhere currently unmapped
9598         mmap shared fixed at somewhere already mapped
9599    For private mappings, we should verify that changes cannot be read()
9600    back from the file, nor mmap's back from the file at a different
9601    address.  (There have been systems where private was not correctly
9602    implemented like the infamous i386 svr4.0, and systems where the
9603    VM page cache was not coherent with the file system buffer cache
9604    like early versions of FreeBSD and possibly contemporary NetBSD.)
9605    For shared mappings, we should conversely verify that changes get
9606    propagated back to all the places they're supposed to be.
9607
9608    Grep wants private fixed already mapped.
9609    The main things grep needs to know about mmap are:
9610    * does it exist and is it safe to write into the mmap'd area
9611    * how to use it (BSD variants)  */
9612
9613 #include <fcntl.h>
9614 #include <sys/mman.h>
9615
9616 #if !STDC_HEADERS && !HAVE_STDLIB_H
9617 char *malloc ();
9618 #endif
9619
9620 /* This mess was copied from the GNU getpagesize.h.  */
9621 #if !HAVE_GETPAGESIZE
9622 /* Assume that all systems that can run configure have sys/param.h.  */
9623 # if !HAVE_SYS_PARAM_H
9624 #  define HAVE_SYS_PARAM_H 1
9625 # endif
9626
9627 # ifdef _SC_PAGESIZE
9628 #  define getpagesize() sysconf(_SC_PAGESIZE)
9629 # else /* no _SC_PAGESIZE */
9630 #  if HAVE_SYS_PARAM_H
9631 #   include <sys/param.h>
9632 #   ifdef EXEC_PAGESIZE
9633 #    define getpagesize() EXEC_PAGESIZE
9634 #   else /* no EXEC_PAGESIZE */
9635 #    ifdef NBPG
9636 #     define getpagesize() NBPG * CLSIZE
9637 #     ifndef CLSIZE
9638 #      define CLSIZE 1
9639 #     endif /* no CLSIZE */
9640 #    else /* no NBPG */
9641 #     ifdef NBPC
9642 #      define getpagesize() NBPC
9643 #     else /* no NBPC */
9644 #      ifdef PAGESIZE
9645 #       define getpagesize() PAGESIZE
9646 #      endif /* PAGESIZE */
9647 #     endif /* no NBPC */
9648 #    endif /* no NBPG */
9649 #   endif /* no EXEC_PAGESIZE */
9650 #  else /* no HAVE_SYS_PARAM_H */
9651 #   define getpagesize() 8192   /* punt totally */
9652 #  endif /* no HAVE_SYS_PARAM_H */
9653 # endif /* no _SC_PAGESIZE */
9654
9655 #endif /* no HAVE_GETPAGESIZE */
9656
9657 int
9658 main ()
9659 {
9660   char *data, *data2, *data3;
9661   int i, pagesize;
9662   int fd;
9663
9664   pagesize = getpagesize ();
9665
9666   /* First, make a file with some known garbage in it. */
9667   data = (char *) malloc (pagesize);
9668   if (!data)
9669     exit (1);
9670   for (i = 0; i < pagesize; ++i)
9671     *(data + i) = rand ();
9672   umask (0);
9673   fd = creat ("conftest.mmap", 0600);
9674   if (fd < 0)
9675     exit (1);
9676   if (write (fd, data, pagesize) != pagesize)
9677     exit (1);
9678   close (fd);
9679
9680   /* Next, try to mmap the file at a fixed address which already has
9681      something else allocated at it.  If we can, also make sure that
9682      we see the same garbage.  */
9683   fd = open ("conftest.mmap", O_RDWR);
9684   if (fd < 0)
9685     exit (1);
9686   data2 = (char *) malloc (2 * pagesize);
9687   if (!data2)
9688     exit (1);
9689   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9690   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9691                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9692     exit (1);
9693   for (i = 0; i < pagesize; ++i)
9694     if (*(data + i) != *(data2 + i))
9695       exit (1);
9696
9697   /* Finally, make sure that changes to the mapped area do not
9698      percolate back to the file as seen by read().  (This is a bug on
9699      some variants of i386 svr4.0.)  */
9700   for (i = 0; i < pagesize; ++i)
9701     *(data2 + i) = *(data2 + i) + 1;
9702   data3 = (char *) malloc (pagesize);
9703   if (!data3)
9704     exit (1);
9705   if (read (fd, data3, pagesize) != pagesize)
9706     exit (1);
9707   for (i = 0; i < pagesize; ++i)
9708     if (*(data + i) != *(data3 + i))
9709       exit (1);
9710   close (fd);
9711   exit (0);
9712 }
9713 _ACEOF
9714 rm -f conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716   (eval $ac_link) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721   (eval $ac_try) 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; }; then
9725   ac_cv_func_mmap_fixed_mapped=yes
9726 else
9727   echo "$as_me: program exited with status $ac_status" >&5
9728 echo "$as_me: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9730 ( exit $ac_status )
9731 ac_cv_func_mmap_fixed_mapped=no
9732 fi
9733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9734 fi
9735 fi
9736 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9737 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9738 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9739
9740 cat >>confdefs.h <<\_ACEOF
9741 #define HAVE_MMAP 1
9742 _ACEOF
9743
9744 fi
9745 rm -f conftest.mmap
9746
9747 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9748 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9749 if test "${ac_cv_type_signal+set}" = set; then
9750   echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752   cat >conftest.$ac_ext <<_ACEOF
9753 #line $LINENO "configure"
9754 #include "confdefs.h"
9755 #include <sys/types.h>
9756 #include <signal.h>
9757 #ifdef signal
9758 # undef signal
9759 #endif
9760 #ifdef __cplusplus
9761 extern "C" void (*signal (int, void (*)(int)))(int);
9762 #else
9763 void (*signal ()) ();
9764 #endif
9765
9766 #ifdef F77_DUMMY_MAIN
9767 #  ifdef __cplusplus
9768      extern "C"
9769 #  endif
9770    int F77_DUMMY_MAIN() { return 1; }
9771 #endif
9772 int
9773 main ()
9774 {
9775 int i;
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext
9781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9782   (eval $ac_compile) 2>&5
9783   ac_status=$?
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } &&
9786          { ac_try='test -s conftest.$ac_objext'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; }; then
9792   ac_cv_type_signal=void
9793 else
9794   echo "$as_me: failed program was:" >&5
9795 cat conftest.$ac_ext >&5
9796 ac_cv_type_signal=int
9797 fi
9798 rm -f conftest.$ac_objext conftest.$ac_ext
9799 fi
9800 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9801 echo "${ECHO_T}$ac_cv_type_signal" >&6
9802
9803 cat >>confdefs.h <<_ACEOF
9804 #define RETSIGTYPE $ac_cv_type_signal
9805 _ACEOF
9806
9807
9808 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9809 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
9810 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   rm -f conftest.sym conftest.file
9814 echo >conftest.file
9815 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9816   if test "$cross_compiling" = yes; then
9817   ac_cv_func_lstat_dereferences_slashed_symlink=no
9818 else
9819   cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 #include "confdefs.h"
9822 $ac_includes_default
9823 #ifdef F77_DUMMY_MAIN
9824 #  ifdef __cplusplus
9825      extern "C"
9826 #  endif
9827    int F77_DUMMY_MAIN() { return 1; }
9828 #endif
9829 int
9830 main ()
9831 {
9832 struct stat sbuf;
9833      /* Linux will dereference the symlink and fail.
9834         That is better in the sense that it means we will not
9835         have to compile and use the lstat wrapper.  */
9836      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
9837   ;
9838   return 0;
9839 }
9840 _ACEOF
9841 rm -f conftest$ac_exeext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843   (eval $ac_link) 2>&5
9844   ac_status=$?
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_cv_func_lstat_dereferences_slashed_symlink=yes
9853 else
9854   echo "$as_me: program exited with status $ac_status" >&5
9855 echo "$as_me: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 ( exit $ac_status )
9858 ac_cv_func_lstat_dereferences_slashed_symlink=no
9859 fi
9860 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9861 fi
9862 else
9863   # If the `ln -s' command failed, then we probably don't even
9864   # have an lstat function.
9865   ac_cv_func_lstat_dereferences_slashed_symlink=no
9866 fi
9867 rm -f conftest.sym conftest.file
9868
9869 fi
9870 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9871 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
9872
9873 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9874
9875 cat >>confdefs.h <<_ACEOF
9876 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9877 _ACEOF
9878
9879
9880 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9881   LIBOBJS="$LIBOBJS lstat.$ac_objext"
9882 fi
9883
9884 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9885 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
9886 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   if test "$cross_compiling" = yes; then
9890   ac_cv_func_stat_empty_string_bug=yes
9891 else
9892   cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 #include "confdefs.h"
9895 $ac_includes_default
9896 #ifdef F77_DUMMY_MAIN
9897 #  ifdef __cplusplus
9898      extern "C"
9899 #  endif
9900    int F77_DUMMY_MAIN() { return 1; }
9901 #endif
9902 int
9903 main ()
9904 {
9905 struct stat sbuf;
9906   exit (stat ("", &sbuf) ? 1 : 0);
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913   (eval $ac_link) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }; then
9922   ac_cv_func_stat_empty_string_bug=yes
9923 else
9924   echo "$as_me: program exited with status $ac_status" >&5
9925 echo "$as_me: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 ( exit $ac_status )
9928 ac_cv_func_stat_empty_string_bug=no
9929 fi
9930 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9931 fi
9932 fi
9933 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
9934 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
9935 if test $ac_cv_func_stat_empty_string_bug = yes; then
9936   LIBOBJS="$LIBOBJS stat.$ac_objext"
9937
9938 cat >>confdefs.h <<_ACEOF
9939 #define HAVE_STAT_EMPTY_STRING_BUG 1
9940 _ACEOF
9941
9942 fi
9943
9944 echo "$as_me:$LINENO: checking for working strtod" >&5
9945 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
9946 if test "${ac_cv_func_strtod+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   if test "$cross_compiling" = yes; then
9950   ac_cv_func_strtod=no
9951 else
9952   cat >conftest.$ac_ext <<_ACEOF
9953 #line $LINENO "configure"
9954 #include "confdefs.h"
9955
9956 double strtod ();
9957 int
9958 main()
9959 {
9960   {
9961     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9962     char *string = " +69";
9963     char *term;
9964     double value;
9965     value = strtod (string, &term);
9966     if (value != 69 || term != (string + 4))
9967       exit (1);
9968   }
9969
9970   {
9971     /* Under Solaris 2.4, strtod returns the wrong value for the
9972        terminating character under some conditions.  */
9973     char *string = "NaN";
9974     char *term;
9975     strtod (string, &term);
9976     if (term != string && *(term - 1) == 0)
9977       exit (1);
9978   }
9979   exit (0);
9980 }
9981
9982 _ACEOF
9983 rm -f conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985   (eval $ac_link) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990   (eval $ac_try) 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; }; then
9994   ac_cv_func_strtod=yes
9995 else
9996   echo "$as_me: program exited with status $ac_status" >&5
9997 echo "$as_me: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
9999 ( exit $ac_status )
10000 ac_cv_func_strtod=no
10001 fi
10002 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10003 fi
10004 fi
10005 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10006 echo "${ECHO_T}$ac_cv_func_strtod" >&6
10007 if test $ac_cv_func_strtod = no; then
10008   LIBOBJS="$LIBOBJS strtod.$ac_objext"
10009 echo "$as_me:$LINENO: checking for pow" >&5
10010 echo $ECHO_N "checking for pow... $ECHO_C" >&6
10011 if test "${ac_cv_func_pow+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   cat >conftest.$ac_ext <<_ACEOF
10015 #line $LINENO "configure"
10016 #include "confdefs.h"
10017 /* System header to define __stub macros and hopefully few prototypes,
10018     which can conflict with char pow (); below.  */
10019 #include <assert.h>
10020 /* Override any gcc2 internal prototype to avoid an error.  */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 /* We use char because int might match the return type of a gcc2
10025    builtin and then its argument prototype would still apply.  */
10026 char pow ();
10027 char (*f) ();
10028
10029 #ifdef F77_DUMMY_MAIN
10030 #  ifdef __cplusplus
10031      extern "C"
10032 #  endif
10033    int F77_DUMMY_MAIN() { return 1; }
10034 #endif
10035 int
10036 main ()
10037 {
10038 /* The GNU C library defines this for functions which it implements
10039     to always fail with ENOSYS.  Some functions are actually named
10040     something starting with __ and the normal name is an alias.  */
10041 #if defined (__stub_pow) || defined (__stub___pow)
10042 choke me
10043 #else
10044 f = pow;
10045 #endif
10046
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053   (eval $ac_link) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } &&
10057          { ac_try='test -s conftest$ac_exeext'
10058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059   (eval $ac_try) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; }; then
10063   ac_cv_func_pow=yes
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 ac_cv_func_pow=no
10068 fi
10069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10070 fi
10071 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10072 echo "${ECHO_T}$ac_cv_func_pow" >&6
10073
10074 if test $ac_cv_func_pow = no; then
10075   echo "$as_me:$LINENO: checking for pow in -lm" >&5
10076 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10077 if test "${ac_cv_lib_m_pow+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-lm  $LIBS"
10082 cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10084 #include "confdefs.h"
10085
10086 /* Override any gcc2 internal prototype to avoid an error.  */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 /* We use char because int might match the return type of a gcc2
10091    builtin and then its argument prototype would still apply.  */
10092 char pow ();
10093 #ifdef F77_DUMMY_MAIN
10094 #  ifdef __cplusplus
10095      extern "C"
10096 #  endif
10097    int F77_DUMMY_MAIN() { return 1; }
10098 #endif
10099 int
10100 main ()
10101 {
10102 pow ();
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109   (eval $ac_link) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -s conftest$ac_exeext'
10114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115   (eval $ac_try) 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10119   ac_cv_lib_m_pow=yes
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 ac_cv_lib_m_pow=no
10124 fi
10125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10126 LIBS=$ac_check_lib_save_LIBS
10127 fi
10128 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10129 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10130 if test $ac_cv_lib_m_pow = yes; then
10131   POW_LIB=-lm
10132 else
10133   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10134 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10135 fi
10136
10137 fi
10138
10139 fi
10140
10141
10142 for ac_func in vprintf
10143 do
10144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10145 echo "$as_me:$LINENO: checking for $ac_func" >&5
10146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10147 if eval "test \"\${$as_ac_var+set}\" = set"; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150   cat >conftest.$ac_ext <<_ACEOF
10151 #line $LINENO "configure"
10152 #include "confdefs.h"
10153 /* System header to define __stub macros and hopefully few prototypes,
10154     which can conflict with char $ac_func (); below.  */
10155 #include <assert.h>
10156 /* Override any gcc2 internal prototype to avoid an error.  */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 /* We use char because int might match the return type of a gcc2
10161    builtin and then its argument prototype would still apply.  */
10162 char $ac_func ();
10163 char (*f) ();
10164
10165 #ifdef F77_DUMMY_MAIN
10166 #  ifdef __cplusplus
10167      extern "C"
10168 #  endif
10169    int F77_DUMMY_MAIN() { return 1; }
10170 #endif
10171 int
10172 main ()
10173 {
10174 /* The GNU C library defines this for functions which it implements
10175     to always fail with ENOSYS.  Some functions are actually named
10176     something starting with __ and the normal name is an alias.  */
10177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10178 choke me
10179 #else
10180 f = $ac_func;
10181 #endif
10182
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189   (eval $ac_link) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); } &&
10193          { ac_try='test -s conftest$ac_exeext'
10194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195   (eval $ac_try) 2>&5
10196   ac_status=$?
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); }; }; then
10199   eval "$as_ac_var=yes"
10200 else
10201   echo "$as_me: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10203 eval "$as_ac_var=no"
10204 fi
10205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10206 fi
10207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10209 if test `eval echo '${'$as_ac_var'}'` = yes; then
10210   cat >>confdefs.h <<_ACEOF
10211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10212 _ACEOF
10213
10214 echo "$as_me:$LINENO: checking for _doprnt" >&5
10215 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10216 if test "${ac_cv_func__doprnt+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219   cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10222 /* System header to define __stub macros and hopefully few prototypes,
10223     which can conflict with char _doprnt (); below.  */
10224 #include <assert.h>
10225 /* Override any gcc2 internal prototype to avoid an error.  */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 /* We use char because int might match the return type of a gcc2
10230    builtin and then its argument prototype would still apply.  */
10231 char _doprnt ();
10232 char (*f) ();
10233
10234 #ifdef F77_DUMMY_MAIN
10235 #  ifdef __cplusplus
10236      extern "C"
10237 #  endif
10238    int F77_DUMMY_MAIN() { return 1; }
10239 #endif
10240 int
10241 main ()
10242 {
10243 /* The GNU C library defines this for functions which it implements
10244     to always fail with ENOSYS.  Some functions are actually named
10245     something starting with __ and the normal name is an alias.  */
10246 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10247 choke me
10248 #else
10249 f = _doprnt;
10250 #endif
10251
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258   (eval $ac_link) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268   ac_cv_func__doprnt=yes
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 ac_cv_func__doprnt=no
10273 fi
10274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10275 fi
10276 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10277 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10278 if test $ac_cv_func__doprnt = yes; then
10279
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_DOPRNT 1
10282 _ACEOF
10283
10284 fi
10285
10286 fi
10287 done
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303 for ac_func in bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol
10304 do
10305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10306 echo "$as_me:$LINENO: checking for $ac_func" >&5
10307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10308 if eval "test \"\${$as_ac_var+set}\" = set"; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   cat >conftest.$ac_ext <<_ACEOF
10312 #line $LINENO "configure"
10313 #include "confdefs.h"
10314 /* System header to define __stub macros and hopefully few prototypes,
10315     which can conflict with char $ac_func (); below.  */
10316 #include <assert.h>
10317 /* Override any gcc2 internal prototype to avoid an error.  */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 /* We use char because int might match the return type of a gcc2
10322    builtin and then its argument prototype would still apply.  */
10323 char $ac_func ();
10324 char (*f) ();
10325
10326 #ifdef F77_DUMMY_MAIN
10327 #  ifdef __cplusplus
10328      extern "C"
10329 #  endif
10330    int F77_DUMMY_MAIN() { return 1; }
10331 #endif
10332 int
10333 main ()
10334 {
10335 /* The GNU C library defines this for functions which it implements
10336     to always fail with ENOSYS.  Some functions are actually named
10337     something starting with __ and the normal name is an alias.  */
10338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10339 choke me
10340 #else
10341 f = $ac_func;
10342 #endif
10343
10344   ;
10345   return 0;
10346 }
10347 _ACEOF
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350   (eval $ac_link) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); } &&
10354          { ac_try='test -s conftest$ac_exeext'
10355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356   (eval $ac_try) 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); }; }; then
10360   eval "$as_ac_var=yes"
10361 else
10362   echo "$as_me: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10364 eval "$as_ac_var=no"
10365 fi
10366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10367 fi
10368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10370 if test `eval echo '${'$as_ac_var'}'` = yes; then
10371   cat >>confdefs.h <<_ACEOF
10372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10373 _ACEOF
10374
10375 fi
10376 done
10377
10378
10379
10380 cat >>confdefs.h <<_ACEOF
10381 #define FGIS_CONFIG "$sysconfdir"
10382 _ACEOF
10383
10384
10385
10386
10387 # Check whether --with-tcl or --without-tcl was given.
10388 if test "${with_tcl+set}" = set; then
10389   withval="$with_tcl"
10390
10391 fi;
10392 if test "$with_tcl" = "yes" -o "$with_tcl" = "" ; then
10393
10394   echo "$as_me:$LINENO: checking for Tcl_CreateCommand in -ltcl8.3" >&5
10395 echo $ECHO_N "checking for Tcl_CreateCommand in -ltcl8.3... $ECHO_C" >&6
10396 if test "${ac_cv_lib_tcl8_3_Tcl_CreateCommand+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-ltcl8.3 $LIBS $LIBS"
10401 cat >conftest.$ac_ext <<_ACEOF
10402 #line $LINENO "configure"
10403 #include "confdefs.h"
10404
10405 /* Override any gcc2 internal prototype to avoid an error.  */
10406 #ifdef __cplusplus
10407 extern "C"
10408 #endif
10409 /* We use char because int might match the return type of a gcc2
10410    builtin and then its argument prototype would still apply.  */
10411 char Tcl_CreateCommand ();
10412 #ifdef F77_DUMMY_MAIN
10413 #  ifdef __cplusplus
10414      extern "C"
10415 #  endif
10416    int F77_DUMMY_MAIN() { return 1; }
10417 #endif
10418 int
10419 main ()
10420 {
10421 Tcl_CreateCommand ();
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428   (eval $ac_link) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } &&
10432          { ac_try='test -s conftest$ac_exeext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   ac_cv_lib_tcl8_3_Tcl_CreateCommand=yes
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10442 ac_cv_lib_tcl8_3_Tcl_CreateCommand=no
10443 fi
10444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10446 fi
10447 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_3_Tcl_CreateCommand" >&5
10448 echo "${ECHO_T}$ac_cv_lib_tcl8_3_Tcl_CreateCommand" >&6
10449 if test $ac_cv_lib_tcl8_3_Tcl_CreateCommand = yes; then
10450   HAVE_TCL83=yes
10451 else
10452   HAVE_TCL83=no
10453 fi
10454
10455
10456   if test "HAVE_TCL83"="yes"; then
10457
10458     if test -r /usr/include/tcl8.3/tcl.h ; then
10459
10460       LIBS="-ltcl8.3 $LIBS"
10461       TCL_INCLUDE="-I/usr/include/tcl8.3"
10462       echo "using Tcl 8.3"
10463
10464     fi
10465
10466   fi
10467
10468 fi
10469
10470 TCL_INCLUDE=$TCL_INCLUDE
10471
10472
10473 ac_config_files="$ac_config_files Makefile dll/Makefile epu/Makefile include/Makefile tcl/Makefile"
10474
10475 cat >confcache <<\_ACEOF
10476 # This file is a shell script that caches the results of configure
10477 # tests run on this system so they can be shared between configure
10478 # scripts and configure runs, see configure's option --config-cache.
10479 # It is not useful on other systems.  If it contains results you don't
10480 # want to keep, you may remove or edit it.
10481 #
10482 # config.status only pays attention to the cache file if you give it
10483 # the --recheck option to rerun configure.
10484 #
10485 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10486 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10487 # following values.
10488
10489 _ACEOF
10490
10491 # The following way of writing the cache mishandles newlines in values,
10492 # but we know of no workaround that is simple, portable, and efficient.
10493 # So, don't put newlines in cache variables' values.
10494 # Ultrix sh set writes to stderr and can't be redirected directly,
10495 # and sets the high bit in the cache file unless we assign to the vars.
10496 {
10497   (set) 2>&1 |
10498     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10499     *ac_space=\ *)
10500       # `set' does not quote correctly, so add quotes (double-quote
10501       # substitution turns \\\\ into \\, and sed turns \\ into \).
10502       sed -n \
10503         "s/'/'\\\\''/g;
10504           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10505       ;;
10506     *)
10507       # `set' quotes correctly as required by POSIX, so do not add quotes.
10508       sed -n \
10509         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10510       ;;
10511     esac;
10512 } |
10513   sed '
10514      t clear
10515      : clear
10516      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10517      t end
10518      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10519      : end' >>confcache
10520 if cmp -s $cache_file confcache; then :; else
10521   if test -w $cache_file; then
10522     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10523     cat confcache >$cache_file
10524   else
10525     echo "not updating unwritable cache $cache_file"
10526   fi
10527 fi
10528 rm -f confcache
10529
10530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10531 # Let make expand exec_prefix.
10532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10533
10534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10536 # trailing colons and then remove the whole line if VPATH becomes empty
10537 # (actually we leave an empty line to preserve line numbers).
10538 if test "x$srcdir" = x.; then
10539   ac_vpsub='/^[         ]*VPATH[        ]*=/{
10540 s/:*\$(srcdir):*/:/;
10541 s/:*\${srcdir}:*/:/;
10542 s/:*@srcdir@:*/:/;
10543 s/^\([^=]*=[    ]*\):*/\1/;
10544 s/:*$//;
10545 s/^[^=]*=[      ]*$//;
10546 }'
10547 fi
10548
10549 DEFS=-DHAVE_CONFIG_H
10550
10551 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10552   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10553 Usually this means the macro was only invoked conditionally." >&5
10554 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10555 Usually this means the macro was only invoked conditionally." >&2;}
10556    { (exit 1); exit 1; }; }
10557 fi
10558
10559 : ${CONFIG_STATUS=./config.status}
10560 ac_clean_files_save=$ac_clean_files
10561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10562 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10563 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10564 cat >$CONFIG_STATUS <<_ACEOF
10565 #! $SHELL
10566 # Generated by $as_me.
10567 # Run this file to recreate the current configuration.
10568 # Compiler output produced by configure, useful for debugging
10569 # configure, is in config.log if it exists.
10570
10571 debug=false
10572 SHELL=\${CONFIG_SHELL-$SHELL}
10573 _ACEOF
10574
10575 cat >>$CONFIG_STATUS <<\_ACEOF
10576
10577 ## --------------------- ##
10578 ## M4sh Initialization.  ##
10579 ## --------------------- ##
10580
10581 # Be Bourne compatible
10582 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10583   emulate sh
10584   NULLCMD=:
10585 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10586   set -o posix
10587 fi
10588
10589 # NLS nuisances.
10590 # Support unset when possible.
10591 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10592   as_unset=unset
10593 else
10594   as_unset=false
10595 fi
10596
10597 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
10598     { $as_unset LANG || test "${LANG+set}" != set; } ||
10599       { LANG=C; export LANG; }
10600 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
10601     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
10602       { LC_ALL=C; export LC_ALL; }
10603 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
10604     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
10605       { LC_TIME=C; export LC_TIME; }
10606 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
10607     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
10608       { LC_CTYPE=C; export LC_CTYPE; }
10609 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
10610     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
10611       { LANGUAGE=C; export LANGUAGE; }
10612 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
10613     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
10614       { LC_COLLATE=C; export LC_COLLATE; }
10615 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
10616     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
10617       { LC_NUMERIC=C; export LC_NUMERIC; }
10618 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
10619     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
10620       { LC_MESSAGES=C; export LC_MESSAGES; }
10621
10622
10623 # Name of the executable.
10624 as_me=`(basename "$0") 2>/dev/null ||
10625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10626          X"$0" : 'X\(//\)$' \| \
10627          X"$0" : 'X\(/\)$' \| \
10628          .     : '\(.\)' 2>/dev/null ||
10629 echo X/"$0" |
10630     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10631           /^X\/\(\/\/\)$/{ s//\1/; q; }
10632           /^X\/\(\/\).*/{ s//\1/; q; }
10633           s/.*/./; q'`
10634
10635 # PATH needs CR, and LINENO needs CR and PATH.
10636 # Avoid depending upon Character Ranges.
10637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10640 as_cr_digits='0123456789'
10641 as_cr_alnum=$as_cr_Letters$as_cr_digits
10642
10643 # The user is always right.
10644 if test "${PATH_SEPARATOR+set}" != set; then
10645   echo "#! /bin/sh" >conftest.sh
10646   echo  "exit 0"   >>conftest.sh
10647   chmod +x conftest.sh
10648   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
10649     PATH_SEPARATOR=';'
10650   else
10651     PATH_SEPARATOR=:
10652   fi
10653   rm -f conftest.sh
10654 fi
10655
10656
10657   as_lineno_1=$LINENO
10658   as_lineno_2=$LINENO
10659   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10660   test "x$as_lineno_1" != "x$as_lineno_2" &&
10661   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10662   # Find who we are.  Look in the path if we contain no path at all
10663   # relative or not.
10664   case $0 in
10665     *[\\/]* ) as_myself=$0 ;;
10666     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10668 do
10669   IFS=$as_save_IFS
10670   test -z "$as_dir" && as_dir=.
10671   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10672 done
10673
10674        ;;
10675   esac
10676   # We did not find ourselves, most probably we were run as `sh COMMAND'
10677   # in which case we are not to be found in the path.
10678   if test "x$as_myself" = x; then
10679     as_myself=$0
10680   fi
10681   if test ! -f "$as_myself"; then
10682     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10683 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10684    { (exit 1); exit 1; }; }
10685   fi
10686   case $CONFIG_SHELL in
10687   '')
10688     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10690 do
10691   IFS=$as_save_IFS
10692   test -z "$as_dir" && as_dir=.
10693   for as_base in sh bash ksh sh5; do
10694          case $as_dir in
10695          /*)
10696            if ("$as_dir/$as_base" -c '
10697   as_lineno_1=$LINENO
10698   as_lineno_2=$LINENO
10699   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10700   test "x$as_lineno_1" != "x$as_lineno_2" &&
10701   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10702              CONFIG_SHELL=$as_dir/$as_base
10703              export CONFIG_SHELL
10704              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10705            fi;;
10706          esac
10707        done
10708 done
10709 ;;
10710   esac
10711
10712   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10713   # uniformly replaced by the line number.  The first 'sed' inserts a
10714   # line-number line before each line; the second 'sed' does the real
10715   # work.  The second script uses 'N' to pair each line-number line
10716   # with the numbered line, and appends trailing '-' during
10717   # substitution so that $LINENO is not a special case at line end.
10718   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10719   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10720   sed '=' <$as_myself |
10721     sed '
10722       N
10723       s,$,-,
10724       : loop
10725       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10726       t loop
10727       s,-$,,
10728       s,^['$as_cr_digits']*\n,,
10729     ' >$as_me.lineno &&
10730   chmod +x $as_me.lineno ||
10731     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10732 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10733    { (exit 1); exit 1; }; }
10734
10735   # Don't try to exec as it changes $[0], causing all sort of problems
10736   # (the dirname of $[0] is not the place where we might find the
10737   # original and so on.  Autoconf is especially sensible to this).
10738   . ./$as_me.lineno
10739   # Exit status is that of the last command.
10740   exit
10741 }
10742
10743
10744 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10745   *c*,-n*) ECHO_N= ECHO_C='
10746 ' ECHO_T='      ' ;;
10747   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10748   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10749 esac
10750
10751 if expr a : '\(a\)' >/dev/null 2>&1; then
10752   as_expr=expr
10753 else
10754   as_expr=false
10755 fi
10756
10757 rm -f conf$$ conf$$.exe conf$$.file
10758 echo >conf$$.file
10759 if ln -s conf$$.file conf$$ 2>/dev/null; then
10760   # We could just check for DJGPP; but this test a) works b) is more generic
10761   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10762   if test -f conf$$.exe; then
10763     # Don't use ln at all; we don't have any links
10764     as_ln_s='cp -p'
10765   else
10766     as_ln_s='ln -s'
10767   fi
10768 elif ln conf$$.file conf$$ 2>/dev/null; then
10769   as_ln_s=ln
10770 else
10771   as_ln_s='cp -p'
10772 fi
10773 rm -f conf$$ conf$$.exe conf$$.file
10774
10775 as_executable_p="test -f"
10776
10777 # Sed expression to map a string onto a valid CPP name.
10778 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10779
10780 # Sed expression to map a string onto a valid variable name.
10781 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10782
10783
10784 # IFS
10785 # We need space, tab and new line, in precisely that order.
10786 as_nl='
10787 '
10788 IFS="   $as_nl"
10789
10790 # CDPATH.
10791 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10792
10793 exec 6>&1
10794
10795 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10796 # report actual input values of CONFIG_FILES etc. instead of their
10797 # values after options handling.  Logging --version etc. is OK.
10798 exec 5>>config.log
10799 {
10800   echo
10801   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10802 ## Running $as_me. ##
10803 _ASBOX
10804 } >&5
10805 cat >&5 <<_CSEOF
10806
10807 This file was extended by fGIS $as_me 0.0.1, which was
10808 generated by GNU Autoconf 2.53.  Invocation command line was
10809
10810   CONFIG_FILES    = $CONFIG_FILES
10811   CONFIG_HEADERS  = $CONFIG_HEADERS
10812   CONFIG_LINKS    = $CONFIG_LINKS
10813   CONFIG_COMMANDS = $CONFIG_COMMANDS
10814   $ $0 $@
10815
10816 _CSEOF
10817 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10818 echo >&5
10819 _ACEOF
10820
10821 # Files that config.status was made for.
10822 if test -n "$ac_config_files"; then
10823   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10824 fi
10825
10826 if test -n "$ac_config_headers"; then
10827   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10828 fi
10829
10830 if test -n "$ac_config_links"; then
10831   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10832 fi
10833
10834 if test -n "$ac_config_commands"; then
10835   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10836 fi
10837
10838 cat >>$CONFIG_STATUS <<\_ACEOF
10839
10840 ac_cs_usage="\
10841 \`$as_me' instantiates files from templates according to the
10842 current configuration.
10843
10844 Usage: $0 [OPTIONS] [FILE]...
10845
10846   -h, --help       print this help, then exit
10847   -V, --version    print version number, then exit
10848   -d, --debug      don't remove temporary files
10849       --recheck    update $as_me by reconfiguring in the same conditions
10850   --file=FILE[:TEMPLATE]
10851                    instantiate the configuration file FILE
10852   --header=FILE[:TEMPLATE]
10853                    instantiate the configuration header FILE
10854
10855 Configuration files:
10856 $config_files
10857
10858 Configuration headers:
10859 $config_headers
10860
10861 Configuration commands:
10862 $config_commands
10863
10864 Report bugs to <bug-autoconf@gnu.org>."
10865 _ACEOF
10866
10867 cat >>$CONFIG_STATUS <<_ACEOF
10868 ac_cs_version="\\
10869 fGIS config.status 0.0.1
10870 configured by $0, generated by GNU Autoconf 2.53,
10871   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10872
10873 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10874 Free Software Foundation, Inc.
10875 This config.status script is free software; the Free Software Foundation
10876 gives unlimited permission to copy, distribute and modify it."
10877 srcdir=$srcdir
10878 INSTALL="$INSTALL"
10879 _ACEOF
10880
10881 cat >>$CONFIG_STATUS <<\_ACEOF
10882 # If no file are specified by the user, then we need to provide default
10883 # value.  By we need to know if files were specified by the user.
10884 ac_need_defaults=:
10885 while test $# != 0
10886 do
10887   case $1 in
10888   --*=*)
10889     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10890     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10891     shift
10892     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10893     shift
10894     ;;
10895   -*);;
10896   *) # This is not an option, so the user has probably given explicit
10897      # arguments.
10898      ac_need_defaults=false;;
10899   esac
10900
10901   case $1 in
10902   # Handling of the options.
10903 _ACEOF
10904 cat >>$CONFIG_STATUS <<_ACEOF
10905   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10906     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10907     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10908 _ACEOF
10909 cat >>$CONFIG_STATUS <<\_ACEOF
10910   --version | --vers* | -V )
10911     echo "$ac_cs_version"; exit 0 ;;
10912   --he | --h)
10913     # Conflict between --help and --header
10914     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10915 Try \`$0 --help' for more information." >&5
10916 echo "$as_me: error: ambiguous option: $1
10917 Try \`$0 --help' for more information." >&2;}
10918    { (exit 1); exit 1; }; };;
10919   --help | --hel | -h )
10920     echo "$ac_cs_usage"; exit 0 ;;
10921   --debug | --d* | -d )
10922     debug=: ;;
10923   --file | --fil | --fi | --f )
10924     shift
10925     CONFIG_FILES="$CONFIG_FILES $1"
10926     ac_need_defaults=false;;
10927   --header | --heade | --head | --hea )
10928     shift
10929     CONFIG_HEADERS="$CONFIG_HEADERS $1"
10930     ac_need_defaults=false;;
10931
10932   # This is an error.
10933   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10934 Try \`$0 --help' for more information." >&5
10935 echo "$as_me: error: unrecognized option: $1
10936 Try \`$0 --help' for more information." >&2;}
10937    { (exit 1); exit 1; }; } ;;
10938
10939   *) ac_config_targets="$ac_config_targets $1" ;;
10940
10941   esac
10942   shift
10943 done
10944
10945 _ACEOF
10946
10947 cat >>$CONFIG_STATUS <<_ACEOF
10948 #
10949 # INIT-COMMANDS section.
10950 #
10951
10952 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10953
10954 _ACEOF
10955
10956
10957
10958 cat >>$CONFIG_STATUS <<\_ACEOF
10959 for ac_config_target in $ac_config_targets
10960 do
10961   case "$ac_config_target" in
10962   # Handling of arguments.
10963   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10964   "dll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dll/Makefile" ;;
10965   "epu/Makefile" ) CONFIG_FILES="$CONFIG_FILES epu/Makefile" ;;
10966   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10967   "tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcl/Makefile" ;;
10968   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10969   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
10970   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10971 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10972    { (exit 1); exit 1; }; };;
10973   esac
10974 done
10975
10976 # If the user did not use the arguments to specify the items to instantiate,
10977 # then the envvar interface is used.  Set only those that are not.
10978 # We use the long form for the default assignment because of an extremely
10979 # bizarre bug on SunOS 4.1.3.
10980 if $ac_need_defaults; then
10981   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10982   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10983   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10984 fi
10985
10986 # Create a temporary directory, and hook for its removal unless debugging.
10987 $debug ||
10988 {
10989   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10990   trap '{ (exit 1); exit 1; }' 1 2 13 15
10991 }
10992
10993 # Create a (secure) tmp directory for tmp files.
10994 : ${TMPDIR=/tmp}
10995 {
10996   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10997   test -n "$tmp" && test -d "$tmp"
10998 }  ||
10999 {
11000   tmp=$TMPDIR/cs$$-$RANDOM
11001   (umask 077 && mkdir $tmp)
11002 } ||
11003 {
11004    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11005    { (exit 1); exit 1; }
11006 }
11007
11008 _ACEOF
11009
11010 cat >>$CONFIG_STATUS <<_ACEOF
11011
11012 #
11013 # CONFIG_FILES section.
11014 #
11015
11016 # No need to generate the scripts if there are no CONFIG_FILES.
11017 # This happens for instance when ./config.status config.h
11018 if test -n "\$CONFIG_FILES"; then
11019   # Protect against being on the right side of a sed subst in config.status.
11020   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11021    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11022 s,@SHELL@,$SHELL,;t t
11023 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11024 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11025 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11026 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11027 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11028 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11029 s,@exec_prefix@,$exec_prefix,;t t
11030 s,@prefix@,$prefix,;t t
11031 s,@program_transform_name@,$program_transform_name,;t t
11032 s,@bindir@,$bindir,;t t
11033 s,@sbindir@,$sbindir,;t t
11034 s,@libexecdir@,$libexecdir,;t t
11035 s,@datadir@,$datadir,;t t
11036 s,@sysconfdir@,$sysconfdir,;t t
11037 s,@sharedstatedir@,$sharedstatedir,;t t
11038 s,@localstatedir@,$localstatedir,;t t
11039 s,@libdir@,$libdir,;t t
11040 s,@includedir@,$includedir,;t t
11041 s,@oldincludedir@,$oldincludedir,;t t
11042 s,@infodir@,$infodir,;t t
11043 s,@mandir@,$mandir,;t t
11044 s,@build_alias@,$build_alias,;t t
11045 s,@host_alias@,$host_alias,;t t
11046 s,@target_alias@,$target_alias,;t t
11047 s,@DEFS@,$DEFS,;t t
11048 s,@ECHO_C@,$ECHO_C,;t t
11049 s,@ECHO_N@,$ECHO_N,;t t
11050 s,@ECHO_T@,$ECHO_T,;t t
11051 s,@LIBS@,$LIBS,;t t
11052 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11053 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11054 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11055 s,@PACKAGE@,$PACKAGE,;t t
11056 s,@VERSION@,$VERSION,;t t
11057 s,@ACLOCAL@,$ACLOCAL,;t t
11058 s,@AUTOCONF@,$AUTOCONF,;t t
11059 s,@AUTOMAKE@,$AUTOMAKE,;t t
11060 s,@AUTOHEADER@,$AUTOHEADER,;t t
11061 s,@MAKEINFO@,$MAKEINFO,;t t
11062 s,@AMTAR@,$AMTAR,;t t
11063 s,@install_sh@,$install_sh,;t t
11064 s,@STRIP@,$STRIP,;t t
11065 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11066 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11067 s,@AWK@,$AWK,;t t
11068 s,@SET_MAKE@,$SET_MAKE,;t t
11069 s,@build@,$build,;t t
11070 s,@build_cpu@,$build_cpu,;t t
11071 s,@build_vendor@,$build_vendor,;t t
11072 s,@build_os@,$build_os,;t t
11073 s,@host@,$host,;t t
11074 s,@host_cpu@,$host_cpu,;t t
11075 s,@host_vendor@,$host_vendor,;t t
11076 s,@host_os@,$host_os,;t t
11077 s,@CC@,$CC,;t t
11078 s,@CFLAGS@,$CFLAGS,;t t
11079 s,@LDFLAGS@,$LDFLAGS,;t t
11080 s,@CPPFLAGS@,$CPPFLAGS,;t t
11081 s,@ac_ct_CC@,$ac_ct_CC,;t t
11082 s,@EXEEXT@,$EXEEXT,;t t
11083 s,@OBJEXT@,$OBJEXT,;t t
11084 s,@DEPDIR@,$DEPDIR,;t t
11085 s,@am__include@,$am__include,;t t
11086 s,@am__quote@,$am__quote,;t t
11087 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11088 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11089 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11090 s,@CCDEPMODE@,$CCDEPMODE,;t t
11091 s,@LN_S@,$LN_S,;t t
11092 s,@ECHO@,$ECHO,;t t
11093 s,@RANLIB@,$RANLIB,;t t
11094 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11095 s,@CPP@,$CPP,;t t
11096 s,@LIBTOOL@,$LIBTOOL,;t t
11097 s,@YACC@,$YACC,;t t
11098 s,@ALLOCA@,$ALLOCA,;t t
11099 s,@LIBOBJS@,$LIBOBJS,;t t
11100 s,@POW_LIB@,$POW_LIB,;t t
11101 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
11102 CEOF
11103
11104 _ACEOF
11105
11106   cat >>$CONFIG_STATUS <<\_ACEOF
11107   # Split the substitutions into bite-sized pieces for seds with
11108   # small command number limits, like on Digital OSF/1 and HP-UX.
11109   ac_max_sed_lines=48
11110   ac_sed_frag=1 # Number of current file.
11111   ac_beg=1 # First line for current file.
11112   ac_end=$ac_max_sed_lines # Line after last line for current file.
11113   ac_more_lines=:
11114   ac_sed_cmds=
11115   while $ac_more_lines; do
11116     if test $ac_beg -gt 1; then
11117       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11118     else
11119       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11120     fi
11121     if test ! -s $tmp/subs.frag; then
11122       ac_more_lines=false
11123     else
11124       # The purpose of the label and of the branching condition is to
11125       # speed up the sed processing (if there are no `@' at all, there
11126       # is no need to browse any of the substitutions).
11127       # These are the two extra sed commands mentioned above.
11128       (echo ':t
11129   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11130       if test -z "$ac_sed_cmds"; then
11131         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11132       else
11133         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11134       fi
11135       ac_sed_frag=`expr $ac_sed_frag + 1`
11136       ac_beg=$ac_end
11137       ac_end=`expr $ac_end + $ac_max_sed_lines`
11138     fi
11139   done
11140   if test -z "$ac_sed_cmds"; then
11141     ac_sed_cmds=cat
11142   fi
11143 fi # test -n "$CONFIG_FILES"
11144
11145 _ACEOF
11146 cat >>$CONFIG_STATUS <<\_ACEOF
11147 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11148   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11149   case $ac_file in
11150   - | *:- | *:-:* ) # input from stdin
11151         cat >$tmp/stdin
11152         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11153         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11154   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11155         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11156   * )   ac_file_in=$ac_file.in ;;
11157   esac
11158
11159   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11160   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11162          X"$ac_file" : 'X\(//\)[^/]' \| \
11163          X"$ac_file" : 'X\(//\)$' \| \
11164          X"$ac_file" : 'X\(/\)' \| \
11165          .     : '\(.\)' 2>/dev/null ||
11166 echo X"$ac_file" |
11167     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11168           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11169           /^X\(\/\/\)$/{ s//\1/; q; }
11170           /^X\(\/\).*/{ s//\1/; q; }
11171           s/.*/./; q'`
11172   { case "$ac_dir" in
11173   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11174   *)                      as_incr_dir=.;;
11175 esac
11176 as_dummy="$ac_dir"
11177 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11178   case $as_mkdir_dir in
11179     # Skip DOS drivespec
11180     ?:) as_incr_dir=$as_mkdir_dir ;;
11181     *)
11182       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11183       test -d "$as_incr_dir" ||
11184         mkdir "$as_incr_dir" ||
11185         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11186 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11187    { (exit 1); exit 1; }; }
11188     ;;
11189   esac
11190 done; }
11191
11192   ac_builddir=.
11193
11194 if test "$ac_dir" != .; then
11195   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11196   # A "../" for each directory in $ac_dir_suffix.
11197   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11198 else
11199   ac_dir_suffix= ac_top_builddir=
11200 fi
11201
11202 case $srcdir in
11203   .)  # No --srcdir option.  We are building in place.
11204     ac_srcdir=.
11205     if test -z "$ac_top_builddir"; then
11206        ac_top_srcdir=.
11207     else
11208        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11209     fi ;;
11210   [\\/]* | ?:[\\/]* )  # Absolute path.
11211     ac_srcdir=$srcdir$ac_dir_suffix;
11212     ac_top_srcdir=$srcdir ;;
11213   *) # Relative path.
11214     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11215     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11216 esac
11217 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11218 # absolute.
11219 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11220 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
11221 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11222 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11223
11224
11225   case $INSTALL in
11226   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11227   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11228   esac
11229
11230   if test x"$ac_file" != x-; then
11231     { echo "$as_me:$LINENO: creating $ac_file" >&5
11232 echo "$as_me: creating $ac_file" >&6;}
11233     rm -f "$ac_file"
11234   fi
11235   # Let's still pretend it is `configure' which instantiates (i.e., don't
11236   # use $as_me), people would be surprised to read:
11237   #    /* config.h.  Generated by config.status.  */
11238   if test x"$ac_file" = x-; then
11239     configure_input=
11240   else
11241     configure_input="$ac_file.  "
11242   fi
11243   configure_input=$configure_input"Generated from `echo $ac_file_in |
11244                                      sed 's,.*/,,'` by configure."
11245
11246   # First look for the input files in the build tree, otherwise in the
11247   # src tree.
11248   ac_file_inputs=`IFS=:
11249     for f in $ac_file_in; do
11250       case $f in
11251       -) echo $tmp/stdin ;;
11252       [\\/$]*)
11253          # Absolute (can't be DOS-style, as IFS=:)
11254          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11255 echo "$as_me: error: cannot find input file: $f" >&2;}
11256    { (exit 1); exit 1; }; }
11257          echo $f;;
11258       *) # Relative
11259          if test -f "$f"; then
11260            # Build tree
11261            echo $f
11262          elif test -f "$srcdir/$f"; then
11263            # Source tree
11264            echo $srcdir/$f
11265          else
11266            # /dev/null tree
11267            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11268 echo "$as_me: error: cannot find input file: $f" >&2;}
11269    { (exit 1); exit 1; }; }
11270          fi;;
11271       esac
11272     done` || { (exit 1); exit 1; }
11273 _ACEOF
11274 cat >>$CONFIG_STATUS <<_ACEOF
11275   sed "$ac_vpsub
11276 $extrasub
11277 _ACEOF
11278 cat >>$CONFIG_STATUS <<\_ACEOF
11279 :t
11280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11281 s,@configure_input@,$configure_input,;t t
11282 s,@srcdir@,$ac_srcdir,;t t
11283 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11284 s,@top_srcdir@,$ac_top_srcdir,;t t
11285 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11286 s,@builddir@,$ac_builddir,;t t
11287 s,@abs_builddir@,$ac_abs_builddir,;t t
11288 s,@top_builddir@,$ac_top_builddir,;t t
11289 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11290 s,@INSTALL@,$ac_INSTALL,;t t
11291 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11292   rm -f $tmp/stdin
11293   if test x"$ac_file" != x-; then
11294     mv $tmp/out $ac_file
11295   else
11296     cat $tmp/out
11297     rm -f $tmp/out
11298   fi
11299
11300 done
11301 _ACEOF
11302 cat >>$CONFIG_STATUS <<\_ACEOF
11303
11304 #
11305 # CONFIG_HEADER section.
11306 #
11307
11308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11310 #
11311 # ac_d sets the value in "#define NAME VALUE" lines.
11312 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11313 ac_dB='[        ].*$,\1#\2'
11314 ac_dC=' '
11315 ac_dD=',;t'
11316 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11317 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11318 ac_uB='$,\1#\2define\3'
11319 ac_uC=' '
11320 ac_uD=',;t'
11321
11322 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11323   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11324   case $ac_file in
11325   - | *:- | *:-:* ) # input from stdin
11326         cat >$tmp/stdin
11327         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11328         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11329   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11331   * )   ac_file_in=$ac_file.in ;;
11332   esac
11333
11334   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11335 echo "$as_me: creating $ac_file" >&6;}
11336
11337   # First look for the input files in the build tree, otherwise in the
11338   # src tree.
11339   ac_file_inputs=`IFS=:
11340     for f in $ac_file_in; do
11341       case $f in
11342       -) echo $tmp/stdin ;;
11343       [\\/$]*)
11344          # Absolute (can't be DOS-style, as IFS=:)
11345          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11346 echo "$as_me: error: cannot find input file: $f" >&2;}
11347    { (exit 1); exit 1; }; }
11348          echo $f;;
11349       *) # Relative
11350          if test -f "$f"; then
11351            # Build tree
11352            echo $f
11353          elif test -f "$srcdir/$f"; then
11354            # Source tree
11355            echo $srcdir/$f
11356          else
11357            # /dev/null tree
11358            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11359 echo "$as_me: error: cannot find input file: $f" >&2;}
11360    { (exit 1); exit 1; }; }
11361          fi;;
11362       esac
11363     done` || { (exit 1); exit 1; }
11364   # Remove the trailing spaces.
11365   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11366
11367 _ACEOF
11368
11369 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11370 # `conftest.undefs', that substitutes the proper values into
11371 # config.h.in to produce config.h.  The first handles `#define'
11372 # templates, and the second `#undef' templates.
11373 # And first: Protect against being on the right side of a sed subst in
11374 # config.status.  Protect against being in an unquoted here document
11375 # in config.status.
11376 rm -f conftest.defines conftest.undefs
11377 # Using a here document instead of a string reduces the quoting nightmare.
11378 # Putting comments in sed scripts is not portable.
11379 #
11380 # `end' is used to avoid that the second main sed command (meant for
11381 # 0-ary CPP macros) applies to n-ary macro definitions.
11382 # See the Autoconf documentation for `clear'.
11383 cat >confdef2sed.sed <<\_ACEOF
11384 s/[\\&,]/\\&/g
11385 s,[\\$`],\\&,g
11386 t clear
11387 : clear
11388 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11389 t end
11390 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11391 : end
11392 _ACEOF
11393 # If some macros were called several times there might be several times
11394 # the same #defines, which is useless.  Nevertheless, we may not want to
11395 # sort them, since we want the *last* AC-DEFINE to be honored.
11396 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11397 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11398 rm -f confdef2sed.sed
11399
11400 # This sed command replaces #undef with comments.  This is necessary, for
11401 # example, in the case of _POSIX_SOURCE, which is predefined and required
11402 # on some systems where configure will not decide to define it.
11403 cat >>conftest.undefs <<\_ACEOF
11404 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11405 _ACEOF
11406
11407 # Break up conftest.defines because some shells have a limit on the size
11408 # of here documents, and old seds have small limits too (100 cmds).
11409 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11410 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11411 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11412 echo '  :' >>$CONFIG_STATUS
11413 rm -f conftest.tail
11414 while grep . conftest.defines >/dev/null
11415 do
11416   # Write a limited-size here document to $tmp/defines.sed.
11417   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11418   # Speed up: don't consider the non `#define' lines.
11419   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
11420   # Work around the forget-to-reset-the-flag bug.
11421   echo 't clr' >>$CONFIG_STATUS
11422   echo ': clr' >>$CONFIG_STATUS
11423   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11424   echo 'CEOF
11425   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11426   rm -f $tmp/in
11427   mv $tmp/out $tmp/in
11428 ' >>$CONFIG_STATUS
11429   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11430   rm -f conftest.defines
11431   mv conftest.tail conftest.defines
11432 done
11433 rm -f conftest.defines
11434 echo '  fi # egrep' >>$CONFIG_STATUS
11435 echo >>$CONFIG_STATUS
11436
11437 # Break up conftest.undefs because some shells have a limit on the size
11438 # of here documents, and old seds have small limits too (100 cmds).
11439 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11440 rm -f conftest.tail
11441 while grep . conftest.undefs >/dev/null
11442 do
11443   # Write a limited-size here document to $tmp/undefs.sed.
11444   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11445   # Speed up: don't consider the non `#undef'
11446   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11447   # Work around the forget-to-reset-the-flag bug.
11448   echo 't clr' >>$CONFIG_STATUS
11449   echo ': clr' >>$CONFIG_STATUS
11450   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11451   echo 'CEOF
11452   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11453   rm -f $tmp/in
11454   mv $tmp/out $tmp/in
11455 ' >>$CONFIG_STATUS
11456   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11457   rm -f conftest.undefs
11458   mv conftest.tail conftest.undefs
11459 done
11460 rm -f conftest.undefs
11461
11462 cat >>$CONFIG_STATUS <<\_ACEOF
11463   # Let's still pretend it is `configure' which instantiates (i.e., don't
11464   # use $as_me), people would be surprised to read:
11465   #    /* config.h.  Generated by config.status.  */
11466   if test x"$ac_file" = x-; then
11467     echo "/* Generated by configure.  */" >$tmp/config.h
11468   else
11469     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11470   fi
11471   cat $tmp/in >>$tmp/config.h
11472   rm -f $tmp/in
11473   if test x"$ac_file" != x-; then
11474     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11475       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11476 echo "$as_me: $ac_file is unchanged" >&6;}
11477     else
11478       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11480          X"$ac_file" : 'X\(//\)[^/]' \| \
11481          X"$ac_file" : 'X\(//\)$' \| \
11482          X"$ac_file" : 'X\(/\)' \| \
11483          .     : '\(.\)' 2>/dev/null ||
11484 echo X"$ac_file" |
11485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11486           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11487           /^X\(\/\/\)$/{ s//\1/; q; }
11488           /^X\(\/\).*/{ s//\1/; q; }
11489           s/.*/./; q'`
11490       { case "$ac_dir" in
11491   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11492   *)                      as_incr_dir=.;;
11493 esac
11494 as_dummy="$ac_dir"
11495 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11496   case $as_mkdir_dir in
11497     # Skip DOS drivespec
11498     ?:) as_incr_dir=$as_mkdir_dir ;;
11499     *)
11500       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11501       test -d "$as_incr_dir" ||
11502         mkdir "$as_incr_dir" ||
11503         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
11504 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
11505    { (exit 1); exit 1; }; }
11506     ;;
11507   esac
11508 done; }
11509
11510       rm -f $ac_file
11511       mv $tmp/config.h $ac_file
11512     fi
11513   else
11514     cat $tmp/config.h
11515     rm -f $tmp/config.h
11516   fi
11517   # Run the commands associated with the file.
11518   case $ac_file in
11519     include/config.h ) # update the timestamp
11520 echo 'timestamp for include/config.h' >"include/stamp-h1"
11521  ;;
11522   esac
11523 done
11524 _ACEOF
11525 cat >>$CONFIG_STATUS <<\_ACEOF
11526
11527 #
11528 # CONFIG_COMMANDS section.
11529 #
11530 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11531   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11532   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11533   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11534 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11535          X"$ac_dest" : 'X\(//\)[^/]' \| \
11536          X"$ac_dest" : 'X\(//\)$' \| \
11537          X"$ac_dest" : 'X\(/\)' \| \
11538          .     : '\(.\)' 2>/dev/null ||
11539 echo X"$ac_dest" |
11540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11541           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11542           /^X\(\/\/\)$/{ s//\1/; q; }
11543           /^X\(\/\).*/{ s//\1/; q; }
11544           s/.*/./; q'`
11545   ac_builddir=.
11546
11547 if test "$ac_dir" != .; then
11548   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11549   # A "../" for each directory in $ac_dir_suffix.
11550   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11551 else
11552   ac_dir_suffix= ac_top_builddir=
11553 fi
11554
11555 case $srcdir in
11556   .)  # No --srcdir option.  We are building in place.
11557     ac_srcdir=.
11558     if test -z "$ac_top_builddir"; then
11559        ac_top_srcdir=.
11560     else
11561        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11562     fi ;;
11563   [\\/]* | ?:[\\/]* )  # Absolute path.
11564     ac_srcdir=$srcdir$ac_dir_suffix;
11565     ac_top_srcdir=$srcdir ;;
11566   *) # Relative path.
11567     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11568     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11569 esac
11570 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11571 # absolute.
11572 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11573 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
11574 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11575 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11576
11577
11578   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11579 echo "$as_me: executing $ac_dest commands" >&6;}
11580   case $ac_dest in
11581     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11582   # Strip MF so we end up with the name of the file.
11583   mf=`echo "$mf" | sed -e 's/:.*$//'`
11584   # Check whether this is an Automake generated Makefile or not.
11585   # We used to match only the files named `Makefile.in', but
11586   # some people rename them; so instead we look at the file content.
11587   # Grep'ing the first line is not enough: some people post-process
11588   # each Makefile.in and add a new line on top of each file to say so.
11589   # So let's grep whole file.
11590   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11591     dirpart=`(dirname "$mf") 2>/dev/null ||
11592 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11593          X"$mf" : 'X\(//\)[^/]' \| \
11594          X"$mf" : 'X\(//\)$' \| \
11595          X"$mf" : 'X\(/\)' \| \
11596          .     : '\(.\)' 2>/dev/null ||
11597 echo X"$mf" |
11598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11599           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11600           /^X\(\/\/\)$/{ s//\1/; q; }
11601           /^X\(\/\).*/{ s//\1/; q; }
11602           s/.*/./; q'`
11603   else
11604     continue
11605   fi
11606   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11607   # Extract the definition of DEP_FILES from the Makefile without
11608   # running `make'.
11609   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
11610   test -z "$DEPDIR" && continue
11611   # When using ansi2knr, U may be empty or an underscore; expand it
11612   U=`sed -n -e '/^U = / s///p' < "$mf"`
11613   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
11614   # We invoke sed twice because it is the simplest approach to
11615   # changing $(DEPDIR) to its actual value in the expansion.
11616   for file in `sed -n -e '
11617     /^DEP_FILES = .*\\\\$/ {
11618       s/^DEP_FILES = //
11619       :loop
11620         s/\\\\$//
11621         p
11622         n
11623         /\\\\$/ b loop
11624       p
11625     }
11626     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
11627        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11628     # Make sure the directory exists.
11629     test -f "$dirpart/$file" && continue
11630     fdir=`(dirname "$file") 2>/dev/null ||
11631 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11632          X"$file" : 'X\(//\)[^/]' \| \
11633          X"$file" : 'X\(//\)$' \| \
11634          X"$file" : 'X\(/\)' \| \
11635          .     : '\(.\)' 2>/dev/null ||
11636 echo X"$file" |
11637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11638           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11639           /^X\(\/\/\)$/{ s//\1/; q; }
11640           /^X\(\/\).*/{ s//\1/; q; }
11641           s/.*/./; q'`
11642     { case $dirpart/$fdir in
11643   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11644   *)                      as_incr_dir=.;;
11645 esac
11646 as_dummy=$dirpart/$fdir
11647 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11648   case $as_mkdir_dir in
11649     # Skip DOS drivespec
11650     ?:) as_incr_dir=$as_mkdir_dir ;;
11651     *)
11652       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11653       test -d "$as_incr_dir" ||
11654         mkdir "$as_incr_dir" ||
11655         { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
11656 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
11657    { (exit 1); exit 1; }; }
11658     ;;
11659   esac
11660 done; }
11661
11662     # echo "creating $dirpart/$file"
11663     echo '# dummy' > "$dirpart/$file"
11664   done
11665 done
11666  ;;
11667   esac
11668 done
11669 _ACEOF
11670
11671 cat >>$CONFIG_STATUS <<\_ACEOF
11672
11673 { (exit 0); exit 0; }
11674 _ACEOF
11675 chmod +x $CONFIG_STATUS
11676 ac_clean_files=$ac_clean_files_save
11677
11678
11679 # configure is writing to config.log, and then calls config.status.
11680 # config.status does its own redirection, appending to config.log.
11681 # Unfortunately, on DOS this fails, as config.log is still kept open
11682 # by configure, so config.status won't be able to write to it; its
11683 # output is simply discarded.  So we exec the FD to /dev/null,
11684 # effectively closing config.log, so it can be properly (re)opened and
11685 # appended to by config.status.  When coming back to configure, we
11686 # need to make the FD available again.
11687 if test "$no_create" != yes; then
11688   ac_cs_success=:
11689   exec 5>/dev/null
11690   $SHELL $CONFIG_STATUS || ac_cs_success=false
11691   exec 5>>config.log
11692   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11693   # would make configure fail if this is the last instruction.
11694   $ac_cs_success || { (exit 1); exit 1; }
11695 fi
11696