update for HEAD-2003050101
[reactos.git] / lib / freetype / builds / unix / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40 do
41   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42     eval $as_var=C; export $as_var
43   else
44     $as_unset $as_var
45   fi
46 done
47
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
50   as_expr=expr
51 else
52   as_expr=false
53 fi
54
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56   as_basename=basename
57 else
58   as_basename=false
59 fi
60
61
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65          X"$0" : 'X\(//\)$' \| \
66          X"$0" : 'X\(/\)$' \| \
67          .     : '\(.\)' 2>/dev/null ||
68 echo X/"$0" |
69     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70           /^X\/\(\/\/\)$/{ s//\1/; q; }
71           /^X\/\(\/\).*/{ s//\1/; q; }
72           s/.*/./; q'`
73
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 if mkdir -p . 2>/dev/null; then
216   as_mkdir_p=:
217 else
218   as_mkdir_p=false
219 fi
220
221 as_executable_p="test -f"
222
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
233 '
234 IFS="   $as_nl"
235
236 # CDPATH.
237 $as_unset CDPATH
238
239
240 # Find the correct PATH separator.  Usually this is `:', but
241 # DJGPP uses `;' like DOS.
242 if test "X${PATH_SEPARATOR+set}" != Xset; then
243   UNAME=${UNAME-`uname 2>/dev/null`}
244   case X$UNAME in
245     *-DOS) lt_cv_sys_path_separator=';' ;;
246     *)     lt_cv_sys_path_separator=':' ;;
247   esac
248   PATH_SEPARATOR=$lt_cv_sys_path_separator
249 fi
250
251
252 # Check that we are running under the correct shell.
253 SHELL=${CONFIG_SHELL-/bin/sh}
254
255 case X$ECHO in
256 X*--fallback-echo)
257   # Remove one level of quotation (which was required for Make).
258   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259   ;;
260 esac
261
262 echo=${ECHO-echo}
263 if test "X$1" = X--no-reexec; then
264   # Discard the --no-reexec flag, and continue.
265   shift
266 elif test "X$1" = X--fallback-echo; then
267   # Avoid inline document here, it may be left over
268   :
269 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
270   # Yippee, $echo works!
271   :
272 else
273   # Restart under the correct shell.
274   exec $SHELL "$0" --no-reexec ${1+"$@"}
275 fi
276
277 if test "X$1" = X--fallback-echo; then
278   # used as fallback echo
279   shift
280   cat <<EOF
281
282 EOF
283   exit 0
284 fi
285
286 # The HP-UX ksh and POSIX shell print the target directory to stdout
287 # if CDPATH is set.
288 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
289
290 if test -z "$ECHO"; then
291 if test "X${echo_test_string+set}" != Xset; then
292 # find a string as large as possible, as long as the shell can cope with it
293   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
296        echo_test_string="`eval $cmd`" &&
297        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298     then
299       break
300     fi
301   done
302 fi
303
304 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306    test "X$echo_testing_string" = "X$echo_test_string"; then
307   :
308 else
309   # The Solaris, AIX, and Digital Unix default echo programs unquote
310   # backslashes.  This makes it impossible to quote backslashes using
311   #   echo "$something" | sed 's/\\/\\\\/g'
312   #
313   # So, first we look for a working echo in the user's PATH.
314
315   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316   for dir in $PATH /usr/ucb; do
317     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320        test "X$echo_testing_string" = "X$echo_test_string"; then
321       echo="$dir/echo"
322       break
323     fi
324   done
325   IFS="$save_ifs"
326
327   if test "X$echo" = Xecho; then
328     # We didn't find a better echo, so look for alternatives.
329     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331        test "X$echo_testing_string" = "X$echo_test_string"; then
332       # This shell has a builtin print -r that does the trick.
333       echo='print -r'
334     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335          test "X$CONFIG_SHELL" != X/bin/ksh; then
336       # If we have ksh, try running configure again with it.
337       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338       export ORIGINAL_CONFIG_SHELL
339       CONFIG_SHELL=/bin/ksh
340       export CONFIG_SHELL
341       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342     else
343       # Try using printf.
344       echo='printf %s\n'
345       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347          test "X$echo_testing_string" = "X$echo_test_string"; then
348         # Cool, printf works
349         :
350       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351            test "X$echo_testing_string" = 'X\t' &&
352            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353            test "X$echo_testing_string" = "X$echo_test_string"; then
354         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
355         export CONFIG_SHELL
356         SHELL="$CONFIG_SHELL"
357         export SHELL
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360            test "X$echo_testing_string" = 'X\t' &&
361            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362            test "X$echo_testing_string" = "X$echo_test_string"; then
363         echo="$CONFIG_SHELL $0 --fallback-echo"
364       else
365         # maybe with a smaller string...
366         prev=:
367
368         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370           then
371             break
372           fi
373           prev="$cmd"
374         done
375
376         if test "$prev" != 'sed 50q "$0"'; then
377           echo_test_string=`eval $prev`
378           export echo_test_string
379           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
380         else
381           # Oops.  We lost completely, so just stick with echo.
382           echo=echo
383         fi
384       fi
385     fi
386   fi
387 fi
388 fi
389
390 # Copy echo and quote the copy suitably for passing to libtool from
391 # the Makefile, instead of quoting the original, which is used later.
392 ECHO=$echo
393 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 fi
396
397
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="ftconfig.in"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS version_info ft_version build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP XX_CFLAGS XX_ANSIFLAGS RMF RMDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP FTSYS_SRC LIBZ SYSTEM_ZLIB LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928
929 #
930 # Report the --help message.
931 #
932 if test "$ac_init_help" = "long"; then
933   # Omit some internal or obsolete options to make the list less imposing.
934   # This message is too long to be a string in the A/UX 3.1 sh.
935   cat <<_ACEOF
936 \`configure' configures this package to adapt to many kinds of systems.
937
938 Usage: $0 [OPTION]... [VAR=VALUE]...
939
940 To assign environment variables (e.g., CC, CFLAGS...), specify them as
941 VAR=VALUE.  See below for descriptions of some of the useful variables.
942
943 Defaults for the options are specified in brackets.
944
945 Configuration:
946   -h, --help              display this help and exit
947       --help=short        display options specific to this package
948       --help=recursive    display the short help of all the included packages
949   -V, --version           display version information and exit
950   -q, --quiet, --silent   do not print \`checking...' messages
951       --cache-file=FILE   cache test results in FILE [disabled]
952   -C, --config-cache      alias for \`--cache-file=config.cache'
953   -n, --no-create         do not create output files
954       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
955
956 _ACEOF
957
958   cat <<_ACEOF
959 Installation directories:
960   --prefix=PREFIX         install architecture-independent files in PREFIX
961                           [$ac_default_prefix]
962   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
963                           [PREFIX]
964
965 By default, \`make install' will install all the files in
966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968 for instance \`--prefix=\$HOME'.
969
970 For better control, use the options below.
971
972 Fine tuning of the installation directories:
973   --bindir=DIR           user executables [EPREFIX/bin]
974   --sbindir=DIR          system admin executables [EPREFIX/sbin]
975   --libexecdir=DIR       program executables [EPREFIX/libexec]
976   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
977   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
978   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
979   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
980   --libdir=DIR           object code libraries [EPREFIX/lib]
981   --includedir=DIR       C header files [PREFIX/include]
982   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
983   --infodir=DIR          info documentation [PREFIX/info]
984   --mandir=DIR           man documentation [PREFIX/man]
985 _ACEOF
986
987   cat <<\_ACEOF
988
989 System types:
990   --build=BUILD     configure for building on BUILD [guessed]
991   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992   --target=TARGET   configure for building compilers for TARGET [HOST]
993 _ACEOF
994 fi
995
996 if test -n "$ac_init_help"; then
997
998   cat <<\_ACEOF
999
1000 Optional Features:
1001   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003   --enable-shared=PKGS  build shared libraries default=yes
1004   --enable-static=PKGS  build static libraries default=yes
1005   --enable-fast-install=PKGS  optimize for fast installation default=yes
1006   --disable-libtool-lock  avoid locking (might break parallel builds)
1007
1008 Optional Packages:
1009   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1010   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1011   --without-zlib          use internal zlib instead of system-wide
1012   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1013   --with-pic              try to use only PIC/non-PIC objects default=use both
1014
1015 Some influential environment variables:
1016   CC          C compiler command
1017   CFLAGS      C compiler flags
1018   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1019               nonstandard directory <lib dir>
1020   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021               headers in a nonstandard directory <include dir>
1022   CPP         C preprocessor
1023
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1026
1027 _ACEOF
1028 fi
1029
1030 if test "$ac_init_help" = "recursive"; then
1031   # If there are subdirs, report their specific --help.
1032   ac_popdir=`pwd`
1033   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034     test -d $ac_dir || continue
1035     ac_builddir=.
1036
1037 if test "$ac_dir" != .; then
1038   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039   # A "../" for each directory in $ac_dir_suffix.
1040   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042   ac_dir_suffix= ac_top_builddir=
1043 fi
1044
1045 case $srcdir in
1046   .)  # No --srcdir option.  We are building in place.
1047     ac_srcdir=.
1048     if test -z "$ac_top_builddir"; then
1049        ac_top_srcdir=.
1050     else
1051        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052     fi ;;
1053   [\\/]* | ?:[\\/]* )  # Absolute path.
1054     ac_srcdir=$srcdir$ac_dir_suffix;
1055     ac_top_srcdir=$srcdir ;;
1056   *) # Relative path.
1057     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1060 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1061 # absolute.
1062 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1063 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1064 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1065 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1066
1067     cd $ac_dir
1068     # Check for guested configure; otherwise get Cygnus style configure.
1069     if test -f $ac_srcdir/configure.gnu; then
1070       echo
1071       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1072     elif test -f $ac_srcdir/configure; then
1073       echo
1074       $SHELL $ac_srcdir/configure  --help=recursive
1075     elif test -f $ac_srcdir/configure.ac ||
1076            test -f $ac_srcdir/configure.in; then
1077       echo
1078       $ac_configure --help
1079     else
1080       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1081     fi
1082     cd $ac_popdir
1083   done
1084 fi
1085
1086 test -n "$ac_init_help" && exit 0
1087 if $ac_init_version; then
1088   cat <<\_ACEOF
1089
1090 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1091 Free Software Foundation, Inc.
1092 This configure script is free software; the Free Software Foundation
1093 gives unlimited permission to copy, distribute and modify it.
1094 _ACEOF
1095   exit 0
1096 fi
1097 exec 5>config.log
1098 cat >&5 <<_ACEOF
1099 This file contains any messages produced by compilers while
1100 running configure, to aid debugging if configure makes a mistake.
1101
1102 It was created by $as_me, which was
1103 generated by GNU Autoconf 2.54.  Invocation command line was
1104
1105   $ $0 $@
1106
1107 _ACEOF
1108 {
1109 cat <<_ASUNAME
1110 ## --------- ##
1111 ## Platform. ##
1112 ## --------- ##
1113
1114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1119
1120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1121 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1122
1123 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1124 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1126 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1127 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1128 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1129 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1130
1131 _ASUNAME
1132
1133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1134 for as_dir in $PATH
1135 do
1136   IFS=$as_save_IFS
1137   test -z "$as_dir" && as_dir=.
1138   echo "PATH: $as_dir"
1139 done
1140
1141 } >&5
1142
1143 cat >&5 <<_ACEOF
1144
1145
1146 ## ----------- ##
1147 ## Core tests. ##
1148 ## ----------- ##
1149
1150 _ACEOF
1151
1152
1153 # Keep a trace of the command line.
1154 # Strip out --no-create and --no-recursion so they do not pile up.
1155 # Also quote any args containing shell meta-characters.
1156 ac_configure_args=
1157 ac_sep=
1158 for ac_arg
1159 do
1160   case $ac_arg in
1161   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162   | --no-cr | --no-c | -n ) continue ;;
1163   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165     continue ;;
1166   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1167     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1168   esac
1169   ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1170   # Get rid of the leading space.
1171   ac_sep=" "
1172 done
1173
1174 # When interrupted or exit'd, cleanup temporary files, and complete
1175 # config.log.  We remove comments because anyway the quotes in there
1176 # would cause problems or look ugly.
1177 # WARNING: Be sure not to use single quotes in there, as some shells,
1178 # such as our DU 5.0 friend, will then `close' the trap.
1179 trap 'exit_status=$?
1180   # Save into config.log some information that might help in debugging.
1181   {
1182     echo
1183
1184     cat <<\_ASBOX
1185 ## ---------------- ##
1186 ## Cache variables. ##
1187 ## ---------------- ##
1188 _ASBOX
1189     echo
1190     # The following way of writing the cache mishandles newlines in values,
1191 {
1192   (set) 2>&1 |
1193     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1194     *ac_space=\ *)
1195       sed -n \
1196         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1197           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1198       ;;
1199     *)
1200       sed -n \
1201         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1202       ;;
1203     esac;
1204 }
1205     echo
1206
1207     cat <<\_ASBOX
1208 ## ----------------- ##
1209 ## Output variables. ##
1210 ## ----------------- ##
1211 _ASBOX
1212     echo
1213     for ac_var in $ac_subst_vars
1214     do
1215       eval ac_val=$`echo $ac_var`
1216       echo "$ac_var='"'"'$ac_val'"'"'"
1217     done | sort
1218     echo
1219
1220     if test -n "$ac_subst_files"; then
1221       cat <<\_ASBOX
1222 ## ------------- ##
1223 ## Output files. ##
1224 ## ------------- ##
1225 _ASBOX
1226       echo
1227       for ac_var in $ac_subst_files
1228       do
1229         eval ac_val=$`echo $ac_var`
1230         echo "$ac_var='"'"'$ac_val'"'"'"
1231       done | sort
1232       echo
1233     fi
1234
1235     if test -s confdefs.h; then
1236       cat <<\_ASBOX
1237 ## ----------- ##
1238 ## confdefs.h. ##
1239 ## ----------- ##
1240 _ASBOX
1241       echo
1242       sed "/^$/d" confdefs.h | sort
1243       echo
1244     fi
1245     test "$ac_signal" != 0 &&
1246       echo "$as_me: caught signal $ac_signal"
1247     echo "$as_me: exit $exit_status"
1248   } >&5
1249   rm -f core core.* *.core &&
1250   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1251     exit $exit_status
1252      ' 0
1253 for ac_signal in 1 2 13 15; do
1254   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1255 done
1256 ac_signal=0
1257
1258 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1259 rm -rf conftest* confdefs.h
1260 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1261 echo >confdefs.h
1262
1263 # Predefined preprocessor variables.
1264
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_NAME "$PACKAGE_NAME"
1267 _ACEOF
1268
1269
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1272 _ACEOF
1273
1274
1275 cat >>confdefs.h <<_ACEOF
1276 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1277 _ACEOF
1278
1279
1280 cat >>confdefs.h <<_ACEOF
1281 #define PACKAGE_STRING "$PACKAGE_STRING"
1282 _ACEOF
1283
1284
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1287 _ACEOF
1288
1289
1290 # Let the site file select an alternate cache file if it wants to.
1291 # Prefer explicitly selected file to automatically selected ones.
1292 if test -z "$CONFIG_SITE"; then
1293   if test "x$prefix" != xNONE; then
1294     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1295   else
1296     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1297   fi
1298 fi
1299 for ac_site_file in $CONFIG_SITE; do
1300   if test -r "$ac_site_file"; then
1301     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1302 echo "$as_me: loading site script $ac_site_file" >&6;}
1303     sed 's/^/| /' "$ac_site_file" >&5
1304     . "$ac_site_file"
1305   fi
1306 done
1307
1308 if test -r "$cache_file"; then
1309   # Some versions of bash will fail to source /dev/null (special
1310   # files actually), so we avoid doing that.
1311   if test -f "$cache_file"; then
1312     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1313 echo "$as_me: loading cache $cache_file" >&6;}
1314     case $cache_file in
1315       [\\/]* | ?:[\\/]* ) . $cache_file;;
1316       *)                      . ./$cache_file;;
1317     esac
1318   fi
1319 else
1320   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1321 echo "$as_me: creating cache $cache_file" >&6;}
1322   >$cache_file
1323 fi
1324
1325 # Check that the precious variables saved in the cache have kept the same
1326 # value.
1327 ac_cache_corrupted=false
1328 for ac_var in `(set) 2>&1 |
1329                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1330   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1331   eval ac_new_set=\$ac_env_${ac_var}_set
1332   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1333   eval ac_new_val="\$ac_env_${ac_var}_value"
1334   case $ac_old_set,$ac_new_set in
1335     set,)
1336       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1338       ac_cache_corrupted=: ;;
1339     ,set)
1340       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1342       ac_cache_corrupted=: ;;
1343     ,);;
1344     *)
1345       if test "x$ac_old_val" != "x$ac_new_val"; then
1346         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1347 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1348         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1349 echo "$as_me:   former value:  $ac_old_val" >&2;}
1350         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1351 echo "$as_me:   current value: $ac_new_val" >&2;}
1352         ac_cache_corrupted=:
1353       fi;;
1354   esac
1355   # Pass precious variables to config.status.
1356   if test "$ac_new_set" = set; then
1357     case $ac_new_val in
1358     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1359       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1360     *) ac_arg=$ac_var=$ac_new_val ;;
1361     esac
1362     case " $ac_configure_args " in
1363       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1364       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1365     esac
1366   fi
1367 done
1368 if $ac_cache_corrupted; then
1369   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1370 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1371   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1372 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1373    { (exit 1); exit 1; }; }
1374 fi
1375
1376 ac_ext=c
1377 ac_cpp='$CPP $CPPFLAGS'
1378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402           ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
1403
1404
1405 version_info='9:3:3'
1406
1407 ft_version=`echo $version_info | tr : .`
1408
1409
1410 ac_aux_dir=
1411 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1412   if test -f $ac_dir/install-sh; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/install-sh -c"
1415     break
1416   elif test -f $ac_dir/install.sh; then
1417     ac_aux_dir=$ac_dir
1418     ac_install_sh="$ac_aux_dir/install.sh -c"
1419     break
1420   elif test -f $ac_dir/shtool; then
1421     ac_aux_dir=$ac_dir
1422     ac_install_sh="$ac_aux_dir/shtool install -c"
1423     break
1424   fi
1425 done
1426 if test -z "$ac_aux_dir"; then
1427   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1428 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1429    { (exit 1); exit 1; }; }
1430 fi
1431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1434
1435 # Make sure we can run config.sub.
1436 $ac_config_sub sun4 >/dev/null 2>&1 ||
1437   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1438 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 echo "$as_me:$LINENO: checking build system type" >&5
1442 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1443 if test "${ac_cv_build+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   ac_cv_build_alias=$build_alias
1447 test -z "$ac_cv_build_alias" &&
1448   ac_cv_build_alias=`$ac_config_guess`
1449 test -z "$ac_cv_build_alias" &&
1450   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1451 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1452    { (exit 1); exit 1; }; }
1453 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1454   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1456    { (exit 1); exit 1; }; }
1457
1458 fi
1459 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1460 echo "${ECHO_T}$ac_cv_build" >&6
1461 build=$ac_cv_build
1462 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1463 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1464 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1465
1466
1467 echo "$as_me:$LINENO: checking host system type" >&5
1468 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1469 if test "${ac_cv_host+set}" = set; then
1470   echo $ECHO_N "(cached) $ECHO_C" >&6
1471 else
1472   ac_cv_host_alias=$host_alias
1473 test -z "$ac_cv_host_alias" &&
1474   ac_cv_host_alias=$ac_cv_build_alias
1475 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1476   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1478    { (exit 1); exit 1; }; }
1479
1480 fi
1481 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1482 echo "${ECHO_T}$ac_cv_host" >&6
1483 host=$ac_cv_host
1484 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487
1488
1489 echo "$as_me:$LINENO: checking target system type" >&5
1490 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1491 if test "${ac_cv_target+set}" = set; then
1492   echo $ECHO_N "(cached) $ECHO_C" >&6
1493 else
1494   ac_cv_target_alias=$target_alias
1495 test "x$ac_cv_target_alias" = "x" &&
1496   ac_cv_target_alias=$ac_cv_host_alias
1497 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1498   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1499 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1500    { (exit 1); exit 1; }; }
1501
1502 fi
1503 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1504 echo "${ECHO_T}$ac_cv_target" >&6
1505 target=$ac_cv_target
1506 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1507 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1508 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1509
1510
1511 # The aliases save the names the user supplied, while $host etc.
1512 # will get canonicalized.
1513 test -n "$target_alias" &&
1514   test "$program_prefix$program_suffix$program_transform_name" = \
1515     NONENONEs,x,x, &&
1516   program_prefix=${target_alias}-
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   if test -n "$CC"; then
1532   ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537   IFS=$as_save_IFS
1538   test -z "$as_dir" && as_dir=.
1539   for ac_exec_ext in '' $ac_executable_extensions; do
1540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543     break 2
1544   fi
1545 done
1546 done
1547
1548 fi
1549 fi
1550 CC=$ac_cv_prog_CC
1551 if test -n "$CC"; then
1552   echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1554 else
1555   echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559 fi
1560 if test -z "$ac_cv_prog_CC"; then
1561   ac_ct_CC=$CC
1562   # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$ac_ct_CC"; then
1570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     ac_cv_prog_ac_ct_CC="gcc"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597   CC=$ac_ct_CC
1598 else
1599   CC="$ac_cv_prog_CC"
1600 fi
1601
1602 if test -z "$CC"; then
1603   if test -n "$ac_tool_prefix"; then
1604   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_CC="${ac_tool_prefix}cc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632   echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641   ac_ct_CC=$CC
1642   # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$ac_ct_CC"; then
1650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_ac_ct_CC="cc"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677   CC=$ac_ct_CC
1678 else
1679   CC="$ac_cv_prog_CC"
1680 fi
1681
1682 fi
1683 if test -z "$CC"; then
1684   # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694   ac_prog_rejected=no
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
1699   test -z "$as_dir" && as_dir=.
1700   for ac_exec_ext in '' $ac_executable_extensions; do
1701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703        ac_prog_rejected=yes
1704        continue
1705      fi
1706     ac_cv_prog_CC="cc"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 if test $ac_prog_rejected = yes; then
1714   # We found a bogon in the path, so make sure we never use it.
1715   set dummy $ac_cv_prog_CC
1716   shift
1717   if test $# != 0; then
1718     # We chose a different compiler from the bogus one.
1719     # However, it has the same basename, so the bogon will be chosen
1720     # first if we set CC to just the basename; use the full file name.
1721     shift
1722     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1723   fi
1724 fi
1725 fi
1726 fi
1727 CC=$ac_cv_prog_CC
1728 if test -n "$CC"; then
1729   echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1731 else
1732   echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 fi
1737 if test -z "$CC"; then
1738   if test -n "$ac_tool_prefix"; then
1739   for ac_prog in cl
1740   do
1741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769   echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776     test -n "$CC" && break
1777   done
1778 fi
1779 if test -z "$CC"; then
1780   ac_ct_CC=$CC
1781   for ac_prog in cl
1782 do
1783   # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$ac_ct_CC"; then
1791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_ac_ct_CC="$ac_prog"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   test -n "$ac_ct_CC" && break
1819 done
1820
1821   CC=$ac_ct_CC
1822 fi
1823
1824 fi
1825
1826
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1828 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1829    { (exit 1); exit 1; }; }
1830
1831 # Provide some information about the compiler.
1832 echo "$as_me:$LINENO:" \
1833      "checking for C compiler version" >&5
1834 ac_compiler=`set X $ac_compile; echo $2`
1835 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1836   (eval $ac_compiler --version </dev/null >&5) 2>&5
1837   ac_status=$?
1838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839   (exit $ac_status); }
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1841   (eval $ac_compiler -v </dev/null >&5) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }
1845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1846   (eval $ac_compiler -V </dev/null >&5) 2>&5
1847   ac_status=$?
1848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849   (exit $ac_status); }
1850
1851 cat >conftest.$ac_ext <<_ACEOF
1852 #line $LINENO "configure"
1853 #include "confdefs.h"
1854
1855 int
1856 main ()
1857 {
1858
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1867 # of exeext.
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872   (eval $ac_link_default) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   # Find the output, starting from the most likely.  This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1878 # resort.
1879
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1882 ac_cv_exeext=
1883 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1884   test -f "$ac_file" || continue
1885   case $ac_file in
1886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1887     a.out ) # We found the default executable, but exeext='' is most
1888             # certainly right.
1889             break;;
1890     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1891           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1892           export ac_cv_exeext
1893           break;;
1894     * ) break;;
1895   esac
1896 done
1897 else
1898   echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1900 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1901 check \`config.log' for details." >&5
1902 echo "$as_me: error: C compiler cannot create executables
1903 check \`config.log' for details." >&2;}
1904    { (exit 77); exit 77; }; }
1905 fi
1906
1907 ac_exeext=$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_file" >&5
1909 echo "${ECHO_T}$ac_file" >&6
1910
1911 # Check the compiler produces executables we can run.  If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1914 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1915 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1916 # If not cross compiling, check that we can run a simple program.
1917 if test "$cross_compiling" != yes; then
1918   if { ac_try='./$ac_file'
1919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1920   (eval $ac_try) 2>&5
1921   ac_status=$?
1922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923   (exit $ac_status); }; }; then
1924     cross_compiling=no
1925   else
1926     if test "$cross_compiling" = maybe; then
1927         cross_compiling=yes
1928     else
1929         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1930 If you meant to cross compile, use \`--host'." >&5
1931 echo "$as_me: error: cannot run C compiled programs.
1932 If you meant to cross compile, use \`--host'." >&2;}
1933    { (exit 1); exit 1; }; }
1934     fi
1935   fi
1936 fi
1937 echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1939
1940 rm -f a.out a.exe conftest$ac_cv_exeext
1941 ac_clean_files=$ac_clean_files_save
1942 # Check the compiler produces executables we can run.  If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1945 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1946 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1947 echo "${ECHO_T}$cross_compiling" >&6
1948
1949 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1950 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1952   (eval $ac_link) 2>&5
1953   ac_status=$?
1954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955   (exit $ac_status); }; then
1956   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1957 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1958 # work properly (i.e., refer to `conftest.exe'), while it won't with
1959 # `rm'.
1960 for ac_file in conftest.exe conftest conftest.*; do
1961   test -f "$ac_file" || continue
1962   case $ac_file in
1963     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1964     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1965           export ac_cv_exeext
1966           break;;
1967     * ) break;;
1968   esac
1969 done
1970 else
1971   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1972 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1973    { (exit 1); exit 1; }; }
1974 fi
1975
1976 rm -f conftest$ac_cv_exeext
1977 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1978 echo "${ECHO_T}$ac_cv_exeext" >&6
1979
1980 rm -f conftest.$ac_ext
1981 EXEEXT=$ac_cv_exeext
1982 ac_exeext=$EXEEXT
1983 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1984 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1985 if test "${ac_cv_objext+set}" = set; then
1986   echo $ECHO_N "(cached) $ECHO_C" >&6
1987 else
1988   cat >conftest.$ac_ext <<_ACEOF
1989 #line $LINENO "configure"
1990 #include "confdefs.h"
1991
1992 int
1993 main ()
1994 {
1995
1996   ;
1997   return 0;
1998 }
1999 _ACEOF
2000 rm -f conftest.o conftest.obj
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002   (eval $ac_compile) 2>&5
2003   ac_status=$?
2004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005   (exit $ac_status); }; then
2006   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2007   case $ac_file in
2008     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2009     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2010        break;;
2011   esac
2012 done
2013 else
2014   echo "$as_me: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2016 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2017 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2018    { (exit 1); exit 1; }; }
2019 fi
2020
2021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2022 fi
2023 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2024 echo "${ECHO_T}$ac_cv_objext" >&6
2025 OBJEXT=$ac_cv_objext
2026 ac_objext=$OBJEXT
2027 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2028 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2029 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   cat >conftest.$ac_ext <<_ACEOF
2033 #line $LINENO "configure"
2034 #include "confdefs.h"
2035
2036 int
2037 main ()
2038 {
2039 #ifndef __GNUC__
2040        choke me
2041 #endif
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049   (eval $ac_compile) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); } &&
2053          { ac_try='test -s conftest.$ac_objext'
2054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055   (eval $ac_try) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }; }; then
2059   ac_compiler_gnu=yes
2060 else
2061   echo "$as_me: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2063 ac_compiler_gnu=no
2064 fi
2065 rm -f conftest.$ac_objext conftest.$ac_ext
2066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2067
2068 fi
2069 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2070 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2071 GCC=`test $ac_compiler_gnu = yes && echo yes`
2072 ac_test_CFLAGS=${CFLAGS+set}
2073 ac_save_CFLAGS=$CFLAGS
2074 CFLAGS="-g"
2075 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_g+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 #include "confdefs.h"
2083
2084 int
2085 main ()
2086 {
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094   (eval $ac_compile) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); } &&
2098          { ac_try='test -s conftest.$ac_objext'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; }; then
2104   ac_cv_prog_cc_g=yes
2105 else
2106   echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 ac_cv_prog_cc_g=no
2109 fi
2110 rm -f conftest.$ac_objext conftest.$ac_ext
2111 fi
2112 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2114 if test "$ac_test_CFLAGS" = set; then
2115   CFLAGS=$ac_save_CFLAGS
2116 elif test $ac_cv_prog_cc_g = yes; then
2117   if test "$GCC" = yes; then
2118     CFLAGS="-g -O2"
2119   else
2120     CFLAGS="-g"
2121   fi
2122 else
2123   if test "$GCC" = yes; then
2124     CFLAGS="-O2"
2125   else
2126     CFLAGS=
2127   fi
2128 fi
2129 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2130 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2131 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   ac_cv_prog_cc_stdc=no
2135 ac_save_CC=$CC
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #line $LINENO "configure"
2138 #include "confdefs.h"
2139 #include <stdarg.h>
2140 #include <stdio.h>
2141 #include <sys/types.h>
2142 #include <sys/stat.h>
2143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2144 struct buf { int x; };
2145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146 static char *e (p, i)
2147      char **p;
2148      int i;
2149 {
2150   return p[i];
2151 }
2152 static char *f (char * (*g) (char **, int), char **p, ...)
2153 {
2154   char *s;
2155   va_list v;
2156   va_start (v,p);
2157   s = g (p, va_arg (v,int));
2158   va_end (v);
2159   return s;
2160 }
2161 int test (int i, double x);
2162 struct s1 {int (*f) (int a);};
2163 struct s2 {int (*f) (double a);};
2164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2165 int argc;
2166 char **argv;
2167 int
2168 main ()
2169 {
2170 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 # Don't try gcc -ansi; that turns off useful extensions and
2176 # breaks some systems' header files.
2177 # AIX                   -qlanglvl=ansi
2178 # Ultrix and OSF/1      -std1
2179 # HP-UX 10.20 and later -Ae
2180 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2181 # SVR4                  -Xc -D__EXTENSIONS__
2182 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2183 do
2184   CC="$ac_save_CC $ac_arg"
2185   rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187   (eval $ac_compile) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); } &&
2191          { ac_try='test -s conftest.$ac_objext'
2192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193   (eval $ac_try) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; }; then
2197   ac_cv_prog_cc_stdc=$ac_arg
2198 break
2199 else
2200   echo "$as_me: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 fi
2203 rm -f conftest.$ac_objext
2204 done
2205 rm -f conftest.$ac_ext conftest.$ac_objext
2206 CC=$ac_save_CC
2207
2208 fi
2209
2210 case "x$ac_cv_prog_cc_stdc" in
2211   x|xno)
2212     echo "$as_me:$LINENO: result: none needed" >&5
2213 echo "${ECHO_T}none needed" >&6 ;;
2214   *)
2215     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2216 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2217     CC="$CC $ac_cv_prog_cc_stdc" ;;
2218 esac
2219
2220 # Some people use a C++ compiler to compile C.  Since we use `exit',
2221 # in C++ we need to declare it.  In case someone uses the same compiler
2222 # for both compiling C and C++ we need to have the C++ compiler decide
2223 # the declaration of exit, since it's the most demanding environment.
2224 cat >conftest.$ac_ext <<_ACEOF
2225 #ifndef __cplusplus
2226   choke me
2227 #endif
2228 _ACEOF
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231   (eval $ac_compile) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); } &&
2235          { ac_try='test -s conftest.$ac_objext'
2236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237   (eval $ac_try) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }; }; then
2241   for ac_declaration in \
2242    ''\
2243    '#include <stdlib.h>' \
2244    'extern "C" void std::exit (int) throw (); using std::exit;' \
2245    'extern "C" void std::exit (int); using std::exit;' \
2246    'extern "C" void exit (int) throw ();' \
2247    'extern "C" void exit (int);' \
2248    'void exit (int);'
2249 do
2250   cat >conftest.$ac_ext <<_ACEOF
2251 #line $LINENO "configure"
2252 #include "confdefs.h"
2253 #include <stdlib.h>
2254 $ac_declaration
2255 int
2256 main ()
2257 {
2258 exit (42);
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265   (eval $ac_compile) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); } &&
2269          { ac_try='test -s conftest.$ac_objext'
2270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271   (eval $ac_try) 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; }; then
2275   :
2276 else
2277   echo "$as_me: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 continue
2280 fi
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282   cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 #include "confdefs.h"
2285 $ac_declaration
2286 int
2287 main ()
2288 {
2289 exit (42);
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); } &&
2300          { ac_try='test -s conftest.$ac_objext'
2301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302   (eval $ac_try) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; }; then
2306   break
2307 else
2308   echo "$as_me: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2310 fi
2311 rm -f conftest.$ac_objext conftest.$ac_ext
2312 done
2313 rm -f conftest*
2314 if test -n "$ac_declaration"; then
2315   echo '#ifdef __cplusplus' >>confdefs.h
2316   echo $ac_declaration      >>confdefs.h
2317   echo '#endif'             >>confdefs.h
2318 fi
2319
2320 else
2321   echo "$as_me: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2323 fi
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2337 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2338 # On Suns, sometimes $CPP names a directory.
2339 if test -n "$CPP" && test -d "$CPP"; then
2340   CPP=
2341 fi
2342 if test -z "$CPP"; then
2343   if test "${ac_cv_prog_CPP+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346       # Double quotes because CPP needs to be expanded
2347     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2348     do
2349       ac_preproc_ok=false
2350 for ac_c_preproc_warn_flag in '' yes
2351 do
2352   # Use a header file that comes with gcc, so configuring glibc
2353   # with a fresh cross-compiler works.
2354   # On the NeXT, cc -E runs the code through the compiler's parser,
2355   # not just through cpp. "Syntax error" is here to catch this case.
2356   cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2358 #include "confdefs.h"
2359 #include <assert.h>
2360                      Syntax error
2361 _ACEOF
2362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2364   ac_status=$?
2365   grep -v '^ *+' conftest.er1 >conftest.err
2366   rm -f conftest.er1
2367   cat conftest.err >&5
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); } >/dev/null; then
2370   if test -s conftest.err; then
2371     ac_cpp_err=$ac_c_preproc_warn_flag
2372   else
2373     ac_cpp_err=
2374   fi
2375 else
2376   ac_cpp_err=yes
2377 fi
2378 if test -z "$ac_cpp_err"; then
2379   :
2380 else
2381   echo "$as_me: failed program was:" >&5
2382   cat conftest.$ac_ext >&5
2383   # Broken: fails on valid input.
2384 continue
2385 fi
2386 rm -f conftest.err conftest.$ac_ext
2387
2388   # OK, works on sane cases.  Now check whether non-existent headers
2389   # can be detected and how.
2390   cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2393 #include <ac_nonexistent.h>
2394 _ACEOF
2395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2397   ac_status=$?
2398   grep -v '^ *+' conftest.er1 >conftest.err
2399   rm -f conftest.er1
2400   cat conftest.err >&5
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); } >/dev/null; then
2403   if test -s conftest.err; then
2404     ac_cpp_err=$ac_c_preproc_warn_flag
2405   else
2406     ac_cpp_err=
2407   fi
2408 else
2409   ac_cpp_err=yes
2410 fi
2411 if test -z "$ac_cpp_err"; then
2412   # Broken: success on invalid input.
2413 continue
2414 else
2415   echo "$as_me: failed program was:" >&5
2416   cat conftest.$ac_ext >&5
2417   # Passes both tests.
2418 ac_preproc_ok=:
2419 break
2420 fi
2421 rm -f conftest.err conftest.$ac_ext
2422
2423 done
2424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2425 rm -f conftest.err conftest.$ac_ext
2426 if $ac_preproc_ok; then
2427   break
2428 fi
2429
2430     done
2431     ac_cv_prog_CPP=$CPP
2432
2433 fi
2434   CPP=$ac_cv_prog_CPP
2435 else
2436   ac_cv_prog_CPP=$CPP
2437 fi
2438 echo "$as_me:$LINENO: result: $CPP" >&5
2439 echo "${ECHO_T}$CPP" >&6
2440 ac_preproc_ok=false
2441 for ac_c_preproc_warn_flag in '' yes
2442 do
2443   # Use a header file that comes with gcc, so configuring glibc
2444   # with a fresh cross-compiler works.
2445   # On the NeXT, cc -E runs the code through the compiler's parser,
2446   # not just through cpp. "Syntax error" is here to catch this case.
2447   cat >conftest.$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2449 #include "confdefs.h"
2450 #include <assert.h>
2451                      Syntax error
2452 _ACEOF
2453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2455   ac_status=$?
2456   grep -v '^ *+' conftest.er1 >conftest.err
2457   rm -f conftest.er1
2458   cat conftest.err >&5
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); } >/dev/null; then
2461   if test -s conftest.err; then
2462     ac_cpp_err=$ac_c_preproc_warn_flag
2463   else
2464     ac_cpp_err=
2465   fi
2466 else
2467   ac_cpp_err=yes
2468 fi
2469 if test -z "$ac_cpp_err"; then
2470   :
2471 else
2472   echo "$as_me: failed program was:" >&5
2473   cat conftest.$ac_ext >&5
2474   # Broken: fails on valid input.
2475 continue
2476 fi
2477 rm -f conftest.err conftest.$ac_ext
2478
2479   # OK, works on sane cases.  Now check whether non-existent headers
2480   # can be detected and how.
2481   cat >conftest.$ac_ext <<_ACEOF
2482 #line $LINENO "configure"
2483 #include "confdefs.h"
2484 #include <ac_nonexistent.h>
2485 _ACEOF
2486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2488   ac_status=$?
2489   grep -v '^ *+' conftest.er1 >conftest.err
2490   rm -f conftest.er1
2491   cat conftest.err >&5
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); } >/dev/null; then
2494   if test -s conftest.err; then
2495     ac_cpp_err=$ac_c_preproc_warn_flag
2496   else
2497     ac_cpp_err=
2498   fi
2499 else
2500   ac_cpp_err=yes
2501 fi
2502 if test -z "$ac_cpp_err"; then
2503   # Broken: success on invalid input.
2504 continue
2505 else
2506   echo "$as_me: failed program was:" >&5
2507   cat conftest.$ac_ext >&5
2508   # Passes both tests.
2509 ac_preproc_ok=:
2510 break
2511 fi
2512 rm -f conftest.err conftest.$ac_ext
2513
2514 done
2515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2516 rm -f conftest.err conftest.$ac_ext
2517 if $ac_preproc_ok; then
2518   :
2519 else
2520   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2521 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2522    { (exit 1); exit 1; }; }
2523 fi
2524
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530
2531
2532 if test "x$CC" = xgcc; then
2533   XX_CFLAGS="-Wall"
2534   XX_ANSIFLAGS="-pedantic -ansi"
2535 else
2536   case "$host" in
2537     *-dec-osf*)
2538       CFLAGS=
2539       XX_CFLAGS="-std1 -g3"
2540       XX_ANSIFLAGS=
2541       ;;
2542     *)
2543       XX_CFLAGS=
2544       XX_ANSIFLAGS=
2545       ;;
2546   esac
2547 fi
2548
2549
2550
2551 # Extract the first word of "rm", so it can be a program name with args.
2552 set dummy rm; ac_word=$2
2553 echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555 if test "${ac_cv_prog_RMF+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   if test -n "$RMF"; then
2559   ac_cv_prog_RMF="$RMF" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564   IFS=$as_save_IFS
2565   test -z "$as_dir" && as_dir=.
2566   for ac_exec_ext in '' $ac_executable_extensions; do
2567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568     ac_cv_prog_RMF="rm -f"
2569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570     break 2
2571   fi
2572 done
2573 done
2574
2575 fi
2576 fi
2577 RMF=$ac_cv_prog_RMF
2578 if test -n "$RMF"; then
2579   echo "$as_me:$LINENO: result: $RMF" >&5
2580 echo "${ECHO_T}$RMF" >&6
2581 else
2582   echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2584 fi
2585
2586 # Extract the first word of "rmdir", so it can be a program name with args.
2587 set dummy rmdir; ac_word=$2
2588 echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2590 if test "${ac_cv_prog_RMDIR+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   if test -n "$RMDIR"; then
2594   ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601   for ac_exec_ext in '' $ac_executable_extensions; do
2602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603     ac_cv_prog_RMDIR="rmdir"
2604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608 done
2609
2610 fi
2611 fi
2612 RMDIR=$ac_cv_prog_RMDIR
2613 if test -n "$RMDIR"; then
2614   echo "$as_me:$LINENO: result: $RMDIR" >&5
2615 echo "${ECHO_T}$RMDIR" >&6
2616 else
2617   echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619 fi
2620
2621
2622 # Find a good install program.  We prefer a C program (faster),
2623 # so one script is as good as another.  But avoid the broken or
2624 # incompatible versions:
2625 # SysV /etc/install, /usr/sbin/install
2626 # SunOS /usr/etc/install
2627 # IRIX /sbin/install
2628 # AIX /bin/install
2629 # AmigaOS /C/install, which installs bootblocks on floppy discs
2630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2633 # ./install, which can be erroneously created by make from ./install.sh.
2634 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2636 if test -z "$INSTALL"; then
2637 if test "${ac_cv_path_install+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645   # Account for people who put trailing slashes in PATH elements.
2646 case $as_dir/ in
2647   ./ | .// | /cC/* | \
2648   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2649   /usr/ucb/* ) ;;
2650   *)
2651     # OSF1 and SCO ODT 3.0 have their own names for install.
2652     # Don't use installbsd from OSF since it installs stuff as root
2653     # by default.
2654     for ac_prog in ginstall scoinst install; do
2655       for ac_exec_ext in '' $ac_executable_extensions; do
2656         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2657           if test $ac_prog = install &&
2658             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659             # AIX install.  It has an incompatible calling convention.
2660             :
2661           elif test $ac_prog = install &&
2662             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663             # program-specific install script used by HP pwplus--don't use.
2664             :
2665           else
2666             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2667             break 3
2668           fi
2669         fi
2670       done
2671     done
2672     ;;
2673 esac
2674 done
2675
2676
2677 fi
2678   if test "${ac_cv_path_install+set}" = set; then
2679     INSTALL=$ac_cv_path_install
2680   else
2681     # As a last resort, use the slow shell script.  We don't cache a
2682     # path for INSTALL within a source directory, because that will
2683     # break other packages using the cache if that directory is
2684     # removed, or if the path is relative.
2685     INSTALL=$ac_install_sh
2686   fi
2687 fi
2688 echo "$as_me:$LINENO: result: $INSTALL" >&5
2689 echo "${ECHO_T}$INSTALL" >&6
2690
2691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2692 # It thinks the first close brace ends the variable substitution.
2693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2694
2695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2696
2697 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2698
2699 case "$INSTALL" in
2700   /*)
2701     ;;
2702   */*)
2703     INSTALL="`pwd`/$INSTALL" ;;
2704 esac
2705
2706
2707
2708 echo "$as_me:$LINENO: checking for egrep" >&5
2709 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2710 if test "${ac_cv_prog_egrep+set}" = set; then
2711   echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2714     then ac_cv_prog_egrep='grep -E'
2715     else ac_cv_prog_egrep='egrep'
2716     fi
2717 fi
2718 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2719 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2720  EGREP=$ac_cv_prog_egrep
2721
2722
2723 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2725 if test "${ac_cv_header_stdc+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728   cat >conftest.$ac_ext <<_ACEOF
2729 #line $LINENO "configure"
2730 #include "confdefs.h"
2731 #include <stdlib.h>
2732 #include <stdarg.h>
2733 #include <string.h>
2734 #include <float.h>
2735
2736 _ACEOF
2737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } >/dev/null; then
2745   if test -s conftest.err; then
2746     ac_cpp_err=$ac_c_preproc_warn_flag
2747   else
2748     ac_cpp_err=
2749   fi
2750 else
2751   ac_cpp_err=yes
2752 fi
2753 if test -z "$ac_cpp_err"; then
2754   ac_cv_header_stdc=yes
2755 else
2756   echo "$as_me: failed program was:" >&5
2757   cat conftest.$ac_ext >&5
2758   ac_cv_header_stdc=no
2759 fi
2760 rm -f conftest.err conftest.$ac_ext
2761
2762 if test $ac_cv_header_stdc = yes; then
2763   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2764   cat >conftest.$ac_ext <<_ACEOF
2765 #line $LINENO "configure"
2766 #include "confdefs.h"
2767 #include <string.h>
2768
2769 _ACEOF
2770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2771   $EGREP "memchr" >/dev/null 2>&1; then
2772   :
2773 else
2774   ac_cv_header_stdc=no
2775 fi
2776 rm -f conftest*
2777
2778 fi
2779
2780 if test $ac_cv_header_stdc = yes; then
2781   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2782   cat >conftest.$ac_ext <<_ACEOF
2783 #line $LINENO "configure"
2784 #include "confdefs.h"
2785 #include <stdlib.h>
2786
2787 _ACEOF
2788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2789   $EGREP "free" >/dev/null 2>&1; then
2790   :
2791 else
2792   ac_cv_header_stdc=no
2793 fi
2794 rm -f conftest*
2795
2796 fi
2797
2798 if test $ac_cv_header_stdc = yes; then
2799   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2800   if test "$cross_compiling" = yes; then
2801   :
2802 else
2803   cat >conftest.$ac_ext <<_ACEOF
2804 #line $LINENO "configure"
2805 #include "confdefs.h"
2806 #include <ctype.h>
2807 #if ((' ' & 0x0FF) == 0x020)
2808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2810 #else
2811 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2812                      || ('j' <= (c) && (c) <= 'r') \
2813                      || ('s' <= (c) && (c) <= 'z'))
2814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2815 #endif
2816
2817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2818 int
2819 main ()
2820 {
2821   int i;
2822   for (i = 0; i < 256; i++)
2823     if (XOR (islower (i), ISLOWER (i))
2824         || toupper (i) != TOUPPER (i))
2825       exit(2);
2826   exit (0);
2827 }
2828 _ACEOF
2829 rm -f conftest$ac_exeext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2831   (eval $ac_link) 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   :
2841 else
2842   echo "$as_me: program exited with status $ac_status" >&5
2843 echo "$as_me: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2845 ( exit $ac_status )
2846 ac_cv_header_stdc=no
2847 fi
2848 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2849 fi
2850 fi
2851 fi
2852 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2853 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2854 if test $ac_cv_header_stdc = yes; then
2855
2856 cat >>confdefs.h <<\_ACEOF
2857 #define STDC_HEADERS 1
2858 _ACEOF
2859
2860 fi
2861
2862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2873                   inttypes.h stdint.h unistd.h
2874 do
2875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2876 echo "$as_me:$LINENO: checking for $ac_header" >&5
2877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 #include "confdefs.h"
2884 $ac_includes_default
2885
2886 #include <$ac_header>
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890   (eval $ac_compile) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } &&
2894          { ac_try='test -s conftest.$ac_objext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   eval "$as_ac_Header=yes"
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 eval "$as_ac_Header=no"
2905 fi
2906 rm -f conftest.$ac_objext conftest.$ac_ext
2907 fi
2908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2911   cat >>confdefs.h <<_ACEOF
2912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2913 _ACEOF
2914
2915 fi
2916
2917 done
2918
2919
2920
2921
2922 for ac_header in fcntl.h unistd.h
2923 do
2924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2926   echo "$as_me:$LINENO: checking for $ac_header" >&5
2927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 fi
2931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2933 else
2934   # Is the header compilable?
2935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2937 cat >conftest.$ac_ext <<_ACEOF
2938 #line $LINENO "configure"
2939 #include "confdefs.h"
2940 $ac_includes_default
2941 #include <$ac_header>
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945   (eval $ac_compile) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   ac_header_compiler=yes
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2959 ac_header_compiler=no
2960 fi
2961 rm -f conftest.$ac_objext conftest.$ac_ext
2962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2963 echo "${ECHO_T}$ac_header_compiler" >&6
2964
2965 # Is the header present?
2966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 #include "confdefs.h"
2971 #include <$ac_header>
2972 _ACEOF
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } >/dev/null; then
2981   if test -s conftest.err; then
2982     ac_cpp_err=$ac_c_preproc_warn_flag
2983   else
2984     ac_cpp_err=
2985   fi
2986 else
2987   ac_cpp_err=yes
2988 fi
2989 if test -z "$ac_cpp_err"; then
2990   ac_header_preproc=yes
2991 else
2992   echo "$as_me: failed program was:" >&5
2993   cat conftest.$ac_ext >&5
2994   ac_header_preproc=no
2995 fi
2996 rm -f conftest.err conftest.$ac_ext
2997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2998 echo "${ECHO_T}$ac_header_preproc" >&6
2999
3000 # So?  What about this header?
3001 case $ac_header_compiler:$ac_header_preproc in
3002   yes:no )
3003     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3007   no:yes )
3008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3010     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3014 esac
3015 echo "$as_me:$LINENO: checking for $ac_header" >&5
3016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   eval "$as_ac_Header=$ac_header_preproc"
3021 fi
3022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3024
3025 fi
3026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3027   cat >>confdefs.h <<_ACEOF
3028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3029 _ACEOF
3030
3031 fi
3032
3033 done
3034
3035
3036 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3038 if test "${ac_cv_c_const+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   cat >conftest.$ac_ext <<_ACEOF
3042 #line $LINENO "configure"
3043 #include "confdefs.h"
3044
3045 int
3046 main ()
3047 {
3048 /* FIXME: Include the comments suggested by Paul. */
3049 #ifndef __cplusplus
3050   /* Ultrix mips cc rejects this.  */
3051   typedef int charset[2];
3052   const charset x;
3053   /* SunOS 4.1.1 cc rejects this.  */
3054   char const *const *ccp;
3055   char **p;
3056   /* NEC SVR4.0.2 mips cc rejects this.  */
3057   struct point {int x, y;};
3058   static struct point const zero = {0,0};
3059   /* AIX XL C 1.02.0.0 rejects this.
3060      It does not let you subtract one const X* pointer from another in
3061      an arm of an if-expression whose if-part is not a constant
3062      expression */
3063   const char *g = "string";
3064   ccp = &g + (g ? g-g : 0);
3065   /* HPUX 7.0 cc rejects these. */
3066   ++ccp;
3067   p = (char**) ccp;
3068   ccp = (char const *const *) p;
3069   { /* SCO 3.2v4 cc rejects this.  */
3070     char *t;
3071     char const *s = 0 ? (char *) 0 : (char const *) 0;
3072
3073     *t++ = 0;
3074   }
3075   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3076     int x[] = {25, 17};
3077     const int *foo = &x[0];
3078     ++foo;
3079   }
3080   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3081     typedef const int *iptr;
3082     iptr p = 0;
3083     ++p;
3084   }
3085   { /* AIX XL C 1.02.0.0 rejects this saying
3086        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3087     struct s { int j; const int *ap[3]; };
3088     struct s *b; b->j = 5;
3089   }
3090   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3091     const int foo = 10;
3092   }
3093 #endif
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101   (eval $ac_compile) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); } &&
3105          { ac_try='test -s conftest.$ac_objext'
3106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107   (eval $ac_try) 2>&5
3108   ac_status=$?
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); }; }; then
3111   ac_cv_c_const=yes
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3115 ac_cv_c_const=no
3116 fi
3117 rm -f conftest.$ac_objext conftest.$ac_ext
3118 fi
3119 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3120 echo "${ECHO_T}$ac_cv_c_const" >&6
3121 if test $ac_cv_c_const = no; then
3122
3123 cat >>confdefs.h <<\_ACEOF
3124 #define const
3125 _ACEOF
3126
3127 fi
3128
3129 echo "$as_me:$LINENO: checking for int" >&5
3130 echo $ECHO_N "checking for int... $ECHO_C" >&6
3131 if test "${ac_cv_type_int+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   cat >conftest.$ac_ext <<_ACEOF
3135 #line $LINENO "configure"
3136 #include "confdefs.h"
3137 $ac_includes_default
3138 int
3139 main ()
3140 {
3141 if ((int *) 0)
3142   return 0;
3143 if (sizeof (int))
3144   return 0;
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.$ac_objext
3150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3151   (eval $ac_compile) 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } &&
3155          { ac_try='test -s conftest.$ac_objext'
3156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157   (eval $ac_try) 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; }; then
3161   ac_cv_type_int=yes
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3165 ac_cv_type_int=no
3166 fi
3167 rm -f conftest.$ac_objext conftest.$ac_ext
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3170 echo "${ECHO_T}$ac_cv_type_int" >&6
3171
3172 echo "$as_me:$LINENO: checking size of int" >&5
3173 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3174 if test "${ac_cv_sizeof_int+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   if test "$ac_cv_type_int" = yes; then
3178   # The cast to unsigned long works around a bug in the HP C Compiler
3179   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3180   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3181   # This bug is HP SR number 8606223364.
3182   if test "$cross_compiling" = yes; then
3183   # Depending upon the size, compute the lo and hi bounds.
3184 cat >conftest.$ac_ext <<_ACEOF
3185 #line $LINENO "configure"
3186 #include "confdefs.h"
3187 $ac_includes_default
3188 int
3189 main ()
3190 {
3191 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3192 test_array [0] = 0
3193
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200   (eval $ac_compile) 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } &&
3204          { ac_try='test -s conftest.$ac_objext'
3205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206   (eval $ac_try) 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }; }; then
3210   ac_lo=0 ac_mid=0
3211   while :; do
3212     cat >conftest.$ac_ext <<_ACEOF
3213 #line $LINENO "configure"
3214 #include "confdefs.h"
3215 $ac_includes_default
3216 int
3217 main ()
3218 {
3219 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3220 test_array [0] = 0
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228   (eval $ac_compile) 2>&5
3229   ac_status=$?
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } &&
3232          { ac_try='test -s conftest.$ac_objext'
3233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234   (eval $ac_try) 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; }; then
3238   ac_hi=$ac_mid; break
3239 else
3240   echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 ac_lo=`expr $ac_mid + 1`
3243                     if test $ac_lo -le $ac_mid; then
3244                       ac_lo= ac_hi=
3245                       break
3246                     fi
3247                     ac_mid=`expr 2 '*' $ac_mid + 1`
3248 fi
3249 rm -f conftest.$ac_objext conftest.$ac_ext
3250   done
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 cat >conftest.$ac_ext <<_ACEOF
3255 #line $LINENO "configure"
3256 #include "confdefs.h"
3257 $ac_includes_default
3258 int
3259 main ()
3260 {
3261 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3262 test_array [0] = 0
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270   (eval $ac_compile) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } &&
3274          { ac_try='test -s conftest.$ac_objext'
3275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276   (eval $ac_try) 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }; }; then
3280   ac_hi=-1 ac_mid=-1
3281   while :; do
3282     cat >conftest.$ac_ext <<_ACEOF
3283 #line $LINENO "configure"
3284 #include "confdefs.h"
3285 $ac_includes_default
3286 int
3287 main ()
3288 {
3289 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3290 test_array [0] = 0
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298   (eval $ac_compile) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } &&
3302          { ac_try='test -s conftest.$ac_objext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   ac_lo=$ac_mid; break
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 ac_hi=`expr '(' $ac_mid ')' - 1`
3313                        if test $ac_mid -le $ac_hi; then
3314                          ac_lo= ac_hi=
3315                          break
3316                        fi
3317                        ac_mid=`expr 2 '*' $ac_mid`
3318 fi
3319 rm -f conftest.$ac_objext conftest.$ac_ext
3320   done
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 ac_lo= ac_hi=
3325 fi
3326 rm -f conftest.$ac_objext conftest.$ac_ext
3327 fi
3328 rm -f conftest.$ac_objext conftest.$ac_ext
3329 # Binary search between lo and hi bounds.
3330 while test "x$ac_lo" != "x$ac_hi"; do
3331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3332   cat >conftest.$ac_ext <<_ACEOF
3333 #line $LINENO "configure"
3334 #include "confdefs.h"
3335 $ac_includes_default
3336 int
3337 main ()
3338 {
3339 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3340 test_array [0] = 0
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348   (eval $ac_compile) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; }; then
3358   ac_hi=$ac_mid
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362 ac_lo=`expr '(' $ac_mid ')' + 1`
3363 fi
3364 rm -f conftest.$ac_objext conftest.$ac_ext
3365 done
3366 case $ac_lo in
3367 ?*) ac_cv_sizeof_int=$ac_lo;;
3368 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
3369 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
3370    { (exit 1); exit 1; }; } ;;
3371 esac
3372 else
3373   if test "$cross_compiling" = yes; then
3374   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3375 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3376    { (exit 1); exit 1; }; }
3377 else
3378   cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 $ac_includes_default
3382 long longval () { return (long) (sizeof (int)); }
3383 unsigned long ulongval () { return (long) (sizeof (int)); }
3384 #include <stdio.h>
3385 #include <stdlib.h>
3386 int
3387 main ()
3388 {
3389
3390   FILE *f = fopen ("conftest.val", "w");
3391   if (! f)
3392     exit (1);
3393   if (((long) (sizeof (int))) < 0)
3394     {
3395       long i = longval ();
3396       if (i != ((long) (sizeof (int))))
3397         exit (1);
3398       fprintf (f, "%ld\n", i);
3399     }
3400   else
3401     {
3402       unsigned long i = ulongval ();
3403       if (i != ((long) (sizeof (int))))
3404         exit (1);
3405       fprintf (f, "%lu\n", i);
3406     }
3407   exit (ferror (f) || fclose (f) != 0);
3408
3409   ;
3410   return 0;
3411 }
3412 _ACEOF
3413 rm -f conftest$ac_exeext
3414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3415   (eval $ac_link) 2>&5
3416   ac_status=$?
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420   (eval $ac_try) 2>&5
3421   ac_status=$?
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); }; }; then
3424   ac_cv_sizeof_int=`cat conftest.val`
3425 else
3426   echo "$as_me: program exited with status $ac_status" >&5
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429 ( exit $ac_status )
3430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
3431 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
3432    { (exit 1); exit 1; }; }
3433 fi
3434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 fi
3437 rm -f conftest.val
3438 else
3439   ac_cv_sizeof_int=0
3440 fi
3441 fi
3442 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3443 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3444 cat >>confdefs.h <<_ACEOF
3445 #define SIZEOF_INT $ac_cv_sizeof_int
3446 _ACEOF
3447
3448
3449 echo "$as_me:$LINENO: checking for long" >&5
3450 echo $ECHO_N "checking for long... $ECHO_C" >&6
3451 if test "${ac_cv_type_long+set}" = set; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   cat >conftest.$ac_ext <<_ACEOF
3455 #line $LINENO "configure"
3456 #include "confdefs.h"
3457 $ac_includes_default
3458 int
3459 main ()
3460 {
3461 if ((long *) 0)
3462   return 0;
3463 if (sizeof (long))
3464   return 0;
3465   ;
3466   return 0;
3467 }
3468 _ACEOF
3469 rm -f conftest.$ac_objext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3471   (eval $ac_compile) 2>&5
3472   ac_status=$?
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); } &&
3475          { ac_try='test -s conftest.$ac_objext'
3476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477   (eval $ac_try) 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; }; then
3481   ac_cv_type_long=yes
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3485 ac_cv_type_long=no
3486 fi
3487 rm -f conftest.$ac_objext conftest.$ac_ext
3488 fi
3489 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3490 echo "${ECHO_T}$ac_cv_type_long" >&6
3491
3492 echo "$as_me:$LINENO: checking size of long" >&5
3493 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3494 if test "${ac_cv_sizeof_long+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   if test "$ac_cv_type_long" = yes; then
3498   # The cast to unsigned long works around a bug in the HP C Compiler
3499   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3500   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3501   # This bug is HP SR number 8606223364.
3502   if test "$cross_compiling" = yes; then
3503   # Depending upon the size, compute the lo and hi bounds.
3504 cat >conftest.$ac_ext <<_ACEOF
3505 #line $LINENO "configure"
3506 #include "confdefs.h"
3507 $ac_includes_default
3508 int
3509 main ()
3510 {
3511 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3512 test_array [0] = 0
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520   (eval $ac_compile) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_lo=0 ac_mid=0
3531   while :; do
3532     cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3534 #include "confdefs.h"
3535 $ac_includes_default
3536 int
3537 main ()
3538 {
3539 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3540 test_array [0] = 0
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548   (eval $ac_compile) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } &&
3552          { ac_try='test -s conftest.$ac_objext'
3553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554   (eval $ac_try) 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }; }; then
3558   ac_hi=$ac_mid; break
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3562 ac_lo=`expr $ac_mid + 1`
3563                     if test $ac_lo -le $ac_mid; then
3564                       ac_lo= ac_hi=
3565                       break
3566                     fi
3567                     ac_mid=`expr 2 '*' $ac_mid + 1`
3568 fi
3569 rm -f conftest.$ac_objext conftest.$ac_ext
3570   done
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3574 cat >conftest.$ac_ext <<_ACEOF
3575 #line $LINENO "configure"
3576 #include "confdefs.h"
3577 $ac_includes_default
3578 int
3579 main ()
3580 {
3581 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3582 test_array [0] = 0
3583
3584   ;
3585   return 0;
3586 }
3587 _ACEOF
3588 rm -f conftest.$ac_objext
3589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590   (eval $ac_compile) 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } &&
3594          { ac_try='test -s conftest.$ac_objext'
3595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596   (eval $ac_try) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; }; then
3600   ac_hi=-1 ac_mid=-1
3601   while :; do
3602     cat >conftest.$ac_ext <<_ACEOF
3603 #line $LINENO "configure"
3604 #include "confdefs.h"
3605 $ac_includes_default
3606 int
3607 main ()
3608 {
3609 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3610 test_array [0] = 0
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618   (eval $ac_compile) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } &&
3622          { ac_try='test -s conftest.$ac_objext'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; }; then
3628   ac_lo=$ac_mid; break
3629 else
3630   echo "$as_me: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 ac_hi=`expr '(' $ac_mid ')' - 1`
3633                        if test $ac_mid -le $ac_hi; then
3634                          ac_lo= ac_hi=
3635                          break
3636                        fi
3637                        ac_mid=`expr 2 '*' $ac_mid`
3638 fi
3639 rm -f conftest.$ac_objext conftest.$ac_ext
3640   done
3641 else
3642   echo "$as_me: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3644 ac_lo= ac_hi=
3645 fi
3646 rm -f conftest.$ac_objext conftest.$ac_ext
3647 fi
3648 rm -f conftest.$ac_objext conftest.$ac_ext
3649 # Binary search between lo and hi bounds.
3650 while test "x$ac_lo" != "x$ac_hi"; do
3651   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3652   cat >conftest.$ac_ext <<_ACEOF
3653 #line $LINENO "configure"
3654 #include "confdefs.h"
3655 $ac_includes_default
3656 int
3657 main ()
3658 {
3659 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3660 test_array [0] = 0
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } &&
3672          { ac_try='test -s conftest.$ac_objext'
3673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674   (eval $ac_try) 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; }; then
3678   ac_hi=$ac_mid
3679 else
3680   echo "$as_me: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3682 ac_lo=`expr '(' $ac_mid ')' + 1`
3683 fi
3684 rm -f conftest.$ac_objext conftest.$ac_ext
3685 done
3686 case $ac_lo in
3687 ?*) ac_cv_sizeof_long=$ac_lo;;
3688 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
3689 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
3690    { (exit 1); exit 1; }; } ;;
3691 esac
3692 else
3693   if test "$cross_compiling" = yes; then
3694   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
3695 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3696    { (exit 1); exit 1; }; }
3697 else
3698   cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3700 #include "confdefs.h"
3701 $ac_includes_default
3702 long longval () { return (long) (sizeof (long)); }
3703 unsigned long ulongval () { return (long) (sizeof (long)); }
3704 #include <stdio.h>
3705 #include <stdlib.h>
3706 int
3707 main ()
3708 {
3709
3710   FILE *f = fopen ("conftest.val", "w");
3711   if (! f)
3712     exit (1);
3713   if (((long) (sizeof (long))) < 0)
3714     {
3715       long i = longval ();
3716       if (i != ((long) (sizeof (long))))
3717         exit (1);
3718       fprintf (f, "%ld\n", i);
3719     }
3720   else
3721     {
3722       unsigned long i = ulongval ();
3723       if (i != ((long) (sizeof (long))))
3724         exit (1);
3725       fprintf (f, "%lu\n", i);
3726     }
3727   exit (ferror (f) || fclose (f) != 0);
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest$ac_exeext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735   (eval $ac_link) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740   (eval $ac_try) 2>&5
3741   ac_status=$?
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); }; }; then
3744   ac_cv_sizeof_long=`cat conftest.val`
3745 else
3746   echo "$as_me: program exited with status $ac_status" >&5
3747 echo "$as_me: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3749 ( exit $ac_status )
3750 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
3751 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
3752    { (exit 1); exit 1; }; }
3753 fi
3754 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3755 fi
3756 fi
3757 rm -f conftest.val
3758 else
3759   ac_cv_sizeof_long=0
3760 fi
3761 fi
3762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3763 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3764 cat >>confdefs.h <<_ACEOF
3765 #define SIZEOF_LONG $ac_cv_sizeof_long
3766 _ACEOF
3767
3768
3769
3770
3771
3772
3773 for ac_header in stdlib.h unistd.h
3774 do
3775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3777   echo "$as_me:$LINENO: checking for $ac_header" >&5
3778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 fi
3782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3784 else
3785   # Is the header compilable?
3786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3788 cat >conftest.$ac_ext <<_ACEOF
3789 #line $LINENO "configure"
3790 #include "confdefs.h"
3791 $ac_includes_default
3792 #include <$ac_header>
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796   (eval $ac_compile) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); } &&
3800          { ac_try='test -s conftest.$ac_objext'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; }; then
3806   ac_header_compiler=yes
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3810 ac_header_compiler=no
3811 fi
3812 rm -f conftest.$ac_objext conftest.$ac_ext
3813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3814 echo "${ECHO_T}$ac_header_compiler" >&6
3815
3816 # Is the header present?
3817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3819 cat >conftest.$ac_ext <<_ACEOF
3820 #line $LINENO "configure"
3821 #include "confdefs.h"
3822 #include <$ac_header>
3823 _ACEOF
3824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3826   ac_status=$?
3827   grep -v '^ *+' conftest.er1 >conftest.err
3828   rm -f conftest.er1
3829   cat conftest.err >&5
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); } >/dev/null; then
3832   if test -s conftest.err; then
3833     ac_cpp_err=$ac_c_preproc_warn_flag
3834   else
3835     ac_cpp_err=
3836   fi
3837 else
3838   ac_cpp_err=yes
3839 fi
3840 if test -z "$ac_cpp_err"; then
3841   ac_header_preproc=yes
3842 else
3843   echo "$as_me: failed program was:" >&5
3844   cat conftest.$ac_ext >&5
3845   ac_header_preproc=no
3846 fi
3847 rm -f conftest.err conftest.$ac_ext
3848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3849 echo "${ECHO_T}$ac_header_preproc" >&6
3850
3851 # So?  What about this header?
3852 case $ac_header_compiler:$ac_header_preproc in
3853   yes:no )
3854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3858   no:yes )
3859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3861     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3865 esac
3866 echo "$as_me:$LINENO: checking for $ac_header" >&5
3867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   eval "$as_ac_Header=$ac_header_preproc"
3872 fi
3873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3875
3876 fi
3877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3878   cat >>confdefs.h <<_ACEOF
3879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3880 _ACEOF
3881
3882 fi
3883
3884 done
3885
3886
3887 for ac_func in getpagesize
3888 do
3889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3890 echo "$as_me:$LINENO: checking for $ac_func" >&5
3891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3892 if eval "test \"\${$as_ac_var+set}\" = set"; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   cat >conftest.$ac_ext <<_ACEOF
3896 #line $LINENO "configure"
3897 #include "confdefs.h"
3898 /* System header to define __stub macros and hopefully few prototypes,
3899     which can conflict with char $ac_func (); below.  */
3900 #include <assert.h>
3901 /* Override any gcc2 internal prototype to avoid an error.  */
3902 #ifdef __cplusplus
3903 extern "C"
3904 #endif
3905 /* We use char because int might match the return type of a gcc2
3906    builtin and then its argument prototype would still apply.  */
3907 char $ac_func ();
3908 char (*f) ();
3909
3910 int
3911 main ()
3912 {
3913 /* The GNU C library defines this for functions which it implements
3914     to always fail with ENOSYS.  Some functions are actually named
3915     something starting with __ and the normal name is an alias.  */
3916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3917 choke me
3918 #else
3919 f = $ac_func;
3920 #endif
3921
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 rm -f conftest.$ac_objext conftest$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928   (eval $ac_link) 2>&5
3929   ac_status=$?
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } &&
3932          { ac_try='test -s conftest$ac_exeext'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; }; then
3938   eval "$as_ac_var=yes"
3939 else
3940   echo "$as_me: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 eval "$as_ac_var=no"
3943 fi
3944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3945 fi
3946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3948 if test `eval echo '${'$as_ac_var'}'` = yes; then
3949   cat >>confdefs.h <<_ACEOF
3950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3951 _ACEOF
3952
3953 fi
3954 done
3955
3956 echo "$as_me:$LINENO: checking for working mmap" >&5
3957 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3958 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if test "$cross_compiling" = yes; then
3962   ac_cv_func_mmap_fixed_mapped=no
3963 else
3964   cat >conftest.$ac_ext <<_ACEOF
3965 #line $LINENO "configure"
3966 #include "confdefs.h"
3967 $ac_includes_default
3968 /* malloc might have been renamed as rpl_malloc. */
3969 #undef malloc
3970
3971 /* Thanks to Mike Haertel and Jim Avera for this test.
3972    Here is a matrix of mmap possibilities:
3973         mmap private not fixed
3974         mmap private fixed at somewhere currently unmapped
3975         mmap private fixed at somewhere already mapped
3976         mmap shared not fixed
3977         mmap shared fixed at somewhere currently unmapped
3978         mmap shared fixed at somewhere already mapped
3979    For private mappings, we should verify that changes cannot be read()
3980    back from the file, nor mmap's back from the file at a different
3981    address.  (There have been systems where private was not correctly
3982    implemented like the infamous i386 svr4.0, and systems where the
3983    VM page cache was not coherent with the file system buffer cache
3984    like early versions of FreeBSD and possibly contemporary NetBSD.)
3985    For shared mappings, we should conversely verify that changes get
3986    propagated back to all the places they're supposed to be.
3987
3988    Grep wants private fixed already mapped.
3989    The main things grep needs to know about mmap are:
3990    * does it exist and is it safe to write into the mmap'd area
3991    * how to use it (BSD variants)  */
3992
3993 #include <fcntl.h>
3994 #include <sys/mman.h>
3995
3996 #if !STDC_HEADERS && !HAVE_STDLIB_H
3997 char *malloc ();
3998 #endif
3999
4000 /* This mess was copied from the GNU getpagesize.h.  */
4001 #if !HAVE_GETPAGESIZE
4002 /* Assume that all systems that can run configure have sys/param.h.  */
4003 # if !HAVE_SYS_PARAM_H
4004 #  define HAVE_SYS_PARAM_H 1
4005 # endif
4006
4007 # ifdef _SC_PAGESIZE
4008 #  define getpagesize() sysconf(_SC_PAGESIZE)
4009 # else /* no _SC_PAGESIZE */
4010 #  if HAVE_SYS_PARAM_H
4011 #   include <sys/param.h>
4012 #   ifdef EXEC_PAGESIZE
4013 #    define getpagesize() EXEC_PAGESIZE
4014 #   else /* no EXEC_PAGESIZE */
4015 #    ifdef NBPG
4016 #     define getpagesize() NBPG * CLSIZE
4017 #     ifndef CLSIZE
4018 #      define CLSIZE 1
4019 #     endif /* no CLSIZE */
4020 #    else /* no NBPG */
4021 #     ifdef NBPC
4022 #      define getpagesize() NBPC
4023 #     else /* no NBPC */
4024 #      ifdef PAGESIZE
4025 #       define getpagesize() PAGESIZE
4026 #      endif /* PAGESIZE */
4027 #     endif /* no NBPC */
4028 #    endif /* no NBPG */
4029 #   endif /* no EXEC_PAGESIZE */
4030 #  else /* no HAVE_SYS_PARAM_H */
4031 #   define getpagesize() 8192   /* punt totally */
4032 #  endif /* no HAVE_SYS_PARAM_H */
4033 # endif /* no _SC_PAGESIZE */
4034
4035 #endif /* no HAVE_GETPAGESIZE */
4036
4037 int
4038 main ()
4039 {
4040   char *data, *data2, *data3;
4041   int i, pagesize;
4042   int fd;
4043
4044   pagesize = getpagesize ();
4045
4046   /* First, make a file with some known garbage in it. */
4047   data = (char *) malloc (pagesize);
4048   if (!data)
4049     exit (1);
4050   for (i = 0; i < pagesize; ++i)
4051     *(data + i) = rand ();
4052   umask (0);
4053   fd = creat ("conftest.mmap", 0600);
4054   if (fd < 0)
4055     exit (1);
4056   if (write (fd, data, pagesize) != pagesize)
4057     exit (1);
4058   close (fd);
4059
4060   /* Next, try to mmap the file at a fixed address which already has
4061      something else allocated at it.  If we can, also make sure that
4062      we see the same garbage.  */
4063   fd = open ("conftest.mmap", O_RDWR);
4064   if (fd < 0)
4065     exit (1);
4066   data2 = (char *) malloc (2 * pagesize);
4067   if (!data2)
4068     exit (1);
4069   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4070   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4071                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4072     exit (1);
4073   for (i = 0; i < pagesize; ++i)
4074     if (*(data + i) != *(data2 + i))
4075       exit (1);
4076
4077   /* Finally, make sure that changes to the mapped area do not
4078      percolate back to the file as seen by read().  (This is a bug on
4079      some variants of i386 svr4.0.)  */
4080   for (i = 0; i < pagesize; ++i)
4081     *(data2 + i) = *(data2 + i) + 1;
4082   data3 = (char *) malloc (pagesize);
4083   if (!data3)
4084     exit (1);
4085   if (read (fd, data3, pagesize) != pagesize)
4086     exit (1);
4087   for (i = 0; i < pagesize; ++i)
4088     if (*(data + i) != *(data3 + i))
4089       exit (1);
4090   close (fd);
4091   exit (0);
4092 }
4093 _ACEOF
4094 rm -f conftest$ac_exeext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4096   (eval $ac_link) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101   (eval $ac_try) 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; }; then
4105   ac_cv_func_mmap_fixed_mapped=yes
4106 else
4107   echo "$as_me: program exited with status $ac_status" >&5
4108 echo "$as_me: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110 ( exit $ac_status )
4111 ac_cv_func_mmap_fixed_mapped=no
4112 fi
4113 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 fi
4116 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4117 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4118 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4119
4120 cat >>confdefs.h <<\_ACEOF
4121 #define HAVE_MMAP 1
4122 _ACEOF
4123
4124 fi
4125 rm -f conftest.mmap
4126
4127 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
4128   FTSYS_SRC='$(BASE_)ftsystem.c'
4129 else
4130   FTSYS_SRC='$(BUILD)/ftsystem.c'
4131
4132   echo "$as_me:$LINENO: checking whether munmap must be declared" >&5
4133 echo $ECHO_N "checking whether munmap must be declared... $ECHO_C" >&6
4134 if test "${ft_cv_munmap_decl+set}" = set; then
4135   echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137   cat >conftest.$ac_ext <<_ACEOF
4138 #line $LINENO "configure"
4139 #include "confdefs.h"
4140
4141 #ifdef HAVE_UNISTD_H
4142 #include <unistd.h>
4143 #endif
4144 #include <sys/mman.h>
4145 int
4146 main ()
4147 {
4148 char *(*pfn) = (char *(*))munmap
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155   (eval $ac_compile) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -s conftest.$ac_objext'
4160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161   (eval $ac_try) 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }; }; then
4165   ft_cv_munmap_decl=no
4166 else
4167   echo "$as_me: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 ft_cv_munmap_decl=yes
4170 fi
4171 rm -f conftest.$ac_objext conftest.$ac_ext
4172 fi
4173
4174 echo "$as_me:$LINENO: result: $ft_cv_munmap_decl" >&5
4175 echo "${ECHO_T}$ft_cv_munmap_decl" >&6
4176 if test $ft_cv_munmap_decl = yes; then
4177
4178 cat >>confdefs.h <<\_ACEOF
4179 #define NEED_MUNMAP_DECL
4180 _ACEOF
4181
4182 fi
4183   echo "$as_me:$LINENO: checking for munmap's first parameter type" >&5
4184 echo $ECHO_N "checking for munmap's first parameter type... $ECHO_C" >&6
4185 cat >conftest.$ac_ext <<_ACEOF
4186 #line $LINENO "configure"
4187 #include "confdefs.h"
4188
4189 #include <unistd.h>
4190 #include <sys/mman.h>
4191 int munmap(void *, size_t);
4192 int
4193 main ()
4194 {
4195
4196   ;
4197   return 0;
4198 }
4199 _ACEOF
4200 rm -f conftest.$ac_objext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4202   (eval $ac_compile) 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); } &&
4206          { ac_try='test -s conftest.$ac_objext'
4207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208   (eval $ac_try) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   echo "$as_me:$LINENO: result: void *" >&5
4213 echo "${ECHO_T}void *" >&6;
4214 cat >>confdefs.h <<\_ACEOF
4215 #define MUNMAP_USES_VOIDP
4216 _ACEOF
4217
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4221 echo "$as_me:$LINENO: result: char *" >&5
4222 echo "${ECHO_T}char *" >&6
4223 fi
4224 rm -f conftest.$ac_objext conftest.$ac_ext
4225
4226 fi
4227
4228
4229
4230
4231 for ac_func in memcpy memmove
4232 do
4233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4234 echo "$as_me:$LINENO: checking for $ac_func" >&5
4235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4236 if eval "test \"\${$as_ac_var+set}\" = set"; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   cat >conftest.$ac_ext <<_ACEOF
4240 #line $LINENO "configure"
4241 #include "confdefs.h"
4242 /* System header to define __stub macros and hopefully few prototypes,
4243     which can conflict with char $ac_func (); below.  */
4244 #include <assert.h>
4245 /* Override any gcc2 internal prototype to avoid an error.  */
4246 #ifdef __cplusplus
4247 extern "C"
4248 #endif
4249 /* We use char because int might match the return type of a gcc2
4250    builtin and then its argument prototype would still apply.  */
4251 char $ac_func ();
4252 char (*f) ();
4253
4254 int
4255 main ()
4256 {
4257 /* The GNU C library defines this for functions which it implements
4258     to always fail with ENOSYS.  Some functions are actually named
4259     something starting with __ and the normal name is an alias.  */
4260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4261 choke me
4262 #else
4263 f = $ac_func;
4264 #endif
4265
4266   ;
4267   return 0;
4268 }
4269 _ACEOF
4270 rm -f conftest.$ac_objext conftest$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272   (eval $ac_link) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); } &&
4276          { ac_try='test -s conftest$ac_exeext'
4277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278   (eval $ac_try) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }; }; then
4282   eval "$as_ac_var=yes"
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 eval "$as_ac_var=no"
4287 fi
4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4289 fi
4290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4292 if test `eval echo '${'$as_ac_var'}'` = yes; then
4293   cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4295 _ACEOF
4296
4297 fi
4298 done
4299
4300
4301
4302
4303 # Check whether --with-zlib or --without-zlib was given.
4304 if test "${with_zlib+set}" = set; then
4305   withval="$with_zlib"
4306
4307 fi;
4308 if test x$with_zlib != xno && test -z "$LIBZ"; then
4309   echo "$as_me:$LINENO: checking for gzsetparams in -lz" >&5
4310 echo $ECHO_N "checking for gzsetparams in -lz... $ECHO_C" >&6
4311 if test "${ac_cv_lib_z_gzsetparams+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   ac_check_lib_save_LIBS=$LIBS
4315 LIBS="-lz  $LIBS"
4316 cat >conftest.$ac_ext <<_ACEOF
4317 #line $LINENO "configure"
4318 #include "confdefs.h"
4319
4320 /* Override any gcc2 internal prototype to avoid an error.  */
4321 #ifdef __cplusplus
4322 extern "C"
4323 #endif
4324 /* We use char because int might match the return type of a gcc2
4325    builtin and then its argument prototype would still apply.  */
4326 char gzsetparams ();
4327 int
4328 main ()
4329 {
4330 gzsetparams ();
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 rm -f conftest.$ac_objext conftest$ac_exeext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4337   (eval $ac_link) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } &&
4341          { ac_try='test -s conftest$ac_exeext'
4342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343   (eval $ac_try) 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   ac_cv_lib_z_gzsetparams=yes
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4351 ac_cv_lib_z_gzsetparams=no
4352 fi
4353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4355 fi
4356 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzsetparams" >&5
4357 echo "${ECHO_T}$ac_cv_lib_z_gzsetparams" >&6
4358 if test $ac_cv_lib_z_gzsetparams = yes; then
4359   if test "${ac_cv_header_zlib_h+set}" = set; then
4360   echo "$as_me:$LINENO: checking for zlib.h" >&5
4361 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
4362 if test "${ac_cv_header_zlib_h+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 fi
4365 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
4366 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
4367 else
4368   # Is the header compilable?
4369 echo "$as_me:$LINENO: checking zlib.h usability" >&5
4370 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4372 #line $LINENO "configure"
4373 #include "confdefs.h"
4374 $ac_includes_default
4375 #include <zlib.h>
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379   (eval $ac_compile) 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } &&
4383          { ac_try='test -s conftest.$ac_objext'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; }; then
4389   ac_header_compiler=yes
4390 else
4391   echo "$as_me: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4393 ac_header_compiler=no
4394 fi
4395 rm -f conftest.$ac_objext conftest.$ac_ext
4396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4397 echo "${ECHO_T}$ac_header_compiler" >&6
4398
4399 # Is the header present?
4400 echo "$as_me:$LINENO: checking zlib.h presence" >&5
4401 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 #include "confdefs.h"
4405 #include <zlib.h>
4406 _ACEOF
4407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } >/dev/null; then
4415   if test -s conftest.err; then
4416     ac_cpp_err=$ac_c_preproc_warn_flag
4417   else
4418     ac_cpp_err=
4419   fi
4420 else
4421   ac_cpp_err=yes
4422 fi
4423 if test -z "$ac_cpp_err"; then
4424   ac_header_preproc=yes
4425 else
4426   echo "$as_me: failed program was:" >&5
4427   cat conftest.$ac_ext >&5
4428   ac_header_preproc=no
4429 fi
4430 rm -f conftest.err conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4432 echo "${ECHO_T}$ac_header_preproc" >&6
4433
4434 # So?  What about this header?
4435 case $ac_header_compiler:$ac_header_preproc in
4436   yes:no )
4437     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
4438 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4439     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
4440 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
4441   no:yes )
4442     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
4443 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
4444     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
4445 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
4446     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
4447 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
4448 esac
4449 echo "$as_me:$LINENO: checking for zlib.h" >&5
4450 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
4451 if test "${ac_cv_header_zlib_h+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   ac_cv_header_zlib_h=$ac_header_preproc
4455 fi
4456 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
4457 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
4458
4459 fi
4460 if test $ac_cv_header_zlib_h = yes; then
4461   LIBZ='-lz'
4462 fi
4463
4464
4465 fi
4466
4467 fi
4468 if test x$with_zlib != xno && test -n "$LIBZ"; then
4469   CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
4470   LDFLAGS="$LDFLAGS $LIBZ"
4471   SYSTEM_ZLIB=yes
4472 fi
4473
4474
4475
4476
4477
4478
4479
4480 # Check whether --enable-shared or --disable-shared was given.
4481 if test "${enable_shared+set}" = set; then
4482   enableval="$enable_shared"
4483   p=${PACKAGE-default}
4484 case $enableval in
4485 yes) enable_shared=yes ;;
4486 no) enable_shared=no ;;
4487 *)
4488   enable_shared=no
4489   # Look at the argument we got.  We use all the common list separators.
4490   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4491   for pkg in $enableval; do
4492     if test "X$pkg" = "X$p"; then
4493       enable_shared=yes
4494     fi
4495   done
4496   IFS="$ac_save_ifs"
4497   ;;
4498 esac
4499 else
4500   enable_shared=yes
4501 fi;
4502 # Check whether --enable-static or --disable-static was given.
4503 if test "${enable_static+set}" = set; then
4504   enableval="$enable_static"
4505   p=${PACKAGE-default}
4506 case $enableval in
4507 yes) enable_static=yes ;;
4508 no) enable_static=no ;;
4509 *)
4510   enable_static=no
4511   # Look at the argument we got.  We use all the common list separators.
4512   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4513   for pkg in $enableval; do
4514     if test "X$pkg" = "X$p"; then
4515       enable_static=yes
4516     fi
4517   done
4518   IFS="$ac_save_ifs"
4519   ;;
4520 esac
4521 else
4522   enable_static=yes
4523 fi;
4524 # Check whether --enable-fast-install or --disable-fast-install was given.
4525 if test "${enable_fast_install+set}" = set; then
4526   enableval="$enable_fast_install"
4527   p=${PACKAGE-default}
4528 case $enableval in
4529 yes) enable_fast_install=yes ;;
4530 no) enable_fast_install=no ;;
4531 *)
4532   enable_fast_install=no
4533   # Look at the argument we got.  We use all the common list separators.
4534   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4535   for pkg in $enableval; do
4536     if test "X$pkg" = "X$p"; then
4537       enable_fast_install=yes
4538     fi
4539   done
4540   IFS="$ac_save_ifs"
4541   ;;
4542 esac
4543 else
4544   enable_fast_install=yes
4545 fi;
4546 # Find the correct PATH separator.  Usually this is `:', but
4547 # DJGPP uses `;' like DOS.
4548 if test "X${PATH_SEPARATOR+set}" != Xset; then
4549   UNAME=${UNAME-`uname 2>/dev/null`}
4550   case X$UNAME in
4551     *-DOS) lt_cv_sys_path_separator=';' ;;
4552     *)     lt_cv_sys_path_separator=':' ;;
4553   esac
4554   PATH_SEPARATOR=$lt_cv_sys_path_separator
4555 fi
4556
4557
4558 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4559 if test "${with_gnu_ld+set}" = set; then
4560   withval="$with_gnu_ld"
4561   test "$withval" = no || with_gnu_ld=yes
4562 else
4563   with_gnu_ld=no
4564 fi;
4565 ac_prog=ld
4566 if test "$GCC" = yes; then
4567   # Check if gcc -print-prog-name=ld gives a path.
4568   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4569 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4570   case $host in
4571   *-*-mingw*)
4572     # gcc leaves a trailing carriage return which upsets mingw
4573     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4574   *)
4575     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4576   esac
4577   case $ac_prog in
4578     # Accept absolute paths.
4579     [\\/]* | [A-Za-z]:[\\/]*)
4580       re_direlt='/[^/][^/]*/\.\./'
4581       # Canonicalize the path of ld
4582       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4583       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4584         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4585       done
4586       test -z "$LD" && LD="$ac_prog"
4587       ;;
4588   "")
4589     # If it fails, then pretend we aren't using GCC.
4590     ac_prog=ld
4591     ;;
4592   *)
4593     # If it is relative, then search for the first ld in PATH.
4594     with_gnu_ld=unknown
4595     ;;
4596   esac
4597 elif test "$with_gnu_ld" = yes; then
4598   echo "$as_me:$LINENO: checking for GNU ld" >&5
4599 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4600 else
4601   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4602 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4603 fi
4604 if test "${lt_cv_path_LD+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   if test -z "$LD"; then
4608   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4609   for ac_dir in $PATH; do
4610     test -z "$ac_dir" && ac_dir=.
4611     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4612       lt_cv_path_LD="$ac_dir/$ac_prog"
4613       # Check to see if the program is GNU ld.  I'd rather use --version,
4614       # but apparently some GNU ld's only accept -v.
4615       # Break only if it was the GNU/non-GNU ld that we prefer.
4616       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4617         test "$with_gnu_ld" != no && break
4618       else
4619         test "$with_gnu_ld" != yes && break
4620       fi
4621     fi
4622   done
4623   IFS="$ac_save_ifs"
4624 else
4625   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4626 fi
4627 fi
4628
4629 LD="$lt_cv_path_LD"
4630 if test -n "$LD"; then
4631   echo "$as_me:$LINENO: result: $LD" >&5
4632 echo "${ECHO_T}$LD" >&6
4633 else
4634   echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 fi
4637 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4638 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4639    { (exit 1); exit 1; }; }
4640 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4641 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4642 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4646 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4647   lt_cv_prog_gnu_ld=yes
4648 else
4649   lt_cv_prog_gnu_ld=no
4650 fi
4651 fi
4652 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4653 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4654 with_gnu_ld=$lt_cv_prog_gnu_ld
4655
4656
4657 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4658 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4659 if test "${lt_cv_ld_reload_flag+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   lt_cv_ld_reload_flag='-r'
4663 fi
4664 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4665 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4666 reload_flag=$lt_cv_ld_reload_flag
4667 test -n "$reload_flag" && reload_flag=" $reload_flag"
4668
4669 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4670 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4671 if test "${lt_cv_path_NM+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   if test -n "$NM"; then
4675   # Let the user override the test.
4676   lt_cv_path_NM="$NM"
4677 else
4678   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4679   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4680     test -z "$ac_dir" && ac_dir=.
4681     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4682     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4683       # Check to see if the nm accepts a BSD-compat flag.
4684       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4685       #   nm: unknown option "B" ignored
4686       # Tru64's nm complains that /dev/null is an invalid object file
4687       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4688         lt_cv_path_NM="$tmp_nm -B"
4689         break
4690       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4691         lt_cv_path_NM="$tmp_nm -p"
4692         break
4693       else
4694         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4695         continue # so that we can try to find one that supports BSD flags
4696       fi
4697     fi
4698   done
4699   IFS="$ac_save_ifs"
4700   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4701 fi
4702 fi
4703
4704 NM="$lt_cv_path_NM"
4705 echo "$as_me:$LINENO: result: $NM" >&5
4706 echo "${ECHO_T}$NM" >&6
4707
4708 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4709 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4710 if test "${lt_cv_path_SED+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   # Loop through the user's path and test for sed and gsed.
4714 # Then use that list of sed's as ones to test for truncation.
4715 as_executable_p="test -f"
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721   for ac_prog in sed gsed; do
4722     for ac_exec_ext in '' $ac_executable_extensions; do
4723       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4724         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4725       fi
4726     done
4727   done
4728 done
4729
4730   # Create a temporary directory, and hook for its removal unless debugging.
4731 $debug ||
4732 {
4733   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4734   trap '{ (exit 1); exit 1; }' 1 2 13 15
4735 }
4736
4737 # Create a (secure) tmp directory for tmp files.
4738 : ${TMPDIR=/tmp}
4739 {
4740   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4741   test -n "$tmp" && test -d "$tmp"
4742 }  ||
4743 {
4744   tmp=$TMPDIR/sed$$-$RANDOM
4745   (umask 077 && mkdir $tmp)
4746 } ||
4747 {
4748    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4749    { (exit 1); exit 1; }
4750 }
4751   _max=0
4752   _count=0
4753   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4754   # along with /bin/sed that truncates output.
4755   for _sed in $_sed_list /usr/xpg4/bin/sed; do
4756     test ! -f ${_sed} && break
4757     cat /dev/null > "$tmp/sed.in"
4758     _count=0
4759     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4760     # Check for GNU sed and select it if it is found.
4761     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4762       lt_cv_path_SED=${_sed}
4763       break
4764     fi
4765     while true; do
4766       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4767       mv "$tmp/sed.tmp" "$tmp/sed.in"
4768       cp "$tmp/sed.in" "$tmp/sed.nl"
4769       echo >>"$tmp/sed.nl"
4770       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4771       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4772       # 40000 chars as input seems more than enough
4773       test $_count -gt 10 && break
4774       _count=`expr $_count + 1`
4775       if test $_count -gt $_max; then
4776         _max=$_count
4777         lt_cv_path_SED=$_sed
4778       fi
4779     done
4780   done
4781   rm -rf "$tmp"
4782
4783 fi
4784
4785 if test "X$SED" != "X"; then
4786   lt_cv_path_SED=$SED
4787 else
4788   SED=$lt_cv_path_SED
4789 fi
4790 echo "$as_me:$LINENO: result: $SED" >&5
4791 echo "${ECHO_T}$SED" >&6
4792
4793 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4794 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4795 LN_S=$as_ln_s
4796 if test "$LN_S" = "ln -s"; then
4797   echo "$as_me:$LINENO: result: yes" >&5
4798 echo "${ECHO_T}yes" >&6
4799 else
4800   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4801 echo "${ECHO_T}no, using $LN_S" >&6
4802 fi
4803
4804 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4805 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4806 if test "${lt_cv_deplibs_check_method+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809   lt_cv_file_magic_cmd='$MAGIC_CMD'
4810 lt_cv_file_magic_test_file=
4811 lt_cv_deplibs_check_method='unknown'
4812 # Need to set the preceding variable on all platforms that support
4813 # interlibrary dependencies.
4814 # 'none' -- dependencies not supported.
4815 # `unknown' -- same as none, but documents that we really don't know.
4816 # 'pass_all' -- all dependencies passed with no checks.
4817 # 'test_compile' -- check by making test program.
4818 # 'file_magic [[regex]]' -- check by looking for files in library path
4819 # which responds to the $file_magic_cmd with a given egrep regex.
4820 # If you have `file' or equivalent on your system and you're not sure
4821 # whether `pass_all' will *always* work, you probably want this one.
4822
4823 case $host_os in
4824 aix4* | aix5*)
4825   lt_cv_deplibs_check_method=pass_all
4826   ;;
4827
4828 beos*)
4829   lt_cv_deplibs_check_method=pass_all
4830   ;;
4831
4832 bsdi4*)
4833   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4834   lt_cv_file_magic_cmd='/usr/bin/file -L'
4835   lt_cv_file_magic_test_file=/shlib/libc.so
4836   ;;
4837
4838 cygwin* | mingw* | pw32*)
4839   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4840   lt_cv_file_magic_cmd='$OBJDUMP -f'
4841   ;;
4842
4843 darwin* | rhapsody*)
4844   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4845   lt_cv_file_magic_cmd='/usr/bin/file -L'
4846   case "$host_os" in
4847   rhapsody* | darwin1.[012])
4848     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4849     ;;
4850   *) # Darwin 1.3 on
4851     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4852     ;;
4853   esac
4854   ;;
4855
4856 freebsd*)
4857   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4858     case $host_cpu in
4859     i*86 )
4860       # Not sure whether the presence of OpenBSD here was a mistake.
4861       # Let's accept both of them until this is cleared up.
4862       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4863       lt_cv_file_magic_cmd=/usr/bin/file
4864       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4865       ;;
4866     esac
4867   else
4868     lt_cv_deplibs_check_method=pass_all
4869   fi
4870   ;;
4871
4872 gnu*)
4873   lt_cv_deplibs_check_method=pass_all
4874   ;;
4875
4876 hpux10.20*|hpux11*)
4877   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4878   lt_cv_file_magic_cmd=/usr/bin/file
4879   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4880   ;;
4881
4882 irix5* | irix6* | nonstopux*)
4883   case $host_os in
4884   irix5* | nonstopux*)
4885     # this will be overridden with pass_all, but let us keep it just in case
4886     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4887     ;;
4888   *)
4889     case $LD in
4890     *-32|*"-32 ") libmagic=32-bit;;
4891     *-n32|*"-n32 ") libmagic=N32;;
4892     *-64|*"-64 ") libmagic=64-bit;;
4893     *) libmagic=never-match;;
4894     esac
4895     # this will be overridden with pass_all, but let us keep it just in case
4896     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4897     ;;
4898   esac
4899   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4900   lt_cv_deplibs_check_method=pass_all
4901   ;;
4902
4903 # This must be Linux ELF.
4904 linux-gnu*)
4905   case $host_cpu in
4906   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4907     lt_cv_deplibs_check_method=pass_all ;;
4908   *)
4909     # glibc up to 2.1.1 does not perform some relocations on ARM
4910     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4911   esac
4912   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4913   ;;
4914
4915 netbsd*)
4916   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4917     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4918   else
4919     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4920   fi
4921   ;;
4922
4923 newos6*)
4924   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4925   lt_cv_file_magic_cmd=/usr/bin/file
4926   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4927   ;;
4928
4929 openbsd*)
4930   lt_cv_file_magic_cmd=/usr/bin/file
4931   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4932   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4933     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4934   else
4935     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4936   fi
4937   ;;
4938
4939 osf3* | osf4* | osf5*)
4940   # this will be overridden with pass_all, but let us keep it just in case
4941   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4942   lt_cv_file_magic_test_file=/shlib/libc.so
4943   lt_cv_deplibs_check_method=pass_all
4944   ;;
4945
4946 sco3.2v5*)
4947   lt_cv_deplibs_check_method=pass_all
4948   ;;
4949
4950 solaris*)
4951   lt_cv_deplibs_check_method=pass_all
4952   lt_cv_file_magic_test_file=/lib/libc.so
4953   ;;
4954
4955 sysv5uw[78]* | sysv4*uw2*)
4956   lt_cv_deplibs_check_method=pass_all
4957   ;;
4958
4959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4960   case $host_vendor in
4961   motorola)
4962     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]'
4963     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4964     ;;
4965   ncr)
4966     lt_cv_deplibs_check_method=pass_all
4967     ;;
4968   sequent)
4969     lt_cv_file_magic_cmd='/bin/file'
4970     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4971     ;;
4972   sni)
4973     lt_cv_file_magic_cmd='/bin/file'
4974     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4975     lt_cv_file_magic_test_file=/lib/libc.so
4976     ;;
4977   siemens)
4978     lt_cv_deplibs_check_method=pass_all
4979     ;;
4980   esac
4981   ;;
4982 esac
4983
4984 fi
4985 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4986 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4987 file_magic_cmd=$lt_cv_file_magic_cmd
4988 deplibs_check_method=$lt_cv_deplibs_check_method
4989
4990
4991
4992
4993
4994
4995
4996 # Check for command to grab the raw symbol name followed by C symbol from nm.
4997 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4998 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4999 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002
5003 # These are sane defaults that work on at least a few old systems.
5004 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5005
5006 # Character class describing NM global symbol codes.
5007 symcode='[BCDEGRST]'
5008
5009 # Regexp to match symbols that can be accessed directly from C.
5010 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5011
5012 # Transform the above into a raw symbol and a C symbol.
5013 symxfrm='\1 \2\3 \3'
5014
5015 # Transform an extracted symbol line into a proper C declaration
5016 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
5017
5018 # Transform an extracted symbol line into symbol name and symbol address
5019 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'"
5020
5021 # Define system-specific variables.
5022 case $host_os in
5023 aix*)
5024   symcode='[BCDT]'
5025   ;;
5026 cygwin* | mingw* | pw32*)
5027   symcode='[ABCDGISTW]'
5028   ;;
5029 hpux*) # Its linker distinguishes data from code symbols
5030   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5031   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'"
5032   ;;
5033 irix* | nonstopux*)
5034   symcode='[BCDEGRST]'
5035   ;;
5036 osf*)
5037   symcode='[BCDEGQRST]'
5038   ;;
5039 solaris* | sysv5*)
5040   symcode='[BDT]'
5041   ;;
5042 sysv4)
5043   symcode='[DFNSTU]'
5044   ;;
5045 esac
5046
5047 # Handle CRLF in mingw tool chain
5048 opt_cr=
5049 case $host_os in
5050 mingw*)
5051   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5052   ;;
5053 esac
5054
5055 # If we're using GNU nm, then use its standard symbol codes.
5056 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
5057   symcode='[ABCDGISTW]'
5058 fi
5059
5060 # Try without a prefix undercore, then with it.
5061 for ac_symprfx in "" "_"; do
5062
5063   # Write the raw and C identifiers.
5064 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5065
5066   # Check to see that the pipe works correctly.
5067   pipe_works=no
5068   rm -f conftest*
5069   cat > conftest.$ac_ext <<EOF
5070 #ifdef __cplusplus
5071 extern "C" {
5072 #endif
5073 char nm_test_var;
5074 void nm_test_func(){}
5075 #ifdef __cplusplus
5076 }
5077 #endif
5078 int main(){nm_test_var='a';nm_test_func();return(0);}
5079 EOF
5080
5081   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5082   (eval $ac_compile) 2>&5
5083   ac_status=$?
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); }; then
5086     # Now try to grab the symbols.
5087     nlist=conftest.nm
5088     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5089   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } && test -s "$nlist"; then
5093       # Try sorting and uniquifying the output.
5094       if sort "$nlist" | uniq > "$nlist"T; then
5095         mv -f "$nlist"T "$nlist"
5096       else
5097         rm -f "$nlist"T
5098       fi
5099
5100       # Make sure that we snagged all the symbols we need.
5101       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
5102         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
5103           cat <<EOF > conftest.$ac_ext
5104 #ifdef __cplusplus
5105 extern "C" {
5106 #endif
5107
5108 EOF
5109           # Now generate the symbol file.
5110           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
5111
5112           cat <<EOF >> conftest.$ac_ext
5113 #if defined (__STDC__) && __STDC__
5114 # define lt_ptr void *
5115 #else
5116 # define lt_ptr char *
5117 # define const
5118 #endif
5119
5120 /* The mapping between symbol names and symbols. */
5121 const struct {
5122   const char *name;
5123   lt_ptr address;
5124 }
5125 lt_preloaded_symbols[] =
5126 {
5127 EOF
5128           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
5129           cat <<\EOF >> conftest.$ac_ext
5130   {0, (lt_ptr) 0}
5131 };
5132
5133 #ifdef __cplusplus
5134 }
5135 #endif
5136 EOF
5137           # Now try linking the two files.
5138           mv conftest.$ac_objext conftstm.$ac_objext
5139           save_LIBS="$LIBS"
5140           save_CFLAGS="$CFLAGS"
5141           LIBS="conftstm.$ac_objext"
5142           CFLAGS="$CFLAGS$no_builtin_flag"
5143           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144   (eval $ac_link) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } && test -s conftest$ac_exeext; then
5148             pipe_works=yes
5149           fi
5150           LIBS="$save_LIBS"
5151           CFLAGS="$save_CFLAGS"
5152         else
5153           echo "cannot find nm_test_func in $nlist" >&5
5154         fi
5155       else
5156         echo "cannot find nm_test_var in $nlist" >&5
5157       fi
5158     else
5159       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5160     fi
5161   else
5162     echo "$progname: failed program was:" >&5
5163     cat conftest.$ac_ext >&5
5164   fi
5165   rm -f conftest* conftst*
5166
5167   # Do not use the global_symbol_pipe unless it works.
5168   if test "$pipe_works" = yes; then
5169     break
5170   else
5171     lt_cv_sys_global_symbol_pipe=
5172   fi
5173 done
5174
5175 fi
5176
5177 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
5178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5179   global_symbol_to_cdecl=
5180   global_symbol_to_c_name_address=
5181 else
5182   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
5183   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
5184 fi
5185 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
5186 then
5187   echo "$as_me:$LINENO: result: failed" >&5
5188 echo "${ECHO_T}failed" >&6
5189 else
5190   echo "$as_me:$LINENO: result: ok" >&5
5191 echo "${ECHO_T}ok" >&6
5192 fi
5193
5194
5195 for ac_header in dlfcn.h
5196 do
5197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5199   echo "$as_me:$LINENO: checking for $ac_header" >&5
5200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5202   echo $ECHO_N "(cached) $ECHO_C" >&6
5203 fi
5204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5206 else
5207   # Is the header compilable?
5208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5210 cat >conftest.$ac_ext <<_ACEOF
5211 #line $LINENO "configure"
5212 #include "confdefs.h"
5213 $ac_includes_default
5214 #include <$ac_header>
5215 _ACEOF
5216 rm -f conftest.$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218   (eval $ac_compile) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); } &&
5222          { ac_try='test -s conftest.$ac_objext'
5223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224   (eval $ac_try) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228   ac_header_compiler=yes
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5232 ac_header_compiler=no
5233 fi
5234 rm -f conftest.$ac_objext conftest.$ac_ext
5235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5236 echo "${ECHO_T}$ac_header_compiler" >&6
5237
5238 # Is the header present?
5239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5243 #include "confdefs.h"
5244 #include <$ac_header>
5245 _ACEOF
5246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5248   ac_status=$?
5249   grep -v '^ *+' conftest.er1 >conftest.err
5250   rm -f conftest.er1
5251   cat conftest.err >&5
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } >/dev/null; then
5254   if test -s conftest.err; then
5255     ac_cpp_err=$ac_c_preproc_warn_flag
5256   else
5257     ac_cpp_err=
5258   fi
5259 else
5260   ac_cpp_err=yes
5261 fi
5262 if test -z "$ac_cpp_err"; then
5263   ac_header_preproc=yes
5264 else
5265   echo "$as_me: failed program was:" >&5
5266   cat conftest.$ac_ext >&5
5267   ac_header_preproc=no
5268 fi
5269 rm -f conftest.err conftest.$ac_ext
5270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5271 echo "${ECHO_T}$ac_header_preproc" >&6
5272
5273 # So?  What about this header?
5274 case $ac_header_compiler:$ac_header_preproc in
5275   yes:no )
5276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5280   no:yes )
5281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5283     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5287 esac
5288 echo "$as_me:$LINENO: checking for $ac_header" >&5
5289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   eval "$as_ac_Header=$ac_header_preproc"
5294 fi
5295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5297
5298 fi
5299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5300   cat >>confdefs.h <<_ACEOF
5301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5302 _ACEOF
5303
5304 fi
5305
5306 done
5307
5308
5309
5310
5311
5312
5313 # Only perform the check for file, if the check method requires it
5314 case $deplibs_check_method in
5315 file_magic*)
5316   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5317     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5318 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5319 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   case $MAGIC_CMD in
5323   /*)
5324   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5325   ;;
5326   ?:/*)
5327   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5328   ;;
5329   *)
5330   ac_save_MAGIC_CMD="$MAGIC_CMD"
5331   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5332   ac_dummy="/usr/bin:$PATH"
5333   for ac_dir in $ac_dummy; do
5334     test -z "$ac_dir" && ac_dir=.
5335     if test -f $ac_dir/${ac_tool_prefix}file; then
5336       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5337       if test -n "$file_magic_test_file"; then
5338         case $deplibs_check_method in
5339         "file_magic "*)
5340           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5341           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5342           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5343             egrep "$file_magic_regex" > /dev/null; then
5344             :
5345           else
5346             cat <<EOF 1>&2
5347
5348 *** Warning: the command libtool uses to detect shared libraries,
5349 *** $file_magic_cmd, produces output that libtool cannot recognize.
5350 *** The result is that libtool may fail to recognize shared libraries
5351 *** as such.  This will affect the creation of libtool libraries that
5352 *** depend on shared libraries, but programs linked with such libtool
5353 *** libraries will work regardless of this problem.  Nevertheless, you
5354 *** may want to report the problem to your system manager and/or to
5355 *** bug-libtool@gnu.org
5356
5357 EOF
5358           fi ;;
5359         esac
5360       fi
5361       break
5362     fi
5363   done
5364   IFS="$ac_save_ifs"
5365   MAGIC_CMD="$ac_save_MAGIC_CMD"
5366   ;;
5367 esac
5368 fi
5369
5370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5371 if test -n "$MAGIC_CMD"; then
5372   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5373 echo "${ECHO_T}$MAGIC_CMD" >&6
5374 else
5375   echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6
5377 fi
5378
5379 if test -z "$lt_cv_path_MAGIC_CMD"; then
5380   if test -n "$ac_tool_prefix"; then
5381     echo "$as_me:$LINENO: checking for file" >&5
5382 echo $ECHO_N "checking for file... $ECHO_C" >&6
5383 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   case $MAGIC_CMD in
5387   /*)
5388   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5389   ;;
5390   ?:/*)
5391   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5392   ;;
5393   *)
5394   ac_save_MAGIC_CMD="$MAGIC_CMD"
5395   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5396   ac_dummy="/usr/bin:$PATH"
5397   for ac_dir in $ac_dummy; do
5398     test -z "$ac_dir" && ac_dir=.
5399     if test -f $ac_dir/file; then
5400       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5401       if test -n "$file_magic_test_file"; then
5402         case $deplibs_check_method in
5403         "file_magic "*)
5404           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5405           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5406           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5407             egrep "$file_magic_regex" > /dev/null; then
5408             :
5409           else
5410             cat <<EOF 1>&2
5411
5412 *** Warning: the command libtool uses to detect shared libraries,
5413 *** $file_magic_cmd, produces output that libtool cannot recognize.
5414 *** The result is that libtool may fail to recognize shared libraries
5415 *** as such.  This will affect the creation of libtool libraries that
5416 *** depend on shared libraries, but programs linked with such libtool
5417 *** libraries will work regardless of this problem.  Nevertheless, you
5418 *** may want to report the problem to your system manager and/or to
5419 *** bug-libtool@gnu.org
5420
5421 EOF
5422           fi ;;
5423         esac
5424       fi
5425       break
5426     fi
5427   done
5428   IFS="$ac_save_ifs"
5429   MAGIC_CMD="$ac_save_MAGIC_CMD"
5430   ;;
5431 esac
5432 fi
5433
5434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5435 if test -n "$MAGIC_CMD"; then
5436   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5437 echo "${ECHO_T}$MAGIC_CMD" >&6
5438 else
5439   echo "$as_me:$LINENO: result: no" >&5
5440 echo "${ECHO_T}no" >&6
5441 fi
5442
5443   else
5444     MAGIC_CMD=:
5445   fi
5446 fi
5447
5448   fi
5449   ;;
5450 esac
5451
5452 if test -n "$ac_tool_prefix"; then
5453   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5455 echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5457 if test "${ac_cv_prog_RANLIB+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   if test -n "$RANLIB"; then
5461   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468   for ac_exec_ext in '' $ac_executable_extensions; do
5469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475 done
5476
5477 fi
5478 fi
5479 RANLIB=$ac_cv_prog_RANLIB
5480 if test -n "$RANLIB"; then
5481   echo "$as_me:$LINENO: result: $RANLIB" >&5
5482 echo "${ECHO_T}$RANLIB" >&6
5483 else
5484   echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6
5486 fi
5487
5488 fi
5489 if test -z "$ac_cv_prog_RANLIB"; then
5490   ac_ct_RANLIB=$RANLIB
5491   # Extract the first word of "ranlib", so it can be a program name with args.
5492 set dummy ranlib; ac_word=$2
5493 echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5495 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5496   echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498   if test -n "$ac_ct_RANLIB"; then
5499   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504   IFS=$as_save_IFS
5505   test -z "$as_dir" && as_dir=.
5506   for ac_exec_ext in '' $ac_executable_extensions; do
5507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508     ac_cv_prog_ac_ct_RANLIB="ranlib"
5509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510     break 2
5511   fi
5512 done
5513 done
5514
5515   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5516 fi
5517 fi
5518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5519 if test -n "$ac_ct_RANLIB"; then
5520   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5521 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5522 else
5523   echo "$as_me:$LINENO: result: no" >&5
5524 echo "${ECHO_T}no" >&6
5525 fi
5526
5527   RANLIB=$ac_ct_RANLIB
5528 else
5529   RANLIB="$ac_cv_prog_RANLIB"
5530 fi
5531
5532 if test -n "$ac_tool_prefix"; then
5533   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}strip; ac_word=$2
5535 echo "$as_me:$LINENO: checking for $ac_word" >&5
5536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5537 if test "${ac_cv_prog_STRIP+set}" = set; then
5538   echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540   if test -n "$STRIP"; then
5541   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548   for ac_exec_ext in '' $ac_executable_extensions; do
5549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555 done
5556
5557 fi
5558 fi
5559 STRIP=$ac_cv_prog_STRIP
5560 if test -n "$STRIP"; then
5561   echo "$as_me:$LINENO: result: $STRIP" >&5
5562 echo "${ECHO_T}$STRIP" >&6
5563 else
5564   echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6
5566 fi
5567
5568 fi
5569 if test -z "$ac_cv_prog_STRIP"; then
5570   ac_ct_STRIP=$STRIP
5571   # Extract the first word of "strip", so it can be a program name with args.
5572 set dummy strip; ac_word=$2
5573 echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578   if test -n "$ac_ct_STRIP"; then
5579   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586   for ac_exec_ext in '' $ac_executable_extensions; do
5587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588     ac_cv_prog_ac_ct_STRIP="strip"
5589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593 done
5594
5595   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5596 fi
5597 fi
5598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5599 if test -n "$ac_ct_STRIP"; then
5600   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5601 echo "${ECHO_T}$ac_ct_STRIP" >&6
5602 else
5603   echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6
5605 fi
5606
5607   STRIP=$ac_ct_STRIP
5608 else
5609   STRIP="$ac_cv_prog_STRIP"
5610 fi
5611
5612
5613 enable_dlopen=no
5614 enable_win32_dll=no
5615
5616 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5617 if test "${enable_libtool_lock+set}" = set; then
5618   enableval="$enable_libtool_lock"
5619
5620 fi;
5621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5622
5623 # Some flags need to be propagated to the compiler or linker for good
5624 # libtool support.
5625 case $host in
5626 *-*-irix6*)
5627   # Find out which ABI we are using.
5628   echo '#line 5628 "configure"' > conftest.$ac_ext
5629   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); }; then
5634     case `/usr/bin/file conftest.$ac_objext` in
5635     *32-bit*)
5636       LD="${LD-ld} -32"
5637       ;;
5638     *N32*)
5639       LD="${LD-ld} -n32"
5640       ;;
5641     *64-bit*)
5642       LD="${LD-ld} -64"
5643       ;;
5644     esac
5645   fi
5646   rm -rf conftest*
5647   ;;
5648
5649 *-*-sco3.2v5*)
5650   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5651   SAVE_CFLAGS="$CFLAGS"
5652   CFLAGS="$CFLAGS -belf"
5653   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5654 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5655 if test "${lt_cv_cc_needs_belf+set}" = set; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658
5659
5660      ac_ext=c
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665
5666      cat >conftest.$ac_ext <<_ACEOF
5667 #line $LINENO "configure"
5668 #include "confdefs.h"
5669
5670 int
5671 main ()
5672 {
5673
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 rm -f conftest.$ac_objext conftest$ac_exeext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680   (eval $ac_link) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); } &&
5684          { ac_try='test -s conftest$ac_exeext'
5685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686   (eval $ac_try) 2>&5
5687   ac_status=$?
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); }; }; then
5690   lt_cv_cc_needs_belf=yes
5691 else
5692   echo "$as_me: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 lt_cv_cc_needs_belf=no
5695 fi
5696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5697      ac_ext=c
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5702
5703 fi
5704 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5705 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5706   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5707     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5708     CFLAGS="$SAVE_CFLAGS"
5709   fi
5710   ;;
5711
5712
5713 esac
5714
5715 # Sed substitution that helps us do robust quoting.  It backslashifies
5716 # metacharacters that are still active within double-quoted strings.
5717 Xsed='sed -e s/^X//'
5718 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5719
5720 # Same as above, but do not quote variable references.
5721 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5722
5723 # Sed substitution to delay expansion of an escaped shell variable in a
5724 # double_quote_subst'ed string.
5725 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5726
5727 # Constants:
5728 rm="rm -f"
5729
5730 # Global variables:
5731 default_ofile=libtool
5732 can_build_shared=yes
5733
5734 # All known linkers require a `.a' archive for static linking (except M$VC,
5735 # which needs '.lib').
5736 libext=a
5737 ltmain="$ac_aux_dir/ltmain.sh"
5738 ofile="$default_ofile"
5739 with_gnu_ld="$lt_cv_prog_gnu_ld"
5740 need_locks="$enable_libtool_lock"
5741
5742 old_CC="$CC"
5743 old_CFLAGS="$CFLAGS"
5744
5745 # Set sane defaults for various variables
5746 test -z "$AR" && AR=ar
5747 test -z "$AR_FLAGS" && AR_FLAGS=cru
5748 test -z "$AS" && AS=as
5749 test -z "$CC" && CC=cc
5750 test -z "$DLLTOOL" && DLLTOOL=dlltool
5751 test -z "$LD" && LD=ld
5752 test -z "$LN_S" && LN_S="ln -s"
5753 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5754 test -z "$NM" && NM=nm
5755 test -z "$OBJDUMP" && OBJDUMP=objdump
5756 test -z "$RANLIB" && RANLIB=:
5757 test -z "$STRIP" && STRIP=:
5758 test -z "$ac_objext" && ac_objext=o
5759
5760 if test x"$host" != x"$build"; then
5761   ac_tool_prefix=${host_alias}-
5762 else
5763   ac_tool_prefix=
5764 fi
5765
5766 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5767 case $host_os in
5768 linux-gnu*) ;;
5769 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5770 esac
5771
5772 case $host_os in
5773 aix3*)
5774   # AIX sometimes has problems with the GCC collect2 program.  For some
5775   # reason, if we set the COLLECT_NAMES environment variable, the problems
5776   # vanish in a puff of smoke.
5777   if test "X${COLLECT_NAMES+set}" != Xset; then
5778     COLLECT_NAMES=
5779     export COLLECT_NAMES
5780   fi
5781   ;;
5782 esac
5783
5784 # Determine commands to create old-style static archives.
5785 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5786 old_postinstall_cmds='chmod 644 $oldlib'
5787 old_postuninstall_cmds=
5788
5789 if test -n "$RANLIB"; then
5790   case $host_os in
5791   openbsd*)
5792     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5793     ;;
5794   *)
5795     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5796     ;;
5797   esac
5798   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5799 fi
5800
5801 # Allow CC to be a program name with arguments.
5802 set dummy $CC
5803 compiler="$2"
5804
5805 echo "$as_me:$LINENO: checking for objdir" >&5
5806 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5807 rm -f .libs 2>/dev/null
5808 mkdir .libs 2>/dev/null
5809 if test -d .libs; then
5810   objdir=.libs
5811 else
5812   # MS-DOS does not allow filenames that begin with a dot.
5813   objdir=_libs
5814 fi
5815 rmdir .libs 2>/dev/null
5816 echo "$as_me:$LINENO: result: $objdir" >&5
5817 echo "${ECHO_T}$objdir" >&6
5818
5819
5820
5821 # Check whether --with-pic or --without-pic was given.
5822 if test "${with_pic+set}" = set; then
5823   withval="$with_pic"
5824   pic_mode="$withval"
5825 else
5826   pic_mode=default
5827 fi;
5828 test -z "$pic_mode" && pic_mode=default
5829
5830 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5831 # in isolation, and that seeing it set (from the cache) indicates that
5832 # the associated values are set (in the cache) correctly too.
5833 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5835 if test "${lt_cv_prog_cc_pic+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838    lt_cv_prog_cc_pic=
5839   lt_cv_prog_cc_shlib=
5840   lt_cv_prog_cc_wl=
5841   lt_cv_prog_cc_static=
5842   lt_cv_prog_cc_no_builtin=
5843   lt_cv_prog_cc_can_build_shared=$can_build_shared
5844
5845   if test "$GCC" = yes; then
5846     lt_cv_prog_cc_wl='-Wl,'
5847     lt_cv_prog_cc_static='-static'
5848
5849     case $host_os in
5850     aix*)
5851       # Below there is a dirty hack to force normal static linking with -ldl
5852       # The problem is because libdl dynamically linked with both libc and
5853       # libC (AIX C++ library), which obviously doesn't included in libraries
5854       # list by gcc. This cause undefined symbols with -static flags.
5855       # This hack allows C programs to be linked with "-static -ldl", but
5856       # not sure about C++ programs.
5857       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5858       ;;
5859     amigaos*)
5860       # FIXME: we need at least 68020 code to build shared libraries, but
5861       # adding the `-m68020' flag to GCC prevents building anything better,
5862       # like `-m68040'.
5863       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5864       ;;
5865     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5866       # PIC is the default for these OSes.
5867       ;;
5868     darwin* | rhapsody*)
5869       # PIC is the default on this platform
5870       # Common symbols not allowed in MH_DYLIB files
5871       lt_cv_prog_cc_pic='-fno-common'
5872       ;;
5873     cygwin* | mingw* | pw32* | os2*)
5874       # This hack is so that the source file can tell whether it is being
5875       # built for inclusion in a dll (and should export symbols for example).
5876       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5877       ;;
5878     sysv4*MP*)
5879       if test -d /usr/nec; then
5880          lt_cv_prog_cc_pic=-Kconform_pic
5881       fi
5882       ;;
5883     *)
5884       lt_cv_prog_cc_pic='-fPIC'
5885       ;;
5886     esac
5887   else
5888     # PORTME Check for PIC flags for the system compiler.
5889     case $host_os in
5890     aix3* | aix4* | aix5*)
5891       lt_cv_prog_cc_wl='-Wl,'
5892       # All AIX code is PIC.
5893       if test "$host_cpu" = ia64; then
5894         # AIX 5 now supports IA64 processor
5895         lt_cv_prog_cc_static='-Bstatic'
5896       else
5897         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5898       fi
5899       ;;
5900
5901     hpux9* | hpux10* | hpux11*)
5902       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5903       lt_cv_prog_cc_wl='-Wl,'
5904       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5905       lt_cv_prog_cc_pic='+Z'
5906       ;;
5907
5908     irix5* | irix6* | nonstopux*)
5909       lt_cv_prog_cc_wl='-Wl,'
5910       lt_cv_prog_cc_static='-non_shared'
5911       # PIC (with -KPIC) is the default.
5912       ;;
5913
5914     cygwin* | mingw* | pw32* | os2*)
5915       # This hack is so that the source file can tell whether it is being
5916       # built for inclusion in a dll (and should export symbols for example).
5917       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5918       ;;
5919
5920     newsos6)
5921       lt_cv_prog_cc_pic='-KPIC'
5922       lt_cv_prog_cc_static='-Bstatic'
5923       ;;
5924
5925     osf3* | osf4* | osf5*)
5926       # All OSF/1 code is PIC.
5927       lt_cv_prog_cc_wl='-Wl,'
5928       lt_cv_prog_cc_static='-non_shared'
5929       ;;
5930
5931     sco3.2v5*)
5932       lt_cv_prog_cc_pic='-Kpic'
5933       lt_cv_prog_cc_static='-dn'
5934       lt_cv_prog_cc_shlib='-belf'
5935       ;;
5936
5937     solaris*)
5938       lt_cv_prog_cc_pic='-KPIC'
5939       lt_cv_prog_cc_static='-Bstatic'
5940       lt_cv_prog_cc_wl='-Wl,'
5941       ;;
5942
5943     sunos4*)
5944       lt_cv_prog_cc_pic='-PIC'
5945       lt_cv_prog_cc_static='-Bstatic'
5946       lt_cv_prog_cc_wl='-Qoption ld '
5947       ;;
5948
5949     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5950       lt_cv_prog_cc_pic='-KPIC'
5951       lt_cv_prog_cc_static='-Bstatic'
5952       lt_cv_prog_cc_wl='-Wl,'
5953       ;;
5954
5955     uts4*)
5956       lt_cv_prog_cc_pic='-pic'
5957       lt_cv_prog_cc_static='-Bstatic'
5958       ;;
5959
5960     sysv4*MP*)
5961       if test -d /usr/nec ;then
5962         lt_cv_prog_cc_pic='-Kconform_pic'
5963         lt_cv_prog_cc_static='-Bstatic'
5964       fi
5965       ;;
5966
5967     *)
5968       lt_cv_prog_cc_can_build_shared=no
5969       ;;
5970     esac
5971   fi
5972
5973 fi
5974
5975 if test -z "$lt_cv_prog_cc_pic"; then
5976   echo "$as_me:$LINENO: result: none" >&5
5977 echo "${ECHO_T}none" >&6
5978 else
5979   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5980 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5981
5982   # Check to make sure the pic_flag actually works.
5983   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5984 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5985   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988       save_CFLAGS="$CFLAGS"
5989     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5990     cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 #include "confdefs.h"
5993
5994 int
5995 main ()
5996 {
5997
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 rm -f conftest.$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004   (eval $ac_compile) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } &&
6008          { ac_try='test -s conftest.$ac_objext'
6009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010   (eval $ac_try) 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }; }; then
6014         case $host_os in
6015       hpux9* | hpux10* | hpux11*)
6016         # On HP-UX, both CC and GCC only warn that PIC is supported... then
6017         # they create non-PIC objects.  So, if there were any warnings, we
6018         # assume that PIC is not supported.
6019         if test -s conftest.err; then
6020           lt_cv_prog_cc_pic_works=no
6021         else
6022           lt_cv_prog_cc_pic_works=yes
6023         fi
6024         ;;
6025       *)
6026         lt_cv_prog_cc_pic_works=yes
6027         ;;
6028       esac
6029
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6033       lt_cv_prog_cc_pic_works=no
6034
6035 fi
6036 rm -f conftest.$ac_objext conftest.$ac_ext
6037     CFLAGS="$save_CFLAGS"
6038
6039 fi
6040
6041
6042   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
6043     lt_cv_prog_cc_pic=
6044     lt_cv_prog_cc_can_build_shared=no
6045   else
6046     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
6047   fi
6048
6049   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
6050 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
6051 fi
6052
6053 # Check for any special shared library compilation flags.
6054 if test -n "$lt_cv_prog_cc_shlib"; then
6055   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
6056 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
6057   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
6058   else
6059    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6060 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6061     lt_cv_prog_cc_can_build_shared=no
6062   fi
6063 fi
6064
6065 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
6066 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
6067 if test "${lt_cv_prog_cc_static_works+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070     lt_cv_prog_cc_static_works=no
6071   save_LDFLAGS="$LDFLAGS"
6072   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
6073   cat >conftest.$ac_ext <<_ACEOF
6074 #line $LINENO "configure"
6075 #include "confdefs.h"
6076
6077 int
6078 main ()
6079 {
6080
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087   (eval $ac_link) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   lt_cv_prog_cc_static_works=yes
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6101 fi
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6103   LDFLAGS="$save_LDFLAGS"
6104
6105 fi
6106
6107
6108 # Belt *and* braces to stop my trousers falling down:
6109 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
6110 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
6111 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
6112
6113 pic_flag="$lt_cv_prog_cc_pic"
6114 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
6115 wl="$lt_cv_prog_cc_wl"
6116 link_static_flag="$lt_cv_prog_cc_static"
6117 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
6118 can_build_shared="$lt_cv_prog_cc_can_build_shared"
6119
6120
6121 # Check to see if options -o and -c are simultaneously supported by compiler
6122 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6123 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6124 if test "${lt_cv_compiler_c_o+set}" = set; then
6125   echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127
6128 $rm -r conftest 2>/dev/null
6129 mkdir conftest
6130 cd conftest
6131 echo "int some_variable = 0;" > conftest.$ac_ext
6132 mkdir out
6133 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6134 # that will create temporary files in the current directory regardless of
6135 # the output directory.  Thus, making CWD read-only will cause this test
6136 # to fail, enabling locking or at least warning the user not to do parallel
6137 # builds.
6138 chmod -w .
6139 save_CFLAGS="$CFLAGS"
6140 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6141 compiler_c_o=no
6142 if { (eval echo configure:6142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6143   # The compiler can only warn and ignore the option if not recognized
6144   # So say no if there are warnings
6145   if test -s out/conftest.err; then
6146     lt_cv_compiler_c_o=no
6147   else
6148     lt_cv_compiler_c_o=yes
6149   fi
6150 else
6151   # Append any errors to the config.log.
6152   cat out/conftest.err 1>&5
6153   lt_cv_compiler_c_o=no
6154 fi
6155 CFLAGS="$save_CFLAGS"
6156 chmod u+w .
6157 $rm conftest* out/*
6158 rmdir out
6159 cd ..
6160 rmdir conftest
6161 $rm -r conftest 2>/dev/null
6162
6163 fi
6164
6165 compiler_c_o=$lt_cv_compiler_c_o
6166 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
6167 echo "${ECHO_T}$compiler_c_o" >&6
6168
6169 if test x"$compiler_c_o" = x"yes"; then
6170   # Check to see if we can write to a .lo
6171   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
6172 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
6173   if test "${lt_cv_compiler_o_lo+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176
6177   lt_cv_compiler_o_lo=no
6178   save_CFLAGS="$CFLAGS"
6179   CFLAGS="$CFLAGS -c -o conftest.lo"
6180   save_objext="$ac_objext"
6181   ac_objext=lo
6182   cat >conftest.$ac_ext <<_ACEOF
6183 #line $LINENO "configure"
6184 #include "confdefs.h"
6185
6186 int
6187 main ()
6188 {
6189 int some_variable = 0;
6190   ;
6191   return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196   (eval $ac_compile) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -s conftest.$ac_objext'
6201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }; }; then
6206       # The compiler can only warn and ignore the option if not recognized
6207     # So say no if there are warnings
6208     if test -s conftest.err; then
6209       lt_cv_compiler_o_lo=no
6210     else
6211       lt_cv_compiler_o_lo=yes
6212     fi
6213
6214 else
6215   echo "$as_me: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6217 fi
6218 rm -f conftest.$ac_objext conftest.$ac_ext
6219   ac_objext="$save_objext"
6220   CFLAGS="$save_CFLAGS"
6221
6222 fi
6223
6224   compiler_o_lo=$lt_cv_compiler_o_lo
6225   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
6226 echo "${ECHO_T}$compiler_o_lo" >&6
6227 else
6228   compiler_o_lo=no
6229 fi
6230
6231 # Check to see if we can do hard links to lock some files if needed
6232 hard_links="nottested"
6233 if test "$compiler_c_o" = no && test "$need_locks" != no; then
6234   # do not overwrite the value of need_locks provided by the user
6235   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6236 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6237   hard_links=yes
6238   $rm conftest*
6239   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6240   touch conftest.a
6241   ln conftest.a conftest.b 2>&5 || hard_links=no
6242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6243   echo "$as_me:$LINENO: result: $hard_links" >&5
6244 echo "${ECHO_T}$hard_links" >&6
6245   if test "$hard_links" = no; then
6246     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6247 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6248     need_locks=warn
6249   fi
6250 else
6251   need_locks=no
6252 fi
6253
6254 if test "$GCC" = yes; then
6255   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
6256   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6257 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6258   echo "int some_variable = 0;" > conftest.$ac_ext
6259   save_CFLAGS="$CFLAGS"
6260   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
6261   compiler_rtti_exceptions=no
6262   cat >conftest.$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6264 #include "confdefs.h"
6265
6266 int
6267 main ()
6268 {
6269 int some_variable = 0;
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276   (eval $ac_compile) 2>&5
6277   ac_status=$?
6278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279   (exit $ac_status); } &&
6280          { ac_try='test -s conftest.$ac_objext'
6281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282   (eval $ac_try) 2>&5
6283   ac_status=$?
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); }; }; then
6286       # The compiler can only warn and ignore the option if not recognized
6287     # So say no if there are warnings
6288     if test -s conftest.err; then
6289       compiler_rtti_exceptions=no
6290     else
6291       compiler_rtti_exceptions=yes
6292     fi
6293
6294 else
6295   echo "$as_me: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6297 fi
6298 rm -f conftest.$ac_objext conftest.$ac_ext
6299   CFLAGS="$save_CFLAGS"
6300   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6301 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6302
6303   if test "$compiler_rtti_exceptions" = "yes"; then
6304     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6305   else
6306     no_builtin_flag=' -fno-builtin'
6307   fi
6308 fi
6309
6310 # See if the linker supports building shared libraries.
6311 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6312 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6313
6314 allow_undefined_flag=
6315 no_undefined_flag=
6316 need_lib_prefix=unknown
6317 need_version=unknown
6318 # when you set need_version to no, make sure it does not cause -set_version
6319 # flags to be left without arguments
6320 archive_cmds=
6321 archive_expsym_cmds=
6322 old_archive_from_new_cmds=
6323 old_archive_from_expsyms_cmds=
6324 export_dynamic_flag_spec=
6325 whole_archive_flag_spec=
6326 thread_safe_flag_spec=
6327 hardcode_into_libs=no
6328 hardcode_libdir_flag_spec=
6329 hardcode_libdir_separator=
6330 hardcode_direct=no
6331 hardcode_minus_L=no
6332 hardcode_shlibpath_var=unsupported
6333 runpath_var=
6334 link_all_deplibs=unknown
6335 always_export_symbols=no
6336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6337 # include_expsyms should be a list of space-separated symbols to be *always*
6338 # included in the symbol list
6339 include_expsyms=
6340 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6341 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6342 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6343 # as well as any symbol that contains `d'.
6344 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6346 # platforms (ab)use it in PIC code, but their linkers get confused if
6347 # the symbol is explicitly referenced.  Since portable code cannot
6348 # rely on this symbol name, it's probably fine to never include it in
6349 # preloaded symbol tables.
6350 extract_expsyms_cmds=
6351
6352 case $host_os in
6353 cygwin* | mingw* | pw32*)
6354   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6355   # When not using gcc, we currently assume that we are using
6356   # Microsoft Visual C++.
6357   if test "$GCC" != yes; then
6358     with_gnu_ld=no
6359   fi
6360   ;;
6361 openbsd*)
6362   with_gnu_ld=no
6363   ;;
6364 esac
6365
6366 ld_shlibs=yes
6367 if test "$with_gnu_ld" = yes; then
6368   # If archive_cmds runs LD, not CC, wlarc should be empty
6369   wlarc='${wl}'
6370
6371   # See if GNU ld supports shared libraries.
6372   case $host_os in
6373   aix3* | aix4* | aix5*)
6374     # On AIX, the GNU linker is very broken
6375     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6376     ld_shlibs=no
6377     cat <<EOF 1>&2
6378
6379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6380 *** to be unable to reliably create shared libraries on AIX.
6381 *** Therefore, libtool is disabling shared libraries support.  If you
6382 *** really care for shared libraries, you may want to modify your PATH
6383 *** so that a non-GNU linker is found, and then restart.
6384
6385 EOF
6386     ;;
6387
6388   amigaos*)
6389     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)'
6390     hardcode_libdir_flag_spec='-L$libdir'
6391     hardcode_minus_L=yes
6392
6393     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6394     # that the semantics of dynamic libraries on AmigaOS, at least up
6395     # to version 4, is to share data among multiple programs linked
6396     # with the same dynamic library.  Since this doesn't match the
6397     # behavior of shared libraries on other platforms, we can use
6398     # them.
6399     ld_shlibs=no
6400     ;;
6401
6402   beos*)
6403     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6404       allow_undefined_flag=unsupported
6405       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6406       # support --undefined.  This deserves some investigation.  FIXME
6407       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6408     else
6409       ld_shlibs=no
6410     fi
6411     ;;
6412
6413   cygwin* | mingw* | pw32*)
6414     # hardcode_libdir_flag_spec is actually meaningless, as there is
6415     # no search path for DLLs.
6416     hardcode_libdir_flag_spec='-L$libdir'
6417     allow_undefined_flag=unsupported
6418     always_export_symbols=yes
6419
6420     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6421       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6422       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6423       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6424       else $CC -o impgen impgen.c ; fi)~
6425       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6426
6427     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6428
6429     # cygwin and mingw dlls have different entry points and sets of symbols
6430     # to exclude.
6431     # FIXME: what about values for MSVC?
6432     dll_entry=__cygwin_dll_entry@12
6433     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6434     case $host_os in
6435     mingw*)
6436       # mingw values
6437       dll_entry=_DllMainCRTStartup@12
6438       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6439       ;;
6440     esac
6441
6442     # mingw and cygwin differ, and it's simplest to just exclude the union
6443     # of the two symbol sets.
6444     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6445
6446     # recent cygwin and mingw systems supply a stub DllMain which the user
6447     # can override, but on older systems we have to supply one (in ltdll.c)
6448     if test "x$lt_cv_need_dllmain" = "xyes"; then
6449       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6450       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~
6451         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6452     else
6453       ltdll_obj=
6454       ltdll_cmds=
6455     fi
6456
6457     # Extract the symbol export list from an `--export-all' def file,
6458     # then regenerate the def file from the symbol export list, so that
6459     # the compiled dll only exports the symbol export list.
6460     # Be careful not to strip the DATA tag left be newer dlltools.
6461     export_symbols_cmds="$ltdll_cmds"'
6462       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6463       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6464
6465     # If the export-symbols file already is a .def file (1st line
6466     # is EXPORTS), use it as is.
6467     # If DATA tags from a recent dlltool are present, honour them!
6468     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6469         cp $export_symbols $output_objdir/$soname-def;
6470       else
6471         echo EXPORTS > $output_objdir/$soname-def;
6472         _lt_hint=1;
6473         cat $export_symbols | while read symbol; do
6474          set dummy \$symbol;
6475          case \$# in
6476            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6477            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6478            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6479          esac;
6480          _lt_hint=`expr 1 + \$_lt_hint`;
6481         done;
6482       fi~
6483       '"$ltdll_cmds"'
6484       $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~
6485       $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~
6486       $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~
6487       $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~
6488       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6489     ;;
6490
6491   netbsd*)
6492     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6493       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6494       wlarc=
6495     else
6496       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6497       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6498     fi
6499     ;;
6500
6501   solaris* | sysv5*)
6502     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6503       ld_shlibs=no
6504       cat <<EOF 1>&2
6505
6506 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6507 *** create shared libraries on Solaris systems.  Therefore, libtool
6508 *** is disabling shared libraries support.  We urge you to upgrade GNU
6509 *** binutils to release 2.9.1 or newer.  Another option is to modify
6510 *** your PATH or compiler configuration so that the native linker is
6511 *** used, and then restart.
6512
6513 EOF
6514     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6515       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6516       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6517     else
6518       ld_shlibs=no
6519     fi
6520     ;;
6521
6522   sunos4*)
6523     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6524     wlarc=
6525     hardcode_direct=yes
6526     hardcode_shlibpath_var=no
6527     ;;
6528
6529   *)
6530     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6531       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6532       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6533     else
6534       ld_shlibs=no
6535     fi
6536     ;;
6537   esac
6538
6539   if test "$ld_shlibs" = yes; then
6540     runpath_var=LD_RUN_PATH
6541     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6542     export_dynamic_flag_spec='${wl}--export-dynamic'
6543     case $host_os in
6544     cygwin* | mingw* | pw32*)
6545       # dlltool doesn't understand --whole-archive et. al.
6546       whole_archive_flag_spec=
6547       ;;
6548     *)
6549       # ancient GNU ld didn't support --whole-archive et. al.
6550       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6551         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6552       else
6553         whole_archive_flag_spec=
6554       fi
6555       ;;
6556     esac
6557   fi
6558 else
6559   # PORTME fill in a description of your system's linker (not GNU ld)
6560   case $host_os in
6561   aix3*)
6562     allow_undefined_flag=unsupported
6563     always_export_symbols=yes
6564     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'
6565     # Note: this linker hardcodes the directories in LIBPATH if there
6566     # are no directories specified by -L.
6567     hardcode_minus_L=yes
6568     if test "$GCC" = yes && test -z "$link_static_flag"; then
6569       # Neither direct hardcoding nor static linking is supported with a
6570       # broken collect2.
6571       hardcode_direct=unsupported
6572     fi
6573     ;;
6574
6575   aix4* | aix5*)
6576     if test "$host_cpu" = ia64; then
6577       # On IA64, the linker does run time linking by default, so we don't
6578       # have to do anything special.
6579       aix_use_runtimelinking=no
6580       exp_sym_flag='-Bexport'
6581       no_entry_flag=""
6582     else
6583       aix_use_runtimelinking=no
6584
6585       # Test if we are trying to use run time linking or normal
6586       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6587       # need to do runtime linking.
6588       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6589         for ld_flag in $LDFLAGS; do
6590           case $ld_flag in
6591           *-brtl*)
6592             aix_use_runtimelinking=yes
6593             break
6594           ;;
6595           esac
6596         done
6597       esac
6598
6599       exp_sym_flag='-bexport'
6600       no_entry_flag='-bnoentry'
6601     fi
6602
6603     # When large executables or shared objects are built, AIX ld can
6604     # have problems creating the table of contents.  If linking a library
6605     # or program results in "error TOC overflow" add -mminimal-toc to
6606     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6607     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6608
6609     hardcode_direct=yes
6610     archive_cmds=''
6611     hardcode_libdir_separator=':'
6612     if test "$GCC" = yes; then
6613       case $host_os in aix4.[012]|aix4.[012].*)
6614         collect2name=`${CC} -print-prog-name=collect2`
6615         if test -f "$collect2name" && \
6616           strings "$collect2name" | grep resolve_lib_name >/dev/null
6617         then
6618           # We have reworked collect2
6619           hardcode_direct=yes
6620         else
6621           # We have old collect2
6622           hardcode_direct=unsupported
6623           # It fails to find uninstalled libraries when the uninstalled
6624           # path is not listed in the libpath.  Setting hardcode_minus_L
6625           # to unsupported forces relinking
6626           hardcode_minus_L=yes
6627           hardcode_libdir_flag_spec='-L$libdir'
6628           hardcode_libdir_separator=
6629         fi
6630       esac
6631
6632       shared_flag='-shared'
6633     else
6634       # not using gcc
6635       if test "$host_cpu" = ia64; then
6636         shared_flag='${wl}-G'
6637       else
6638         if test "$aix_use_runtimelinking" = yes; then
6639           shared_flag='${wl}-G'
6640         else
6641           shared_flag='${wl}-bM:SRE'
6642         fi
6643       fi
6644     fi
6645
6646     # It seems that -bexpall can do strange things, so it is better to
6647     # generate a list of symbols to export.
6648     always_export_symbols=yes
6649     if test "$aix_use_runtimelinking" = yes; then
6650       # Warning - without using the other runtime loading flags (-brtl),
6651       # -berok will link without error, but may produce a broken library.
6652       allow_undefined_flag='-berok'
6653       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6654       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"
6655     else
6656       if test "$host_cpu" = ia64; then
6657         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6658         allow_undefined_flag="-z nodefs"
6659         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"
6660       else
6661         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6662         # Warning - without using the other run time loading flags,
6663         # -berok will link without error, but may produce a broken library.
6664         allow_undefined_flag='${wl}-berok'
6665         # This is a bit strange, but is similar to how AIX traditionally builds
6666         # it's shared libraries.
6667         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'
6668       fi
6669     fi
6670     ;;
6671
6672   amigaos*)
6673     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)'
6674     hardcode_libdir_flag_spec='-L$libdir'
6675     hardcode_minus_L=yes
6676     # see comment about different semantics on the GNU ld section
6677     ld_shlibs=no
6678     ;;
6679
6680   cygwin* | mingw* | pw32*)
6681     # When not using gcc, we currently assume that we are using
6682     # Microsoft Visual C++.
6683     # hardcode_libdir_flag_spec is actually meaningless, as there is
6684     # no search path for DLLs.
6685     hardcode_libdir_flag_spec=' '
6686     allow_undefined_flag=unsupported
6687     # Tell ltmain to make .lib files, not .a files.
6688     libext=lib
6689     # FIXME: Setting linknames here is a bad hack.
6690     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6691     # The linker will automatically build a .lib file if we build a DLL.
6692     old_archive_from_new_cmds='true'
6693     # FIXME: Should let the user specify the lib program.
6694     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6695     fix_srcfile_path='`cygpath -w "$srcfile"`'
6696     ;;
6697
6698   darwin* | rhapsody*)
6699     case "$host_os" in
6700     rhapsody* | darwin1.[012])
6701       allow_undefined_flag='-undefined suppress'
6702       ;;
6703     *) # Darwin 1.3 on
6704       allow_undefined_flag='-flat_namespace -undefined suppress'
6705       ;;
6706     esac
6707     # FIXME: Relying on posixy $() will cause problems for
6708     #        cross-compilation, but unfortunately the echo tests do not
6709     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6710     #        `"' quotes if we put them in here... so don't!
6711     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6712     # We need to add '_' to the symbols in $export_symbols first
6713     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6714     hardcode_direct=yes
6715     hardcode_shlibpath_var=no
6716     whole_archive_flag_spec='-all_load $convenience'
6717     ;;
6718
6719   freebsd1*)
6720     ld_shlibs=no
6721     ;;
6722
6723   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6724   # support.  Future versions do this automatically, but an explicit c++rt0.o
6725   # does not break anything, and helps significantly (at the cost of a little
6726   # extra space).
6727   freebsd2.2*)
6728     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6729     hardcode_libdir_flag_spec='-R$libdir'
6730     hardcode_direct=yes
6731     hardcode_shlibpath_var=no
6732     ;;
6733
6734   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6735   freebsd2*)
6736     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6737     hardcode_direct=yes
6738     hardcode_minus_L=yes
6739     hardcode_shlibpath_var=no
6740     ;;
6741
6742   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6743   freebsd*)
6744     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6745     hardcode_libdir_flag_spec='-R$libdir'
6746     hardcode_direct=yes
6747     hardcode_shlibpath_var=no
6748     ;;
6749
6750   hpux9* | hpux10* | hpux11*)
6751     case $host_os in
6752     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' ;;
6753     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6754     esac
6755     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6756     hardcode_libdir_separator=:
6757     hardcode_direct=yes
6758     hardcode_minus_L=yes # Not in the search PATH, but as the default
6759                          # location of the library.
6760     export_dynamic_flag_spec='${wl}-E'
6761     ;;
6762
6763   irix5* | irix6* | nonstopux*)
6764     if test "$GCC" = yes; then
6765       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'
6766       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6767     else
6768       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'
6769       hardcode_libdir_flag_spec='-rpath $libdir'
6770     fi
6771     hardcode_libdir_separator=:
6772     link_all_deplibs=yes
6773     ;;
6774
6775   netbsd*)
6776     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6777       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6778     else
6779       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6780     fi
6781     hardcode_libdir_flag_spec='-R$libdir'
6782     hardcode_direct=yes
6783     hardcode_shlibpath_var=no
6784     ;;
6785
6786   newsos6)
6787     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6788     hardcode_direct=yes
6789     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6790     hardcode_libdir_separator=:
6791     hardcode_shlibpath_var=no
6792     ;;
6793
6794   openbsd*)
6795     hardcode_direct=yes
6796     hardcode_shlibpath_var=no
6797     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6798       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6799       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6800       export_dynamic_flag_spec='${wl}-E'
6801     else
6802       case "$host_os" in
6803       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6804         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6805         hardcode_libdir_flag_spec='-R$libdir'
6806         ;;
6807       *)
6808         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6809         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6810         ;;
6811       esac
6812     fi
6813     ;;
6814
6815   os2*)
6816     hardcode_libdir_flag_spec='-L$libdir'
6817     hardcode_minus_L=yes
6818     allow_undefined_flag=unsupported
6819     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'
6820     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6821     ;;
6822
6823   osf3*)
6824     if test "$GCC" = yes; then
6825       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6826       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'
6827     else
6828       allow_undefined_flag=' -expect_unresolved \*'
6829       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'
6830     fi
6831     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6832     hardcode_libdir_separator=:
6833     ;;
6834
6835   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6836     if test "$GCC" = yes; then
6837       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6838       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'
6839       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6840     else
6841       allow_undefined_flag=' -expect_unresolved \*'
6842       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'
6843       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6844       $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'
6845
6846       #Both c and cxx compiler support -rpath directly
6847       hardcode_libdir_flag_spec='-rpath $libdir'
6848     fi
6849     hardcode_libdir_separator=:
6850     ;;
6851
6852   sco3.2v5*)
6853     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6854     hardcode_shlibpath_var=no
6855     runpath_var=LD_RUN_PATH
6856     hardcode_runpath_var=yes
6857     export_dynamic_flag_spec='${wl}-Bexport'
6858     ;;
6859
6860   solaris*)
6861     # gcc --version < 3.0 without binutils cannot create self contained
6862     # shared libraries reliably, requiring libgcc.a to resolve some of
6863     # the object symbols generated in some cases.  Libraries that use
6864     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6865     # a copy of libgcc.a into every shared library to guarantee resolving
6866     # such symbols causes other problems:  According to Tim Van Holder
6867     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6868     # (to the application) exception stack for one thing.
6869     no_undefined_flag=' -z defs'
6870     if test "$GCC" = yes; then
6871       case `$CC --version 2>/dev/null` in
6872       [12].*)
6873         cat <<EOF 1>&2
6874
6875 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6876 *** create self contained shared libraries on Solaris systems, without
6877 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6878 *** -no-undefined support, which will at least allow you to build shared
6879 *** libraries.  However, you may find that when you link such libraries
6880 *** into an application without using GCC, you have to manually add
6881 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6882 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6883 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6884
6885 EOF
6886         no_undefined_flag=
6887         ;;
6888       esac
6889     fi
6890     # $CC -shared without GNU ld will not create a library from C++
6891     # object files and a static libstdc++, better avoid it by now
6892     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6893     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6894                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6895     hardcode_libdir_flag_spec='-R$libdir'
6896     hardcode_shlibpath_var=no
6897     case $host_os in
6898     solaris2.[0-5] | solaris2.[0-5].*) ;;
6899     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6900       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6901     esac
6902     link_all_deplibs=yes
6903     ;;
6904
6905   sunos4*)
6906     if test "x$host_vendor" = xsequent; then
6907       # Use $CC to link under sequent, because it throws in some extra .o
6908       # files that make .init and .fini sections work.
6909       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6910     else
6911       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6912     fi
6913     hardcode_libdir_flag_spec='-L$libdir'
6914     hardcode_direct=yes
6915     hardcode_minus_L=yes
6916     hardcode_shlibpath_var=no
6917     ;;
6918
6919   sysv4)
6920     case $host_vendor in
6921       sni)
6922         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6923         hardcode_direct=yes # is this really true???
6924         ;;
6925       siemens)
6926         ## LD is ld it makes a PLAMLIB
6927         ## CC just makes a GrossModule.
6928         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6929         reload_cmds='$CC -r -o $output$reload_objs'
6930         hardcode_direct=no
6931         ;;
6932       motorola)
6933         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6934         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6935         ;;
6936     esac
6937     runpath_var='LD_RUN_PATH'
6938     hardcode_shlibpath_var=no
6939     ;;
6940
6941   sysv4.3*)
6942     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6943     hardcode_shlibpath_var=no
6944     export_dynamic_flag_spec='-Bexport'
6945     ;;
6946
6947   sysv5*)
6948     no_undefined_flag=' -z text'
6949     # $CC -shared without GNU ld will not create a library from C++
6950     # object files and a static libstdc++, better avoid it by now
6951     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6952     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6953                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6954     hardcode_libdir_flag_spec=
6955     hardcode_shlibpath_var=no
6956     runpath_var='LD_RUN_PATH'
6957     ;;
6958
6959   uts4*)
6960     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6961     hardcode_libdir_flag_spec='-L$libdir'
6962     hardcode_shlibpath_var=no
6963     ;;
6964
6965   dgux*)
6966     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967     hardcode_libdir_flag_spec='-L$libdir'
6968     hardcode_shlibpath_var=no
6969     ;;
6970
6971   sysv4*MP*)
6972     if test -d /usr/nec; then
6973       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974       hardcode_shlibpath_var=no
6975       runpath_var=LD_RUN_PATH
6976       hardcode_runpath_var=yes
6977       ld_shlibs=yes
6978     fi
6979     ;;
6980
6981   sysv4.2uw2*)
6982     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6983     hardcode_direct=yes
6984     hardcode_minus_L=no
6985     hardcode_shlibpath_var=no
6986     hardcode_runpath_var=yes
6987     runpath_var=LD_RUN_PATH
6988     ;;
6989
6990   sysv5uw7* | unixware7*)
6991     no_undefined_flag='${wl}-z ${wl}text'
6992     if test "$GCC" = yes; then
6993       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6994     else
6995       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6996     fi
6997     runpath_var='LD_RUN_PATH'
6998     hardcode_shlibpath_var=no
6999     ;;
7000
7001   *)
7002     ld_shlibs=no
7003     ;;
7004   esac
7005 fi
7006 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7007 echo "${ECHO_T}$ld_shlibs" >&6
7008 test "$ld_shlibs" = no && can_build_shared=no
7009
7010 # Check hardcoding attributes.
7011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7013 hardcode_action=
7014 if test -n "$hardcode_libdir_flag_spec" || \
7015    test -n "$runpath_var"; then
7016
7017   # We can hardcode non-existant directories.
7018   if test "$hardcode_direct" != no &&
7019      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7020      # have to relink, otherwise we might link with an installed library
7021      # when we should be linking with a yet-to-be-installed one
7022      ## test "$hardcode_shlibpath_var" != no &&
7023      test "$hardcode_minus_L" != no; then
7024     # Linking always hardcodes the temporary library directory.
7025     hardcode_action=relink
7026   else
7027     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7028     hardcode_action=immediate
7029   fi
7030 else
7031   # We cannot hardcode anything, or else we can only hardcode existing
7032   # directories.
7033   hardcode_action=unsupported
7034 fi
7035 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7036 echo "${ECHO_T}$hardcode_action" >&6
7037
7038 striplib=
7039 old_striplib=
7040 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7041 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7042 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7043   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7044   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7045   echo "$as_me:$LINENO: result: yes" >&5
7046 echo "${ECHO_T}yes" >&6
7047 else
7048   echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6
7050 fi
7051
7052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7053 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7054
7055 # PORTME Fill in your ld.so characteristics
7056 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7057 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7058 library_names_spec=
7059 libname_spec='lib$name'
7060 soname_spec=
7061 postinstall_cmds=
7062 postuninstall_cmds=
7063 finish_cmds=
7064 finish_eval=
7065 shlibpath_var=
7066 shlibpath_overrides_runpath=unknown
7067 version_type=none
7068 dynamic_linker="$host_os ld.so"
7069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7071
7072 case $host_os in
7073 aix3*)
7074   version_type=linux
7075   library_names_spec='${libname}${release}.so$versuffix $libname.a'
7076   shlibpath_var=LIBPATH
7077
7078   # AIX has no versioning support, so we append a major version to the name.
7079   soname_spec='${libname}${release}.so$major'
7080   ;;
7081
7082 aix4* | aix5*)
7083   version_type=linux
7084   need_lib_prefix=no
7085   need_version=no
7086   hardcode_into_libs=yes
7087   if test "$host_cpu" = ia64; then
7088     # AIX 5 supports IA64
7089     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
7090     shlibpath_var=LD_LIBRARY_PATH
7091   else
7092     # With GCC up to 2.95.x, collect2 would create an import file
7093     # for dependence libraries.  The import file would start with
7094     # the line `#! .'.  This would cause the generated library to
7095     # depend on `.', always an invalid library.  This was fixed in
7096     # development snapshots of GCC prior to 3.0.
7097     case $host_os in
7098       aix4 | aix4.[01] | aix4.[01].*)
7099         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7100              echo ' yes '
7101              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7102           :
7103         else
7104           can_build_shared=no
7105         fi
7106         ;;
7107     esac
7108     # AIX (on Power*) has no versioning support, so currently we can
7109     # not hardcode correct soname into executable. Probably we can
7110     # add versioning support to collect2, so additional links can
7111     # be useful in future.
7112     if test "$aix_use_runtimelinking" = yes; then
7113       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7114       # instead of lib<name>.a to let people know that these are not
7115       # typical AIX shared libraries.
7116       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7117     else
7118       # We preserve .a as extension for shared libraries through AIX4.2
7119       # and later when we are not doing run time linking.
7120       library_names_spec='${libname}${release}.a $libname.a'
7121       soname_spec='${libname}${release}.so$major'
7122     fi
7123     shlibpath_var=LIBPATH
7124   fi
7125   hardcode_into_libs=yes
7126   ;;
7127
7128 amigaos*)
7129   library_names_spec='$libname.ixlibrary $libname.a'
7130   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7131   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'
7132   ;;
7133
7134 beos*)
7135   library_names_spec='${libname}.so'
7136   dynamic_linker="$host_os ld.so"
7137   shlibpath_var=LIBRARY_PATH
7138   ;;
7139
7140 bsdi4*)
7141   version_type=linux
7142   need_version=no
7143   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7144   soname_spec='${libname}${release}.so$major'
7145   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7146   shlibpath_var=LD_LIBRARY_PATH
7147   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7148   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7149   export_dynamic_flag_spec=-rdynamic
7150   # the default ld.so.conf also contains /usr/contrib/lib and
7151   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7152   # libtool to hard-code these into programs
7153   ;;
7154
7155 cygwin* | mingw* | pw32*)
7156   version_type=windows
7157   need_version=no
7158   need_lib_prefix=no
7159   case $GCC,$host_os in
7160   yes,cygwin*)
7161     library_names_spec='$libname.dll.a'
7162     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7163     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
7164       dldir=$destdir/`dirname \$dlpath`~
7165       test -d \$dldir || mkdir -p \$dldir~
7166       $install_prog .libs/$dlname \$dldir/$dlname'
7167     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
7168       dlpath=$dir/\$dldll~
7169        $rm \$dlpath'
7170     ;;
7171   yes,mingw*)
7172     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
7173     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
7174     ;;
7175   yes,pw32*)
7176     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
7177     ;;
7178   *)
7179     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
7180     ;;
7181   esac
7182   dynamic_linker='Win32 ld.exe'
7183   # FIXME: first we should search . and the directory the executable is in
7184   shlibpath_var=PATH
7185   ;;
7186
7187 darwin* | rhapsody*)
7188   dynamic_linker="$host_os dyld"
7189   version_type=darwin
7190   need_lib_prefix=no
7191   need_version=no
7192   # FIXME: Relying on posixy $() will cause problems for
7193   #        cross-compilation, but unfortunately the echo tests do not
7194   #        yet detect zsh echo's removal of \ escapes.
7195   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)'
7196   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
7197   shlibpath_overrides_runpath=yes
7198   shlibpath_var=DYLD_LIBRARY_PATH
7199   ;;
7200
7201 freebsd1*)
7202   dynamic_linker=no
7203   ;;
7204
7205 freebsd*)
7206   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7207   version_type=freebsd-$objformat
7208   case $version_type in
7209     freebsd-elf*)
7210       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7211       need_version=no
7212       need_lib_prefix=no
7213       ;;
7214     freebsd-*)
7215       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
7216       need_version=yes
7217       ;;
7218   esac
7219   shlibpath_var=LD_LIBRARY_PATH
7220   case $host_os in
7221   freebsd2*)
7222     shlibpath_overrides_runpath=yes
7223     ;;
7224   *)
7225     shlibpath_overrides_runpath=no
7226     hardcode_into_libs=yes
7227     ;;
7228   esac
7229   ;;
7230
7231 gnu*)
7232   version_type=linux
7233   need_lib_prefix=no
7234   need_version=no
7235   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
7236   soname_spec='${libname}${release}.so$major'
7237   shlibpath_var=LD_LIBRARY_PATH
7238   hardcode_into_libs=yes
7239   ;;
7240
7241 hpux9* | hpux10* | hpux11*)
7242   # Give a soname corresponding to the major version so that dld.sl refuses to
7243   # link against other versions.
7244   dynamic_linker="$host_os dld.sl"
7245   version_type=sunos
7246   need_lib_prefix=no
7247   need_version=no
7248   shlibpath_var=SHLIB_PATH
7249   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7250   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
7251   soname_spec='${libname}${release}.sl$major'
7252   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7253   postinstall_cmds='chmod 555 $lib'
7254   ;;
7255
7256 irix5* | irix6* | nonstopux*)
7257   case $host_os in
7258     nonstopux*) version_type=nonstopux ;;
7259     *)          version_type=irix ;;
7260   esac
7261   need_lib_prefix=no
7262   need_version=no
7263   soname_spec='${libname}${release}.so$major'
7264   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
7265   case $host_os in
7266   irix5* | nonstopux*)
7267     libsuff= shlibsuff=
7268     ;;
7269   *)
7270     case $LD in # libtool.m4 will add one of these switches to LD
7271     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
7272     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
7273     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
7274     *) libsuff= shlibsuff= libmagic=never-match;;
7275     esac
7276     ;;
7277   esac
7278   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7279   shlibpath_overrides_runpath=no
7280   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7281   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7282   ;;
7283
7284 # No shared lib support for Linux oldld, aout, or coff.
7285 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
7286   dynamic_linker=no
7287   ;;
7288
7289 # This must be Linux ELF.
7290 linux-gnu*)
7291   version_type=linux
7292   need_lib_prefix=no
7293   need_version=no
7294   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7295   soname_spec='${libname}${release}.so$major'
7296   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7297   shlibpath_var=LD_LIBRARY_PATH
7298   shlibpath_overrides_runpath=no
7299   # This implies no fast_install, which is unacceptable.
7300   # Some rework will be needed to allow for fast_install
7301   # before this can be enabled.
7302   hardcode_into_libs=yes
7303
7304   # We used to test for /lib/ld.so.1 and disable shared libraries on
7305   # powerpc, because MkLinux only supported shared libraries with the
7306   # GNU dynamic linker.  Since this was broken with cross compilers,
7307   # most powerpc-linux boxes support dynamic linking these days and
7308   # people can always --disable-shared, the test was removed, and we
7309   # assume the GNU/Linux dynamic linker is in use.
7310   dynamic_linker='GNU/Linux ld.so'
7311   ;;
7312
7313 netbsd*)
7314   version_type=sunos
7315   need_lib_prefix=no
7316   need_version=no
7317   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7318     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7319     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7320     dynamic_linker='NetBSD (a.out) ld.so'
7321   else
7322     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7323     soname_spec='${libname}${release}.so$major'
7324     dynamic_linker='NetBSD ld.elf_so'
7325   fi
7326   shlibpath_var=LD_LIBRARY_PATH
7327   shlibpath_overrides_runpath=yes
7328   hardcode_into_libs=yes
7329   ;;
7330
7331 newsos6)
7332   version_type=linux
7333   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7334   shlibpath_var=LD_LIBRARY_PATH
7335   shlibpath_overrides_runpath=yes
7336   ;;
7337
7338 openbsd*)
7339   version_type=sunos
7340   need_lib_prefix=no
7341   need_version=no
7342   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7343     case "$host_os" in
7344     openbsd2.[89] | openbsd2.[89].*)
7345       shlibpath_overrides_runpath=no
7346       ;;
7347     *)
7348       shlibpath_overrides_runpath=yes
7349       ;;
7350     esac
7351   else
7352     shlibpath_overrides_runpath=yes
7353   fi
7354   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7355   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7356   shlibpath_var=LD_LIBRARY_PATH
7357   ;;
7358
7359 os2*)
7360   libname_spec='$name'
7361   need_lib_prefix=no
7362   library_names_spec='$libname.dll $libname.a'
7363   dynamic_linker='OS/2 ld.exe'
7364   shlibpath_var=LIBPATH
7365   ;;
7366
7367 osf3* | osf4* | osf5*)
7368   version_type=osf
7369   need_version=no
7370   soname_spec='${libname}${release}.so$major'
7371   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7372   shlibpath_var=LD_LIBRARY_PATH
7373   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7374   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7375   hardcode_into_libs=yes
7376   ;;
7377
7378 sco3.2v5*)
7379   version_type=osf
7380   soname_spec='${libname}${release}.so$major'
7381   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7382   shlibpath_var=LD_LIBRARY_PATH
7383   ;;
7384
7385 solaris*)
7386   version_type=linux
7387   need_lib_prefix=no
7388   need_version=no
7389   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7390   soname_spec='${libname}${release}.so$major'
7391   shlibpath_var=LD_LIBRARY_PATH
7392   shlibpath_overrides_runpath=yes
7393   hardcode_into_libs=yes
7394   # ldd complains unless libraries are executable
7395   postinstall_cmds='chmod +x $lib'
7396   ;;
7397
7398 sunos4*)
7399   version_type=sunos
7400   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7401   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7402   shlibpath_var=LD_LIBRARY_PATH
7403   shlibpath_overrides_runpath=yes
7404   if test "$with_gnu_ld" = yes; then
7405     need_lib_prefix=no
7406   fi
7407   need_version=yes
7408   ;;
7409
7410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7411   version_type=linux
7412   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7413   soname_spec='${libname}${release}.so$major'
7414   shlibpath_var=LD_LIBRARY_PATH
7415   case $host_vendor in
7416     sni)
7417       shlibpath_overrides_runpath=no
7418       need_lib_prefix=no
7419       export_dynamic_flag_spec='${wl}-Blargedynsym'
7420       runpath_var=LD_RUN_PATH
7421       ;;
7422     siemens)
7423       need_lib_prefix=no
7424       ;;
7425     motorola)
7426       need_lib_prefix=no
7427       need_version=no
7428       shlibpath_overrides_runpath=no
7429       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7430       ;;
7431   esac
7432   ;;
7433
7434 uts4*)
7435   version_type=linux
7436   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7437   soname_spec='${libname}${release}.so$major'
7438   shlibpath_var=LD_LIBRARY_PATH
7439   ;;
7440
7441 dgux*)
7442   version_type=linux
7443   need_lib_prefix=no
7444   need_version=no
7445   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7446   soname_spec='${libname}${release}.so$major'
7447   shlibpath_var=LD_LIBRARY_PATH
7448   ;;
7449
7450 sysv4*MP*)
7451   if test -d /usr/nec ;then
7452     version_type=linux
7453     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7454     soname_spec='$libname.so.$major'
7455     shlibpath_var=LD_LIBRARY_PATH
7456   fi
7457   ;;
7458
7459 *)
7460   dynamic_linker=no
7461   ;;
7462 esac
7463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7464 echo "${ECHO_T}$dynamic_linker" >&6
7465 test "$dynamic_linker" = no && can_build_shared=no
7466
7467 # Report the final consequences.
7468 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7469 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7470 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7471 echo "${ECHO_T}$can_build_shared" >&6
7472
7473 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7474 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7475 test "$can_build_shared" = "no" && enable_shared=no
7476
7477 # On AIX, shared libraries and static libraries use the same namespace, and
7478 # are all built from PIC.
7479 case "$host_os" in
7480 aix3*)
7481   test "$enable_shared" = yes && enable_static=no
7482   if test -n "$RANLIB"; then
7483     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7484     postinstall_cmds='$RANLIB $lib'
7485   fi
7486   ;;
7487
7488 aix4*)
7489   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7490     test "$enable_shared" = yes && enable_static=no
7491   fi
7492   ;;
7493 esac
7494 echo "$as_me:$LINENO: result: $enable_shared" >&5
7495 echo "${ECHO_T}$enable_shared" >&6
7496
7497 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7498 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7499 # Make sure either enable_shared or enable_static is yes.
7500 test "$enable_shared" = yes || enable_static=yes
7501 echo "$as_me:$LINENO: result: $enable_static" >&5
7502 echo "${ECHO_T}$enable_static" >&6
7503
7504 if test "$hardcode_action" = relink; then
7505   # Fast installation is not supported
7506   enable_fast_install=no
7507 elif test "$shlibpath_overrides_runpath" = yes ||
7508      test "$enable_shared" = no; then
7509   # Fast installation is not necessary
7510   enable_fast_install=needless
7511 fi
7512
7513 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7514 if test "$GCC" = yes; then
7515   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7516 fi
7517
7518 if test "x$enable_dlopen" != xyes; then
7519   enable_dlopen=unknown
7520   enable_dlopen_self=unknown
7521   enable_dlopen_self_static=unknown
7522 else
7523   lt_cv_dlopen=no
7524   lt_cv_dlopen_libs=
7525
7526   case $host_os in
7527   beos*)
7528     lt_cv_dlopen="load_add_on"
7529     lt_cv_dlopen_libs=
7530     lt_cv_dlopen_self=yes
7531     ;;
7532
7533   cygwin* | mingw* | pw32*)
7534     lt_cv_dlopen="LoadLibrary"
7535     lt_cv_dlopen_libs=
7536    ;;
7537
7538   *)
7539     echo "$as_me:$LINENO: checking for shl_load" >&5
7540 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7541 if test "${ac_cv_func_shl_load+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   cat >conftest.$ac_ext <<_ACEOF
7545 #line $LINENO "configure"
7546 #include "confdefs.h"
7547 /* System header to define __stub macros and hopefully few prototypes,
7548     which can conflict with char shl_load (); below.  */
7549 #include <assert.h>
7550 /* Override any gcc2 internal prototype to avoid an error.  */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 /* We use char because int might match the return type of a gcc2
7555    builtin and then its argument prototype would still apply.  */
7556 char shl_load ();
7557 char (*f) ();
7558
7559 int
7560 main ()
7561 {
7562 /* The GNU C library defines this for functions which it implements
7563     to always fail with ENOSYS.  Some functions are actually named
7564     something starting with __ and the normal name is an alias.  */
7565 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7566 choke me
7567 #else
7568 f = shl_load;
7569 #endif
7570
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577   (eval $ac_link) 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } &&
7581          { ac_try='test -s conftest$ac_exeext'
7582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583   (eval $ac_try) 2>&5
7584   ac_status=$?
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); }; }; then
7587   ac_cv_func_shl_load=yes
7588 else
7589   echo "$as_me: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 ac_cv_func_shl_load=no
7592 fi
7593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7594 fi
7595 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7596 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7597 if test $ac_cv_func_shl_load = yes; then
7598   lt_cv_dlopen="shl_load"
7599 else
7600   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7601 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7602 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605   ac_check_lib_save_LIBS=$LIBS
7606 LIBS="-ldld  $LIBS"
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 #include "confdefs.h"
7610
7611 /* Override any gcc2 internal prototype to avoid an error.  */
7612 #ifdef __cplusplus
7613 extern "C"
7614 #endif
7615 /* We use char because int might match the return type of a gcc2
7616    builtin and then its argument prototype would still apply.  */
7617 char shl_load ();
7618 int
7619 main ()
7620 {
7621 shl_load ();
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7628   (eval $ac_link) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -s conftest$ac_exeext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   ac_cv_lib_dld_shl_load=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 ac_cv_lib_dld_shl_load=no
7643 fi
7644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7645 LIBS=$ac_check_lib_save_LIBS
7646 fi
7647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7648 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7649 if test $ac_cv_lib_dld_shl_load = yes; then
7650   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7651 else
7652   echo "$as_me:$LINENO: checking for dlopen" >&5
7653 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7654 if test "${ac_cv_func_dlopen+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   cat >conftest.$ac_ext <<_ACEOF
7658 #line $LINENO "configure"
7659 #include "confdefs.h"
7660 /* System header to define __stub macros and hopefully few prototypes,
7661     which can conflict with char dlopen (); below.  */
7662 #include <assert.h>
7663 /* Override any gcc2 internal prototype to avoid an error.  */
7664 #ifdef __cplusplus
7665 extern "C"
7666 #endif
7667 /* We use char because int might match the return type of a gcc2
7668    builtin and then its argument prototype would still apply.  */
7669 char dlopen ();
7670 char (*f) ();
7671
7672 int
7673 main ()
7674 {
7675 /* The GNU C library defines this for functions which it implements
7676     to always fail with ENOSYS.  Some functions are actually named
7677     something starting with __ and the normal name is an alias.  */
7678 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7679 choke me
7680 #else
7681 f = dlopen;
7682 #endif
7683
7684   ;
7685   return 0;
7686 }
7687 _ACEOF
7688 rm -f conftest.$ac_objext conftest$ac_exeext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690   (eval $ac_link) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); } &&
7694          { ac_try='test -s conftest$ac_exeext'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; }; then
7700   ac_cv_func_dlopen=yes
7701 else
7702   echo "$as_me: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7704 ac_cv_func_dlopen=no
7705 fi
7706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7707 fi
7708 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7709 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7710 if test $ac_cv_func_dlopen = yes; then
7711   lt_cv_dlopen="dlopen"
7712 else
7713   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   ac_check_lib_save_LIBS=$LIBS
7719 LIBS="-ldl  $LIBS"
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line $LINENO "configure"
7722 #include "confdefs.h"
7723
7724 /* Override any gcc2 internal prototype to avoid an error.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 /* We use char because int might match the return type of a gcc2
7729    builtin and then its argument prototype would still apply.  */
7730 char dlopen ();
7731 int
7732 main ()
7733 {
7734 dlopen ();
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 rm -f conftest.$ac_objext conftest$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741   (eval $ac_link) 2>&5
7742   ac_status=$?
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); } &&
7745          { ac_try='test -s conftest$ac_exeext'
7746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747   (eval $ac_try) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; }; then
7751   ac_cv_lib_dl_dlopen=yes
7752 else
7753   echo "$as_me: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7755 ac_cv_lib_dl_dlopen=no
7756 fi
7757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7759 fi
7760 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7761 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7762 if test $ac_cv_lib_dl_dlopen = yes; then
7763   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7764 else
7765   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7766 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7767 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   ac_check_lib_save_LIBS=$LIBS
7771 LIBS="-lsvld  $LIBS"
7772 cat >conftest.$ac_ext <<_ACEOF
7773 #line $LINENO "configure"
7774 #include "confdefs.h"
7775
7776 /* Override any gcc2 internal prototype to avoid an error.  */
7777 #ifdef __cplusplus
7778 extern "C"
7779 #endif
7780 /* We use char because int might match the return type of a gcc2
7781    builtin and then its argument prototype would still apply.  */
7782 char dlopen ();
7783 int
7784 main ()
7785 {
7786 dlopen ();
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext conftest$ac_exeext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793   (eval $ac_link) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } &&
7797          { ac_try='test -s conftest$ac_exeext'
7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   ac_cv_lib_svld_dlopen=yes
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 ac_cv_lib_svld_dlopen=no
7808 fi
7809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7810 LIBS=$ac_check_lib_save_LIBS
7811 fi
7812 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7813 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7814 if test $ac_cv_lib_svld_dlopen = yes; then
7815   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7816 else
7817   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7818 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7819 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   ac_check_lib_save_LIBS=$LIBS
7823 LIBS="-ldld  $LIBS"
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7827
7828 /* Override any gcc2 internal prototype to avoid an error.  */
7829 #ifdef __cplusplus
7830 extern "C"
7831 #endif
7832 /* We use char because int might match the return type of a gcc2
7833    builtin and then its argument prototype would still apply.  */
7834 char dld_link ();
7835 int
7836 main ()
7837 {
7838 dld_link ();
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest.$ac_objext conftest$ac_exeext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7845   (eval $ac_link) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); } &&
7849          { ac_try='test -s conftest$ac_exeext'
7850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851   (eval $ac_try) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; }; then
7855   ac_cv_lib_dld_dld_link=yes
7856 else
7857   echo "$as_me: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7859 ac_cv_lib_dld_dld_link=no
7860 fi
7861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7862 LIBS=$ac_check_lib_save_LIBS
7863 fi
7864 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7865 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7866 if test $ac_cv_lib_dld_dld_link = yes; then
7867   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7868 fi
7869
7870
7871 fi
7872
7873
7874 fi
7875
7876
7877 fi
7878
7879
7880 fi
7881
7882
7883 fi
7884
7885     ;;
7886   esac
7887
7888   if test "x$lt_cv_dlopen" != xno; then
7889     enable_dlopen=yes
7890   else
7891     enable_dlopen=no
7892   fi
7893
7894   case $lt_cv_dlopen in
7895   dlopen)
7896     save_CPPFLAGS="$CPPFLAGS"
7897         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7898
7899     save_LDFLAGS="$LDFLAGS"
7900     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7901
7902     save_LIBS="$LIBS"
7903     LIBS="$lt_cv_dlopen_libs $LIBS"
7904
7905     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7906 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7907 if test "${lt_cv_dlopen_self+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910           if test "$cross_compiling" = yes; then :
7911   lt_cv_dlopen_self=cross
7912 else
7913     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7914   lt_status=$lt_dlunknown
7915   cat > conftest.$ac_ext <<EOF
7916 #line 7916 "configure"
7917 #include "confdefs.h"
7918
7919 #if HAVE_DLFCN_H
7920 #include <dlfcn.h>
7921 #endif
7922
7923 #include <stdio.h>
7924
7925 #ifdef RTLD_GLOBAL
7926 #  define LT_DLGLOBAL           RTLD_GLOBAL
7927 #else
7928 #  ifdef DL_GLOBAL
7929 #    define LT_DLGLOBAL         DL_GLOBAL
7930 #  else
7931 #    define LT_DLGLOBAL         0
7932 #  endif
7933 #endif
7934
7935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7936    find out it does not work in some platform. */
7937 #ifndef LT_DLLAZY_OR_NOW
7938 #  ifdef RTLD_LAZY
7939 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7940 #  else
7941 #    ifdef DL_LAZY
7942 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7943 #    else
7944 #      ifdef RTLD_NOW
7945 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7946 #      else
7947 #        ifdef DL_NOW
7948 #          define LT_DLLAZY_OR_NOW      DL_NOW
7949 #        else
7950 #          define LT_DLLAZY_OR_NOW      0
7951 #        endif
7952 #      endif
7953 #    endif
7954 #  endif
7955 #endif
7956
7957 #ifdef __cplusplus
7958 extern "C" void exit (int);
7959 #endif
7960
7961 void fnord() { int i=42;}
7962 int main ()
7963 {
7964   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7965   int status = $lt_dlunknown;
7966
7967   if (self)
7968     {
7969       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7970       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7971       /* dlclose (self); */
7972     }
7973
7974     exit (status);
7975 }
7976 EOF
7977   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978   (eval $ac_link) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7982     (./conftest; exit; ) 2>/dev/null
7983     lt_status=$?
7984     case x$lt_status in
7985       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7986       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7987       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7988     esac
7989   else :
7990     # compilation failed
7991     lt_cv_dlopen_self=no
7992   fi
7993 fi
7994 rm -fr conftest*
7995
7996
7997 fi
7998 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7999 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8000
8001     if test "x$lt_cv_dlopen_self" = xyes; then
8002       LDFLAGS="$LDFLAGS $link_static_flag"
8003       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8004 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8005 if test "${lt_cv_dlopen_self_static+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008           if test "$cross_compiling" = yes; then :
8009   lt_cv_dlopen_self_static=cross
8010 else
8011     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8012   lt_status=$lt_dlunknown
8013   cat > conftest.$ac_ext <<EOF
8014 #line 8014 "configure"
8015 #include "confdefs.h"
8016
8017 #if HAVE_DLFCN_H
8018 #include <dlfcn.h>
8019 #endif
8020
8021 #include <stdio.h>
8022
8023 #ifdef RTLD_GLOBAL
8024 #  define LT_DLGLOBAL           RTLD_GLOBAL
8025 #else
8026 #  ifdef DL_GLOBAL
8027 #    define LT_DLGLOBAL         DL_GLOBAL
8028 #  else
8029 #    define LT_DLGLOBAL         0
8030 #  endif
8031 #endif
8032
8033 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8034    find out it does not work in some platform. */
8035 #ifndef LT_DLLAZY_OR_NOW
8036 #  ifdef RTLD_LAZY
8037 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8038 #  else
8039 #    ifdef DL_LAZY
8040 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8041 #    else
8042 #      ifdef RTLD_NOW
8043 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8044 #      else
8045 #        ifdef DL_NOW
8046 #          define LT_DLLAZY_OR_NOW      DL_NOW
8047 #        else
8048 #          define LT_DLLAZY_OR_NOW      0
8049 #        endif
8050 #      endif
8051 #    endif
8052 #  endif
8053 #endif
8054
8055 #ifdef __cplusplus
8056 extern "C" void exit (int);
8057 #endif
8058
8059 void fnord() { int i=42;}
8060 int main ()
8061 {
8062   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8063   int status = $lt_dlunknown;
8064
8065   if (self)
8066     {
8067       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8068       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8069       /* dlclose (self); */
8070     }
8071
8072     exit (status);
8073 }
8074 EOF
8075   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076   (eval $ac_link) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8080     (./conftest; exit; ) 2>/dev/null
8081     lt_status=$?
8082     case x$lt_status in
8083       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8084       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8085       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8086     esac
8087   else :
8088     # compilation failed
8089     lt_cv_dlopen_self_static=no
8090   fi
8091 fi
8092 rm -fr conftest*
8093
8094
8095 fi
8096 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8097 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8098     fi
8099
8100     CPPFLAGS="$save_CPPFLAGS"
8101     LDFLAGS="$save_LDFLAGS"
8102     LIBS="$save_LIBS"
8103     ;;
8104   esac
8105
8106   case $lt_cv_dlopen_self in
8107   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8108   *) enable_dlopen_self=unknown ;;
8109   esac
8110
8111   case $lt_cv_dlopen_self_static in
8112   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8113   *) enable_dlopen_self_static=unknown ;;
8114   esac
8115 fi
8116
8117
8118 if test "$enable_shared" = yes && test "$GCC" = yes; then
8119   case $archive_cmds in
8120   *'~'*)
8121     # FIXME: we may have to deal with multi-command sequences.
8122     ;;
8123   '$CC '*)
8124     # Test whether the compiler implicitly links with -lc since on some
8125     # systems, -lgcc has to come before -lc. If gcc already passes -lc
8126     # to ld, don't add -lc before -lgcc.
8127     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8128 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8129     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132   $rm conftest*
8133     echo 'static int dummy;' > conftest.$ac_ext
8134
8135     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136   (eval $ac_compile) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; then
8140       soname=conftest
8141       lib=conftest
8142       libobjs=conftest.$ac_objext
8143       deplibs=
8144       wl=$lt_cv_prog_cc_wl
8145       compiler_flags=-v
8146       linker_flags=-v
8147       verstring=
8148       output_objdir=.
8149       libname=conftest
8150       save_allow_undefined_flag=$allow_undefined_flag
8151       allow_undefined_flag=
8152       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8153   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }
8157       then
8158         lt_cv_archive_cmds_need_lc=no
8159       else
8160         lt_cv_archive_cmds_need_lc=yes
8161       fi
8162       allow_undefined_flag=$save_allow_undefined_flag
8163     else
8164       cat conftest.err 1>&5
8165     fi
8166 fi
8167
8168     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8169 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8170     ;;
8171   esac
8172 fi
8173 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8174
8175 # The second clause should only fire when bootstrapping the
8176 # libtool distribution, otherwise you forgot to ship ltmain.sh
8177 # with your package, and you will get complaints that there are
8178 # no rules to generate ltmain.sh.
8179 if test -f "$ltmain"; then
8180   :
8181 else
8182   # If there is no Makefile yet, we rely on a make rule to execute
8183   # `config.status --recheck' to rerun these tests and create the
8184   # libtool script then.
8185   test -f Makefile && make "$ltmain"
8186 fi
8187
8188 if test -f "$ltmain"; then
8189   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8190   $rm -f "${ofile}T"
8191
8192   echo creating $ofile
8193
8194   # Now quote all the things that may contain metacharacters while being
8195   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8196   # variables and quote the copies for generation of the libtool script.
8197   for var in echo old_CC old_CFLAGS SED \
8198     AR AR_FLAGS CC LD LN_S NM SHELL \
8199     reload_flag reload_cmds wl \
8200     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8201     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8202     library_names_spec soname_spec \
8203     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8204     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8205     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8206     old_striplib striplib file_magic_cmd export_symbols_cmds \
8207     deplibs_check_method allow_undefined_flag no_undefined_flag \
8208     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8209     global_symbol_to_c_name_address \
8210     hardcode_libdir_flag_spec hardcode_libdir_separator  \
8211     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8212     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8213
8214     case $var in
8215     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8216     old_postinstall_cmds | old_postuninstall_cmds | \
8217     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8218     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8219     postinstall_cmds | postuninstall_cmds | \
8220     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8221       # Double-quote double-evaled strings.
8222       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8223       ;;
8224     *)
8225       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8226       ;;
8227     esac
8228   done
8229
8230   cat <<__EOF__ > "${ofile}T"
8231 #! $SHELL
8232
8233 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8234 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8235 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8236 #
8237 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8238 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8239 #
8240 # This program is free software; you can redistribute it and/or modify
8241 # it under the terms of the GNU General Public License as published by
8242 # the Free Software Foundation; either version 2 of the License, or
8243 # (at your option) any later version.
8244 #
8245 # This program is distributed in the hope that it will be useful, but
8246 # WITHOUT ANY WARRANTY; without even the implied warranty of
8247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8248 # General Public License for more details.
8249 #
8250 # You should have received a copy of the GNU General Public License
8251 # along with this program; if not, write to the Free Software
8252 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8253 #
8254 # As a special exception to the GNU General Public License, if you
8255 # distribute this file as part of a program that contains a
8256 # configuration script generated by Autoconf, you may include it under
8257 # the same distribution terms that you use for the rest of that program.
8258
8259 # A sed that does not truncate output.
8260 SED=$lt_SED
8261
8262 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8263 Xsed="${SED} -e s/^X//"
8264
8265 # The HP-UX ksh and POSIX shell print the target directory to stdout
8266 # if CDPATH is set.
8267 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8268
8269 # ### BEGIN LIBTOOL CONFIG
8270
8271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8272
8273 # Shell to use when invoking shell scripts.
8274 SHELL=$lt_SHELL
8275
8276 # Whether or not to build shared libraries.
8277 build_libtool_libs=$enable_shared
8278
8279 # Whether or not to build static libraries.
8280 build_old_libs=$enable_static
8281
8282 # Whether or not to add -lc for building shared libraries.
8283 build_libtool_need_lc=$need_lc
8284
8285 # Whether or not to optimize for fast installation.
8286 fast_install=$enable_fast_install
8287
8288 # The host system.
8289 host_alias=$host_alias
8290 host=$host
8291
8292 # An echo program that does not interpret backslashes.
8293 echo=$lt_echo
8294
8295 # The archiver.
8296 AR=$lt_AR
8297 AR_FLAGS=$lt_AR_FLAGS
8298
8299 # The default C compiler.
8300 CC=$lt_CC
8301
8302 # Is the compiler the GNU C compiler?
8303 with_gcc=$GCC
8304
8305 # The linker used to build libraries.
8306 LD=$lt_LD
8307
8308 # Whether we need hard or soft links.
8309 LN_S=$lt_LN_S
8310
8311 # A BSD-compatible nm program.
8312 NM=$lt_NM
8313
8314 # A symbol stripping program
8315 STRIP=$STRIP
8316
8317 # Used to examine libraries when file_magic_cmd begins "file"
8318 MAGIC_CMD=$MAGIC_CMD
8319
8320 # Used on cygwin: DLL creation program.
8321 DLLTOOL="$DLLTOOL"
8322
8323 # Used on cygwin: object dumper.
8324 OBJDUMP="$OBJDUMP"
8325
8326 # Used on cygwin: assembler.
8327 AS="$AS"
8328
8329 # The name of the directory that contains temporary libtool files.
8330 objdir=$objdir
8331
8332 # How to create reloadable object files.
8333 reload_flag=$lt_reload_flag
8334 reload_cmds=$lt_reload_cmds
8335
8336 # How to pass a linker flag through the compiler.
8337 wl=$lt_wl
8338
8339 # Object file suffix (normally "o").
8340 objext="$ac_objext"
8341
8342 # Old archive suffix (normally "a").
8343 libext="$libext"
8344
8345 # Executable file suffix (normally "").
8346 exeext="$exeext"
8347
8348 # Additional compiler flags for building library objects.
8349 pic_flag=$lt_pic_flag
8350 pic_mode=$pic_mode
8351
8352 # Does compiler simultaneously support -c and -o options?
8353 compiler_c_o=$lt_compiler_c_o
8354
8355 # Can we write directly to a .lo ?
8356 compiler_o_lo=$lt_compiler_o_lo
8357
8358 # Must we lock files when doing compilation ?
8359 need_locks=$lt_need_locks
8360
8361 # Do we need the lib prefix for modules?
8362 need_lib_prefix=$need_lib_prefix
8363
8364 # Do we need a version for libraries?
8365 need_version=$need_version
8366
8367 # Whether dlopen is supported.
8368 dlopen_support=$enable_dlopen
8369
8370 # Whether dlopen of programs is supported.
8371 dlopen_self=$enable_dlopen_self
8372
8373 # Whether dlopen of statically linked programs is supported.
8374 dlopen_self_static=$enable_dlopen_self_static
8375
8376 # Compiler flag to prevent dynamic linking.
8377 link_static_flag=$lt_link_static_flag
8378
8379 # Compiler flag to turn off builtin functions.
8380 no_builtin_flag=$lt_no_builtin_flag
8381
8382 # Compiler flag to allow reflexive dlopens.
8383 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8384
8385 # Compiler flag to generate shared objects directly from archives.
8386 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8387
8388 # Compiler flag to generate thread-safe objects.
8389 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8390
8391 # Library versioning type.
8392 version_type=$version_type
8393
8394 # Format of library name prefix.
8395 libname_spec=$lt_libname_spec
8396
8397 # List of archive names.  First name is the real one, the rest are links.
8398 # The last name is the one that the linker finds with -lNAME.
8399 library_names_spec=$lt_library_names_spec
8400
8401 # The coded name of the library, if different from the real name.
8402 soname_spec=$lt_soname_spec
8403
8404 # Commands used to build and install an old-style archive.
8405 RANLIB=$lt_RANLIB
8406 old_archive_cmds=$lt_old_archive_cmds
8407 old_postinstall_cmds=$lt_old_postinstall_cmds
8408 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8409
8410 # Create an old-style archive from a shared archive.
8411 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8412
8413 # Create a temporary old-style archive to link instead of a shared archive.
8414 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8415
8416 # Commands used to build and install a shared archive.
8417 archive_cmds=$lt_archive_cmds
8418 archive_expsym_cmds=$lt_archive_expsym_cmds
8419 postinstall_cmds=$lt_postinstall_cmds
8420 postuninstall_cmds=$lt_postuninstall_cmds
8421
8422 # Commands to strip libraries.
8423 old_striplib=$lt_old_striplib
8424 striplib=$lt_striplib
8425
8426 # Method to check whether dependent libraries are shared objects.
8427 deplibs_check_method=$lt_deplibs_check_method
8428
8429 # Command to use when deplibs_check_method == file_magic.
8430 file_magic_cmd=$lt_file_magic_cmd
8431
8432 # Flag that allows shared libraries with undefined symbols to be built.
8433 allow_undefined_flag=$lt_allow_undefined_flag
8434
8435 # Flag that forces no undefined symbols.
8436 no_undefined_flag=$lt_no_undefined_flag
8437
8438 # Commands used to finish a libtool library installation in a directory.
8439 finish_cmds=$lt_finish_cmds
8440
8441 # Same as above, but a single script fragment to be evaled but not shown.
8442 finish_eval=$lt_finish_eval
8443
8444 # Take the output of nm and produce a listing of raw symbols and C names.
8445 global_symbol_pipe=$lt_global_symbol_pipe
8446
8447 # Transform the output of nm in a proper C declaration
8448 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8449
8450 # Transform the output of nm in a C name address pair
8451 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8452
8453 # This is the shared library runtime path variable.
8454 runpath_var=$runpath_var
8455
8456 # This is the shared library path variable.
8457 shlibpath_var=$shlibpath_var
8458
8459 # Is shlibpath searched before the hard-coded library search path?
8460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8461
8462 # How to hardcode a shared library path into an executable.
8463 hardcode_action=$hardcode_action
8464
8465 # Whether we should hardcode library paths into libraries.
8466 hardcode_into_libs=$hardcode_into_libs
8467
8468 # Flag to hardcode \$libdir into a binary during linking.
8469 # This must work even if \$libdir does not exist.
8470 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8471
8472 # Whether we need a single -rpath flag with a separated argument.
8473 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8474
8475 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8476 # resulting binary.
8477 hardcode_direct=$hardcode_direct
8478
8479 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8480 # resulting binary.
8481 hardcode_minus_L=$hardcode_minus_L
8482
8483 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8484 # the resulting binary.
8485 hardcode_shlibpath_var=$hardcode_shlibpath_var
8486
8487 # Variables whose values should be saved in libtool wrapper scripts and
8488 # restored at relink time.
8489 variables_saved_for_relink="$variables_saved_for_relink"
8490
8491 # Whether libtool must link a program against all its dependency libraries.
8492 link_all_deplibs=$link_all_deplibs
8493
8494 # Compile-time system search path for libraries
8495 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8496
8497 # Run-time system search path for libraries
8498 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8499
8500 # Fix the shell variable \$srcfile for the compiler.
8501 fix_srcfile_path="$fix_srcfile_path"
8502
8503 # Set to yes if exported symbols are required.
8504 always_export_symbols=$always_export_symbols
8505
8506 # The commands to list exported symbols.
8507 export_symbols_cmds=$lt_export_symbols_cmds
8508
8509 # The commands to extract the exported symbol list from a shared archive.
8510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8511
8512 # Symbols that should not be listed in the preloaded symbols.
8513 exclude_expsyms=$lt_exclude_expsyms
8514
8515 # Symbols that must always be exported.
8516 include_expsyms=$lt_include_expsyms
8517
8518 # ### END LIBTOOL CONFIG
8519
8520 __EOF__
8521
8522   case $host_os in
8523   aix3*)
8524     cat <<\EOF >> "${ofile}T"
8525
8526 # AIX sometimes has problems with the GCC collect2 program.  For some
8527 # reason, if we set the COLLECT_NAMES environment variable, the problems
8528 # vanish in a puff of smoke.
8529 if test "X${COLLECT_NAMES+set}" != Xset; then
8530   COLLECT_NAMES=
8531   export COLLECT_NAMES
8532 fi
8533 EOF
8534     ;;
8535   esac
8536
8537   case $host_os in
8538   cygwin* | mingw* | pw32* | os2*)
8539     cat <<'EOF' >> "${ofile}T"
8540       # This is a source program that is used to create dlls on Windows
8541       # Don't remove nor modify the starting and closing comments
8542 # /* ltdll.c starts here */
8543 # #define WIN32_LEAN_AND_MEAN
8544 # #include <windows.h>
8545 # #undef WIN32_LEAN_AND_MEAN
8546 # #include <stdio.h>
8547 #
8548 # #ifndef __CYGWIN__
8549 # #  ifdef __CYGWIN32__
8550 # #    define __CYGWIN__ __CYGWIN32__
8551 # #  endif
8552 # #endif
8553 #
8554 # #ifdef __cplusplus
8555 # extern "C" {
8556 # #endif
8557 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8558 # #ifdef __cplusplus
8559 # }
8560 # #endif
8561 #
8562 # #ifdef __CYGWIN__
8563 # #include <cygwin/cygwin_dll.h>
8564 # DECLARE_CYGWIN_DLL( DllMain );
8565 # #endif
8566 # HINSTANCE __hDllInstance_base;
8567 #
8568 # BOOL APIENTRY
8569 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8570 # {
8571 #   __hDllInstance_base = hInst;
8572 #   return TRUE;
8573 # }
8574 # /* ltdll.c ends here */
8575         # This is a source program that is used to create import libraries
8576         # on Windows for dlls which lack them. Don't remove nor modify the
8577         # starting and closing comments
8578 # /* impgen.c starts here */
8579 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8580 #
8581 #  This file is part of GNU libtool.
8582 #
8583 #  This program is free software; you can redistribute it and/or modify
8584 #  it under the terms of the GNU General Public License as published by
8585 #  the Free Software Foundation; either version 2 of the License, or
8586 #  (at your option) any later version.
8587 #
8588 #  This program is distributed in the hope that it will be useful,
8589 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8590 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8591 #  GNU General Public License for more details.
8592 #
8593 #  You should have received a copy of the GNU General Public License
8594 #  along with this program; if not, write to the Free Software
8595 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8596 #  */
8597 #
8598 # #include <stdio.h>            /* for printf() */
8599 # #include <unistd.h>           /* for open(), lseek(), read() */
8600 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8601 # #include <string.h>           /* for strdup() */
8602 #
8603 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8604 # #ifndef O_BINARY
8605 # #define O_BINARY 0
8606 # #endif
8607 #
8608 # static unsigned int
8609 # pe_get16 (fd, offset)
8610 #      int fd;
8611 #      int offset;
8612 # {
8613 #   unsigned char b[2];
8614 #   lseek (fd, offset, SEEK_SET);
8615 #   read (fd, b, 2);
8616 #   return b[0] + (b[1]<<8);
8617 # }
8618 #
8619 # static unsigned int
8620 # pe_get32 (fd, offset)
8621 #     int fd;
8622 #     int offset;
8623 # {
8624 #   unsigned char b[4];
8625 #   lseek (fd, offset, SEEK_SET);
8626 #   read (fd, b, 4);
8627 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8628 # }
8629 #
8630 # static unsigned int
8631 # pe_as32 (ptr)
8632 #      void *ptr;
8633 # {
8634 #   unsigned char *b = ptr;
8635 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8636 # }
8637 #
8638 # int
8639 # main (argc, argv)
8640 #     int argc;
8641 #     char *argv[];
8642 # {
8643 #     int dll;
8644 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8645 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8646 #     unsigned long name_rvas, nexp;
8647 #     unsigned char *expdata, *erva;
8648 #     char *filename, *dll_name;
8649 #
8650 #     filename = argv[1];
8651 #
8652 #     dll = open(filename, O_RDONLY|O_BINARY);
8653 #     if (dll < 1)
8654 #       return 1;
8655 #
8656 #     dll_name = filename;
8657 #
8658 #     for (i=0; filename[i]; i++)
8659 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8660 #           dll_name = filename + i +1;
8661 #
8662 #     pe_header_offset = pe_get32 (dll, 0x3c);
8663 #     opthdr_ofs = pe_header_offset + 4 + 20;
8664 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8665 #
8666 #     if (num_entries < 1) /* no exports */
8667 #       return 1;
8668 #
8669 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8670 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8671 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8672 #     secptr = (pe_header_offset + 4 + 20 +
8673 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8674 #
8675 #     expptr = 0;
8676 #     for (i = 0; i < nsections; i++)
8677 #     {
8678 #       char sname[8];
8679 #       unsigned long secptr1 = secptr + 40 * i;
8680 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8681 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8682 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8683 #       lseek(dll, secptr1, SEEK_SET);
8684 #       read(dll, sname, 8);
8685 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8686 #       {
8687 #           expptr = fptr + (export_rva - vaddr);
8688 #           if (export_rva + export_size > vaddr + vsize)
8689 #               export_size = vsize - (export_rva - vaddr);
8690 #           break;
8691 #       }
8692 #     }
8693 #
8694 #     expdata = (unsigned char*)malloc(export_size);
8695 #     lseek (dll, expptr, SEEK_SET);
8696 #     read (dll, expdata, export_size);
8697 #     erva = expdata - export_rva;
8698 #
8699 #     nexp = pe_as32 (expdata+24);
8700 #     name_rvas = pe_as32 (expdata+32);
8701 #
8702 #     printf ("EXPORTS\n");
8703 #     for (i = 0; i<nexp; i++)
8704 #     {
8705 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8706 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8707 #     }
8708 #
8709 #     return 0;
8710 # }
8711 # /* impgen.c ends here */
8712
8713 EOF
8714     ;;
8715   esac
8716
8717   # We use sed instead of cat because bash on DJGPP gets confused if
8718   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8719   # text mode, it properly converts lines to CR/LF.  This bash problem
8720   # is reportedly fixed, but why not run on old versions too?
8721   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8722
8723   mv -f "${ofile}T" "$ofile" || \
8724     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8725   chmod +x "$ofile"
8726 fi
8727
8728
8729
8730
8731
8732 # This can be used to rebuild libtool when needed
8733 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8734
8735 # Always use our own libtool.
8736 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8737
8738 # Prevent multiple expansion
8739
8740
8741
8742                               ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config"
8743
8744
8745
8746 cat >confcache <<\_ACEOF
8747 # This file is a shell script that caches the results of configure
8748 # tests run on this system so they can be shared between configure
8749 # scripts and configure runs, see configure's option --config-cache.
8750 # It is not useful on other systems.  If it contains results you don't
8751 # want to keep, you may remove or edit it.
8752 #
8753 # config.status only pays attention to the cache file if you give it
8754 # the --recheck option to rerun configure.
8755 #
8756 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8757 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8758 # following values.
8759
8760 _ACEOF
8761
8762 # The following way of writing the cache mishandles newlines in values,
8763 # but we know of no workaround that is simple, portable, and efficient.
8764 # So, don't put newlines in cache variables' values.
8765 # Ultrix sh set writes to stderr and can't be redirected directly,
8766 # and sets the high bit in the cache file unless we assign to the vars.
8767 {
8768   (set) 2>&1 |
8769     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8770     *ac_space=\ *)
8771       # `set' does not quote correctly, so add quotes (double-quote
8772       # substitution turns \\\\ into \\, and sed turns \\ into \).
8773       sed -n \
8774         "s/'/'\\\\''/g;
8775           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8776       ;;
8777     *)
8778       # `set' quotes correctly as required by POSIX, so do not add quotes.
8779       sed -n \
8780         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8781       ;;
8782     esac;
8783 } |
8784   sed '
8785      t clear
8786      : clear
8787      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8788      t end
8789      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8790      : end' >>confcache
8791 if cmp -s $cache_file confcache; then :; else
8792   if test -w $cache_file; then
8793     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8794     cat confcache >$cache_file
8795   else
8796     echo "not updating unwritable cache $cache_file"
8797   fi
8798 fi
8799 rm -f confcache
8800
8801 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8802 # Let make expand exec_prefix.
8803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8804
8805 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8806 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8807 # trailing colons and then remove the whole line if VPATH becomes empty
8808 # (actually we leave an empty line to preserve line numbers).
8809 if test "x$srcdir" = x.; then
8810   ac_vpsub='/^[         ]*VPATH[        ]*=/{
8811 s/:*\$(srcdir):*/:/;
8812 s/:*\${srcdir}:*/:/;
8813 s/:*@srcdir@:*/:/;
8814 s/^\([^=]*=[    ]*\):*/\1/;
8815 s/:*$//;
8816 s/^[^=]*=[      ]*$//;
8817 }'
8818 fi
8819
8820 DEFS=-DHAVE_CONFIG_H
8821
8822 ac_libobjs=
8823 ac_ltlibobjs=
8824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8825   # 1. Remove the extension, and $U if already installed.
8826   ac_i=`echo "$ac_i" |
8827          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8828   # 2. Add them.
8829   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8830   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8831 done
8832 LIBOBJS=$ac_libobjs
8833
8834 LTLIBOBJS=$ac_ltlibobjs
8835
8836
8837
8838 : ${CONFIG_STATUS=./config.status}
8839 ac_clean_files_save=$ac_clean_files
8840 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8841 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8842 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8843 cat >$CONFIG_STATUS <<_ACEOF
8844 #! $SHELL
8845 # Generated by $as_me.
8846 # Run this file to recreate the current configuration.
8847 # Compiler output produced by configure, useful for debugging
8848 # configure, is in config.log if it exists.
8849
8850 debug=false
8851 SHELL=\${CONFIG_SHELL-$SHELL}
8852 _ACEOF
8853
8854 cat >>$CONFIG_STATUS <<\_ACEOF
8855 ## --------------------- ##
8856 ## M4sh Initialization.  ##
8857 ## --------------------- ##
8858
8859 # Be Bourne compatible
8860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8861   emulate sh
8862   NULLCMD=:
8863   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8864   # is contrary to our usage.  Disable this feature.
8865   alias -g '${1+"$@"}'='"$@"'
8866 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8867   set -o posix
8868 fi
8869
8870 # Support unset when possible.
8871 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8872   as_unset=unset
8873 else
8874   as_unset=false
8875 fi
8876
8877
8878 # Work around bugs in pre-3.0 UWIN ksh.
8879 $as_unset ENV MAIL MAILPATH
8880 PS1='$ '
8881 PS2='> '
8882 PS4='+ '
8883
8884 # NLS nuisances.
8885 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
8886 do
8887   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8888     eval $as_var=C; export $as_var
8889   else
8890     $as_unset $as_var
8891   fi
8892 done
8893
8894 # Required to use basename.
8895 if expr a : '\(a\)' >/dev/null 2>&1; then
8896   as_expr=expr
8897 else
8898   as_expr=false
8899 fi
8900
8901 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8902   as_basename=basename
8903 else
8904   as_basename=false
8905 fi
8906
8907
8908 # Name of the executable.
8909 as_me=`$as_basename "$0" ||
8910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8911          X"$0" : 'X\(//\)$' \| \
8912          X"$0" : 'X\(/\)$' \| \
8913          .     : '\(.\)' 2>/dev/null ||
8914 echo X/"$0" |
8915     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8916           /^X\/\(\/\/\)$/{ s//\1/; q; }
8917           /^X\/\(\/\).*/{ s//\1/; q; }
8918           s/.*/./; q'`
8919
8920
8921 # PATH needs CR, and LINENO needs CR and PATH.
8922 # Avoid depending upon Character Ranges.
8923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8926 as_cr_digits='0123456789'
8927 as_cr_alnum=$as_cr_Letters$as_cr_digits
8928
8929 # The user is always right.
8930 if test "${PATH_SEPARATOR+set}" != set; then
8931   echo "#! /bin/sh" >conftest.sh
8932   echo  "exit 0"   >>conftest.sh
8933   chmod +x conftest.sh
8934   if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
8935     PATH_SEPARATOR=';'
8936   else
8937     PATH_SEPARATOR=:
8938   fi
8939   rm -f conftest.sh
8940 fi
8941
8942
8943   as_lineno_1=$LINENO
8944   as_lineno_2=$LINENO
8945   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8946   test "x$as_lineno_1" != "x$as_lineno_2" &&
8947   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8948   # Find who we are.  Look in the path if we contain no path at all
8949   # relative or not.
8950   case $0 in
8951     *[\\/]* ) as_myself=$0 ;;
8952     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8954 do
8955   IFS=$as_save_IFS
8956   test -z "$as_dir" && as_dir=.
8957   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8958 done
8959
8960        ;;
8961   esac
8962   # We did not find ourselves, most probably we were run as `sh COMMAND'
8963   # in which case we are not to be found in the path.
8964   if test "x$as_myself" = x; then
8965     as_myself=$0
8966   fi
8967   if test ! -f "$as_myself"; then
8968     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8969 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8970    { (exit 1); exit 1; }; }
8971   fi
8972   case $CONFIG_SHELL in
8973   '')
8974     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8976 do
8977   IFS=$as_save_IFS
8978   test -z "$as_dir" && as_dir=.
8979   for as_base in sh bash ksh sh5; do
8980          case $as_dir in
8981          /*)
8982            if ("$as_dir/$as_base" -c '
8983   as_lineno_1=$LINENO
8984   as_lineno_2=$LINENO
8985   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8986   test "x$as_lineno_1" != "x$as_lineno_2" &&
8987   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8988              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8989              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8990              CONFIG_SHELL=$as_dir/$as_base
8991              export CONFIG_SHELL
8992              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8993            fi;;
8994          esac
8995        done
8996 done
8997 ;;
8998   esac
8999
9000   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9001   # uniformly replaced by the line number.  The first 'sed' inserts a
9002   # line-number line before each line; the second 'sed' does the real
9003   # work.  The second script uses 'N' to pair each line-number line
9004   # with the numbered line, and appends trailing '-' during
9005   # substitution so that $LINENO is not a special case at line end.
9006   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9007   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9008   sed '=' <$as_myself |
9009     sed '
9010       N
9011       s,$,-,
9012       : loop
9013       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9014       t loop
9015       s,-$,,
9016       s,^['$as_cr_digits']*\n,,
9017     ' >$as_me.lineno &&
9018   chmod +x $as_me.lineno ||
9019     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9020 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9021    { (exit 1); exit 1; }; }
9022
9023   # Don't try to exec as it changes $[0], causing all sort of problems
9024   # (the dirname of $[0] is not the place where we might find the
9025   # original and so on.  Autoconf is especially sensible to this).
9026   . ./$as_me.lineno
9027   # Exit status is that of the last command.
9028   exit
9029 }
9030
9031
9032 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9033   *c*,-n*) ECHO_N= ECHO_C='
9034 ' ECHO_T='      ' ;;
9035   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9036   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9037 esac
9038
9039 if expr a : '\(a\)' >/dev/null 2>&1; then
9040   as_expr=expr
9041 else
9042   as_expr=false
9043 fi
9044
9045 rm -f conf$$ conf$$.exe conf$$.file
9046 echo >conf$$.file
9047 if ln -s conf$$.file conf$$ 2>/dev/null; then
9048   # We could just check for DJGPP; but this test a) works b) is more generic
9049   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9050   if test -f conf$$.exe; then
9051     # Don't use ln at all; we don't have any links
9052     as_ln_s='cp -p'
9053   else
9054     as_ln_s='ln -s'
9055   fi
9056 elif ln conf$$.file conf$$ 2>/dev/null; then
9057   as_ln_s=ln
9058 else
9059   as_ln_s='cp -p'
9060 fi
9061 rm -f conf$$ conf$$.exe conf$$.file
9062
9063 if mkdir -p . 2>/dev/null; then
9064   as_mkdir_p=:
9065 else
9066   as_mkdir_p=false
9067 fi
9068
9069 as_executable_p="test -f"
9070
9071 # Sed expression to map a string onto a valid CPP name.
9072 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9073
9074 # Sed expression to map a string onto a valid variable name.
9075 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9076
9077
9078 # IFS
9079 # We need space, tab and new line, in precisely that order.
9080 as_nl='
9081 '
9082 IFS="   $as_nl"
9083
9084 # CDPATH.
9085 $as_unset CDPATH
9086
9087 exec 6>&1
9088
9089 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9090 # report actual input values of CONFIG_FILES etc. instead of their
9091 # values after options handling.  Logging --version etc. is OK.
9092 exec 5>>config.log
9093 {
9094   echo
9095   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9096 ## Running $as_me. ##
9097 _ASBOX
9098 } >&5
9099 cat >&5 <<_CSEOF
9100
9101 This file was extended by $as_me, which was
9102 generated by GNU Autoconf 2.54.  Invocation command line was
9103
9104   CONFIG_FILES    = $CONFIG_FILES
9105   CONFIG_HEADERS  = $CONFIG_HEADERS
9106   CONFIG_LINKS    = $CONFIG_LINKS
9107   CONFIG_COMMANDS = $CONFIG_COMMANDS
9108   $ $0 $@
9109
9110 _CSEOF
9111 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9112 echo >&5
9113 _ACEOF
9114
9115 # Files that config.status was made for.
9116 if test -n "$ac_config_files"; then
9117   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9118 fi
9119
9120 if test -n "$ac_config_headers"; then
9121   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9122 fi
9123
9124 if test -n "$ac_config_links"; then
9125   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9126 fi
9127
9128 if test -n "$ac_config_commands"; then
9129   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9130 fi
9131
9132 cat >>$CONFIG_STATUS <<\_ACEOF
9133
9134 ac_cs_usage="\
9135 \`$as_me' instantiates files from templates according to the
9136 current configuration.
9137
9138 Usage: $0 [OPTIONS] [FILE]...
9139
9140   -h, --help       print this help, then exit
9141   -V, --version    print version number, then exit
9142   -d, --debug      don't remove temporary files
9143       --recheck    update $as_me by reconfiguring in the same conditions
9144   --file=FILE[:TEMPLATE]
9145                    instantiate the configuration file FILE
9146   --header=FILE[:TEMPLATE]
9147                    instantiate the configuration header FILE
9148
9149 Configuration files:
9150 $config_files
9151
9152 Configuration headers:
9153 $config_headers
9154
9155 Report bugs to <bug-autoconf@gnu.org>."
9156 _ACEOF
9157
9158 cat >>$CONFIG_STATUS <<_ACEOF
9159 ac_cs_version="\\
9160 config.status
9161 configured by $0, generated by GNU Autoconf 2.54,
9162   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9163
9164 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9165 Free Software Foundation, Inc.
9166 This config.status script is free software; the Free Software Foundation
9167 gives unlimited permission to copy, distribute and modify it."
9168 srcdir=$srcdir
9169 INSTALL="$INSTALL"
9170 _ACEOF
9171
9172 cat >>$CONFIG_STATUS <<\_ACEOF
9173 # If no file are specified by the user, then we need to provide default
9174 # value.  By we need to know if files were specified by the user.
9175 ac_need_defaults=:
9176 while test $# != 0
9177 do
9178   case $1 in
9179   --*=*)
9180     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9181     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9182     ac_shift=:
9183     ;;
9184   -*)
9185     ac_option=$1
9186     ac_optarg=$2
9187     ac_shift=shift
9188     ;;
9189   *) # This is not an option, so the user has probably given explicit
9190      # arguments.
9191      ac_option=$1
9192      ac_need_defaults=false;;
9193   esac
9194
9195   case $ac_option in
9196   # Handling of the options.
9197 _ACEOF
9198 cat >>$CONFIG_STATUS <<_ACEOF
9199   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9200     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9201     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9202 _ACEOF
9203 cat >>$CONFIG_STATUS <<\_ACEOF
9204   --version | --vers* | -V )
9205     echo "$ac_cs_version"; exit 0 ;;
9206   --he | --h)
9207     # Conflict between --help and --header
9208     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9209 Try \`$0 --help' for more information." >&5
9210 echo "$as_me: error: ambiguous option: $1
9211 Try \`$0 --help' for more information." >&2;}
9212    { (exit 1); exit 1; }; };;
9213   --help | --hel | -h )
9214     echo "$ac_cs_usage"; exit 0 ;;
9215   --debug | --d* | -d )
9216     debug=: ;;
9217   --file | --fil | --fi | --f )
9218     $ac_shift
9219     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9220     ac_need_defaults=false;;
9221   --header | --heade | --head | --hea )
9222     $ac_shift
9223     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9224     ac_need_defaults=false;;
9225
9226   # This is an error.
9227   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9228 Try \`$0 --help' for more information." >&5
9229 echo "$as_me: error: unrecognized option: $1
9230 Try \`$0 --help' for more information." >&2;}
9231    { (exit 1); exit 1; }; } ;;
9232
9233   *) ac_config_targets="$ac_config_targets $1" ;;
9234
9235   esac
9236   shift
9237 done
9238
9239 _ACEOF
9240
9241
9242
9243
9244
9245 cat >>$CONFIG_STATUS <<\_ACEOF
9246 for ac_config_target in $ac_config_targets
9247 do
9248   case "$ac_config_target" in
9249   # Handling of arguments.
9250   "unix-cc.mk" ) CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
9251   "unix-def.mk" ) CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
9252   "freetype-config" ) CONFIG_FILES="$CONFIG_FILES freetype-config" ;;
9253   "ftconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
9254   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9255 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9256    { (exit 1); exit 1; }; };;
9257   esac
9258 done
9259
9260 # If the user did not use the arguments to specify the items to instantiate,
9261 # then the envvar interface is used.  Set only those that are not.
9262 # We use the long form for the default assignment because of an extremely
9263 # bizarre bug on SunOS 4.1.3.
9264 if $ac_need_defaults; then
9265   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9266   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9267 fi
9268
9269 # Create a temporary directory, and hook for its removal unless debugging.
9270 $debug ||
9271 {
9272   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9273   trap '{ (exit 1); exit 1; }' 1 2 13 15
9274 }
9275
9276 # Create a (secure) tmp directory for tmp files.
9277 : ${TMPDIR=/tmp}
9278 {
9279   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9280   test -n "$tmp" && test -d "$tmp"
9281 }  ||
9282 {
9283   tmp=$TMPDIR/cs$$-$RANDOM
9284   (umask 077 && mkdir $tmp)
9285 } ||
9286 {
9287    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9288    { (exit 1); exit 1; }
9289 }
9290
9291 _ACEOF
9292
9293 cat >>$CONFIG_STATUS <<_ACEOF
9294
9295 #
9296 # CONFIG_FILES section.
9297 #
9298
9299 # No need to generate the scripts if there are no CONFIG_FILES.
9300 # This happens for instance when ./config.status config.h
9301 if test -n "\$CONFIG_FILES"; then
9302   # Protect against being on the right side of a sed subst in config.status.
9303   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9304    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9305 s,@SHELL@,$SHELL,;t t
9306 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9307 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9308 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9309 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9310 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9311 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9312 s,@exec_prefix@,$exec_prefix,;t t
9313 s,@prefix@,$prefix,;t t
9314 s,@program_transform_name@,$program_transform_name,;t t
9315 s,@bindir@,$bindir,;t t
9316 s,@sbindir@,$sbindir,;t t
9317 s,@libexecdir@,$libexecdir,;t t
9318 s,@datadir@,$datadir,;t t
9319 s,@sysconfdir@,$sysconfdir,;t t
9320 s,@sharedstatedir@,$sharedstatedir,;t t
9321 s,@localstatedir@,$localstatedir,;t t
9322 s,@libdir@,$libdir,;t t
9323 s,@includedir@,$includedir,;t t
9324 s,@oldincludedir@,$oldincludedir,;t t
9325 s,@infodir@,$infodir,;t t
9326 s,@mandir@,$mandir,;t t
9327 s,@build_alias@,$build_alias,;t t
9328 s,@host_alias@,$host_alias,;t t
9329 s,@target_alias@,$target_alias,;t t
9330 s,@DEFS@,$DEFS,;t t
9331 s,@ECHO_C@,$ECHO_C,;t t
9332 s,@ECHO_N@,$ECHO_N,;t t
9333 s,@ECHO_T@,$ECHO_T,;t t
9334 s,@LIBS@,$LIBS,;t t
9335 s,@version_info@,$version_info,;t t
9336 s,@ft_version@,$ft_version,;t t
9337 s,@build@,$build,;t t
9338 s,@build_cpu@,$build_cpu,;t t
9339 s,@build_vendor@,$build_vendor,;t t
9340 s,@build_os@,$build_os,;t t
9341 s,@host@,$host,;t t
9342 s,@host_cpu@,$host_cpu,;t t
9343 s,@host_vendor@,$host_vendor,;t t
9344 s,@host_os@,$host_os,;t t
9345 s,@target@,$target,;t t
9346 s,@target_cpu@,$target_cpu,;t t
9347 s,@target_vendor@,$target_vendor,;t t
9348 s,@target_os@,$target_os,;t t
9349 s,@CC@,$CC,;t t
9350 s,@CFLAGS@,$CFLAGS,;t t
9351 s,@LDFLAGS@,$LDFLAGS,;t t
9352 s,@CPPFLAGS@,$CPPFLAGS,;t t
9353 s,@ac_ct_CC@,$ac_ct_CC,;t t
9354 s,@EXEEXT@,$EXEEXT,;t t
9355 s,@OBJEXT@,$OBJEXT,;t t
9356 s,@CPP@,$CPP,;t t
9357 s,@XX_CFLAGS@,$XX_CFLAGS,;t t
9358 s,@XX_ANSIFLAGS@,$XX_ANSIFLAGS,;t t
9359 s,@RMF@,$RMF,;t t
9360 s,@RMDIR@,$RMDIR,;t t
9361 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9362 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9363 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9364 s,@EGREP@,$EGREP,;t t
9365 s,@FTSYS_SRC@,$FTSYS_SRC,;t t
9366 s,@LIBZ@,$LIBZ,;t t
9367 s,@SYSTEM_ZLIB@,$SYSTEM_ZLIB,;t t
9368 s,@LN_S@,$LN_S,;t t
9369 s,@ECHO@,$ECHO,;t t
9370 s,@RANLIB@,$RANLIB,;t t
9371 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9372 s,@STRIP@,$STRIP,;t t
9373 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9374 s,@LIBTOOL@,$LIBTOOL,;t t
9375 s,@LIBOBJS@,$LIBOBJS,;t t
9376 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9377 CEOF
9378
9379 _ACEOF
9380
9381   cat >>$CONFIG_STATUS <<\_ACEOF
9382   # Split the substitutions into bite-sized pieces for seds with
9383   # small command number limits, like on Digital OSF/1 and HP-UX.
9384   ac_max_sed_lines=48
9385   ac_sed_frag=1 # Number of current file.
9386   ac_beg=1 # First line for current file.
9387   ac_end=$ac_max_sed_lines # Line after last line for current file.
9388   ac_more_lines=:
9389   ac_sed_cmds=
9390   while $ac_more_lines; do
9391     if test $ac_beg -gt 1; then
9392       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9393     else
9394       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9395     fi
9396     if test ! -s $tmp/subs.frag; then
9397       ac_more_lines=false
9398     else
9399       # The purpose of the label and of the branching condition is to
9400       # speed up the sed processing (if there are no `@' at all, there
9401       # is no need to browse any of the substitutions).
9402       # These are the two extra sed commands mentioned above.
9403       (echo ':t
9404   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9405       if test -z "$ac_sed_cmds"; then
9406         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9407       else
9408         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9409       fi
9410       ac_sed_frag=`expr $ac_sed_frag + 1`
9411       ac_beg=$ac_end
9412       ac_end=`expr $ac_end + $ac_max_sed_lines`
9413     fi
9414   done
9415   if test -z "$ac_sed_cmds"; then
9416     ac_sed_cmds=cat
9417   fi
9418 fi # test -n "$CONFIG_FILES"
9419
9420 _ACEOF
9421 cat >>$CONFIG_STATUS <<\_ACEOF
9422 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9423   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9424   case $ac_file in
9425   - | *:- | *:-:* ) # input from stdin
9426         cat >$tmp/stdin
9427         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9428         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9429   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9430         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9431   * )   ac_file_in=$ac_file.in ;;
9432   esac
9433
9434   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9435   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9436 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9437          X"$ac_file" : 'X\(//\)[^/]' \| \
9438          X"$ac_file" : 'X\(//\)$' \| \
9439          X"$ac_file" : 'X\(/\)' \| \
9440          .     : '\(.\)' 2>/dev/null ||
9441 echo X"$ac_file" |
9442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9443           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9444           /^X\(\/\/\)$/{ s//\1/; q; }
9445           /^X\(\/\).*/{ s//\1/; q; }
9446           s/.*/./; q'`
9447   { if $as_mkdir_p; then
9448     mkdir -p "$ac_dir"
9449   else
9450     as_dir="$ac_dir"
9451     as_dirs=
9452     while test ! -d "$as_dir"; do
9453       as_dirs="$as_dir $as_dirs"
9454       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9456          X"$as_dir" : 'X\(//\)[^/]' \| \
9457          X"$as_dir" : 'X\(//\)$' \| \
9458          X"$as_dir" : 'X\(/\)' \| \
9459          .     : '\(.\)' 2>/dev/null ||
9460 echo X"$as_dir" |
9461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9463           /^X\(\/\/\)$/{ s//\1/; q; }
9464           /^X\(\/\).*/{ s//\1/; q; }
9465           s/.*/./; q'`
9466     done
9467     test ! -n "$as_dirs" || mkdir $as_dirs
9468   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9469 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9470    { (exit 1); exit 1; }; }; }
9471
9472   ac_builddir=.
9473
9474 if test "$ac_dir" != .; then
9475   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9476   # A "../" for each directory in $ac_dir_suffix.
9477   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9478 else
9479   ac_dir_suffix= ac_top_builddir=
9480 fi
9481
9482 case $srcdir in
9483   .)  # No --srcdir option.  We are building in place.
9484     ac_srcdir=.
9485     if test -z "$ac_top_builddir"; then
9486        ac_top_srcdir=.
9487     else
9488        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9489     fi ;;
9490   [\\/]* | ?:[\\/]* )  # Absolute path.
9491     ac_srcdir=$srcdir$ac_dir_suffix;
9492     ac_top_srcdir=$srcdir ;;
9493   *) # Relative path.
9494     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9495     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9496 esac
9497 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9498 # absolute.
9499 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9500 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9501 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9502 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9503
9504
9505   case $INSTALL in
9506   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9507   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9508   esac
9509
9510   if test x"$ac_file" != x-; then
9511     { echo "$as_me:$LINENO: creating $ac_file" >&5
9512 echo "$as_me: creating $ac_file" >&6;}
9513     rm -f "$ac_file"
9514   fi
9515   # Let's still pretend it is `configure' which instantiates (i.e., don't
9516   # use $as_me), people would be surprised to read:
9517   #    /* config.h.  Generated by config.status.  */
9518   if test x"$ac_file" = x-; then
9519     configure_input=
9520   else
9521     configure_input="$ac_file.  "
9522   fi
9523   configure_input=$configure_input"Generated from `echo $ac_file_in |
9524                                      sed 's,.*/,,'` by configure."
9525
9526   # First look for the input files in the build tree, otherwise in the
9527   # src tree.
9528   ac_file_inputs=`IFS=:
9529     for f in $ac_file_in; do
9530       case $f in
9531       -) echo $tmp/stdin ;;
9532       [\\/$]*)
9533          # Absolute (can't be DOS-style, as IFS=:)
9534          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9535 echo "$as_me: error: cannot find input file: $f" >&2;}
9536    { (exit 1); exit 1; }; }
9537          echo $f;;
9538       *) # Relative
9539          if test -f "$f"; then
9540            # Build tree
9541            echo $f
9542          elif test -f "$srcdir/$f"; then
9543            # Source tree
9544            echo $srcdir/$f
9545          else
9546            # /dev/null tree
9547            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9548 echo "$as_me: error: cannot find input file: $f" >&2;}
9549    { (exit 1); exit 1; }; }
9550          fi;;
9551       esac
9552     done` || { (exit 1); exit 1; }
9553 _ACEOF
9554 cat >>$CONFIG_STATUS <<_ACEOF
9555   sed "$ac_vpsub
9556 $extrasub
9557 _ACEOF
9558 cat >>$CONFIG_STATUS <<\_ACEOF
9559 :t
9560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9561 s,@configure_input@,$configure_input,;t t
9562 s,@srcdir@,$ac_srcdir,;t t
9563 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9564 s,@top_srcdir@,$ac_top_srcdir,;t t
9565 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9566 s,@builddir@,$ac_builddir,;t t
9567 s,@abs_builddir@,$ac_abs_builddir,;t t
9568 s,@top_builddir@,$ac_top_builddir,;t t
9569 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9570 s,@INSTALL@,$ac_INSTALL,;t t
9571 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9572   rm -f $tmp/stdin
9573   if test x"$ac_file" != x-; then
9574     mv $tmp/out $ac_file
9575   else
9576     cat $tmp/out
9577     rm -f $tmp/out
9578   fi
9579
9580 done
9581 _ACEOF
9582 cat >>$CONFIG_STATUS <<\_ACEOF
9583
9584 #
9585 # CONFIG_HEADER section.
9586 #
9587
9588 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9589 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9590 #
9591 # ac_d sets the value in "#define NAME VALUE" lines.
9592 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9593 ac_dB='[        ].*$,\1#\2'
9594 ac_dC=' '
9595 ac_dD=',;t'
9596 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9597 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9598 ac_uB='$,\1#\2define\3'
9599 ac_uC=' '
9600 ac_uD=',;t'
9601
9602 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9603   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9604   case $ac_file in
9605   - | *:- | *:-:* ) # input from stdin
9606         cat >$tmp/stdin
9607         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9608         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9609   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9610         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9611   * )   ac_file_in=$ac_file.in ;;
9612   esac
9613
9614   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9615 echo "$as_me: creating $ac_file" >&6;}
9616
9617   # First look for the input files in the build tree, otherwise in the
9618   # src tree.
9619   ac_file_inputs=`IFS=:
9620     for f in $ac_file_in; do
9621       case $f in
9622       -) echo $tmp/stdin ;;
9623       [\\/$]*)
9624          # Absolute (can't be DOS-style, as IFS=:)
9625          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9626 echo "$as_me: error: cannot find input file: $f" >&2;}
9627    { (exit 1); exit 1; }; }
9628          echo $f;;
9629       *) # Relative
9630          if test -f "$f"; then
9631            # Build tree
9632            echo $f
9633          elif test -f "$srcdir/$f"; then
9634            # Source tree
9635            echo $srcdir/$f
9636          else
9637            # /dev/null tree
9638            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9639 echo "$as_me: error: cannot find input file: $f" >&2;}
9640    { (exit 1); exit 1; }; }
9641          fi;;
9642       esac
9643     done` || { (exit 1); exit 1; }
9644   # Remove the trailing spaces.
9645   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
9646
9647 _ACEOF
9648
9649 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9650 # `conftest.undefs', that substitutes the proper values into
9651 # config.h.in to produce config.h.  The first handles `#define'
9652 # templates, and the second `#undef' templates.
9653 # And first: Protect against being on the right side of a sed subst in
9654 # config.status.  Protect against being in an unquoted here document
9655 # in config.status.
9656 rm -f conftest.defines conftest.undefs
9657 # Using a here document instead of a string reduces the quoting nightmare.
9658 # Putting comments in sed scripts is not portable.
9659 #
9660 # `end' is used to avoid that the second main sed command (meant for
9661 # 0-ary CPP macros) applies to n-ary macro definitions.
9662 # See the Autoconf documentation for `clear'.
9663 cat >confdef2sed.sed <<\_ACEOF
9664 s/[\\&,]/\\&/g
9665 s,[\\$`],\\&,g
9666 t clear
9667 : clear
9668 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9669 t end
9670 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9671 : end
9672 _ACEOF
9673 # If some macros were called several times there might be several times
9674 # the same #defines, which is useless.  Nevertheless, we may not want to
9675 # sort them, since we want the *last* AC-DEFINE to be honored.
9676 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9677 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9678 rm -f confdef2sed.sed
9679
9680 # This sed command replaces #undef with comments.  This is necessary, for
9681 # example, in the case of _POSIX_SOURCE, which is predefined and required
9682 # on some systems where configure will not decide to define it.
9683 cat >>conftest.undefs <<\_ACEOF
9684 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9685 _ACEOF
9686
9687 # Break up conftest.defines because some shells have a limit on the size
9688 # of here documents, and old seds have small limits too (100 cmds).
9689 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9690 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9691 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9692 echo '  :' >>$CONFIG_STATUS
9693 rm -f conftest.tail
9694 while grep . conftest.defines >/dev/null
9695 do
9696   # Write a limited-size here document to $tmp/defines.sed.
9697   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9698   # Speed up: don't consider the non `#define' lines.
9699   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
9700   # Work around the forget-to-reset-the-flag bug.
9701   echo 't clr' >>$CONFIG_STATUS
9702   echo ': clr' >>$CONFIG_STATUS
9703   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9704   echo 'CEOF
9705   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9706   rm -f $tmp/in
9707   mv $tmp/out $tmp/in
9708 ' >>$CONFIG_STATUS
9709   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9710   rm -f conftest.defines
9711   mv conftest.tail conftest.defines
9712 done
9713 rm -f conftest.defines
9714 echo '  fi # grep' >>$CONFIG_STATUS
9715 echo >>$CONFIG_STATUS
9716
9717 # Break up conftest.undefs because some shells have a limit on the size
9718 # of here documents, and old seds have small limits too (100 cmds).
9719 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9720 rm -f conftest.tail
9721 while grep . conftest.undefs >/dev/null
9722 do
9723   # Write a limited-size here document to $tmp/undefs.sed.
9724   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9725   # Speed up: don't consider the non `#undef'
9726   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9727   # Work around the forget-to-reset-the-flag bug.
9728   echo 't clr' >>$CONFIG_STATUS
9729   echo ': clr' >>$CONFIG_STATUS
9730   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9731   echo 'CEOF
9732   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9733   rm -f $tmp/in
9734   mv $tmp/out $tmp/in
9735 ' >>$CONFIG_STATUS
9736   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9737   rm -f conftest.undefs
9738   mv conftest.tail conftest.undefs
9739 done
9740 rm -f conftest.undefs
9741
9742 cat >>$CONFIG_STATUS <<\_ACEOF
9743   # Let's still pretend it is `configure' which instantiates (i.e., don't
9744   # use $as_me), people would be surprised to read:
9745   #    /* config.h.  Generated by config.status.  */
9746   if test x"$ac_file" = x-; then
9747     echo "/* Generated by configure.  */" >$tmp/config.h
9748   else
9749     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9750   fi
9751   cat $tmp/in >>$tmp/config.h
9752   rm -f $tmp/in
9753   if test x"$ac_file" != x-; then
9754     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9755       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9756 echo "$as_me: $ac_file is unchanged" >&6;}
9757     else
9758       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9760          X"$ac_file" : 'X\(//\)[^/]' \| \
9761          X"$ac_file" : 'X\(//\)$' \| \
9762          X"$ac_file" : 'X\(/\)' \| \
9763          .     : '\(.\)' 2>/dev/null ||
9764 echo X"$ac_file" |
9765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9767           /^X\(\/\/\)$/{ s//\1/; q; }
9768           /^X\(\/\).*/{ s//\1/; q; }
9769           s/.*/./; q'`
9770       { if $as_mkdir_p; then
9771     mkdir -p "$ac_dir"
9772   else
9773     as_dir="$ac_dir"
9774     as_dirs=
9775     while test ! -d "$as_dir"; do
9776       as_dirs="$as_dir $as_dirs"
9777       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9779          X"$as_dir" : 'X\(//\)[^/]' \| \
9780          X"$as_dir" : 'X\(//\)$' \| \
9781          X"$as_dir" : 'X\(/\)' \| \
9782          .     : '\(.\)' 2>/dev/null ||
9783 echo X"$as_dir" |
9784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9785           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9786           /^X\(\/\/\)$/{ s//\1/; q; }
9787           /^X\(\/\).*/{ s//\1/; q; }
9788           s/.*/./; q'`
9789     done
9790     test ! -n "$as_dirs" || mkdir $as_dirs
9791   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9793    { (exit 1); exit 1; }; }; }
9794
9795       rm -f $ac_file
9796       mv $tmp/config.h $ac_file
9797     fi
9798   else
9799     cat $tmp/config.h
9800     rm -f $tmp/config.h
9801   fi
9802 done
9803 _ACEOF
9804
9805 cat >>$CONFIG_STATUS <<\_ACEOF
9806
9807 { (exit 0); exit 0; }
9808 _ACEOF
9809 chmod +x $CONFIG_STATUS
9810 ac_clean_files=$ac_clean_files_save
9811
9812
9813 # configure is writing to config.log, and then calls config.status.
9814 # config.status does its own redirection, appending to config.log.
9815 # Unfortunately, on DOS this fails, as config.log is still kept open
9816 # by configure, so config.status won't be able to write to it; its
9817 # output is simply discarded.  So we exec the FD to /dev/null,
9818 # effectively closing config.log, so it can be properly (re)opened and
9819 # appended to by config.status.  When coming back to configure, we
9820 # need to make the FD available again.
9821 if test "$no_create" != yes; then
9822   ac_cs_success=:
9823   exec 5>/dev/null
9824   $SHELL $CONFIG_STATUS || ac_cs_success=false
9825   exec 5>>config.log
9826   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9827   # would make configure fail if this is the last instruction.
9828   $ac_cs_success || { (exit 1); exit 1; }
9829 fi
9830
9831