]> www.wagner.pp.ru Git - oss/fgis.git/blob - configure
5019fd42897588ad2d56c091d753e864eb1f6a40
[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-tclinclude=DIR   directory where tcl private headers are
1014   --with-tcl           directory containing tcl configuration (tclConfig.sh)
1015   --with-tkinclude       directory where tk private headers are
1016   --with-tk           directory containing tk configuration (tkConfig.sh)
1017
1018 Some influential environment variables:
1019   CC          C compiler command
1020   CFLAGS      C compiler flags
1021   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1022               nonstandard directory <lib dir>
1023   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1024               headers in a nonstandard directory <include dir>
1025   CPP         C preprocessor
1026
1027 Use these variables to override the choices made by `configure' or to help
1028 it to find libraries and programs with nonstandard names/locations.
1029
1030 Report bugs to <dron@remotesensing.org>.
1031 _ACEOF
1032 fi
1033
1034 if test "$ac_init_help" = "recursive"; then
1035   # If there are subdirs, report their specific --help.
1036   ac_popdir=`pwd`
1037   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1038     test -d $ac_dir || continue
1039     ac_builddir=.
1040
1041 if test "$ac_dir" != .; then
1042   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1043   # A "../" for each directory in $ac_dir_suffix.
1044   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1045 else
1046   ac_dir_suffix= ac_top_builddir=
1047 fi
1048
1049 case $srcdir in
1050   .)  # No --srcdir option.  We are building in place.
1051     ac_srcdir=.
1052     if test -z "$ac_top_builddir"; then
1053        ac_top_srcdir=.
1054     else
1055        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1056     fi ;;
1057   [\\/]* | ?:[\\/]* )  # Absolute path.
1058     ac_srcdir=$srcdir$ac_dir_suffix;
1059     ac_top_srcdir=$srcdir ;;
1060   *) # Relative path.
1061     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1062     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1063 esac
1064 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1065 # absolute.
1066 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1067 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1068 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1069 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1070
1071     cd $ac_dir
1072     # Check for guested configure; otherwise get Cygnus style configure.
1073     if test -f $ac_srcdir/configure.gnu; then
1074       echo
1075       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1076     elif test -f $ac_srcdir/configure; then
1077       echo
1078       $SHELL $ac_srcdir/configure  --help=recursive
1079     elif test -f $ac_srcdir/configure.ac ||
1080            test -f $ac_srcdir/configure.in; then
1081       echo
1082       $ac_configure --help
1083     else
1084       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1085     fi
1086     cd $ac_popdir
1087   done
1088 fi
1089
1090 test -n "$ac_init_help" && exit 0
1091 if $ac_init_version; then
1092   cat <<\_ACEOF
1093 fGIS configure 0.0.1
1094 generated by GNU Autoconf 2.53
1095
1096 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1097 Free Software Foundation, Inc.
1098 This configure script is free software; the Free Software Foundation
1099 gives unlimited permission to copy, distribute and modify it.
1100 _ACEOF
1101   exit 0
1102 fi
1103 exec 5>config.log
1104 cat >&5 <<_ACEOF
1105 This file contains any messages produced by compilers while
1106 running configure, to aid debugging if configure makes a mistake.
1107
1108 It was created by fGIS $as_me 0.0.1, which was
1109 generated by GNU Autoconf 2.53.  Invocation command line was
1110
1111   $ $0 $@
1112
1113 _ACEOF
1114 {
1115 cat <<_ASUNAME
1116 ## --------- ##
1117 ## Platform. ##
1118 ## --------- ##
1119
1120 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1121 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1122 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1123 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1124 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1125
1126 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1127 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1128
1129 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1130 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1131 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1132 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1133 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1134 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1135 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1136
1137 _ASUNAME
1138
1139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1140 for as_dir in $PATH
1141 do
1142   IFS=$as_save_IFS
1143   test -z "$as_dir" && as_dir=.
1144   echo "PATH: $as_dir"
1145 done
1146
1147 } >&5
1148
1149 cat >&5 <<_ACEOF
1150
1151
1152 ## ----------- ##
1153 ## Core tests. ##
1154 ## ----------- ##
1155
1156 _ACEOF
1157
1158
1159 # Keep a trace of the command line.
1160 # Strip out --no-create and --no-recursion so they do not pile up.
1161 # Also quote any args containing shell meta-characters.
1162 ac_configure_args=
1163 ac_sep=
1164 for ac_arg
1165 do
1166   case $ac_arg in
1167   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168   | --no-cr | --no-c | -n ) continue ;;
1169   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171     continue ;;
1172   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1173     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1174   esac
1175   case " $ac_configure_args " in
1176     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1177     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1178        ac_sep=" " ;;
1179   esac
1180   # Get rid of the leading space.
1181 done
1182
1183 # When interrupted or exit'd, cleanup temporary files, and complete
1184 # config.log.  We remove comments because anyway the quotes in there
1185 # would cause problems or look ugly.
1186 # WARNING: Be sure not to use single quotes in there, as some shells,
1187 # such as our DU 5.0 friend, will then `close' the trap.
1188 trap 'exit_status=$?
1189   # Save into config.log some information that might help in debugging.
1190   {
1191     echo
1192     cat <<\_ASBOX
1193 ## ---------------- ##
1194 ## Cache variables. ##
1195 ## ---------------- ##
1196 _ASBOX
1197     echo
1198     # The following way of writing the cache mishandles newlines in values,
1199 {
1200   (set) 2>&1 |
1201     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1202     *ac_space=\ *)
1203       sed -n \
1204         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1205           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1206       ;;
1207     *)
1208       sed -n \
1209         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1210       ;;
1211     esac;
1212 }
1213     echo
1214     if test -s confdefs.h; then
1215       cat <<\_ASBOX
1216 ## ----------- ##
1217 ## confdefs.h. ##
1218 ## ----------- ##
1219 _ASBOX
1220       echo
1221       sed "/^$/d" confdefs.h
1222       echo
1223     fi
1224     test "$ac_signal" != 0 &&
1225       echo "$as_me: caught signal $ac_signal"
1226     echo "$as_me: exit $exit_status"
1227   } >&5
1228   rm -f core core.* *.core &&
1229   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1230     exit $exit_status
1231      ' 0
1232 for ac_signal in 1 2 13 15; do
1233   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 done
1235 ac_signal=0
1236
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1240 echo >confdefs.h
1241
1242 # Predefined preprocessor variables.
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 _ACEOF
1247
1248
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 _ACEOF
1267
1268
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272   if test "x$prefix" != xNONE; then
1273     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1274   else
1275     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1276   fi
1277 fi
1278 for ac_site_file in $CONFIG_SITE; do
1279   if test -r "$ac_site_file"; then
1280     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282     sed 's/^/| /' "$ac_site_file" >&5
1283     . "$ac_site_file"
1284   fi
1285 done
1286
1287 if test -r "$cache_file"; then
1288   # Some versions of bash will fail to source /dev/null (special
1289   # files actually), so we avoid doing that.
1290   if test -f "$cache_file"; then
1291     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1293     case $cache_file in
1294       [\\/]* | ?:[\\/]* ) . $cache_file;;
1295       *)                      . ./$cache_file;;
1296     esac
1297   fi
1298 else
1299   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1301   >$cache_file
1302 fi
1303
1304 # Check that the precious variables saved in the cache have kept the same
1305 # value.
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1309   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310   eval ac_new_set=\$ac_env_${ac_var}_set
1311   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312   eval ac_new_val="\$ac_env_${ac_var}_value"
1313   case $ac_old_set,$ac_new_set in
1314     set,)
1315       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1317       ac_cache_corrupted=: ;;
1318     ,set)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,);;
1323     *)
1324       if test "x$ac_old_val" != "x$ac_new_val"; then
1325         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1327         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1328 echo "$as_me:   former value:  $ac_old_val" >&2;}
1329         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1330 echo "$as_me:   current value: $ac_new_val" >&2;}
1331         ac_cache_corrupted=:
1332       fi;;
1333   esac
1334   # Pass precious variables to config.status.
1335   if test "$ac_new_set" = set; then
1336     case $ac_new_val in
1337     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1339     *) ac_arg=$ac_var=$ac_new_val ;;
1340     esac
1341     case " $ac_configure_args " in
1342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344     esac
1345   fi
1346 done
1347 if $ac_cache_corrupted; then
1348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 ac_ext=c
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386 # AC_CONFIG_HEADERS([config.h])
1387 am__api_version="1.6"
1388 ac_aux_dir=
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390   if test -f $ac_dir/install-sh; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/install-sh -c"
1393     break
1394   elif test -f $ac_dir/install.sh; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/install.sh -c"
1397     break
1398   elif test -f $ac_dir/shtool; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/shtool install -c"
1401     break
1402   fi
1403 done
1404 if test -z "$ac_aux_dir"; then
1405   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407    { (exit 1); exit 1; }; }
1408 fi
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412
1413 # Find a good install program.  We prefer a C program (faster),
1414 # so one script is as good as another.  But avoid the broken or
1415 # incompatible versions:
1416 # SysV /etc/install, /usr/sbin/install
1417 # SunOS /usr/etc/install
1418 # IRIX /sbin/install
1419 # AIX /bin/install
1420 # AmigaOS /C/install, which installs bootblocks on floppy discs
1421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1424 # ./install, which can be erroneously created by make from ./install.sh.
1425 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1426 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1427 if test -z "$INSTALL"; then
1428 if test "${ac_cv_path_install+set}" = set; then
1429   echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   # Account for people who put trailing slashes in PATH elements.
1437 case $as_dir/ in
1438   ./ | .// | /cC/* | \
1439   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1440   /usr/ucb/* ) ;;
1441   *)
1442     # OSF1 and SCO ODT 3.0 have their own names for install.
1443     # Don't use installbsd from OSF since it installs stuff as root
1444     # by default.
1445     for ac_prog in ginstall scoinst install; do
1446       for ac_exec_ext in '' $ac_executable_extensions; do
1447         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1448           if test $ac_prog = install &&
1449             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1450             # AIX install.  It has an incompatible calling convention.
1451             :
1452           elif test $ac_prog = install &&
1453             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1454             # program-specific install script used by HP pwplus--don't use.
1455             :
1456           else
1457             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1458             break 3
1459           fi
1460         fi
1461       done
1462     done
1463     ;;
1464 esac
1465 done
1466
1467
1468 fi
1469   if test "${ac_cv_path_install+set}" = set; then
1470     INSTALL=$ac_cv_path_install
1471   else
1472     # As a last resort, use the slow shell script.  We don't cache a
1473     # path for INSTALL within a source directory, because that will
1474     # break other packages using the cache if that directory is
1475     # removed, or if the path is relative.
1476     INSTALL=$ac_install_sh
1477   fi
1478 fi
1479 echo "$as_me:$LINENO: result: $INSTALL" >&5
1480 echo "${ECHO_T}$INSTALL" >&6
1481
1482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1483 # It thinks the first close brace ends the variable substitution.
1484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1485
1486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1487
1488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1489
1490 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1491 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1492 # Just in case
1493 sleep 1
1494 echo timestamp > conftest.file
1495 # Do `set' in a subshell so we don't clobber the current shell's
1496 # arguments.  Must try -L first in case configure is actually a
1497 # symlink; some systems play weird games with the mod time of symlinks
1498 # (eg FreeBSD returns the mod time of the symlink's containing
1499 # directory).
1500 if (
1501    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1502    if test "$*" = "X"; then
1503       # -L didn't work.
1504       set X `ls -t $srcdir/configure conftest.file`
1505    fi
1506    rm -f conftest.file
1507    if test "$*" != "X $srcdir/configure conftest.file" \
1508       && test "$*" != "X conftest.file $srcdir/configure"; then
1509
1510       # If neither matched, then we have a broken ls.  This can happen
1511       # if, for instance, CONFIG_SHELL is bash and it inherits a
1512       # broken ls alias from the environment.  This has actually
1513       # happened.  Such a system could not be considered "sane".
1514       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1515 alias in your environment" >&5
1516 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1517 alias in your environment" >&2;}
1518    { (exit 1); exit 1; }; }
1519    fi
1520
1521    test "$2" = conftest.file
1522    )
1523 then
1524    # Ok.
1525    :
1526 else
1527    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1528 Check your system clock" >&5
1529 echo "$as_me: error: newly created file is older than distributed files!
1530 Check your system clock" >&2;}
1531    { (exit 1); exit 1; }; }
1532 fi
1533 echo "$as_me:$LINENO: result: yes" >&5
1534 echo "${ECHO_T}yes" >&6
1535 test "$program_prefix" != NONE &&
1536   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1537 # Use a double $ so make ignores it.
1538 test "$program_suffix" != NONE &&
1539   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1540 # Double any \ or $.  echo might interpret backslashes.
1541 # By default was `s,x,x', remove it if useless.
1542 cat <<\_ACEOF >conftest.sed
1543 s/[\\$]/&&/g;s/;s,x,x,$//
1544 _ACEOF
1545 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1546 rm conftest.sed
1547
1548
1549 # expand $ac_aux_dir to an absolute path
1550 am_aux_dir=`cd $ac_aux_dir && pwd`
1551
1552 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1553 # Use eval to expand $SHELL
1554 if eval "$MISSING --run true"; then
1555   am_missing_run="$MISSING --run "
1556 else
1557   am_missing_run=
1558   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1559 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1560 fi
1561
1562 for ac_prog in gawk mawk nawk awk
1563 do
1564   # Extract the first word of "$ac_prog", so it can be a program name with args.
1565 set dummy $ac_prog; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_AWK+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$AWK"; then
1572   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     ac_cv_prog_AWK="$ac_prog"
1582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583     break 2
1584   fi
1585 done
1586 done
1587
1588 fi
1589 fi
1590 AWK=$ac_cv_prog_AWK
1591 if test -n "$AWK"; then
1592   echo "$as_me:$LINENO: result: $AWK" >&5
1593 echo "${ECHO_T}$AWK" >&6
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 fi
1598
1599   test -n "$AWK" && break
1600 done
1601
1602 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1603 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1604 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1605 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   cat >conftest.make <<\_ACEOF
1609 all:
1610         @echo 'ac_maketemp="${MAKE}"'
1611 _ACEOF
1612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1613 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1614 if test -n "$ac_maketemp"; then
1615   eval ac_cv_prog_make_${ac_make}_set=yes
1616 else
1617   eval ac_cv_prog_make_${ac_make}_set=no
1618 fi
1619 rm -f conftest.make
1620 fi
1621 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1622   echo "$as_me:$LINENO: result: yes" >&5
1623 echo "${ECHO_T}yes" >&6
1624   SET_MAKE=
1625 else
1626   echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628   SET_MAKE="MAKE=${MAKE-make}"
1629 fi
1630
1631  # test to see if srcdir already configured
1632 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1633    test -f $srcdir/config.status; then
1634   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1635 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1636    { (exit 1); exit 1; }; }
1637 fi
1638
1639 # Define the identity of the package.
1640  PACKAGE=fgis
1641  VERSION=0.0.1
1642
1643
1644 cat >>confdefs.h <<_ACEOF
1645 #define PACKAGE "$PACKAGE"
1646 _ACEOF
1647
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define VERSION "$VERSION"
1651 _ACEOF
1652
1653 # Some tools Automake needs.
1654
1655 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1656
1657
1658 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1659
1660
1661 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1662
1663
1664 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1665
1666
1667 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1668
1669
1670 AMTAR=${AMTAR-"${am_missing_run}tar"}
1671
1672 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1673
1674 # Installed binaries are usually stripped using `strip' when the user
1675 # run `make install-strip'.  However `strip' might not be the right
1676 # tool to use in cross-compilation environments, therefore Automake
1677 # will honor the `STRIP' environment variable to overrule this program.
1678 if test "$cross_compiling" != no; then
1679   if test -n "$ac_tool_prefix"; then
1680   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1681 set dummy ${ac_tool_prefix}strip; ac_word=$2
1682 echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684 if test "${ac_cv_prog_STRIP+set}" = set; then
1685   echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687   if test -n "$STRIP"; then
1688   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1692 do
1693   IFS=$as_save_IFS
1694   test -z "$as_dir" && as_dir=.
1695   for ac_exec_ext in '' $ac_executable_extensions; do
1696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699     break 2
1700   fi
1701 done
1702 done
1703
1704 fi
1705 fi
1706 STRIP=$ac_cv_prog_STRIP
1707 if test -n "$STRIP"; then
1708   echo "$as_me:$LINENO: result: $STRIP" >&5
1709 echo "${ECHO_T}$STRIP" >&6
1710 else
1711   echo "$as_me:$LINENO: result: no" >&5
1712 echo "${ECHO_T}no" >&6
1713 fi
1714
1715 fi
1716 if test -z "$ac_cv_prog_STRIP"; then
1717   ac_ct_STRIP=$STRIP
1718   # Extract the first word of "strip", so it can be a program name with args.
1719 set dummy strip; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1723   echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725   if test -n "$ac_ct_STRIP"; then
1726   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1727 else
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1730 do
1731   IFS=$as_save_IFS
1732   test -z "$as_dir" && as_dir=.
1733   for ac_exec_ext in '' $ac_executable_extensions; do
1734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735     ac_cv_prog_ac_ct_STRIP="strip"
1736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737     break 2
1738   fi
1739 done
1740 done
1741
1742   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1743 fi
1744 fi
1745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1746 if test -n "$ac_ct_STRIP"; then
1747   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1748 echo "${ECHO_T}$ac_ct_STRIP" >&6
1749 else
1750   echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1752 fi
1753
1754   STRIP=$ac_ct_STRIP
1755 else
1756   STRIP="$ac_cv_prog_STRIP"
1757 fi
1758
1759 fi
1760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1761
1762 # We need awk for the "check" target.  The system "awk" is bad on
1763 # some platforms.
1764
1765
1766
1767 # AC_CONFIG_SRCDIR([include/regex.h])
1768 # Add the stamp file to the list of files AC keeps track of,
1769 # along with our hook.
1770 ac_config_headers="$ac_config_headers include/config.h"
1771
1772
1773
1774
1775
1776 # Check whether --enable-shared or --disable-shared was given.
1777 if test "${enable_shared+set}" = set; then
1778   enableval="$enable_shared"
1779   p=${PACKAGE-default}
1780 case $enableval in
1781 yes) enable_shared=yes ;;
1782 no) enable_shared=no ;;
1783 *)
1784   enable_shared=no
1785   # Look at the argument we got.  We use all the common list separators.
1786   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1787   for pkg in $enableval; do
1788     if test "X$pkg" = "X$p"; then
1789       enable_shared=yes
1790     fi
1791   done
1792   IFS="$ac_save_ifs"
1793   ;;
1794 esac
1795 else
1796   enable_shared=yes
1797 fi;
1798 # Check whether --enable-static or --disable-static was given.
1799 if test "${enable_static+set}" = set; then
1800   enableval="$enable_static"
1801   p=${PACKAGE-default}
1802 case $enableval in
1803 yes) enable_static=yes ;;
1804 no) enable_static=no ;;
1805 *)
1806   enable_static=no
1807   # Look at the argument we got.  We use all the common list separators.
1808   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1809   for pkg in $enableval; do
1810     if test "X$pkg" = "X$p"; then
1811       enable_static=yes
1812     fi
1813   done
1814   IFS="$ac_save_ifs"
1815   ;;
1816 esac
1817 else
1818   enable_static=yes
1819 fi;
1820 # Check whether --enable-fast-install or --disable-fast-install was given.
1821 if test "${enable_fast_install+set}" = set; then
1822   enableval="$enable_fast_install"
1823   p=${PACKAGE-default}
1824 case $enableval in
1825 yes) enable_fast_install=yes ;;
1826 no) enable_fast_install=no ;;
1827 *)
1828   enable_fast_install=no
1829   # Look at the argument we got.  We use all the common list separators.
1830   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1831   for pkg in $enableval; do
1832     if test "X$pkg" = "X$p"; then
1833       enable_fast_install=yes
1834     fi
1835   done
1836   IFS="$ac_save_ifs"
1837   ;;
1838 esac
1839 else
1840   enable_fast_install=yes
1841 fi;
1842 # Make sure we can run config.sub.
1843 $ac_config_sub sun4 >/dev/null 2>&1 ||
1844   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1845 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1846    { (exit 1); exit 1; }; }
1847
1848 echo "$as_me:$LINENO: checking build system type" >&5
1849 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1850 if test "${ac_cv_build+set}" = set; then
1851   echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853   ac_cv_build_alias=$build_alias
1854 test -z "$ac_cv_build_alias" &&
1855   ac_cv_build_alias=`$ac_config_guess`
1856 test -z "$ac_cv_build_alias" &&
1857   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1858 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1859    { (exit 1); exit 1; }; }
1860 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1861   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1862 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1863    { (exit 1); exit 1; }; }
1864
1865 fi
1866 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1867 echo "${ECHO_T}$ac_cv_build" >&6
1868 build=$ac_cv_build
1869 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1870 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1871 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1872
1873
1874 echo "$as_me:$LINENO: checking host system type" >&5
1875 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1876 if test "${ac_cv_host+set}" = set; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   ac_cv_host_alias=$host_alias
1880 test -z "$ac_cv_host_alias" &&
1881   ac_cv_host_alias=$ac_cv_build_alias
1882 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1883   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1884 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1885    { (exit 1); exit 1; }; }
1886
1887 fi
1888 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1889 echo "${ECHO_T}$ac_cv_host" >&6
1890 host=$ac_cv_host
1891 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1892 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1893 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1894
1895
1896 rm -f .deps 2>/dev/null
1897 mkdir .deps 2>/dev/null
1898 if test -d .deps; then
1899   DEPDIR=.deps
1900 else
1901   # MS-DOS does not allow filenames that begin with a dot.
1902   DEPDIR=_deps
1903 fi
1904 rmdir .deps 2>/dev/null
1905
1906
1907 ac_config_commands="$ac_config_commands depfiles"
1908
1909
1910 am_make=${MAKE-make}
1911 cat > confinc << 'END'
1912 doit:
1913         @echo done
1914 END
1915 # If we don't find an include directive, just comment out the code.
1916 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1917 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1918 am__include="#"
1919 am__quote=
1920 _am_result=none
1921 # First try GNU make style include.
1922 echo "include confinc" > confmf
1923 # We grep out `Entering directory' and `Leaving directory'
1924 # messages which can occur if `w' ends up in MAKEFLAGS.
1925 # In particular we don't look at `^make:' because GNU make might
1926 # be invoked under some other name (usually "gmake"), in which
1927 # case it prints its new name instead of `make'.
1928 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1929    am__include=include
1930    am__quote=
1931    _am_result=GNU
1932 fi
1933 # Now try BSD make style include.
1934 if test "$am__include" = "#"; then
1935    echo '.include "confinc"' > confmf
1936    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1937       am__include=.include
1938       am__quote="\""
1939       _am_result=BSD
1940    fi
1941 fi
1942
1943
1944 echo "$as_me:$LINENO: result: $_am_result" >&5
1945 echo "${ECHO_T}$_am_result" >&6
1946 rm -f confinc confmf
1947
1948 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1949 if test "${enable_dependency_tracking+set}" = set; then
1950   enableval="$enable_dependency_tracking"
1951
1952 fi;
1953 if test "x$enable_dependency_tracking" != xno; then
1954   am_depcomp="$ac_aux_dir/depcomp"
1955   AMDEPBACKSLASH='\'
1956 fi
1957
1958
1959 if test "x$enable_dependency_tracking" != xno; then
1960   AMDEP_TRUE=
1961   AMDEP_FALSE='#'
1962 else
1963   AMDEP_TRUE='#'
1964   AMDEP_FALSE=
1965 fi
1966
1967
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1976 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$CC"; then
1983   ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995   fi
1996 done
1997 done
1998
1999 fi
2000 fi
2001 CC=$ac_cv_prog_CC
2002 if test -n "$CC"; then
2003   echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2005 else
2006   echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010 fi
2011 if test -z "$ac_cv_prog_CC"; then
2012   ac_ct_CC=$CC
2013   # Extract the first word of "gcc", so it can be a program name with args.
2014 set dummy gcc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test -n "$ac_ct_CC"; then
2021   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028   for ac_exec_ext in '' $ac_executable_extensions; do
2029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030     ac_cv_prog_ac_ct_CC="gcc"
2031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032     break 2
2033   fi
2034 done
2035 done
2036
2037 fi
2038 fi
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042 echo "${ECHO_T}$ac_ct_CC" >&6
2043 else
2044   echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048   CC=$ac_ct_CC
2049 else
2050   CC="$ac_cv_prog_CC"
2051 fi
2052
2053 if test -z "$CC"; then
2054   if test -n "$ac_tool_prefix"; then
2055   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056 set dummy ${ac_tool_prefix}cc; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_CC+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   if test -n "$CC"; then
2063   ac_cv_prog_CC="$CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   for ac_exec_ext in '' $ac_executable_extensions; do
2071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072     ac_cv_prog_CC="${ac_tool_prefix}cc"
2073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074     break 2
2075   fi
2076 done
2077 done
2078
2079 fi
2080 fi
2081 CC=$ac_cv_prog_CC
2082 if test -n "$CC"; then
2083   echo "$as_me:$LINENO: result: $CC" >&5
2084 echo "${ECHO_T}$CC" >&6
2085 else
2086   echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2088 fi
2089
2090 fi
2091 if test -z "$ac_cv_prog_CC"; then
2092   ac_ct_CC=$CC
2093   # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2098   echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100   if test -n "$ac_ct_CC"; then
2101   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110     ac_cv_prog_ac_ct_CC="cc"
2111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112     break 2
2113   fi
2114 done
2115 done
2116
2117 fi
2118 fi
2119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2120 if test -n "$ac_ct_CC"; then
2121   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2122 echo "${ECHO_T}$ac_ct_CC" >&6
2123 else
2124   echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2126 fi
2127
2128   CC=$ac_ct_CC
2129 else
2130   CC="$ac_cv_prog_CC"
2131 fi
2132
2133 fi
2134 if test -z "$CC"; then
2135   # Extract the first word of "cc", so it can be a program name with args.
2136 set dummy cc; ac_word=$2
2137 echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   if test -n "$CC"; then
2143   ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else
2145   ac_prog_rejected=no
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151   for ac_exec_ext in '' $ac_executable_extensions; do
2152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2154        ac_prog_rejected=yes
2155        continue
2156      fi
2157     ac_cv_prog_CC="cc"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163
2164 if test $ac_prog_rejected = yes; then
2165   # We found a bogon in the path, so make sure we never use it.
2166   set dummy $ac_cv_prog_CC
2167   shift
2168   if test $# != 0; then
2169     # We chose a different compiler from the bogus one.
2170     # However, it has the same basename, so the bogon will be chosen
2171     # first if we set CC to just the basename; use the full file name.
2172     shift
2173     set dummy "$as_dir/$ac_word" ${1+"$@"}
2174     shift
2175     ac_cv_prog_CC="$@"
2176   fi
2177 fi
2178 fi
2179 fi
2180 CC=$ac_cv_prog_CC
2181 if test -n "$CC"; then
2182   echo "$as_me:$LINENO: result: $CC" >&5
2183 echo "${ECHO_T}$CC" >&6
2184 else
2185   echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6
2187 fi
2188
2189 fi
2190 if test -z "$CC"; then
2191   if test -n "$ac_tool_prefix"; then
2192   for ac_prog in cl
2193   do
2194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$CC"; then
2202   ac_cv_prog_CC="$CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217
2218 fi
2219 fi
2220 CC=$ac_cv_prog_CC
2221 if test -n "$CC"; then
2222   echo "$as_me:$LINENO: result: $CC" >&5
2223 echo "${ECHO_T}$CC" >&6
2224 else
2225   echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229     test -n "$CC" && break
2230   done
2231 fi
2232 if test -z "$CC"; then
2233   ac_ct_CC=$CC
2234   for ac_prog in cl
2235 do
2236   # Extract the first word of "$ac_prog", so it can be a program name with args.
2237 set dummy $ac_prog; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   if test -n "$ac_ct_CC"; then
2244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249   IFS=$as_save_IFS
2250   test -z "$as_dir" && as_dir=.
2251   for ac_exec_ext in '' $ac_executable_extensions; do
2252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253     ac_cv_prog_ac_ct_CC="$ac_prog"
2254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255     break 2
2256   fi
2257 done
2258 done
2259
2260 fi
2261 fi
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2266 else
2267   echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2269 fi
2270
2271   test -n "$ac_ct_CC" && break
2272 done
2273
2274   CC=$ac_ct_CC
2275 fi
2276
2277 fi
2278
2279
2280 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2281 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2282    { (exit 1); exit 1; }; }
2283
2284 # Provide some information about the compiler.
2285 echo "$as_me:$LINENO:" \
2286      "checking for C compiler version" >&5
2287 ac_compiler=`set X $ac_compile; echo $2`
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2289   (eval $ac_compiler --version </dev/null >&5) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }
2293 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2294   (eval $ac_compiler -v </dev/null >&5) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }
2298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2299   (eval $ac_compiler -V </dev/null >&5) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }
2303
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #line $LINENO "configure"
2306 #include "confdefs.h"
2307
2308 #ifdef F77_DUMMY_MAIN
2309 #  ifdef __cplusplus
2310      extern "C"
2311 #  endif
2312    int F77_DUMMY_MAIN() { return 1; }
2313 #endif
2314 int
2315 main ()
2316 {
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 ac_clean_files_save=$ac_clean_files
2323 ac_clean_files="$ac_clean_files a.out a.exe"
2324 # Try to create an executable without -o first, disregard a.out.
2325 # It will help us diagnose broken compilers, and finding out an intuition
2326 # of exeext.
2327 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2328 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2329 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2330 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2331   (eval $ac_link_default) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; then
2335   # Find the output, starting from the most likely.  This scheme is
2336 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2337 # resort.
2338
2339 # Be careful to initialize this variable, since it used to be cached.
2340 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2341 ac_cv_exeext=
2342 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2343                 ls a.out conftest 2>/dev/null;
2344                 ls a.* conftest.* 2>/dev/null`; do
2345   case $ac_file in
2346     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2347     a.out ) # We found the default executable, but exeext='' is most
2348             # certainly right.
2349             break;;
2350     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2351           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2352           export ac_cv_exeext
2353           break;;
2354     * ) break;;
2355   esac
2356 done
2357 else
2358   echo "$as_me: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2360 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2361 echo "$as_me: error: C compiler cannot create executables" >&2;}
2362    { (exit 77); exit 77; }; }
2363 fi
2364
2365 ac_exeext=$ac_cv_exeext
2366 echo "$as_me:$LINENO: result: $ac_file" >&5
2367 echo "${ECHO_T}$ac_file" >&6
2368
2369 # Check the compiler produces executables we can run.  If not, either
2370 # the compiler is broken, or we cross compile.
2371 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2372 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2373 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2374 # If not cross compiling, check that we can run a simple program.
2375 if test "$cross_compiling" != yes; then
2376   if { ac_try='./$ac_file'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; }; then
2382     cross_compiling=no
2383   else
2384     if test "$cross_compiling" = maybe; then
2385         cross_compiling=yes
2386     else
2387         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'." >&5
2389 echo "$as_me: error: cannot run C compiled programs.
2390 If you meant to cross compile, use \`--host'." >&2;}
2391    { (exit 1); exit 1; }; }
2392     fi
2393   fi
2394 fi
2395 echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6
2397
2398 rm -f a.out a.exe conftest$ac_cv_exeext
2399 ac_clean_files=$ac_clean_files_save
2400 # Check the compiler produces executables we can run.  If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2404 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2405 echo "${ECHO_T}$cross_compiling" >&6
2406
2407 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2410   (eval $ac_link) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; then
2414   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2415 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2416 # work properly (i.e., refer to `conftest.exe'), while it won't with
2417 # `rm'.
2418 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2419   case $ac_file in
2420     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2421     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422           export ac_cv_exeext
2423           break;;
2424     * ) break;;
2425   esac
2426 done
2427 else
2428   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2429 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2430    { (exit 1); exit 1; }; }
2431 fi
2432
2433 rm -f conftest$ac_cv_exeext
2434 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2435 echo "${ECHO_T}$ac_cv_exeext" >&6
2436
2437 rm -f conftest.$ac_ext
2438 EXEEXT=$ac_cv_exeext
2439 ac_exeext=$EXEEXT
2440 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2441 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2442 if test "${ac_cv_objext+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2447 #include "confdefs.h"
2448
2449 #ifdef F77_DUMMY_MAIN
2450 #  ifdef __cplusplus
2451      extern "C"
2452 #  endif
2453    int F77_DUMMY_MAIN() { return 1; }
2454 #endif
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 rm -f conftest.o conftest.obj
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465   (eval $ac_compile) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2470   case $ac_file in
2471     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2472     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2473        break;;
2474   esac
2475 done
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2480 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2481    { (exit 1); exit 1; }; }
2482 fi
2483
2484 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2485 fi
2486 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2487 echo "${ECHO_T}$ac_cv_objext" >&6
2488 OBJEXT=$ac_cv_objext
2489 ac_objext=$OBJEXT
2490 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2491 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2492 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   cat >conftest.$ac_ext <<_ACEOF
2496 #line $LINENO "configure"
2497 #include "confdefs.h"
2498
2499 #ifdef F77_DUMMY_MAIN
2500 #  ifdef __cplusplus
2501      extern "C"
2502 #  endif
2503    int F77_DUMMY_MAIN() { return 1; }
2504 #endif
2505 int
2506 main ()
2507 {
2508 #ifndef __GNUC__
2509        choke me
2510 #endif
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518   (eval $ac_compile) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -s conftest.$ac_objext'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   ac_compiler_gnu=yes
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 ac_compiler_gnu=no
2533 fi
2534 rm -f conftest.$ac_objext conftest.$ac_ext
2535 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2536
2537 fi
2538 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2539 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2540 GCC=`test $ac_compiler_gnu = yes && echo yes`
2541 ac_test_CFLAGS=${CFLAGS+set}
2542 ac_save_CFLAGS=$CFLAGS
2543 CFLAGS="-g"
2544 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2545 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2546 if test "${ac_cv_prog_cc_g+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   cat >conftest.$ac_ext <<_ACEOF
2550 #line $LINENO "configure"
2551 #include "confdefs.h"
2552
2553 #ifdef F77_DUMMY_MAIN
2554 #  ifdef __cplusplus
2555      extern "C"
2556 #  endif
2557    int F77_DUMMY_MAIN() { return 1; }
2558 #endif
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575   (eval $ac_try) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   ac_cv_prog_cc_g=yes
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 ac_cv_prog_cc_g=no
2584 fi
2585 rm -f conftest.$ac_objext conftest.$ac_ext
2586 fi
2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2589 if test "$ac_test_CFLAGS" = set; then
2590   CFLAGS=$ac_save_CFLAGS
2591 elif test $ac_cv_prog_cc_g = yes; then
2592   if test "$GCC" = yes; then
2593     CFLAGS="-g -O2"
2594   else
2595     CFLAGS="-g"
2596   fi
2597 else
2598   if test "$GCC" = yes; then
2599     CFLAGS="-O2"
2600   else
2601     CFLAGS=
2602   fi
2603 fi
2604 # Some people use a C++ compiler to compile C.  Since we use `exit',
2605 # in C++ we need to declare it.  In case someone uses the same compiler
2606 # for both compiling C and C++ we need to have the C++ compiler decide
2607 # the declaration of exit, since it's the most demanding environment.
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #ifndef __cplusplus
2610   choke me
2611 #endif
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -s conftest.$ac_objext'
2620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621   (eval $ac_try) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   for ac_declaration in \
2626    ''\
2627    '#include <stdlib.h>' \
2628    'extern "C" void std::exit (int) throw (); using std::exit;' \
2629    'extern "C" void std::exit (int); using std::exit;' \
2630    'extern "C" void exit (int) throw ();' \
2631    'extern "C" void exit (int);' \
2632    'void exit (int);'
2633 do
2634   cat >conftest.$ac_ext <<_ACEOF
2635 #line $LINENO "configure"
2636 #include "confdefs.h"
2637 #include <stdlib.h>
2638 $ac_declaration
2639 #ifdef F77_DUMMY_MAIN
2640 #  ifdef __cplusplus
2641      extern "C"
2642 #  endif
2643    int F77_DUMMY_MAIN() { return 1; }
2644 #endif
2645 int
2646 main ()
2647 {
2648 exit (42);
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } &&
2659          { ac_try='test -s conftest.$ac_objext'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665   :
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 continue
2670 fi
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2672   cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 #include "confdefs.h"
2675 $ac_declaration
2676 #ifdef F77_DUMMY_MAIN
2677 #  ifdef __cplusplus
2678      extern "C"
2679 #  endif
2680    int F77_DUMMY_MAIN() { return 1; }
2681 #endif
2682 int
2683 main ()
2684 {
2685 exit (42);
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   break
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 fi
2707 rm -f conftest.$ac_objext conftest.$ac_ext
2708 done
2709 rm -f conftest*
2710 if test -n "$ac_declaration"; then
2711   echo '#ifdef __cplusplus' >>confdefs.h
2712   echo $ac_declaration      >>confdefs.h
2713   echo '#endif'             >>confdefs.h
2714 fi
2715
2716 else
2717   echo "$as_me: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 fi
2720 rm -f conftest.$ac_objext conftest.$ac_ext
2721 ac_ext=c
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727 depcc="$CC"   am_compiler_list=
2728
2729 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2730 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2731 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2735   # We make a subdir and do the tests there.  Otherwise we can end up
2736   # making bogus files that we don't know about and never remove.  For
2737   # instance it was reported that on HP-UX the gcc test will end up
2738   # making a dummy file named `D' -- because `-MD' means `put the output
2739   # in D'.
2740   mkdir conftest.dir
2741   # Copy depcomp to subdir because otherwise we won't find it if we're
2742   # using a relative directory.
2743   cp "$am_depcomp" conftest.dir
2744   cd conftest.dir
2745
2746   am_cv_CC_dependencies_compiler_type=none
2747   if test "$am_compiler_list" = ""; then
2748      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2749   fi
2750   for depmode in $am_compiler_list; do
2751     # We need to recreate these files for each test, as the compiler may
2752     # overwrite some of them when testing with obscure command lines.
2753     # This happens at least with the AIX C compiler.
2754     echo '#include "conftest.h"' > conftest.c
2755     echo 'int i;' > conftest.h
2756     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2757
2758     case $depmode in
2759     nosideeffect)
2760       # after this tag, mechanisms are not by side-effect, so they'll
2761       # only be used when explicitly requested
2762       if test "x$enable_dependency_tracking" = xyes; then
2763         continue
2764       else
2765         break
2766       fi
2767       ;;
2768     none) break ;;
2769     esac
2770     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2771     # mode.  It turns out that the SunPro C++ compiler does not properly
2772     # handle `-M -o', and we need to detect this.
2773     if depmode=$depmode \
2774        source=conftest.c object=conftest.o \
2775        depfile=conftest.Po tmpdepfile=conftest.TPo \
2776        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2777        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2778        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2779       am_cv_CC_dependencies_compiler_type=$depmode
2780       break
2781     fi
2782   done
2783
2784   cd ..
2785   rm -rf conftest.dir
2786 else
2787   am_cv_CC_dependencies_compiler_type=none
2788 fi
2789
2790 fi
2791 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2792 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2793 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2794
2795
2796 # Find the correct PATH separator.  Usually this is `:', but
2797 # DJGPP uses `;' like DOS.
2798 if test "X${PATH_SEPARATOR+set}" != Xset; then
2799   UNAME=${UNAME-`uname 2>/dev/null`}
2800   case X$UNAME in
2801     *-DOS) lt_cv_sys_path_separator=';' ;;
2802     *)     lt_cv_sys_path_separator=':' ;;
2803   esac
2804   PATH_SEPARATOR=$lt_cv_sys_path_separator
2805 fi
2806
2807
2808 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2809 if test "${with_gnu_ld+set}" = set; then
2810   withval="$with_gnu_ld"
2811   test "$withval" = no || with_gnu_ld=yes
2812 else
2813   with_gnu_ld=no
2814 fi;
2815 ac_prog=ld
2816 if test "$GCC" = yes; then
2817   # Check if gcc -print-prog-name=ld gives a path.
2818   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2819 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2820   case $host in
2821   *-*-mingw*)
2822     # gcc leaves a trailing carriage return which upsets mingw
2823     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2824   *)
2825     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2826   esac
2827   case $ac_prog in
2828     # Accept absolute paths.
2829     [\\/]* | [A-Za-z]:[\\/]*)
2830       re_direlt='/[^/][^/]*/\.\./'
2831       # Canonicalize the path of ld
2832       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2833       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2834         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2835       done
2836       test -z "$LD" && LD="$ac_prog"
2837       ;;
2838   "")
2839     # If it fails, then pretend we aren't using GCC.
2840     ac_prog=ld
2841     ;;
2842   *)
2843     # If it is relative, then search for the first ld in PATH.
2844     with_gnu_ld=unknown
2845     ;;
2846   esac
2847 elif test "$with_gnu_ld" = yes; then
2848   echo "$as_me:$LINENO: checking for GNU ld" >&5
2849 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2850 else
2851   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2852 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2853 fi
2854 if test "${lt_cv_path_LD+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   if test -z "$LD"; then
2858   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2859   for ac_dir in $PATH; do
2860     test -z "$ac_dir" && ac_dir=.
2861     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2862       lt_cv_path_LD="$ac_dir/$ac_prog"
2863       # Check to see if the program is GNU ld.  I'd rather use --version,
2864       # but apparently some GNU ld's only accept -v.
2865       # Break only if it was the GNU/non-GNU ld that we prefer.
2866       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2867         test "$with_gnu_ld" != no && break
2868       else
2869         test "$with_gnu_ld" != yes && break
2870       fi
2871     fi
2872   done
2873   IFS="$ac_save_ifs"
2874 else
2875   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2876 fi
2877 fi
2878
2879 LD="$lt_cv_path_LD"
2880 if test -n "$LD"; then
2881   echo "$as_me:$LINENO: result: $LD" >&5
2882 echo "${ECHO_T}$LD" >&6
2883 else
2884   echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2886 fi
2887 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2888 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2889    { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2891 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2892 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2893   echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2896 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2897   lt_cv_prog_gnu_ld=yes
2898 else
2899   lt_cv_prog_gnu_ld=no
2900 fi
2901 fi
2902 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2903 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2904 with_gnu_ld=$lt_cv_prog_gnu_ld
2905
2906
2907 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2908 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2909 if test "${lt_cv_ld_reload_flag+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   lt_cv_ld_reload_flag='-r'
2913 fi
2914 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2915 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2916 reload_flag=$lt_cv_ld_reload_flag
2917 test -n "$reload_flag" && reload_flag=" $reload_flag"
2918
2919 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2920 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2921 if test "${lt_cv_path_NM+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924   if test -n "$NM"; then
2925   # Let the user override the test.
2926   lt_cv_path_NM="$NM"
2927 else
2928   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2929   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2930     test -z "$ac_dir" && ac_dir=.
2931     tmp_nm=$ac_dir/${ac_tool_prefix}nm
2932     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2933       # Check to see if the nm accepts a BSD-compat flag.
2934       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2935       #   nm: unknown option "B" ignored
2936       # Tru64's nm complains that /dev/null is an invalid object file
2937       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2938         lt_cv_path_NM="$tmp_nm -B"
2939         break
2940       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2941         lt_cv_path_NM="$tmp_nm -p"
2942         break
2943       else
2944         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2945         continue # so that we can try to find one that supports BSD flags
2946       fi
2947     fi
2948   done
2949   IFS="$ac_save_ifs"
2950   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2951 fi
2952 fi
2953
2954 NM="$lt_cv_path_NM"
2955 echo "$as_me:$LINENO: result: $NM" >&5
2956 echo "${ECHO_T}$NM" >&6
2957
2958 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2959 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2960 LN_S=$as_ln_s
2961 if test "$LN_S" = "ln -s"; then
2962   echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2964 else
2965   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2966 echo "${ECHO_T}no, using $LN_S" >&6
2967 fi
2968
2969 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2970 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2971 if test "${lt_cv_deplibs_check_method+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   lt_cv_file_magic_cmd='$MAGIC_CMD'
2975 lt_cv_file_magic_test_file=
2976 lt_cv_deplibs_check_method='unknown'
2977 # Need to set the preceding variable on all platforms that support
2978 # interlibrary dependencies.
2979 # 'none' -- dependencies not supported.
2980 # `unknown' -- same as none, but documents that we really don't know.
2981 # 'pass_all' -- all dependencies passed with no checks.
2982 # 'test_compile' -- check by making test program.
2983 # 'file_magic [[regex]]' -- check by looking for files in library path
2984 # which responds to the $file_magic_cmd with a given egrep regex.
2985 # If you have `file' or equivalent on your system and you're not sure
2986 # whether `pass_all' will *always* work, you probably want this one.
2987
2988 case $host_os in
2989 aix4* | aix5*)
2990   lt_cv_deplibs_check_method=pass_all
2991   ;;
2992
2993 beos*)
2994   lt_cv_deplibs_check_method=pass_all
2995   ;;
2996
2997 bsdi4*)
2998   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2999   lt_cv_file_magic_cmd='/usr/bin/file -L'
3000   lt_cv_file_magic_test_file=/shlib/libc.so
3001   ;;
3002
3003 cygwin* | mingw* | pw32*)
3004   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3005   lt_cv_file_magic_cmd='$OBJDUMP -f'
3006   ;;
3007
3008 darwin* | rhapsody*)
3009   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3010   lt_cv_file_magic_cmd='/usr/bin/file -L'
3011   case "$host_os" in
3012   rhapsody* | darwin1.[012])
3013     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3014     ;;
3015   *) # Darwin 1.3 on
3016     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3017     ;;
3018   esac
3019   ;;
3020
3021 freebsd*)
3022   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3023     case $host_cpu in
3024     i*86 )
3025       # Not sure whether the presence of OpenBSD here was a mistake.
3026       # Let's accept both of them until this is cleared up.
3027       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3028       lt_cv_file_magic_cmd=/usr/bin/file
3029       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3030       ;;
3031     esac
3032   else
3033     lt_cv_deplibs_check_method=pass_all
3034   fi
3035   ;;
3036
3037 gnu*)
3038   lt_cv_deplibs_check_method=pass_all
3039   ;;
3040
3041 hpux10.20*|hpux11*)
3042   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3043   lt_cv_file_magic_cmd=/usr/bin/file
3044   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3045   ;;
3046
3047 irix5* | irix6* | nonstopux*)
3048   case $host_os in
3049   irix5* | nonstopux*)
3050     # this will be overridden with pass_all, but let us keep it just in case
3051     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3052     ;;
3053   *)
3054     case $LD in
3055     *-32|*"-32 ") libmagic=32-bit;;
3056     *-n32|*"-n32 ") libmagic=N32;;
3057     *-64|*"-64 ") libmagic=64-bit;;
3058     *) libmagic=never-match;;
3059     esac
3060     # this will be overridden with pass_all, but let us keep it just in case
3061     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3062     ;;
3063   esac
3064   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3065   lt_cv_deplibs_check_method=pass_all
3066   ;;
3067
3068 # This must be Linux ELF.
3069 linux-gnu*)
3070   lt_cv_deplibs_check_method=pass_all
3071   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3072   ;;
3073
3074 netbsd*)
3075   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3076     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3077   else
3078     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3079   fi
3080   ;;
3081
3082 newos6*)
3083   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3084   lt_cv_file_magic_cmd=/usr/bin/file
3085   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3086   ;;
3087
3088 openbsd*)
3089   lt_cv_file_magic_cmd=/usr/bin/file
3090   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3091   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3092     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3093   else
3094     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3095   fi
3096   ;;
3097
3098 osf3* | osf4* | osf5*)
3099   # this will be overridden with pass_all, but let us keep it just in case
3100   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3101   lt_cv_file_magic_test_file=/shlib/libc.so
3102   lt_cv_deplibs_check_method=pass_all
3103   ;;
3104
3105 sco3.2v5*)
3106   lt_cv_deplibs_check_method=pass_all
3107   ;;
3108
3109 solaris*)
3110   lt_cv_deplibs_check_method=pass_all
3111   lt_cv_file_magic_test_file=/lib/libc.so
3112   ;;
3113
3114 sysv5uw[78]* | sysv4*uw2*)
3115   lt_cv_deplibs_check_method=pass_all
3116   ;;
3117
3118 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3119   case $host_vendor in
3120   motorola)
3121     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]'
3122     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3123     ;;
3124   ncr)
3125     lt_cv_deplibs_check_method=pass_all
3126     ;;
3127   sequent)
3128     lt_cv_file_magic_cmd='/bin/file'
3129     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3130     ;;
3131   sni)
3132     lt_cv_file_magic_cmd='/bin/file'
3133     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3134     lt_cv_file_magic_test_file=/lib/libc.so
3135     ;;
3136   esac
3137   ;;
3138 esac
3139
3140 fi
3141 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3142 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3143 file_magic_cmd=$lt_cv_file_magic_cmd
3144 deplibs_check_method=$lt_cv_deplibs_check_method
3145
3146
3147
3148
3149
3150
3151
3152
3153 # Check for command to grab the raw symbol name followed by C symbol from nm.
3154 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3155 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3156 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159
3160 # These are sane defaults that work on at least a few old systems.
3161 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3162
3163 # Character class describing NM global symbol codes.
3164 symcode='[BCDEGRST]'
3165
3166 # Regexp to match symbols that can be accessed directly from C.
3167 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3168
3169 # Transform the above into a raw symbol and a C symbol.
3170 symxfrm='\1 \2\3 \3'
3171
3172 # Transform an extracted symbol line into a proper C declaration
3173 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3174
3175 # Transform an extracted symbol line into symbol name and symbol address
3176 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'"
3177
3178 # Define system-specific variables.
3179 case $host_os in
3180 aix*)
3181   symcode='[BCDT]'
3182   ;;
3183 cygwin* | mingw* | pw32*)
3184   symcode='[ABCDGISTW]'
3185   ;;
3186 hpux*) # Its linker distinguishes data from code symbols
3187   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3188   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'"
3189   ;;
3190 irix* | nonstopux*)
3191   symcode='[BCDEGRST]'
3192   ;;
3193 solaris* | sysv5*)
3194   symcode='[BDT]'
3195   ;;
3196 sysv4)
3197   symcode='[DFNSTU]'
3198   ;;
3199 esac
3200
3201 # Handle CRLF in mingw tool chain
3202 opt_cr=
3203 case $host_os in
3204 mingw*)
3205   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3206   ;;
3207 esac
3208
3209 # If we're using GNU nm, then use its standard symbol codes.
3210 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3211   symcode='[ABCDGISTW]'
3212 fi
3213
3214 # Try without a prefix undercore, then with it.
3215 for ac_symprfx in "" "_"; do
3216
3217   # Write the raw and C identifiers.
3218 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3219
3220   # Check to see that the pipe works correctly.
3221   pipe_works=no
3222   rm -f conftest*
3223   cat > conftest.$ac_ext <<EOF
3224 #ifdef __cplusplus
3225 extern "C" {
3226 #endif
3227 char nm_test_var;
3228 void nm_test_func(){}
3229 #ifdef __cplusplus
3230 }
3231 #endif
3232 int main(){nm_test_var='a';nm_test_func();return(0);}
3233 EOF
3234
3235   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236   (eval $ac_compile) 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; then
3240     # Now try to grab the symbols.
3241     nlist=conftest.nm
3242     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3243   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } && test -s "$nlist"; then
3247       # Try sorting and uniquifying the output.
3248       if sort "$nlist" | uniq > "$nlist"T; then
3249         mv -f "$nlist"T "$nlist"
3250       else
3251         rm -f "$nlist"T
3252       fi
3253
3254       # Make sure that we snagged all the symbols we need.
3255       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3256         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3257           cat <<EOF > conftest.$ac_ext
3258 #ifdef __cplusplus
3259 extern "C" {
3260 #endif
3261
3262 EOF
3263           # Now generate the symbol file.
3264           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3265
3266           cat <<EOF >> conftest.$ac_ext
3267 #if defined (__STDC__) && __STDC__
3268 # define lt_ptr void *
3269 #else
3270 # define lt_ptr char *
3271 # define const
3272 #endif
3273
3274 /* The mapping between symbol names and symbols. */
3275 const struct {
3276   const char *name;
3277   lt_ptr address;
3278 }
3279 lt_preloaded_symbols[] =
3280 {
3281 EOF
3282           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3283           cat <<\EOF >> conftest.$ac_ext
3284   {0, (lt_ptr) 0}
3285 };
3286
3287 #ifdef __cplusplus
3288 }
3289 #endif
3290 EOF
3291           # Now try linking the two files.
3292           mv conftest.$ac_objext conftstm.$ac_objext
3293           save_LIBS="$LIBS"
3294           save_CFLAGS="$CFLAGS"
3295           LIBS="conftstm.$ac_objext"
3296           CFLAGS="$CFLAGS$no_builtin_flag"
3297           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298   (eval $ac_link) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } && test -s conftest; then
3302             pipe_works=yes
3303           fi
3304           LIBS="$save_LIBS"
3305           CFLAGS="$save_CFLAGS"
3306         else
3307           echo "cannot find nm_test_func in $nlist" >&5
3308         fi
3309       else
3310         echo "cannot find nm_test_var in $nlist" >&5
3311       fi
3312     else
3313       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3314     fi
3315   else
3316     echo "$progname: failed program was:" >&5
3317     cat conftest.$ac_ext >&5
3318   fi
3319   rm -f conftest* conftst*
3320
3321   # Do not use the global_symbol_pipe unless it works.
3322   if test "$pipe_works" = yes; then
3323     break
3324   else
3325     lt_cv_sys_global_symbol_pipe=
3326   fi
3327 done
3328
3329 fi
3330
3331 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3332 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3333   global_symbol_to_cdecl=
3334   global_symbol_to_c_name_address=
3335 else
3336   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3337   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3338 fi
3339 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3340 then
3341   echo "$as_me:$LINENO: result: failed" >&5
3342 echo "${ECHO_T}failed" >&6
3343 else
3344   echo "$as_me:$LINENO: result: ok" >&5
3345 echo "${ECHO_T}ok" >&6
3346 fi
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3357   CPP=
3358 fi
3359 if test -z "$CPP"; then
3360   if test "${ac_cv_prog_CPP+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363       # Double quotes because CPP needs to be expanded
3364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3365     do
3366       ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # On the NeXT, cc -E runs the code through the compiler's parser,
3372   # not just through cpp. "Syntax error" is here to catch this case.
3373   cat >conftest.$ac_ext <<_ACEOF
3374 #line $LINENO "configure"
3375 #include "confdefs.h"
3376 #include <assert.h>
3377                      Syntax error
3378 _ACEOF
3379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3381   ac_status=$?
3382   egrep -v '^ *\+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } >/dev/null; then
3387   if test -s conftest.err; then
3388     ac_cpp_err=$ac_c_preproc_warn_flag
3389   else
3390     ac_cpp_err=
3391   fi
3392 else
3393   ac_cpp_err=yes
3394 fi
3395 if test -z "$ac_cpp_err"; then
3396   :
3397 else
3398   echo "$as_me: failed program was:" >&5
3399   cat conftest.$ac_ext >&5
3400   # Broken: fails on valid input.
3401 continue
3402 fi
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether non-existent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 #line $LINENO "configure"
3409 #include "confdefs.h"
3410 #include <ac_nonexistent.h>
3411 _ACEOF
3412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3414   ac_status=$?
3415   egrep -v '^ *\+' conftest.er1 >conftest.err
3416   rm -f conftest.er1
3417   cat conftest.err >&5
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } >/dev/null; then
3420   if test -s conftest.err; then
3421     ac_cpp_err=$ac_c_preproc_warn_flag
3422   else
3423     ac_cpp_err=
3424   fi
3425 else
3426   ac_cpp_err=yes
3427 fi
3428 if test -z "$ac_cpp_err"; then
3429   # Broken: success on invalid input.
3430 continue
3431 else
3432   echo "$as_me: failed program was:" >&5
3433   cat conftest.$ac_ext >&5
3434   # Passes both tests.
3435 ac_preproc_ok=:
3436 break
3437 fi
3438 rm -f conftest.err conftest.$ac_ext
3439
3440 done
3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442 rm -f conftest.err conftest.$ac_ext
3443 if $ac_preproc_ok; then
3444   break
3445 fi
3446
3447     done
3448     ac_cv_prog_CPP=$CPP
3449
3450 fi
3451   CPP=$ac_cv_prog_CPP
3452 else
3453   ac_cv_prog_CPP=$CPP
3454 fi
3455 echo "$as_me:$LINENO: result: $CPP" >&5
3456 echo "${ECHO_T}$CPP" >&6
3457 ac_preproc_ok=false
3458 for ac_c_preproc_warn_flag in '' yes
3459 do
3460   # Use a header file that comes with gcc, so configuring glibc
3461   # with a fresh cross-compiler works.
3462   # On the NeXT, cc -E runs the code through the compiler's parser,
3463   # not just through cpp. "Syntax error" is here to catch this case.
3464   cat >conftest.$ac_ext <<_ACEOF
3465 #line $LINENO "configure"
3466 #include "confdefs.h"
3467 #include <assert.h>
3468                      Syntax error
3469 _ACEOF
3470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3472   ac_status=$?
3473   egrep -v '^ *\+' conftest.er1 >conftest.err
3474   rm -f conftest.er1
3475   cat conftest.err >&5
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } >/dev/null; then
3478   if test -s conftest.err; then
3479     ac_cpp_err=$ac_c_preproc_warn_flag
3480   else
3481     ac_cpp_err=
3482   fi
3483 else
3484   ac_cpp_err=yes
3485 fi
3486 if test -z "$ac_cpp_err"; then
3487   :
3488 else
3489   echo "$as_me: failed program was:" >&5
3490   cat conftest.$ac_ext >&5
3491   # Broken: fails on valid input.
3492 continue
3493 fi
3494 rm -f conftest.err conftest.$ac_ext
3495
3496   # OK, works on sane cases.  Now check whether non-existent headers
3497   # can be detected and how.
3498   cat >conftest.$ac_ext <<_ACEOF
3499 #line $LINENO "configure"
3500 #include "confdefs.h"
3501 #include <ac_nonexistent.h>
3502 _ACEOF
3503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3505   ac_status=$?
3506   egrep -v '^ *\+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } >/dev/null; then
3511   if test -s conftest.err; then
3512     ac_cpp_err=$ac_c_preproc_warn_flag
3513   else
3514     ac_cpp_err=
3515   fi
3516 else
3517   ac_cpp_err=yes
3518 fi
3519 if test -z "$ac_cpp_err"; then
3520   # Broken: success on invalid input.
3521 continue
3522 else
3523   echo "$as_me: failed program was:" >&5
3524   cat conftest.$ac_ext >&5
3525   # Passes both tests.
3526 ac_preproc_ok=:
3527 break
3528 fi
3529 rm -f conftest.err conftest.$ac_ext
3530
3531 done
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.err conftest.$ac_ext
3534 if $ac_preproc_ok; then
3535   :
3536 else
3537   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3538 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3539    { (exit 1); exit 1; }; }
3540 fi
3541
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548
3549 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3550 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3551 if test "${ac_cv_header_stdc+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   cat >conftest.$ac_ext <<_ACEOF
3555 #line $LINENO "configure"
3556 #include "confdefs.h"
3557 #include <stdlib.h>
3558 #include <stdarg.h>
3559 #include <string.h>
3560 #include <float.h>
3561
3562 _ACEOF
3563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3565   ac_status=$?
3566   egrep -v '^ *\+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } >/dev/null; then
3571   if test -s conftest.err; then
3572     ac_cpp_err=$ac_c_preproc_warn_flag
3573   else
3574     ac_cpp_err=
3575   fi
3576 else
3577   ac_cpp_err=yes
3578 fi
3579 if test -z "$ac_cpp_err"; then
3580   ac_cv_header_stdc=yes
3581 else
3582   echo "$as_me: failed program was:" >&5
3583   cat conftest.$ac_ext >&5
3584   ac_cv_header_stdc=no
3585 fi
3586 rm -f conftest.err conftest.$ac_ext
3587
3588 if test $ac_cv_header_stdc = yes; then
3589   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3590   cat >conftest.$ac_ext <<_ACEOF
3591 #line $LINENO "configure"
3592 #include "confdefs.h"
3593 #include <string.h>
3594
3595 _ACEOF
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597   egrep "memchr" >/dev/null 2>&1; then
3598   :
3599 else
3600   ac_cv_header_stdc=no
3601 fi
3602 rm -f conftest*
3603
3604 fi
3605
3606 if test $ac_cv_header_stdc = yes; then
3607   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3608   cat >conftest.$ac_ext <<_ACEOF
3609 #line $LINENO "configure"
3610 #include "confdefs.h"
3611 #include <stdlib.h>
3612
3613 _ACEOF
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615   egrep "free" >/dev/null 2>&1; then
3616   :
3617 else
3618   ac_cv_header_stdc=no
3619 fi
3620 rm -f conftest*
3621
3622 fi
3623
3624 if test $ac_cv_header_stdc = yes; then
3625   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3626   if test "$cross_compiling" = yes; then
3627   :
3628 else
3629   cat >conftest.$ac_ext <<_ACEOF
3630 #line $LINENO "configure"
3631 #include "confdefs.h"
3632 #include <ctype.h>
3633 #if ((' ' & 0x0FF) == 0x020)
3634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3636 #else
3637 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3638                      || ('j' <= (c) && (c) <= 'r') \
3639                      || ('s' <= (c) && (c) <= 'z'))
3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3641 #endif
3642
3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3644 int
3645 main ()
3646 {
3647   int i;
3648   for (i = 0; i < 256; i++)
3649     if (XOR (islower (i), ISLOWER (i))
3650         || toupper (i) != TOUPPER (i))
3651       exit(2);
3652   exit (0);
3653 }
3654 _ACEOF
3655 rm -f conftest$ac_exeext
3656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3657   (eval $ac_link) 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662   (eval $ac_try) 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; }; then
3666   :
3667 else
3668   echo "$as_me: program exited with status $ac_status" >&5
3669 echo "$as_me: failed program was:" >&5
3670 cat conftest.$ac_ext >&5
3671 ( exit $ac_status )
3672 ac_cv_header_stdc=no
3673 fi
3674 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3675 fi
3676 fi
3677 fi
3678 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3679 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3680 if test $ac_cv_header_stdc = yes; then
3681
3682 cat >>confdefs.h <<\_ACEOF
3683 #define STDC_HEADERS 1
3684 _ACEOF
3685
3686 fi
3687
3688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3699                   inttypes.h stdint.h unistd.h
3700 do
3701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3702 echo "$as_me:$LINENO: checking for $ac_header" >&5
3703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   cat >conftest.$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3709 #include "confdefs.h"
3710 $ac_includes_default
3711
3712 #include <$ac_header>
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716   (eval $ac_compile) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); } &&
3720          { ac_try='test -s conftest.$ac_objext'
3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722   (eval $ac_try) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726   eval "$as_ac_Header=yes"
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 eval "$as_ac_Header=no"
3731 fi
3732 rm -f conftest.$ac_objext conftest.$ac_ext
3733 fi
3734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3737   cat >>confdefs.h <<_ACEOF
3738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3739 _ACEOF
3740
3741 fi
3742
3743 done
3744
3745
3746
3747 for ac_header in dlfcn.h
3748 do
3749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3751   echo "$as_me:$LINENO: checking for $ac_header" >&5
3752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 fi
3756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3758 else
3759   # Is the header compilable?
3760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3764 #include "confdefs.h"
3765 $ac_includes_default
3766 #include <$ac_header>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770   (eval $ac_compile) 2>&5
3771   ac_status=$?
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } &&
3774          { ac_try='test -s conftest.$ac_objext'
3775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776   (eval $ac_try) 2>&5
3777   ac_status=$?
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); }; }; then
3780   ac_header_compiler=yes
3781 else
3782   echo "$as_me: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3784 ac_header_compiler=no
3785 fi
3786 rm -f conftest.$ac_objext conftest.$ac_ext
3787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3788 echo "${ECHO_T}$ac_header_compiler" >&6
3789
3790 # Is the header present?
3791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3793 cat >conftest.$ac_ext <<_ACEOF
3794 #line $LINENO "configure"
3795 #include "confdefs.h"
3796 #include <$ac_header>
3797 _ACEOF
3798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3800   ac_status=$?
3801   egrep -v '^ *\+' conftest.er1 >conftest.err
3802   rm -f conftest.er1
3803   cat conftest.err >&5
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } >/dev/null; then
3806   if test -s conftest.err; then
3807     ac_cpp_err=$ac_c_preproc_warn_flag
3808   else
3809     ac_cpp_err=
3810   fi
3811 else
3812   ac_cpp_err=yes
3813 fi
3814 if test -z "$ac_cpp_err"; then
3815   ac_header_preproc=yes
3816 else
3817   echo "$as_me: failed program was:" >&5
3818   cat conftest.$ac_ext >&5
3819   ac_header_preproc=no
3820 fi
3821 rm -f conftest.err conftest.$ac_ext
3822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3823 echo "${ECHO_T}$ac_header_preproc" >&6
3824
3825 # So?  What about this header?
3826 case $ac_header_compiler:$ac_header_preproc in
3827   yes:no )
3828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3832   no:yes )
3833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3835     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3839 esac
3840 echo "$as_me:$LINENO: checking for $ac_header" >&5
3841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   eval "$as_ac_Header=$ac_header_preproc"
3846 fi
3847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3849
3850 fi
3851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3852   cat >>confdefs.h <<_ACEOF
3853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3854 _ACEOF
3855
3856 fi
3857
3858 done
3859
3860
3861
3862
3863
3864 # Only perform the check for file, if the check method requires it
3865 case $deplibs_check_method in
3866 file_magic*)
3867   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3868     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3869 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3870 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   case $MAGIC_CMD in
3874   /*)
3875   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3876   ;;
3877   ?:/*)
3878   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3879   ;;
3880   *)
3881   ac_save_MAGIC_CMD="$MAGIC_CMD"
3882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3883   ac_dummy="/usr/bin:$PATH"
3884   for ac_dir in $ac_dummy; do
3885     test -z "$ac_dir" && ac_dir=.
3886     if test -f $ac_dir/${ac_tool_prefix}file; then
3887       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3888       if test -n "$file_magic_test_file"; then
3889         case $deplibs_check_method in
3890         "file_magic "*)
3891           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3892           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3893           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3894             egrep "$file_magic_regex" > /dev/null; then
3895             :
3896           else
3897             cat <<EOF 1>&2
3898
3899 *** Warning: the command libtool uses to detect shared libraries,
3900 *** $file_magic_cmd, produces output that libtool cannot recognize.
3901 *** The result is that libtool may fail to recognize shared libraries
3902 *** as such.  This will affect the creation of libtool libraries that
3903 *** depend on shared libraries, but programs linked with such libtool
3904 *** libraries will work regardless of this problem.  Nevertheless, you
3905 *** may want to report the problem to your system manager and/or to
3906 *** bug-libtool@gnu.org
3907
3908 EOF
3909           fi ;;
3910         esac
3911       fi
3912       break
3913     fi
3914   done
3915   IFS="$ac_save_ifs"
3916   MAGIC_CMD="$ac_save_MAGIC_CMD"
3917   ;;
3918 esac
3919 fi
3920
3921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3922 if test -n "$MAGIC_CMD"; then
3923   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3924 echo "${ECHO_T}$MAGIC_CMD" >&6
3925 else
3926   echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6
3928 fi
3929
3930 if test -z "$lt_cv_path_MAGIC_CMD"; then
3931   if test -n "$ac_tool_prefix"; then
3932     echo "$as_me:$LINENO: checking for file" >&5
3933 echo $ECHO_N "checking for file... $ECHO_C" >&6
3934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   case $MAGIC_CMD in
3938   /*)
3939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3940   ;;
3941   ?:/*)
3942   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3943   ;;
3944   *)
3945   ac_save_MAGIC_CMD="$MAGIC_CMD"
3946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3947   ac_dummy="/usr/bin:$PATH"
3948   for ac_dir in $ac_dummy; do
3949     test -z "$ac_dir" && ac_dir=.
3950     if test -f $ac_dir/file; then
3951       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3952       if test -n "$file_magic_test_file"; then
3953         case $deplibs_check_method in
3954         "file_magic "*)
3955           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3956           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3957           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3958             egrep "$file_magic_regex" > /dev/null; then
3959             :
3960           else
3961             cat <<EOF 1>&2
3962
3963 *** Warning: the command libtool uses to detect shared libraries,
3964 *** $file_magic_cmd, produces output that libtool cannot recognize.
3965 *** The result is that libtool may fail to recognize shared libraries
3966 *** as such.  This will affect the creation of libtool libraries that
3967 *** depend on shared libraries, but programs linked with such libtool
3968 *** libraries will work regardless of this problem.  Nevertheless, you
3969 *** may want to report the problem to your system manager and/or to
3970 *** bug-libtool@gnu.org
3971
3972 EOF
3973           fi ;;
3974         esac
3975       fi
3976       break
3977     fi
3978   done
3979   IFS="$ac_save_ifs"
3980   MAGIC_CMD="$ac_save_MAGIC_CMD"
3981   ;;
3982 esac
3983 fi
3984
3985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3986 if test -n "$MAGIC_CMD"; then
3987   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3988 echo "${ECHO_T}$MAGIC_CMD" >&6
3989 else
3990   echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992 fi
3993
3994   else
3995     MAGIC_CMD=:
3996   fi
3997 fi
3998
3999   fi
4000   ;;
4001 esac
4002
4003 if test -n "$ac_tool_prefix"; then
4004   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_RANLIB+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   if test -n "$RANLIB"; then
4012   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019   for ac_exec_ext in '' $ac_executable_extensions; do
4020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023     break 2
4024   fi
4025 done
4026 done
4027
4028 fi
4029 fi
4030 RANLIB=$ac_cv_prog_RANLIB
4031 if test -n "$RANLIB"; then
4032   echo "$as_me:$LINENO: result: $RANLIB" >&5
4033 echo "${ECHO_T}$RANLIB" >&6
4034 else
4035   echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4037 fi
4038
4039 fi
4040 if test -z "$ac_cv_prog_RANLIB"; then
4041   ac_ct_RANLIB=$RANLIB
4042   # Extract the first word of "ranlib", so it can be a program name with args.
4043 set dummy ranlib; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -n "$ac_ct_RANLIB"; then
4050   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_prog_ac_ct_RANLIB="ranlib"
4060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065
4066   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4067 fi
4068 fi
4069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4070 if test -n "$ac_ct_RANLIB"; then
4071   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4072 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4073 else
4074   echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4076 fi
4077
4078   RANLIB=$ac_ct_RANLIB
4079 else
4080   RANLIB="$ac_cv_prog_RANLIB"
4081 fi
4082
4083 if test -n "$ac_tool_prefix"; then
4084   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}strip; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_prog_STRIP+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   if test -n "$STRIP"; then
4092   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099   for ac_exec_ext in '' $ac_executable_extensions; do
4100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106 done
4107
4108 fi
4109 fi
4110 STRIP=$ac_cv_prog_STRIP
4111 if test -n "$STRIP"; then
4112   echo "$as_me:$LINENO: result: $STRIP" >&5
4113 echo "${ECHO_T}$STRIP" >&6
4114 else
4115   echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4117 fi
4118
4119 fi
4120 if test -z "$ac_cv_prog_STRIP"; then
4121   ac_ct_STRIP=$STRIP
4122   # Extract the first word of "strip", so it can be a program name with args.
4123 set dummy strip; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   if test -n "$ac_ct_STRIP"; then
4130   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139     ac_cv_prog_ac_ct_STRIP="strip"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145
4146   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4147 fi
4148 fi
4149 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4150 if test -n "$ac_ct_STRIP"; then
4151   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4152 echo "${ECHO_T}$ac_ct_STRIP" >&6
4153 else
4154   echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4156 fi
4157
4158   STRIP=$ac_ct_STRIP
4159 else
4160   STRIP="$ac_cv_prog_STRIP"
4161 fi
4162
4163
4164 enable_dlopen=no
4165 enable_win32_dll=no
4166
4167 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4168 if test "${enable_libtool_lock+set}" = set; then
4169   enableval="$enable_libtool_lock"
4170
4171 fi;
4172 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4173
4174 # Some flags need to be propagated to the compiler or linker for good
4175 # libtool support.
4176 case $host in
4177 *-*-irix6*)
4178   # Find out which ABI we are using.
4179   echo '#line 4179 "configure"' > conftest.$ac_ext
4180   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181   (eval $ac_compile) 2>&5
4182   ac_status=$?
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); }; then
4185     case `/usr/bin/file conftest.$ac_objext` in
4186     *32-bit*)
4187       LD="${LD-ld} -32"
4188       ;;
4189     *N32*)
4190       LD="${LD-ld} -n32"
4191       ;;
4192     *64-bit*)
4193       LD="${LD-ld} -64"
4194       ;;
4195     esac
4196   fi
4197   rm -rf conftest*
4198   ;;
4199
4200 *-*-sco3.2v5*)
4201   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4202   SAVE_CFLAGS="$CFLAGS"
4203   CFLAGS="$CFLAGS -belf"
4204   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4205 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4206 if test "${lt_cv_cc_needs_belf+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209
4210
4211      ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
4217      cat >conftest.$ac_ext <<_ACEOF
4218 #line $LINENO "configure"
4219 #include "confdefs.h"
4220
4221 #ifdef F77_DUMMY_MAIN
4222 #  ifdef __cplusplus
4223      extern "C"
4224 #  endif
4225    int F77_DUMMY_MAIN() { return 1; }
4226 #endif
4227 int
4228 main ()
4229 {
4230
4231   ;
4232   return 0;
4233 }
4234 _ACEOF
4235 rm -f conftest.$ac_objext conftest$ac_exeext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4237   (eval $ac_link) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } &&
4241          { ac_try='test -s conftest$ac_exeext'
4242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243   (eval $ac_try) 2>&5
4244   ac_status=$?
4245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); }; }; then
4247   lt_cv_cc_needs_belf=yes
4248 else
4249   echo "$as_me: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4251 lt_cv_cc_needs_belf=no
4252 fi
4253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4254      ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
4260 fi
4261 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4262 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4263   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4264     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4265     CFLAGS="$SAVE_CFLAGS"
4266   fi
4267   ;;
4268
4269
4270 esac
4271
4272 # Sed substitution that helps us do robust quoting.  It backslashifies
4273 # metacharacters that are still active within double-quoted strings.
4274 Xsed='sed -e s/^X//'
4275 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4276
4277 # Same as above, but do not quote variable references.
4278 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4279
4280 # Sed substitution to delay expansion of an escaped shell variable in a
4281 # double_quote_subst'ed string.
4282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4283
4284 # Constants:
4285 rm="rm -f"
4286
4287 # Global variables:
4288 default_ofile=libtool
4289 can_build_shared=yes
4290
4291 # All known linkers require a `.a' archive for static linking (except M$VC,
4292 # which needs '.lib').
4293 libext=a
4294 ltmain="$ac_aux_dir/ltmain.sh"
4295 ofile="$default_ofile"
4296 with_gnu_ld="$lt_cv_prog_gnu_ld"
4297 need_locks="$enable_libtool_lock"
4298
4299 old_CC="$CC"
4300 old_CFLAGS="$CFLAGS"
4301
4302 # Set sane defaults for various variables
4303 test -z "$AR" && AR=ar
4304 test -z "$AR_FLAGS" && AR_FLAGS=cru
4305 test -z "$AS" && AS=as
4306 test -z "$CC" && CC=cc
4307 test -z "$DLLTOOL" && DLLTOOL=dlltool
4308 test -z "$LD" && LD=ld
4309 test -z "$LN_S" && LN_S="ln -s"
4310 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4311 test -z "$NM" && NM=nm
4312 test -z "$OBJDUMP" && OBJDUMP=objdump
4313 test -z "$RANLIB" && RANLIB=:
4314 test -z "$STRIP" && STRIP=:
4315 test -z "$ac_objext" && ac_objext=o
4316
4317 if test x"$host" != x"$build"; then
4318   ac_tool_prefix=${host_alias}-
4319 else
4320   ac_tool_prefix=
4321 fi
4322
4323 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4324 case $host_os in
4325 linux-gnu*) ;;
4326 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4327 esac
4328
4329 case $host_os in
4330 aix3*)
4331   # AIX sometimes has problems with the GCC collect2 program.  For some
4332   # reason, if we set the COLLECT_NAMES environment variable, the problems
4333   # vanish in a puff of smoke.
4334   if test "X${COLLECT_NAMES+set}" != Xset; then
4335     COLLECT_NAMES=
4336     export COLLECT_NAMES
4337   fi
4338   ;;
4339 esac
4340
4341 # Determine commands to create old-style static archives.
4342 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4343 old_postinstall_cmds='chmod 644 $oldlib'
4344 old_postuninstall_cmds=
4345
4346 if test -n "$RANLIB"; then
4347   case $host_os in
4348   openbsd*)
4349     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4350     ;;
4351   *)
4352     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4353     ;;
4354   esac
4355   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4356 fi
4357
4358 # Allow CC to be a program name with arguments.
4359 set dummy $CC
4360 compiler="$2"
4361
4362 echo "$as_me:$LINENO: checking for objdir" >&5
4363 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4364 rm -f .libs 2>/dev/null
4365 mkdir .libs 2>/dev/null
4366 if test -d .libs; then
4367   objdir=.libs
4368 else
4369   # MS-DOS does not allow filenames that begin with a dot.
4370   objdir=_libs
4371 fi
4372 rmdir .libs 2>/dev/null
4373 echo "$as_me:$LINENO: result: $objdir" >&5
4374 echo "${ECHO_T}$objdir" >&6
4375
4376
4377
4378 # Check whether --with-pic or --without-pic was given.
4379 if test "${with_pic+set}" = set; then
4380   withval="$with_pic"
4381   pic_mode="$withval"
4382 else
4383   pic_mode=default
4384 fi;
4385 test -z "$pic_mode" && pic_mode=default
4386
4387 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4388 # in isolation, and that seeing it set (from the cache) indicates that
4389 # the associated values are set (in the cache) correctly too.
4390 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4391 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4392 if test "${lt_cv_prog_cc_pic+set}" = set; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395    lt_cv_prog_cc_pic=
4396   lt_cv_prog_cc_shlib=
4397   lt_cv_prog_cc_wl=
4398   lt_cv_prog_cc_static=
4399   lt_cv_prog_cc_no_builtin=
4400   lt_cv_prog_cc_can_build_shared=$can_build_shared
4401
4402   if test "$GCC" = yes; then
4403     lt_cv_prog_cc_wl='-Wl,'
4404     lt_cv_prog_cc_static='-static'
4405
4406     case $host_os in
4407     aix*)
4408       # Below there is a dirty hack to force normal static linking with -ldl
4409       # The problem is because libdl dynamically linked with both libc and
4410       # libC (AIX C++ library), which obviously doesn't included in libraries
4411       # list by gcc. This cause undefined symbols with -static flags.
4412       # This hack allows C programs to be linked with "-static -ldl", but
4413       # not sure about C++ programs.
4414       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4415       ;;
4416     amigaos*)
4417       # FIXME: we need at least 68020 code to build shared libraries, but
4418       # adding the `-m68020' flag to GCC prevents building anything better,
4419       # like `-m68040'.
4420       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4421       ;;
4422     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4423       # PIC is the default for these OSes.
4424       ;;
4425     darwin* | rhapsody*)
4426       # PIC is the default on this platform
4427       # Common symbols not allowed in MH_DYLIB files
4428       lt_cv_prog_cc_pic='-fno-common'
4429       ;;
4430     cygwin* | mingw* | pw32* | os2*)
4431       # This hack is so that the source file can tell whether it is being
4432       # built for inclusion in a dll (and should export symbols for example).
4433       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4434       ;;
4435     sysv4*MP*)
4436       if test -d /usr/nec; then
4437          lt_cv_prog_cc_pic=-Kconform_pic
4438       fi
4439       ;;
4440     *)
4441       lt_cv_prog_cc_pic='-fPIC'
4442       ;;
4443     esac
4444   else
4445     # PORTME Check for PIC flags for the system compiler.
4446     case $host_os in
4447     aix3* | aix4* | aix5*)
4448       lt_cv_prog_cc_wl='-Wl,'
4449       # All AIX code is PIC.
4450       if test "$host_cpu" = ia64; then
4451         # AIX 5 now supports IA64 processor
4452         lt_cv_prog_cc_static='-Bstatic'
4453       else
4454         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4455       fi
4456       ;;
4457
4458     hpux9* | hpux10* | hpux11*)
4459       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4460       lt_cv_prog_cc_wl='-Wl,'
4461       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4462       lt_cv_prog_cc_pic='+Z'
4463       ;;
4464
4465     irix5* | irix6* | nonstopux*)
4466       lt_cv_prog_cc_wl='-Wl,'
4467       lt_cv_prog_cc_static='-non_shared'
4468       # PIC (with -KPIC) is the default.
4469       ;;
4470
4471     cygwin* | mingw* | pw32* | os2*)
4472       # This hack is so that the source file can tell whether it is being
4473       # built for inclusion in a dll (and should export symbols for example).
4474       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4475       ;;
4476
4477     newsos6)
4478       lt_cv_prog_cc_pic='-KPIC'
4479       lt_cv_prog_cc_static='-Bstatic'
4480       ;;
4481
4482     osf3* | osf4* | osf5*)
4483       # All OSF/1 code is PIC.
4484       lt_cv_prog_cc_wl='-Wl,'
4485       lt_cv_prog_cc_static='-non_shared'
4486       ;;
4487
4488     sco3.2v5*)
4489       lt_cv_prog_cc_pic='-Kpic'
4490       lt_cv_prog_cc_static='-dn'
4491       lt_cv_prog_cc_shlib='-belf'
4492       ;;
4493
4494     solaris*)
4495       lt_cv_prog_cc_pic='-KPIC'
4496       lt_cv_prog_cc_static='-Bstatic'
4497       lt_cv_prog_cc_wl='-Wl,'
4498       ;;
4499
4500     sunos4*)
4501       lt_cv_prog_cc_pic='-PIC'
4502       lt_cv_prog_cc_static='-Bstatic'
4503       lt_cv_prog_cc_wl='-Qoption ld '
4504       ;;
4505
4506     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4507       lt_cv_prog_cc_pic='-KPIC'
4508       lt_cv_prog_cc_static='-Bstatic'
4509       if test "x$host_vendor" = xsni; then
4510         lt_cv_prog_cc_wl='-LD'
4511       else
4512         lt_cv_prog_cc_wl='-Wl,'
4513       fi
4514       ;;
4515
4516     uts4*)
4517       lt_cv_prog_cc_pic='-pic'
4518       lt_cv_prog_cc_static='-Bstatic'
4519       ;;
4520
4521     sysv4*MP*)
4522       if test -d /usr/nec ;then
4523         lt_cv_prog_cc_pic='-Kconform_pic'
4524         lt_cv_prog_cc_static='-Bstatic'
4525       fi
4526       ;;
4527
4528     *)
4529       lt_cv_prog_cc_can_build_shared=no
4530       ;;
4531     esac
4532   fi
4533
4534 fi
4535
4536 if test -z "$lt_cv_prog_cc_pic"; then
4537   echo "$as_me:$LINENO: result: none" >&5
4538 echo "${ECHO_T}none" >&6
4539 else
4540   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4541 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4542
4543   # Check to make sure the pic_flag actually works.
4544   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4545 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4546   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4547   echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549       save_CFLAGS="$CFLAGS"
4550     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4551     cat >conftest.$ac_ext <<_ACEOF
4552 #line $LINENO "configure"
4553 #include "confdefs.h"
4554
4555 #ifdef F77_DUMMY_MAIN
4556 #  ifdef __cplusplus
4557      extern "C"
4558 #  endif
4559    int F77_DUMMY_MAIN() { return 1; }
4560 #endif
4561 int
4562 main ()
4563 {
4564
4565   ;
4566   return 0;
4567 }
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571   (eval $ac_compile) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577   (eval $ac_try) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; }; then
4581         case $host_os in
4582       hpux9* | hpux10* | hpux11*)
4583         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4584         # they create non-PIC objects.  So, if there were any warnings, we
4585         # assume that PIC is not supported.
4586         if test -s conftest.err; then
4587           lt_cv_prog_cc_pic_works=no
4588         else
4589           lt_cv_prog_cc_pic_works=yes
4590         fi
4591         ;;
4592       *)
4593         lt_cv_prog_cc_pic_works=yes
4594         ;;
4595       esac
4596
4597 else
4598   echo "$as_me: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4600       lt_cv_prog_cc_pic_works=no
4601
4602 fi
4603 rm -f conftest.$ac_objext conftest.$ac_ext
4604     CFLAGS="$save_CFLAGS"
4605
4606 fi
4607
4608
4609   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4610     lt_cv_prog_cc_pic=
4611     lt_cv_prog_cc_can_build_shared=no
4612   else
4613     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4614   fi
4615
4616   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4617 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4618 fi
4619
4620 # Check for any special shared library compilation flags.
4621 if test -n "$lt_cv_prog_cc_shlib"; then
4622   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4623 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4624   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4625   else
4626    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4627 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4628     lt_cv_prog_cc_can_build_shared=no
4629   fi
4630 fi
4631
4632 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4633 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4634 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637     lt_cv_prog_cc_static_works=no
4638   save_LDFLAGS="$LDFLAGS"
4639   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4640   cat >conftest.$ac_ext <<_ACEOF
4641 #line $LINENO "configure"
4642 #include "confdefs.h"
4643
4644 #ifdef F77_DUMMY_MAIN
4645 #  ifdef __cplusplus
4646      extern "C"
4647 #  endif
4648    int F77_DUMMY_MAIN() { return 1; }
4649 #endif
4650 int
4651 main ()
4652 {
4653
4654   ;
4655   return 0;
4656 }
4657 _ACEOF
4658 rm -f conftest.$ac_objext conftest$ac_exeext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660   (eval $ac_link) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -s conftest$ac_exeext'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   lt_cv_prog_cc_static_works=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4674 fi
4675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4676   LDFLAGS="$save_LDFLAGS"
4677
4678 fi
4679
4680
4681 # Belt *and* braces to stop my trousers falling down:
4682 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4683 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4684 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4685
4686 pic_flag="$lt_cv_prog_cc_pic"
4687 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4688 wl="$lt_cv_prog_cc_wl"
4689 link_static_flag="$lt_cv_prog_cc_static"
4690 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4691 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4692
4693
4694 # Check to see if options -o and -c are simultaneously supported by compiler
4695 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4697 if test "${lt_cv_compiler_c_o+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700
4701 $rm -r conftest 2>/dev/null
4702 mkdir conftest
4703 cd conftest
4704 echo "int some_variable = 0;" > conftest.$ac_ext
4705 mkdir out
4706 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4707 # that will create temporary files in the current directory regardless of
4708 # the output directory.  Thus, making CWD read-only will cause this test
4709 # to fail, enabling locking or at least warning the user not to do parallel
4710 # builds.
4711 chmod -w .
4712 save_CFLAGS="$CFLAGS"
4713 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4714 compiler_c_o=no
4715 if { (eval echo configure:4715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4716   # The compiler can only warn and ignore the option if not recognized
4717   # So say no if there are warnings
4718   if test -s out/conftest.err; then
4719     lt_cv_compiler_c_o=no
4720   else
4721     lt_cv_compiler_c_o=yes
4722   fi
4723 else
4724   # Append any errors to the config.log.
4725   cat out/conftest.err 1>&5
4726   lt_cv_compiler_c_o=no
4727 fi
4728 CFLAGS="$save_CFLAGS"
4729 chmod u+w .
4730 $rm conftest* out/*
4731 rmdir out
4732 cd ..
4733 rmdir conftest
4734 $rm -r conftest 2>/dev/null
4735
4736 fi
4737
4738 compiler_c_o=$lt_cv_compiler_c_o
4739 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4740 echo "${ECHO_T}$compiler_c_o" >&6
4741
4742 if test x"$compiler_c_o" = x"yes"; then
4743   # Check to see if we can write to a .lo
4744   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4745 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4746   if test "${lt_cv_compiler_o_lo+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749
4750   lt_cv_compiler_o_lo=no
4751   save_CFLAGS="$CFLAGS"
4752   CFLAGS="$CFLAGS -c -o conftest.lo"
4753   save_objext="$ac_objext"
4754   ac_objext=lo
4755   cat >conftest.$ac_ext <<_ACEOF
4756 #line $LINENO "configure"
4757 #include "confdefs.h"
4758
4759 #ifdef F77_DUMMY_MAIN
4760 #  ifdef __cplusplus
4761      extern "C"
4762 #  endif
4763    int F77_DUMMY_MAIN() { return 1; }
4764 #endif
4765 int
4766 main ()
4767 {
4768 int some_variable = 0;
4769   ;
4770   return 0;
4771 }
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775   (eval $ac_compile) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } &&
4779          { ac_try='test -s conftest.$ac_objext'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; }; then
4785       # The compiler can only warn and ignore the option if not recognized
4786     # So say no if there are warnings
4787     if test -s conftest.err; then
4788       lt_cv_compiler_o_lo=no
4789     else
4790       lt_cv_compiler_o_lo=yes
4791     fi
4792
4793 else
4794   echo "$as_me: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4796 fi
4797 rm -f conftest.$ac_objext conftest.$ac_ext
4798   ac_objext="$save_objext"
4799   CFLAGS="$save_CFLAGS"
4800
4801 fi
4802
4803   compiler_o_lo=$lt_cv_compiler_o_lo
4804   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4805 echo "${ECHO_T}$compiler_o_lo" >&6
4806 else
4807   compiler_o_lo=no
4808 fi
4809
4810 # Check to see if we can do hard links to lock some files if needed
4811 hard_links="nottested"
4812 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4813   # do not overwrite the value of need_locks provided by the user
4814   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4815 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4816   hard_links=yes
4817   $rm conftest*
4818   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4819   touch conftest.a
4820   ln conftest.a conftest.b 2>&5 || hard_links=no
4821   ln conftest.a conftest.b 2>/dev/null && hard_links=no
4822   echo "$as_me:$LINENO: result: $hard_links" >&5
4823 echo "${ECHO_T}$hard_links" >&6
4824   if test "$hard_links" = no; then
4825     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4826 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4827     need_locks=warn
4828   fi
4829 else
4830   need_locks=no
4831 fi
4832
4833 if test "$GCC" = yes; then
4834   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4835   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4837   echo "int some_variable = 0;" > conftest.$ac_ext
4838   save_CFLAGS="$CFLAGS"
4839   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4840   compiler_rtti_exceptions=no
4841   cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4844
4845 #ifdef F77_DUMMY_MAIN
4846 #  ifdef __cplusplus
4847      extern "C"
4848 #  endif
4849    int F77_DUMMY_MAIN() { return 1; }
4850 #endif
4851 int
4852 main ()
4853 {
4854 int some_variable = 0;
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 rm -f conftest.$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861   (eval $ac_compile) 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } &&
4865          { ac_try='test -s conftest.$ac_objext'
4866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867   (eval $ac_try) 2>&5
4868   ac_status=$?
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); }; }; then
4871       # The compiler can only warn and ignore the option if not recognized
4872     # So say no if there are warnings
4873     if test -s conftest.err; then
4874       compiler_rtti_exceptions=no
4875     else
4876       compiler_rtti_exceptions=yes
4877     fi
4878
4879 else
4880   echo "$as_me: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4882 fi
4883 rm -f conftest.$ac_objext conftest.$ac_ext
4884   CFLAGS="$save_CFLAGS"
4885   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4886 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4887
4888   if test "$compiler_rtti_exceptions" = "yes"; then
4889     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4890   else
4891     no_builtin_flag=' -fno-builtin'
4892   fi
4893 fi
4894
4895 # See if the linker supports building shared libraries.
4896 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4897 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4898
4899 allow_undefined_flag=
4900 no_undefined_flag=
4901 need_lib_prefix=unknown
4902 need_version=unknown
4903 # when you set need_version to no, make sure it does not cause -set_version
4904 # flags to be left without arguments
4905 archive_cmds=
4906 archive_expsym_cmds=
4907 old_archive_from_new_cmds=
4908 old_archive_from_expsyms_cmds=
4909 export_dynamic_flag_spec=
4910 whole_archive_flag_spec=
4911 thread_safe_flag_spec=
4912 hardcode_into_libs=no
4913 hardcode_libdir_flag_spec=
4914 hardcode_libdir_separator=
4915 hardcode_direct=no
4916 hardcode_minus_L=no
4917 hardcode_shlibpath_var=unsupported
4918 runpath_var=
4919 link_all_deplibs=unknown
4920 always_export_symbols=no
4921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4922 # include_expsyms should be a list of space-separated symbols to be *always*
4923 # included in the symbol list
4924 include_expsyms=
4925 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4926 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4927 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4928 # as well as any symbol that contains `d'.
4929 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4930 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4931 # platforms (ab)use it in PIC code, but their linkers get confused if
4932 # the symbol is explicitly referenced.  Since portable code cannot
4933 # rely on this symbol name, it's probably fine to never include it in
4934 # preloaded symbol tables.
4935 extract_expsyms_cmds=
4936
4937 case $host_os in
4938 cygwin* | mingw* | pw32*)
4939   # FIXME: the MSVC++ port hasn't been tested in a loooong time
4940   # When not using gcc, we currently assume that we are using
4941   # Microsoft Visual C++.
4942   if test "$GCC" != yes; then
4943     with_gnu_ld=no
4944   fi
4945   ;;
4946 openbsd*)
4947   with_gnu_ld=no
4948   ;;
4949 esac
4950
4951 ld_shlibs=yes
4952 if test "$with_gnu_ld" = yes; then
4953   # If archive_cmds runs LD, not CC, wlarc should be empty
4954   wlarc='${wl}'
4955
4956   # See if GNU ld supports shared libraries.
4957   case $host_os in
4958   aix3* | aix4* | aix5*)
4959     # On AIX, the GNU linker is very broken
4960     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4961     ld_shlibs=no
4962     cat <<EOF 1>&2
4963
4964 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4965 *** to be unable to reliably create shared libraries on AIX.
4966 *** Therefore, libtool is disabling shared libraries support.  If you
4967 *** really care for shared libraries, you may want to modify your PATH
4968 *** so that a non-GNU linker is found, and then restart.
4969
4970 EOF
4971     ;;
4972
4973   amigaos*)
4974     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)'
4975     hardcode_libdir_flag_spec='-L$libdir'
4976     hardcode_minus_L=yes
4977
4978     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4979     # that the semantics of dynamic libraries on AmigaOS, at least up
4980     # to version 4, is to share data among multiple programs linked
4981     # with the same dynamic library.  Since this doesn't match the
4982     # behavior of shared libraries on other platforms, we can use
4983     # them.
4984     ld_shlibs=no
4985     ;;
4986
4987   beos*)
4988     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4989       allow_undefined_flag=unsupported
4990       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4991       # support --undefined.  This deserves some investigation.  FIXME
4992       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4993     else
4994       ld_shlibs=no
4995     fi
4996     ;;
4997
4998   cygwin* | mingw* | pw32*)
4999     # hardcode_libdir_flag_spec is actually meaningless, as there is
5000     # no search path for DLLs.
5001     hardcode_libdir_flag_spec='-L$libdir'
5002     allow_undefined_flag=unsupported
5003     always_export_symbols=yes
5004
5005     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5006       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5007       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5008       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5009       else $CC -o impgen impgen.c ; fi)~
5010       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5011
5012     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5013
5014     # cygwin and mingw dlls have different entry points and sets of symbols
5015     # to exclude.
5016     # FIXME: what about values for MSVC?
5017     dll_entry=__cygwin_dll_entry@12
5018     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5019     case $host_os in
5020     mingw*)
5021       # mingw values
5022       dll_entry=_DllMainCRTStartup@12
5023       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5024       ;;
5025     esac
5026
5027     # mingw and cygwin differ, and it's simplest to just exclude the union
5028     # of the two symbol sets.
5029     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5030
5031     # recent cygwin and mingw systems supply a stub DllMain which the user
5032     # can override, but on older systems we have to supply one (in ltdll.c)
5033     if test "x$lt_cv_need_dllmain" = "xyes"; then
5034       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5035       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~
5036         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5037     else
5038       ltdll_obj=
5039       ltdll_cmds=
5040     fi
5041
5042     # Extract the symbol export list from an `--export-all' def file,
5043     # then regenerate the def file from the symbol export list, so that
5044     # the compiled dll only exports the symbol export list.
5045     # Be careful not to strip the DATA tag left be newer dlltools.
5046     export_symbols_cmds="$ltdll_cmds"'
5047       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5048       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5049
5050     # If the export-symbols file already is a .def file (1st line
5051     # is EXPORTS), use it as is.
5052     # If DATA tags from a recent dlltool are present, honour them!
5053     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5054         cp $export_symbols $output_objdir/$soname-def;
5055       else
5056         echo EXPORTS > $output_objdir/$soname-def;
5057         _lt_hint=1;
5058         cat $export_symbols | while read symbol; do
5059          set dummy \$symbol;
5060          case \$# in
5061            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5062            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5063          esac;
5064          _lt_hint=`expr 1 + \$_lt_hint`;
5065         done;
5066       fi~
5067       '"$ltdll_cmds"'
5068       $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~
5069       $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~
5070       $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~
5071       $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~
5072       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5073     ;;
5074
5075   netbsd*)
5076     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5077       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5078       wlarc=
5079     else
5080       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5081       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5082     fi
5083     ;;
5084
5085   solaris* | sysv5*)
5086     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5087       ld_shlibs=no
5088       cat <<EOF 1>&2
5089
5090 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5091 *** create shared libraries on Solaris systems.  Therefore, libtool
5092 *** is disabling shared libraries support.  We urge you to upgrade GNU
5093 *** binutils to release 2.9.1 or newer.  Another option is to modify
5094 *** your PATH or compiler configuration so that the native linker is
5095 *** used, and then restart.
5096
5097 EOF
5098     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5099       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5100       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5101     else
5102       ld_shlibs=no
5103     fi
5104     ;;
5105
5106   sunos4*)
5107     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5108     wlarc=
5109     hardcode_direct=yes
5110     hardcode_shlibpath_var=no
5111     ;;
5112
5113   *)
5114     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5115       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5116       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5117     else
5118       ld_shlibs=no
5119     fi
5120     ;;
5121   esac
5122
5123   if test "$ld_shlibs" = yes; then
5124     runpath_var=LD_RUN_PATH
5125     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5126     export_dynamic_flag_spec='${wl}--export-dynamic'
5127     case $host_os in
5128     cygwin* | mingw* | pw32*)
5129       # dlltool doesn't understand --whole-archive et. al.
5130       whole_archive_flag_spec=
5131       ;;
5132     *)
5133       # ancient GNU ld didn't support --whole-archive et. al.
5134       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5135         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5136       else
5137         whole_archive_flag_spec=
5138       fi
5139       ;;
5140     esac
5141   fi
5142 else
5143   # PORTME fill in a description of your system's linker (not GNU ld)
5144   case $host_os in
5145   aix3*)
5146     allow_undefined_flag=unsupported
5147     always_export_symbols=yes
5148     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'
5149     # Note: this linker hardcodes the directories in LIBPATH if there
5150     # are no directories specified by -L.
5151     hardcode_minus_L=yes
5152     if test "$GCC" = yes && test -z "$link_static_flag"; then
5153       # Neither direct hardcoding nor static linking is supported with a
5154       # broken collect2.
5155       hardcode_direct=unsupported
5156     fi
5157     ;;
5158
5159   aix4* | aix5*)
5160     if test "$host_cpu" = ia64; then
5161       # On IA64, the linker does run time linking by default, so we don't
5162       # have to do anything special.
5163       aix_use_runtimelinking=no
5164       exp_sym_flag='-Bexport'
5165       no_entry_flag=""
5166     else
5167       aix_use_runtimelinking=no
5168
5169       # Test if we are trying to use run time linking or normal
5170       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5171       # need to do runtime linking.
5172       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5173         for ld_flag in $LDFLAGS; do
5174           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5175             aix_use_runtimelinking=yes
5176             break
5177           fi
5178         done
5179       esac
5180
5181       exp_sym_flag='-bexport'
5182       no_entry_flag='-bnoentry'
5183     fi
5184
5185     # When large executables or shared objects are built, AIX ld can
5186     # have problems creating the table of contents.  If linking a library
5187     # or program results in "error TOC overflow" add -mminimal-toc to
5188     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5189     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5190
5191     hardcode_direct=yes
5192     archive_cmds=''
5193     hardcode_libdir_separator=':'
5194     if test "$GCC" = yes; then
5195       case $host_os in aix4.[012]|aix4.[012].*)
5196         collect2name=`${CC} -print-prog-name=collect2`
5197         if test -f "$collect2name" && \
5198           strings "$collect2name" | grep resolve_lib_name >/dev/null
5199         then
5200           # We have reworked collect2
5201           hardcode_direct=yes
5202         else
5203           # We have old collect2
5204           hardcode_direct=unsupported
5205           # It fails to find uninstalled libraries when the uninstalled
5206           # path is not listed in the libpath.  Setting hardcode_minus_L
5207           # to unsupported forces relinking
5208           hardcode_minus_L=yes
5209           hardcode_libdir_flag_spec='-L$libdir'
5210           hardcode_libdir_separator=
5211         fi
5212       esac
5213
5214       shared_flag='-shared'
5215     else
5216       # not using gcc
5217       if test "$host_cpu" = ia64; then
5218         shared_flag='${wl}-G'
5219       else
5220         if test "$aix_use_runtimelinking" = yes; then
5221           shared_flag='${wl}-G'
5222         else
5223           shared_flag='${wl}-bM:SRE'
5224         fi
5225       fi
5226     fi
5227
5228     # It seems that -bexpall can do strange things, so it is better to
5229     # generate a list of symbols to export.
5230     always_export_symbols=yes
5231     if test "$aix_use_runtimelinking" = yes; then
5232       # Warning - without using the other runtime loading flags (-brtl),
5233       # -berok will link without error, but may produce a broken library.
5234       allow_undefined_flag='-berok'
5235       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5236       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"
5237     else
5238       if test "$host_cpu" = ia64; then
5239         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5240         allow_undefined_flag="-z nodefs"
5241         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"
5242       else
5243         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5244         # Warning - without using the other run time loading flags,
5245         # -berok will link without error, but may produce a broken library.
5246         allow_undefined_flag='${wl}-berok'
5247         # This is a bit strange, but is similar to how AIX traditionally builds
5248         # it's shared libraries.
5249         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'
5250       fi
5251     fi
5252     ;;
5253
5254   amigaos*)
5255     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)'
5256     hardcode_libdir_flag_spec='-L$libdir'
5257     hardcode_minus_L=yes
5258     # see comment about different semantics on the GNU ld section
5259     ld_shlibs=no
5260     ;;
5261
5262   cygwin* | mingw* | pw32*)
5263     # When not using gcc, we currently assume that we are using
5264     # Microsoft Visual C++.
5265     # hardcode_libdir_flag_spec is actually meaningless, as there is
5266     # no search path for DLLs.
5267     hardcode_libdir_flag_spec=' '
5268     allow_undefined_flag=unsupported
5269     # Tell ltmain to make .lib files, not .a files.
5270     libext=lib
5271     # FIXME: Setting linknames here is a bad hack.
5272     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5273     # The linker will automatically build a .lib file if we build a DLL.
5274     old_archive_from_new_cmds='true'
5275     # FIXME: Should let the user specify the lib program.
5276     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5277     fix_srcfile_path='`cygpath -w "$srcfile"`'
5278     ;;
5279
5280   darwin* | rhapsody*)
5281     case "$host_os" in
5282     rhapsody* | darwin1.[012])
5283       allow_undefined_flag='-undefined suppress'
5284       ;;
5285     *) # Darwin 1.3 on
5286       allow_undefined_flag='-flat_namespace -undefined suppress'
5287       ;;
5288     esac
5289     # FIXME: Relying on posixy $() will cause problems for
5290     #        cross-compilation, but unfortunately the echo tests do not
5291     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5292     #        `"' quotes if we put them in here... so don't!
5293     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5294     # We need to add '_' to the symbols in $export_symbols first
5295     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5296     hardcode_direct=yes
5297     hardcode_shlibpath_var=no
5298     whole_archive_flag_spec='-all_load $convenience'
5299     ;;
5300
5301   freebsd1*)
5302     ld_shlibs=no
5303     ;;
5304
5305   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5306   # support.  Future versions do this automatically, but an explicit c++rt0.o
5307   # does not break anything, and helps significantly (at the cost of a little
5308   # extra space).
5309   freebsd2.2*)
5310     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5311     hardcode_libdir_flag_spec='-R$libdir'
5312     hardcode_direct=yes
5313     hardcode_shlibpath_var=no
5314     ;;
5315
5316   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5317   freebsd2*)
5318     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5319     hardcode_direct=yes
5320     hardcode_minus_L=yes
5321     hardcode_shlibpath_var=no
5322     ;;
5323
5324   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5325   freebsd*)
5326     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5327     hardcode_libdir_flag_spec='-R$libdir'
5328     hardcode_direct=yes
5329     hardcode_shlibpath_var=no
5330     ;;
5331
5332   hpux9* | hpux10* | hpux11*)
5333     case $host_os in
5334     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' ;;
5335     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5336     esac
5337     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5338     hardcode_libdir_separator=:
5339     hardcode_direct=yes
5340     hardcode_minus_L=yes # Not in the search PATH, but as the default
5341                          # location of the library.
5342     export_dynamic_flag_spec='${wl}-E'
5343     ;;
5344
5345   irix5* | irix6* | nonstopux*)
5346     if test "$GCC" = yes; then
5347       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'
5348     else
5349       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'
5350     fi
5351     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5352     hardcode_libdir_separator=:
5353     link_all_deplibs=yes
5354     ;;
5355
5356   netbsd*)
5357     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5358       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5359     else
5360       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5361     fi
5362     hardcode_libdir_flag_spec='-R$libdir'
5363     hardcode_direct=yes
5364     hardcode_shlibpath_var=no
5365     ;;
5366
5367   newsos6)
5368     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5369     hardcode_direct=yes
5370     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5371     hardcode_libdir_separator=:
5372     hardcode_shlibpath_var=no
5373     ;;
5374
5375   openbsd*)
5376     hardcode_direct=yes
5377     hardcode_shlibpath_var=no
5378     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5379       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5380       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5381       export_dynamic_flag_spec='${wl}-E'
5382     else
5383       case "$host_os" in
5384       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5385         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5386         hardcode_libdir_flag_spec='-R$libdir'
5387         ;;
5388       *)
5389         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5390         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5391         ;;
5392       esac
5393     fi
5394     ;;
5395
5396   os2*)
5397     hardcode_libdir_flag_spec='-L$libdir'
5398     hardcode_minus_L=yes
5399     allow_undefined_flag=unsupported
5400     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'
5401     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5402     ;;
5403
5404   osf3*)
5405     if test "$GCC" = yes; then
5406       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5407       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'
5408     else
5409       allow_undefined_flag=' -expect_unresolved \*'
5410       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'
5411     fi
5412     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5413     hardcode_libdir_separator=:
5414     ;;
5415
5416   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5417     if test "$GCC" = yes; then
5418       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5419       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'
5420       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5421     else
5422       allow_undefined_flag=' -expect_unresolved \*'
5423       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'
5424       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5425       $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'
5426
5427       #Both c and cxx compiler support -rpath directly
5428       hardcode_libdir_flag_spec='-rpath $libdir'
5429     fi
5430     hardcode_libdir_separator=:
5431     ;;
5432
5433   sco3.2v5*)
5434     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5435     hardcode_shlibpath_var=no
5436     runpath_var=LD_RUN_PATH
5437     hardcode_runpath_var=yes
5438     export_dynamic_flag_spec='${wl}-Bexport'
5439     ;;
5440
5441   solaris*)
5442     # gcc --version < 3.0 without binutils cannot create self contained
5443     # shared libraries reliably, requiring libgcc.a to resolve some of
5444     # the object symbols generated in some cases.  Libraries that use
5445     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5446     # a copy of libgcc.a into every shared library to guarantee resolving
5447     # such symbols causes other problems:  According to Tim Van Holder
5448     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5449     # (to the application) exception stack for one thing.
5450     no_undefined_flag=' -z defs'
5451     if test "$GCC" = yes; then
5452       case `$CC --version 2>/dev/null` in
5453       [12].*)
5454         cat <<EOF 1>&2
5455
5456 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5457 *** create self contained shared libraries on Solaris systems, without
5458 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5459 *** -no-undefined support, which will at least allow you to build shared
5460 *** libraries.  However, you may find that when you link such libraries
5461 *** into an application without using GCC, you have to manually add
5462 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5463 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5464 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5465
5466 EOF
5467         no_undefined_flag=
5468         ;;
5469       esac
5470     fi
5471     # $CC -shared without GNU ld will not create a library from C++
5472     # object files and a static libstdc++, better avoid it by now
5473     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5474     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5475                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5476     hardcode_libdir_flag_spec='-R$libdir'
5477     hardcode_shlibpath_var=no
5478     case $host_os in
5479     solaris2.[0-5] | solaris2.[0-5].*) ;;
5480     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5481       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5482     esac
5483     link_all_deplibs=yes
5484     ;;
5485
5486   sunos4*)
5487     if test "x$host_vendor" = xsequent; then
5488       # Use $CC to link under sequent, because it throws in some extra .o
5489       # files that make .init and .fini sections work.
5490       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5491     else
5492       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5493     fi
5494     hardcode_libdir_flag_spec='-L$libdir'
5495     hardcode_direct=yes
5496     hardcode_minus_L=yes
5497     hardcode_shlibpath_var=no
5498     ;;
5499
5500   sysv4)
5501     if test "x$host_vendor" = xsno; then
5502       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5503       hardcode_direct=yes # is this really true???
5504     else
5505       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5506       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5507     fi
5508     runpath_var='LD_RUN_PATH'
5509     hardcode_shlibpath_var=no
5510     ;;
5511
5512   sysv4.3*)
5513     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5514     hardcode_shlibpath_var=no
5515     export_dynamic_flag_spec='-Bexport'
5516     ;;
5517
5518   sysv5*)
5519     no_undefined_flag=' -z text'
5520     # $CC -shared without GNU ld will not create a library from C++
5521     # object files and a static libstdc++, better avoid it by now
5522     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5523     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5524                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5525     hardcode_libdir_flag_spec=
5526     hardcode_shlibpath_var=no
5527     runpath_var='LD_RUN_PATH'
5528     ;;
5529
5530   uts4*)
5531     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5532     hardcode_libdir_flag_spec='-L$libdir'
5533     hardcode_shlibpath_var=no
5534     ;;
5535
5536   dgux*)
5537     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5538     hardcode_libdir_flag_spec='-L$libdir'
5539     hardcode_shlibpath_var=no
5540     ;;
5541
5542   sysv4*MP*)
5543     if test -d /usr/nec; then
5544       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5545       hardcode_shlibpath_var=no
5546       runpath_var=LD_RUN_PATH
5547       hardcode_runpath_var=yes
5548       ld_shlibs=yes
5549     fi
5550     ;;
5551
5552   sysv4.2uw2*)
5553     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5554     hardcode_direct=yes
5555     hardcode_minus_L=no
5556     hardcode_shlibpath_var=no
5557     hardcode_runpath_var=yes
5558     runpath_var=LD_RUN_PATH
5559     ;;
5560
5561   sysv5uw7* | unixware7*)
5562     no_undefined_flag='${wl}-z ${wl}text'
5563     if test "$GCC" = yes; then
5564       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5565     else
5566       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5567     fi
5568     runpath_var='LD_RUN_PATH'
5569     hardcode_shlibpath_var=no
5570     ;;
5571
5572   *)
5573     ld_shlibs=no
5574     ;;
5575   esac
5576 fi
5577 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5578 echo "${ECHO_T}$ld_shlibs" >&6
5579 test "$ld_shlibs" = no && can_build_shared=no
5580
5581 # Check hardcoding attributes.
5582 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5584 hardcode_action=
5585 if test -n "$hardcode_libdir_flag_spec" || \
5586    test -n "$runpath_var"; then
5587
5588   # We can hardcode non-existant directories.
5589   if test "$hardcode_direct" != no &&
5590      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5591      # have to relink, otherwise we might link with an installed library
5592      # when we should be linking with a yet-to-be-installed one
5593      ## test "$hardcode_shlibpath_var" != no &&
5594      test "$hardcode_minus_L" != no; then
5595     # Linking always hardcodes the temporary library directory.
5596     hardcode_action=relink
5597   else
5598     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5599     hardcode_action=immediate
5600   fi
5601 else
5602   # We cannot hardcode anything, or else we can only hardcode existing
5603   # directories.
5604   hardcode_action=unsupported
5605 fi
5606 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5607 echo "${ECHO_T}$hardcode_action" >&6
5608
5609 striplib=
5610 old_striplib=
5611 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5612 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5613 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5614   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5615   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5616   echo "$as_me:$LINENO: result: yes" >&5
5617 echo "${ECHO_T}yes" >&6
5618 else
5619   echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5621 fi
5622
5623 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5624 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5625
5626 # PORTME Fill in your ld.so characteristics
5627 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5628 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5629 library_names_spec=
5630 libname_spec='lib$name'
5631 soname_spec=
5632 postinstall_cmds=
5633 postuninstall_cmds=
5634 finish_cmds=
5635 finish_eval=
5636 shlibpath_var=
5637 shlibpath_overrides_runpath=unknown
5638 version_type=none
5639 dynamic_linker="$host_os ld.so"
5640 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5642
5643 case $host_os in
5644 aix3*)
5645   version_type=linux
5646   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5647   shlibpath_var=LIBPATH
5648
5649   # AIX has no versioning support, so we append a major version to the name.
5650   soname_spec='${libname}${release}.so$major'
5651   ;;
5652
5653 aix4* | aix5*)
5654   version_type=linux
5655   if test "$host_cpu" = ia64; then
5656     # AIX 5 supports IA64
5657     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5658     shlibpath_var=LD_LIBRARY_PATH
5659   else
5660     # With GCC up to 2.95.x, collect2 would create an import file
5661     # for dependence libraries.  The import file would start with
5662     # the line `#! .'.  This would cause the generated library to
5663     # depend on `.', always an invalid library.  This was fixed in
5664     # development snapshots of GCC prior to 3.0.
5665     case $host_os in
5666       aix4 | aix4.[01] | aix4.[01].*)
5667         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5668              echo ' yes '
5669              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5670           :
5671         else
5672           can_build_shared=no
5673         fi
5674         ;;
5675     esac
5676     # AIX (on Power*) has no versioning support, so currently we can
5677     # not hardcode correct soname into executable. Probably we can
5678     # add versioning support to collect2, so additional links can
5679     # be useful in future.
5680     if test "$aix_use_runtimelinking" = yes; then
5681       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5682       # instead of lib<name>.a to let people know that these are not
5683       # typical AIX shared libraries.
5684       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5685     else
5686       # We preserve .a as extension for shared libraries through AIX4.2
5687       # and later when we are not doing run time linking.
5688       library_names_spec='${libname}${release}.a $libname.a'
5689       soname_spec='${libname}${release}.so$major'
5690     fi
5691     shlibpath_var=LIBPATH
5692   fi
5693   ;;
5694
5695 amigaos*)
5696   library_names_spec='$libname.ixlibrary $libname.a'
5697   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5698   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'
5699   ;;
5700
5701 beos*)
5702   library_names_spec='${libname}.so'
5703   dynamic_linker="$host_os ld.so"
5704   shlibpath_var=LIBRARY_PATH
5705   ;;
5706
5707 bsdi4*)
5708   version_type=linux
5709   need_version=no
5710   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5711   soname_spec='${libname}${release}.so$major'
5712   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5713   shlibpath_var=LD_LIBRARY_PATH
5714   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5715   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5716   export_dynamic_flag_spec=-rdynamic
5717   # the default ld.so.conf also contains /usr/contrib/lib and
5718   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5719   # libtool to hard-code these into programs
5720   ;;
5721
5722 cygwin* | mingw* | pw32*)
5723   version_type=windows
5724   need_version=no
5725   need_lib_prefix=no
5726   case $GCC,$host_os in
5727   yes,cygwin*)
5728     library_names_spec='$libname.dll.a'
5729     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5730     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5731       dldir=$destdir/`dirname \$dlpath`~
5732       test -d \$dldir || mkdir -p \$dldir~
5733       $install_prog .libs/$dlname \$dldir/$dlname'
5734     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5735       dlpath=$dir/\$dldll~
5736        $rm \$dlpath'
5737     ;;
5738   yes,mingw*)
5739     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5740     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5741     ;;
5742   yes,pw32*)
5743     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5744     ;;
5745   *)
5746     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5747     ;;
5748   esac
5749   dynamic_linker='Win32 ld.exe'
5750   # FIXME: first we should search . and the directory the executable is in
5751   shlibpath_var=PATH
5752   ;;
5753
5754 darwin* | rhapsody*)
5755   dynamic_linker="$host_os dyld"
5756   version_type=darwin
5757   need_lib_prefix=no
5758   need_version=no
5759   # FIXME: Relying on posixy $() will cause problems for
5760   #        cross-compilation, but unfortunately the echo tests do not
5761   #        yet detect zsh echo's removal of \ escapes.
5762   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)'
5763   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5764   shlibpath_overrides_runpath=yes
5765   shlibpath_var=DYLD_LIBRARY_PATH
5766   ;;
5767
5768 freebsd1*)
5769   dynamic_linker=no
5770   ;;
5771
5772 freebsd*)
5773   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5774   version_type=freebsd-$objformat
5775   case $version_type in
5776     freebsd-elf*)
5777       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5778       need_version=no
5779       need_lib_prefix=no
5780       ;;
5781     freebsd-*)
5782       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5783       need_version=yes
5784       ;;
5785   esac
5786   shlibpath_var=LD_LIBRARY_PATH
5787   case $host_os in
5788   freebsd2*)
5789     shlibpath_overrides_runpath=yes
5790     ;;
5791   *)
5792     shlibpath_overrides_runpath=no
5793     hardcode_into_libs=yes
5794     ;;
5795   esac
5796   ;;
5797
5798 gnu*)
5799   version_type=linux
5800   need_lib_prefix=no
5801   need_version=no
5802   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5803   soname_spec='${libname}${release}.so$major'
5804   shlibpath_var=LD_LIBRARY_PATH
5805   hardcode_into_libs=yes
5806   ;;
5807
5808 hpux9* | hpux10* | hpux11*)
5809   # Give a soname corresponding to the major version so that dld.sl refuses to
5810   # link against other versions.
5811   dynamic_linker="$host_os dld.sl"
5812   version_type=sunos
5813   need_lib_prefix=no
5814   need_version=no
5815   shlibpath_var=SHLIB_PATH
5816   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5817   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5818   soname_spec='${libname}${release}.sl$major'
5819   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5820   postinstall_cmds='chmod 555 $lib'
5821   ;;
5822
5823 irix5* | irix6* | nonstopux*)
5824   case $host_os in
5825     nonstopux*) version_type=nonstopux ;;
5826     *)          version_type=irix ;;
5827   esac
5828   need_lib_prefix=no
5829   need_version=no
5830   soname_spec='${libname}${release}.so$major'
5831   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5832   case $host_os in
5833   irix5* | nonstopux*)
5834     libsuff= shlibsuff=
5835     ;;
5836   *)
5837     case $LD in # libtool.m4 will add one of these switches to LD
5838     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5839     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5840     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5841     *) libsuff= shlibsuff= libmagic=never-match;;
5842     esac
5843     ;;
5844   esac
5845   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5846   shlibpath_overrides_runpath=no
5847   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5848   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5849   ;;
5850
5851 # No shared lib support for Linux oldld, aout, or coff.
5852 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5853   dynamic_linker=no
5854   ;;
5855
5856 # This must be Linux ELF.
5857 linux-gnu*)
5858   version_type=linux
5859   need_lib_prefix=no
5860   need_version=no
5861   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5862   soname_spec='${libname}${release}.so$major'
5863   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5864   shlibpath_var=LD_LIBRARY_PATH
5865   shlibpath_overrides_runpath=no
5866   # This implies no fast_install, which is unacceptable.
5867   # Some rework will be needed to allow for fast_install
5868   # before this can be enabled.
5869   hardcode_into_libs=yes
5870
5871   # We used to test for /lib/ld.so.1 and disable shared libraries on
5872   # powerpc, because MkLinux only supported shared libraries with the
5873   # GNU dynamic linker.  Since this was broken with cross compilers,
5874   # most powerpc-linux boxes support dynamic linking these days and
5875   # people can always --disable-shared, the test was removed, and we
5876   # assume the GNU/Linux dynamic linker is in use.
5877   dynamic_linker='GNU/Linux ld.so'
5878   ;;
5879
5880 netbsd*)
5881   version_type=sunos
5882   need_lib_prefix=no
5883   need_version=no
5884   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5885     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5886     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5887     dynamic_linker='NetBSD (a.out) ld.so'
5888   else
5889     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5890     soname_spec='${libname}${release}.so$major'
5891     dynamic_linker='NetBSD ld.elf_so'
5892   fi
5893   shlibpath_var=LD_LIBRARY_PATH
5894   shlibpath_overrides_runpath=yes
5895   hardcode_into_libs=yes
5896   ;;
5897
5898 newsos6)
5899   version_type=linux
5900   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5901   shlibpath_var=LD_LIBRARY_PATH
5902   shlibpath_overrides_runpath=yes
5903   ;;
5904
5905 openbsd*)
5906   version_type=sunos
5907   need_lib_prefix=no
5908   need_version=no
5909   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5910     case "$host_os" in
5911     openbsd2.[89] | openbsd2.[89].*)
5912       shlibpath_overrides_runpath=no
5913       ;;
5914     *)
5915       shlibpath_overrides_runpath=yes
5916       ;;
5917     esac
5918   else
5919     shlibpath_overrides_runpath=yes
5920   fi
5921   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5923   shlibpath_var=LD_LIBRARY_PATH
5924   ;;
5925
5926 os2*)
5927   libname_spec='$name'
5928   need_lib_prefix=no
5929   library_names_spec='$libname.dll $libname.a'
5930   dynamic_linker='OS/2 ld.exe'
5931   shlibpath_var=LIBPATH
5932   ;;
5933
5934 osf3* | osf4* | osf5*)
5935   version_type=osf
5936   need_version=no
5937   need_lib_prefix=no
5938   soname_spec='${libname}${release}.so'
5939   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5940   shlibpath_var=LD_LIBRARY_PATH
5941   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5942   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5943   ;;
5944
5945 sco3.2v5*)
5946   version_type=osf
5947   soname_spec='${libname}${release}.so$major'
5948   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5949   shlibpath_var=LD_LIBRARY_PATH
5950   ;;
5951
5952 solaris*)
5953   version_type=linux
5954   need_lib_prefix=no
5955   need_version=no
5956   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5957   soname_spec='${libname}${release}.so$major'
5958   shlibpath_var=LD_LIBRARY_PATH
5959   shlibpath_overrides_runpath=yes
5960   hardcode_into_libs=yes
5961   # ldd complains unless libraries are executable
5962   postinstall_cmds='chmod +x $lib'
5963   ;;
5964
5965 sunos4*)
5966   version_type=sunos
5967   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5968   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5969   shlibpath_var=LD_LIBRARY_PATH
5970   shlibpath_overrides_runpath=yes
5971   if test "$with_gnu_ld" = yes; then
5972     need_lib_prefix=no
5973   fi
5974   need_version=yes
5975   ;;
5976
5977 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5978   version_type=linux
5979   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5980   soname_spec='${libname}${release}.so$major'
5981   shlibpath_var=LD_LIBRARY_PATH
5982   case $host_vendor in
5983     sni)
5984       shlibpath_overrides_runpath=no
5985       ;;
5986     motorola)
5987       need_lib_prefix=no
5988       need_version=no
5989       shlibpath_overrides_runpath=no
5990       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5991       ;;
5992   esac
5993   ;;
5994
5995 uts4*)
5996   version_type=linux
5997   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5998   soname_spec='${libname}${release}.so$major'
5999   shlibpath_var=LD_LIBRARY_PATH
6000   ;;
6001
6002 dgux*)
6003   version_type=linux
6004   need_lib_prefix=no
6005   need_version=no
6006   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6007   soname_spec='${libname}${release}.so$major'
6008   shlibpath_var=LD_LIBRARY_PATH
6009   ;;
6010
6011 sysv4*MP*)
6012   if test -d /usr/nec ;then
6013     version_type=linux
6014     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6015     soname_spec='$libname.so.$major'
6016     shlibpath_var=LD_LIBRARY_PATH
6017   fi
6018   ;;
6019
6020 *)
6021   dynamic_linker=no
6022   ;;
6023 esac
6024 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6025 echo "${ECHO_T}$dynamic_linker" >&6
6026 test "$dynamic_linker" = no && can_build_shared=no
6027
6028 # Report the final consequences.
6029 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6030 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6031 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6032 echo "${ECHO_T}$can_build_shared" >&6
6033
6034 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6035 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6036 test "$can_build_shared" = "no" && enable_shared=no
6037
6038 # On AIX, shared libraries and static libraries use the same namespace, and
6039 # are all built from PIC.
6040 case "$host_os" in
6041 aix3*)
6042   test "$enable_shared" = yes && enable_static=no
6043   if test -n "$RANLIB"; then
6044     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6045     postinstall_cmds='$RANLIB $lib'
6046   fi
6047   ;;
6048
6049 aix4*)
6050   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6051     test "$enable_shared" = yes && enable_static=no
6052   fi
6053   ;;
6054 esac
6055 echo "$as_me:$LINENO: result: $enable_shared" >&5
6056 echo "${ECHO_T}$enable_shared" >&6
6057
6058 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6059 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6060 # Make sure either enable_shared or enable_static is yes.
6061 test "$enable_shared" = yes || enable_static=yes
6062 echo "$as_me:$LINENO: result: $enable_static" >&5
6063 echo "${ECHO_T}$enable_static" >&6
6064
6065 if test "$hardcode_action" = relink; then
6066   # Fast installation is not supported
6067   enable_fast_install=no
6068 elif test "$shlibpath_overrides_runpath" = yes ||
6069      test "$enable_shared" = no; then
6070   # Fast installation is not necessary
6071   enable_fast_install=needless
6072 fi
6073
6074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6075 if test "$GCC" = yes; then
6076   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6077 fi
6078
6079 if test "x$enable_dlopen" != xyes; then
6080   enable_dlopen=unknown
6081   enable_dlopen_self=unknown
6082   enable_dlopen_self_static=unknown
6083 else
6084   lt_cv_dlopen=no
6085   lt_cv_dlopen_libs=
6086
6087   case $host_os in
6088   beos*)
6089     lt_cv_dlopen="load_add_on"
6090     lt_cv_dlopen_libs=
6091     lt_cv_dlopen_self=yes
6092     ;;
6093
6094   cygwin* | mingw* | pw32*)
6095     lt_cv_dlopen="LoadLibrary"
6096     lt_cv_dlopen_libs=
6097    ;;
6098
6099   *)
6100     echo "$as_me:$LINENO: checking for shl_load" >&5
6101 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6102 if test "${ac_cv_func_shl_load+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   cat >conftest.$ac_ext <<_ACEOF
6106 #line $LINENO "configure"
6107 #include "confdefs.h"
6108 /* System header to define __stub macros and hopefully few prototypes,
6109     which can conflict with char shl_load (); below.  */
6110 #include <assert.h>
6111 /* Override any gcc2 internal prototype to avoid an error.  */
6112 #ifdef __cplusplus
6113 extern "C"
6114 #endif
6115 /* We use char because int might match the return type of a gcc2
6116    builtin and then its argument prototype would still apply.  */
6117 char shl_load ();
6118 char (*f) ();
6119
6120 #ifdef F77_DUMMY_MAIN
6121 #  ifdef __cplusplus
6122      extern "C"
6123 #  endif
6124    int F77_DUMMY_MAIN() { return 1; }
6125 #endif
6126 int
6127 main ()
6128 {
6129 /* The GNU C library defines this for functions which it implements
6130     to always fail with ENOSYS.  Some functions are actually named
6131     something starting with __ and the normal name is an alias.  */
6132 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6133 choke me
6134 #else
6135 f = shl_load;
6136 #endif
6137
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 rm -f conftest.$ac_objext conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144   (eval $ac_link) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } &&
6148          { ac_try='test -s conftest$ac_exeext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_cv_func_shl_load=yes
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6158 ac_cv_func_shl_load=no
6159 fi
6160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6161 fi
6162 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6163 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6164 if test $ac_cv_func_shl_load = yes; then
6165   lt_cv_dlopen="shl_load"
6166 else
6167   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6168 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6169 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   ac_check_lib_save_LIBS=$LIBS
6173 LIBS="-ldld  $LIBS"
6174 cat >conftest.$ac_ext <<_ACEOF
6175 #line $LINENO "configure"
6176 #include "confdefs.h"
6177
6178 /* Override any gcc2 internal prototype to avoid an error.  */
6179 #ifdef __cplusplus
6180 extern "C"
6181 #endif
6182 /* We use char because int might match the return type of a gcc2
6183    builtin and then its argument prototype would still apply.  */
6184 char shl_load ();
6185 #ifdef F77_DUMMY_MAIN
6186 #  ifdef __cplusplus
6187      extern "C"
6188 #  endif
6189    int F77_DUMMY_MAIN() { return 1; }
6190 #endif
6191 int
6192 main ()
6193 {
6194 shl_load ();
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6201   (eval $ac_link) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); } &&
6205          { ac_try='test -s conftest$ac_exeext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   ac_cv_lib_dld_shl_load=yes
6212 else
6213   echo "$as_me: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6215 ac_cv_lib_dld_shl_load=no
6216 fi
6217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6218 LIBS=$ac_check_lib_save_LIBS
6219 fi
6220 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6221 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6222 if test $ac_cv_lib_dld_shl_load = yes; then
6223   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6224 else
6225   echo "$as_me:$LINENO: checking for dlopen" >&5
6226 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6227 if test "${ac_cv_func_dlopen+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   cat >conftest.$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6232 #include "confdefs.h"
6233 /* System header to define __stub macros and hopefully few prototypes,
6234     which can conflict with char dlopen (); below.  */
6235 #include <assert.h>
6236 /* Override any gcc2 internal prototype to avoid an error.  */
6237 #ifdef __cplusplus
6238 extern "C"
6239 #endif
6240 /* We use char because int might match the return type of a gcc2
6241    builtin and then its argument prototype would still apply.  */
6242 char dlopen ();
6243 char (*f) ();
6244
6245 #ifdef F77_DUMMY_MAIN
6246 #  ifdef __cplusplus
6247      extern "C"
6248 #  endif
6249    int F77_DUMMY_MAIN() { return 1; }
6250 #endif
6251 int
6252 main ()
6253 {
6254 /* The GNU C library defines this for functions which it implements
6255     to always fail with ENOSYS.  Some functions are actually named
6256     something starting with __ and the normal name is an alias.  */
6257 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6258 choke me
6259 #else
6260 f = dlopen;
6261 #endif
6262
6263   ;
6264   return 0;
6265 }
6266 _ACEOF
6267 rm -f conftest.$ac_objext conftest$ac_exeext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6269   (eval $ac_link) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); } &&
6273          { ac_try='test -s conftest$ac_exeext'
6274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275   (eval $ac_try) 2>&5
6276   ac_status=$?
6277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); }; }; then
6279   ac_cv_func_dlopen=yes
6280 else
6281   echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6283 ac_cv_func_dlopen=no
6284 fi
6285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6286 fi
6287 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6288 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6289 if test $ac_cv_func_dlopen = yes; then
6290   lt_cv_dlopen="dlopen"
6291 else
6292   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6293 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6294 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6295   echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297   ac_check_lib_save_LIBS=$LIBS
6298 LIBS="-ldl  $LIBS"
6299 cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6301 #include "confdefs.h"
6302
6303 /* Override any gcc2 internal prototype to avoid an error.  */
6304 #ifdef __cplusplus
6305 extern "C"
6306 #endif
6307 /* We use char because int might match the return type of a gcc2
6308    builtin and then its argument prototype would still apply.  */
6309 char dlopen ();
6310 #ifdef F77_DUMMY_MAIN
6311 #  ifdef __cplusplus
6312      extern "C"
6313 #  endif
6314    int F77_DUMMY_MAIN() { return 1; }
6315 #endif
6316 int
6317 main ()
6318 {
6319 dlopen ();
6320   ;
6321   return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326   (eval $ac_link) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } &&
6330          { ac_try='test -s conftest$ac_exeext'
6331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332   (eval $ac_try) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; }; then
6336   ac_cv_lib_dl_dlopen=yes
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 ac_cv_lib_dl_dlopen=no
6341 fi
6342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6343 LIBS=$ac_check_lib_save_LIBS
6344 fi
6345 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6346 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6347 if test $ac_cv_lib_dl_dlopen = yes; then
6348   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6349 else
6350   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6351 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6352 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   ac_check_lib_save_LIBS=$LIBS
6356 LIBS="-lsvld  $LIBS"
6357 cat >conftest.$ac_ext <<_ACEOF
6358 #line $LINENO "configure"
6359 #include "confdefs.h"
6360
6361 /* Override any gcc2 internal prototype to avoid an error.  */
6362 #ifdef __cplusplus
6363 extern "C"
6364 #endif
6365 /* We use char because int might match the return type of a gcc2
6366    builtin and then its argument prototype would still apply.  */
6367 char dlopen ();
6368 #ifdef F77_DUMMY_MAIN
6369 #  ifdef __cplusplus
6370      extern "C"
6371 #  endif
6372    int F77_DUMMY_MAIN() { return 1; }
6373 #endif
6374 int
6375 main ()
6376 {
6377 dlopen ();
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384   (eval $ac_link) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } &&
6388          { ac_try='test -s conftest$ac_exeext'
6389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390   (eval $ac_try) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); }; }; then
6394   ac_cv_lib_svld_dlopen=yes
6395 else
6396   echo "$as_me: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6398 ac_cv_lib_svld_dlopen=no
6399 fi
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 LIBS=$ac_check_lib_save_LIBS
6402 fi
6403 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6404 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6405 if test $ac_cv_lib_svld_dlopen = yes; then
6406   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6407 else
6408   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6409 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6410 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413   ac_check_lib_save_LIBS=$LIBS
6414 LIBS="-ldld  $LIBS"
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6418
6419 /* Override any gcc2 internal prototype to avoid an error.  */
6420 #ifdef __cplusplus
6421 extern "C"
6422 #endif
6423 /* We use char because int might match the return type of a gcc2
6424    builtin and then its argument prototype would still apply.  */
6425 char dld_link ();
6426 #ifdef F77_DUMMY_MAIN
6427 #  ifdef __cplusplus
6428      extern "C"
6429 #  endif
6430    int F77_DUMMY_MAIN() { return 1; }
6431 #endif
6432 int
6433 main ()
6434 {
6435 dld_link ();
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442   (eval $ac_link) 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); } &&
6446          { ac_try='test -s conftest$ac_exeext'
6447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448   (eval $ac_try) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }; }; then
6452   ac_cv_lib_dld_dld_link=yes
6453 else
6454   echo "$as_me: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6456 ac_cv_lib_dld_dld_link=no
6457 fi
6458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6459 LIBS=$ac_check_lib_save_LIBS
6460 fi
6461 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6462 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6463 if test $ac_cv_lib_dld_dld_link = yes; then
6464   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6465 fi
6466
6467
6468 fi
6469
6470
6471 fi
6472
6473
6474 fi
6475
6476
6477 fi
6478
6479
6480 fi
6481
6482     ;;
6483   esac
6484
6485   if test "x$lt_cv_dlopen" != xno; then
6486     enable_dlopen=yes
6487   else
6488     enable_dlopen=no
6489   fi
6490
6491   case $lt_cv_dlopen in
6492   dlopen)
6493     save_CPPFLAGS="$CPPFLAGS"
6494         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6495
6496     save_LDFLAGS="$LDFLAGS"
6497     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6498
6499     save_LIBS="$LIBS"
6500     LIBS="$lt_cv_dlopen_libs $LIBS"
6501
6502     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6503 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6504 if test "${lt_cv_dlopen_self+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507           if test "$cross_compiling" = yes; then :
6508   lt_cv_dlopen_self=cross
6509 else
6510     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6511   lt_status=$lt_dlunknown
6512   cat > conftest.$ac_ext <<EOF
6513 #line 6513 "configure"
6514 #include "confdefs.h"
6515
6516 #if HAVE_DLFCN_H
6517 #include <dlfcn.h>
6518 #endif
6519
6520 #include <stdio.h>
6521
6522 #ifdef RTLD_GLOBAL
6523 #  define LT_DLGLOBAL           RTLD_GLOBAL
6524 #else
6525 #  ifdef DL_GLOBAL
6526 #    define LT_DLGLOBAL         DL_GLOBAL
6527 #  else
6528 #    define LT_DLGLOBAL         0
6529 #  endif
6530 #endif
6531
6532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6533    find out it does not work in some platform. */
6534 #ifndef LT_DLLAZY_OR_NOW
6535 #  ifdef RTLD_LAZY
6536 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6537 #  else
6538 #    ifdef DL_LAZY
6539 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6540 #    else
6541 #      ifdef RTLD_NOW
6542 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6543 #      else
6544 #        ifdef DL_NOW
6545 #          define LT_DLLAZY_OR_NOW      DL_NOW
6546 #        else
6547 #          define LT_DLLAZY_OR_NOW      0
6548 #        endif
6549 #      endif
6550 #    endif
6551 #  endif
6552 #endif
6553
6554 #ifdef __cplusplus
6555 extern "C" void exit (int);
6556 #endif
6557
6558 void fnord() { int i=42;}
6559 int main ()
6560 {
6561   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6562   int status = $lt_dlunknown;
6563
6564   if (self)
6565     {
6566       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6567       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6568       /* dlclose (self); */
6569     }
6570
6571     exit (status);
6572 }
6573 EOF
6574   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575   (eval $ac_link) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6579     (./conftest; exit; ) 2>/dev/null
6580     lt_status=$?
6581     case x$lt_status in
6582       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6583       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6584       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6585     esac
6586   else :
6587     # compilation failed
6588     lt_cv_dlopen_self=no
6589   fi
6590 fi
6591 rm -fr conftest*
6592
6593
6594 fi
6595 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6596 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6597
6598     if test "x$lt_cv_dlopen_self" = xyes; then
6599       LDFLAGS="$LDFLAGS $link_static_flag"
6600       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6601 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6602 if test "${lt_cv_dlopen_self_static+set}" = set; then
6603   echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605           if test "$cross_compiling" = yes; then :
6606   lt_cv_dlopen_self_static=cross
6607 else
6608     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6609   lt_status=$lt_dlunknown
6610   cat > conftest.$ac_ext <<EOF
6611 #line 6611 "configure"
6612 #include "confdefs.h"
6613
6614 #if HAVE_DLFCN_H
6615 #include <dlfcn.h>
6616 #endif
6617
6618 #include <stdio.h>
6619
6620 #ifdef RTLD_GLOBAL
6621 #  define LT_DLGLOBAL           RTLD_GLOBAL
6622 #else
6623 #  ifdef DL_GLOBAL
6624 #    define LT_DLGLOBAL         DL_GLOBAL
6625 #  else
6626 #    define LT_DLGLOBAL         0
6627 #  endif
6628 #endif
6629
6630 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6631    find out it does not work in some platform. */
6632 #ifndef LT_DLLAZY_OR_NOW
6633 #  ifdef RTLD_LAZY
6634 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6635 #  else
6636 #    ifdef DL_LAZY
6637 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6638 #    else
6639 #      ifdef RTLD_NOW
6640 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6641 #      else
6642 #        ifdef DL_NOW
6643 #          define LT_DLLAZY_OR_NOW      DL_NOW
6644 #        else
6645 #          define LT_DLLAZY_OR_NOW      0
6646 #        endif
6647 #      endif
6648 #    endif
6649 #  endif
6650 #endif
6651
6652 #ifdef __cplusplus
6653 extern "C" void exit (int);
6654 #endif
6655
6656 void fnord() { int i=42;}
6657 int main ()
6658 {
6659   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6660   int status = $lt_dlunknown;
6661
6662   if (self)
6663     {
6664       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6665       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6666       /* dlclose (self); */
6667     }
6668
6669     exit (status);
6670 }
6671 EOF
6672   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673   (eval $ac_link) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6677     (./conftest; exit; ) 2>/dev/null
6678     lt_status=$?
6679     case x$lt_status in
6680       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6681       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6682       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6683     esac
6684   else :
6685     # compilation failed
6686     lt_cv_dlopen_self_static=no
6687   fi
6688 fi
6689 rm -fr conftest*
6690
6691
6692 fi
6693 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6694 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6695     fi
6696
6697     CPPFLAGS="$save_CPPFLAGS"
6698     LDFLAGS="$save_LDFLAGS"
6699     LIBS="$save_LIBS"
6700     ;;
6701   esac
6702
6703   case $lt_cv_dlopen_self in
6704   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6705   *) enable_dlopen_self=unknown ;;
6706   esac
6707
6708   case $lt_cv_dlopen_self_static in
6709   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6710   *) enable_dlopen_self_static=unknown ;;
6711   esac
6712 fi
6713
6714
6715 if test "$enable_shared" = yes && test "$GCC" = yes; then
6716   case $archive_cmds in
6717   *'~'*)
6718     # FIXME: we may have to deal with multi-command sequences.
6719     ;;
6720   '$CC '*)
6721     # Test whether the compiler implicitly links with -lc since on some
6722     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6723     # to ld, don't add -lc before -lgcc.
6724     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6726     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6727   echo $ECHO_N "(cached) $ECHO_C" >&6
6728 else
6729   $rm conftest*
6730     echo 'static int dummy;' > conftest.$ac_ext
6731
6732     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733   (eval $ac_compile) 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); }; then
6737       soname=conftest
6738       lib=conftest
6739       libobjs=conftest.$ac_objext
6740       deplibs=
6741       wl=$lt_cv_prog_cc_wl
6742       compiler_flags=-v
6743       linker_flags=-v
6744       verstring=
6745       output_objdir=.
6746       libname=conftest
6747       save_allow_undefined_flag=$allow_undefined_flag
6748       allow_undefined_flag=
6749       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6750   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6751   ac_status=$?
6752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753   (exit $ac_status); }
6754       then
6755         lt_cv_archive_cmds_need_lc=no
6756       else
6757         lt_cv_archive_cmds_need_lc=yes
6758       fi
6759       allow_undefined_flag=$save_allow_undefined_flag
6760     else
6761       cat conftest.err 1>&5
6762     fi
6763 fi
6764
6765     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6766 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6767     ;;
6768   esac
6769 fi
6770 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6771
6772 # The second clause should only fire when bootstrapping the
6773 # libtool distribution, otherwise you forgot to ship ltmain.sh
6774 # with your package, and you will get complaints that there are
6775 # no rules to generate ltmain.sh.
6776 if test -f "$ltmain"; then
6777   :
6778 else
6779   # If there is no Makefile yet, we rely on a make rule to execute
6780   # `config.status --recheck' to rerun these tests and create the
6781   # libtool script then.
6782   test -f Makefile && make "$ltmain"
6783 fi
6784
6785 if test -f "$ltmain"; then
6786   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6787   $rm -f "${ofile}T"
6788
6789   echo creating $ofile
6790
6791   # Now quote all the things that may contain metacharacters while being
6792   # careful not to overquote the AC_SUBSTed values.  We take copies of the
6793   # variables and quote the copies for generation of the libtool script.
6794   for var in echo old_CC old_CFLAGS \
6795     AR AR_FLAGS CC LD LN_S NM SHELL \
6796     reload_flag reload_cmds wl \
6797     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6798     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6799     library_names_spec soname_spec \
6800     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6801     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6802     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6803     old_striplib striplib file_magic_cmd export_symbols_cmds \
6804     deplibs_check_method allow_undefined_flag no_undefined_flag \
6805     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6806     global_symbol_to_c_name_address \
6807     hardcode_libdir_flag_spec hardcode_libdir_separator  \
6808     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6809     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6810
6811     case $var in
6812     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6813     old_postinstall_cmds | old_postuninstall_cmds | \
6814     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6815     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6816     postinstall_cmds | postuninstall_cmds | \
6817     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6818       # Double-quote double-evaled strings.
6819       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6820       ;;
6821     *)
6822       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6823       ;;
6824     esac
6825   done
6826
6827   cat <<__EOF__ > "${ofile}T"
6828 #! $SHELL
6829
6830 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6831 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6833 #
6834 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6835 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6836 #
6837 # This program is free software; you can redistribute it and/or modify
6838 # it under the terms of the GNU General Public License as published by
6839 # the Free Software Foundation; either version 2 of the License, or
6840 # (at your option) any later version.
6841 #
6842 # This program is distributed in the hope that it will be useful, but
6843 # WITHOUT ANY WARRANTY; without even the implied warranty of
6844 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6845 # General Public License for more details.
6846 #
6847 # You should have received a copy of the GNU General Public License
6848 # along with this program; if not, write to the Free Software
6849 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6850 #
6851 # As a special exception to the GNU General Public License, if you
6852 # distribute this file as part of a program that contains a
6853 # configuration script generated by Autoconf, you may include it under
6854 # the same distribution terms that you use for the rest of that program.
6855
6856 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6857 Xsed="sed -e s/^X//"
6858
6859 # The HP-UX ksh and POSIX shell print the target directory to stdout
6860 # if CDPATH is set.
6861 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6862
6863 # ### BEGIN LIBTOOL CONFIG
6864
6865 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6866
6867 # Shell to use when invoking shell scripts.
6868 SHELL=$lt_SHELL
6869
6870 # Whether or not to build shared libraries.
6871 build_libtool_libs=$enable_shared
6872
6873 # Whether or not to build static libraries.
6874 build_old_libs=$enable_static
6875
6876 # Whether or not to add -lc for building shared libraries.
6877 build_libtool_need_lc=$need_lc
6878
6879 # Whether or not to optimize for fast installation.
6880 fast_install=$enable_fast_install
6881
6882 # The host system.
6883 host_alias=$host_alias
6884 host=$host
6885
6886 # An echo program that does not interpret backslashes.
6887 echo=$lt_echo
6888
6889 # The archiver.
6890 AR=$lt_AR
6891 AR_FLAGS=$lt_AR_FLAGS
6892
6893 # The default C compiler.
6894 CC=$lt_CC
6895
6896 # Is the compiler the GNU C compiler?
6897 with_gcc=$GCC
6898
6899 # The linker used to build libraries.
6900 LD=$lt_LD
6901
6902 # Whether we need hard or soft links.
6903 LN_S=$lt_LN_S
6904
6905 # A BSD-compatible nm program.
6906 NM=$lt_NM
6907
6908 # A symbol stripping program
6909 STRIP=$STRIP
6910
6911 # Used to examine libraries when file_magic_cmd begins "file"
6912 MAGIC_CMD=$MAGIC_CMD
6913
6914 # Used on cygwin: DLL creation program.
6915 DLLTOOL="$DLLTOOL"
6916
6917 # Used on cygwin: object dumper.
6918 OBJDUMP="$OBJDUMP"
6919
6920 # Used on cygwin: assembler.
6921 AS="$AS"
6922
6923 # The name of the directory that contains temporary libtool files.
6924 objdir=$objdir
6925
6926 # How to create reloadable object files.
6927 reload_flag=$lt_reload_flag
6928 reload_cmds=$lt_reload_cmds
6929
6930 # How to pass a linker flag through the compiler.
6931 wl=$lt_wl
6932
6933 # Object file suffix (normally "o").
6934 objext="$ac_objext"
6935
6936 # Old archive suffix (normally "a").
6937 libext="$libext"
6938
6939 # Executable file suffix (normally "").
6940 exeext="$exeext"
6941
6942 # Additional compiler flags for building library objects.
6943 pic_flag=$lt_pic_flag
6944 pic_mode=$pic_mode
6945
6946 # Does compiler simultaneously support -c and -o options?
6947 compiler_c_o=$lt_compiler_c_o
6948
6949 # Can we write directly to a .lo ?
6950 compiler_o_lo=$lt_compiler_o_lo
6951
6952 # Must we lock files when doing compilation ?
6953 need_locks=$lt_need_locks
6954
6955 # Do we need the lib prefix for modules?
6956 need_lib_prefix=$need_lib_prefix
6957
6958 # Do we need a version for libraries?
6959 need_version=$need_version
6960
6961 # Whether dlopen is supported.
6962 dlopen_support=$enable_dlopen
6963
6964 # Whether dlopen of programs is supported.
6965 dlopen_self=$enable_dlopen_self
6966
6967 # Whether dlopen of statically linked programs is supported.
6968 dlopen_self_static=$enable_dlopen_self_static
6969
6970 # Compiler flag to prevent dynamic linking.
6971 link_static_flag=$lt_link_static_flag
6972
6973 # Compiler flag to turn off builtin functions.
6974 no_builtin_flag=$lt_no_builtin_flag
6975
6976 # Compiler flag to allow reflexive dlopens.
6977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6978
6979 # Compiler flag to generate shared objects directly from archives.
6980 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6981
6982 # Compiler flag to generate thread-safe objects.
6983 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6984
6985 # Library versioning type.
6986 version_type=$version_type
6987
6988 # Format of library name prefix.
6989 libname_spec=$lt_libname_spec
6990
6991 # List of archive names.  First name is the real one, the rest are links.
6992 # The last name is the one that the linker finds with -lNAME.
6993 library_names_spec=$lt_library_names_spec
6994
6995 # The coded name of the library, if different from the real name.
6996 soname_spec=$lt_soname_spec
6997
6998 # Commands used to build and install an old-style archive.
6999 RANLIB=$lt_RANLIB
7000 old_archive_cmds=$lt_old_archive_cmds
7001 old_postinstall_cmds=$lt_old_postinstall_cmds
7002 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7003
7004 # Create an old-style archive from a shared archive.
7005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7006
7007 # Create a temporary old-style archive to link instead of a shared archive.
7008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7009
7010 # Commands used to build and install a shared archive.
7011 archive_cmds=$lt_archive_cmds
7012 archive_expsym_cmds=$lt_archive_expsym_cmds
7013 postinstall_cmds=$lt_postinstall_cmds
7014 postuninstall_cmds=$lt_postuninstall_cmds
7015
7016 # Commands to strip libraries.
7017 old_striplib=$lt_old_striplib
7018 striplib=$lt_striplib
7019
7020 # Method to check whether dependent libraries are shared objects.
7021 deplibs_check_method=$lt_deplibs_check_method
7022
7023 # Command to use when deplibs_check_method == file_magic.
7024 file_magic_cmd=$lt_file_magic_cmd
7025
7026 # Flag that allows shared libraries with undefined symbols to be built.
7027 allow_undefined_flag=$lt_allow_undefined_flag
7028
7029 # Flag that forces no undefined symbols.
7030 no_undefined_flag=$lt_no_undefined_flag
7031
7032 # Commands used to finish a libtool library installation in a directory.
7033 finish_cmds=$lt_finish_cmds
7034
7035 # Same as above, but a single script fragment to be evaled but not shown.
7036 finish_eval=$lt_finish_eval
7037
7038 # Take the output of nm and produce a listing of raw symbols and C names.
7039 global_symbol_pipe=$lt_global_symbol_pipe
7040
7041 # Transform the output of nm in a proper C declaration
7042 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7043
7044 # Transform the output of nm in a C name address pair
7045 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7046
7047 # This is the shared library runtime path variable.
7048 runpath_var=$runpath_var
7049
7050 # This is the shared library path variable.
7051 shlibpath_var=$shlibpath_var
7052
7053 # Is shlibpath searched before the hard-coded library search path?
7054 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7055
7056 # How to hardcode a shared library path into an executable.
7057 hardcode_action=$hardcode_action
7058
7059 # Whether we should hardcode library paths into libraries.
7060 hardcode_into_libs=$hardcode_into_libs
7061
7062 # Flag to hardcode \$libdir into a binary during linking.
7063 # This must work even if \$libdir does not exist.
7064 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7065
7066 # Whether we need a single -rpath flag with a separated argument.
7067 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7068
7069 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7070 # resulting binary.
7071 hardcode_direct=$hardcode_direct
7072
7073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7074 # resulting binary.
7075 hardcode_minus_L=$hardcode_minus_L
7076
7077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7078 # the resulting binary.
7079 hardcode_shlibpath_var=$hardcode_shlibpath_var
7080
7081 # Variables whose values should be saved in libtool wrapper scripts and
7082 # restored at relink time.
7083 variables_saved_for_relink="$variables_saved_for_relink"
7084
7085 # Whether libtool must link a program against all its dependency libraries.
7086 link_all_deplibs=$link_all_deplibs
7087
7088 # Compile-time system search path for libraries
7089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7090
7091 # Run-time system search path for libraries
7092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7093
7094 # Fix the shell variable \$srcfile for the compiler.
7095 fix_srcfile_path="$fix_srcfile_path"
7096
7097 # Set to yes if exported symbols are required.
7098 always_export_symbols=$always_export_symbols
7099
7100 # The commands to list exported symbols.
7101 export_symbols_cmds=$lt_export_symbols_cmds
7102
7103 # The commands to extract the exported symbol list from a shared archive.
7104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7105
7106 # Symbols that should not be listed in the preloaded symbols.
7107 exclude_expsyms=$lt_exclude_expsyms
7108
7109 # Symbols that must always be exported.
7110 include_expsyms=$lt_include_expsyms
7111
7112 # ### END LIBTOOL CONFIG
7113
7114 __EOF__
7115
7116   case $host_os in
7117   aix3*)
7118     cat <<\EOF >> "${ofile}T"
7119
7120 # AIX sometimes has problems with the GCC collect2 program.  For some
7121 # reason, if we set the COLLECT_NAMES environment variable, the problems
7122 # vanish in a puff of smoke.
7123 if test "X${COLLECT_NAMES+set}" != Xset; then
7124   COLLECT_NAMES=
7125   export COLLECT_NAMES
7126 fi
7127 EOF
7128     ;;
7129   esac
7130
7131   case $host_os in
7132   cygwin* | mingw* | pw32* | os2*)
7133     cat <<'EOF' >> "${ofile}T"
7134       # This is a source program that is used to create dlls on Windows
7135       # Don't remove nor modify the starting and closing comments
7136 # /* ltdll.c starts here */
7137 # #define WIN32_LEAN_AND_MEAN
7138 # #include <windows.h>
7139 # #undef WIN32_LEAN_AND_MEAN
7140 # #include <stdio.h>
7141 #
7142 # #ifndef __CYGWIN__
7143 # #  ifdef __CYGWIN32__
7144 # #    define __CYGWIN__ __CYGWIN32__
7145 # #  endif
7146 # #endif
7147 #
7148 # #ifdef __cplusplus
7149 # extern "C" {
7150 # #endif
7151 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7152 # #ifdef __cplusplus
7153 # }
7154 # #endif
7155 #
7156 # #ifdef __CYGWIN__
7157 # #include <cygwin/cygwin_dll.h>
7158 # DECLARE_CYGWIN_DLL( DllMain );
7159 # #endif
7160 # HINSTANCE __hDllInstance_base;
7161 #
7162 # BOOL APIENTRY
7163 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7164 # {
7165 #   __hDllInstance_base = hInst;
7166 #   return TRUE;
7167 # }
7168 # /* ltdll.c ends here */
7169         # This is a source program that is used to create import libraries
7170         # on Windows for dlls which lack them. Don't remove nor modify the
7171         # starting and closing comments
7172 # /* impgen.c starts here */
7173 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7174 #
7175 #  This file is part of GNU libtool.
7176 #
7177 #  This program is free software; you can redistribute it and/or modify
7178 #  it under the terms of the GNU General Public License as published by
7179 #  the Free Software Foundation; either version 2 of the License, or
7180 #  (at your option) any later version.
7181 #
7182 #  This program is distributed in the hope that it will be useful,
7183 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7184 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7185 #  GNU General Public License for more details.
7186 #
7187 #  You should have received a copy of the GNU General Public License
7188 #  along with this program; if not, write to the Free Software
7189 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7190 #  */
7191 #
7192 # #include <stdio.h>            /* for printf() */
7193 # #include <unistd.h>           /* for open(), lseek(), read() */
7194 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7195 # #include <string.h>           /* for strdup() */
7196 #
7197 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7198 # #ifndef O_BINARY
7199 # #define O_BINARY 0
7200 # #endif
7201 #
7202 # static unsigned int
7203 # pe_get16 (fd, offset)
7204 #      int fd;
7205 #      int offset;
7206 # {
7207 #   unsigned char b[2];
7208 #   lseek (fd, offset, SEEK_SET);
7209 #   read (fd, b, 2);
7210 #   return b[0] + (b[1]<<8);
7211 # }
7212 #
7213 # static unsigned int
7214 # pe_get32 (fd, offset)
7215 #     int fd;
7216 #     int offset;
7217 # {
7218 #   unsigned char b[4];
7219 #   lseek (fd, offset, SEEK_SET);
7220 #   read (fd, b, 4);
7221 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7222 # }
7223 #
7224 # static unsigned int
7225 # pe_as32 (ptr)
7226 #      void *ptr;
7227 # {
7228 #   unsigned char *b = ptr;
7229 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7230 # }
7231 #
7232 # int
7233 # main (argc, argv)
7234 #     int argc;
7235 #     char *argv[];
7236 # {
7237 #     int dll;
7238 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7239 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7240 #     unsigned long name_rvas, nexp;
7241 #     unsigned char *expdata, *erva;
7242 #     char *filename, *dll_name;
7243 #
7244 #     filename = argv[1];
7245 #
7246 #     dll = open(filename, O_RDONLY|O_BINARY);
7247 #     if (dll < 1)
7248 #       return 1;
7249 #
7250 #     dll_name = filename;
7251 #
7252 #     for (i=0; filename[i]; i++)
7253 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7254 #           dll_name = filename + i +1;
7255 #
7256 #     pe_header_offset = pe_get32 (dll, 0x3c);
7257 #     opthdr_ofs = pe_header_offset + 4 + 20;
7258 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7259 #
7260 #     if (num_entries < 1) /* no exports */
7261 #       return 1;
7262 #
7263 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7264 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7265 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7266 #     secptr = (pe_header_offset + 4 + 20 +
7267 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7268 #
7269 #     expptr = 0;
7270 #     for (i = 0; i < nsections; i++)
7271 #     {
7272 #       char sname[8];
7273 #       unsigned long secptr1 = secptr + 40 * i;
7274 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7275 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7276 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7277 #       lseek(dll, secptr1, SEEK_SET);
7278 #       read(dll, sname, 8);
7279 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7280 #       {
7281 #           expptr = fptr + (export_rva - vaddr);
7282 #           if (export_rva + export_size > vaddr + vsize)
7283 #               export_size = vsize - (export_rva - vaddr);
7284 #           break;
7285 #       }
7286 #     }
7287 #
7288 #     expdata = (unsigned char*)malloc(export_size);
7289 #     lseek (dll, expptr, SEEK_SET);
7290 #     read (dll, expdata, export_size);
7291 #     erva = expdata - export_rva;
7292 #
7293 #     nexp = pe_as32 (expdata+24);
7294 #     name_rvas = pe_as32 (expdata+32);
7295 #
7296 #     printf ("EXPORTS\n");
7297 #     for (i = 0; i<nexp; i++)
7298 #     {
7299 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7300 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7301 #     }
7302 #
7303 #     return 0;
7304 # }
7305 # /* impgen.c ends here */
7306
7307 EOF
7308     ;;
7309   esac
7310
7311   # We use sed instead of cat because bash on DJGPP gets confused if
7312   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7313   # text mode, it properly converts lines to CR/LF.  This bash problem
7314   # is reportedly fixed, but why not run on old versions too?
7315   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7316
7317   mv -f "${ofile}T" "$ofile" || \
7318     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7319   chmod +x "$ofile"
7320 fi
7321
7322
7323
7324
7325
7326 # This can be used to rebuild libtool when needed
7327 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7328
7329 # Always use our own libtool.
7330 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7331
7332 # Prevent multiple expansion
7333
7334
7335 for ac_prog in 'bison -y' byacc
7336 do
7337   # Extract the first word of "$ac_prog", so it can be a program name with args.
7338 set dummy $ac_prog; ac_word=$2
7339 echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341 if test "${ac_cv_prog_YACC+set}" = set; then
7342   echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344   if test -n "$YACC"; then
7345   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352   for ac_exec_ext in '' $ac_executable_extensions; do
7353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354     ac_cv_prog_YACC="$ac_prog"
7355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356     break 2
7357   fi
7358 done
7359 done
7360
7361 fi
7362 fi
7363 YACC=$ac_cv_prog_YACC
7364 if test -n "$YACC"; then
7365   echo "$as_me:$LINENO: result: $YACC" >&5
7366 echo "${ECHO_T}$YACC" >&6
7367 else
7368   echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7370 fi
7371
7372   test -n "$YACC" && break
7373 done
7374 test -n "$YACC" || YACC="yacc"
7375
7376 ac_ext=c
7377 ac_cpp='$CPP $CPPFLAGS'
7378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381 if test -n "$ac_tool_prefix"; then
7382   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7384 echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386 if test "${ac_cv_prog_CC+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   if test -n "$CC"; then
7390   ac_cv_prog_CC="$CC" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397   for ac_exec_ext in '' $ac_executable_extensions; do
7398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399     ac_cv_prog_CC="${ac_tool_prefix}gcc"
7400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404 done
7405
7406 fi
7407 fi
7408 CC=$ac_cv_prog_CC
7409 if test -n "$CC"; then
7410   echo "$as_me:$LINENO: result: $CC" >&5
7411 echo "${ECHO_T}$CC" >&6
7412 else
7413   echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415 fi
7416
7417 fi
7418 if test -z "$ac_cv_prog_CC"; then
7419   ac_ct_CC=$CC
7420   # Extract the first word of "gcc", so it can be a program name with args.
7421 set dummy gcc; ac_word=$2
7422 echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   if test -n "$ac_ct_CC"; then
7428   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435   for ac_exec_ext in '' $ac_executable_extensions; do
7436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437     ac_cv_prog_ac_ct_CC="gcc"
7438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442 done
7443
7444 fi
7445 fi
7446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7447 if test -n "$ac_ct_CC"; then
7448   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7449 echo "${ECHO_T}$ac_ct_CC" >&6
7450 else
7451   echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6
7453 fi
7454
7455   CC=$ac_ct_CC
7456 else
7457   CC="$ac_cv_prog_CC"
7458 fi
7459
7460 if test -z "$CC"; then
7461   if test -n "$ac_tool_prefix"; then
7462   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}cc; ac_word=$2
7464 echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466 if test "${ac_cv_prog_CC+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   if test -n "$CC"; then
7470   ac_cv_prog_CC="$CC" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477   for ac_exec_ext in '' $ac_executable_extensions; do
7478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479     ac_cv_prog_CC="${ac_tool_prefix}cc"
7480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484 done
7485
7486 fi
7487 fi
7488 CC=$ac_cv_prog_CC
7489 if test -n "$CC"; then
7490   echo "$as_me:$LINENO: result: $CC" >&5
7491 echo "${ECHO_T}$CC" >&6
7492 else
7493   echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6
7495 fi
7496
7497 fi
7498 if test -z "$ac_cv_prog_CC"; then
7499   ac_ct_CC=$CC
7500   # Extract the first word of "cc", so it can be a program name with args.
7501 set dummy cc; ac_word=$2
7502 echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   if test -n "$ac_ct_CC"; then
7508   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515   for ac_exec_ext in '' $ac_executable_extensions; do
7516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517     ac_cv_prog_ac_ct_CC="cc"
7518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522 done
7523
7524 fi
7525 fi
7526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7527 if test -n "$ac_ct_CC"; then
7528   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7529 echo "${ECHO_T}$ac_ct_CC" >&6
7530 else
7531   echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7533 fi
7534
7535   CC=$ac_ct_CC
7536 else
7537   CC="$ac_cv_prog_CC"
7538 fi
7539
7540 fi
7541 if test -z "$CC"; then
7542   # Extract the first word of "cc", so it can be a program name with args.
7543 set dummy cc; ac_word=$2
7544 echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546 if test "${ac_cv_prog_CC+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549   if test -n "$CC"; then
7550   ac_cv_prog_CC="$CC" # Let the user override the test.
7551 else
7552   ac_prog_rejected=no
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556   IFS=$as_save_IFS
7557   test -z "$as_dir" && as_dir=.
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7561        ac_prog_rejected=yes
7562        continue
7563      fi
7564     ac_cv_prog_CC="cc"
7565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569 done
7570
7571 if test $ac_prog_rejected = yes; then
7572   # We found a bogon in the path, so make sure we never use it.
7573   set dummy $ac_cv_prog_CC
7574   shift
7575   if test $# != 0; then
7576     # We chose a different compiler from the bogus one.
7577     # However, it has the same basename, so the bogon will be chosen
7578     # first if we set CC to just the basename; use the full file name.
7579     shift
7580     set dummy "$as_dir/$ac_word" ${1+"$@"}
7581     shift
7582     ac_cv_prog_CC="$@"
7583   fi
7584 fi
7585 fi
7586 fi
7587 CC=$ac_cv_prog_CC
7588 if test -n "$CC"; then
7589   echo "$as_me:$LINENO: result: $CC" >&5
7590 echo "${ECHO_T}$CC" >&6
7591 else
7592   echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594 fi
7595
7596 fi
7597 if test -z "$CC"; then
7598   if test -n "$ac_tool_prefix"; then
7599   for ac_prog in cl
7600   do
7601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7603 echo "$as_me:$LINENO: checking for $ac_word" >&5
7604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7605 if test "${ac_cv_prog_CC+set}" = set; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   if test -n "$CC"; then
7609   ac_cv_prog_CC="$CC" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7613 do
7614   IFS=$as_save_IFS
7615   test -z "$as_dir" && as_dir=.
7616   for ac_exec_ext in '' $ac_executable_extensions; do
7617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620     break 2
7621   fi
7622 done
7623 done
7624
7625 fi
7626 fi
7627 CC=$ac_cv_prog_CC
7628 if test -n "$CC"; then
7629   echo "$as_me:$LINENO: result: $CC" >&5
7630 echo "${ECHO_T}$CC" >&6
7631 else
7632   echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6
7634 fi
7635
7636     test -n "$CC" && break
7637   done
7638 fi
7639 if test -z "$CC"; then
7640   ac_ct_CC=$CC
7641   for ac_prog in cl
7642 do
7643   # Extract the first word of "$ac_prog", so it can be a program name with args.
7644 set dummy $ac_prog; ac_word=$2
7645 echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7648   echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650   if test -n "$ac_ct_CC"; then
7651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7652 else
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660     ac_cv_prog_ac_ct_CC="$ac_prog"
7661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666
7667 fi
7668 fi
7669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7670 if test -n "$ac_ct_CC"; then
7671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7672 echo "${ECHO_T}$ac_ct_CC" >&6
7673 else
7674   echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7676 fi
7677
7678   test -n "$ac_ct_CC" && break
7679 done
7680
7681   CC=$ac_ct_CC
7682 fi
7683
7684 fi
7685
7686
7687 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
7688 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
7689    { (exit 1); exit 1; }; }
7690
7691 # Provide some information about the compiler.
7692 echo "$as_me:$LINENO:" \
7693      "checking for C compiler version" >&5
7694 ac_compiler=`set X $ac_compile; echo $2`
7695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7696   (eval $ac_compiler --version </dev/null >&5) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }
7700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7701   (eval $ac_compiler -v </dev/null >&5) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }
7705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7706   (eval $ac_compiler -V </dev/null >&5) 2>&5
7707   ac_status=$?
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); }
7710
7711 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7712 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7713 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7718 #include "confdefs.h"
7719
7720 #ifdef F77_DUMMY_MAIN
7721 #  ifdef __cplusplus
7722      extern "C"
7723 #  endif
7724    int F77_DUMMY_MAIN() { return 1; }
7725 #endif
7726 int
7727 main ()
7728 {
7729 #ifndef __GNUC__
7730        choke me
7731 #endif
7732
7733   ;
7734   return 0;
7735 }
7736 _ACEOF
7737 rm -f conftest.$ac_objext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739   (eval $ac_compile) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); } &&
7743          { ac_try='test -s conftest.$ac_objext'
7744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745   (eval $ac_try) 2>&5
7746   ac_status=$?
7747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748   (exit $ac_status); }; }; then
7749   ac_compiler_gnu=yes
7750 else
7751   echo "$as_me: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 ac_compiler_gnu=no
7754 fi
7755 rm -f conftest.$ac_objext conftest.$ac_ext
7756 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7757
7758 fi
7759 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7760 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7761 GCC=`test $ac_compiler_gnu = yes && echo yes`
7762 ac_test_CFLAGS=${CFLAGS+set}
7763 ac_save_CFLAGS=$CFLAGS
7764 CFLAGS="-g"
7765 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7766 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7767 if test "${ac_cv_prog_cc_g+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   cat >conftest.$ac_ext <<_ACEOF
7771 #line $LINENO "configure"
7772 #include "confdefs.h"
7773
7774 #ifdef F77_DUMMY_MAIN
7775 #  ifdef __cplusplus
7776      extern "C"
7777 #  endif
7778    int F77_DUMMY_MAIN() { return 1; }
7779 #endif
7780 int
7781 main ()
7782 {
7783
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790   (eval $ac_compile) 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } &&
7794          { ac_try='test -s conftest.$ac_objext'
7795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796   (eval $ac_try) 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; }; then
7800   ac_cv_prog_cc_g=yes
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7804 ac_cv_prog_cc_g=no
7805 fi
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7810 if test "$ac_test_CFLAGS" = set; then
7811   CFLAGS=$ac_save_CFLAGS
7812 elif test $ac_cv_prog_cc_g = yes; then
7813   if test "$GCC" = yes; then
7814     CFLAGS="-g -O2"
7815   else
7816     CFLAGS="-g"
7817   fi
7818 else
7819   if test "$GCC" = yes; then
7820     CFLAGS="-O2"
7821   else
7822     CFLAGS=
7823   fi
7824 fi
7825 # Some people use a C++ compiler to compile C.  Since we use `exit',
7826 # in C++ we need to declare it.  In case someone uses the same compiler
7827 # for both compiling C and C++ we need to have the C++ compiler decide
7828 # the declaration of exit, since it's the most demanding environment.
7829 cat >conftest.$ac_ext <<_ACEOF
7830 #ifndef __cplusplus
7831   choke me
7832 #endif
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836   (eval $ac_compile) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); } &&
7840          { ac_try='test -s conftest.$ac_objext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   for ac_declaration in \
7847    ''\
7848    '#include <stdlib.h>' \
7849    'extern "C" void std::exit (int) throw (); using std::exit;' \
7850    'extern "C" void std::exit (int); using std::exit;' \
7851    'extern "C" void exit (int) throw ();' \
7852    'extern "C" void exit (int);' \
7853    'void exit (int);'
7854 do
7855   cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858 #include <stdlib.h>
7859 $ac_declaration
7860 #ifdef F77_DUMMY_MAIN
7861 #  ifdef __cplusplus
7862      extern "C"
7863 #  endif
7864    int F77_DUMMY_MAIN() { return 1; }
7865 #endif
7866 int
7867 main ()
7868 {
7869 exit (42);
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876   (eval $ac_compile) 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } &&
7880          { ac_try='test -s conftest.$ac_objext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   :
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 continue
7891 fi
7892 rm -f conftest.$ac_objext conftest.$ac_ext
7893   cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7895 #include "confdefs.h"
7896 $ac_declaration
7897 #ifdef F77_DUMMY_MAIN
7898 #  ifdef __cplusplus
7899      extern "C"
7900 #  endif
7901    int F77_DUMMY_MAIN() { return 1; }
7902 #endif
7903 int
7904 main ()
7905 {
7906 exit (42);
7907   ;
7908   return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext
7912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7913   (eval $ac_compile) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); } &&
7917          { ac_try='test -s conftest.$ac_objext'
7918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919   (eval $ac_try) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; }; then
7923   break
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7927 fi
7928 rm -f conftest.$ac_objext conftest.$ac_ext
7929 done
7930 rm -f conftest*
7931 if test -n "$ac_declaration"; then
7932   echo '#ifdef __cplusplus' >>confdefs.h
7933   echo $ac_declaration      >>confdefs.h
7934   echo '#endif'             >>confdefs.h
7935 fi
7936
7937 else
7938   echo "$as_me: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7940 fi
7941 rm -f conftest.$ac_objext conftest.$ac_ext
7942 ac_ext=c
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947
7948 depcc="$CC"   am_compiler_list=
7949
7950 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7952 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7956   # We make a subdir and do the tests there.  Otherwise we can end up
7957   # making bogus files that we don't know about and never remove.  For
7958   # instance it was reported that on HP-UX the gcc test will end up
7959   # making a dummy file named `D' -- because `-MD' means `put the output
7960   # in D'.
7961   mkdir conftest.dir
7962   # Copy depcomp to subdir because otherwise we won't find it if we're
7963   # using a relative directory.
7964   cp "$am_depcomp" conftest.dir
7965   cd conftest.dir
7966
7967   am_cv_CC_dependencies_compiler_type=none
7968   if test "$am_compiler_list" = ""; then
7969      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7970   fi
7971   for depmode in $am_compiler_list; do
7972     # We need to recreate these files for each test, as the compiler may
7973     # overwrite some of them when testing with obscure command lines.
7974     # This happens at least with the AIX C compiler.
7975     echo '#include "conftest.h"' > conftest.c
7976     echo 'int i;' > conftest.h
7977     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7978
7979     case $depmode in
7980     nosideeffect)
7981       # after this tag, mechanisms are not by side-effect, so they'll
7982       # only be used when explicitly requested
7983       if test "x$enable_dependency_tracking" = xyes; then
7984         continue
7985       else
7986         break
7987       fi
7988       ;;
7989     none) break ;;
7990     esac
7991     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7992     # mode.  It turns out that the SunPro C++ compiler does not properly
7993     # handle `-M -o', and we need to detect this.
7994     if depmode=$depmode \
7995        source=conftest.c object=conftest.o \
7996        depfile=conftest.Po tmpdepfile=conftest.TPo \
7997        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7998        grep conftest.h conftest.Po > /dev/null 2>&1 &&
7999        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8000       am_cv_CC_dependencies_compiler_type=$depmode
8001       break
8002     fi
8003   done
8004
8005   cd ..
8006   rm -rf conftest.dir
8007 else
8008   am_cv_CC_dependencies_compiler_type=none
8009 fi
8010
8011 fi
8012 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8013 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8014 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8015
8016
8017 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8018 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8019 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8020 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   cat >conftest.make <<\_ACEOF
8024 all:
8025         @echo 'ac_maketemp="${MAKE}"'
8026 _ACEOF
8027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8028 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8029 if test -n "$ac_maketemp"; then
8030   eval ac_cv_prog_make_${ac_make}_set=yes
8031 else
8032   eval ac_cv_prog_make_${ac_make}_set=no
8033 fi
8034 rm -f conftest.make
8035 fi
8036 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8037   echo "$as_me:$LINENO: result: yes" >&5
8038 echo "${ECHO_T}yes" >&6
8039   SET_MAKE=
8040 else
8041   echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6
8043   SET_MAKE="MAKE=${MAKE-make}"
8044 fi
8045
8046
8047 # Checks for libraries.
8048 # FIXME: Replace `main' with a function in `-lX11':
8049 # AC_CHECK_LIB([X11], [main])
8050 # FIXME: Replace `main' with a function in `-ldl':
8051 # AC_CHECK_LIB([dl], [main])
8052 # FIXME: Replace `main' with a function in `-lefence':
8053 # AC_CHECK_LIB([efence], [main])
8054 # FIXME: Replace `main' with a function in `-lm':
8055 # AC_CHECK_LIB([m], [main])
8056 # FIXME: Replace `main' with a function in `-lproj':
8057 # AC_CHECK_LIB([proj], [main])
8058
8059 # Checks for header files.
8060 echo "$as_me:$LINENO: checking for X" >&5
8061 echo $ECHO_N "checking for X... $ECHO_C" >&6
8062
8063
8064 # Check whether --with-x or --without-x was given.
8065 if test "${with_x+set}" = set; then
8066   withval="$with_x"
8067
8068 fi;
8069 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8070 if test "x$with_x" = xno; then
8071   # The user explicitly disabled X.
8072   have_x=disabled
8073 else
8074   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8075     # Both variables are already set.
8076     have_x=yes
8077   else
8078     if test "${ac_cv_have_x+set}" = set; then
8079   echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081   # One or both of the vars are not set, and there is no cached value.
8082 ac_x_includes=no ac_x_libraries=no
8083 rm -fr conftest.dir
8084 if mkdir conftest.dir; then
8085   cd conftest.dir
8086   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8087   cat >Imakefile <<'_ACEOF'
8088 acfindx:
8089         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8090 _ACEOF
8091   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8092     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8093     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8094     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8095     for ac_extension in a so sl; do
8096       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8097          test -f $ac_im_libdir/libX11.$ac_extension; then
8098         ac_im_usrlibdir=$ac_im_libdir; break
8099       fi
8100     done
8101     # Screen out bogus values from the imake configuration.  They are
8102     # bogus both because they are the default anyway, and because
8103     # using them would break gcc on systems where it needs fixed includes.
8104     case $ac_im_incroot in
8105         /usr/include) ;;
8106         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8107     esac
8108     case $ac_im_usrlibdir in
8109         /usr/lib | /lib) ;;
8110         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8111     esac
8112   fi
8113   cd ..
8114   rm -fr conftest.dir
8115 fi
8116
8117 # Standard set of common directories for X headers.
8118 # Check X11 before X11Rn because it is often a symlink to the current release.
8119 ac_x_header_dirs='
8120 /usr/X11/include
8121 /usr/X11R6/include
8122 /usr/X11R5/include
8123 /usr/X11R4/include
8124
8125 /usr/include/X11
8126 /usr/include/X11R6
8127 /usr/include/X11R5
8128 /usr/include/X11R4
8129
8130 /usr/local/X11/include
8131 /usr/local/X11R6/include
8132 /usr/local/X11R5/include
8133 /usr/local/X11R4/include
8134
8135 /usr/local/include/X11
8136 /usr/local/include/X11R6
8137 /usr/local/include/X11R5
8138 /usr/local/include/X11R4
8139
8140 /usr/X386/include
8141 /usr/x386/include
8142 /usr/XFree86/include/X11
8143
8144 /usr/include
8145 /usr/local/include
8146 /usr/unsupported/include
8147 /usr/athena/include
8148 /usr/local/x11r5/include
8149 /usr/lpp/Xamples/include
8150
8151 /usr/openwin/include
8152 /usr/openwin/share/include'
8153
8154 if test "$ac_x_includes" = no; then
8155   # Guess where to find include files, by looking for Intrinsic.h.
8156   # First, try using that file with no special directory specified.
8157   cat >conftest.$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8159 #include "confdefs.h"
8160 #include <X11/Intrinsic.h>
8161 _ACEOF
8162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8164   ac_status=$?
8165   egrep -v '^ *\+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } >/dev/null; then
8170   if test -s conftest.err; then
8171     ac_cpp_err=$ac_c_preproc_warn_flag
8172   else
8173     ac_cpp_err=
8174   fi
8175 else
8176   ac_cpp_err=yes
8177 fi
8178 if test -z "$ac_cpp_err"; then
8179   # We can compile using X headers with no special include directory.
8180 ac_x_includes=
8181 else
8182   echo "$as_me: failed program was:" >&5
8183   cat conftest.$ac_ext >&5
8184   for ac_dir in $ac_x_header_dirs; do
8185   if test -r "$ac_dir/X11/Intrinsic.h"; then
8186     ac_x_includes=$ac_dir
8187     break
8188   fi
8189 done
8190 fi
8191 rm -f conftest.err conftest.$ac_ext
8192 fi # $ac_x_includes = no
8193
8194 if test "$ac_x_libraries" = no; then
8195   # Check for the libraries.
8196   # See if we find them without any special options.
8197   # Don't add to $LIBS permanently.
8198   ac_save_LIBS=$LIBS
8199   LIBS="-lXt $LIBS"
8200   cat >conftest.$ac_ext <<_ACEOF
8201 #line $LINENO "configure"
8202 #include "confdefs.h"
8203 #include <X11/Intrinsic.h>
8204 #ifdef F77_DUMMY_MAIN
8205 #  ifdef __cplusplus
8206      extern "C"
8207 #  endif
8208    int F77_DUMMY_MAIN() { return 1; }
8209 #endif
8210 int
8211 main ()
8212 {
8213 XtMalloc (0)
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220   (eval $ac_link) 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -s conftest$ac_exeext'
8225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226   (eval $ac_try) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; }; then
8230   LIBS=$ac_save_LIBS
8231 # We can link X programs with no special library path.
8232 ac_x_libraries=
8233 else
8234   echo "$as_me: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8236 LIBS=$ac_save_LIBS
8237 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8238 do
8239   # Don't even attempt the hair of trying to link an X program!
8240   for ac_extension in a so sl; do
8241     if test -r $ac_dir/libXt.$ac_extension; then
8242       ac_x_libraries=$ac_dir
8243       break 2
8244     fi
8245   done
8246 done
8247 fi
8248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8249 fi # $ac_x_libraries = no
8250
8251 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8252   # Didn't find X anywhere.  Cache the known absence of X.
8253   ac_cv_have_x="have_x=no"
8254 else
8255   # Record where we found X for the cache.
8256   ac_cv_have_x="have_x=yes \
8257                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8258 fi
8259 fi
8260
8261   fi
8262   eval "$ac_cv_have_x"
8263 fi # $with_x != no
8264
8265 if test "$have_x" != yes; then
8266   echo "$as_me:$LINENO: result: $have_x" >&5
8267 echo "${ECHO_T}$have_x" >&6
8268   no_x=yes
8269 else
8270   # If each of the values was on the command line, it overrides each guess.
8271   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8272   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8273   # Update the cache value to reflect the command line values.
8274   ac_cv_have_x="have_x=yes \
8275                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8276   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8277 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8278 fi
8279
8280 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8281 # for constant arguments.  Useless!
8282 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8283 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8284 if test "${ac_cv_working_alloca_h+set}" = set; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   cat >conftest.$ac_ext <<_ACEOF
8288 #line $LINENO "configure"
8289 #include "confdefs.h"
8290 #include <alloca.h>
8291 #ifdef F77_DUMMY_MAIN
8292 #  ifdef __cplusplus
8293      extern "C"
8294 #  endif
8295    int F77_DUMMY_MAIN() { return 1; }
8296 #endif
8297 int
8298 main ()
8299 {
8300 char *p = (char *) alloca (2 * sizeof (int));
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307   (eval $ac_link) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } &&
8311          { ac_try='test -s conftest$ac_exeext'
8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313   (eval $ac_try) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; }; then
8317   ac_cv_working_alloca_h=yes
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8321 ac_cv_working_alloca_h=no
8322 fi
8323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8324 fi
8325 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8327 if test $ac_cv_working_alloca_h = yes; then
8328
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_ALLOCA_H 1
8331 _ACEOF
8332
8333 fi
8334
8335 echo "$as_me:$LINENO: checking for alloca" >&5
8336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8337 if test "${ac_cv_func_alloca_works+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   cat >conftest.$ac_ext <<_ACEOF
8341 #line $LINENO "configure"
8342 #include "confdefs.h"
8343 #ifdef __GNUC__
8344 # define alloca __builtin_alloca
8345 #else
8346 # ifdef _MSC_VER
8347 #  include <malloc.h>
8348 #  define alloca _alloca
8349 # else
8350 #  if HAVE_ALLOCA_H
8351 #   include <alloca.h>
8352 #  else
8353 #   ifdef _AIX
8354  #pragma alloca
8355 #   else
8356 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8357 char *alloca ();
8358 #    endif
8359 #   endif
8360 #  endif
8361 # endif
8362 #endif
8363
8364 #ifdef F77_DUMMY_MAIN
8365 #  ifdef __cplusplus
8366      extern "C"
8367 #  endif
8368    int F77_DUMMY_MAIN() { return 1; }
8369 #endif
8370 int
8371 main ()
8372 {
8373 char *p = (char *) alloca (1);
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8380   (eval $ac_link) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } &&
8384          { ac_try='test -s conftest$ac_exeext'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; }; then
8390   ac_cv_func_alloca_works=yes
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8394 ac_cv_func_alloca_works=no
8395 fi
8396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8397 fi
8398 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8399 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8400
8401 if test $ac_cv_func_alloca_works = yes; then
8402
8403 cat >>confdefs.h <<\_ACEOF
8404 #define HAVE_ALLOCA 1
8405 _ACEOF
8406
8407 else
8408   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8409 # that cause trouble.  Some versions do not even contain alloca or
8410 # contain a buggy version.  If you still want to use their alloca,
8411 # use ar to extract alloca.o from them instead of compiling alloca.c.
8412
8413 ALLOCA=alloca.$ac_objext
8414
8415 cat >>confdefs.h <<\_ACEOF
8416 #define C_ALLOCA 1
8417 _ACEOF
8418
8419
8420 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8421 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8422 if test "${ac_cv_os_cray+set}" = set; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425   cat >conftest.$ac_ext <<_ACEOF
8426 #line $LINENO "configure"
8427 #include "confdefs.h"
8428 #if defined(CRAY) && ! defined(CRAY2)
8429 webecray
8430 #else
8431 wenotbecray
8432 #endif
8433
8434 _ACEOF
8435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8436   egrep "webecray" >/dev/null 2>&1; then
8437   ac_cv_os_cray=yes
8438 else
8439   ac_cv_os_cray=no
8440 fi
8441 rm -f conftest*
8442
8443 fi
8444 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8445 echo "${ECHO_T}$ac_cv_os_cray" >&6
8446 if test $ac_cv_os_cray = yes; then
8447   for ac_func in _getb67 GETB67 getb67; do
8448     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8449 echo "$as_me:$LINENO: checking for $ac_func" >&5
8450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8451 if eval "test \"\${$as_ac_var+set}\" = set"; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454   cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8456 #include "confdefs.h"
8457 /* System header to define __stub macros and hopefully few prototypes,
8458     which can conflict with char $ac_func (); below.  */
8459 #include <assert.h>
8460 /* Override any gcc2 internal prototype to avoid an error.  */
8461 #ifdef __cplusplus
8462 extern "C"
8463 #endif
8464 /* We use char because int might match the return type of a gcc2
8465    builtin and then its argument prototype would still apply.  */
8466 char $ac_func ();
8467 char (*f) ();
8468
8469 #ifdef F77_DUMMY_MAIN
8470 #  ifdef __cplusplus
8471      extern "C"
8472 #  endif
8473    int F77_DUMMY_MAIN() { return 1; }
8474 #endif
8475 int
8476 main ()
8477 {
8478 /* The GNU C library defines this for functions which it implements
8479     to always fail with ENOSYS.  Some functions are actually named
8480     something starting with __ and the normal name is an alias.  */
8481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8482 choke me
8483 #else
8484 f = $ac_func;
8485 #endif
8486
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493   (eval $ac_link) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -s conftest$ac_exeext'
8498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499   (eval $ac_try) 2>&5
8500   ac_status=$?
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); }; }; then
8503   eval "$as_ac_var=yes"
8504 else
8505   echo "$as_me: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8507 eval "$as_ac_var=no"
8508 fi
8509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510 fi
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8513 if test `eval echo '${'$as_ac_var'}'` = yes; then
8514
8515 cat >>confdefs.h <<_ACEOF
8516 #define CRAY_STACKSEG_END $ac_func
8517 _ACEOF
8518
8519     break
8520 fi
8521
8522   done
8523 fi
8524
8525 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8526 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8527 if test "${ac_cv_c_stack_direction+set}" = set; then
8528   echo $ECHO_N "(cached) $ECHO_C" >&6
8529 else
8530   if test "$cross_compiling" = yes; then
8531   ac_cv_c_stack_direction=0
8532 else
8533   cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8535 #include "confdefs.h"
8536 int
8537 find_stack_direction ()
8538 {
8539   static char *addr = 0;
8540   auto char dummy;
8541   if (addr == 0)
8542     {
8543       addr = &dummy;
8544       return find_stack_direction ();
8545     }
8546   else
8547     return (&dummy > addr) ? 1 : -1;
8548 }
8549
8550 int
8551 main ()
8552 {
8553   exit (find_stack_direction () < 0);
8554 }
8555 _ACEOF
8556 rm -f conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558   (eval $ac_link) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; }; then
8567   ac_cv_c_stack_direction=1
8568 else
8569   echo "$as_me: program exited with status $ac_status" >&5
8570 echo "$as_me: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8572 ( exit $ac_status )
8573 ac_cv_c_stack_direction=-1
8574 fi
8575 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8576 fi
8577 fi
8578 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8579 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8580
8581 cat >>confdefs.h <<_ACEOF
8582 #define STACK_DIRECTION $ac_cv_c_stack_direction
8583 _ACEOF
8584
8585
8586 fi
8587
8588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8590 if test "${ac_cv_header_stdc+set}" = set; then
8591   echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593   cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8595 #include "confdefs.h"
8596 #include <stdlib.h>
8597 #include <stdarg.h>
8598 #include <string.h>
8599 #include <float.h>
8600
8601 _ACEOF
8602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8604   ac_status=$?
8605   egrep -v '^ *\+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } >/dev/null; then
8610   if test -s conftest.err; then
8611     ac_cpp_err=$ac_c_preproc_warn_flag
8612   else
8613     ac_cpp_err=
8614   fi
8615 else
8616   ac_cpp_err=yes
8617 fi
8618 if test -z "$ac_cpp_err"; then
8619   ac_cv_header_stdc=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622   cat conftest.$ac_ext >&5
8623   ac_cv_header_stdc=no
8624 fi
8625 rm -f conftest.err conftest.$ac_ext
8626
8627 if test $ac_cv_header_stdc = yes; then
8628   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8629   cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 #include "confdefs.h"
8632 #include <string.h>
8633
8634 _ACEOF
8635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8636   egrep "memchr" >/dev/null 2>&1; then
8637   :
8638 else
8639   ac_cv_header_stdc=no
8640 fi
8641 rm -f conftest*
8642
8643 fi
8644
8645 if test $ac_cv_header_stdc = yes; then
8646   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8647   cat >conftest.$ac_ext <<_ACEOF
8648 #line $LINENO "configure"
8649 #include "confdefs.h"
8650 #include <stdlib.h>
8651
8652 _ACEOF
8653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8654   egrep "free" >/dev/null 2>&1; then
8655   :
8656 else
8657   ac_cv_header_stdc=no
8658 fi
8659 rm -f conftest*
8660
8661 fi
8662
8663 if test $ac_cv_header_stdc = yes; then
8664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8665   if test "$cross_compiling" = yes; then
8666   :
8667 else
8668   cat >conftest.$ac_ext <<_ACEOF
8669 #line $LINENO "configure"
8670 #include "confdefs.h"
8671 #include <ctype.h>
8672 #if ((' ' & 0x0FF) == 0x020)
8673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8675 #else
8676 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8677                      || ('j' <= (c) && (c) <= 'r') \
8678                      || ('s' <= (c) && (c) <= 'z'))
8679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8680 #endif
8681
8682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8683 int
8684 main ()
8685 {
8686   int i;
8687   for (i = 0; i < 256; i++)
8688     if (XOR (islower (i), ISLOWER (i))
8689         || toupper (i) != TOUPPER (i))
8690       exit(2);
8691   exit (0);
8692 }
8693 _ACEOF
8694 rm -f conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696   (eval $ac_link) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; }; then
8705   :
8706 else
8707   echo "$as_me: program exited with status $ac_status" >&5
8708 echo "$as_me: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 ( exit $ac_status )
8711 ac_cv_header_stdc=no
8712 fi
8713 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 fi
8716 fi
8717 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8718 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8719 if test $ac_cv_header_stdc = yes; then
8720
8721 cat >>confdefs.h <<\_ACEOF
8722 #define STDC_HEADERS 1
8723 _ACEOF
8724
8725 fi
8726
8727
8728
8729
8730
8731
8732
8733
8734 for ac_header in limits.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h
8735 do
8736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738   echo "$as_me:$LINENO: checking for $ac_header" >&5
8739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 fi
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8745 else
8746   # Is the header compilable?
8747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8751 #include "confdefs.h"
8752 $ac_includes_default
8753 #include <$ac_header>
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8757   (eval $ac_compile) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } &&
8761          { ac_try='test -s conftest.$ac_objext'
8762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763   (eval $ac_try) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); }; }; then
8767   ac_header_compiler=yes
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 ac_header_compiler=no
8772 fi
8773 rm -f conftest.$ac_objext conftest.$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775 echo "${ECHO_T}$ac_header_compiler" >&6
8776
8777 # Is the header present?
8778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line $LINENO "configure"
8782 #include "confdefs.h"
8783 #include <$ac_header>
8784 _ACEOF
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8787   ac_status=$?
8788   egrep -v '^ *\+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } >/dev/null; then
8793   if test -s conftest.err; then
8794     ac_cpp_err=$ac_c_preproc_warn_flag
8795   else
8796     ac_cpp_err=
8797   fi
8798 else
8799   ac_cpp_err=yes
8800 fi
8801 if test -z "$ac_cpp_err"; then
8802   ac_header_preproc=yes
8803 else
8804   echo "$as_me: failed program was:" >&5
8805   cat conftest.$ac_ext >&5
8806   ac_header_preproc=no
8807 fi
8808 rm -f conftest.err conftest.$ac_ext
8809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8810 echo "${ECHO_T}$ac_header_preproc" >&6
8811
8812 # So?  What about this header?
8813 case $ac_header_compiler:$ac_header_preproc in
8814   yes:no )
8815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8819   no:yes )
8820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8822     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8826 esac
8827 echo "$as_me:$LINENO: checking for $ac_header" >&5
8828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832   eval "$as_ac_Header=$ac_header_preproc"
8833 fi
8834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8836
8837 fi
8838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8839   cat >>confdefs.h <<_ACEOF
8840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8841 _ACEOF
8842
8843 fi
8844
8845 done
8846
8847
8848 # Checks for typedefs, structures, and compiler characteristics.
8849 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8850 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8851 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854   ac_cv_prog_cc_stdc=no
8855 ac_save_CC=$CC
8856 cat >conftest.$ac_ext <<_ACEOF
8857 #line $LINENO "configure"
8858 #include "confdefs.h"
8859 #include <stdarg.h>
8860 #include <stdio.h>
8861 #include <sys/types.h>
8862 #include <sys/stat.h>
8863 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
8864 struct buf { int x; };
8865 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8866 static char *e (p, i)
8867      char **p;
8868      int i;
8869 {
8870   return p[i];
8871 }
8872 static char *f (char * (*g) (char **, int), char **p, ...)
8873 {
8874   char *s;
8875   va_list v;
8876   va_start (v,p);
8877   s = g (p, va_arg (v,int));
8878   va_end (v);
8879   return s;
8880 }
8881 int test (int i, double x);
8882 struct s1 {int (*f) (int a);};
8883 struct s2 {int (*f) (double a);};
8884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8885 int argc;
8886 char **argv;
8887 #ifdef F77_DUMMY_MAIN
8888 #  ifdef __cplusplus
8889      extern "C"
8890 #  endif
8891    int F77_DUMMY_MAIN() { return 1; }
8892 #endif
8893 int
8894 main ()
8895 {
8896 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 # Don't try gcc -ansi; that turns off useful extensions and
8902 # breaks some systems' header files.
8903 # AIX                   -qlanglvl=ansi
8904 # Ultrix and OSF/1      -std1
8905 # HP-UX 10.20 and later -Ae
8906 # HP-UX older versions  -Aa -D_HPUX_SOURCE
8907 # SVR4                  -Xc -D__EXTENSIONS__
8908 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8909 do
8910   CC="$ac_save_CC $ac_arg"
8911   rm -f conftest.$ac_objext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913   (eval $ac_compile) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } &&
8917          { ac_try='test -s conftest.$ac_objext'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; }; then
8923   ac_cv_prog_cc_stdc=$ac_arg
8924 break
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8928 fi
8929 rm -f conftest.$ac_objext
8930 done
8931 rm -f conftest.$ac_ext conftest.$ac_objext
8932 CC=$ac_save_CC
8933
8934 fi
8935
8936 case "x$ac_cv_prog_cc_stdc" in
8937   x|xno)
8938     echo "$as_me:$LINENO: result: none needed" >&5
8939 echo "${ECHO_T}none needed" >&6 ;;
8940   *)
8941     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8942 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8943     CC="$CC $ac_cv_prog_cc_stdc" ;;
8944 esac
8945
8946 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8947 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8948 if test "${ac_cv_c_const+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   cat >conftest.$ac_ext <<_ACEOF
8952 #line $LINENO "configure"
8953 #include "confdefs.h"
8954
8955 #ifdef F77_DUMMY_MAIN
8956 #  ifdef __cplusplus
8957      extern "C"
8958 #  endif
8959    int F77_DUMMY_MAIN() { return 1; }
8960 #endif
8961 int
8962 main ()
8963 {
8964 /* FIXME: Include the comments suggested by Paul. */
8965 #ifndef __cplusplus
8966   /* Ultrix mips cc rejects this.  */
8967   typedef int charset[2];
8968   const charset x;
8969   /* SunOS 4.1.1 cc rejects this.  */
8970   char const *const *ccp;
8971   char **p;
8972   /* NEC SVR4.0.2 mips cc rejects this.  */
8973   struct point {int x, y;};
8974   static struct point const zero = {0,0};
8975   /* AIX XL C 1.02.0.0 rejects this.
8976      It does not let you subtract one const X* pointer from another in
8977      an arm of an if-expression whose if-part is not a constant
8978      expression */
8979   const char *g = "string";
8980   ccp = &g + (g ? g-g : 0);
8981   /* HPUX 7.0 cc rejects these. */
8982   ++ccp;
8983   p = (char**) ccp;
8984   ccp = (char const *const *) p;
8985   { /* SCO 3.2v4 cc rejects this.  */
8986     char *t;
8987     char const *s = 0 ? (char *) 0 : (char const *) 0;
8988
8989     *t++ = 0;
8990   }
8991   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8992     int x[] = {25, 17};
8993     const int *foo = &x[0];
8994     ++foo;
8995   }
8996   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8997     typedef const int *iptr;
8998     iptr p = 0;
8999     ++p;
9000   }
9001   { /* AIX XL C 1.02.0.0 rejects this saying
9002        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9003     struct s { int j; const int *ap[3]; };
9004     struct s *b; b->j = 5;
9005   }
9006   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9007     const int foo = 10;
9008   }
9009 #endif
9010
9011   ;
9012   return 0;
9013 }
9014 _ACEOF
9015 rm -f conftest.$ac_objext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9017   (eval $ac_compile) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); } &&
9021          { ac_try='test -s conftest.$ac_objext'
9022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023   (eval $ac_try) 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); }; }; then
9027   ac_cv_c_const=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9031 ac_cv_c_const=no
9032 fi
9033 rm -f conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9036 echo "${ECHO_T}$ac_cv_c_const" >&6
9037 if test $ac_cv_c_const = no; then
9038
9039 cat >>confdefs.h <<\_ACEOF
9040 #define const
9041 _ACEOF
9042
9043 fi
9044
9045 echo "$as_me:$LINENO: checking for size_t" >&5
9046 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9047 if test "${ac_cv_type_size_t+set}" = set; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050   cat >conftest.$ac_ext <<_ACEOF
9051 #line $LINENO "configure"
9052 #include "confdefs.h"
9053 $ac_includes_default
9054 #ifdef F77_DUMMY_MAIN
9055 #  ifdef __cplusplus
9056      extern "C"
9057 #  endif
9058    int F77_DUMMY_MAIN() { return 1; }
9059 #endif
9060 int
9061 main ()
9062 {
9063 if ((size_t *) 0)
9064   return 0;
9065 if (sizeof (size_t))
9066   return 0;
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073   (eval $ac_compile) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } &&
9077          { ac_try='test -s conftest.$ac_objext'
9078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079   (eval $ac_try) 2>&5
9080   ac_status=$?
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); }; }; then
9083   ac_cv_type_size_t=yes
9084 else
9085   echo "$as_me: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 ac_cv_type_size_t=no
9088 fi
9089 rm -f conftest.$ac_objext conftest.$ac_ext
9090 fi
9091 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9092 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9093 if test $ac_cv_type_size_t = yes; then
9094   :
9095 else
9096
9097 cat >>confdefs.h <<_ACEOF
9098 #define size_t unsigned
9099 _ACEOF
9100
9101 fi
9102
9103 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9104 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9105 if test "${ac_cv_struct_tm+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   cat >conftest.$ac_ext <<_ACEOF
9109 #line $LINENO "configure"
9110 #include "confdefs.h"
9111 #include <sys/types.h>
9112 #include <time.h>
9113
9114 #ifdef F77_DUMMY_MAIN
9115 #  ifdef __cplusplus
9116      extern "C"
9117 #  endif
9118    int F77_DUMMY_MAIN() { return 1; }
9119 #endif
9120 int
9121 main ()
9122 {
9123 struct tm *tp; tp->tm_sec;
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130   (eval $ac_compile) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } &&
9134          { ac_try='test -s conftest.$ac_objext'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; }; then
9140   ac_cv_struct_tm=time.h
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 ac_cv_struct_tm=sys/time.h
9145 fi
9146 rm -f conftest.$ac_objext conftest.$ac_ext
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9149 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9150 if test $ac_cv_struct_tm = sys/time.h; then
9151
9152 cat >>confdefs.h <<\_ACEOF
9153 #define TM_IN_SYS_TIME 1
9154 _ACEOF
9155
9156 fi
9157
9158
9159 # Checks for library functions.
9160 echo "$as_me:$LINENO: checking for error_at_line" >&5
9161 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
9162 if test "${ac_cv_lib_error_at_line+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 #include "confdefs.h"
9168
9169 #ifdef F77_DUMMY_MAIN
9170 #  ifdef __cplusplus
9171      extern "C"
9172 #  endif
9173    int F77_DUMMY_MAIN() { return 1; }
9174 #endif
9175 int
9176 main ()
9177 {
9178 error_at_line (0, 0, "", 0, "");
9179   ;
9180   return 0;
9181 }
9182 _ACEOF
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185   (eval $ac_link) 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } &&
9189          { ac_try='test -s conftest$ac_exeext'
9190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191   (eval $ac_try) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; }; then
9195   ac_cv_lib_error_at_line=yes
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9199 ac_cv_lib_error_at_line=no
9200 fi
9201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9202 fi
9203 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
9204 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
9205 if test $ac_cv_lib_error_at_line = no; then
9206   LIBOBJS="$LIBOBJS error.$ac_objext"
9207 fi
9208
9209
9210 for ac_header in stdlib.h
9211 do
9212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9214   echo "$as_me:$LINENO: checking for $ac_header" >&5
9215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217   echo $ECHO_N "(cached) $ECHO_C" >&6
9218 fi
9219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9221 else
9222   # Is the header compilable?
9223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9226 #line $LINENO "configure"
9227 #include "confdefs.h"
9228 $ac_includes_default
9229 #include <$ac_header>
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233   (eval $ac_compile) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } &&
9237          { ac_try='test -s conftest.$ac_objext'
9238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239   (eval $ac_try) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); }; }; then
9243   ac_header_compiler=yes
9244 else
9245   echo "$as_me: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9247 ac_header_compiler=no
9248 fi
9249 rm -f conftest.$ac_objext conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9251 echo "${ECHO_T}$ac_header_compiler" >&6
9252
9253 # Is the header present?
9254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9256 cat >conftest.$ac_ext <<_ACEOF
9257 #line $LINENO "configure"
9258 #include "confdefs.h"
9259 #include <$ac_header>
9260 _ACEOF
9261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9263   ac_status=$?
9264   egrep -v '^ *\+' conftest.er1 >conftest.err
9265   rm -f conftest.er1
9266   cat conftest.err >&5
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); } >/dev/null; then
9269   if test -s conftest.err; then
9270     ac_cpp_err=$ac_c_preproc_warn_flag
9271   else
9272     ac_cpp_err=
9273   fi
9274 else
9275   ac_cpp_err=yes
9276 fi
9277 if test -z "$ac_cpp_err"; then
9278   ac_header_preproc=yes
9279 else
9280   echo "$as_me: failed program was:" >&5
9281   cat conftest.$ac_ext >&5
9282   ac_header_preproc=no
9283 fi
9284 rm -f conftest.err conftest.$ac_ext
9285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9286 echo "${ECHO_T}$ac_header_preproc" >&6
9287
9288 # So?  What about this header?
9289 case $ac_header_compiler:$ac_header_preproc in
9290   yes:no )
9291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9295   no:yes )
9296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9298     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9302 esac
9303 echo "$as_me:$LINENO: checking for $ac_header" >&5
9304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   eval "$as_ac_Header=$ac_header_preproc"
9309 fi
9310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9312
9313 fi
9314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9315   cat >>confdefs.h <<_ACEOF
9316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317 _ACEOF
9318
9319 fi
9320
9321 done
9322
9323 echo "$as_me:$LINENO: checking for working malloc" >&5
9324 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
9325 if test "${ac_cv_func_malloc_works+set}" = set; then
9326   echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328   if test "$cross_compiling" = yes; then
9329   ac_cv_func_malloc_works=no
9330 else
9331   cat >conftest.$ac_ext <<_ACEOF
9332 #line $LINENO "configure"
9333 #include "confdefs.h"
9334 #if STDC_HEADERS || HAVE_STDLIB_H
9335 # include <stdlib.h>
9336 #else
9337 char *malloc ();
9338 #endif
9339
9340 #ifdef F77_DUMMY_MAIN
9341 #  ifdef __cplusplus
9342      extern "C"
9343 #  endif
9344    int F77_DUMMY_MAIN() { return 1; }
9345 #endif
9346 int
9347 main ()
9348 {
9349 exit (malloc (0) ? 0 : 1);
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 rm -f conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356   (eval $ac_link) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365   ac_cv_func_malloc_works=yes
9366 else
9367   echo "$as_me: program exited with status $ac_status" >&5
9368 echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9370 ( exit $ac_status )
9371 ac_cv_func_malloc_works=no
9372 fi
9373 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9374 fi
9375 fi
9376 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
9377 echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
9378 if test $ac_cv_func_malloc_works = yes; then
9379
9380 cat >>confdefs.h <<\_ACEOF
9381 #define HAVE_MALLOC 1
9382 _ACEOF
9383
9384 fi
9385
9386
9387
9388 for ac_header in stdlib.h unistd.h
9389 do
9390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9392   echo "$as_me:$LINENO: checking for $ac_header" >&5
9393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 fi
9397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9399 else
9400   # Is the header compilable?
9401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9403 cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9406 $ac_includes_default
9407 #include <$ac_header>
9408 _ACEOF
9409 rm -f conftest.$ac_objext
9410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9411   (eval $ac_compile) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); } &&
9415          { ac_try='test -s conftest.$ac_objext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421   ac_header_compiler=yes
9422 else
9423   echo "$as_me: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9425 ac_header_compiler=no
9426 fi
9427 rm -f conftest.$ac_objext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9429 echo "${ECHO_T}$ac_header_compiler" >&6
9430
9431 # Is the header present?
9432 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9433 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9436 #include "confdefs.h"
9437 #include <$ac_header>
9438 _ACEOF
9439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9441   ac_status=$?
9442   egrep -v '^ *\+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } >/dev/null; then
9447   if test -s conftest.err; then
9448     ac_cpp_err=$ac_c_preproc_warn_flag
9449   else
9450     ac_cpp_err=
9451   fi
9452 else
9453   ac_cpp_err=yes
9454 fi
9455 if test -z "$ac_cpp_err"; then
9456   ac_header_preproc=yes
9457 else
9458   echo "$as_me: failed program was:" >&5
9459   cat conftest.$ac_ext >&5
9460   ac_header_preproc=no
9461 fi
9462 rm -f conftest.err conftest.$ac_ext
9463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9464 echo "${ECHO_T}$ac_header_preproc" >&6
9465
9466 # So?  What about this header?
9467 case $ac_header_compiler:$ac_header_preproc in
9468   yes:no )
9469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9473   no:yes )
9474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9476     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9480 esac
9481 echo "$as_me:$LINENO: checking for $ac_header" >&5
9482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9484   echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486   eval "$as_ac_Header=$ac_header_preproc"
9487 fi
9488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9490
9491 fi
9492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9493   cat >>confdefs.h <<_ACEOF
9494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9495 _ACEOF
9496
9497 fi
9498
9499 done
9500
9501
9502 for ac_func in getpagesize
9503 do
9504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9505 echo "$as_me:$LINENO: checking for $ac_func" >&5
9506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9507 if eval "test \"\${$as_ac_var+set}\" = set"; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   cat >conftest.$ac_ext <<_ACEOF
9511 #line $LINENO "configure"
9512 #include "confdefs.h"
9513 /* System header to define __stub macros and hopefully few prototypes,
9514     which can conflict with char $ac_func (); below.  */
9515 #include <assert.h>
9516 /* Override any gcc2 internal prototype to avoid an error.  */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 /* We use char because int might match the return type of a gcc2
9521    builtin and then its argument prototype would still apply.  */
9522 char $ac_func ();
9523 char (*f) ();
9524
9525 #ifdef F77_DUMMY_MAIN
9526 #  ifdef __cplusplus
9527      extern "C"
9528 #  endif
9529    int F77_DUMMY_MAIN() { return 1; }
9530 #endif
9531 int
9532 main ()
9533 {
9534 /* The GNU C library defines this for functions which it implements
9535     to always fail with ENOSYS.  Some functions are actually named
9536     something starting with __ and the normal name is an alias.  */
9537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9538 choke me
9539 #else
9540 f = $ac_func;
9541 #endif
9542
9543   ;
9544   return 0;
9545 }
9546 _ACEOF
9547 rm -f conftest.$ac_objext conftest$ac_exeext
9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549   (eval $ac_link) 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); } &&
9553          { ac_try='test -s conftest$ac_exeext'
9554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555   (eval $ac_try) 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); }; }; then
9559   eval "$as_ac_var=yes"
9560 else
9561   echo "$as_me: failed program was:" >&5
9562 cat conftest.$ac_ext >&5
9563 eval "$as_ac_var=no"
9564 fi
9565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9566 fi
9567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9569 if test `eval echo '${'$as_ac_var'}'` = yes; then
9570   cat >>confdefs.h <<_ACEOF
9571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9572 _ACEOF
9573
9574 fi
9575 done
9576
9577 echo "$as_me:$LINENO: checking for working mmap" >&5
9578 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9579 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   if test "$cross_compiling" = yes; then
9583   ac_cv_func_mmap_fixed_mapped=no
9584 else
9585   cat >conftest.$ac_ext <<_ACEOF
9586 #line $LINENO "configure"
9587 #include "confdefs.h"
9588 $ac_includes_default
9589 /* malloc might have been renamed as rpl_malloc. */
9590 #undef malloc
9591
9592 /* Thanks to Mike Haertel and Jim Avera for this test.
9593    Here is a matrix of mmap possibilities:
9594         mmap private not fixed
9595         mmap private fixed at somewhere currently unmapped
9596         mmap private fixed at somewhere already mapped
9597         mmap shared not fixed
9598         mmap shared fixed at somewhere currently unmapped
9599         mmap shared fixed at somewhere already mapped
9600    For private mappings, we should verify that changes cannot be read()
9601    back from the file, nor mmap's back from the file at a different
9602    address.  (There have been systems where private was not correctly
9603    implemented like the infamous i386 svr4.0, and systems where the
9604    VM page cache was not coherent with the file system buffer cache
9605    like early versions of FreeBSD and possibly contemporary NetBSD.)
9606    For shared mappings, we should conversely verify that changes get
9607    propagated back to all the places they're supposed to be.
9608
9609    Grep wants private fixed already mapped.
9610    The main things grep needs to know about mmap are:
9611    * does it exist and is it safe to write into the mmap'd area
9612    * how to use it (BSD variants)  */
9613
9614 #include <fcntl.h>
9615 #include <sys/mman.h>
9616
9617 #if !STDC_HEADERS && !HAVE_STDLIB_H
9618 char *malloc ();
9619 #endif
9620
9621 /* This mess was copied from the GNU getpagesize.h.  */
9622 #if !HAVE_GETPAGESIZE
9623 /* Assume that all systems that can run configure have sys/param.h.  */
9624 # if !HAVE_SYS_PARAM_H
9625 #  define HAVE_SYS_PARAM_H 1
9626 # endif
9627
9628 # ifdef _SC_PAGESIZE
9629 #  define getpagesize() sysconf(_SC_PAGESIZE)
9630 # else /* no _SC_PAGESIZE */
9631 #  if HAVE_SYS_PARAM_H
9632 #   include <sys/param.h>
9633 #   ifdef EXEC_PAGESIZE
9634 #    define getpagesize() EXEC_PAGESIZE
9635 #   else /* no EXEC_PAGESIZE */
9636 #    ifdef NBPG
9637 #     define getpagesize() NBPG * CLSIZE
9638 #     ifndef CLSIZE
9639 #      define CLSIZE 1
9640 #     endif /* no CLSIZE */
9641 #    else /* no NBPG */
9642 #     ifdef NBPC
9643 #      define getpagesize() NBPC
9644 #     else /* no NBPC */
9645 #      ifdef PAGESIZE
9646 #       define getpagesize() PAGESIZE
9647 #      endif /* PAGESIZE */
9648 #     endif /* no NBPC */
9649 #    endif /* no NBPG */
9650 #   endif /* no EXEC_PAGESIZE */
9651 #  else /* no HAVE_SYS_PARAM_H */
9652 #   define getpagesize() 8192   /* punt totally */
9653 #  endif /* no HAVE_SYS_PARAM_H */
9654 # endif /* no _SC_PAGESIZE */
9655
9656 #endif /* no HAVE_GETPAGESIZE */
9657
9658 int
9659 main ()
9660 {
9661   char *data, *data2, *data3;
9662   int i, pagesize;
9663   int fd;
9664
9665   pagesize = getpagesize ();
9666
9667   /* First, make a file with some known garbage in it. */
9668   data = (char *) malloc (pagesize);
9669   if (!data)
9670     exit (1);
9671   for (i = 0; i < pagesize; ++i)
9672     *(data + i) = rand ();
9673   umask (0);
9674   fd = creat ("conftest.mmap", 0600);
9675   if (fd < 0)
9676     exit (1);
9677   if (write (fd, data, pagesize) != pagesize)
9678     exit (1);
9679   close (fd);
9680
9681   /* Next, try to mmap the file at a fixed address which already has
9682      something else allocated at it.  If we can, also make sure that
9683      we see the same garbage.  */
9684   fd = open ("conftest.mmap", O_RDWR);
9685   if (fd < 0)
9686     exit (1);
9687   data2 = (char *) malloc (2 * pagesize);
9688   if (!data2)
9689     exit (1);
9690   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9691   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9692                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9693     exit (1);
9694   for (i = 0; i < pagesize; ++i)
9695     if (*(data + i) != *(data2 + i))
9696       exit (1);
9697
9698   /* Finally, make sure that changes to the mapped area do not
9699      percolate back to the file as seen by read().  (This is a bug on
9700      some variants of i386 svr4.0.)  */
9701   for (i = 0; i < pagesize; ++i)
9702     *(data2 + i) = *(data2 + i) + 1;
9703   data3 = (char *) malloc (pagesize);
9704   if (!data3)
9705     exit (1);
9706   if (read (fd, data3, pagesize) != pagesize)
9707     exit (1);
9708   for (i = 0; i < pagesize; ++i)
9709     if (*(data + i) != *(data3 + i))
9710       exit (1);
9711   close (fd);
9712   exit (0);
9713 }
9714 _ACEOF
9715 rm -f conftest$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717   (eval $ac_link) 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_cv_func_mmap_fixed_mapped=yes
9727 else
9728   echo "$as_me: program exited with status $ac_status" >&5
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9731 ( exit $ac_status )
9732 ac_cv_func_mmap_fixed_mapped=no
9733 fi
9734 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9735 fi
9736 fi
9737 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9738 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9739 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9740
9741 cat >>confdefs.h <<\_ACEOF
9742 #define HAVE_MMAP 1
9743 _ACEOF
9744
9745 fi
9746 rm -f conftest.mmap
9747
9748 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9749 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9750 if test "${ac_cv_type_signal+set}" = set; then
9751   echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753   cat >conftest.$ac_ext <<_ACEOF
9754 #line $LINENO "configure"
9755 #include "confdefs.h"
9756 #include <sys/types.h>
9757 #include <signal.h>
9758 #ifdef signal
9759 # undef signal
9760 #endif
9761 #ifdef __cplusplus
9762 extern "C" void (*signal (int, void (*)(int)))(int);
9763 #else
9764 void (*signal ()) ();
9765 #endif
9766
9767 #ifdef F77_DUMMY_MAIN
9768 #  ifdef __cplusplus
9769      extern "C"
9770 #  endif
9771    int F77_DUMMY_MAIN() { return 1; }
9772 #endif
9773 int
9774 main ()
9775 {
9776 int i;
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9783   (eval $ac_compile) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); } &&
9787          { ac_try='test -s conftest.$ac_objext'
9788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789   (eval $ac_try) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; }; then
9793   ac_cv_type_signal=void
9794 else
9795   echo "$as_me: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9797 ac_cv_type_signal=int
9798 fi
9799 rm -f conftest.$ac_objext conftest.$ac_ext
9800 fi
9801 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9802 echo "${ECHO_T}$ac_cv_type_signal" >&6
9803
9804 cat >>confdefs.h <<_ACEOF
9805 #define RETSIGTYPE $ac_cv_type_signal
9806 _ACEOF
9807
9808
9809 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9810 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
9811 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   rm -f conftest.sym conftest.file
9815 echo >conftest.file
9816 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9817   if test "$cross_compiling" = yes; then
9818   ac_cv_func_lstat_dereferences_slashed_symlink=no
9819 else
9820   cat >conftest.$ac_ext <<_ACEOF
9821 #line $LINENO "configure"
9822 #include "confdefs.h"
9823 $ac_includes_default
9824 #ifdef F77_DUMMY_MAIN
9825 #  ifdef __cplusplus
9826      extern "C"
9827 #  endif
9828    int F77_DUMMY_MAIN() { return 1; }
9829 #endif
9830 int
9831 main ()
9832 {
9833 struct stat sbuf;
9834      /* Linux will dereference the symlink and fail.
9835         That is better in the sense that it means we will not
9836         have to compile and use the lstat wrapper.  */
9837      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
9838   ;
9839   return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest$ac_exeext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844   (eval $ac_link) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; }; then
9853   ac_cv_func_lstat_dereferences_slashed_symlink=yes
9854 else
9855   echo "$as_me: program exited with status $ac_status" >&5
9856 echo "$as_me: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9858 ( exit $ac_status )
9859 ac_cv_func_lstat_dereferences_slashed_symlink=no
9860 fi
9861 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9862 fi
9863 else
9864   # If the `ln -s' command failed, then we probably don't even
9865   # have an lstat function.
9866   ac_cv_func_lstat_dereferences_slashed_symlink=no
9867 fi
9868 rm -f conftest.sym conftest.file
9869
9870 fi
9871 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9872 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
9873
9874 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9875
9876 cat >>confdefs.h <<_ACEOF
9877 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9878 _ACEOF
9879
9880
9881 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9882   LIBOBJS="$LIBOBJS lstat.$ac_objext"
9883 fi
9884
9885 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9886 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
9887 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9888   echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890   if test "$cross_compiling" = yes; then
9891   ac_cv_func_stat_empty_string_bug=yes
9892 else
9893   cat >conftest.$ac_ext <<_ACEOF
9894 #line $LINENO "configure"
9895 #include "confdefs.h"
9896 $ac_includes_default
9897 #ifdef F77_DUMMY_MAIN
9898 #  ifdef __cplusplus
9899      extern "C"
9900 #  endif
9901    int F77_DUMMY_MAIN() { return 1; }
9902 #endif
9903 int
9904 main ()
9905 {
9906 struct stat sbuf;
9907   exit (stat ("", &sbuf) ? 1 : 0);
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914   (eval $ac_link) 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   ac_cv_func_stat_empty_string_bug=yes
9924 else
9925   echo "$as_me: program exited with status $ac_status" >&5
9926 echo "$as_me: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9928 ( exit $ac_status )
9929 ac_cv_func_stat_empty_string_bug=no
9930 fi
9931 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9932 fi
9933 fi
9934 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
9935 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
9936 if test $ac_cv_func_stat_empty_string_bug = yes; then
9937   LIBOBJS="$LIBOBJS stat.$ac_objext"
9938
9939 cat >>confdefs.h <<_ACEOF
9940 #define HAVE_STAT_EMPTY_STRING_BUG 1
9941 _ACEOF
9942
9943 fi
9944
9945 echo "$as_me:$LINENO: checking for working strtod" >&5
9946 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
9947 if test "${ac_cv_func_strtod+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   if test "$cross_compiling" = yes; then
9951   ac_cv_func_strtod=no
9952 else
9953   cat >conftest.$ac_ext <<_ACEOF
9954 #line $LINENO "configure"
9955 #include "confdefs.h"
9956
9957 double strtod ();
9958 int
9959 main()
9960 {
9961   {
9962     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9963     char *string = " +69";
9964     char *term;
9965     double value;
9966     value = strtod (string, &term);
9967     if (value != 69 || term != (string + 4))
9968       exit (1);
9969   }
9970
9971   {
9972     /* Under Solaris 2.4, strtod returns the wrong value for the
9973        terminating character under some conditions.  */
9974     char *string = "NaN";
9975     char *term;
9976     strtod (string, &term);
9977     if (term != string && *(term - 1) == 0)
9978       exit (1);
9979   }
9980   exit (0);
9981 }
9982
9983 _ACEOF
9984 rm -f conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986   (eval $ac_link) 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991   (eval $ac_try) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; }; then
9995   ac_cv_func_strtod=yes
9996 else
9997   echo "$as_me: program exited with status $ac_status" >&5
9998 echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10000 ( exit $ac_status )
10001 ac_cv_func_strtod=no
10002 fi
10003 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10004 fi
10005 fi
10006 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10007 echo "${ECHO_T}$ac_cv_func_strtod" >&6
10008 if test $ac_cv_func_strtod = no; then
10009   LIBOBJS="$LIBOBJS strtod.$ac_objext"
10010 echo "$as_me:$LINENO: checking for pow" >&5
10011 echo $ECHO_N "checking for pow... $ECHO_C" >&6
10012 if test "${ac_cv_func_pow+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   cat >conftest.$ac_ext <<_ACEOF
10016 #line $LINENO "configure"
10017 #include "confdefs.h"
10018 /* System header to define __stub macros and hopefully few prototypes,
10019     which can conflict with char pow (); below.  */
10020 #include <assert.h>
10021 /* Override any gcc2 internal prototype to avoid an error.  */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 /* We use char because int might match the return type of a gcc2
10026    builtin and then its argument prototype would still apply.  */
10027 char pow ();
10028 char (*f) ();
10029
10030 #ifdef F77_DUMMY_MAIN
10031 #  ifdef __cplusplus
10032      extern "C"
10033 #  endif
10034    int F77_DUMMY_MAIN() { return 1; }
10035 #endif
10036 int
10037 main ()
10038 {
10039 /* The GNU C library defines this for functions which it implements
10040     to always fail with ENOSYS.  Some functions are actually named
10041     something starting with __ and the normal name is an alias.  */
10042 #if defined (__stub_pow) || defined (__stub___pow)
10043 choke me
10044 #else
10045 f = pow;
10046 #endif
10047
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054   (eval $ac_link) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_func_pow=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_func_pow=no
10069 fi
10070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10071 fi
10072 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10073 echo "${ECHO_T}$ac_cv_func_pow" >&6
10074
10075 if test $ac_cv_func_pow = no; then
10076   echo "$as_me:$LINENO: checking for pow in -lm" >&5
10077 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
10078 if test "${ac_cv_lib_m_pow+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   ac_check_lib_save_LIBS=$LIBS
10082 LIBS="-lm  $LIBS"
10083 cat >conftest.$ac_ext <<_ACEOF
10084 #line $LINENO "configure"
10085 #include "confdefs.h"
10086
10087 /* Override any gcc2 internal prototype to avoid an error.  */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 /* We use char because int might match the return type of a gcc2
10092    builtin and then its argument prototype would still apply.  */
10093 char pow ();
10094 #ifdef F77_DUMMY_MAIN
10095 #  ifdef __cplusplus
10096      extern "C"
10097 #  endif
10098    int F77_DUMMY_MAIN() { return 1; }
10099 #endif
10100 int
10101 main ()
10102 {
10103 pow ();
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110   (eval $ac_link) 2>&5
10111   ac_status=$?
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } &&
10114          { ac_try='test -s conftest$ac_exeext'
10115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116   (eval $ac_try) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; }; then
10120   ac_cv_lib_m_pow=yes
10121 else
10122   echo "$as_me: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10124 ac_cv_lib_m_pow=no
10125 fi
10126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10128 fi
10129 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10130 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
10131 if test $ac_cv_lib_m_pow = yes; then
10132   POW_LIB=-lm
10133 else
10134   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10135 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10136 fi
10137
10138 fi
10139
10140 fi
10141
10142
10143 for ac_func in vprintf
10144 do
10145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10146 echo "$as_me:$LINENO: checking for $ac_func" >&5
10147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_var+set}\" = set"; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   cat >conftest.$ac_ext <<_ACEOF
10152 #line $LINENO "configure"
10153 #include "confdefs.h"
10154 /* System header to define __stub macros and hopefully few prototypes,
10155     which can conflict with char $ac_func (); below.  */
10156 #include <assert.h>
10157 /* Override any gcc2 internal prototype to avoid an error.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 /* We use char because int might match the return type of a gcc2
10162    builtin and then its argument prototype would still apply.  */
10163 char $ac_func ();
10164 char (*f) ();
10165
10166 #ifdef F77_DUMMY_MAIN
10167 #  ifdef __cplusplus
10168      extern "C"
10169 #  endif
10170    int F77_DUMMY_MAIN() { return 1; }
10171 #endif
10172 int
10173 main ()
10174 {
10175 /* The GNU C library defines this for functions which it implements
10176     to always fail with ENOSYS.  Some functions are actually named
10177     something starting with __ and the normal name is an alias.  */
10178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10179 choke me
10180 #else
10181 f = $ac_func;
10182 #endif
10183
10184   ;
10185   return 0;
10186 }
10187 _ACEOF
10188 rm -f conftest.$ac_objext conftest$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190   (eval $ac_link) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -s conftest$ac_exeext'
10195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196   (eval $ac_try) 2>&5
10197   ac_status=$?
10198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); }; }; then
10200   eval "$as_ac_var=yes"
10201 else
10202   echo "$as_me: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10204 eval "$as_ac_var=no"
10205 fi
10206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10207 fi
10208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10210 if test `eval echo '${'$as_ac_var'}'` = yes; then
10211   cat >>confdefs.h <<_ACEOF
10212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10213 _ACEOF
10214
10215 echo "$as_me:$LINENO: checking for _doprnt" >&5
10216 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10217 if test "${ac_cv_func__doprnt+set}" = set; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220   cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 #include "confdefs.h"
10223 /* System header to define __stub macros and hopefully few prototypes,
10224     which can conflict with char _doprnt (); below.  */
10225 #include <assert.h>
10226 /* Override any gcc2 internal prototype to avoid an error.  */
10227 #ifdef __cplusplus
10228 extern "C"
10229 #endif
10230 /* We use char because int might match the return type of a gcc2
10231    builtin and then its argument prototype would still apply.  */
10232 char _doprnt ();
10233 char (*f) ();
10234
10235 #ifdef F77_DUMMY_MAIN
10236 #  ifdef __cplusplus
10237      extern "C"
10238 #  endif
10239    int F77_DUMMY_MAIN() { return 1; }
10240 #endif
10241 int
10242 main ()
10243 {
10244 /* The GNU C library defines this for functions which it implements
10245     to always fail with ENOSYS.  Some functions are actually named
10246     something starting with __ and the normal name is an alias.  */
10247 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10248 choke me
10249 #else
10250 f = _doprnt;
10251 #endif
10252
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259   (eval $ac_link) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } &&
10263          { ac_try='test -s conftest$ac_exeext'
10264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265   (eval $ac_try) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; }; then
10269   ac_cv_func__doprnt=yes
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10273 ac_cv_func__doprnt=no
10274 fi
10275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10276 fi
10277 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10278 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10279 if test $ac_cv_func__doprnt = yes; then
10280
10281 cat >>confdefs.h <<\_ACEOF
10282 #define HAVE_DOPRNT 1
10283 _ACEOF
10284
10285 fi
10286
10287 fi
10288 done
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304 for ac_func in bzero floor ftruncate memmove memset munmap re_comp regcomp sqrt strchr strdup strrchr strtol
10305 do
10306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10307 echo "$as_me:$LINENO: checking for $ac_func" >&5
10308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10309 if eval "test \"\${$as_ac_var+set}\" = set"; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312   cat >conftest.$ac_ext <<_ACEOF
10313 #line $LINENO "configure"
10314 #include "confdefs.h"
10315 /* System header to define __stub macros and hopefully few prototypes,
10316     which can conflict with char $ac_func (); below.  */
10317 #include <assert.h>
10318 /* Override any gcc2 internal prototype to avoid an error.  */
10319 #ifdef __cplusplus
10320 extern "C"
10321 #endif
10322 /* We use char because int might match the return type of a gcc2
10323    builtin and then its argument prototype would still apply.  */
10324 char $ac_func ();
10325 char (*f) ();
10326
10327 #ifdef F77_DUMMY_MAIN
10328 #  ifdef __cplusplus
10329      extern "C"
10330 #  endif
10331    int F77_DUMMY_MAIN() { return 1; }
10332 #endif
10333 int
10334 main ()
10335 {
10336 /* The GNU C library defines this for functions which it implements
10337     to always fail with ENOSYS.  Some functions are actually named
10338     something starting with __ and the normal name is an alias.  */
10339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10340 choke me
10341 #else
10342 f = $ac_func;
10343 #endif
10344
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351   (eval $ac_link) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -s conftest$ac_exeext'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; }; then
10361   eval "$as_ac_var=yes"
10362 else
10363   echo "$as_me: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 eval "$as_ac_var=no"
10366 fi
10367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10368 fi
10369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10371 if test `eval echo '${'$as_ac_var'}'` = yes; then
10372   cat >>confdefs.h <<_ACEOF
10373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10374 _ACEOF
10375
10376 fi
10377 done
10378
10379
10380
10381
10382   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10383   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10384   ac_define_dir=`eval echo $"$sysconfdir"`
10385   ac_define_dir=`eval echo $ac_define_dir`
10386
10387 cat >>confdefs.h <<_ACEOF
10388 #define FGIS_CONFIG "$ac_define_dir"
10389 _ACEOF
10390
10391
10392
10393
10394
10395         FGIS_LIBDIR=$"$libdir"
10396         test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10397         test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10398         FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10399         FGIS_LIBDIR=`eval echo $FGIS_LIBDIR`
10400
10401
10402
10403
10404
10405 #
10406 # Ok, lets find the tcl source trees so we can use the headers
10407 # Warning: transition of version 9 to 10 will break this algorithm
10408 # because 10 sorts before 9. We also look for just tcl. We have to
10409 # be careful that we don't match stuff like tclX by accident.
10410 # the alternative search directory is involked by --with-tclinclude
10411 #
10412 no_tcl=true
10413 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
10414 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
10415
10416 # Check whether --with-tclinclude or --without-tclinclude was given.
10417 if test "${with_tclinclude+set}" = set; then
10418   withval="$with_tclinclude"
10419   with_tclinclude=${withval}
10420 fi;
10421 if test "${ac_cv_c_tclh+set}" = set; then
10422   echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424
10425 # first check to see if --with-tclinclude was specified
10426 if test x"${with_tclinclude}" != x ; then
10427   if test -f ${with_tclinclude}/tclInt.h ; then
10428     ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
10429   elif test -f ${with_tclinclude}/generic/tclInt.h ; then
10430     ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
10431   else
10432     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
10433 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
10434    { (exit 1); exit 1; }; }
10435   fi
10436 fi
10437
10438 # next check if it came with Tcl configuration file
10439 if test x"${ac_cv_c_tclconfig}" != x ; then
10440   if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
10441     ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)`
10442   fi
10443 fi
10444
10445 # next check in private source directory
10446 #
10447 # since ls returns lowest version numbers first, reverse its output
10448 if test x"${ac_cv_c_tclh}" = x ; then
10449   for i in \
10450                 ${srcdir}/../tcl \
10451                 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10452                 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` \
10453                 ${srcdir}/../../tcl \
10454                 `ls -dr ${srcdir}/../../tcl[9].[0-9].[0-9] ${srcdir}/../../tcl[9].[0-9] 2>/dev/null` \
10455                 `ls -dr ${srcdir}/../../tcl[8].[2-9].[0-9] ${srcdir}/../../tcl[8].[2-9] 2>/dev/null` \
10456                 ${srcdir}/../../../tcl \
10457                 `ls -dr ${srcdir}/../../../tcl[9].[0-9].[0-9] ${srcdir}/../../../tcl[9].[0-9] 2>/dev/null ` \
10458                 `ls -dr ${srcdir}/../../../tcl[8].[2-9].[0-9] ${srcdir}/../../../tcl[8].[2-9] 2>/dev/null ` ; do
10459     if test -f $i/generic/tclInt.h ; then
10460       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10461       break
10462     fi
10463   done
10464 fi
10465
10466 # check Debian-specific locations
10467 if test x"${ac_cv_c_tclh}" = x ; then
10468   for i in \
10469                 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tcl-private /usr/include/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10470                 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tcl-private /usr/include/tcl[8].[2-9]/tcl-private 2>/dev/null`; do
10471     if test -f $i/generic/tclInt.h ; then
10472       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10473       break
10474     fi
10475   done
10476 fi
10477
10478 # finally check in a few common install locations
10479 #
10480 # since ls returns lowest version numbers first, reverse its output
10481 if test x"${ac_cv_c_tclh}" = x ; then
10482   for i in \
10483                 `ls -dr /usr/lib/tcl[9].[0-9].[0-9]/tcl-private /usr/lib/tcl[9].[0-9]/tcl-private 2>/dev/null` \
10484                 `ls -dr /usr/lib/tcl[8].[2-9].[0-9]/tcl-private /usr/lib/tcl[8].[2-9]/tcl-private 2>/dev/null` \
10485                 `ls -dr /usr/local/src/tcl[9].[0-9].[0-9] /usr/local/src/tcl[9].[0-9] 2>/dev/null` \
10486                 `ls -dr /usr/local/src/tcl[8].[2-9].[0-9] /usr/local/src/tcl[8].[2-9] 2>/dev/null` \
10487                 `ls -dr /usr/local/lib/tcl[9].[0-9].[0-9] /usr/local/lib/tcl[9].[0-9] 2>/dev/null` \
10488                 `ls -dr /usr/local/lib/tcl[8].[2-9].[0-9] /usr/local/lib/tcl[8].[2-9] 2>/dev/null` \
10489                 /usr/local/src/tcl \
10490                 /usr/local/lib/tcl \
10491                 ${prefix}/include ; do
10492     if test -f $i/generic/tclInt.h ; then
10493       ac_cv_c_tclh=`(cd $i/generic; pwd)`
10494       break
10495     fi
10496   done
10497 fi
10498 # see if one is installed
10499 if test x"${ac_cv_c_tclh}" = x ; then
10500    if test "${ac_cv_header_tclInt_h+set}" = set; then
10501   echo "$as_me:$LINENO: checking for tclInt.h" >&5
10502 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10503 if test "${ac_cv_header_tclInt_h+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 fi
10506 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10507 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10508 else
10509   # Is the header compilable?
10510 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
10511 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
10512 cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10514 #include "confdefs.h"
10515 $ac_includes_default
10516 #include <tclInt.h>
10517 _ACEOF
10518 rm -f conftest.$ac_objext
10519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10520   (eval $ac_compile) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -s conftest.$ac_objext'
10525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526   (eval $ac_try) 2>&5
10527   ac_status=$?
10528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529   (exit $ac_status); }; }; then
10530   ac_header_compiler=yes
10531 else
10532   echo "$as_me: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10534 ac_header_compiler=no
10535 fi
10536 rm -f conftest.$ac_objext conftest.$ac_ext
10537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538 echo "${ECHO_T}$ac_header_compiler" >&6
10539
10540 # Is the header present?
10541 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
10542 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 #include "confdefs.h"
10546 #include <tclInt.h>
10547 _ACEOF
10548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10550   ac_status=$?
10551   egrep -v '^ *\+' conftest.er1 >conftest.err
10552   rm -f conftest.er1
10553   cat conftest.err >&5
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } >/dev/null; then
10556   if test -s conftest.err; then
10557     ac_cpp_err=$ac_c_preproc_warn_flag
10558   else
10559     ac_cpp_err=
10560   fi
10561 else
10562   ac_cpp_err=yes
10563 fi
10564 if test -z "$ac_cpp_err"; then
10565   ac_header_preproc=yes
10566 else
10567   echo "$as_me: failed program was:" >&5
10568   cat conftest.$ac_ext >&5
10569   ac_header_preproc=no
10570 fi
10571 rm -f conftest.err conftest.$ac_ext
10572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10573 echo "${ECHO_T}$ac_header_preproc" >&6
10574
10575 # So?  What about this header?
10576 case $ac_header_compiler:$ac_header_preproc in
10577   yes:no )
10578     { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
10579 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10580     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10581 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;};;
10582   no:yes )
10583     { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
10584 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
10586 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
10587     { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
10588 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;};;
10589 esac
10590 echo "$as_me:$LINENO: checking for tclInt.h" >&5
10591 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
10592 if test "${ac_cv_header_tclInt_h+set}" = set; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   ac_cv_header_tclInt_h=$ac_header_preproc
10596 fi
10597 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
10598 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
10599
10600 fi
10601 if test $ac_cv_header_tclInt_h = yes; then
10602   ac_cv_c_tclh=installed
10603 else
10604   ac_cv_c_tclh=""
10605 fi
10606
10607
10608 fi
10609
10610 fi
10611
10612 if test x"${ac_cv_c_tclh}" = x ; then
10613   TCLHDIR="# no Tcl private headers found"
10614   TCLHDIRDASHI="# no Tcl private headers found"
10615   { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
10616 echo "$as_me: error: Can't find Tcl private headers" >&2;}
10617    { (exit 1); exit 1; }; }
10618 fi
10619 if test x"${ac_cv_c_tclh}" != x ; then
10620   no_tcl=""
10621   if test x"${ac_cv_c_tclh}" = x"installed" ; then
10622     echo "$as_me:$LINENO: result: is installed" >&5
10623 echo "${ECHO_T}is installed" >&6
10624     TCLHDIR=""
10625     TCLHDIRDASHI=""
10626     TCL_LIBRARY=""
10627   else
10628     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
10629 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
10630     # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
10631     TCLHDIR="${ac_cv_c_tclh}"
10632     TCLHDIRDASHI="-I${ac_cv_c_tclh}"
10633     TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library
10634   fi
10635 fi
10636
10637
10638
10639
10640
10641 if test x"$no_tcl" = x"true" ; then
10642     echo "      ERROR: Can't find Tcl headers or library."
10643     echo "      See README for information on how to obtain Tcl."
10644     echo "      If Tcl is installed, see INSTALL on how to tell"
10645     echo "      configure where Tcl is installed."
10646     exit 1
10647 fi
10648
10649 #
10650 # Ok, lets find the tcl configuration
10651 # First, look for one uninstalled.
10652 # the alternative search directory is invoked by --with-tcl
10653 #
10654
10655 if test x"${no_tcl}" = x ; then
10656   # we reset no_tcl in case something fails here
10657   no_tcl=true
10658
10659 # Check whether --with-tcl or --without-tcl was given.
10660 if test "${with_tcl+set}" = set; then
10661   withval="$with_tcl"
10662   with_tclconfig=${withval}
10663 fi;
10664   echo "$as_me:$LINENO: checking for Tcl configuration" >&5
10665 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
10666   if test "${ac_cv_c_tclconfig+set}" = set; then
10667   echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669
10670
10671   # First check to see if --with-tcl was specified.
10672   if test x"${with_tclconfig}" != x ; then
10673     if test -f "${with_tclconfig}/tclConfig.sh" ; then
10674       ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10675     else
10676       { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
10677 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
10678    { (exit 1); exit 1; }; }
10679     fi
10680   fi
10681
10682   # then check for a private Tcl installation
10683   if test x"${ac_cv_c_tclconfig}" = x ; then
10684     for i in \
10685                 ../tcl \
10686                 `ls -dr ../tcl[9].[0-9].[0-9] ../tcl[9].[0-9] 2>/dev/null` \
10687                 `ls -dr ../tcl[8].[2-9].[0-9] ../tcl[8].[2-9] 2>/dev/null` \
10688                 ../../tcl \
10689                 `ls -dr ../../tcl[9].[0-9].[0-9] ../../tcl[9].[0-9] 2>/dev/null` \
10690                 `ls -dr ../../tcl[8].[2-9].[0-9] ../../tcl[8].[2-9] 2>/dev/null` \
10691                 ../../../tcl \
10692                 `ls -dr ../../../tcl[9].[0-9].[0-9] ../../../tcl[9].[0-9] 2>/dev/null` \
10693                 `ls -dr ../../../tcl[8].[2-9].[0-9] ../../../tcl[8].[2-9] 2>/dev/null` ; do
10694       if test -f "$i/unix/tclConfig.sh" ; then
10695         ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10696         break
10697       fi
10698     done
10699   fi
10700   # check in a few common install locations
10701   if test x"${ac_cv_c_tclconfig}" = x ; then
10702     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
10703       if test -f "$i/tclConfig.sh" ; then
10704         ac_cv_c_tclconfig=`(cd $i; pwd)`
10705         break
10706       fi
10707     done
10708   fi
10709
10710   # check Debian-specific locations
10711   if test x"${ac_cv_c_tclconfig}" = x ; then
10712     for i in \
10713                 `ls -dr /usr/lib/tcl[9].[0-9].[0-9] /usr/lib/tcl[9].[0-9] 2>/dev/null` \
10714                 `ls -dr /usr/lib/tcl[8].[2-9].[0-9] /usr/lib/tcl[8].[2-9] 2>/dev/null` ; do
10715       if test -f "$i/tclConfig.sh" ; then
10716         ac_cv_c_tclconfig=`(cd $i; pwd)`
10717         break
10718       fi
10719     done
10720   fi
10721
10722   # check in a few other private locations
10723   if test x"${ac_cv_c_tclconfig}" = x ; then
10724     for i in \
10725                 ${srcdir}/../tcl \
10726                 `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \
10727                 `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` ; do
10728       if test -f "$i/unix/tclConfig.sh" ; then
10729         ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10730         break
10731       fi
10732     done
10733   fi
10734
10735 fi
10736
10737   if test x"${ac_cv_c_tclconfig}" = x ; then
10738     TCLCONFIG="# no Tcl configs found"
10739     { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
10740 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10741   else
10742     no_tcl=
10743     TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
10744     echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
10745 echo "${ECHO_T}found $TCLCONFIG" >&6
10746   fi
10747 fi
10748
10749
10750     . $TCLCONFIG
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762 # Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
10763 # as just SHLIB_SUFFIX.  How bizarre.
10764     SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
10765
10766
10767
10768
10769 # if Tcl's build directory has been removed, TCL_LIB_SPEC should
10770 # be used instead of TCL_BUILD_LIB_SPEC
10771 SAVELIBS=$LIBS
10772 # eval used to expand out TCL_DBGX
10773 eval "LIBS=\"$TCL_BUILD_LIB_SPEC $TCL_LIBS\""
10774 echo "$as_me:$LINENO: checking Tcl build library" >&5
10775 echo $ECHO_N "checking Tcl build library... $ECHO_C" >&6
10776 echo "$as_me:$LINENO: result: $LIBS" >&5
10777 echo "${ECHO_T}$LIBS" >&6
10778
10779 echo "$as_me:$LINENO: checking for Tcl_CreateCommand" >&5
10780 echo $ECHO_N "checking for Tcl_CreateCommand... $ECHO_C" >&6
10781 if test "${ac_cv_func_Tcl_CreateCommand+set}" = set; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   cat >conftest.$ac_ext <<_ACEOF
10785 #line $LINENO "configure"
10786 #include "confdefs.h"
10787 /* System header to define __stub macros and hopefully few prototypes,
10788     which can conflict with char Tcl_CreateCommand (); below.  */
10789 #include <assert.h>
10790 /* Override any gcc2 internal prototype to avoid an error.  */
10791 #ifdef __cplusplus
10792 extern "C"
10793 #endif
10794 /* We use char because int might match the return type of a gcc2
10795    builtin and then its argument prototype would still apply.  */
10796 char Tcl_CreateCommand ();
10797 char (*f) ();
10798
10799 #ifdef F77_DUMMY_MAIN
10800 #  ifdef __cplusplus
10801      extern "C"
10802 #  endif
10803    int F77_DUMMY_MAIN() { return 1; }
10804 #endif
10805 int
10806 main ()
10807 {
10808 /* The GNU C library defines this for functions which it implements
10809     to always fail with ENOSYS.  Some functions are actually named
10810     something starting with __ and the normal name is an alias.  */
10811 #if defined (__stub_Tcl_CreateCommand) || defined (__stub___Tcl_CreateCommand)
10812 choke me
10813 #else
10814 f = Tcl_CreateCommand;
10815 #endif
10816
10817   ;
10818   return 0;
10819 }
10820 _ACEOF
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823   (eval $ac_link) 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } &&
10827          { ac_try='test -s conftest$ac_exeext'
10828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829   (eval $ac_try) 2>&5
10830   ac_status=$?
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); }; }; then
10833   ac_cv_func_Tcl_CreateCommand=yes
10834 else
10835   echo "$as_me: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 ac_cv_func_Tcl_CreateCommand=no
10838 fi
10839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10840 fi
10841 echo "$as_me:$LINENO: result: $ac_cv_func_Tcl_CreateCommand" >&5
10842 echo "${ECHO_T}$ac_cv_func_Tcl_CreateCommand" >&6
10843 if test $ac_cv_func_Tcl_CreateCommand = yes; then
10844
10845         echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10846 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10847         echo "$as_me:$LINENO: result: yes" >&5
10848 echo "${ECHO_T}yes" >&6
10849
10850 else
10851
10852         TCL_BUILD_LIB_SPEC=$TCL_LIB_SPEC
10853         # Can't pull the following CHECKING call out since it will be
10854         # broken up by the CHECK_FUNC just above.
10855         echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
10856 echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
10857         echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6
10859
10860 fi
10861
10862 LIBS=$SAVELIBS
10863
10864
10865
10866
10867
10868
10869
10870 TCL_INC_DIR=$TCL_INC_DIR
10871
10872 TCL_PACKAGE_PATH=$TCL_PACKAGE_PATH
10873
10874
10875
10876 #
10877 # Ok, lets find the tk source trees so we can use the headers
10878 # If the directory (presumably symlink) named "tk" exists, use that one
10879 # in preference to any others.  Same logic is used when choosing library
10880 # and again with Tcl. The search order is the best place to look first, then in
10881 # decreasing significance. The loop breaks if the trigger file is found.
10882 # Note the gross little conversion here of srcdir by cd'ing to the found
10883 # directory. This converts the path from a relative to an absolute, so
10884 # recursive cache variables for the path will work right. We check all
10885 # the possible paths in one loop rather than many seperate loops to speed
10886 # things up.
10887 # the alternative search directory is involked by --with-tkinclude
10888 #
10889 #no_tk=true
10890 echo "$as_me:$LINENO: checking for Tk private headers" >&5
10891 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
10892
10893 # Check whether --with-tkinclude or --without-tkinclude was given.
10894 if test "${with_tkinclude+set}" = set; then
10895   withval="$with_tkinclude"
10896   with_tkinclude=${withval}
10897 fi;
10898 if test "${ac_cv_c_tkh+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901
10902 # first check to see if --with-tkinclude was specified
10903 if test x"${with_tkinclude}" != x ; then
10904   if test -f ${with_tkinclude}/tk.h ; then
10905     ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
10906   elif test -f ${with_tkinclude}/generic/tk.h ; then
10907     ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
10908   else
10909     { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
10910 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
10911    { (exit 1); exit 1; }; }
10912   fi
10913 fi
10914
10915 # next check if it came with Tk configuration file
10916 if test x"${ac_cv_c_tkconfig}" != x ; then
10917   if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
10918     ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/../generic; pwd)`
10919   fi
10920 fi
10921
10922 # next check in private source directory
10923 #
10924 # since ls returns lowest version numbers first, reverse its output
10925 if test x"${ac_cv_c_tkh}" = x ; then
10926   for i in \
10927                 ${srcdir}/../tk \
10928                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
10929                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
10930                 ${srcdir}/../../tk \
10931                 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
10932                 `ls -dr ${srcdir}/../../tk[4-9].[0-9].[0-9] ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
10933                 ${srcdir}/../../../tk \
10934                 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` \
10935                 `ls -dr ${srcdir}/../../../tk[4-9].[0-9].[0-9] ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` ; do
10936     if test -f $i/generic/tk.h ; then
10937       ac_cv_c_tkh=`(cd $i/generic; pwd)`
10938       break
10939     fi
10940   done
10941 fi
10942
10943 # check Debian-specific locations
10944 if test x"${ac_cv_c_tkh}" = x ; then
10945   for i in \
10946                 `ls -dr /usr/include/tcl[9].[0-9].[0-9]/tk-private /usr/include/tcl[9].[0-9]/tk-private 2>/dev/null` \
10947                 `ls -dr /usr/include/tcl[8].[2-9].[0-9]/tk-private /usr/include/tcl[8].[2-9]/tk-private 2>/dev/null` ; do
10948     if test -f $i/generic/tk.h ; then
10949       ac_cv_c_tkh=`(cd $i/generic; pwd)`
10950       break
10951     fi
10952   done
10953 fi
10954
10955 # finally check in a few common install locations
10956 #
10957 # since ls returns lowest version numbers first, reverse its output
10958 if test x"${ac_cv_c_tkh}" = x ; then
10959   for i in \
10960                 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
10961                 `ls -dr /usr/local/src/tk[4-9].[0-9].[0-9] /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
10962                 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
10963                 `ls -dr /usr/local/lib/tk[4-9].[0-9].[0-9] /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
10964                 /usr/local/src/tk \
10965                 /usr/local/lib/tk \
10966                 ${prefix}/include ; do
10967     if test -f $i/generic/tk.h ; then
10968       ac_cv_c_tkh=`(cd $i/generic; pwd)`
10969       break
10970     fi
10971   done
10972 fi
10973 # see if one is installed
10974 if test x"${ac_cv_c_tkh}" = x ; then
10975    if test "${ac_cv_header_tk_h+set}" = set; then
10976   echo "$as_me:$LINENO: checking for tk.h" >&5
10977 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
10978 if test "${ac_cv_header_tk_h+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 fi
10981 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
10982 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
10983 else
10984   # Is the header compilable?
10985 echo "$as_me:$LINENO: checking tk.h usability" >&5
10986 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
10987 cat >conftest.$ac_ext <<_ACEOF
10988 #line $LINENO "configure"
10989 #include "confdefs.h"
10990 $ac_includes_default
10991 #include <tk.h>
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10995   (eval $ac_compile) 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } &&
10999          { ac_try='test -s conftest.$ac_objext'
11000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001   (eval $ac_try) 2>&5
11002   ac_status=$?
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); }; }; then
11005   ac_header_compiler=yes
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11009 ac_header_compiler=no
11010 fi
11011 rm -f conftest.$ac_objext conftest.$ac_ext
11012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11013 echo "${ECHO_T}$ac_header_compiler" >&6
11014
11015 # Is the header present?
11016 echo "$as_me:$LINENO: checking tk.h presence" >&5
11017 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
11018 cat >conftest.$ac_ext <<_ACEOF
11019 #line $LINENO "configure"
11020 #include "confdefs.h"
11021 #include <tk.h>
11022 _ACEOF
11023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11025   ac_status=$?
11026   egrep -v '^ *\+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } >/dev/null; then
11031   if test -s conftest.err; then
11032     ac_cpp_err=$ac_c_preproc_warn_flag
11033   else
11034     ac_cpp_err=
11035   fi
11036 else
11037   ac_cpp_err=yes
11038 fi
11039 if test -z "$ac_cpp_err"; then
11040   ac_header_preproc=yes
11041 else
11042   echo "$as_me: failed program was:" >&5
11043   cat conftest.$ac_ext >&5
11044   ac_header_preproc=no
11045 fi
11046 rm -f conftest.err conftest.$ac_ext
11047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11048 echo "${ECHO_T}$ac_header_preproc" >&6
11049
11050 # So?  What about this header?
11051 case $ac_header_compiler:$ac_header_preproc in
11052   yes:no )
11053     { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
11054 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11055     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11056 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;};;
11057   no:yes )
11058     { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
11059 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
11060     { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
11061 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
11062     { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
11063 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;};;
11064 esac
11065 echo "$as_me:$LINENO: checking for tk.h" >&5
11066 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
11067 if test "${ac_cv_header_tk_h+set}" = set; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070   ac_cv_header_tk_h=$ac_header_preproc
11071 fi
11072 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
11073 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
11074
11075 fi
11076 if test $ac_cv_header_tk_h = yes; then
11077   ac_cv_c_tkh=installed
11078 else
11079   ac_cv_c_tkh=""
11080 fi
11081
11082
11083 fi
11084
11085 fi
11086
11087 if test x"${ac_cv_c_tkh}" != x ; then
11088 #  no_tk=""
11089   if test x"${ac_cv_c_tkh}" = x"installed" ; then
11090     echo "$as_me:$LINENO: result: is installed" >&5
11091 echo "${ECHO_T}is installed" >&6
11092     TKHDIRDASHI=""
11093   else
11094     echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
11095 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
11096     # this hack is cause the TKHDIRDASHI won't print if there is a "-I" in it.
11097     TKHDIRDASHI="-I${ac_cv_c_tkh}"
11098   fi
11099 else
11100   TKHDIRDASHI="# no Tk directory found"
11101   { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
11102 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
11103   no_tk=true
11104 fi
11105
11106
11107
11108
11109 #
11110 # Ok, lets find the tk configuration
11111 # First, look for one uninstalled.
11112 # the alternative search directory is invoked by --with-tk
11113 #
11114
11115 if test x"${no_tk}" = x ; then
11116   # we reset no_tk in case something fails here
11117   no_tk=true
11118
11119 # Check whether --with-tk or --without-tk was given.
11120 if test "${with_tk+set}" = set; then
11121   withval="$with_tk"
11122   with_tkconfig=${withval}
11123 fi;
11124   echo "$as_me:$LINENO: checking for Tk configuration" >&5
11125 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
11126   if test "${ac_cv_c_tkconfig+set}" = set; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129
11130
11131   # First check to see if --with-tk was specified.
11132   if test x"${with_tkconfig}" != x ; then
11133     if test -f "${with_tkconfig}/tkConfig.sh" ; then
11134       ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
11135     else
11136       { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
11137 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
11138    { (exit 1); exit 1; }; }
11139     fi
11140   fi
11141
11142   # then check for a private Tk library
11143   if test x"${ac_cv_c_tkconfig}" = x ; then
11144     for i in \
11145                 ../tk \
11146                 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11147                 `ls -dr ../tk[4-9].[0-9].[0-9] ../tk[4-9].[0-9] 2>/dev/null` \
11148                 ../../tk \
11149                 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11150                 `ls -dr ../../tk[4-9].[0-9].[0-9] ../../tk[4-9].[0-9] 2>/dev/null` \
11151                 ../../../tk \
11152                 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` \
11153                 `ls -dr ../../../tk[4-9].[0-9].[0-9] ../../../tk[4-9].[0-9] 2>/dev/null` ; do
11154       if test -f "$i/unix/tkConfig.sh" ; then
11155         ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11156         break
11157       fi
11158     done
11159   fi
11160   # check in a few common install locations
11161   if test x"${ac_cv_c_tkconfig}" = x ; then
11162     for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
11163       if test -f "$i/tkConfig.sh" ; then
11164         ac_cv_c_tkconfig=`(cd $i; pwd)`
11165         break
11166       fi
11167     done
11168   fi
11169   # check Debian-specific locations
11170   if test x"${ac_cv_c_tkconfig}" = x ; then
11171     for i in \
11172                 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` \
11173                 `ls -dr /usr/lib/tk[4-9].[0-9].[0-9] /usr/lib/tk[4-9].[0-9] 2>/dev/null` ; do
11174       if test -f "$i/tkConfig.sh" ; then
11175         ac_cv_c_tkconfig=`(cd $i; pwd)`
11176         break
11177       fi
11178     done
11179   fi
11180   # check in a few other private locations
11181   if test x"${ac_cv_c_tkconfig}" = x ; then
11182     for i in \
11183                 ${srcdir}/../tk \
11184                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
11185                 `ls -dr ${srcdir}/../tk[4-9].[0-9].[0-9] ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` ; do
11186       if test -f "$i/unix/tkConfig.sh" ; then
11187         ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
11188         break
11189       fi
11190     done
11191   fi
11192
11193 fi
11194
11195   if test x"${ac_cv_c_tkconfig}" = x ; then
11196     TKCONFIG="# no Tk configs found"
11197     { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
11198 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
11199   else
11200     no_tk=
11201     TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
11202     echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
11203 echo "${ECHO_T}found $TKCONFIG" >&6
11204   fi
11205 fi
11206
11207
11208
11209     if test -f "$TKCONFIG" ; then
11210       . $TKCONFIG
11211     fi
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223 # if Tk's build directory has been removed, TK_LIB_SPEC should
11224 # be used instead of TK_BUILD_LIB_SPEC
11225 SAVELIBS=$LIBS
11226 # eval used to expand out TK_DBGX
11227 eval "LIBS=\"$TK_BUILD_LIB_SPEC $TCL_BUILD_LIB_SPEC $TK_LIBS\""
11228 echo "$as_me:$LINENO: checking for Tk_Init" >&5
11229 echo $ECHO_N "checking for Tk_Init... $ECHO_C" >&6
11230 if test "${ac_cv_func_Tk_Init+set}" = set; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   cat >conftest.$ac_ext <<_ACEOF
11234 #line $LINENO "configure"
11235 #include "confdefs.h"
11236 /* System header to define __stub macros and hopefully few prototypes,
11237     which can conflict with char Tk_Init (); below.  */
11238 #include <assert.h>
11239 /* Override any gcc2 internal prototype to avoid an error.  */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 /* We use char because int might match the return type of a gcc2
11244    builtin and then its argument prototype would still apply.  */
11245 char Tk_Init ();
11246 char (*f) ();
11247
11248 #ifdef F77_DUMMY_MAIN
11249 #  ifdef __cplusplus
11250      extern "C"
11251 #  endif
11252    int F77_DUMMY_MAIN() { return 1; }
11253 #endif
11254 int
11255 main ()
11256 {
11257 /* The GNU C library defines this for functions which it implements
11258     to always fail with ENOSYS.  Some functions are actually named
11259     something starting with __ and the normal name is an alias.  */
11260 #if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
11261 choke me
11262 #else
11263 f = Tk_Init;
11264 #endif
11265
11266   ;
11267   return 0;
11268 }
11269 _ACEOF
11270 rm -f conftest.$ac_objext conftest$ac_exeext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272   (eval $ac_link) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } &&
11276          { ac_try='test -s conftest$ac_exeext'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_cv_func_Tk_Init=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 ac_cv_func_Tk_Init=no
11287 fi
11288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11289 fi
11290 echo "$as_me:$LINENO: result: $ac_cv_func_Tk_Init" >&5
11291 echo "${ECHO_T}$ac_cv_func_Tk_Init" >&6
11292 if test $ac_cv_func_Tk_Init = yes; then
11293
11294         echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11295 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11296         echo "$as_me:$LINENO: result: yes" >&5
11297 echo "${ECHO_T}yes" >&6
11298
11299 else
11300
11301         TK_BUILD_LIB_SPEC=$TK_LIB_SPEC
11302         # Can't pull the following CHECKING call out since it will be
11303         # broken up by the CHECK_FUNC just above.
11304         echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
11305 echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
11306         echo "$as_me:$LINENO: result: no" >&5
11307 echo "${ECHO_T}no" >&6
11308
11309 fi
11310
11311 LIBS=$SAVELIBS
11312
11313
11314
11315
11316 TK_INC_DIR=$TK_INC_DIR
11317
11318
11319 ac_config_files="$ac_config_files Makefile dll/Makefile epu/Makefile include/Makefile lib/Makefile tcl/Makefile tcl/pkgIndex.tcl"
11320
11321 cat >confcache <<\_ACEOF
11322 # This file is a shell script that caches the results of configure
11323 # tests run on this system so they can be shared between configure
11324 # scripts and configure runs, see configure's option --config-cache.
11325 # It is not useful on other systems.  If it contains results you don't
11326 # want to keep, you may remove or edit it.
11327 #
11328 # config.status only pays attention to the cache file if you give it
11329 # the --recheck option to rerun configure.
11330 #
11331 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11333 # following values.
11334
11335 _ACEOF
11336
11337 # The following way of writing the cache mishandles newlines in values,
11338 # but we know of no workaround that is simple, portable, and efficient.
11339 # So, don't put newlines in cache variables' values.
11340 # Ultrix sh set writes to stderr and can't be redirected directly,
11341 # and sets the high bit in the cache file unless we assign to the vars.
11342 {
11343   (set) 2>&1 |
11344     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11345     *ac_space=\ *)
11346       # `set' does not quote correctly, so add quotes (double-quote
11347       # substitution turns \\\\ into \\, and sed turns \\ into \).
11348       sed -n \
11349         "s/'/'\\\\''/g;
11350           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11351       ;;
11352     *)
11353       # `set' quotes correctly as required by POSIX, so do not add quotes.
11354       sed -n \
11355         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11356       ;;
11357     esac;
11358 } |
11359   sed '
11360      t clear
11361      : clear
11362      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11363      t end
11364      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11365      : end' >>confcache
11366 if cmp -s $cache_file confcache; then :; else
11367   if test -w $cache_file; then
11368     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11369     cat confcache >$cache_file
11370   else
11371     echo "not updating unwritable cache $cache_file"
11372   fi
11373 fi
11374 rm -f confcache
11375
11376 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11377 # Let make expand exec_prefix.
11378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11379
11380 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11381 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11382 # trailing colons and then remove the whole line if VPATH becomes empty
11383 # (actually we leave an empty line to preserve line numbers).
11384 if test "x$srcdir" = x.; then
11385   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11386 s/:*\$(srcdir):*/:/;
11387 s/:*\${srcdir}:*/:/;
11388 s/:*@srcdir@:*/:/;
11389 s/^\([^=]*=[    ]*\):*/\1/;
11390 s/:*$//;
11391 s/^[^=]*=[      ]*$//;
11392 }'
11393 fi
11394
11395 DEFS=-DHAVE_CONFIG_H
11396
11397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11398   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11399 Usually this means the macro was only invoked conditionally." >&5
11400 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11401 Usually this means the macro was only invoked conditionally." >&2;}
11402    { (exit 1); exit 1; }; }
11403 fi
11404
11405 : ${CONFIG_STATUS=./config.status}
11406 ac_clean_files_save=$ac_clean_files
11407 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11408 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11409 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11410 cat >$CONFIG_STATUS <<_ACEOF
11411 #! $SHELL
11412 # Generated by $as_me.
11413 # Run this file to recreate the current configuration.
11414 # Compiler output produced by configure, useful for debugging
11415 # configure, is in config.log if it exists.
11416
11417 debug=false
11418 SHELL=\${CONFIG_SHELL-$SHELL}
11419 _ACEOF
11420
11421 cat >>$CONFIG_STATUS <<\_ACEOF
11422
11423 ## --------------------- ##
11424 ## M4sh Initialization.  ##
11425 ## --------------------- ##
11426
11427 # Be Bourne compatible
11428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11429   emulate sh
11430   NULLCMD=:
11431 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11432   set -o posix
11433 fi
11434
11435 # NLS nuisances.
11436 # Support unset when possible.
11437 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11438   as_unset=unset
11439 else
11440   as_unset=false
11441 fi
11442
11443 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
11444     { $as_unset LANG || test "${LANG+set}" != set; } ||
11445       { LANG=C; export LANG; }
11446 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
11447     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
11448       { LC_ALL=C; export LC_ALL; }
11449 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
11450     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
11451       { LC_TIME=C; export LC_TIME; }
11452 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
11453     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
11454       { LC_CTYPE=C; export LC_CTYPE; }
11455 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
11456     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
11457       { LANGUAGE=C; export LANGUAGE; }
11458 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
11459     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
11460       { LC_COLLATE=C; export LC_COLLATE; }
11461 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
11462     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
11463       { LC_NUMERIC=C; export LC_NUMERIC; }
11464 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
11465     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
11466       { LC_MESSAGES=C; export LC_MESSAGES; }
11467
11468
11469 # Name of the executable.
11470 as_me=`(basename "$0") 2>/dev/null ||
11471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11472          X"$0" : 'X\(//\)$' \| \
11473          X"$0" : 'X\(/\)$' \| \
11474          .     : '\(.\)' 2>/dev/null ||
11475 echo X/"$0" |
11476     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11477           /^X\/\(\/\/\)$/{ s//\1/; q; }
11478           /^X\/\(\/\).*/{ s//\1/; q; }
11479           s/.*/./; q'`
11480
11481 # PATH needs CR, and LINENO needs CR and PATH.
11482 # Avoid depending upon Character Ranges.
11483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11486 as_cr_digits='0123456789'
11487 as_cr_alnum=$as_cr_Letters$as_cr_digits
11488
11489 # The user is always right.
11490 if test "${PATH_SEPARATOR+set}" != set; then
11491   echo "#! /bin/sh" >conftest.sh
11492   echo  "exit 0"   >>conftest.sh
11493   chmod +x conftest.sh
11494   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
11495     PATH_SEPARATOR=';'
11496   else
11497     PATH_SEPARATOR=:
11498   fi
11499   rm -f conftest.sh
11500 fi
11501
11502
11503   as_lineno_1=$LINENO
11504   as_lineno_2=$LINENO
11505   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11506   test "x$as_lineno_1" != "x$as_lineno_2" &&
11507   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11508   # Find who we are.  Look in the path if we contain no path at all
11509   # relative or not.
11510   case $0 in
11511     *[\\/]* ) as_myself=$0 ;;
11512     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515   IFS=$as_save_IFS
11516   test -z "$as_dir" && as_dir=.
11517   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11518 done
11519
11520        ;;
11521   esac
11522   # We did not find ourselves, most probably we were run as `sh COMMAND'
11523   # in which case we are not to be found in the path.
11524   if test "x$as_myself" = x; then
11525     as_myself=$0
11526   fi
11527   if test ! -f "$as_myself"; then
11528     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11530    { (exit 1); exit 1; }; }
11531   fi
11532   case $CONFIG_SHELL in
11533   '')
11534     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11536 do
11537   IFS=$as_save_IFS
11538   test -z "$as_dir" && as_dir=.
11539   for as_base in sh bash ksh sh5; do
11540          case $as_dir in
11541          /*)
11542            if ("$as_dir/$as_base" -c '
11543   as_lineno_1=$LINENO
11544   as_lineno_2=$LINENO
11545   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11546   test "x$as_lineno_1" != "x$as_lineno_2" &&
11547   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11548              CONFIG_SHELL=$as_dir/$as_base
11549              export CONFIG_SHELL
11550              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11551            fi;;
11552          esac
11553        done
11554 done
11555 ;;
11556   esac
11557
11558   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11559   # uniformly replaced by the line number.  The first 'sed' inserts a
11560   # line-number line before each line; the second 'sed' does the real
11561   # work.  The second script uses 'N' to pair each line-number line
11562   # with the numbered line, and appends trailing '-' during
11563   # substitution so that $LINENO is not a special case at line end.
11564   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11565   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11566   sed '=' <$as_myself |
11567     sed '
11568       N
11569       s,$,-,
11570       : loop
11571       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11572       t loop
11573       s,-$,,
11574       s,^['$as_cr_digits']*\n,,
11575     ' >$as_me.lineno &&
11576   chmod +x $as_me.lineno ||
11577     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11578 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11579    { (exit 1); exit 1; }; }
11580
11581   # Don't try to exec as it changes $[0], causing all sort of problems
11582   # (the dirname of $[0] is not the place where we might find the
11583   # original and so on.  Autoconf is especially sensible to this).
11584   . ./$as_me.lineno
11585   # Exit status is that of the last command.
11586   exit
11587 }
11588
11589
11590 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11591   *c*,-n*) ECHO_N= ECHO_C='
11592 ' ECHO_T='      ' ;;
11593   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11594   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11595 esac
11596
11597 if expr a : '\(a\)' >/dev/null 2>&1; then
11598   as_expr=expr
11599 else
11600   as_expr=false
11601 fi
11602
11603 rm -f conf$$ conf$$.exe conf$$.file
11604 echo >conf$$.file
11605 if ln -s conf$$.file conf$$ 2>/dev/null; then
11606   # We could just check for DJGPP; but this test a) works b) is more generic
11607   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11608   if test -f conf$$.exe; then
11609     # Don't use ln at all; we don't have any links
11610     as_ln_s='cp -p'
11611   else
11612     as_ln_s='ln -s'
11613   fi
11614 elif ln conf$$.file conf$$ 2>/dev/null; then
11615   as_ln_s=ln
11616 else
11617   as_ln_s='cp -p'
11618 fi
11619 rm -f conf$$ conf$$.exe conf$$.file
11620
11621 as_executable_p="test -f"
11622
11623 # Sed expression to map a string onto a valid CPP name.
11624 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11625
11626 # Sed expression to map a string onto a valid variable name.
11627 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11628
11629
11630 # IFS
11631 # We need space, tab and new line, in precisely that order.
11632 as_nl='
11633 '
11634 IFS="   $as_nl"
11635
11636 # CDPATH.
11637 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
11638
11639 exec 6>&1
11640
11641 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11642 # report actual input values of CONFIG_FILES etc. instead of their
11643 # values after options handling.  Logging --version etc. is OK.
11644 exec 5>>config.log
11645 {
11646   echo
11647   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11648 ## Running $as_me. ##
11649 _ASBOX
11650 } >&5
11651 cat >&5 <<_CSEOF
11652
11653 This file was extended by fGIS $as_me 0.0.1, which was
11654 generated by GNU Autoconf 2.53.  Invocation command line was
11655
11656   CONFIG_FILES    = $CONFIG_FILES
11657   CONFIG_HEADERS  = $CONFIG_HEADERS
11658   CONFIG_LINKS    = $CONFIG_LINKS
11659   CONFIG_COMMANDS = $CONFIG_COMMANDS
11660   $ $0 $@
11661
11662 _CSEOF
11663 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11664 echo >&5
11665 _ACEOF
11666
11667 # Files that config.status was made for.
11668 if test -n "$ac_config_files"; then
11669   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11670 fi
11671
11672 if test -n "$ac_config_headers"; then
11673   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11674 fi
11675
11676 if test -n "$ac_config_links"; then
11677   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11678 fi
11679
11680 if test -n "$ac_config_commands"; then
11681   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11682 fi
11683
11684 cat >>$CONFIG_STATUS <<\_ACEOF
11685
11686 ac_cs_usage="\
11687 \`$as_me' instantiates files from templates according to the
11688 current configuration.
11689
11690 Usage: $0 [OPTIONS] [FILE]...
11691
11692   -h, --help       print this help, then exit
11693   -V, --version    print version number, then exit
11694   -d, --debug      don't remove temporary files
11695       --recheck    update $as_me by reconfiguring in the same conditions
11696   --file=FILE[:TEMPLATE]
11697                    instantiate the configuration file FILE
11698   --header=FILE[:TEMPLATE]
11699                    instantiate the configuration header FILE
11700
11701 Configuration files:
11702 $config_files
11703
11704 Configuration headers:
11705 $config_headers
11706
11707 Configuration commands:
11708 $config_commands
11709
11710 Report bugs to <bug-autoconf@gnu.org>."
11711 _ACEOF
11712
11713 cat >>$CONFIG_STATUS <<_ACEOF
11714 ac_cs_version="\\
11715 fGIS config.status 0.0.1
11716 configured by $0, generated by GNU Autoconf 2.53,
11717   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11718
11719 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11720 Free Software Foundation, Inc.
11721 This config.status script is free software; the Free Software Foundation
11722 gives unlimited permission to copy, distribute and modify it."
11723 srcdir=$srcdir
11724 INSTALL="$INSTALL"
11725 _ACEOF
11726
11727 cat >>$CONFIG_STATUS <<\_ACEOF
11728 # If no file are specified by the user, then we need to provide default
11729 # value.  By we need to know if files were specified by the user.
11730 ac_need_defaults=:
11731 while test $# != 0
11732 do
11733   case $1 in
11734   --*=*)
11735     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11736     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11737     shift
11738     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11739     shift
11740     ;;
11741   -*);;
11742   *) # This is not an option, so the user has probably given explicit
11743      # arguments.
11744      ac_need_defaults=false;;
11745   esac
11746
11747   case $1 in
11748   # Handling of the options.
11749 _ACEOF
11750 cat >>$CONFIG_STATUS <<_ACEOF
11751   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11752     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11753     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11754 _ACEOF
11755 cat >>$CONFIG_STATUS <<\_ACEOF
11756   --version | --vers* | -V )
11757     echo "$ac_cs_version"; exit 0 ;;
11758   --he | --h)
11759     # Conflict between --help and --header
11760     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11761 Try \`$0 --help' for more information." >&5
11762 echo "$as_me: error: ambiguous option: $1
11763 Try \`$0 --help' for more information." >&2;}
11764    { (exit 1); exit 1; }; };;
11765   --help | --hel | -h )
11766     echo "$ac_cs_usage"; exit 0 ;;
11767   --debug | --d* | -d )
11768     debug=: ;;
11769   --file | --fil | --fi | --f )
11770     shift
11771     CONFIG_FILES="$CONFIG_FILES $1"
11772     ac_need_defaults=false;;
11773   --header | --heade | --head | --hea )
11774     shift
11775     CONFIG_HEADERS="$CONFIG_HEADERS $1"
11776     ac_need_defaults=false;;
11777
11778   # This is an error.
11779   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11780 Try \`$0 --help' for more information." >&5
11781 echo "$as_me: error: unrecognized option: $1
11782 Try \`$0 --help' for more information." >&2;}
11783    { (exit 1); exit 1; }; } ;;
11784
11785   *) ac_config_targets="$ac_config_targets $1" ;;
11786
11787   esac
11788   shift
11789 done
11790
11791 _ACEOF
11792
11793 cat >>$CONFIG_STATUS <<_ACEOF
11794 #
11795 # INIT-COMMANDS section.
11796 #
11797
11798 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11799
11800 _ACEOF
11801
11802
11803
11804 cat >>$CONFIG_STATUS <<\_ACEOF
11805 for ac_config_target in $ac_config_targets
11806 do
11807   case "$ac_config_target" in
11808   # Handling of arguments.
11809   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11810   "dll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dll/Makefile" ;;
11811   "epu/Makefile" ) CONFIG_FILES="$CONFIG_FILES epu/Makefile" ;;
11812   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11813   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11814   "tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tcl/Makefile" ;;
11815   "tcl/pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES tcl/pkgIndex.tcl" ;;
11816   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11817   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
11818   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11819 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11820    { (exit 1); exit 1; }; };;
11821   esac
11822 done
11823
11824 # If the user did not use the arguments to specify the items to instantiate,
11825 # then the envvar interface is used.  Set only those that are not.
11826 # We use the long form for the default assignment because of an extremely
11827 # bizarre bug on SunOS 4.1.3.
11828 if $ac_need_defaults; then
11829   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11830   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11831   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11832 fi
11833
11834 # Create a temporary directory, and hook for its removal unless debugging.
11835 $debug ||
11836 {
11837   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11838   trap '{ (exit 1); exit 1; }' 1 2 13 15
11839 }
11840
11841 # Create a (secure) tmp directory for tmp files.
11842 : ${TMPDIR=/tmp}
11843 {
11844   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11845   test -n "$tmp" && test -d "$tmp"
11846 }  ||
11847 {
11848   tmp=$TMPDIR/cs$$-$RANDOM
11849   (umask 077 && mkdir $tmp)
11850 } ||
11851 {
11852    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11853    { (exit 1); exit 1; }
11854 }
11855
11856 _ACEOF
11857
11858 cat >>$CONFIG_STATUS <<_ACEOF
11859
11860 #
11861 # CONFIG_FILES section.
11862 #
11863
11864 # No need to generate the scripts if there are no CONFIG_FILES.
11865 # This happens for instance when ./config.status config.h
11866 if test -n "\$CONFIG_FILES"; then
11867   # Protect against being on the right side of a sed subst in config.status.
11868   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11869    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11870 s,@SHELL@,$SHELL,;t t
11871 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11872 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11873 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11874 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11875 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11876 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11877 s,@exec_prefix@,$exec_prefix,;t t
11878 s,@prefix@,$prefix,;t t
11879 s,@program_transform_name@,$program_transform_name,;t t
11880 s,@bindir@,$bindir,;t t
11881 s,@sbindir@,$sbindir,;t t
11882 s,@libexecdir@,$libexecdir,;t t
11883 s,@datadir@,$datadir,;t t
11884 s,@sysconfdir@,$sysconfdir,;t t
11885 s,@sharedstatedir@,$sharedstatedir,;t t
11886 s,@localstatedir@,$localstatedir,;t t
11887 s,@libdir@,$libdir,;t t
11888 s,@includedir@,$includedir,;t t
11889 s,@oldincludedir@,$oldincludedir,;t t
11890 s,@infodir@,$infodir,;t t
11891 s,@mandir@,$mandir,;t t
11892 s,@build_alias@,$build_alias,;t t
11893 s,@host_alias@,$host_alias,;t t
11894 s,@target_alias@,$target_alias,;t t
11895 s,@DEFS@,$DEFS,;t t
11896 s,@ECHO_C@,$ECHO_C,;t t
11897 s,@ECHO_N@,$ECHO_N,;t t
11898 s,@ECHO_T@,$ECHO_T,;t t
11899 s,@LIBS@,$LIBS,;t t
11900 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11901 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11902 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11903 s,@PACKAGE@,$PACKAGE,;t t
11904 s,@VERSION@,$VERSION,;t t
11905 s,@ACLOCAL@,$ACLOCAL,;t t
11906 s,@AUTOCONF@,$AUTOCONF,;t t
11907 s,@AUTOMAKE@,$AUTOMAKE,;t t
11908 s,@AUTOHEADER@,$AUTOHEADER,;t t
11909 s,@MAKEINFO@,$MAKEINFO,;t t
11910 s,@AMTAR@,$AMTAR,;t t
11911 s,@install_sh@,$install_sh,;t t
11912 s,@STRIP@,$STRIP,;t t
11913 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11914 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11915 s,@AWK@,$AWK,;t t
11916 s,@SET_MAKE@,$SET_MAKE,;t t
11917 s,@build@,$build,;t t
11918 s,@build_cpu@,$build_cpu,;t t
11919 s,@build_vendor@,$build_vendor,;t t
11920 s,@build_os@,$build_os,;t t
11921 s,@host@,$host,;t t
11922 s,@host_cpu@,$host_cpu,;t t
11923 s,@host_vendor@,$host_vendor,;t t
11924 s,@host_os@,$host_os,;t t
11925 s,@CC@,$CC,;t t
11926 s,@CFLAGS@,$CFLAGS,;t t
11927 s,@LDFLAGS@,$LDFLAGS,;t t
11928 s,@CPPFLAGS@,$CPPFLAGS,;t t
11929 s,@ac_ct_CC@,$ac_ct_CC,;t t
11930 s,@EXEEXT@,$EXEEXT,;t t
11931 s,@OBJEXT@,$OBJEXT,;t t
11932 s,@DEPDIR@,$DEPDIR,;t t
11933 s,@am__include@,$am__include,;t t
11934 s,@am__quote@,$am__quote,;t t
11935 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11936 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11937 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11938 s,@CCDEPMODE@,$CCDEPMODE,;t t
11939 s,@LN_S@,$LN_S,;t t
11940 s,@ECHO@,$ECHO,;t t
11941 s,@RANLIB@,$RANLIB,;t t
11942 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11943 s,@CPP@,$CPP,;t t
11944 s,@LIBTOOL@,$LIBTOOL,;t t
11945 s,@YACC@,$YACC,;t t
11946 s,@ALLOCA@,$ALLOCA,;t t
11947 s,@LIBOBJS@,$LIBOBJS,;t t
11948 s,@POW_LIB@,$POW_LIB,;t t
11949 s,@FGIS_LIBDIR@,$FGIS_LIBDIR,;t t
11950 s,@TCLHDIR@,$TCLHDIR,;t t
11951 s,@TCLHDIRDASHI@,$TCLHDIRDASHI,;t t
11952 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
11953 s,@TCL_DEFS@,$TCL_DEFS,;t t
11954 s,@TCL_DELETEME@,$TCL_DELETEME,;t t
11955 s,@TCL_DBGX@,$TCL_DBGX,;t t
11956 s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
11957 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
11958 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
11959 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
11960 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
11961 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
11962 s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
11963 s,@TCL_INC_DIR@,$TCL_INC_DIR,;t t
11964 s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t
11965 s,@TKHDIRDASHI@,$TKHDIRDASHI,;t t
11966 s,@TK_VERSION@,$TK_VERSION,;t t
11967 s,@TK_DEFS@,$TK_DEFS,;t t
11968 s,@TK_DBGX@,$TK_DBGX,;t t
11969 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
11970 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
11971 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
11972 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
11973 s,@TK_INC_DIR@,$TK_INC_DIR,;t t
11974 CEOF
11975
11976 _ACEOF
11977
11978   cat >>$CONFIG_STATUS <<\_ACEOF
11979   # Split the substitutions into bite-sized pieces for seds with
11980   # small command number limits, like on Digital OSF/1 and HP-UX.
11981   ac_max_sed_lines=48
11982   ac_sed_frag=1 # Number of current file.
11983   ac_beg=1 # First line for current file.
11984   ac_end=$ac_max_sed_lines # Line after last line for current file.
11985   ac_more_lines=:
11986   ac_sed_cmds=
11987   while $ac_more_lines; do
11988     if test $ac_beg -gt 1; then
11989       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11990     else
11991       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11992     fi
11993     if test ! -s $tmp/subs.frag; then
11994       ac_more_lines=false
11995     else
11996       # The purpose of the label and of the branching condition is to
11997       # speed up the sed processing (if there are no `@' at all, there
11998       # is no need to browse any of the substitutions).
11999       # These are the two extra sed commands mentioned above.
12000       (echo ':t
12001   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12002       if test -z "$ac_sed_cmds"; then
12003         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12004       else
12005         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12006       fi
12007       ac_sed_frag=`expr $ac_sed_frag + 1`
12008       ac_beg=$ac_end
12009       ac_end=`expr $ac_end + $ac_max_sed_lines`
12010     fi
12011   done
12012   if test -z "$ac_sed_cmds"; then
12013     ac_sed_cmds=cat
12014   fi
12015 fi # test -n "$CONFIG_FILES"
12016
12017 _ACEOF
12018 cat >>$CONFIG_STATUS <<\_ACEOF
12019 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12020   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12021   case $ac_file in
12022   - | *:- | *:-:* ) # input from stdin
12023         cat >$tmp/stdin
12024         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12025         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12026   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12027         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12028   * )   ac_file_in=$ac_file.in ;;
12029   esac
12030
12031   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12032   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12034          X"$ac_file" : 'X\(//\)[^/]' \| \
12035          X"$ac_file" : 'X\(//\)$' \| \
12036          X"$ac_file" : 'X\(/\)' \| \
12037          .     : '\(.\)' 2>/dev/null ||
12038 echo X"$ac_file" |
12039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12040           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12041           /^X\(\/\/\)$/{ s//\1/; q; }
12042           /^X\(\/\).*/{ s//\1/; q; }
12043           s/.*/./; q'`
12044   { case "$ac_dir" in
12045   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12046   *)                      as_incr_dir=.;;
12047 esac
12048 as_dummy="$ac_dir"
12049 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12050   case $as_mkdir_dir in
12051     # Skip DOS drivespec
12052     ?:) as_incr_dir=$as_mkdir_dir ;;
12053     *)
12054       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12055       test -d "$as_incr_dir" ||
12056         mkdir "$as_incr_dir" ||
12057         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12058 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12059    { (exit 1); exit 1; }; }
12060     ;;
12061   esac
12062 done; }
12063
12064   ac_builddir=.
12065
12066 if test "$ac_dir" != .; then
12067   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12068   # A "../" for each directory in $ac_dir_suffix.
12069   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12070 else
12071   ac_dir_suffix= ac_top_builddir=
12072 fi
12073
12074 case $srcdir in
12075   .)  # No --srcdir option.  We are building in place.
12076     ac_srcdir=.
12077     if test -z "$ac_top_builddir"; then
12078        ac_top_srcdir=.
12079     else
12080        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12081     fi ;;
12082   [\\/]* | ?:[\\/]* )  # Absolute path.
12083     ac_srcdir=$srcdir$ac_dir_suffix;
12084     ac_top_srcdir=$srcdir ;;
12085   *) # Relative path.
12086     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12087     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12088 esac
12089 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12090 # absolute.
12091 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12092 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12093 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12094 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12095
12096
12097   case $INSTALL in
12098   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12099   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12100   esac
12101
12102   if test x"$ac_file" != x-; then
12103     { echo "$as_me:$LINENO: creating $ac_file" >&5
12104 echo "$as_me: creating $ac_file" >&6;}
12105     rm -f "$ac_file"
12106   fi
12107   # Let's still pretend it is `configure' which instantiates (i.e., don't
12108   # use $as_me), people would be surprised to read:
12109   #    /* config.h.  Generated by config.status.  */
12110   if test x"$ac_file" = x-; then
12111     configure_input=
12112   else
12113     configure_input="$ac_file.  "
12114   fi
12115   configure_input=$configure_input"Generated from `echo $ac_file_in |
12116                                      sed 's,.*/,,'` by configure."
12117
12118   # First look for the input files in the build tree, otherwise in the
12119   # src tree.
12120   ac_file_inputs=`IFS=:
12121     for f in $ac_file_in; do
12122       case $f in
12123       -) echo $tmp/stdin ;;
12124       [\\/$]*)
12125          # Absolute (can't be DOS-style, as IFS=:)
12126          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12127 echo "$as_me: error: cannot find input file: $f" >&2;}
12128    { (exit 1); exit 1; }; }
12129          echo $f;;
12130       *) # Relative
12131          if test -f "$f"; then
12132            # Build tree
12133            echo $f
12134          elif test -f "$srcdir/$f"; then
12135            # Source tree
12136            echo $srcdir/$f
12137          else
12138            # /dev/null tree
12139            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12140 echo "$as_me: error: cannot find input file: $f" >&2;}
12141    { (exit 1); exit 1; }; }
12142          fi;;
12143       esac
12144     done` || { (exit 1); exit 1; }
12145 _ACEOF
12146 cat >>$CONFIG_STATUS <<_ACEOF
12147   sed "$ac_vpsub
12148 $extrasub
12149 _ACEOF
12150 cat >>$CONFIG_STATUS <<\_ACEOF
12151 :t
12152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12153 s,@configure_input@,$configure_input,;t t
12154 s,@srcdir@,$ac_srcdir,;t t
12155 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12156 s,@top_srcdir@,$ac_top_srcdir,;t t
12157 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12158 s,@builddir@,$ac_builddir,;t t
12159 s,@abs_builddir@,$ac_abs_builddir,;t t
12160 s,@top_builddir@,$ac_top_builddir,;t t
12161 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12162 s,@INSTALL@,$ac_INSTALL,;t t
12163 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12164   rm -f $tmp/stdin
12165   if test x"$ac_file" != x-; then
12166     mv $tmp/out $ac_file
12167   else
12168     cat $tmp/out
12169     rm -f $tmp/out
12170   fi
12171
12172 done
12173 _ACEOF
12174 cat >>$CONFIG_STATUS <<\_ACEOF
12175
12176 #
12177 # CONFIG_HEADER section.
12178 #
12179
12180 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12181 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12182 #
12183 # ac_d sets the value in "#define NAME VALUE" lines.
12184 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12185 ac_dB='[        ].*$,\1#\2'
12186 ac_dC=' '
12187 ac_dD=',;t'
12188 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12189 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12190 ac_uB='$,\1#\2define\3'
12191 ac_uC=' '
12192 ac_uD=',;t'
12193
12194 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12195   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12196   case $ac_file in
12197   - | *:- | *:-:* ) # input from stdin
12198         cat >$tmp/stdin
12199         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12200         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12201   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12202         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12203   * )   ac_file_in=$ac_file.in ;;
12204   esac
12205
12206   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12207 echo "$as_me: creating $ac_file" >&6;}
12208
12209   # First look for the input files in the build tree, otherwise in the
12210   # src tree.
12211   ac_file_inputs=`IFS=:
12212     for f in $ac_file_in; do
12213       case $f in
12214       -) echo $tmp/stdin ;;
12215       [\\/$]*)
12216          # Absolute (can't be DOS-style, as IFS=:)
12217          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12218 echo "$as_me: error: cannot find input file: $f" >&2;}
12219    { (exit 1); exit 1; }; }
12220          echo $f;;
12221       *) # Relative
12222          if test -f "$f"; then
12223            # Build tree
12224            echo $f
12225          elif test -f "$srcdir/$f"; then
12226            # Source tree
12227            echo $srcdir/$f
12228          else
12229            # /dev/null tree
12230            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12231 echo "$as_me: error: cannot find input file: $f" >&2;}
12232    { (exit 1); exit 1; }; }
12233          fi;;
12234       esac
12235     done` || { (exit 1); exit 1; }
12236   # Remove the trailing spaces.
12237   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12238
12239 _ACEOF
12240
12241 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12242 # `conftest.undefs', that substitutes the proper values into
12243 # config.h.in to produce config.h.  The first handles `#define'
12244 # templates, and the second `#undef' templates.
12245 # And first: Protect against being on the right side of a sed subst in
12246 # config.status.  Protect against being in an unquoted here document
12247 # in config.status.
12248 rm -f conftest.defines conftest.undefs
12249 # Using a here document instead of a string reduces the quoting nightmare.
12250 # Putting comments in sed scripts is not portable.
12251 #
12252 # `end' is used to avoid that the second main sed command (meant for
12253 # 0-ary CPP macros) applies to n-ary macro definitions.
12254 # See the Autoconf documentation for `clear'.
12255 cat >confdef2sed.sed <<\_ACEOF
12256 s/[\\&,]/\\&/g
12257 s,[\\$`],\\&,g
12258 t clear
12259 : clear
12260 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12261 t end
12262 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12263 : end
12264 _ACEOF
12265 # If some macros were called several times there might be several times
12266 # the same #defines, which is useless.  Nevertheless, we may not want to
12267 # sort them, since we want the *last* AC-DEFINE to be honored.
12268 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12269 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12270 rm -f confdef2sed.sed
12271
12272 # This sed command replaces #undef with comments.  This is necessary, for
12273 # example, in the case of _POSIX_SOURCE, which is predefined and required
12274 # on some systems where configure will not decide to define it.
12275 cat >>conftest.undefs <<\_ACEOF
12276 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12277 _ACEOF
12278
12279 # Break up conftest.defines because some shells have a limit on the size
12280 # of here documents, and old seds have small limits too (100 cmds).
12281 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12282 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12283 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12284 echo '  :' >>$CONFIG_STATUS
12285 rm -f conftest.tail
12286 while grep . conftest.defines >/dev/null
12287 do
12288   # Write a limited-size here document to $tmp/defines.sed.
12289   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12290   # Speed up: don't consider the non `#define' lines.
12291   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12292   # Work around the forget-to-reset-the-flag bug.
12293   echo 't clr' >>$CONFIG_STATUS
12294   echo ': clr' >>$CONFIG_STATUS
12295   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12296   echo 'CEOF
12297   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12298   rm -f $tmp/in
12299   mv $tmp/out $tmp/in
12300 ' >>$CONFIG_STATUS
12301   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12302   rm -f conftest.defines
12303   mv conftest.tail conftest.defines
12304 done
12305 rm -f conftest.defines
12306 echo '  fi # egrep' >>$CONFIG_STATUS
12307 echo >>$CONFIG_STATUS
12308
12309 # Break up conftest.undefs because some shells have a limit on the size
12310 # of here documents, and old seds have small limits too (100 cmds).
12311 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12312 rm -f conftest.tail
12313 while grep . conftest.undefs >/dev/null
12314 do
12315   # Write a limited-size here document to $tmp/undefs.sed.
12316   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12317   # Speed up: don't consider the non `#undef'
12318   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12319   # Work around the forget-to-reset-the-flag bug.
12320   echo 't clr' >>$CONFIG_STATUS
12321   echo ': clr' >>$CONFIG_STATUS
12322   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12323   echo 'CEOF
12324   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12325   rm -f $tmp/in
12326   mv $tmp/out $tmp/in
12327 ' >>$CONFIG_STATUS
12328   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12329   rm -f conftest.undefs
12330   mv conftest.tail conftest.undefs
12331 done
12332 rm -f conftest.undefs
12333
12334 cat >>$CONFIG_STATUS <<\_ACEOF
12335   # Let's still pretend it is `configure' which instantiates (i.e., don't
12336   # use $as_me), people would be surprised to read:
12337   #    /* config.h.  Generated by config.status.  */
12338   if test x"$ac_file" = x-; then
12339     echo "/* Generated by configure.  */" >$tmp/config.h
12340   else
12341     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12342   fi
12343   cat $tmp/in >>$tmp/config.h
12344   rm -f $tmp/in
12345   if test x"$ac_file" != x-; then
12346     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12347       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12348 echo "$as_me: $ac_file is unchanged" >&6;}
12349     else
12350       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12352          X"$ac_file" : 'X\(//\)[^/]' \| \
12353          X"$ac_file" : 'X\(//\)$' \| \
12354          X"$ac_file" : 'X\(/\)' \| \
12355          .     : '\(.\)' 2>/dev/null ||
12356 echo X"$ac_file" |
12357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12358           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12359           /^X\(\/\/\)$/{ s//\1/; q; }
12360           /^X\(\/\).*/{ s//\1/; q; }
12361           s/.*/./; q'`
12362       { case "$ac_dir" in
12363   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12364   *)                      as_incr_dir=.;;
12365 esac
12366 as_dummy="$ac_dir"
12367 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12368   case $as_mkdir_dir in
12369     # Skip DOS drivespec
12370     ?:) as_incr_dir=$as_mkdir_dir ;;
12371     *)
12372       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12373       test -d "$as_incr_dir" ||
12374         mkdir "$as_incr_dir" ||
12375         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
12376 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
12377    { (exit 1); exit 1; }; }
12378     ;;
12379   esac
12380 done; }
12381
12382       rm -f $ac_file
12383       mv $tmp/config.h $ac_file
12384     fi
12385   else
12386     cat $tmp/config.h
12387     rm -f $tmp/config.h
12388   fi
12389   # Run the commands associated with the file.
12390   case $ac_file in
12391     include/config.h ) # update the timestamp
12392 echo 'timestamp for include/config.h' >"include/stamp-h1"
12393  ;;
12394   esac
12395 done
12396 _ACEOF
12397 cat >>$CONFIG_STATUS <<\_ACEOF
12398
12399 #
12400 # CONFIG_COMMANDS section.
12401 #
12402 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12403   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12404   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12405   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12406 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12407          X"$ac_dest" : 'X\(//\)[^/]' \| \
12408          X"$ac_dest" : 'X\(//\)$' \| \
12409          X"$ac_dest" : 'X\(/\)' \| \
12410          .     : '\(.\)' 2>/dev/null ||
12411 echo X"$ac_dest" |
12412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12414           /^X\(\/\/\)$/{ s//\1/; q; }
12415           /^X\(\/\).*/{ s//\1/; q; }
12416           s/.*/./; q'`
12417   ac_builddir=.
12418
12419 if test "$ac_dir" != .; then
12420   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12421   # A "../" for each directory in $ac_dir_suffix.
12422   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12423 else
12424   ac_dir_suffix= ac_top_builddir=
12425 fi
12426
12427 case $srcdir in
12428   .)  # No --srcdir option.  We are building in place.
12429     ac_srcdir=.
12430     if test -z "$ac_top_builddir"; then
12431        ac_top_srcdir=.
12432     else
12433        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12434     fi ;;
12435   [\\/]* | ?:[\\/]* )  # Absolute path.
12436     ac_srcdir=$srcdir$ac_dir_suffix;
12437     ac_top_srcdir=$srcdir ;;
12438   *) # Relative path.
12439     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12440     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12441 esac
12442 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12443 # absolute.
12444 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12445 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
12446 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12447 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12448
12449
12450   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12451 echo "$as_me: executing $ac_dest commands" >&6;}
12452   case $ac_dest in
12453     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12454   # Strip MF so we end up with the name of the file.
12455   mf=`echo "$mf" | sed -e 's/:.*$//'`
12456   # Check whether this is an Automake generated Makefile or not.
12457   # We used to match only the files named `Makefile.in', but
12458   # some people rename them; so instead we look at the file content.
12459   # Grep'ing the first line is not enough: some people post-process
12460   # each Makefile.in and add a new line on top of each file to say so.
12461   # So let's grep whole file.
12462   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12463     dirpart=`(dirname "$mf") 2>/dev/null ||
12464 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12465          X"$mf" : 'X\(//\)[^/]' \| \
12466          X"$mf" : 'X\(//\)$' \| \
12467          X"$mf" : 'X\(/\)' \| \
12468          .     : '\(.\)' 2>/dev/null ||
12469 echo X"$mf" |
12470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12471           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12472           /^X\(\/\/\)$/{ s//\1/; q; }
12473           /^X\(\/\).*/{ s//\1/; q; }
12474           s/.*/./; q'`
12475   else
12476     continue
12477   fi
12478   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12479   # Extract the definition of DEP_FILES from the Makefile without
12480   # running `make'.
12481   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12482   test -z "$DEPDIR" && continue
12483   # When using ansi2knr, U may be empty or an underscore; expand it
12484   U=`sed -n -e '/^U = / s///p' < "$mf"`
12485   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12486   # We invoke sed twice because it is the simplest approach to
12487   # changing $(DEPDIR) to its actual value in the expansion.
12488   for file in `sed -n -e '
12489     /^DEP_FILES = .*\\\\$/ {
12490       s/^DEP_FILES = //
12491       :loop
12492         s/\\\\$//
12493         p
12494         n
12495         /\\\\$/ b loop
12496       p
12497     }
12498     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12499        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12500     # Make sure the directory exists.
12501     test -f "$dirpart/$file" && continue
12502     fdir=`(dirname "$file") 2>/dev/null ||
12503 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12504          X"$file" : 'X\(//\)[^/]' \| \
12505          X"$file" : 'X\(//\)$' \| \
12506          X"$file" : 'X\(/\)' \| \
12507          .     : '\(.\)' 2>/dev/null ||
12508 echo X"$file" |
12509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12510           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12511           /^X\(\/\/\)$/{ s//\1/; q; }
12512           /^X\(\/\).*/{ s//\1/; q; }
12513           s/.*/./; q'`
12514     { case $dirpart/$fdir in
12515   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12516   *)                      as_incr_dir=.;;
12517 esac
12518 as_dummy=$dirpart/$fdir
12519 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12520   case $as_mkdir_dir in
12521     # Skip DOS drivespec
12522     ?:) as_incr_dir=$as_mkdir_dir ;;
12523     *)
12524       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12525       test -d "$as_incr_dir" ||
12526         mkdir "$as_incr_dir" ||
12527         { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
12528 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
12529    { (exit 1); exit 1; }; }
12530     ;;
12531   esac
12532 done; }
12533
12534     # echo "creating $dirpart/$file"
12535     echo '# dummy' > "$dirpart/$file"
12536   done
12537 done
12538  ;;
12539   esac
12540 done
12541 _ACEOF
12542
12543 cat >>$CONFIG_STATUS <<\_ACEOF
12544
12545 { (exit 0); exit 0; }
12546 _ACEOF
12547 chmod +x $CONFIG_STATUS
12548 ac_clean_files=$ac_clean_files_save
12549
12550
12551 # configure is writing to config.log, and then calls config.status.
12552 # config.status does its own redirection, appending to config.log.
12553 # Unfortunately, on DOS this fails, as config.log is still kept open
12554 # by configure, so config.status won't be able to write to it; its
12555 # output is simply discarded.  So we exec the FD to /dev/null,
12556 # effectively closing config.log, so it can be properly (re)opened and
12557 # appended to by config.status.  When coming back to configure, we
12558 # need to make the FD available again.
12559 if test "$no_create" != yes; then
12560   ac_cs_success=:
12561   exec 5>/dev/null
12562   $SHELL $CONFIG_STATUS || ac_cs_success=false
12563   exec 5>>config.log
12564   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12565   # would make configure fail if this is the last instruction.
12566   $ac_cs_success || { (exit 1); exit 1; }
12567 fi
12568