]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/ntp/sntp/configure
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / ntp / sntp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="main.c"
429 ac_unique_file="header.h"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOPTS_DIR INSTALL_LIBOPTS_TRUE INSTALL_LIBOPTS_FALSE NEED_LIBOPTS_TRUE NEED_LIBOPTS_FALSE LIBOPTS_LDADD LIBOPTS_CFLAGS LIBOBJS BINSUBDIR 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 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --disable-dependency-tracking  speeds up one-time build
1028   --enable-dependency-tracking   do not reject slow dependency extractors
1029   --enable-shared[=PKGS]
1030                           build shared libraries [default=no]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=yes]
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036   --enable-local-libopts  Force using the supplied libopts tearoff code
1037   --disable-libopts-install
1038                           Do not install libopts with client installation
1039   --disable-optional-args not wanting optional option args
1040
1041 Optional Packages:
1042   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045   --with-pic              try to use only PIC/non-PIC objects [default=use
1046                           both]
1047   --with-tags[=TAGS]
1048                           include additional configurations [automatic]
1049   --with-autoopts-config  specify the config-info script
1050   --with-regex-header     a reg expr header is specified
1051   --with-libregex         libregex installation prefix
1052   --with-libregex-cflags  libregex compile flags
1053   --with-libregex-libs    libregex link command arguments
1054   --with-binsubdir        bin ={bin,sbin}
1055
1056 Some influential environment variables:
1057   CC          C compiler command
1058   CFLAGS      C compiler flags
1059   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060               nonstandard directory <lib dir>
1061   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062               headers in a nonstandard directory <include dir>
1063   CPP         C preprocessor
1064   CXX         C++ compiler command
1065   CXXFLAGS    C++ compiler flags
1066   CXXCPP      C++ preprocessor
1067   F77         Fortran 77 compiler command
1068   FFLAGS      Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1145
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd $ac_popdir
1162   done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1172 _ACEOF
1173   exit 0
1174 fi
1175 exec 5>config.log
1176 cat >&5 <<_ACEOF
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1179
1180 It was created by $as_me, which was
1181 generated by GNU Autoconf 2.59.  Invocation command line was
1182
1183   $ $0 $@
1184
1185 _ACEOF
1186 {
1187 cat <<_ASUNAME
1188 ## --------- ##
1189 ## Platform. ##
1190 ## --------- ##
1191
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1200
1201 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1202 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1205 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1206 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1207 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1208
1209 _ASUNAME
1210
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 for as_dir in $PATH
1213 do
1214   IFS=$as_save_IFS
1215   test -z "$as_dir" && as_dir=.
1216   echo "PATH: $as_dir"
1217 done
1218
1219 } >&5
1220
1221 cat >&5 <<_ACEOF
1222
1223
1224 ## ----------- ##
1225 ## Core tests. ##
1226 ## ----------- ##
1227
1228 _ACEOF
1229
1230
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_configure_args=
1237 ac_configure_args0=
1238 ac_configure_args1=
1239 ac_sep=
1240 ac_must_keep_next=false
1241 for ac_pass in 1 2
1242 do
1243   for ac_arg
1244   do
1245     case $ac_arg in
1246     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248     | -silent | --silent | --silen | --sile | --sil)
1249       continue ;;
1250     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252     esac
1253     case $ac_pass in
1254     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255     2)
1256       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257       if test $ac_must_keep_next = true; then
1258         ac_must_keep_next=false # Got value, back to normal.
1259       else
1260         case $ac_arg in
1261           *=* | --config-cache | -C | -disable-* | --disable-* \
1262           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264           | -with-* | --with-* | -without-* | --without-* | --x)
1265             case "$ac_configure_args0 " in
1266               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267             esac
1268             ;;
1269           -* ) ac_must_keep_next=true ;;
1270         esac
1271       fi
1272       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273       # Get rid of the leading space.
1274       ac_sep=" "
1275       ;;
1276     esac
1277   done
1278 done
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log.  We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288   # Save into config.log some information that might help in debugging.
1289   {
1290     echo
1291
1292     cat <<\_ASBOX
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1296 _ASBOX
1297     echo
1298     # The following way of writing the cache mishandles newlines in values,
1299 {
1300   (set) 2>&1 |
1301     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302     *ac_space=\ *)
1303       sed -n \
1304         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306       ;;
1307     *)
1308       sed -n \
1309         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310       ;;
1311     esac;
1312 }
1313     echo
1314
1315     cat <<\_ASBOX
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1319 _ASBOX
1320     echo
1321     for ac_var in $ac_subst_vars
1322     do
1323       eval ac_val=$`echo $ac_var`
1324       echo "$ac_var='"'"'$ac_val'"'"'"
1325     done | sort
1326     echo
1327
1328     if test -n "$ac_subst_files"; then
1329       cat <<\_ASBOX
1330 ## ------------- ##
1331 ## Output files. ##
1332 ## ------------- ##
1333 _ASBOX
1334       echo
1335       for ac_var in $ac_subst_files
1336       do
1337         eval ac_val=$`echo $ac_var`
1338         echo "$ac_var='"'"'$ac_val'"'"'"
1339       done | sort
1340       echo
1341     fi
1342
1343     if test -s confdefs.h; then
1344       cat <<\_ASBOX
1345 ## ----------- ##
1346 ## confdefs.h. ##
1347 ## ----------- ##
1348 _ASBOX
1349       echo
1350       sed "/^$/d" confdefs.h | sort
1351       echo
1352     fi
1353     test "$ac_signal" != 0 &&
1354       echo "$as_me: caught signal $ac_signal"
1355     echo "$as_me: exit $exit_status"
1356   } >&5
1357   rm -f core *.core &&
1358   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359     exit $exit_status
1360      ' 0
1361 for ac_signal in 1 2 13 15; do
1362   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 done
1364 ac_signal=0
1365
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 echo >confdefs.h
1370
1371 # Predefined preprocessor variables.
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 _ACEOF
1396
1397
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401   if test "x$prefix" != xNONE; then
1402     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403   else
1404     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405   fi
1406 fi
1407 for ac_site_file in $CONFIG_SITE; do
1408   if test -r "$ac_site_file"; then
1409     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411     sed 's/^/| /' "$ac_site_file" >&5
1412     . "$ac_site_file"
1413   fi
1414 done
1415
1416 if test -r "$cache_file"; then
1417   # Some versions of bash will fail to source /dev/null (special
1418   # files actually), so we avoid doing that.
1419   if test -f "$cache_file"; then
1420     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1422     case $cache_file in
1423       [\\/]* | ?:[\\/]* ) . $cache_file;;
1424       *)                      . ./$cache_file;;
1425     esac
1426   fi
1427 else
1428   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1430   >$cache_file
1431 fi
1432
1433 # Check that the precious variables saved in the cache have kept the same
1434 # value.
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439   eval ac_new_set=\$ac_env_${ac_var}_set
1440   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441   eval ac_new_val="\$ac_env_${ac_var}_value"
1442   case $ac_old_set,$ac_new_set in
1443     set,)
1444       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446       ac_cache_corrupted=: ;;
1447     ,set)
1448       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450       ac_cache_corrupted=: ;;
1451     ,);;
1452     *)
1453       if test "x$ac_old_val" != "x$ac_new_val"; then
1454         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1457 echo "$as_me:   former value:  $ac_old_val" >&2;}
1458         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1459 echo "$as_me:   current value: $ac_new_val" >&2;}
1460         ac_cache_corrupted=:
1461       fi;;
1462   esac
1463   # Pass precious variables to config.status.
1464   if test "$ac_new_set" = set; then
1465     case $ac_new_val in
1466     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468     *) ac_arg=$ac_var=$ac_new_val ;;
1469     esac
1470     case " $ac_configure_args " in
1471       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1472       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473     esac
1474   fi
1475 done
1476 if $ac_cache_corrupted; then
1477   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481    { (exit 1); exit 1; }; }
1482 fi
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508 am__api_version="1.9"
1509 ac_aux_dir=
1510 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1511   if test -f $ac_dir/install-sh; then
1512     ac_aux_dir=$ac_dir
1513     ac_install_sh="$ac_aux_dir/install-sh -c"
1514     break
1515   elif test -f $ac_dir/install.sh; then
1516     ac_aux_dir=$ac_dir
1517     ac_install_sh="$ac_aux_dir/install.sh -c"
1518     break
1519   elif test -f $ac_dir/shtool; then
1520     ac_aux_dir=$ac_dir
1521     ac_install_sh="$ac_aux_dir/shtool install -c"
1522     break
1523   fi
1524 done
1525 if test -z "$ac_aux_dir"; then
1526   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1527 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1528    { (exit 1); exit 1; }; }
1529 fi
1530 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1531 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1532 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1533
1534 # Find a good install program.  We prefer a C program (faster),
1535 # so one script is as good as another.  But avoid the broken or
1536 # incompatible versions:
1537 # SysV /etc/install, /usr/sbin/install
1538 # SunOS /usr/etc/install
1539 # IRIX /sbin/install
1540 # AIX /bin/install
1541 # AmigaOS /C/install, which installs bootblocks on floppy discs
1542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1545 # OS/2's system install, which has a completely different semantic
1546 # ./install, which can be erroneously created by make from ./install.sh.
1547 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1548 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1549 if test -z "$INSTALL"; then
1550 if test "${ac_cv_path_install+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 for as_dir in $PATH
1555 do
1556   IFS=$as_save_IFS
1557   test -z "$as_dir" && as_dir=.
1558   # Account for people who put trailing slashes in PATH elements.
1559 case $as_dir/ in
1560   ./ | .// | /cC/* | \
1561   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1562   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1563   /usr/ucb/* ) ;;
1564   *)
1565     # OSF1 and SCO ODT 3.0 have their own names for install.
1566     # Don't use installbsd from OSF since it installs stuff as root
1567     # by default.
1568     for ac_prog in ginstall scoinst install; do
1569       for ac_exec_ext in '' $ac_executable_extensions; do
1570         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1571           if test $ac_prog = install &&
1572             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573             # AIX install.  It has an incompatible calling convention.
1574             :
1575           elif test $ac_prog = install &&
1576             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1577             # program-specific install script used by HP pwplus--don't use.
1578             :
1579           else
1580             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1581             break 3
1582           fi
1583         fi
1584       done
1585     done
1586     ;;
1587 esac
1588 done
1589
1590
1591 fi
1592   if test "${ac_cv_path_install+set}" = set; then
1593     INSTALL=$ac_cv_path_install
1594   else
1595     # As a last resort, use the slow shell script.  We don't cache a
1596     # path for INSTALL within a source directory, because that will
1597     # break other packages using the cache if that directory is
1598     # removed, or if the path is relative.
1599     INSTALL=$ac_install_sh
1600   fi
1601 fi
1602 echo "$as_me:$LINENO: result: $INSTALL" >&5
1603 echo "${ECHO_T}$INSTALL" >&6
1604
1605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1606 # It thinks the first close brace ends the variable substitution.
1607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1608
1609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1610
1611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1612
1613 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1614 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1615 # Just in case
1616 sleep 1
1617 echo timestamp > conftest.file
1618 # Do `set' in a subshell so we don't clobber the current shell's
1619 # arguments.  Must try -L first in case configure is actually a
1620 # symlink; some systems play weird games with the mod time of symlinks
1621 # (eg FreeBSD returns the mod time of the symlink's containing
1622 # directory).
1623 if (
1624    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1625    if test "$*" = "X"; then
1626       # -L didn't work.
1627       set X `ls -t $srcdir/configure conftest.file`
1628    fi
1629    rm -f conftest.file
1630    if test "$*" != "X $srcdir/configure conftest.file" \
1631       && test "$*" != "X conftest.file $srcdir/configure"; then
1632
1633       # If neither matched, then we have a broken ls.  This can happen
1634       # if, for instance, CONFIG_SHELL is bash and it inherits a
1635       # broken ls alias from the environment.  This has actually
1636       # happened.  Such a system could not be considered "sane".
1637       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1638 alias in your environment" >&5
1639 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1640 alias in your environment" >&2;}
1641    { (exit 1); exit 1; }; }
1642    fi
1643
1644    test "$2" = conftest.file
1645    )
1646 then
1647    # Ok.
1648    :
1649 else
1650    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1651 Check your system clock" >&5
1652 echo "$as_me: error: newly created file is older than distributed files!
1653 Check your system clock" >&2;}
1654    { (exit 1); exit 1; }; }
1655 fi
1656 echo "$as_me:$LINENO: result: yes" >&5
1657 echo "${ECHO_T}yes" >&6
1658 test "$program_prefix" != NONE &&
1659   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1660 # Use a double $ so make ignores it.
1661 test "$program_suffix" != NONE &&
1662   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1663 # Double any \ or $.  echo might interpret backslashes.
1664 # By default was `s,x,x', remove it if useless.
1665 cat <<\_ACEOF >conftest.sed
1666 s/[\\$]/&&/g;s/;s,x,x,$//
1667 _ACEOF
1668 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1669 rm conftest.sed
1670
1671 # expand $ac_aux_dir to an absolute path
1672 am_aux_dir=`cd $ac_aux_dir && pwd`
1673
1674 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1675 # Use eval to expand $SHELL
1676 if eval "$MISSING --run true"; then
1677   am_missing_run="$MISSING --run "
1678 else
1679   am_missing_run=
1680   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1681 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1682 fi
1683
1684 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1685   # We used to keeping the `.' as first argument, in order to
1686   # allow $(mkdir_p) to be used without argument.  As in
1687   #   $(mkdir_p) $(somedir)
1688   # where $(somedir) is conditionally defined.  However this is wrong
1689   # for two reasons:
1690   #  1. if the package is installed by a user who cannot write `.'
1691   #     make install will fail,
1692   #  2. the above comment should most certainly read
1693   #     $(mkdir_p) $(DESTDIR)$(somedir)
1694   #     so it does not work when $(somedir) is undefined and
1695   #     $(DESTDIR) is not.
1696   #  To support the latter case, we have to write
1697   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1698   #  so the `.' trick is pointless.
1699   mkdir_p='mkdir -p --'
1700 else
1701   # On NextStep and OpenStep, the `mkdir' command does not
1702   # recognize any option.  It will interpret all options as
1703   # directories to create, and then abort because `.' already
1704   # exists.
1705   for d in ./-p ./--version;
1706   do
1707     test -d $d && rmdir $d
1708   done
1709   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1710   if test -f "$ac_aux_dir/mkinstalldirs"; then
1711     mkdir_p='$(mkinstalldirs)'
1712   else
1713     mkdir_p='$(install_sh) -d'
1714   fi
1715 fi
1716
1717 for ac_prog in gawk mawk nawk awk
1718 do
1719   # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_AWK+set}" = set; then
1724   echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726   if test -n "$AWK"; then
1727   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1731 do
1732   IFS=$as_save_IFS
1733   test -z "$as_dir" && as_dir=.
1734   for ac_exec_ext in '' $ac_executable_extensions; do
1735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736     ac_cv_prog_AWK="$ac_prog"
1737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738     break 2
1739   fi
1740 done
1741 done
1742
1743 fi
1744 fi
1745 AWK=$ac_cv_prog_AWK
1746 if test -n "$AWK"; then
1747   echo "$as_me:$LINENO: result: $AWK" >&5
1748 echo "${ECHO_T}$AWK" >&6
1749 else
1750   echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1752 fi
1753
1754   test -n "$AWK" && break
1755 done
1756
1757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   cat >conftest.make <<\_ACEOF
1764 all:
1765         @echo 'ac_maketemp="$(MAKE)"'
1766 _ACEOF
1767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769 if test -n "$ac_maketemp"; then
1770   eval ac_cv_prog_make_${ac_make}_set=yes
1771 else
1772   eval ac_cv_prog_make_${ac_make}_set=no
1773 fi
1774 rm -f conftest.make
1775 fi
1776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777   echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1779   SET_MAKE=
1780 else
1781   echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783   SET_MAKE="MAKE=${MAKE-make}"
1784 fi
1785
1786 rm -rf .tst 2>/dev/null
1787 mkdir .tst 2>/dev/null
1788 if test -d .tst; then
1789   am__leading_dot=.
1790 else
1791   am__leading_dot=_
1792 fi
1793 rmdir .tst 2>/dev/null
1794
1795 # test to see if srcdir already configured
1796 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797    test -f $srcdir/config.status; then
1798   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800    { (exit 1); exit 1; }; }
1801 fi
1802
1803 # test whether we have cygpath
1804 if test -z "$CYGPATH_W"; then
1805   if (cygpath --version) >/dev/null 2>/dev/null; then
1806     CYGPATH_W='cygpath -w'
1807   else
1808     CYGPATH_W=echo
1809   fi
1810 fi
1811
1812
1813 # Define the identity of the package.
1814  PACKAGE=msntp
1815  VERSION=1.6
1816
1817
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE "$PACKAGE"
1820 _ACEOF
1821
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define VERSION "$VERSION"
1825 _ACEOF
1826
1827 # Some tools Automake needs.
1828
1829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1830
1831
1832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1833
1834
1835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1836
1837
1838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1839
1840
1841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1842
1843 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1844
1845 # Installed binaries are usually stripped using `strip' when the user
1846 # run `make install-strip'.  However `strip' might not be the right
1847 # tool to use in cross-compilation environments, therefore Automake
1848 # will honor the `STRIP' environment variable to overrule this program.
1849 if test "$cross_compiling" != no; then
1850   if test -n "$ac_tool_prefix"; then
1851   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1852 set dummy ${ac_tool_prefix}strip; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_STRIP+set}" = set; then
1856   echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858   if test -n "$STRIP"; then
1859   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1863 do
1864   IFS=$as_save_IFS
1865   test -z "$as_dir" && as_dir=.
1866   for ac_exec_ext in '' $ac_executable_extensions; do
1867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870     break 2
1871   fi
1872 done
1873 done
1874
1875 fi
1876 fi
1877 STRIP=$ac_cv_prog_STRIP
1878 if test -n "$STRIP"; then
1879   echo "$as_me:$LINENO: result: $STRIP" >&5
1880 echo "${ECHO_T}$STRIP" >&6
1881 else
1882   echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1884 fi
1885
1886 fi
1887 if test -z "$ac_cv_prog_STRIP"; then
1888   ac_ct_STRIP=$STRIP
1889   # Extract the first word of "strip", so it can be a program name with args.
1890 set dummy strip; ac_word=$2
1891 echo "$as_me:$LINENO: checking for $ac_word" >&5
1892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1894   echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896   if test -n "$ac_ct_STRIP"; then
1897   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1898 else
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   for ac_exec_ext in '' $ac_executable_extensions; do
1905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906     ac_cv_prog_ac_ct_STRIP="strip"
1907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908     break 2
1909   fi
1910 done
1911 done
1912
1913   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1914 fi
1915 fi
1916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1917 if test -n "$ac_ct_STRIP"; then
1918   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1919 echo "${ECHO_T}$ac_ct_STRIP" >&6
1920 else
1921   echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1923 fi
1924
1925   STRIP=$ac_ct_STRIP
1926 else
1927   STRIP="$ac_cv_prog_STRIP"
1928 fi
1929
1930 fi
1931 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1932
1933 # We need awk for the "check" target.  The system "awk" is bad on
1934 # some platforms.
1935 # Always define AMTAR for backward compatibility.
1936
1937 AMTAR=${AMTAR-"${am_missing_run}tar"}
1938
1939 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1940
1941
1942
1943
1944
1945
1946 # Make sure we can run config.sub.
1947 $ac_config_sub sun4 >/dev/null 2>&1 ||
1948   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1949 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1950    { (exit 1); exit 1; }; }
1951
1952 echo "$as_me:$LINENO: checking build system type" >&5
1953 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1954 if test "${ac_cv_build+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   ac_cv_build_alias=$build_alias
1958 test -z "$ac_cv_build_alias" &&
1959   ac_cv_build_alias=`$ac_config_guess`
1960 test -z "$ac_cv_build_alias" &&
1961   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1962 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1963    { (exit 1); exit 1; }; }
1964 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1965   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1966 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1967    { (exit 1); exit 1; }; }
1968
1969 fi
1970 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1971 echo "${ECHO_T}$ac_cv_build" >&6
1972 build=$ac_cv_build
1973 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1974 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1975 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1976
1977
1978 echo "$as_me:$LINENO: checking host system type" >&5
1979 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1980 if test "${ac_cv_host+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   ac_cv_host_alias=$host_alias
1984 test -z "$ac_cv_host_alias" &&
1985   ac_cv_host_alias=$ac_cv_build_alias
1986 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1987   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1988 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1989    { (exit 1); exit 1; }; }
1990
1991 fi
1992 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1993 echo "${ECHO_T}$ac_cv_host" >&6
1994 host=$ac_cv_host
1995 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1996 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1997 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1998
1999
2000           ac_config_headers="$ac_config_headers config.h"
2001
2002
2003 # Checks for programs.
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009 if test -n "$ac_tool_prefix"; then
2010   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   if test -n "$CC"; then
2018   ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   for ac_exec_ext in '' $ac_executable_extensions; do
2026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032 done
2033
2034 fi
2035 fi
2036 CC=$ac_cv_prog_CC
2037 if test -n "$CC"; then
2038   echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2040 else
2041   echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043 fi
2044
2045 fi
2046 if test -z "$ac_cv_prog_CC"; then
2047   ac_ct_CC=$CC
2048   # Extract the first word of "gcc", so it can be a program name with args.
2049 set dummy gcc; ac_word=$2
2050 echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   if test -n "$ac_ct_CC"; then
2056   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057 else
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061   IFS=$as_save_IFS
2062   test -z "$as_dir" && as_dir=.
2063   for ac_exec_ext in '' $ac_executable_extensions; do
2064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065     ac_cv_prog_ac_ct_CC="gcc"
2066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067     break 2
2068   fi
2069 done
2070 done
2071
2072 fi
2073 fi
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6
2078 else
2079   echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6
2081 fi
2082
2083   CC=$ac_ct_CC
2084 else
2085   CC="$ac_cv_prog_CC"
2086 fi
2087
2088 if test -z "$CC"; then
2089   if test -n "$ac_tool_prefix"; then
2090   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2091 set dummy ${ac_tool_prefix}cc; ac_word=$2
2092 echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   if test -n "$CC"; then
2098   ac_cv_prog_CC="$CC" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103   IFS=$as_save_IFS
2104   test -z "$as_dir" && as_dir=.
2105   for ac_exec_ext in '' $ac_executable_extensions; do
2106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107     ac_cv_prog_CC="${ac_tool_prefix}cc"
2108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109     break 2
2110   fi
2111 done
2112 done
2113
2114 fi
2115 fi
2116 CC=$ac_cv_prog_CC
2117 if test -n "$CC"; then
2118   echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6
2120 else
2121   echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2123 fi
2124
2125 fi
2126 if test -z "$ac_cv_prog_CC"; then
2127   ac_ct_CC=$CC
2128   # Extract the first word of "cc", so it can be a program name with args.
2129 set dummy cc; ac_word=$2
2130 echo "$as_me:$LINENO: checking for $ac_word" >&5
2131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   if test -n "$ac_ct_CC"; then
2136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2137 else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2140 do
2141   IFS=$as_save_IFS
2142   test -z "$as_dir" && as_dir=.
2143   for ac_exec_ext in '' $ac_executable_extensions; do
2144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145     ac_cv_prog_ac_ct_CC="cc"
2146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147     break 2
2148   fi
2149 done
2150 done
2151
2152 fi
2153 fi
2154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2155 if test -n "$ac_ct_CC"; then
2156   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2157 echo "${ECHO_T}$ac_ct_CC" >&6
2158 else
2159   echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2161 fi
2162
2163   CC=$ac_ct_CC
2164 else
2165   CC="$ac_cv_prog_CC"
2166 fi
2167
2168 fi
2169 if test -z "$CC"; then
2170   # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test -n "$CC"; then
2178   ac_cv_prog_CC="$CC" # Let the user override the test.
2179 else
2180   ac_prog_rejected=no
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189        ac_prog_rejected=yes
2190        continue
2191      fi
2192     ac_cv_prog_CC="cc"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198
2199 if test $ac_prog_rejected = yes; then
2200   # We found a bogon in the path, so make sure we never use it.
2201   set dummy $ac_cv_prog_CC
2202   shift
2203   if test $# != 0; then
2204     # We chose a different compiler from the bogus one.
2205     # However, it has the same basename, so the bogon will be chosen
2206     # first if we set CC to just the basename; use the full file name.
2207     shift
2208     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2209   fi
2210 fi
2211 fi
2212 fi
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215   echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6
2217 else
2218   echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6
2220 fi
2221
2222 fi
2223 if test -z "$CC"; then
2224   if test -n "$ac_tool_prefix"; then
2225   for ac_prog in cl
2226   do
2227     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_CC+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   if test -n "$CC"; then
2235   ac_cv_prog_CC="$CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242   for ac_exec_ext in '' $ac_executable_extensions; do
2243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246     break 2
2247   fi
2248 done
2249 done
2250
2251 fi
2252 fi
2253 CC=$ac_cv_prog_CC
2254 if test -n "$CC"; then
2255   echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6
2257 else
2258   echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2260 fi
2261
2262     test -n "$CC" && break
2263   done
2264 fi
2265 if test -z "$CC"; then
2266   ac_ct_CC=$CC
2267   for ac_prog in cl
2268 do
2269   # Extract the first word of "$ac_prog", so it can be a program name with args.
2270 set dummy $ac_prog; ac_word=$2
2271 echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   if test -n "$ac_ct_CC"; then
2277   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_exec_ext in '' $ac_executable_extensions; do
2285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286     ac_cv_prog_ac_ct_CC="$ac_prog"
2287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291 done
2292
2293 fi
2294 fi
2295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296 if test -n "$ac_ct_CC"; then
2297   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298 echo "${ECHO_T}$ac_ct_CC" >&6
2299 else
2300   echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2302 fi
2303
2304   test -n "$ac_ct_CC" && break
2305 done
2306
2307   CC=$ac_ct_CC
2308 fi
2309
2310 fi
2311
2312
2313 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: no acceptable C compiler found in \$PATH
2316 See \`config.log' for more details." >&2;}
2317    { (exit 1); exit 1; }; }
2318
2319 # Provide some information about the compiler.
2320 echo "$as_me:$LINENO:" \
2321      "checking for C compiler version" >&5
2322 ac_compiler=`set X $ac_compile; echo $2`
2323 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2324   (eval $ac_compiler --version </dev/null >&5) 2>&5
2325   ac_status=$?
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); }
2328 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2329   (eval $ac_compiler -v </dev/null >&5) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }
2333 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2334   (eval $ac_compiler -V </dev/null >&5) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }
2338
2339 cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 ac_clean_files_save=$ac_clean_files
2355 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2356 # Try to create an executable without -o first, disregard a.out.
2357 # It will help us diagnose broken compilers, and finding out an intuition
2358 # of exeext.
2359 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2360 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2361 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2362 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2363   (eval $ac_link_default) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; then
2367   # Find the output, starting from the most likely.  This scheme is
2368 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2369 # resort.
2370
2371 # Be careful to initialize this variable, since it used to be cached.
2372 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2373 ac_cv_exeext=
2374 # b.out is created by i960 compilers.
2375 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2376 do
2377   test -f "$ac_file" || continue
2378   case $ac_file in
2379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2380         ;;
2381     conftest.$ac_ext )
2382         # This is the source file.
2383         ;;
2384     [ab].out )
2385         # We found the default executable, but exeext='' is most
2386         # certainly right.
2387         break;;
2388     *.* )
2389         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2390         # FIXME: I believe we export ac_cv_exeext for Libtool,
2391         # but it would be cool to find out if it's true.  Does anybody
2392         # maintain Libtool? --akim.
2393         export ac_cv_exeext
2394         break;;
2395     * )
2396         break;;
2397   esac
2398 done
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&2;}
2407    { (exit 77); exit 77; }; }
2408 fi
2409
2410 ac_exeext=$ac_cv_exeext
2411 echo "$as_me:$LINENO: result: $ac_file" >&5
2412 echo "${ECHO_T}$ac_file" >&6
2413
2414 # Check the compiler produces executables we can run.  If not, either
2415 # the compiler is broken, or we cross compile.
2416 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2418 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419 # If not cross compiling, check that we can run a simple program.
2420 if test "$cross_compiling" != yes; then
2421   if { ac_try='./$ac_file'
2422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423   (eval $ac_try) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; }; then
2427     cross_compiling=no
2428   else
2429     if test "$cross_compiling" = maybe; then
2430         cross_compiling=yes
2431     else
2432         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2433 If you meant to cross compile, use \`--host'.
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&2;}
2438    { (exit 1); exit 1; }; }
2439     fi
2440   fi
2441 fi
2442 echo "$as_me:$LINENO: result: yes" >&5
2443 echo "${ECHO_T}yes" >&6
2444
2445 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2446 ac_clean_files=$ac_clean_files_save
2447 # Check the compiler produces executables we can run.  If not, either
2448 # the compiler is broken, or we cross compile.
2449 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2450 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2451 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2452 echo "${ECHO_T}$cross_compiling" >&6
2453
2454 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2455 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2457   (eval $ac_link) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; then
2461   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2462 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2463 # work properly (i.e., refer to `conftest.exe'), while it won't with
2464 # `rm'.
2465 for ac_file in conftest.exe conftest conftest.*; do
2466   test -f "$ac_file" || continue
2467   case $ac_file in
2468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2469     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2470           export ac_cv_exeext
2471           break;;
2472     * ) break;;
2473   esac
2474 done
2475 else
2476   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2479 See \`config.log' for more details." >&2;}
2480    { (exit 1); exit 1; }; }
2481 fi
2482
2483 rm -f conftest$ac_cv_exeext
2484 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2485 echo "${ECHO_T}$ac_cv_exeext" >&6
2486
2487 rm -f conftest.$ac_ext
2488 EXEEXT=$ac_cv_exeext
2489 ac_exeext=$EXEEXT
2490 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2491 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2492 if test "${ac_cv_objext+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501
2502 int
2503 main ()
2504 {
2505
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 rm -f conftest.o conftest.obj
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512   (eval $ac_compile) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; then
2516   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2517   case $ac_file in
2518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2519     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2520        break;;
2521   esac
2522 done
2523 else
2524   echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2530 See \`config.log' for more details." >&2;}
2531    { (exit 1); exit 1; }; }
2532 fi
2533
2534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 fi
2536 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2537 echo "${ECHO_T}$ac_cv_objext" >&6
2538 OBJEXT=$ac_cv_objext
2539 ac_objext=$OBJEXT
2540 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h.  */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h.  */
2551
2552 int
2553 main ()
2554 {
2555 #ifndef __GNUC__
2556        choke me
2557 #endif
2558
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565   (eval $ac_compile) 2>conftest.er1
2566   ac_status=$?
2567   grep -v '^ *+' conftest.er1 >conftest.err
2568   rm -f conftest.er1
2569   cat conftest.err >&5
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); } &&
2572          { ac_try='test -z "$ac_c_werror_flag"
2573                          || test ! -s conftest.err'
2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575   (eval $ac_try) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; } &&
2579          { ac_try='test -s conftest.$ac_objext'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585   ac_compiler_gnu=yes
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 ac_compiler_gnu=no
2591 fi
2592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2594
2595 fi
2596 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2597 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2598 GCC=`test $ac_compiler_gnu = yes && echo yes`
2599 ac_test_CFLAGS=${CFLAGS+set}
2600 ac_save_CFLAGS=$CFLAGS
2601 CFLAGS="-g"
2602 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2603 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2604 if test "${ac_cv_prog_cc_g+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h.  */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h.  */
2613
2614 int
2615 main ()
2616 {
2617
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 rm -f conftest.$ac_objext
2623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624   (eval $ac_compile) 2>conftest.er1
2625   ac_status=$?
2626   grep -v '^ *+' conftest.er1 >conftest.err
2627   rm -f conftest.er1
2628   cat conftest.err >&5
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } &&
2631          { ac_try='test -z "$ac_c_werror_flag"
2632                          || test ! -s conftest.err'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; } &&
2638          { ac_try='test -s conftest.$ac_objext'
2639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640   (eval $ac_try) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; }; then
2644   ac_cv_prog_cc_g=yes
2645 else
2646   echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2648
2649 ac_cv_prog_cc_g=no
2650 fi
2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2652 fi
2653 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2654 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2655 if test "$ac_test_CFLAGS" = set; then
2656   CFLAGS=$ac_save_CFLAGS
2657 elif test $ac_cv_prog_cc_g = yes; then
2658   if test "$GCC" = yes; then
2659     CFLAGS="-g -O2"
2660   else
2661     CFLAGS="-g"
2662   fi
2663 else
2664   if test "$GCC" = yes; then
2665     CFLAGS="-O2"
2666   else
2667     CFLAGS=
2668   fi
2669 fi
2670 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2671 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2672 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   ac_cv_prog_cc_stdc=no
2676 ac_save_CC=$CC
2677 cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683 #include <stdarg.h>
2684 #include <stdio.h>
2685 #include <sys/types.h>
2686 #include <sys/stat.h>
2687 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2688 struct buf { int x; };
2689 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2690 static char *e (p, i)
2691      char **p;
2692      int i;
2693 {
2694   return p[i];
2695 }
2696 static char *f (char * (*g) (char **, int), char **p, ...)
2697 {
2698   char *s;
2699   va_list v;
2700   va_start (v,p);
2701   s = g (p, va_arg (v,int));
2702   va_end (v);
2703   return s;
2704 }
2705
2706 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2707    function prototypes and stuff, but not '\xHH' hex character constants.
2708    These don't provoke an error unfortunately, instead are silently treated
2709    as 'x'.  The following induces an error, until -std1 is added to get
2710    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2711    array size at least.  It's necessary to write '\x00'==0 to get something
2712    that's true only with -std1.  */
2713 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2714
2715 int test (int i, double x);
2716 struct s1 {int (*f) (int a);};
2717 struct s2 {int (*f) (double a);};
2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2719 int argc;
2720 char **argv;
2721 int
2722 main ()
2723 {
2724 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 # Don't try gcc -ansi; that turns off useful extensions and
2730 # breaks some systems' header files.
2731 # AIX                   -qlanglvl=ansi
2732 # Ultrix and OSF/1      -std1
2733 # HP-UX 10.20 and later -Ae
2734 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2735 # SVR4                  -Xc -D__EXTENSIONS__
2736 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2737 do
2738   CC="$ac_save_CC $ac_arg"
2739   rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741   (eval $ac_compile) 2>conftest.er1
2742   ac_status=$?
2743   grep -v '^ *+' conftest.er1 >conftest.err
2744   rm -f conftest.er1
2745   cat conftest.err >&5
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } &&
2748          { ac_try='test -z "$ac_c_werror_flag"
2749                          || test ! -s conftest.err'
2750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751   (eval $ac_try) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; } &&
2755          { ac_try='test -s conftest.$ac_objext'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; }; then
2761   ac_cv_prog_cc_stdc=$ac_arg
2762 break
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 fi
2768 rm -f conftest.err conftest.$ac_objext
2769 done
2770 rm -f conftest.$ac_ext conftest.$ac_objext
2771 CC=$ac_save_CC
2772
2773 fi
2774
2775 case "x$ac_cv_prog_cc_stdc" in
2776   x|xno)
2777     echo "$as_me:$LINENO: result: none needed" >&5
2778 echo "${ECHO_T}none needed" >&6 ;;
2779   *)
2780     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2781 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2782     CC="$CC $ac_cv_prog_cc_stdc" ;;
2783 esac
2784
2785 # Some people use a C++ compiler to compile C.  Since we use `exit',
2786 # in C++ we need to declare it.  In case someone uses the same compiler
2787 # for both compiling C and C++ we need to have the C++ compiler decide
2788 # the declaration of exit, since it's the most demanding environment.
2789 cat >conftest.$ac_ext <<_ACEOF
2790 #ifndef __cplusplus
2791   choke me
2792 #endif
2793 _ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796   (eval $ac_compile) 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } &&
2803          { ac_try='test -z "$ac_c_werror_flag"
2804                          || test ! -s conftest.err'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; } &&
2810          { ac_try='test -s conftest.$ac_objext'
2811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816   for ac_declaration in \
2817    '' \
2818    'extern "C" void std::exit (int) throw (); using std::exit;' \
2819    'extern "C" void std::exit (int); using std::exit;' \
2820    'extern "C" void exit (int) throw ();' \
2821    'extern "C" void exit (int);' \
2822    'void exit (int);'
2823 do
2824   cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h.  */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h.  */
2830 $ac_declaration
2831 #include <stdlib.h>
2832 int
2833 main ()
2834 {
2835 exit (42);
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842   (eval $ac_compile) 2>conftest.er1
2843   ac_status=$?
2844   grep -v '^ *+' conftest.er1 >conftest.err
2845   rm -f conftest.er1
2846   cat conftest.err >&5
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); } &&
2849          { ac_try='test -z "$ac_c_werror_flag"
2850                          || test ! -s conftest.err'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; } &&
2856          { ac_try='test -s conftest.$ac_objext'
2857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; }; then
2862   :
2863 else
2864   echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 continue
2868 fi
2869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870   cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876 $ac_declaration
2877 int
2878 main ()
2879 {
2880 exit (42);
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887   (eval $ac_compile) 2>conftest.er1
2888   ac_status=$?
2889   grep -v '^ *+' conftest.er1 >conftest.err
2890   rm -f conftest.er1
2891   cat conftest.err >&5
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } &&
2894          { ac_try='test -z "$ac_c_werror_flag"
2895                          || test ! -s conftest.err'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; } &&
2901          { ac_try='test -s conftest.$ac_objext'
2902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903   (eval $ac_try) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; }; then
2907   break
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 fi
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 done
2915 rm -f conftest*
2916 if test -n "$ac_declaration"; then
2917   echo '#ifdef __cplusplus' >>confdefs.h
2918   echo $ac_declaration      >>confdefs.h
2919   echo '#endif'             >>confdefs.h
2920 fi
2921
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 fi
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 DEPDIR="${am__leading_dot}deps"
2934
2935           ac_config_commands="$ac_config_commands depfiles"
2936
2937
2938 am_make=${MAKE-make}
2939 cat > confinc << 'END'
2940 am__doit:
2941         @echo done
2942 .PHONY: am__doit
2943 END
2944 # If we don't find an include directive, just comment out the code.
2945 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2946 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2947 am__include="#"
2948 am__quote=
2949 _am_result=none
2950 # First try GNU make style include.
2951 echo "include confinc" > confmf
2952 # We grep out `Entering directory' and `Leaving directory'
2953 # messages which can occur if `w' ends up in MAKEFLAGS.
2954 # In particular we don't look at `^make:' because GNU make might
2955 # be invoked under some other name (usually "gmake"), in which
2956 # case it prints its new name instead of `make'.
2957 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2958    am__include=include
2959    am__quote=
2960    _am_result=GNU
2961 fi
2962 # Now try BSD make style include.
2963 if test "$am__include" = "#"; then
2964    echo '.include "confinc"' > confmf
2965    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2966       am__include=.include
2967       am__quote="\""
2968       _am_result=BSD
2969    fi
2970 fi
2971
2972
2973 echo "$as_me:$LINENO: result: $_am_result" >&5
2974 echo "${ECHO_T}$_am_result" >&6
2975 rm -f confinc confmf
2976
2977 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2978 if test "${enable_dependency_tracking+set}" = set; then
2979   enableval="$enable_dependency_tracking"
2980
2981 fi;
2982 if test "x$enable_dependency_tracking" != xno; then
2983   am_depcomp="$ac_aux_dir/depcomp"
2984   AMDEPBACKSLASH='\'
2985 fi
2986
2987
2988 if test "x$enable_dependency_tracking" != xno; then
2989   AMDEP_TRUE=
2990   AMDEP_FALSE='#'
2991 else
2992   AMDEP_TRUE='#'
2993   AMDEP_FALSE=
2994 fi
2995
2996
2997
2998
2999 depcc="$CC"   am_compiler_list=
3000
3001 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3002 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3003 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3007   # We make a subdir and do the tests there.  Otherwise we can end up
3008   # making bogus files that we don't know about and never remove.  For
3009   # instance it was reported that on HP-UX the gcc test will end up
3010   # making a dummy file named `D' -- because `-MD' means `put the output
3011   # in D'.
3012   mkdir conftest.dir
3013   # Copy depcomp to subdir because otherwise we won't find it if we're
3014   # using a relative directory.
3015   cp "$am_depcomp" conftest.dir
3016   cd conftest.dir
3017   # We will build objects and dependencies in a subdirectory because
3018   # it helps to detect inapplicable dependency modes.  For instance
3019   # both Tru64's cc and ICC support -MD to output dependencies as a
3020   # side effect of compilation, but ICC will put the dependencies in
3021   # the current directory while Tru64 will put them in the object
3022   # directory.
3023   mkdir sub
3024
3025   am_cv_CC_dependencies_compiler_type=none
3026   if test "$am_compiler_list" = ""; then
3027      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3028   fi
3029   for depmode in $am_compiler_list; do
3030     # Setup a source with many dependencies, because some compilers
3031     # like to wrap large dependency lists on column 80 (with \), and
3032     # we should not choose a depcomp mode which is confused by this.
3033     #
3034     # We need to recreate these files for each test, as the compiler may
3035     # overwrite some of them when testing with obscure command lines.
3036     # This happens at least with the AIX C compiler.
3037     : > sub/conftest.c
3038     for i in 1 2 3 4 5 6; do
3039       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3040       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3041       # Solaris 8's {/usr,}/bin/sh.
3042       touch sub/conftst$i.h
3043     done
3044     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3045
3046     case $depmode in
3047     nosideeffect)
3048       # after this tag, mechanisms are not by side-effect, so they'll
3049       # only be used when explicitly requested
3050       if test "x$enable_dependency_tracking" = xyes; then
3051         continue
3052       else
3053         break
3054       fi
3055       ;;
3056     none) break ;;
3057     esac
3058     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3059     # mode.  It turns out that the SunPro C++ compiler does not properly
3060     # handle `-M -o', and we need to detect this.
3061     if depmode=$depmode \
3062        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3063        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3064        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3065          >/dev/null 2>conftest.err &&
3066        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3067        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3068        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3069       # icc doesn't choke on unknown options, it will just issue warnings
3070       # or remarks (even with -Werror).  So we grep stderr for any message
3071       # that says an option was ignored or not supported.
3072       # When given -MP, icc 7.0 and 7.1 complain thusly:
3073       #   icc: Command line warning: ignoring option '-M'; no argument required
3074       # The diagnosis changed in icc 8.0:
3075       #   icc: Command line remark: option '-MP' not supported
3076       if (grep 'ignoring option' conftest.err ||
3077           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3078         am_cv_CC_dependencies_compiler_type=$depmode
3079         break
3080       fi
3081     fi
3082   done
3083
3084   cd ..
3085   rm -rf conftest.dir
3086 else
3087   am_cv_CC_dependencies_compiler_type=none
3088 fi
3089
3090 fi
3091 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3092 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3094
3095
3096
3097 if
3098   test "x$enable_dependency_tracking" != xno \
3099   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3100   am__fastdepCC_TRUE=
3101   am__fastdepCC_FALSE='#'
3102 else
3103   am__fastdepCC_TRUE='#'
3104   am__fastdepCC_FALSE=
3105 fi
3106
3107
3108
3109 # So far, the only shared library we might use is libopts.
3110 # It's a small library - we might as well use a static version of it.
3111 # Check whether --enable-shared or --disable-shared was given.
3112 if test "${enable_shared+set}" = set; then
3113   enableval="$enable_shared"
3114   p=${PACKAGE-default}
3115     case $enableval in
3116     yes) enable_shared=yes ;;
3117     no) enable_shared=no ;;
3118     *)
3119       enable_shared=no
3120       # Look at the argument we got.  We use all the common list separators.
3121       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3122       for pkg in $enableval; do
3123         IFS="$lt_save_ifs"
3124         if test "X$pkg" = "X$p"; then
3125           enable_shared=yes
3126         fi
3127       done
3128       IFS="$lt_save_ifs"
3129       ;;
3130     esac
3131 else
3132   enable_shared=no
3133 fi;
3134
3135
3136
3137 # Check whether --enable-static or --disable-static was given.
3138 if test "${enable_static+set}" = set; then
3139   enableval="$enable_static"
3140   p=${PACKAGE-default}
3141     case $enableval in
3142     yes) enable_static=yes ;;
3143     no) enable_static=no ;;
3144     *)
3145      enable_static=no
3146       # Look at the argument we got.  We use all the common list separators.
3147       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3148       for pkg in $enableval; do
3149         IFS="$lt_save_ifs"
3150         if test "X$pkg" = "X$p"; then
3151           enable_static=yes
3152         fi
3153       done
3154       IFS="$lt_save_ifs"
3155       ;;
3156     esac
3157 else
3158   enable_static=yes
3159 fi;
3160
3161 # Check whether --enable-fast-install or --disable-fast-install was given.
3162 if test "${enable_fast_install+set}" = set; then
3163   enableval="$enable_fast_install"
3164   p=${PACKAGE-default}
3165     case $enableval in
3166     yes) enable_fast_install=yes ;;
3167     no) enable_fast_install=no ;;
3168     *)
3169       enable_fast_install=no
3170       # Look at the argument we got.  We use all the common list separators.
3171       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3172       for pkg in $enableval; do
3173         IFS="$lt_save_ifs"
3174         if test "X$pkg" = "X$p"; then
3175           enable_fast_install=yes
3176         fi
3177       done
3178       IFS="$lt_save_ifs"
3179       ;;
3180     esac
3181 else
3182   enable_fast_install=yes
3183 fi;
3184
3185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3187 if test "${lt_cv_path_SED+set}" = set; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   # Loop through the user's path and test for sed and gsed.
3191 # Then use that list of sed's as ones to test for truncation.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197   for lt_ac_prog in sed gsed; do
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3200         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3201       fi
3202     done
3203   done
3204 done
3205 lt_ac_max=0
3206 lt_ac_count=0
3207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3208 # along with /bin/sed that truncates output.
3209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3210   test ! -f $lt_ac_sed && continue
3211   cat /dev/null > conftest.in
3212   lt_ac_count=0
3213   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3214   # Check for GNU sed and select it if it is found.
3215   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3216     lt_cv_path_SED=$lt_ac_sed
3217     break
3218   fi
3219   while true; do
3220     cat conftest.in conftest.in >conftest.tmp
3221     mv conftest.tmp conftest.in
3222     cp conftest.in conftest.nl
3223     echo >>conftest.nl
3224     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3225     cmp -s conftest.out conftest.nl || break
3226     # 10000 chars as input seems more than enough
3227     test $lt_ac_count -gt 10 && break
3228     lt_ac_count=`expr $lt_ac_count + 1`
3229     if test $lt_ac_count -gt $lt_ac_max; then
3230       lt_ac_max=$lt_ac_count
3231       lt_cv_path_SED=$lt_ac_sed
3232     fi
3233   done
3234 done
3235
3236 fi
3237
3238 SED=$lt_cv_path_SED
3239 echo "$as_me:$LINENO: result: $SED" >&5
3240 echo "${ECHO_T}$SED" >&6
3241
3242 echo "$as_me:$LINENO: checking for egrep" >&5
3243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3244 if test "${ac_cv_prog_egrep+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3248     then ac_cv_prog_egrep='grep -E'
3249     else ac_cv_prog_egrep='egrep'
3250     fi
3251 fi
3252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3254  EGREP=$ac_cv_prog_egrep
3255
3256
3257
3258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3259 if test "${with_gnu_ld+set}" = set; then
3260   withval="$with_gnu_ld"
3261   test "$withval" = no || with_gnu_ld=yes
3262 else
3263   with_gnu_ld=no
3264 fi;
3265 ac_prog=ld
3266 if test "$GCC" = yes; then
3267   # Check if gcc -print-prog-name=ld gives a path.
3268   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3270   case $host in
3271   *-*-mingw*)
3272     # gcc leaves a trailing carriage return which upsets mingw
3273     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3274   *)
3275     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3276   esac
3277   case $ac_prog in
3278     # Accept absolute paths.
3279     [\\/]* | ?:[\\/]*)
3280       re_direlt='/[^/][^/]*/\.\./'
3281       # Canonicalize the pathname of ld
3282       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3283       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3284         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3285       done
3286       test -z "$LD" && LD="$ac_prog"
3287       ;;
3288   "")
3289     # If it fails, then pretend we aren't using GCC.
3290     ac_prog=ld
3291     ;;
3292   *)
3293     # If it is relative, then search for the first ld in PATH.
3294     with_gnu_ld=unknown
3295     ;;
3296   esac
3297 elif test "$with_gnu_ld" = yes; then
3298   echo "$as_me:$LINENO: checking for GNU ld" >&5
3299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3300 else
3301   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3303 fi
3304 if test "${lt_cv_path_LD+set}" = set; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   if test -z "$LD"; then
3308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3309   for ac_dir in $PATH; do
3310     IFS="$lt_save_ifs"
3311     test -z "$ac_dir" && ac_dir=.
3312     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3313       lt_cv_path_LD="$ac_dir/$ac_prog"
3314       # Check to see if the program is GNU ld.  I'd rather use --version,
3315       # but apparently some variants of GNU ld only accept -v.
3316       # Break only if it was the GNU/non-GNU ld that we prefer.
3317       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3318       *GNU* | *'with BFD'*)
3319         test "$with_gnu_ld" != no && break
3320         ;;
3321       *)
3322         test "$with_gnu_ld" != yes && break
3323         ;;
3324       esac
3325     fi
3326   done
3327   IFS="$lt_save_ifs"
3328 else
3329   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3330 fi
3331 fi
3332
3333 LD="$lt_cv_path_LD"
3334 if test -n "$LD"; then
3335   echo "$as_me:$LINENO: result: $LD" >&5
3336 echo "${ECHO_T}$LD" >&6
3337 else
3338   echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6
3340 fi
3341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3343    { (exit 1); exit 1; }; }
3344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3350 case `$LD -v 2>&1 </dev/null` in
3351 *GNU* | *'with BFD'*)
3352   lt_cv_prog_gnu_ld=yes
3353   ;;
3354 *)
3355   lt_cv_prog_gnu_ld=no
3356   ;;
3357 esac
3358 fi
3359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3361 with_gnu_ld=$lt_cv_prog_gnu_ld
3362
3363
3364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3366 if test "${lt_cv_ld_reload_flag+set}" = set; then
3367   echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369   lt_cv_ld_reload_flag='-r'
3370 fi
3371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3373 reload_flag=$lt_cv_ld_reload_flag
3374 case $reload_flag in
3375 "" | " "*) ;;
3376 *) reload_flag=" $reload_flag" ;;
3377 esac
3378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3379 case $host_os in
3380   darwin*)
3381     if test "$GCC" = yes; then
3382       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3383     else
3384       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3385     fi
3386     ;;
3387 esac
3388
3389 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3391 if test "${lt_cv_path_NM+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   if test -n "$NM"; then
3395   # Let the user override the test.
3396   lt_cv_path_NM="$NM"
3397 else
3398   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3399   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3400     IFS="$lt_save_ifs"
3401     test -z "$ac_dir" && ac_dir=.
3402     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3403     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3404       # Check to see if the nm accepts a BSD-compat flag.
3405       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3406       #   nm: unknown option "B" ignored
3407       # Tru64's nm complains that /dev/null is an invalid object file
3408       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3409       */dev/null* | *'Invalid file or object type'*)
3410         lt_cv_path_NM="$tmp_nm -B"
3411         break
3412         ;;
3413       *)
3414         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3415         */dev/null*)
3416           lt_cv_path_NM="$tmp_nm -p"
3417           break
3418           ;;
3419         *)
3420           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3421           continue # so that we can try to find one that supports BSD flags
3422           ;;
3423         esac
3424       esac
3425     fi
3426   done
3427   IFS="$lt_save_ifs"
3428   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3429 fi
3430 fi
3431 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3432 echo "${ECHO_T}$lt_cv_path_NM" >&6
3433 NM="$lt_cv_path_NM"
3434
3435 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3436 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3437 LN_S=$as_ln_s
3438 if test "$LN_S" = "ln -s"; then
3439   echo "$as_me:$LINENO: result: yes" >&5
3440 echo "${ECHO_T}yes" >&6
3441 else
3442   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3443 echo "${ECHO_T}no, using $LN_S" >&6
3444 fi
3445
3446 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3447 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3448 if test "${lt_cv_deplibs_check_method+set}" = set; then
3449   echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451   lt_cv_file_magic_cmd='$MAGIC_CMD'
3452 lt_cv_file_magic_test_file=
3453 lt_cv_deplibs_check_method='unknown'
3454 # Need to set the preceding variable on all platforms that support
3455 # interlibrary dependencies.
3456 # 'none' -- dependencies not supported.
3457 # `unknown' -- same as none, but documents that we really don't know.
3458 # 'pass_all' -- all dependencies passed with no checks.
3459 # 'test_compile' -- check by making test program.
3460 # 'file_magic [[regex]]' -- check by looking for files in library path
3461 # which responds to the $file_magic_cmd with a given extended regex.
3462 # If you have `file' or equivalent on your system and you're not sure
3463 # whether `pass_all' will *always* work, you probably want this one.
3464
3465 case $host_os in
3466 aix4* | aix5*)
3467   lt_cv_deplibs_check_method=pass_all
3468   ;;
3469
3470 beos*)
3471   lt_cv_deplibs_check_method=pass_all
3472   ;;
3473
3474 bsdi[45]*)
3475   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3476   lt_cv_file_magic_cmd='/usr/bin/file -L'
3477   lt_cv_file_magic_test_file=/shlib/libc.so
3478   ;;
3479
3480 cygwin*)
3481   # func_win32_libid is a shell function defined in ltmain.sh
3482   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3483   lt_cv_file_magic_cmd='func_win32_libid'
3484   ;;
3485
3486 mingw* | pw32*)
3487   # Base MSYS/MinGW do not provide the 'file' command needed by
3488   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3489   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3490   lt_cv_file_magic_cmd='$OBJDUMP -f'
3491   ;;
3492
3493 darwin* | rhapsody*)
3494   lt_cv_deplibs_check_method=pass_all
3495   ;;
3496
3497 freebsd* | kfreebsd*-gnu | dragonfly*)
3498   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3499     case $host_cpu in
3500     i*86 )
3501       # Not sure whether the presence of OpenBSD here was a mistake.
3502       # Let's accept both of them until this is cleared up.
3503       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3504       lt_cv_file_magic_cmd=/usr/bin/file
3505       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3506       ;;
3507     esac
3508   else
3509     lt_cv_deplibs_check_method=pass_all
3510   fi
3511   ;;
3512
3513 gnu*)
3514   lt_cv_deplibs_check_method=pass_all
3515   ;;
3516
3517 hpux10.20* | hpux11*)
3518   lt_cv_file_magic_cmd=/usr/bin/file
3519   case $host_cpu in
3520   ia64*)
3521     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3522     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3523     ;;
3524   hppa*64*)
3525     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3526     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3527     ;;
3528   *)
3529     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3530     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3531     ;;
3532   esac
3533   ;;
3534
3535 irix5* | irix6* | nonstopux*)
3536   case $LD in
3537   *-32|*"-32 ") libmagic=32-bit;;
3538   *-n32|*"-n32 ") libmagic=N32;;
3539   *-64|*"-64 ") libmagic=64-bit;;
3540   *) libmagic=never-match;;
3541   esac
3542   lt_cv_deplibs_check_method=pass_all
3543   ;;
3544
3545 # This must be Linux ELF.
3546 linux*)
3547   lt_cv_deplibs_check_method=pass_all
3548   ;;
3549
3550 netbsd*)
3551   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3553   else
3554     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3555   fi
3556   ;;
3557
3558 newos6*)
3559   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3560   lt_cv_file_magic_cmd=/usr/bin/file
3561   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3562   ;;
3563
3564 nto-qnx*)
3565   lt_cv_deplibs_check_method=unknown
3566   ;;
3567
3568 openbsd*)
3569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3570     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3571   else
3572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3573   fi
3574   ;;
3575
3576 osf3* | osf4* | osf5*)
3577   lt_cv_deplibs_check_method=pass_all
3578   ;;
3579
3580 sco3.2v5*)
3581   lt_cv_deplibs_check_method=pass_all
3582   ;;
3583
3584 solaris*)
3585   lt_cv_deplibs_check_method=pass_all
3586   ;;
3587
3588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3589   case $host_vendor in
3590   motorola)
3591     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]'
3592     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3593     ;;
3594   ncr)
3595     lt_cv_deplibs_check_method=pass_all
3596     ;;
3597   sequent)
3598     lt_cv_file_magic_cmd='/bin/file'
3599     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3600     ;;
3601   sni)
3602     lt_cv_file_magic_cmd='/bin/file'
3603     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3604     lt_cv_file_magic_test_file=/lib/libc.so
3605     ;;
3606   siemens)
3607     lt_cv_deplibs_check_method=pass_all
3608     ;;
3609   esac
3610   ;;
3611
3612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3613   lt_cv_deplibs_check_method=pass_all
3614   ;;
3615 esac
3616
3617 fi
3618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3620 file_magic_cmd=$lt_cv_file_magic_cmd
3621 deplibs_check_method=$lt_cv_deplibs_check_method
3622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3623
3624
3625
3626
3627 # If no C compiler was specified, use CC.
3628 LTCC=${LTCC-"$CC"}
3629
3630 # Allow CC to be a program name with arguments.
3631 compiler=$CC
3632
3633
3634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3635 if test "${enable_libtool_lock+set}" = set; then
3636   enableval="$enable_libtool_lock"
3637
3638 fi;
3639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3640
3641 # Some flags need to be propagated to the compiler or linker for good
3642 # libtool support.
3643 case $host in
3644 ia64-*-hpux*)
3645   # Find out which ABI we are using.
3646   echo 'int i;' > conftest.$ac_ext
3647   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648   (eval $ac_compile) 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); }; then
3652     case `/usr/bin/file conftest.$ac_objext` in
3653     *ELF-32*)
3654       HPUX_IA64_MODE="32"
3655       ;;
3656     *ELF-64*)
3657       HPUX_IA64_MODE="64"
3658       ;;
3659     esac
3660   fi
3661   rm -rf conftest*
3662   ;;
3663 *-*-irix6*)
3664   # Find out which ABI we are using.
3665   echo '#line 3665 "configure"' > conftest.$ac_ext
3666   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667   (eval $ac_compile) 2>&5
3668   ac_status=$?
3669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; then
3671    if test "$lt_cv_prog_gnu_ld" = yes; then
3672     case `/usr/bin/file conftest.$ac_objext` in
3673     *32-bit*)
3674       LD="${LD-ld} -melf32bsmip"
3675       ;;
3676     *N32*)
3677       LD="${LD-ld} -melf32bmipn32"
3678       ;;
3679     *64-bit*)
3680       LD="${LD-ld} -melf64bmip"
3681       ;;
3682     esac
3683    else
3684     case `/usr/bin/file conftest.$ac_objext` in
3685     *32-bit*)
3686       LD="${LD-ld} -32"
3687       ;;
3688     *N32*)
3689       LD="${LD-ld} -n32"
3690       ;;
3691     *64-bit*)
3692       LD="${LD-ld} -64"
3693       ;;
3694     esac
3695    fi
3696   fi
3697   rm -rf conftest*
3698   ;;
3699
3700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3701   # Find out which ABI we are using.
3702   echo 'int i;' > conftest.$ac_ext
3703   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704   (eval $ac_compile) 2>&5
3705   ac_status=$?
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); }; then
3708     case `/usr/bin/file conftest.o` in
3709     *32-bit*)
3710       case $host in
3711         x86_64-*linux*)
3712           LD="${LD-ld} -m elf_i386"
3713           ;;
3714         ppc64-*linux*|powerpc64-*linux*)
3715           LD="${LD-ld} -m elf32ppclinux"
3716           ;;
3717         s390x-*linux*)
3718           LD="${LD-ld} -m elf_s390"
3719           ;;
3720         sparc64-*linux*)
3721           LD="${LD-ld} -m elf32_sparc"
3722           ;;
3723       esac
3724       ;;
3725     *64-bit*)
3726       case $host in
3727         x86_64-*linux*)
3728           LD="${LD-ld} -m elf_x86_64"
3729           ;;
3730         ppc*-*linux*|powerpc*-*linux*)
3731           LD="${LD-ld} -m elf64ppc"
3732           ;;
3733         s390*-*linux*)
3734           LD="${LD-ld} -m elf64_s390"
3735           ;;
3736         sparc*-*linux*)
3737           LD="${LD-ld} -m elf64_sparc"
3738           ;;
3739       esac
3740       ;;
3741     esac
3742   fi
3743   rm -rf conftest*
3744   ;;
3745
3746 *-*-sco3.2v5*)
3747   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3748   SAVE_CFLAGS="$CFLAGS"
3749   CFLAGS="$CFLAGS -belf"
3750   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3752 if test "${lt_cv_cc_needs_belf+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761      cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h.  */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h.  */
3767
3768 int
3769 main ()
3770 {
3771
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778   (eval $ac_link) 2>conftest.er1
3779   ac_status=$?
3780   grep -v '^ *+' conftest.er1 >conftest.err
3781   rm -f conftest.er1
3782   cat conftest.err >&5
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); } &&
3785          { ac_try='test -z "$ac_c_werror_flag"
3786                          || test ! -s conftest.err'
3787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788   (eval $ac_try) 2>&5
3789   ac_status=$?
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }; } &&
3792          { ac_try='test -s conftest$ac_exeext'
3793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794   (eval $ac_try) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; }; then
3798   lt_cv_cc_needs_belf=yes
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 lt_cv_cc_needs_belf=no
3804 fi
3805 rm -f conftest.err conftest.$ac_objext \
3806       conftest$ac_exeext conftest.$ac_ext
3807      ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813 fi
3814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3816   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3817     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3818     CFLAGS="$SAVE_CFLAGS"
3819   fi
3820   ;;
3821
3822 esac
3823
3824 need_locks="$enable_libtool_lock"
3825
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3836   CPP=
3837 fi
3838 if test -z "$CPP"; then
3839   if test "${ac_cv_prog_CPP+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842       # Double quotes because CPP needs to be expanded
3843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844     do
3845       ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3847 do
3848   # Use a header file that comes with gcc, so configuring glibc
3849   # with a fresh cross-compiler works.
3850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851   # <limits.h> exists even on freestanding compilers.
3852   # On the NeXT, cc -E runs the code through the compiler's parser,
3853   # not just through cpp. "Syntax error" is here to catch this case.
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #ifdef __STDC__
3861 # include <limits.h>
3862 #else
3863 # include <assert.h>
3864 #endif
3865                      Syntax error
3866 _ACEOF
3867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869   ac_status=$?
3870   grep -v '^ *+' conftest.er1 >conftest.err
3871   rm -f conftest.er1
3872   cat conftest.err >&5
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); } >/dev/null; then
3875   if test -s conftest.err; then
3876     ac_cpp_err=$ac_c_preproc_warn_flag
3877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3878   else
3879     ac_cpp_err=
3880   fi
3881 else
3882   ac_cpp_err=yes
3883 fi
3884 if test -z "$ac_cpp_err"; then
3885   :
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890   # Broken: fails on valid input.
3891 continue
3892 fi
3893 rm -f conftest.err conftest.$ac_ext
3894
3895   # OK, works on sane cases.  Now check whether non-existent headers
3896   # can be detected and how.
3897   cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <ac_nonexistent.h>
3904 _ACEOF
3905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907   ac_status=$?
3908   grep -v '^ *+' conftest.er1 >conftest.err
3909   rm -f conftest.er1
3910   cat conftest.err >&5
3911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912   (exit $ac_status); } >/dev/null; then
3913   if test -s conftest.err; then
3914     ac_cpp_err=$ac_c_preproc_warn_flag
3915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3916   else
3917     ac_cpp_err=
3918   fi
3919 else
3920   ac_cpp_err=yes
3921 fi
3922 if test -z "$ac_cpp_err"; then
3923   # Broken: success on invalid input.
3924 continue
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929   # Passes both tests.
3930 ac_preproc_ok=:
3931 break
3932 fi
3933 rm -f conftest.err conftest.$ac_ext
3934
3935 done
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937 rm -f conftest.err conftest.$ac_ext
3938 if $ac_preproc_ok; then
3939   break
3940 fi
3941
3942     done
3943     ac_cv_prog_CPP=$CPP
3944
3945 fi
3946   CPP=$ac_cv_prog_CPP
3947 else
3948   ac_cv_prog_CPP=$CPP
3949 fi
3950 echo "$as_me:$LINENO: result: $CPP" >&5
3951 echo "${ECHO_T}$CPP" >&6
3952 ac_preproc_ok=false
3953 for ac_c_preproc_warn_flag in '' yes
3954 do
3955   # Use a header file that comes with gcc, so configuring glibc
3956   # with a fresh cross-compiler works.
3957   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958   # <limits.h> exists even on freestanding compilers.
3959   # On the NeXT, cc -E runs the code through the compiler's parser,
3960   # not just through cpp. "Syntax error" is here to catch this case.
3961   cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 #ifdef __STDC__
3968 # include <limits.h>
3969 #else
3970 # include <assert.h>
3971 #endif
3972                      Syntax error
3973 _ACEOF
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976   ac_status=$?
3977   grep -v '^ *+' conftest.er1 >conftest.err
3978   rm -f conftest.er1
3979   cat conftest.err >&5
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); } >/dev/null; then
3982   if test -s conftest.err; then
3983     ac_cpp_err=$ac_c_preproc_warn_flag
3984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3985   else
3986     ac_cpp_err=
3987   fi
3988 else
3989   ac_cpp_err=yes
3990 fi
3991 if test -z "$ac_cpp_err"; then
3992   :
3993 else
3994   echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3996
3997   # Broken: fails on valid input.
3998 continue
3999 fi
4000 rm -f conftest.err conftest.$ac_ext
4001
4002   # OK, works on sane cases.  Now check whether non-existent headers
4003   # can be detected and how.
4004   cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 #include <ac_nonexistent.h>
4011 _ACEOF
4012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } >/dev/null; then
4020   if test -s conftest.err; then
4021     ac_cpp_err=$ac_c_preproc_warn_flag
4022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4023   else
4024     ac_cpp_err=
4025   fi
4026 else
4027   ac_cpp_err=yes
4028 fi
4029 if test -z "$ac_cpp_err"; then
4030   # Broken: success on invalid input.
4031 continue
4032 else
4033   echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036   # Passes both tests.
4037 ac_preproc_ok=:
4038 break
4039 fi
4040 rm -f conftest.err conftest.$ac_ext
4041
4042 done
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044 rm -f conftest.err conftest.$ac_ext
4045 if $ac_preproc_ok; then
4046   :
4047 else
4048   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4049 See \`config.log' for more details." >&5
4050 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4051 See \`config.log' for more details." >&2;}
4052    { (exit 1); exit 1; }; }
4053 fi
4054
4055 ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061
4062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4064 if test "${ac_cv_header_stdc+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h.  */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h.  */
4073 #include <stdlib.h>
4074 #include <stdarg.h>
4075 #include <string.h>
4076 #include <float.h>
4077
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088   (eval $ac_compile) 2>conftest.er1
4089   ac_status=$?
4090   grep -v '^ *+' conftest.er1 >conftest.err
4091   rm -f conftest.er1
4092   cat conftest.err >&5
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } &&
4095          { ac_try='test -z "$ac_c_werror_flag"
4096                          || test ! -s conftest.err'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; } &&
4102          { ac_try='test -s conftest.$ac_objext'
4103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104   (eval $ac_try) 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; }; then
4108   ac_cv_header_stdc=yes
4109 else
4110   echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 ac_cv_header_stdc=no
4114 fi
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116
4117 if test $ac_cv_header_stdc = yes; then
4118   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4119   cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125 #include <string.h>
4126
4127 _ACEOF
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129   $EGREP "memchr" >/dev/null 2>&1; then
4130   :
4131 else
4132   ac_cv_header_stdc=no
4133 fi
4134 rm -f conftest*
4135
4136 fi
4137
4138 if test $ac_cv_header_stdc = yes; then
4139   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146 #include <stdlib.h>
4147
4148 _ACEOF
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150   $EGREP "free" >/dev/null 2>&1; then
4151   :
4152 else
4153   ac_cv_header_stdc=no
4154 fi
4155 rm -f conftest*
4156
4157 fi
4158
4159 if test $ac_cv_header_stdc = yes; then
4160   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4161   if test "$cross_compiling" = yes; then
4162   :
4163 else
4164   cat >conftest.$ac_ext <<_ACEOF
4165 /* confdefs.h.  */
4166 _ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h.  */
4170 #include <ctype.h>
4171 #if ((' ' & 0x0FF) == 0x020)
4172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4174 #else
4175 # define ISLOWER(c) \
4176                    (('a' <= (c) && (c) <= 'i') \
4177                      || ('j' <= (c) && (c) <= 'r') \
4178                      || ('s' <= (c) && (c) <= 'z'))
4179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4180 #endif
4181
4182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4183 int
4184 main ()
4185 {
4186   int i;
4187   for (i = 0; i < 256; i++)
4188     if (XOR (islower (i), ISLOWER (i))
4189         || toupper (i) != TOUPPER (i))
4190       exit(2);
4191   exit (0);
4192 }
4193 _ACEOF
4194 rm -f conftest$ac_exeext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196   (eval $ac_link) 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201   (eval $ac_try) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   :
4206 else
4207   echo "$as_me: program exited with status $ac_status" >&5
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 ( exit $ac_status )
4212 ac_cv_header_stdc=no
4213 fi
4214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 fi
4216 fi
4217 fi
4218 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4220 if test $ac_cv_header_stdc = yes; then
4221
4222 cat >>confdefs.h <<\_ACEOF
4223 #define STDC_HEADERS 1
4224 _ACEOF
4225
4226 fi
4227
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239                   inttypes.h stdint.h unistd.h
4240 do
4241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242 echo "$as_me:$LINENO: checking for $ac_header" >&5
4243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 $ac_includes_default
4254
4255 #include <$ac_header>
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259   (eval $ac_compile) 2>conftest.er1
4260   ac_status=$?
4261   grep -v '^ *+' conftest.er1 >conftest.err
4262   rm -f conftest.er1
4263   cat conftest.err >&5
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } &&
4266          { ac_try='test -z "$ac_c_werror_flag"
4267                          || test ! -s conftest.err'
4268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269   (eval $ac_try) 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; } &&
4273          { ac_try='test -s conftest.$ac_objext'
4274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275   (eval $ac_try) 2>&5
4276   ac_status=$?
4277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278   (exit $ac_status); }; }; then
4279   eval "$as_ac_Header=yes"
4280 else
4281   echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 eval "$as_ac_Header=no"
4285 fi
4286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4287 fi
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4291   cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293 _ACEOF
4294
4295 fi
4296
4297 done
4298
4299
4300
4301 for ac_header in dlfcn.h
4302 do
4303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305   echo "$as_me:$LINENO: checking for $ac_header" >&5
4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 fi
4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4312 else
4313   # Is the header compilable?
4314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 $ac_includes_default
4323 #include <$ac_header>
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327   (eval $ac_compile) 2>conftest.er1
4328   ac_status=$?
4329   grep -v '^ *+' conftest.er1 >conftest.err
4330   rm -f conftest.er1
4331   cat conftest.err >&5
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); } &&
4334          { ac_try='test -z "$ac_c_werror_flag"
4335                          || test ! -s conftest.err'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; } &&
4341          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 ac_header_compiler=no
4353 fi
4354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4356 echo "${ECHO_T}$ac_header_compiler" >&6
4357
4358 # Is the header present?
4359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 #include <$ac_header>
4368 _ACEOF
4369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4371   ac_status=$?
4372   grep -v '^ *+' conftest.er1 >conftest.err
4373   rm -f conftest.er1
4374   cat conftest.err >&5
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } >/dev/null; then
4377   if test -s conftest.err; then
4378     ac_cpp_err=$ac_c_preproc_warn_flag
4379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4380   else
4381     ac_cpp_err=
4382   fi
4383 else
4384   ac_cpp_err=yes
4385 fi
4386 if test -z "$ac_cpp_err"; then
4387   ac_header_preproc=yes
4388 else
4389   echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392   ac_header_preproc=no
4393 fi
4394 rm -f conftest.err conftest.$ac_ext
4395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4396 echo "${ECHO_T}$ac_header_preproc" >&6
4397
4398 # So?  What about this header?
4399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4400   yes:no: )
4401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4405     ac_header_preproc=yes
4406     ;;
4407   no:yes:* )
4408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4420     (
4421       cat <<\_ASBOX
4422 ## ------------------------------------------ ##
4423 ## Report this to the AC_PACKAGE_NAME lists.  ##
4424 ## ------------------------------------------ ##
4425 _ASBOX
4426     ) |
4427       sed "s/^/$as_me: WARNING:     /" >&2
4428     ;;
4429 esac
4430 echo "$as_me:$LINENO: checking for $ac_header" >&5
4431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   eval "$as_ac_Header=\$ac_header_preproc"
4436 fi
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439
4440 fi
4441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4442   cat >>confdefs.h <<_ACEOF
4443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4444 _ACEOF
4445
4446 fi
4447
4448 done
4449
4450 ac_ext=cc
4451 ac_cpp='$CXXCPP $CPPFLAGS'
4452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4455 if test -n "$ac_tool_prefix"; then
4456   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4457   do
4458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_prog_CXX+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test -n "$CXX"; then
4466   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   for ac_exec_ext in '' $ac_executable_extensions; do
4474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480 done
4481
4482 fi
4483 fi
4484 CXX=$ac_cv_prog_CXX
4485 if test -n "$CXX"; then
4486   echo "$as_me:$LINENO: result: $CXX" >&5
4487 echo "${ECHO_T}$CXX" >&6
4488 else
4489   echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6
4491 fi
4492
4493     test -n "$CXX" && break
4494   done
4495 fi
4496 if test -z "$CXX"; then
4497   ac_ct_CXX=$CXX
4498   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4499 do
4500   # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4504 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   if test -n "$ac_ct_CXX"; then
4508   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515   for ac_exec_ext in '' $ac_executable_extensions; do
4516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517     ac_cv_prog_ac_ct_CXX="$ac_prog"
4518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522 done
4523
4524 fi
4525 fi
4526 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4527 if test -n "$ac_ct_CXX"; then
4528   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4529 echo "${ECHO_T}$ac_ct_CXX" >&6
4530 else
4531   echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535   test -n "$ac_ct_CXX" && break
4536 done
4537 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4538
4539   CXX=$ac_ct_CXX
4540 fi
4541
4542
4543 # Provide some information about the compiler.
4544 echo "$as_me:$LINENO:" \
4545      "checking for C++ compiler version" >&5
4546 ac_compiler=`set X $ac_compile; echo $2`
4547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4548   (eval $ac_compiler --version </dev/null >&5) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }
4552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4553   (eval $ac_compiler -v </dev/null >&5) 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); }
4557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4558   (eval $ac_compiler -V </dev/null >&5) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }
4562
4563 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4564 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4565 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4566   echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568   cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574
4575 int
4576 main ()
4577 {
4578 #ifndef __GNUC__
4579        choke me
4580 #endif
4581
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588   (eval $ac_compile) 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } &&
4595          { ac_try='test -z "$ac_cxx_werror_flag"
4596                          || test ! -s conftest.err'
4597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598   (eval $ac_try) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; } &&
4602          { ac_try='test -s conftest.$ac_objext'
4603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604   (eval $ac_try) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; }; then
4608   ac_compiler_gnu=yes
4609 else
4610   echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613 ac_compiler_gnu=no
4614 fi
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4617
4618 fi
4619 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4621 GXX=`test $ac_compiler_gnu = yes && echo yes`
4622 ac_test_CXXFLAGS=${CXXFLAGS+set}
4623 ac_save_CXXFLAGS=$CXXFLAGS
4624 CXXFLAGS="-g"
4625 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4627 if test "${ac_cv_prog_cxx_g+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636
4637 int
4638 main ()
4639 {
4640
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647   (eval $ac_compile) 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } &&
4654          { ac_try='test -z "$ac_cxx_werror_flag"
4655                          || test ! -s conftest.err'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; } &&
4661          { ac_try='test -s conftest.$ac_objext'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; }; then
4667   ac_cv_prog_cxx_g=yes
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 ac_cv_prog_cxx_g=no
4673 fi
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675 fi
4676 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4677 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4678 if test "$ac_test_CXXFLAGS" = set; then
4679   CXXFLAGS=$ac_save_CXXFLAGS
4680 elif test $ac_cv_prog_cxx_g = yes; then
4681   if test "$GXX" = yes; then
4682     CXXFLAGS="-g -O2"
4683   else
4684     CXXFLAGS="-g"
4685   fi
4686 else
4687   if test "$GXX" = yes; then
4688     CXXFLAGS="-O2"
4689   else
4690     CXXFLAGS=
4691   fi
4692 fi
4693 for ac_declaration in \
4694    '' \
4695    'extern "C" void std::exit (int) throw (); using std::exit;' \
4696    'extern "C" void std::exit (int); using std::exit;' \
4697    'extern "C" void exit (int) throw ();' \
4698    'extern "C" void exit (int);' \
4699    'void exit (int);'
4700 do
4701   cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 $ac_declaration
4708 #include <stdlib.h>
4709 int
4710 main ()
4711 {
4712 exit (42);
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 rm -f conftest.$ac_objext
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719   (eval $ac_compile) 2>conftest.er1
4720   ac_status=$?
4721   grep -v '^ *+' conftest.er1 >conftest.err
4722   rm -f conftest.er1
4723   cat conftest.err >&5
4724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725   (exit $ac_status); } &&
4726          { ac_try='test -z "$ac_cxx_werror_flag"
4727                          || test ! -s conftest.err'
4728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729   (eval $ac_try) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; } &&
4733          { ac_try='test -s conftest.$ac_objext'
4734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735   (eval $ac_try) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); }; }; then
4739   :
4740 else
4741   echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 continue
4745 fi
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747   cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 $ac_declaration
4754 int
4755 main ()
4756 {
4757 exit (42);
4758   ;
4759   return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764   (eval $ac_compile) 2>conftest.er1
4765   ac_status=$?
4766   grep -v '^ *+' conftest.er1 >conftest.err
4767   rm -f conftest.er1
4768   cat conftest.err >&5
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); } &&
4771          { ac_try='test -z "$ac_cxx_werror_flag"
4772                          || test ! -s conftest.err'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; } &&
4778          { ac_try='test -s conftest.$ac_objext'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; }; then
4784   break
4785 else
4786   echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 fi
4790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4791 done
4792 rm -f conftest*
4793 if test -n "$ac_declaration"; then
4794   echo '#ifdef __cplusplus' >>confdefs.h
4795   echo $ac_declaration      >>confdefs.h
4796   echo '#endif'             >>confdefs.h
4797 fi
4798
4799 ac_ext=cc
4800 ac_cpp='$CXXCPP $CPPFLAGS'
4801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4804
4805 depcc="$CXX"  am_compiler_list=
4806
4807 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4808 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4809 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4813   # We make a subdir and do the tests there.  Otherwise we can end up
4814   # making bogus files that we don't know about and never remove.  For
4815   # instance it was reported that on HP-UX the gcc test will end up
4816   # making a dummy file named `D' -- because `-MD' means `put the output
4817   # in D'.
4818   mkdir conftest.dir
4819   # Copy depcomp to subdir because otherwise we won't find it if we're
4820   # using a relative directory.
4821   cp "$am_depcomp" conftest.dir
4822   cd conftest.dir
4823   # We will build objects and dependencies in a subdirectory because
4824   # it helps to detect inapplicable dependency modes.  For instance
4825   # both Tru64's cc and ICC support -MD to output dependencies as a
4826   # side effect of compilation, but ICC will put the dependencies in
4827   # the current directory while Tru64 will put them in the object
4828   # directory.
4829   mkdir sub
4830
4831   am_cv_CXX_dependencies_compiler_type=none
4832   if test "$am_compiler_list" = ""; then
4833      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4834   fi
4835   for depmode in $am_compiler_list; do
4836     # Setup a source with many dependencies, because some compilers
4837     # like to wrap large dependency lists on column 80 (with \), and
4838     # we should not choose a depcomp mode which is confused by this.
4839     #
4840     # We need to recreate these files for each test, as the compiler may
4841     # overwrite some of them when testing with obscure command lines.
4842     # This happens at least with the AIX C compiler.
4843     : > sub/conftest.c
4844     for i in 1 2 3 4 5 6; do
4845       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4846       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4847       # Solaris 8's {/usr,}/bin/sh.
4848       touch sub/conftst$i.h
4849     done
4850     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4851
4852     case $depmode in
4853     nosideeffect)
4854       # after this tag, mechanisms are not by side-effect, so they'll
4855       # only be used when explicitly requested
4856       if test "x$enable_dependency_tracking" = xyes; then
4857         continue
4858       else
4859         break
4860       fi
4861       ;;
4862     none) break ;;
4863     esac
4864     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4865     # mode.  It turns out that the SunPro C++ compiler does not properly
4866     # handle `-M -o', and we need to detect this.
4867     if depmode=$depmode \
4868        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4869        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4870        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4871          >/dev/null 2>conftest.err &&
4872        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4873        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4874        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4875       # icc doesn't choke on unknown options, it will just issue warnings
4876       # or remarks (even with -Werror).  So we grep stderr for any message
4877       # that says an option was ignored or not supported.
4878       # When given -MP, icc 7.0 and 7.1 complain thusly:
4879       #   icc: Command line warning: ignoring option '-M'; no argument required
4880       # The diagnosis changed in icc 8.0:
4881       #   icc: Command line remark: option '-MP' not supported
4882       if (grep 'ignoring option' conftest.err ||
4883           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4884         am_cv_CXX_dependencies_compiler_type=$depmode
4885         break
4886       fi
4887     fi
4888   done
4889
4890   cd ..
4891   rm -rf conftest.dir
4892 else
4893   am_cv_CXX_dependencies_compiler_type=none
4894 fi
4895
4896 fi
4897 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4898 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4899 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4900
4901
4902
4903 if
4904   test "x$enable_dependency_tracking" != xno \
4905   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4906   am__fastdepCXX_TRUE=
4907   am__fastdepCXX_FALSE='#'
4908 else
4909   am__fastdepCXX_TRUE='#'
4910   am__fastdepCXX_FALSE=
4911 fi
4912
4913
4914
4915
4916 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4917     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4918     (test "X$CXX" != "Xg++"))) ; then
4919   ac_ext=cc
4920 ac_cpp='$CXXCPP $CPPFLAGS'
4921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4924 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4925 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4926 if test -z "$CXXCPP"; then
4927   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930       # Double quotes because CXXCPP needs to be expanded
4931     for CXXCPP in "$CXX -E" "/lib/cpp"
4932     do
4933       ac_preproc_ok=false
4934 for ac_cxx_preproc_warn_flag in '' yes
4935 do
4936   # Use a header file that comes with gcc, so configuring glibc
4937   # with a fresh cross-compiler works.
4938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939   # <limits.h> exists even on freestanding compilers.
4940   # On the NeXT, cc -E runs the code through the compiler's parser,
4941   # not just through cpp. "Syntax error" is here to catch this case.
4942   cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 #ifdef __STDC__
4949 # include <limits.h>
4950 #else
4951 # include <assert.h>
4952 #endif
4953                      Syntax error
4954 _ACEOF
4955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4957   ac_status=$?
4958   grep -v '^ *+' conftest.er1 >conftest.err
4959   rm -f conftest.er1
4960   cat conftest.err >&5
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); } >/dev/null; then
4963   if test -s conftest.err; then
4964     ac_cpp_err=$ac_cxx_preproc_warn_flag
4965     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4966   else
4967     ac_cpp_err=
4968   fi
4969 else
4970   ac_cpp_err=yes
4971 fi
4972 if test -z "$ac_cpp_err"; then
4973   :
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978   # Broken: fails on valid input.
4979 continue
4980 fi
4981 rm -f conftest.err conftest.$ac_ext
4982
4983   # OK, works on sane cases.  Now check whether non-existent headers
4984   # can be detected and how.
4985   cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h.  */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h.  */
4991 #include <ac_nonexistent.h>
4992 _ACEOF
4993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4995   ac_status=$?
4996   grep -v '^ *+' conftest.er1 >conftest.err
4997   rm -f conftest.er1
4998   cat conftest.err >&5
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } >/dev/null; then
5001   if test -s conftest.err; then
5002     ac_cpp_err=$ac_cxx_preproc_warn_flag
5003     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5004   else
5005     ac_cpp_err=
5006   fi
5007 else
5008   ac_cpp_err=yes
5009 fi
5010 if test -z "$ac_cpp_err"; then
5011   # Broken: success on invalid input.
5012 continue
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017   # Passes both tests.
5018 ac_preproc_ok=:
5019 break
5020 fi
5021 rm -f conftest.err conftest.$ac_ext
5022
5023 done
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then
5027   break
5028 fi
5029
5030     done
5031     ac_cv_prog_CXXCPP=$CXXCPP
5032
5033 fi
5034   CXXCPP=$ac_cv_prog_CXXCPP
5035 else
5036   ac_cv_prog_CXXCPP=$CXXCPP
5037 fi
5038 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5039 echo "${ECHO_T}$CXXCPP" >&6
5040 ac_preproc_ok=false
5041 for ac_cxx_preproc_warn_flag in '' yes
5042 do
5043   # Use a header file that comes with gcc, so configuring glibc
5044   # with a fresh cross-compiler works.
5045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046   # <limits.h> exists even on freestanding compilers.
5047   # On the NeXT, cc -E runs the code through the compiler's parser,
5048   # not just through cpp. "Syntax error" is here to catch this case.
5049   cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 #ifdef __STDC__
5056 # include <limits.h>
5057 #else
5058 # include <assert.h>
5059 #endif
5060                      Syntax error
5061 _ACEOF
5062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } >/dev/null; then
5070   if test -s conftest.err; then
5071     ac_cpp_err=$ac_cxx_preproc_warn_flag
5072     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5073   else
5074     ac_cpp_err=
5075   fi
5076 else
5077   ac_cpp_err=yes
5078 fi
5079 if test -z "$ac_cpp_err"; then
5080   :
5081 else
5082   echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085   # Broken: fails on valid input.
5086 continue
5087 fi
5088 rm -f conftest.err conftest.$ac_ext
5089
5090   # OK, works on sane cases.  Now check whether non-existent headers
5091   # can be detected and how.
5092   cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098 #include <ac_nonexistent.h>
5099 _ACEOF
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
5105   cat conftest.err >&5
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } >/dev/null; then
5108   if test -s conftest.err; then
5109     ac_cpp_err=$ac_cxx_preproc_warn_flag
5110     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5111   else
5112     ac_cpp_err=
5113   fi
5114 else
5115   ac_cpp_err=yes
5116 fi
5117 if test -z "$ac_cpp_err"; then
5118   # Broken: success on invalid input.
5119 continue
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124   # Passes both tests.
5125 ac_preproc_ok=:
5126 break
5127 fi
5128 rm -f conftest.err conftest.$ac_ext
5129
5130 done
5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132 rm -f conftest.err conftest.$ac_ext
5133 if $ac_preproc_ok; then
5134   :
5135 else
5136   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137 See \`config.log' for more details." >&5
5138 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5139 See \`config.log' for more details." >&2;}
5140    { (exit 1); exit 1; }; }
5141 fi
5142
5143 ac_ext=cc
5144 ac_cpp='$CXXCPP $CPPFLAGS'
5145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5148
5149 fi
5150
5151
5152 ac_ext=f
5153 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5154 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5156 if test -n "$ac_tool_prefix"; then
5157   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5158   do
5159     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5161 echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5163 if test "${ac_cv_prog_F77+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   if test -n "$F77"; then
5167   ac_cv_prog_F77="$F77" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174   for ac_exec_ext in '' $ac_executable_extensions; do
5175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178     break 2
5179   fi
5180 done
5181 done
5182
5183 fi
5184 fi
5185 F77=$ac_cv_prog_F77
5186 if test -n "$F77"; then
5187   echo "$as_me:$LINENO: result: $F77" >&5
5188 echo "${ECHO_T}$F77" >&6
5189 else
5190   echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5192 fi
5193
5194     test -n "$F77" && break
5195   done
5196 fi
5197 if test -z "$F77"; then
5198   ac_ct_F77=$F77
5199   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5200 do
5201   # Extract the first word of "$ac_prog", so it can be a program name with args.
5202 set dummy $ac_prog; ac_word=$2
5203 echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5205 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208   if test -n "$ac_ct_F77"; then
5209   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214   IFS=$as_save_IFS
5215   test -z "$as_dir" && as_dir=.
5216   for ac_exec_ext in '' $ac_executable_extensions; do
5217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218     ac_cv_prog_ac_ct_F77="$ac_prog"
5219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220     break 2
5221   fi
5222 done
5223 done
5224
5225 fi
5226 fi
5227 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5228 if test -n "$ac_ct_F77"; then
5229   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5230 echo "${ECHO_T}$ac_ct_F77" >&6
5231 else
5232   echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6
5234 fi
5235
5236   test -n "$ac_ct_F77" && break
5237 done
5238
5239   F77=$ac_ct_F77
5240 fi
5241
5242
5243 # Provide some information about the compiler.
5244 echo "$as_me:5244:" \
5245      "checking for Fortran 77 compiler version" >&5
5246 ac_compiler=`set X $ac_compile; echo $2`
5247 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5248   (eval $ac_compiler --version </dev/null >&5) 2>&5
5249   ac_status=$?
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); }
5252 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5253   (eval $ac_compiler -v </dev/null >&5) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }
5257 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5258   (eval $ac_compiler -V </dev/null >&5) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); }
5262 rm -f a.out
5263
5264 # If we don't use `.F' as extension, the preprocessor is not run on the
5265 # input file.  (Note that this only needs to work for GNU compilers.)
5266 ac_save_ext=$ac_ext
5267 ac_ext=F
5268 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5269 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5270 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   cat >conftest.$ac_ext <<_ACEOF
5274       program main
5275 #ifndef __GNUC__
5276        choke me
5277 #endif
5278
5279       end
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283   (eval $ac_compile) 2>conftest.er1
5284   ac_status=$?
5285   grep -v '^ *+' conftest.er1 >conftest.err
5286   rm -f conftest.er1
5287   cat conftest.err >&5
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } &&
5290          { ac_try='test -z "$ac_f77_werror_flag"
5291                          || test ! -s conftest.err'
5292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293   (eval $ac_try) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; } &&
5297          { ac_try='test -s conftest.$ac_objext'
5298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299   (eval $ac_try) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; }; then
5303   ac_compiler_gnu=yes
5304 else
5305   echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 ac_compiler_gnu=no
5309 fi
5310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5312
5313 fi
5314 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5315 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5316 ac_ext=$ac_save_ext
5317 ac_test_FFLAGS=${FFLAGS+set}
5318 ac_save_FFLAGS=$FFLAGS
5319 FFLAGS=
5320 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5321 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5322 if test "${ac_cv_prog_f77_g+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   FFLAGS=-g
5326 cat >conftest.$ac_ext <<_ACEOF
5327       program main
5328
5329       end
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333   (eval $ac_compile) 2>conftest.er1
5334   ac_status=$?
5335   grep -v '^ *+' conftest.er1 >conftest.err
5336   rm -f conftest.er1
5337   cat conftest.err >&5
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); } &&
5340          { ac_try='test -z "$ac_f77_werror_flag"
5341                          || test ! -s conftest.err'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; } &&
5347          { ac_try='test -s conftest.$ac_objext'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; }; then
5353   ac_cv_prog_f77_g=yes
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 ac_cv_prog_f77_g=no
5359 fi
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361
5362 fi
5363 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365 if test "$ac_test_FFLAGS" = set; then
5366   FFLAGS=$ac_save_FFLAGS
5367 elif test $ac_cv_prog_f77_g = yes; then
5368   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5369     FFLAGS="-g -O2"
5370   else
5371     FFLAGS="-g"
5372   fi
5373 else
5374   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5375     FFLAGS="-O2"
5376   else
5377     FFLAGS=
5378   fi
5379 fi
5380
5381 G77=`test $ac_compiler_gnu = yes && echo yes`
5382 ac_ext=c
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
5389
5390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5391
5392 # find the maximum length of command line arguments
5393 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5394 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398     i=0
5399   teststring="ABCD"
5400
5401   case $build_os in
5402   msdosdjgpp*)
5403     # On DJGPP, this test can blow up pretty badly due to problems in libc
5404     # (any single argument exceeding 2000 bytes causes a buffer overrun
5405     # during glob expansion).  Even if it were fixed, the result of this
5406     # check would be larger than it should be.
5407     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5408     ;;
5409
5410   gnu*)
5411     # Under GNU Hurd, this test is not required because there is
5412     # no limit to the length of command line arguments.
5413     # Libtool will interpret -1 as no limit whatsoever
5414     lt_cv_sys_max_cmd_len=-1;
5415     ;;
5416
5417   cygwin* | mingw*)
5418     # On Win9x/ME, this test blows up -- it succeeds, but takes
5419     # about 5 minutes as the teststring grows exponentially.
5420     # Worse, since 9x/ME are not pre-emptively multitasking,
5421     # you end up with a "frozen" computer, even though with patience
5422     # the test eventually succeeds (with a max line length of 256k).
5423     # Instead, let's just punt: use the minimum linelength reported by
5424     # all of the supported platforms: 8192 (on NT/2K/XP).
5425     lt_cv_sys_max_cmd_len=8192;
5426     ;;
5427
5428   amigaos*)
5429     # On AmigaOS with pdksh, this test takes hours, literally.
5430     # So we just punt and use a minimum line length of 8192.
5431     lt_cv_sys_max_cmd_len=8192;
5432     ;;
5433
5434   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5435     # This has been around since 386BSD, at least.  Likely further.
5436     if test -x /sbin/sysctl; then
5437       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5438     elif test -x /usr/sbin/sysctl; then
5439       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5440     else
5441       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5442     fi
5443     # And add a safety zone
5444     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5445     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5446     ;;
5447   osf*)
5448     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5449     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5450     # nice to cause kernel panics so lets avoid the loop below.
5451     # First set a reasonable default.
5452     lt_cv_sys_max_cmd_len=16384
5453     #
5454     if test -x /sbin/sysconfig; then
5455       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5456         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5457       esac
5458     fi
5459     ;;
5460   *)
5461     # If test is not a shell built-in, we'll probably end up computing a
5462     # maximum length that is only half of the actual maximum length, but
5463     # we can't tell.
5464     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5465     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5466                = "XX$teststring") >/dev/null 2>&1 &&
5467             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5468             lt_cv_sys_max_cmd_len=$new_result &&
5469             test $i != 17 # 1/2 MB should be enough
5470     do
5471       i=`expr $i + 1`
5472       teststring=$teststring$teststring
5473     done
5474     teststring=
5475     # Add a significant safety factor because C++ compilers can tack on massive
5476     # amounts of additional arguments before passing them to the linker.
5477     # It appears as though 1/2 is a usable value.
5478     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5479     ;;
5480   esac
5481
5482 fi
5483
5484 if test -n $lt_cv_sys_max_cmd_len ; then
5485   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5486 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5487 else
5488   echo "$as_me:$LINENO: result: none" >&5
5489 echo "${ECHO_T}none" >&6
5490 fi
5491
5492
5493
5494
5495 # Check for command to grab the raw symbol name followed by C symbol from nm.
5496 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5497 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5498 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501
5502 # These are sane defaults that work on at least a few old systems.
5503 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5504
5505 # Character class describing NM global symbol codes.
5506 symcode='[BCDEGRST]'
5507
5508 # Regexp to match symbols that can be accessed directly from C.
5509 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5510
5511 # Transform an extracted symbol line into a proper C declaration
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5513
5514 # Transform an extracted symbol line into symbol name and symbol address
5515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5516
5517 # Define system-specific variables.
5518 case $host_os in
5519 aix*)
5520   symcode='[BCDT]'
5521   ;;
5522 cygwin* | mingw* | pw32*)
5523   symcode='[ABCDGISTW]'
5524   ;;
5525 hpux*) # Its linker distinguishes data from code symbols
5526   if test "$host_cpu" = ia64; then
5527     symcode='[ABCDEGRST]'
5528   fi
5529   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5531   ;;
5532 linux*)
5533   if test "$host_cpu" = ia64; then
5534     symcode='[ABCDGIRSTW]'
5535     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5536     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5537   fi
5538   ;;
5539 irix* | nonstopux*)
5540   symcode='[BCDEGRST]'
5541   ;;
5542 osf*)
5543   symcode='[BCDEGQRST]'
5544   ;;
5545 solaris* | sysv5*)
5546   symcode='[BDRT]'
5547   ;;
5548 sysv4)
5549   symcode='[DFNSTU]'
5550   ;;
5551 esac
5552
5553 # Handle CRLF in mingw tool chain
5554 opt_cr=
5555 case $build_os in
5556 mingw*)
5557   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5558   ;;
5559 esac
5560
5561 # If we're using GNU nm, then use its standard symbol codes.
5562 case `$NM -V 2>&1` in
5563 *GNU* | *'with BFD'*)
5564   symcode='[ABCDGIRSTW]' ;;
5565 esac
5566
5567 # Try without a prefix undercore, then with it.
5568 for ac_symprfx in "" "_"; do
5569
5570   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5571   symxfrm="\\1 $ac_symprfx\\2 \\2"
5572
5573   # Write the raw and C identifiers.
5574   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5575
5576   # Check to see that the pipe works correctly.
5577   pipe_works=no
5578
5579   rm -f conftest*
5580   cat > conftest.$ac_ext <<EOF
5581 #ifdef __cplusplus
5582 extern "C" {
5583 #endif
5584 char nm_test_var;
5585 void nm_test_func(){}
5586 #ifdef __cplusplus
5587 }
5588 #endif
5589 int main(){nm_test_var='a';nm_test_func();return(0);}
5590 EOF
5591
5592   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593   (eval $ac_compile) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; then
5597     # Now try to grab the symbols.
5598     nlist=conftest.nm
5599     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5600   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } && test -s "$nlist"; then
5604       # Try sorting and uniquifying the output.
5605       if sort "$nlist" | uniq > "$nlist"T; then
5606         mv -f "$nlist"T "$nlist"
5607       else
5608         rm -f "$nlist"T
5609       fi
5610
5611       # Make sure that we snagged all the symbols we need.
5612       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5613         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5614           cat <<EOF > conftest.$ac_ext
5615 #ifdef __cplusplus
5616 extern "C" {
5617 #endif
5618
5619 EOF
5620           # Now generate the symbol file.
5621           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5622
5623           cat <<EOF >> conftest.$ac_ext
5624 #if defined (__STDC__) && __STDC__
5625 # define lt_ptr_t void *
5626 #else
5627 # define lt_ptr_t char *
5628 # define const
5629 #endif
5630
5631 /* The mapping between symbol names and symbols. */
5632 const struct {
5633   const char *name;
5634   lt_ptr_t address;
5635 }
5636 lt_preloaded_symbols[] =
5637 {
5638 EOF
5639           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5640           cat <<\EOF >> conftest.$ac_ext
5641   {0, (lt_ptr_t) 0}
5642 };
5643
5644 #ifdef __cplusplus
5645 }
5646 #endif
5647 EOF
5648           # Now try linking the two files.
5649           mv conftest.$ac_objext conftstm.$ac_objext
5650           lt_save_LIBS="$LIBS"
5651           lt_save_CFLAGS="$CFLAGS"
5652           LIBS="conftstm.$ac_objext"
5653           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5659             pipe_works=yes
5660           fi
5661           LIBS="$lt_save_LIBS"
5662           CFLAGS="$lt_save_CFLAGS"
5663         else
5664           echo "cannot find nm_test_func in $nlist" >&5
5665         fi
5666       else
5667         echo "cannot find nm_test_var in $nlist" >&5
5668       fi
5669     else
5670       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5671     fi
5672   else
5673     echo "$progname: failed program was:" >&5
5674     cat conftest.$ac_ext >&5
5675   fi
5676   rm -f conftest* conftst*
5677
5678   # Do not use the global_symbol_pipe unless it works.
5679   if test "$pipe_works" = yes; then
5680     break
5681   else
5682     lt_cv_sys_global_symbol_pipe=
5683   fi
5684 done
5685
5686 fi
5687
5688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689   lt_cv_sys_global_symbol_to_cdecl=
5690 fi
5691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692   echo "$as_me:$LINENO: result: failed" >&5
5693 echo "${ECHO_T}failed" >&6
5694 else
5695   echo "$as_me:$LINENO: result: ok" >&5
5696 echo "${ECHO_T}ok" >&6
5697 fi
5698
5699 echo "$as_me:$LINENO: checking for objdir" >&5
5700 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5701 if test "${lt_cv_objdir+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   rm -f .libs 2>/dev/null
5705 mkdir .libs 2>/dev/null
5706 if test -d .libs; then
5707   lt_cv_objdir=.libs
5708 else
5709   # MS-DOS does not allow filenames that begin with a dot.
5710   lt_cv_objdir=_libs
5711 fi
5712 rmdir .libs 2>/dev/null
5713 fi
5714 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5715 echo "${ECHO_T}$lt_cv_objdir" >&6
5716 objdir=$lt_cv_objdir
5717
5718
5719
5720
5721
5722 case $host_os in
5723 aix3*)
5724   # AIX sometimes has problems with the GCC collect2 program.  For some
5725   # reason, if we set the COLLECT_NAMES environment variable, the problems
5726   # vanish in a puff of smoke.
5727   if test "X${COLLECT_NAMES+set}" != Xset; then
5728     COLLECT_NAMES=
5729     export COLLECT_NAMES
5730   fi
5731   ;;
5732 esac
5733
5734 # Sed substitution that helps us do robust quoting.  It backslashifies
5735 # metacharacters that are still active within double-quoted strings.
5736 Xsed='sed -e 1s/^X//'
5737 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5738
5739 # Same as above, but do not quote variable references.
5740 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5741
5742 # Sed substitution to delay expansion of an escaped shell variable in a
5743 # double_quote_subst'ed string.
5744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5745
5746 # Sed substitution to avoid accidental globbing in evaled expressions
5747 no_glob_subst='s/\*/\\\*/g'
5748
5749 # Constants:
5750 rm="rm -f"
5751
5752 # Global variables:
5753 default_ofile=libtool
5754 can_build_shared=yes
5755
5756 # All known linkers require a `.a' archive for static linking (except MSVC,
5757 # which needs '.lib').
5758 libext=a
5759 ltmain="$ac_aux_dir/ltmain.sh"
5760 ofile="$default_ofile"
5761 with_gnu_ld="$lt_cv_prog_gnu_ld"
5762
5763 if test -n "$ac_tool_prefix"; then
5764   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}ar; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_AR+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   if test -n "$AR"; then
5772   ac_cv_prog_AR="$AR" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779   for ac_exec_ext in '' $ac_executable_extensions; do
5780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_AR="${ac_tool_prefix}ar"
5782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786 done
5787
5788 fi
5789 fi
5790 AR=$ac_cv_prog_AR
5791 if test -n "$AR"; then
5792   echo "$as_me:$LINENO: result: $AR" >&5
5793 echo "${ECHO_T}$AR" >&6
5794 else
5795   echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797 fi
5798
5799 fi
5800 if test -z "$ac_cv_prog_AR"; then
5801   ac_ct_AR=$AR
5802   # Extract the first word of "ar", so it can be a program name with args.
5803 set dummy ar; ac_word=$2
5804 echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5807   echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809   if test -n "$ac_ct_AR"; then
5810   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817   for ac_exec_ext in '' $ac_executable_extensions; do
5818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819     ac_cv_prog_ac_ct_AR="ar"
5820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824 done
5825
5826   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5827 fi
5828 fi
5829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830 if test -n "$ac_ct_AR"; then
5831   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5832 echo "${ECHO_T}$ac_ct_AR" >&6
5833 else
5834   echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6
5836 fi
5837
5838   AR=$ac_ct_AR
5839 else
5840   AR="$ac_cv_prog_AR"
5841 fi
5842
5843 if test -n "$ac_tool_prefix"; then
5844   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846 echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848 if test "${ac_cv_prog_RANLIB+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   if test -n "$RANLIB"; then
5852   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859   for ac_exec_ext in '' $ac_executable_extensions; do
5860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866 done
5867
5868 fi
5869 fi
5870 RANLIB=$ac_cv_prog_RANLIB
5871 if test -n "$RANLIB"; then
5872   echo "$as_me:$LINENO: result: $RANLIB" >&5
5873 echo "${ECHO_T}$RANLIB" >&6
5874 else
5875   echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5877 fi
5878
5879 fi
5880 if test -z "$ac_cv_prog_RANLIB"; then
5881   ac_ct_RANLIB=$RANLIB
5882   # Extract the first word of "ranlib", so it can be a program name with args.
5883 set dummy ranlib; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   if test -n "$ac_ct_RANLIB"; then
5890   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897   for ac_exec_ext in '' $ac_executable_extensions; do
5898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899     ac_cv_prog_ac_ct_RANLIB="ranlib"
5900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901     break 2
5902   fi
5903 done
5904 done
5905
5906   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5907 fi
5908 fi
5909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910 if test -n "$ac_ct_RANLIB"; then
5911   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5912 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5913 else
5914   echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6
5916 fi
5917
5918   RANLIB=$ac_ct_RANLIB
5919 else
5920   RANLIB="$ac_cv_prog_RANLIB"
5921 fi
5922
5923 if test -n "$ac_tool_prefix"; then
5924   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_STRIP+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   if test -n "$STRIP"; then
5932   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939   for ac_exec_ext in '' $ac_executable_extensions; do
5940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946 done
5947
5948 fi
5949 fi
5950 STRIP=$ac_cv_prog_STRIP
5951 if test -n "$STRIP"; then
5952   echo "$as_me:$LINENO: result: $STRIP" >&5
5953 echo "${ECHO_T}$STRIP" >&6
5954 else
5955   echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5957 fi
5958
5959 fi
5960 if test -z "$ac_cv_prog_STRIP"; then
5961   ac_ct_STRIP=$STRIP
5962   # Extract the first word of "strip", so it can be a program name with args.
5963 set dummy strip; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   if test -n "$ac_ct_STRIP"; then
5970   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977   for ac_exec_ext in '' $ac_executable_extensions; do
5978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979     ac_cv_prog_ac_ct_STRIP="strip"
5980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984 done
5985
5986   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5987 fi
5988 fi
5989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990 if test -n "$ac_ct_STRIP"; then
5991   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5992 echo "${ECHO_T}$ac_ct_STRIP" >&6
5993 else
5994   echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
5996 fi
5997
5998   STRIP=$ac_ct_STRIP
5999 else
6000   STRIP="$ac_cv_prog_STRIP"
6001 fi
6002
6003
6004 old_CC="$CC"
6005 old_CFLAGS="$CFLAGS"
6006
6007 # Set sane defaults for various variables
6008 test -z "$AR" && AR=ar
6009 test -z "$AR_FLAGS" && AR_FLAGS=cru
6010 test -z "$AS" && AS=as
6011 test -z "$CC" && CC=cc
6012 test -z "$LTCC" && LTCC=$CC
6013 test -z "$DLLTOOL" && DLLTOOL=dlltool
6014 test -z "$LD" && LD=ld
6015 test -z "$LN_S" && LN_S="ln -s"
6016 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6017 test -z "$NM" && NM=nm
6018 test -z "$SED" && SED=sed
6019 test -z "$OBJDUMP" && OBJDUMP=objdump
6020 test -z "$RANLIB" && RANLIB=:
6021 test -z "$STRIP" && STRIP=:
6022 test -z "$ac_objext" && ac_objext=o
6023
6024 # Determine commands to create old-style static archives.
6025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6026 old_postinstall_cmds='chmod 644 $oldlib'
6027 old_postuninstall_cmds=
6028
6029 if test -n "$RANLIB"; then
6030   case $host_os in
6031   openbsd*)
6032     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6033     ;;
6034   *)
6035     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6036     ;;
6037   esac
6038   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6039 fi
6040
6041 for cc_temp in $compiler""; do
6042   case $cc_temp in
6043     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6044     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6045     \-*) ;;
6046     *) break;;
6047   esac
6048 done
6049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6050
6051
6052 # Only perform the check for file, if the check method requires it
6053 case $deplibs_check_method in
6054 file_magic*)
6055   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6056     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6057 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   case $MAGIC_CMD in
6062 [\\/*] |  ?:[\\/]*)
6063   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6064   ;;
6065 *)
6066   lt_save_MAGIC_CMD="$MAGIC_CMD"
6067   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6069   for ac_dir in $ac_dummy; do
6070     IFS="$lt_save_ifs"
6071     test -z "$ac_dir" && ac_dir=.
6072     if test -f $ac_dir/${ac_tool_prefix}file; then
6073       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6074       if test -n "$file_magic_test_file"; then
6075         case $deplibs_check_method in
6076         "file_magic "*)
6077           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6078           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6079           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6080             $EGREP "$file_magic_regex" > /dev/null; then
6081             :
6082           else
6083             cat <<EOF 1>&2
6084
6085 *** Warning: the command libtool uses to detect shared libraries,
6086 *** $file_magic_cmd, produces output that libtool cannot recognize.
6087 *** The result is that libtool may fail to recognize shared libraries
6088 *** as such.  This will affect the creation of libtool libraries that
6089 *** depend on shared libraries, but programs linked with such libtool
6090 *** libraries will work regardless of this problem.  Nevertheless, you
6091 *** may want to report the problem to your system manager and/or to
6092 *** bug-libtool@gnu.org
6093
6094 EOF
6095           fi ;;
6096         esac
6097       fi
6098       break
6099     fi
6100   done
6101   IFS="$lt_save_ifs"
6102   MAGIC_CMD="$lt_save_MAGIC_CMD"
6103   ;;
6104 esac
6105 fi
6106
6107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108 if test -n "$MAGIC_CMD"; then
6109   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6110 echo "${ECHO_T}$MAGIC_CMD" >&6
6111 else
6112   echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6
6114 fi
6115
6116 if test -z "$lt_cv_path_MAGIC_CMD"; then
6117   if test -n "$ac_tool_prefix"; then
6118     echo "$as_me:$LINENO: checking for file" >&5
6119 echo $ECHO_N "checking for file... $ECHO_C" >&6
6120 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   case $MAGIC_CMD in
6124 [\\/*] |  ?:[\\/]*)
6125   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6126   ;;
6127 *)
6128   lt_save_MAGIC_CMD="$MAGIC_CMD"
6129   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6131   for ac_dir in $ac_dummy; do
6132     IFS="$lt_save_ifs"
6133     test -z "$ac_dir" && ac_dir=.
6134     if test -f $ac_dir/file; then
6135       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6136       if test -n "$file_magic_test_file"; then
6137         case $deplibs_check_method in
6138         "file_magic "*)
6139           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6140           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6141           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6142             $EGREP "$file_magic_regex" > /dev/null; then
6143             :
6144           else
6145             cat <<EOF 1>&2
6146
6147 *** Warning: the command libtool uses to detect shared libraries,
6148 *** $file_magic_cmd, produces output that libtool cannot recognize.
6149 *** The result is that libtool may fail to recognize shared libraries
6150 *** as such.  This will affect the creation of libtool libraries that
6151 *** depend on shared libraries, but programs linked with such libtool
6152 *** libraries will work regardless of this problem.  Nevertheless, you
6153 *** may want to report the problem to your system manager and/or to
6154 *** bug-libtool@gnu.org
6155
6156 EOF
6157           fi ;;
6158         esac
6159       fi
6160       break
6161     fi
6162   done
6163   IFS="$lt_save_ifs"
6164   MAGIC_CMD="$lt_save_MAGIC_CMD"
6165   ;;
6166 esac
6167 fi
6168
6169 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6170 if test -n "$MAGIC_CMD"; then
6171   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6172 echo "${ECHO_T}$MAGIC_CMD" >&6
6173 else
6174   echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6
6176 fi
6177
6178   else
6179     MAGIC_CMD=:
6180   fi
6181 fi
6182
6183   fi
6184   ;;
6185 esac
6186
6187 enable_dlopen=no
6188 enable_win32_dll=no
6189
6190 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6191 if test "${enable_libtool_lock+set}" = set; then
6192   enableval="$enable_libtool_lock"
6193
6194 fi;
6195 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6196
6197
6198 # Check whether --with-pic or --without-pic was given.
6199 if test "${with_pic+set}" = set; then
6200   withval="$with_pic"
6201   pic_mode="$withval"
6202 else
6203   pic_mode=default
6204 fi;
6205 test -z "$pic_mode" && pic_mode=default
6206
6207 # Use C for the default configuration in the libtool script
6208 tagname=
6209 lt_save_CC="$CC"
6210 ac_ext=c
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
6216
6217 # Source file extension for C test sources.
6218 ac_ext=c
6219
6220 # Object file extension for compiled C test sources.
6221 objext=o
6222 objext=$objext
6223
6224 # Code to be used in simple compile tests
6225 lt_simple_compile_test_code="int some_variable = 0;\n"
6226
6227 # Code to be used in simple link tests
6228 lt_simple_link_test_code='int main(){return(0);}\n'
6229
6230
6231 # If no C compiler was specified, use CC.
6232 LTCC=${LTCC-"$CC"}
6233
6234 # Allow CC to be a program name with arguments.
6235 compiler=$CC
6236
6237
6238 # save warnings/boilerplate of simple test code
6239 ac_outfile=conftest.$ac_objext
6240 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6241 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6242 _lt_compiler_boilerplate=`cat conftest.err`
6243 $rm conftest*
6244
6245 ac_outfile=conftest.$ac_objext
6246 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6247 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6248 _lt_linker_boilerplate=`cat conftest.err`
6249 $rm conftest*
6250
6251
6252 #
6253 # Check for any special shared library compilation flags.
6254 #
6255 lt_prog_cc_shlib=
6256 if test "$GCC" = no; then
6257   case $host_os in
6258   sco3.2v5*)
6259     lt_prog_cc_shlib='-belf'
6260     ;;
6261   esac
6262 fi
6263 if test -n "$lt_prog_cc_shlib"; then
6264   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6265 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6266   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6267   else
6268     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6269 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6270     lt_cv_prog_cc_can_build_shared=no
6271   fi
6272 fi
6273
6274
6275 #
6276 # Check to make sure the static flag actually works.
6277 #
6278 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6279 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6280 if test "${lt_prog_compiler_static_works+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283   lt_prog_compiler_static_works=no
6284    save_LDFLAGS="$LDFLAGS"
6285    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6286    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6287    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6288      # The linker can only warn and ignore the option if not recognized
6289      # So say no if there are warnings
6290      if test -s conftest.err; then
6291        # Append any errors to the config.log.
6292        cat conftest.err 1>&5
6293        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6294        $SED '/^$/d' conftest.err >conftest.er2
6295        if diff conftest.exp conftest.er2 >/dev/null; then
6296          lt_prog_compiler_static_works=yes
6297        fi
6298      else
6299        lt_prog_compiler_static_works=yes
6300      fi
6301    fi
6302    $rm conftest*
6303    LDFLAGS="$save_LDFLAGS"
6304
6305 fi
6306 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6307 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6308
6309 if test x"$lt_prog_compiler_static_works" = xyes; then
6310     :
6311 else
6312     lt_prog_compiler_static=
6313 fi
6314
6315
6316
6317
6318 lt_prog_compiler_no_builtin_flag=
6319
6320 if test "$GCC" = yes; then
6321   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6322
6323
6324 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6325 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6326 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   lt_cv_prog_compiler_rtti_exceptions=no
6330   ac_outfile=conftest.$ac_objext
6331    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6332    lt_compiler_flag="-fno-rtti -fno-exceptions"
6333    # Insert the option either (1) after the last *FLAGS variable, or
6334    # (2) before a word containing "conftest.", or (3) at the end.
6335    # Note that $ac_compile itself does not contain backslashes and begins
6336    # with a dollar sign (not a hyphen), so the echo should work correctly.
6337    # The option is referenced via a variable to avoid confusing sed.
6338    lt_compile=`echo "$ac_compile" | $SED \
6339    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6340    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6341    -e 's:$: $lt_compiler_flag:'`
6342    (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
6343    (eval "$lt_compile" 2>conftest.err)
6344    ac_status=$?
6345    cat conftest.err >&5
6346    echo "$as_me:6346: \$? = $ac_status" >&5
6347    if (exit $ac_status) && test -s "$ac_outfile"; then
6348      # The compiler can only warn and ignore the option if not recognized
6349      # So say no if there are warnings other than the usual output.
6350      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6351      $SED '/^$/d' conftest.err >conftest.er2
6352      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6353        lt_cv_prog_compiler_rtti_exceptions=yes
6354      fi
6355    fi
6356    $rm conftest*
6357
6358 fi
6359 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6360 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6361
6362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6363     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6364 else
6365     :
6366 fi
6367
6368 fi
6369
6370 lt_prog_compiler_wl=
6371 lt_prog_compiler_pic=
6372 lt_prog_compiler_static=
6373
6374 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6376
6377   if test "$GCC" = yes; then
6378     lt_prog_compiler_wl='-Wl,'
6379     lt_prog_compiler_static='-static'
6380
6381     case $host_os in
6382       aix*)
6383       # All AIX code is PIC.
6384       if test "$host_cpu" = ia64; then
6385         # AIX 5 now supports IA64 processor
6386         lt_prog_compiler_static='-Bstatic'
6387       fi
6388       ;;
6389
6390     amigaos*)
6391       # FIXME: we need at least 68020 code to build shared libraries, but
6392       # adding the `-m68020' flag to GCC prevents building anything better,
6393       # like `-m68040'.
6394       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6395       ;;
6396
6397     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6398       # PIC is the default for these OSes.
6399       ;;
6400
6401     mingw* | pw32* | os2*)
6402       # This hack is so that the source file can tell whether it is being
6403       # built for inclusion in a dll (and should export symbols for example).
6404       lt_prog_compiler_pic='-DDLL_EXPORT'
6405       ;;
6406
6407     darwin* | rhapsody*)
6408       # PIC is the default on this platform
6409       # Common symbols not allowed in MH_DYLIB files
6410       lt_prog_compiler_pic='-fno-common'
6411       ;;
6412
6413     msdosdjgpp*)
6414       # Just because we use GCC doesn't mean we suddenly get shared libraries
6415       # on systems that don't support them.
6416       lt_prog_compiler_can_build_shared=no
6417       enable_shared=no
6418       ;;
6419
6420     sysv4*MP*)
6421       if test -d /usr/nec; then
6422         lt_prog_compiler_pic=-Kconform_pic
6423       fi
6424       ;;
6425
6426     hpux*)
6427       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6428       # not for PA HP-UX.
6429       case $host_cpu in
6430       hppa*64*|ia64*)
6431         # +Z the default
6432         ;;
6433       *)
6434         lt_prog_compiler_pic='-fPIC'
6435         ;;
6436       esac
6437       ;;
6438
6439     *)
6440       lt_prog_compiler_pic='-fPIC'
6441       ;;
6442     esac
6443   else
6444     # PORTME Check for flag to pass linker flags through the system compiler.
6445     case $host_os in
6446     aix*)
6447       lt_prog_compiler_wl='-Wl,'
6448       if test "$host_cpu" = ia64; then
6449         # AIX 5 now supports IA64 processor
6450         lt_prog_compiler_static='-Bstatic'
6451       else
6452         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6453       fi
6454       ;;
6455       darwin*)
6456         # PIC is the default on this platform
6457         # Common symbols not allowed in MH_DYLIB files
6458        case $cc_basename in
6459          xlc*)
6460          lt_prog_compiler_pic='-qnocommon'
6461          lt_prog_compiler_wl='-Wl,'
6462          ;;
6463        esac
6464        ;;
6465
6466     mingw* | pw32* | os2*)
6467       # This hack is so that the source file can tell whether it is being
6468       # built for inclusion in a dll (and should export symbols for example).
6469       lt_prog_compiler_pic='-DDLL_EXPORT'
6470       ;;
6471
6472     hpux9* | hpux10* | hpux11*)
6473       lt_prog_compiler_wl='-Wl,'
6474       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6475       # not for PA HP-UX.
6476       case $host_cpu in
6477       hppa*64*|ia64*)
6478         # +Z the default
6479         ;;
6480       *)
6481         lt_prog_compiler_pic='+Z'
6482         ;;
6483       esac
6484       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6485       lt_prog_compiler_static='${wl}-a ${wl}archive'
6486       ;;
6487
6488     irix5* | irix6* | nonstopux*)
6489       lt_prog_compiler_wl='-Wl,'
6490       # PIC (with -KPIC) is the default.
6491       lt_prog_compiler_static='-non_shared'
6492       ;;
6493
6494     newsos6)
6495       lt_prog_compiler_pic='-KPIC'
6496       lt_prog_compiler_static='-Bstatic'
6497       ;;
6498
6499     linux*)
6500       case $cc_basename in
6501       icc* | ecc*)
6502         lt_prog_compiler_wl='-Wl,'
6503         lt_prog_compiler_pic='-KPIC'
6504         lt_prog_compiler_static='-static'
6505         ;;
6506       pgcc* | pgf77* | pgf90* | pgf95*)
6507         # Portland Group compilers (*not* the Pentium gcc compiler,
6508         # which looks to be a dead project)
6509         lt_prog_compiler_wl='-Wl,'
6510         lt_prog_compiler_pic='-fpic'
6511         lt_prog_compiler_static='-Bstatic'
6512         ;;
6513       ccc*)
6514         lt_prog_compiler_wl='-Wl,'
6515         # All Alpha code is PIC.
6516         lt_prog_compiler_static='-non_shared'
6517         ;;
6518       esac
6519       ;;
6520
6521     osf3* | osf4* | osf5*)
6522       lt_prog_compiler_wl='-Wl,'
6523       # All OSF/1 code is PIC.
6524       lt_prog_compiler_static='-non_shared'
6525       ;;
6526
6527     sco3.2v5*)
6528       lt_prog_compiler_pic='-Kpic'
6529       lt_prog_compiler_static='-dn'
6530       ;;
6531
6532     solaris*)
6533       lt_prog_compiler_pic='-KPIC'
6534       lt_prog_compiler_static='-Bstatic'
6535       case $cc_basename in
6536       f77* | f90* | f95*)
6537         lt_prog_compiler_wl='-Qoption ld ';;
6538       *)
6539         lt_prog_compiler_wl='-Wl,';;
6540       esac
6541       ;;
6542
6543     sunos4*)
6544       lt_prog_compiler_wl='-Qoption ld '
6545       lt_prog_compiler_pic='-PIC'
6546       lt_prog_compiler_static='-Bstatic'
6547       ;;
6548
6549     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6550       lt_prog_compiler_wl='-Wl,'
6551       lt_prog_compiler_pic='-KPIC'
6552       lt_prog_compiler_static='-Bstatic'
6553       ;;
6554
6555     sysv4*MP*)
6556       if test -d /usr/nec ;then
6557         lt_prog_compiler_pic='-Kconform_pic'
6558         lt_prog_compiler_static='-Bstatic'
6559       fi
6560       ;;
6561
6562     unicos*)
6563       lt_prog_compiler_wl='-Wl,'
6564       lt_prog_compiler_can_build_shared=no
6565       ;;
6566
6567     uts4*)
6568       lt_prog_compiler_pic='-pic'
6569       lt_prog_compiler_static='-Bstatic'
6570       ;;
6571
6572     *)
6573       lt_prog_compiler_can_build_shared=no
6574       ;;
6575     esac
6576   fi
6577
6578 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6579 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6580
6581 #
6582 # Check to make sure the PIC flag actually works.
6583 #
6584 if test -n "$lt_prog_compiler_pic"; then
6585
6586 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6587 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6588 if test "${lt_prog_compiler_pic_works+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   lt_prog_compiler_pic_works=no
6592   ac_outfile=conftest.$ac_objext
6593    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6594    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6595    # Insert the option either (1) after the last *FLAGS variable, or
6596    # (2) before a word containing "conftest.", or (3) at the end.
6597    # Note that $ac_compile itself does not contain backslashes and begins
6598    # with a dollar sign (not a hyphen), so the echo should work correctly.
6599    # The option is referenced via a variable to avoid confusing sed.
6600    lt_compile=`echo "$ac_compile" | $SED \
6601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6603    -e 's:$: $lt_compiler_flag:'`
6604    (eval echo "\"\$as_me:6604: $lt_compile\"" >&5)
6605    (eval "$lt_compile" 2>conftest.err)
6606    ac_status=$?
6607    cat conftest.err >&5
6608    echo "$as_me:6608: \$? = $ac_status" >&5
6609    if (exit $ac_status) && test -s "$ac_outfile"; then
6610      # The compiler can only warn and ignore the option if not recognized
6611      # So say no if there are warnings other than the usual output.
6612      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6613      $SED '/^$/d' conftest.err >conftest.er2
6614      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6615        lt_prog_compiler_pic_works=yes
6616      fi
6617    fi
6618    $rm conftest*
6619
6620 fi
6621 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6622 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6623
6624 if test x"$lt_prog_compiler_pic_works" = xyes; then
6625     case $lt_prog_compiler_pic in
6626      "" | " "*) ;;
6627      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6628      esac
6629 else
6630     lt_prog_compiler_pic=
6631      lt_prog_compiler_can_build_shared=no
6632 fi
6633
6634 fi
6635 case $host_os in
6636   # For platforms which do not support PIC, -DPIC is meaningless:
6637   *djgpp*)
6638     lt_prog_compiler_pic=
6639     ;;
6640   *)
6641     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6642     ;;
6643 esac
6644
6645 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6646 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   lt_cv_prog_compiler_c_o=no
6651    $rm -r conftest 2>/dev/null
6652    mkdir conftest
6653    cd conftest
6654    mkdir out
6655    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6656
6657    lt_compiler_flag="-o out/conftest2.$ac_objext"
6658    # Insert the option either (1) after the last *FLAGS variable, or
6659    # (2) before a word containing "conftest.", or (3) at the end.
6660    # Note that $ac_compile itself does not contain backslashes and begins
6661    # with a dollar sign (not a hyphen), so the echo should work correctly.
6662    lt_compile=`echo "$ac_compile" | $SED \
6663    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6665    -e 's:$: $lt_compiler_flag:'`
6666    (eval echo "\"\$as_me:6666: $lt_compile\"" >&5)
6667    (eval "$lt_compile" 2>out/conftest.err)
6668    ac_status=$?
6669    cat out/conftest.err >&5
6670    echo "$as_me:6670: \$? = $ac_status" >&5
6671    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6672    then
6673      # The compiler can only warn and ignore the option if not recognized
6674      # So say no if there are warnings
6675      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6676      $SED '/^$/d' out/conftest.err >out/conftest.er2
6677      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6678        lt_cv_prog_compiler_c_o=yes
6679      fi
6680    fi
6681    chmod u+w . 2>&5
6682    $rm conftest*
6683    # SGI C++ compiler will create directory out/ii_files/ for
6684    # template instantiation
6685    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6686    $rm out/* && rmdir out
6687    cd ..
6688    rmdir conftest
6689    $rm conftest*
6690
6691 fi
6692 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6693 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6694
6695
6696 hard_links="nottested"
6697 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6698   # do not overwrite the value of need_locks provided by the user
6699   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6700 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6701   hard_links=yes
6702   $rm conftest*
6703   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6704   touch conftest.a
6705   ln conftest.a conftest.b 2>&5 || hard_links=no
6706   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6707   echo "$as_me:$LINENO: result: $hard_links" >&5
6708 echo "${ECHO_T}$hard_links" >&6
6709   if test "$hard_links" = no; then
6710     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6711 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6712     need_locks=warn
6713   fi
6714 else
6715   need_locks=no
6716 fi
6717
6718 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6719 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6720
6721   runpath_var=
6722   allow_undefined_flag=
6723   enable_shared_with_static_runtimes=no
6724   archive_cmds=
6725   archive_expsym_cmds=
6726   old_archive_From_new_cmds=
6727   old_archive_from_expsyms_cmds=
6728   export_dynamic_flag_spec=
6729   whole_archive_flag_spec=
6730   thread_safe_flag_spec=
6731   hardcode_libdir_flag_spec=
6732   hardcode_libdir_flag_spec_ld=
6733   hardcode_libdir_separator=
6734   hardcode_direct=no
6735   hardcode_minus_L=no
6736   hardcode_shlibpath_var=unsupported
6737   link_all_deplibs=unknown
6738   hardcode_automatic=no
6739   module_cmds=
6740   module_expsym_cmds=
6741   always_export_symbols=no
6742   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6743   # include_expsyms should be a list of space-separated symbols to be *always*
6744   # included in the symbol list
6745   include_expsyms=
6746   # exclude_expsyms can be an extended regexp of symbols to exclude
6747   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6748   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6749   # as well as any symbol that contains `d'.
6750   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6751   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6752   # platforms (ab)use it in PIC code, but their linkers get confused if
6753   # the symbol is explicitly referenced.  Since portable code cannot
6754   # rely on this symbol name, it's probably fine to never include it in
6755   # preloaded symbol tables.
6756   extract_expsyms_cmds=
6757   # Just being paranoid about ensuring that cc_basename is set.
6758   for cc_temp in $compiler""; do
6759   case $cc_temp in
6760     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6761     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6762     \-*) ;;
6763     *) break;;
6764   esac
6765 done
6766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6767
6768   case $host_os in
6769   cygwin* | mingw* | pw32*)
6770     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6771     # When not using gcc, we currently assume that we are using
6772     # Microsoft Visual C++.
6773     if test "$GCC" != yes; then
6774       with_gnu_ld=no
6775     fi
6776     ;;
6777   openbsd*)
6778     with_gnu_ld=no
6779     ;;
6780   esac
6781
6782   ld_shlibs=yes
6783   if test "$with_gnu_ld" = yes; then
6784     # If archive_cmds runs LD, not CC, wlarc should be empty
6785     wlarc='${wl}'
6786
6787     # Set some defaults for GNU ld with shared library support. These
6788     # are reset later if shared libraries are not supported. Putting them
6789     # here allows them to be overridden if necessary.
6790     runpath_var=LD_RUN_PATH
6791     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6792     export_dynamic_flag_spec='${wl}--export-dynamic'
6793     # ancient GNU ld didn't support --whole-archive et. al.
6794     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6795         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6796       else
6797         whole_archive_flag_spec=
6798     fi
6799     supports_anon_versioning=no
6800     case `$LD -v 2>/dev/null` in
6801       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804       *\ 2.11.*) ;; # other 2.11 versions
6805       *) supports_anon_versioning=yes ;;
6806     esac
6807
6808     # See if GNU ld supports shared libraries.
6809     case $host_os in
6810     aix3* | aix4* | aix5*)
6811       # On AIX/PPC, the GNU linker is very broken
6812       if test "$host_cpu" != ia64; then
6813         ld_shlibs=no
6814         cat <<EOF 1>&2
6815
6816 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6817 *** to be unable to reliably create shared libraries on AIX.
6818 *** Therefore, libtool is disabling shared libraries support.  If you
6819 *** really care for shared libraries, you may want to modify your PATH
6820 *** so that a non-GNU linker is found, and then restart.
6821
6822 EOF
6823       fi
6824       ;;
6825
6826     amigaos*)
6827       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)'
6828       hardcode_libdir_flag_spec='-L$libdir'
6829       hardcode_minus_L=yes
6830
6831       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6832       # that the semantics of dynamic libraries on AmigaOS, at least up
6833       # to version 4, is to share data among multiple programs linked
6834       # with the same dynamic library.  Since this doesn't match the
6835       # behavior of shared libraries on other platforms, we can't use
6836       # them.
6837       ld_shlibs=no
6838       ;;
6839
6840     beos*)
6841       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6842         allow_undefined_flag=unsupported
6843         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6844         # support --undefined.  This deserves some investigation.  FIXME
6845         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6846       else
6847         ld_shlibs=no
6848       fi
6849       ;;
6850
6851     cygwin* | mingw* | pw32*)
6852       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6853       # as there is no search path for DLLs.
6854       hardcode_libdir_flag_spec='-L$libdir'
6855       allow_undefined_flag=unsupported
6856       always_export_symbols=no
6857       enable_shared_with_static_runtimes=yes
6858       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6859
6860       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6861         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6862         # If the export-symbols file already is a .def file (1st line
6863         # is EXPORTS), use it as is; otherwise, prepend...
6864         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6865           cp $export_symbols $output_objdir/$soname.def;
6866         else
6867           echo EXPORTS > $output_objdir/$soname.def;
6868           cat $export_symbols >> $output_objdir/$soname.def;
6869         fi~
6870         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6871       else
6872         ld_shlibs=no
6873       fi
6874       ;;
6875
6876     linux*)
6877       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6878         tmp_addflag=
6879         case $cc_basename,$host_cpu in
6880         pgcc*)                          # Portland Group C compiler
6881           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6882           tmp_addflag=' $pic_flag'
6883           ;;
6884         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6885           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6886           tmp_addflag=' $pic_flag -Mnomain' ;;
6887         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6888           tmp_addflag=' -i_dynamic' ;;
6889         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6890           tmp_addflag=' -i_dynamic -nofor_main' ;;
6891         ifc* | ifort*)                  # Intel Fortran compiler
6892           tmp_addflag=' -nofor_main' ;;
6893         esac
6894         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6895
6896         if test $supports_anon_versioning = yes; then
6897           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6898   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6899   $echo "local: *; };" >> $output_objdir/$libname.ver~
6900           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6901         fi
6902       else
6903         ld_shlibs=no
6904       fi
6905       ;;
6906
6907     netbsd*)
6908       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6909         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6910         wlarc=
6911       else
6912         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6913         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6914       fi
6915       ;;
6916
6917     solaris* | sysv5*)
6918       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6919         ld_shlibs=no
6920         cat <<EOF 1>&2
6921
6922 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6923 *** create shared libraries on Solaris systems.  Therefore, libtool
6924 *** is disabling shared libraries support.  We urge you to upgrade GNU
6925 *** binutils to release 2.9.1 or newer.  Another option is to modify
6926 *** your PATH or compiler configuration so that the native linker is
6927 *** used, and then restart.
6928
6929 EOF
6930       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6931         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6932         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6933       else
6934         ld_shlibs=no
6935       fi
6936       ;;
6937
6938     sunos4*)
6939       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6940       wlarc=
6941       hardcode_direct=yes
6942       hardcode_shlibpath_var=no
6943       ;;
6944
6945     *)
6946       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6948         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6949       else
6950         ld_shlibs=no
6951       fi
6952       ;;
6953     esac
6954
6955     if test "$ld_shlibs" = no; then
6956       runpath_var=
6957       hardcode_libdir_flag_spec=
6958       export_dynamic_flag_spec=
6959       whole_archive_flag_spec=
6960     fi
6961   else
6962     # PORTME fill in a description of your system's linker (not GNU ld)
6963     case $host_os in
6964     aix3*)
6965       allow_undefined_flag=unsupported
6966       always_export_symbols=yes
6967       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'
6968       # Note: this linker hardcodes the directories in LIBPATH if there
6969       # are no directories specified by -L.
6970       hardcode_minus_L=yes
6971       if test "$GCC" = yes && test -z "$link_static_flag"; then
6972         # Neither direct hardcoding nor static linking is supported with a
6973         # broken collect2.
6974         hardcode_direct=unsupported
6975       fi
6976       ;;
6977
6978     aix4* | aix5*)
6979       if test "$host_cpu" = ia64; then
6980         # On IA64, the linker does run time linking by default, so we don't
6981         # have to do anything special.
6982         aix_use_runtimelinking=no
6983         exp_sym_flag='-Bexport'
6984         no_entry_flag=""
6985       else
6986         # If we're using GNU nm, then we don't want the "-C" option.
6987         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6988         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6989           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6990         else
6991           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
6992         fi
6993         aix_use_runtimelinking=no
6994
6995         # Test if we are trying to use run time linking or normal
6996         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6997         # need to do runtime linking.
6998         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6999           for ld_flag in $LDFLAGS; do
7000           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7001             aix_use_runtimelinking=yes
7002             break
7003           fi
7004           done
7005         esac
7006
7007         exp_sym_flag='-bexport'
7008         no_entry_flag='-bnoentry'
7009       fi
7010
7011       # When large executables or shared objects are built, AIX ld can
7012       # have problems creating the table of contents.  If linking a library
7013       # or program results in "error TOC overflow" add -mminimal-toc to
7014       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7015       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7016
7017       archive_cmds=''
7018       hardcode_direct=yes
7019       hardcode_libdir_separator=':'
7020       link_all_deplibs=yes
7021
7022       if test "$GCC" = yes; then
7023         case $host_os in aix4.[012]|aix4.[012].*)
7024         # We only want to do this on AIX 4.2 and lower, the check
7025         # below for broken collect2 doesn't work under 4.3+
7026           collect2name=`${CC} -print-prog-name=collect2`
7027           if test -f "$collect2name" && \
7028            strings "$collect2name" | grep resolve_lib_name >/dev/null
7029           then
7030           # We have reworked collect2
7031           hardcode_direct=yes
7032           else
7033           # We have old collect2
7034           hardcode_direct=unsupported
7035           # It fails to find uninstalled libraries when the uninstalled
7036           # path is not listed in the libpath.  Setting hardcode_minus_L
7037           # to unsupported forces relinking
7038           hardcode_minus_L=yes
7039           hardcode_libdir_flag_spec='-L$libdir'
7040           hardcode_libdir_separator=
7041           fi
7042         esac
7043         shared_flag='-shared'
7044         if test "$aix_use_runtimelinking" = yes; then
7045           shared_flag="$shared_flag "'${wl}-G'
7046         fi
7047       else
7048         # not using gcc
7049         if test "$host_cpu" = ia64; then
7050         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7051         # chokes on -Wl,-G. The following line is correct:
7052           shared_flag='-G'
7053         else
7054         if test "$aix_use_runtimelinking" = yes; then
7055             shared_flag='${wl}-G'
7056           else
7057             shared_flag='${wl}-bM:SRE'
7058         fi
7059         fi
7060       fi
7061
7062       # It seems that -bexpall does not export symbols beginning with
7063       # underscore (_), so it is better to generate a list of symbols to export.
7064       always_export_symbols=yes
7065       if test "$aix_use_runtimelinking" = yes; then
7066         # Warning - without using the other runtime loading flags (-brtl),
7067         # -berok will link without error, but may produce a broken library.
7068         allow_undefined_flag='-berok'
7069        # Determine the default libpath from the value encoded in an empty executable.
7070        cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h.  */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h.  */
7076
7077 int
7078 main ()
7079 {
7080
7081   ;
7082   return 0;
7083 }
7084 _ACEOF
7085 rm -f conftest.$ac_objext conftest$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087   (eval $ac_link) 2>conftest.er1
7088   ac_status=$?
7089   grep -v '^ *+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
7091   cat conftest.err >&5
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } &&
7094          { ac_try='test -z "$ac_c_werror_flag"
7095                          || test ! -s conftest.err'
7096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097   (eval $ac_try) 2>&5
7098   ac_status=$?
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); }; } &&
7101          { ac_try='test -s conftest$ac_exeext'
7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103   (eval $ac_try) 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; }; then
7107
7108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7109 }'`
7110 # Check for a 64-bit object if we didn't find anything.
7111 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7112 }'`; fi
7113 else
7114   echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7116
7117 fi
7118 rm -f conftest.err conftest.$ac_objext \
7119       conftest$ac_exeext conftest.$ac_ext
7120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7121
7122        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7123         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"
7124        else
7125         if test "$host_cpu" = ia64; then
7126           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7127           allow_undefined_flag="-z nodefs"
7128           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7129         else
7130          # Determine the default libpath from the value encoded in an empty executable.
7131          cat >conftest.$ac_ext <<_ACEOF
7132 /* confdefs.h.  */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h.  */
7137
7138 int
7139 main ()
7140 {
7141
7142   ;
7143   return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148   (eval $ac_link) 2>conftest.er1
7149   ac_status=$?
7150   grep -v '^ *+' conftest.er1 >conftest.err
7151   rm -f conftest.er1
7152   cat conftest.err >&5
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); } &&
7155          { ac_try='test -z "$ac_c_werror_flag"
7156                          || test ! -s conftest.err'
7157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158   (eval $ac_try) 2>&5
7159   ac_status=$?
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); }; } &&
7162          { ac_try='test -s conftest$ac_exeext'
7163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164   (eval $ac_try) 2>&5
7165   ac_status=$?
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); }; }; then
7168
7169 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7170 }'`
7171 # Check for a 64-bit object if we didn't find anything.
7172 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7173 }'`; fi
7174 else
7175   echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7177
7178 fi
7179 rm -f conftest.err conftest.$ac_objext \
7180       conftest$ac_exeext conftest.$ac_ext
7181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7182
7183          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7184           # Warning - without using the other run time loading flags,
7185           # -berok will link without error, but may produce a broken library.
7186           no_undefined_flag=' ${wl}-bernotok'
7187           allow_undefined_flag=' ${wl}-berok'
7188           # -bexpall does not export symbols beginning with underscore (_)
7189           always_export_symbols=yes
7190           # Exported symbols can be pulled into shared objects from archives
7191           whole_archive_flag_spec=' '
7192           archive_cmds_need_lc=yes
7193           # This is similar to how AIX traditionally builds its shared libraries.
7194           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7195         fi
7196       fi
7197       ;;
7198
7199     amigaos*)
7200       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)'
7201       hardcode_libdir_flag_spec='-L$libdir'
7202       hardcode_minus_L=yes
7203       # see comment about different semantics on the GNU ld section
7204       ld_shlibs=no
7205       ;;
7206
7207     bsdi[45]*)
7208       export_dynamic_flag_spec=-rdynamic
7209       ;;
7210
7211     cygwin* | mingw* | pw32*)
7212       # When not using gcc, we currently assume that we are using
7213       # Microsoft Visual C++.
7214       # hardcode_libdir_flag_spec is actually meaningless, as there is
7215       # no search path for DLLs.
7216       hardcode_libdir_flag_spec=' '
7217       allow_undefined_flag=unsupported
7218       # Tell ltmain to make .lib files, not .a files.
7219       libext=lib
7220       # Tell ltmain to make .dll files, not .so files.
7221       shrext_cmds=".dll"
7222       # FIXME: Setting linknames here is a bad hack.
7223       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7224       # The linker will automatically build a .lib file if we build a DLL.
7225       old_archive_From_new_cmds='true'
7226       # FIXME: Should let the user specify the lib program.
7227       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7228       fix_srcfile_path='`cygpath -w "$srcfile"`'
7229       enable_shared_with_static_runtimes=yes
7230       ;;
7231
7232     darwin* | rhapsody*)
7233       case $host_os in
7234         rhapsody* | darwin1.[012])
7235          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7236          ;;
7237        *) # Darwin 1.3 on
7238          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7239            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7240          else
7241            case ${MACOSX_DEPLOYMENT_TARGET} in
7242              10.[012])
7243                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7244                ;;
7245              10.*)
7246                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7247                ;;
7248            esac
7249          fi
7250          ;;
7251       esac
7252       archive_cmds_need_lc=no
7253       hardcode_direct=no
7254       hardcode_automatic=yes
7255       hardcode_shlibpath_var=unsupported
7256       whole_archive_flag_spec=''
7257       link_all_deplibs=yes
7258     if test "$GCC" = yes ; then
7259         output_verbose_link_cmd='echo'
7260         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7261       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7262       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7263       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7264       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7265     else
7266       case $cc_basename in
7267         xlc*)
7268          output_verbose_link_cmd='echo'
7269          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7270          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7271           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7272          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7273           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7274           ;;
7275        *)
7276          ld_shlibs=no
7277           ;;
7278       esac
7279     fi
7280       ;;
7281
7282     dgux*)
7283       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7284       hardcode_libdir_flag_spec='-L$libdir'
7285       hardcode_shlibpath_var=no
7286       ;;
7287
7288     freebsd1*)
7289       ld_shlibs=no
7290       ;;
7291
7292     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7293     # support.  Future versions do this automatically, but an explicit c++rt0.o
7294     # does not break anything, and helps significantly (at the cost of a little
7295     # extra space).
7296     freebsd2.2*)
7297       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7298       hardcode_libdir_flag_spec='-R$libdir'
7299       hardcode_direct=yes
7300       hardcode_shlibpath_var=no
7301       ;;
7302
7303     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7304     freebsd2*)
7305       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7306       hardcode_direct=yes
7307       hardcode_minus_L=yes
7308       hardcode_shlibpath_var=no
7309       ;;
7310
7311     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7312     freebsd* | kfreebsd*-gnu | dragonfly*)
7313       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7314       hardcode_libdir_flag_spec='-R$libdir'
7315       hardcode_direct=yes
7316       hardcode_shlibpath_var=no
7317       ;;
7318
7319     hpux9*)
7320       if test "$GCC" = yes; then
7321         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7322       else
7323         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'
7324       fi
7325       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7326       hardcode_libdir_separator=:
7327       hardcode_direct=yes
7328
7329       # hardcode_minus_L: Not really in the search PATH,
7330       # but as the default location of the library.
7331       hardcode_minus_L=yes
7332       export_dynamic_flag_spec='${wl}-E'
7333       ;;
7334
7335     hpux10* | hpux11*)
7336       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7337         case $host_cpu in
7338         hppa*64*|ia64*)
7339           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7340           ;;
7341         *)
7342           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7343           ;;
7344         esac
7345       else
7346         case $host_cpu in
7347         hppa*64*|ia64*)
7348           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7349           ;;
7350         *)
7351           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7352           ;;
7353         esac
7354       fi
7355       if test "$with_gnu_ld" = no; then
7356         case $host_cpu in
7357         hppa*64*)
7358           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7359           hardcode_libdir_flag_spec_ld='+b $libdir'
7360           hardcode_libdir_separator=:
7361           hardcode_direct=no
7362           hardcode_shlibpath_var=no
7363           ;;
7364         ia64*)
7365           hardcode_libdir_flag_spec='-L$libdir'
7366           hardcode_direct=no
7367           hardcode_shlibpath_var=no
7368
7369           # hardcode_minus_L: Not really in the search PATH,
7370           # but as the default location of the library.
7371           hardcode_minus_L=yes
7372           ;;
7373         *)
7374           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7375           hardcode_libdir_separator=:
7376           hardcode_direct=yes
7377           export_dynamic_flag_spec='${wl}-E'
7378
7379           # hardcode_minus_L: Not really in the search PATH,
7380           # but as the default location of the library.
7381           hardcode_minus_L=yes
7382           ;;
7383         esac
7384       fi
7385       ;;
7386
7387     irix5* | irix6* | nonstopux*)
7388       if test "$GCC" = yes; then
7389         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'
7390       else
7391         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'
7392         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7393       fi
7394       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7395       hardcode_libdir_separator=:
7396       link_all_deplibs=yes
7397       ;;
7398
7399     netbsd*)
7400       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7401         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7402       else
7403         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7404       fi
7405       hardcode_libdir_flag_spec='-R$libdir'
7406       hardcode_direct=yes
7407       hardcode_shlibpath_var=no
7408       ;;
7409
7410     newsos6)
7411       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7412       hardcode_direct=yes
7413       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7414       hardcode_libdir_separator=:
7415       hardcode_shlibpath_var=no
7416       ;;
7417
7418     openbsd*)
7419       hardcode_direct=yes
7420       hardcode_shlibpath_var=no
7421       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7422         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7423         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7424         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7425         export_dynamic_flag_spec='${wl}-E'
7426       else
7427        case $host_os in
7428          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7429            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7430            hardcode_libdir_flag_spec='-R$libdir'
7431            ;;
7432          *)
7433            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7434            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7435            ;;
7436        esac
7437       fi
7438       ;;
7439
7440     os2*)
7441       hardcode_libdir_flag_spec='-L$libdir'
7442       hardcode_minus_L=yes
7443       allow_undefined_flag=unsupported
7444       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'
7445       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7446       ;;
7447
7448     osf3*)
7449       if test "$GCC" = yes; then
7450         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7451         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'
7452       else
7453         allow_undefined_flag=' -expect_unresolved \*'
7454         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'
7455       fi
7456       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7457       hardcode_libdir_separator=:
7458       ;;
7459
7460     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7461       if test "$GCC" = yes; then
7462         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7463         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'
7464         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7465       else
7466         allow_undefined_flag=' -expect_unresolved \*'
7467         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'
7468         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7469         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7470
7471         # Both c and cxx compiler support -rpath directly
7472         hardcode_libdir_flag_spec='-rpath $libdir'
7473       fi
7474       hardcode_libdir_separator=:
7475       ;;
7476
7477     sco3.2v5*)
7478       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7479       hardcode_shlibpath_var=no
7480       export_dynamic_flag_spec='${wl}-Bexport'
7481       runpath_var=LD_RUN_PATH
7482       hardcode_runpath_var=yes
7483       ;;
7484
7485     solaris*)
7486       no_undefined_flag=' -z text'
7487       if test "$GCC" = yes; then
7488         wlarc='${wl}'
7489         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7490         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7491           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7492       else
7493         wlarc=''
7494         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7495         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7496         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7497       fi
7498       hardcode_libdir_flag_spec='-R$libdir'
7499       hardcode_shlibpath_var=no
7500       case $host_os in
7501       solaris2.[0-5] | solaris2.[0-5].*) ;;
7502       *)
7503         # The compiler driver will combine linker options so we
7504         # cannot just pass the convience library names through
7505         # without $wl, iff we do not link with $LD.
7506         # Luckily, gcc supports the same syntax we need for Sun Studio.
7507         # Supported since Solaris 2.6 (maybe 2.5.1?)
7508         case $wlarc in
7509         '')
7510           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7511         *)
7512           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7513         esac ;;
7514       esac
7515       link_all_deplibs=yes
7516       ;;
7517
7518     sunos4*)
7519       if test "x$host_vendor" = xsequent; then
7520         # Use $CC to link under sequent, because it throws in some extra .o
7521         # files that make .init and .fini sections work.
7522         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7523       else
7524         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7525       fi
7526       hardcode_libdir_flag_spec='-L$libdir'
7527       hardcode_direct=yes
7528       hardcode_minus_L=yes
7529       hardcode_shlibpath_var=no
7530       ;;
7531
7532     sysv4)
7533       case $host_vendor in
7534         sni)
7535           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7536           hardcode_direct=yes # is this really true???
7537         ;;
7538         siemens)
7539           ## LD is ld it makes a PLAMLIB
7540           ## CC just makes a GrossModule.
7541           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7542           reload_cmds='$CC -r -o $output$reload_objs'
7543           hardcode_direct=no
7544         ;;
7545         motorola)
7546           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7547           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7548         ;;
7549       esac
7550       runpath_var='LD_RUN_PATH'
7551       hardcode_shlibpath_var=no
7552       ;;
7553
7554     sysv4.3*)
7555       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7556       hardcode_shlibpath_var=no
7557       export_dynamic_flag_spec='-Bexport'
7558       ;;
7559
7560     sysv4*MP*)
7561       if test -d /usr/nec; then
7562         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7563         hardcode_shlibpath_var=no
7564         runpath_var=LD_RUN_PATH
7565         hardcode_runpath_var=yes
7566         ld_shlibs=yes
7567       fi
7568       ;;
7569
7570     sysv4.2uw2*)
7571       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7572       hardcode_direct=yes
7573       hardcode_minus_L=no
7574       hardcode_shlibpath_var=no
7575       hardcode_runpath_var=yes
7576       runpath_var=LD_RUN_PATH
7577       ;;
7578
7579    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7580       no_undefined_flag='${wl}-z ${wl}text'
7581       if test "$GCC" = yes; then
7582         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7583       else
7584         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7585       fi
7586       runpath_var='LD_RUN_PATH'
7587       hardcode_shlibpath_var=no
7588       ;;
7589
7590     sysv5*)
7591       no_undefined_flag=' -z text'
7592       # $CC -shared without GNU ld will not create a library from C++
7593       # object files and a static libstdc++, better avoid it by now
7594       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7595       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7596                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7597       hardcode_libdir_flag_spec=
7598       hardcode_shlibpath_var=no
7599       runpath_var='LD_RUN_PATH'
7600       ;;
7601
7602     uts4*)
7603       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7604       hardcode_libdir_flag_spec='-L$libdir'
7605       hardcode_shlibpath_var=no
7606       ;;
7607
7608     *)
7609       ld_shlibs=no
7610       ;;
7611     esac
7612   fi
7613
7614 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7615 echo "${ECHO_T}$ld_shlibs" >&6
7616 test "$ld_shlibs" = no && can_build_shared=no
7617
7618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7619 if test "$GCC" = yes; then
7620   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7621 fi
7622
7623 #
7624 # Do we need to explicitly link libc?
7625 #
7626 case "x$archive_cmds_need_lc" in
7627 x|xyes)
7628   # Assume -lc should be added
7629   archive_cmds_need_lc=yes
7630
7631   if test "$enable_shared" = yes && test "$GCC" = yes; then
7632     case $archive_cmds in
7633     *'~'*)
7634       # FIXME: we may have to deal with multi-command sequences.
7635       ;;
7636     '$CC '*)
7637       # Test whether the compiler implicitly links with -lc since on some
7638       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7639       # to ld, don't add -lc before -lgcc.
7640       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7641 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7642       $rm conftest*
7643       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7644
7645       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7646   (eval $ac_compile) 2>&5
7647   ac_status=$?
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); } 2>conftest.err; then
7650         soname=conftest
7651         lib=conftest
7652         libobjs=conftest.$ac_objext
7653         deplibs=
7654         wl=$lt_prog_compiler_wl
7655         compiler_flags=-v
7656         linker_flags=-v
7657         verstring=
7658         output_objdir=.
7659         libname=conftest
7660         lt_save_allow_undefined_flag=$allow_undefined_flag
7661         allow_undefined_flag=
7662         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7663   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); }
7667         then
7668           archive_cmds_need_lc=no
7669         else
7670           archive_cmds_need_lc=yes
7671         fi
7672         allow_undefined_flag=$lt_save_allow_undefined_flag
7673       else
7674         cat conftest.err 1>&5
7675       fi
7676       $rm conftest*
7677       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7678 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7679       ;;
7680     esac
7681   fi
7682   ;;
7683 esac
7684
7685 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7686 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7687 library_names_spec=
7688 libname_spec='lib$name'
7689 soname_spec=
7690 shrext_cmds=".so"
7691 postinstall_cmds=
7692 postuninstall_cmds=
7693 finish_cmds=
7694 finish_eval=
7695 shlibpath_var=
7696 shlibpath_overrides_runpath=unknown
7697 version_type=none
7698 dynamic_linker="$host_os ld.so"
7699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7700 if test "$GCC" = yes; then
7701   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7702   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7703     # if the path contains ";" then we assume it to be the separator
7704     # otherwise default to the standard path separator (i.e. ":") - it is
7705     # assumed that no part of a normal pathname contains ";" but that should
7706     # okay in the real world where ";" in dirpaths is itself problematic.
7707     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7708   else
7709     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7710   fi
7711 else
7712   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7713 fi
7714 need_lib_prefix=unknown
7715 hardcode_into_libs=no
7716
7717 # when you set need_version to no, make sure it does not cause -set_version
7718 # flags to be left without arguments
7719 need_version=unknown
7720
7721 case $host_os in
7722 aix3*)
7723   version_type=linux
7724   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7725   shlibpath_var=LIBPATH
7726
7727   # AIX 3 has no versioning support, so we append a major version to the name.
7728   soname_spec='${libname}${release}${shared_ext}$major'
7729   ;;
7730
7731 aix4* | aix5*)
7732   version_type=linux
7733   need_lib_prefix=no
7734   need_version=no
7735   hardcode_into_libs=yes
7736   if test "$host_cpu" = ia64; then
7737     # AIX 5 supports IA64
7738     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7739     shlibpath_var=LD_LIBRARY_PATH
7740   else
7741     # With GCC up to 2.95.x, collect2 would create an import file
7742     # for dependence libraries.  The import file would start with
7743     # the line `#! .'.  This would cause the generated library to
7744     # depend on `.', always an invalid library.  This was fixed in
7745     # development snapshots of GCC prior to 3.0.
7746     case $host_os in
7747       aix4 | aix4.[01] | aix4.[01].*)
7748       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7749            echo ' yes '
7750            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7751         :
7752       else
7753         can_build_shared=no
7754       fi
7755       ;;
7756     esac
7757     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7758     # soname into executable. Probably we can add versioning support to
7759     # collect2, so additional links can be useful in future.
7760     if test "$aix_use_runtimelinking" = yes; then
7761       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7762       # instead of lib<name>.a to let people know that these are not
7763       # typical AIX shared libraries.
7764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7765     else
7766       # We preserve .a as extension for shared libraries through AIX4.2
7767       # and later when we are not doing run time linking.
7768       library_names_spec='${libname}${release}.a $libname.a'
7769       soname_spec='${libname}${release}${shared_ext}$major'
7770     fi
7771     shlibpath_var=LIBPATH
7772   fi
7773   ;;
7774
7775 amigaos*)
7776   library_names_spec='$libname.ixlibrary $libname.a'
7777   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7778   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'
7779   ;;
7780
7781 beos*)
7782   library_names_spec='${libname}${shared_ext}'
7783   dynamic_linker="$host_os ld.so"
7784   shlibpath_var=LIBRARY_PATH
7785   ;;
7786
7787 bsdi[45]*)
7788   version_type=linux
7789   need_version=no
7790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7791   soname_spec='${libname}${release}${shared_ext}$major'
7792   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7793   shlibpath_var=LD_LIBRARY_PATH
7794   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7795   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7796   # the default ld.so.conf also contains /usr/contrib/lib and
7797   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7798   # libtool to hard-code these into programs
7799   ;;
7800
7801 cygwin* | mingw* | pw32*)
7802   version_type=windows
7803   shrext_cmds=".dll"
7804   need_version=no
7805   need_lib_prefix=no
7806
7807   case $GCC,$host_os in
7808   yes,cygwin* | yes,mingw* | yes,pw32*)
7809     library_names_spec='$libname.dll.a'
7810     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7811     postinstall_cmds='base_file=`basename \${file}`~
7812       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7813       dldir=$destdir/`dirname \$dlpath`~
7814       test -d \$dldir || mkdir -p \$dldir~
7815       $install_prog $dir/$dlname \$dldir/$dlname~
7816       chmod a+x \$dldir/$dlname'
7817     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7818       dlpath=$dir/\$dldll~
7819        $rm \$dlpath'
7820     shlibpath_overrides_runpath=yes
7821
7822     case $host_os in
7823     cygwin*)
7824       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7825       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7826       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7827       ;;
7828     mingw*)
7829       # MinGW DLLs use traditional 'lib' prefix
7830       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7831       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7832       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7833         # It is most probably a Windows format PATH printed by
7834         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7835         # path with ; separators, and with drive letters. We can handle the
7836         # drive letters (cygwin fileutils understands them), so leave them,
7837         # especially as we might pass files found there to a mingw objdump,
7838         # which wouldn't understand a cygwinified path. Ahh.
7839         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7840       else
7841         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7842       fi
7843       ;;
7844     pw32*)
7845       # pw32 DLLs use 'pw' prefix rather than 'lib'
7846       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7847       ;;
7848     esac
7849     ;;
7850
7851   *)
7852     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7853     ;;
7854   esac
7855   dynamic_linker='Win32 ld.exe'
7856   # FIXME: first we should search . and the directory the executable is in
7857   shlibpath_var=PATH
7858   ;;
7859
7860 darwin* | rhapsody*)
7861   dynamic_linker="$host_os dyld"
7862   version_type=darwin
7863   need_lib_prefix=no
7864   need_version=no
7865   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7866   soname_spec='${libname}${release}${major}$shared_ext'
7867   shlibpath_overrides_runpath=yes
7868   shlibpath_var=DYLD_LIBRARY_PATH
7869   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7870   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7871   if test "$GCC" = yes; then
7872     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7873   else
7874     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7875   fi
7876   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7877   ;;
7878
7879 dgux*)
7880   version_type=linux
7881   need_lib_prefix=no
7882   need_version=no
7883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7884   soname_spec='${libname}${release}${shared_ext}$major'
7885   shlibpath_var=LD_LIBRARY_PATH
7886   ;;
7887
7888 freebsd1*)
7889   dynamic_linker=no
7890   ;;
7891
7892 kfreebsd*-gnu)
7893   version_type=linux
7894   need_lib_prefix=no
7895   need_version=no
7896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7897   soname_spec='${libname}${release}${shared_ext}$major'
7898   shlibpath_var=LD_LIBRARY_PATH
7899   shlibpath_overrides_runpath=no
7900   hardcode_into_libs=yes
7901   dynamic_linker='GNU ld.so'
7902   ;;
7903
7904 freebsd* | dragonfly*)
7905   # DragonFly does not have aout.  When/if they implement a new
7906   # versioning mechanism, adjust this.
7907   if test -x /usr/bin/objformat; then
7908     objformat=`/usr/bin/objformat`
7909   else
7910     case $host_os in
7911     freebsd[123]*) objformat=aout ;;
7912     *) objformat=elf ;;
7913     esac
7914   fi
7915   version_type=freebsd-$objformat
7916   case $version_type in
7917     freebsd-elf*)
7918       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7919       need_version=no
7920       need_lib_prefix=no
7921       ;;
7922     freebsd-*)
7923       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7924       need_version=yes
7925       ;;
7926   esac
7927   shlibpath_var=LD_LIBRARY_PATH
7928   case $host_os in
7929   freebsd2*)
7930     shlibpath_overrides_runpath=yes
7931     ;;
7932   freebsd3.[01]* | freebsdelf3.[01]*)
7933     shlibpath_overrides_runpath=yes
7934     hardcode_into_libs=yes
7935     ;;
7936   *) # from 3.2 on
7937     shlibpath_overrides_runpath=no
7938     hardcode_into_libs=yes
7939     ;;
7940   esac
7941   ;;
7942
7943 gnu*)
7944   version_type=linux
7945   need_lib_prefix=no
7946   need_version=no
7947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7948   soname_spec='${libname}${release}${shared_ext}$major'
7949   shlibpath_var=LD_LIBRARY_PATH
7950   hardcode_into_libs=yes
7951   ;;
7952
7953 hpux9* | hpux10* | hpux11*)
7954   # Give a soname corresponding to the major version so that dld.sl refuses to
7955   # link against other versions.
7956   version_type=sunos
7957   need_lib_prefix=no
7958   need_version=no
7959   case $host_cpu in
7960   ia64*)
7961     shrext_cmds='.so'
7962     hardcode_into_libs=yes
7963     dynamic_linker="$host_os dld.so"
7964     shlibpath_var=LD_LIBRARY_PATH
7965     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967     soname_spec='${libname}${release}${shared_ext}$major'
7968     if test "X$HPUX_IA64_MODE" = X32; then
7969       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7970     else
7971       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7972     fi
7973     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7974     ;;
7975    hppa*64*)
7976      shrext_cmds='.sl'
7977      hardcode_into_libs=yes
7978      dynamic_linker="$host_os dld.sl"
7979      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7980      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7981      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7982      soname_spec='${libname}${release}${shared_ext}$major'
7983      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7984      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7985      ;;
7986    *)
7987     shrext_cmds='.sl'
7988     dynamic_linker="$host_os dld.sl"
7989     shlibpath_var=SHLIB_PATH
7990     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992     soname_spec='${libname}${release}${shared_ext}$major'
7993     ;;
7994   esac
7995   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7996   postinstall_cmds='chmod 555 $lib'
7997   ;;
7998
7999 irix5* | irix6* | nonstopux*)
8000   case $host_os in
8001     nonstopux*) version_type=nonstopux ;;
8002     *)
8003         if test "$lt_cv_prog_gnu_ld" = yes; then
8004                 version_type=linux
8005         else
8006                 version_type=irix
8007         fi ;;
8008   esac
8009   need_lib_prefix=no
8010   need_version=no
8011   soname_spec='${libname}${release}${shared_ext}$major'
8012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8013   case $host_os in
8014   irix5* | nonstopux*)
8015     libsuff= shlibsuff=
8016     ;;
8017   *)
8018     case $LD in # libtool.m4 will add one of these switches to LD
8019     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8020       libsuff= shlibsuff= libmagic=32-bit;;
8021     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8022       libsuff=32 shlibsuff=N32 libmagic=N32;;
8023     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8024       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8025     *) libsuff= shlibsuff= libmagic=never-match;;
8026     esac
8027     ;;
8028   esac
8029   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8030   shlibpath_overrides_runpath=no
8031   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8032   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8033   hardcode_into_libs=yes
8034   ;;
8035
8036 # No shared lib support for Linux oldld, aout, or coff.
8037 linux*oldld* | linux*aout* | linux*coff*)
8038   dynamic_linker=no
8039   ;;
8040
8041 # This must be Linux ELF.
8042 linux*)
8043   version_type=linux
8044   need_lib_prefix=no
8045   need_version=no
8046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047   soname_spec='${libname}${release}${shared_ext}$major'
8048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8049   shlibpath_var=LD_LIBRARY_PATH
8050   shlibpath_overrides_runpath=no
8051   # This implies no fast_install, which is unacceptable.
8052   # Some rework will be needed to allow for fast_install
8053   # before this can be enabled.
8054   hardcode_into_libs=yes
8055
8056   # Append ld.so.conf contents to the search path
8057   if test -f /etc/ld.so.conf; then
8058     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8059     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8060   fi
8061
8062   # We used to test for /lib/ld.so.1 and disable shared libraries on
8063   # powerpc, because MkLinux only supported shared libraries with the
8064   # GNU dynamic linker.  Since this was broken with cross compilers,
8065   # most powerpc-linux boxes support dynamic linking these days and
8066   # people can always --disable-shared, the test was removed, and we
8067   # assume the GNU/Linux dynamic linker is in use.
8068   dynamic_linker='GNU/Linux ld.so'
8069   ;;
8070
8071 knetbsd*-gnu)
8072   version_type=linux
8073   need_lib_prefix=no
8074   need_version=no
8075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8076   soname_spec='${libname}${release}${shared_ext}$major'
8077   shlibpath_var=LD_LIBRARY_PATH
8078   shlibpath_overrides_runpath=no
8079   hardcode_into_libs=yes
8080   dynamic_linker='GNU ld.so'
8081   ;;
8082
8083 netbsd*)
8084   version_type=sunos
8085   need_lib_prefix=no
8086   need_version=no
8087   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8089     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8090     dynamic_linker='NetBSD (a.out) ld.so'
8091   else
8092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8093     soname_spec='${libname}${release}${shared_ext}$major'
8094     dynamic_linker='NetBSD ld.elf_so'
8095   fi
8096   shlibpath_var=LD_LIBRARY_PATH
8097   shlibpath_overrides_runpath=yes
8098   hardcode_into_libs=yes
8099   ;;
8100
8101 newsos6)
8102   version_type=linux
8103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104   shlibpath_var=LD_LIBRARY_PATH
8105   shlibpath_overrides_runpath=yes
8106   ;;
8107
8108 nto-qnx*)
8109   version_type=linux
8110   need_lib_prefix=no
8111   need_version=no
8112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113   soname_spec='${libname}${release}${shared_ext}$major'
8114   shlibpath_var=LD_LIBRARY_PATH
8115   shlibpath_overrides_runpath=yes
8116   ;;
8117
8118 openbsd*)
8119   version_type=sunos
8120   need_lib_prefix=no
8121   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8122   case $host_os in
8123     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8124     *)                         need_version=no  ;;
8125   esac
8126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8128   shlibpath_var=LD_LIBRARY_PATH
8129   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8130     case $host_os in
8131       openbsd2.[89] | openbsd2.[89].*)
8132         shlibpath_overrides_runpath=no
8133         ;;
8134       *)
8135         shlibpath_overrides_runpath=yes
8136         ;;
8137       esac
8138   else
8139     shlibpath_overrides_runpath=yes
8140   fi
8141   ;;
8142
8143 os2*)
8144   libname_spec='$name'
8145   shrext_cmds=".dll"
8146   need_lib_prefix=no
8147   library_names_spec='$libname${shared_ext} $libname.a'
8148   dynamic_linker='OS/2 ld.exe'
8149   shlibpath_var=LIBPATH
8150   ;;
8151
8152 osf3* | osf4* | osf5*)
8153   version_type=osf
8154   need_lib_prefix=no
8155   need_version=no
8156   soname_spec='${libname}${release}${shared_ext}$major'
8157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8158   shlibpath_var=LD_LIBRARY_PATH
8159   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8160   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8161   ;;
8162
8163 sco3.2v5*)
8164   version_type=osf
8165   soname_spec='${libname}${release}${shared_ext}$major'
8166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167   shlibpath_var=LD_LIBRARY_PATH
8168   ;;
8169
8170 solaris*)
8171   version_type=linux
8172   need_lib_prefix=no
8173   need_version=no
8174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8175   soname_spec='${libname}${release}${shared_ext}$major'
8176   shlibpath_var=LD_LIBRARY_PATH
8177   shlibpath_overrides_runpath=yes
8178   hardcode_into_libs=yes
8179   # ldd complains unless libraries are executable
8180   postinstall_cmds='chmod +x $lib'
8181   ;;
8182
8183 sunos4*)
8184   version_type=sunos
8185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8186   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8187   shlibpath_var=LD_LIBRARY_PATH
8188   shlibpath_overrides_runpath=yes
8189   if test "$with_gnu_ld" = yes; then
8190     need_lib_prefix=no
8191   fi
8192   need_version=yes
8193   ;;
8194
8195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8196   version_type=linux
8197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8198   soname_spec='${libname}${release}${shared_ext}$major'
8199   shlibpath_var=LD_LIBRARY_PATH
8200   case $host_vendor in
8201     sni)
8202       shlibpath_overrides_runpath=no
8203       need_lib_prefix=no
8204       export_dynamic_flag_spec='${wl}-Blargedynsym'
8205       runpath_var=LD_RUN_PATH
8206       ;;
8207     siemens)
8208       need_lib_prefix=no
8209       ;;
8210     motorola)
8211       need_lib_prefix=no
8212       need_version=no
8213       shlibpath_overrides_runpath=no
8214       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8215       ;;
8216   esac
8217   ;;
8218
8219 sysv4*MP*)
8220   if test -d /usr/nec ;then
8221     version_type=linux
8222     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8223     soname_spec='$libname${shared_ext}.$major'
8224     shlibpath_var=LD_LIBRARY_PATH
8225   fi
8226   ;;
8227
8228 uts4*)
8229   version_type=linux
8230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231   soname_spec='${libname}${release}${shared_ext}$major'
8232   shlibpath_var=LD_LIBRARY_PATH
8233   ;;
8234
8235 *)
8236   dynamic_linker=no
8237   ;;
8238 esac
8239 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8240 echo "${ECHO_T}$dynamic_linker" >&6
8241 test "$dynamic_linker" = no && can_build_shared=no
8242
8243 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8244 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8245 hardcode_action=
8246 if test -n "$hardcode_libdir_flag_spec" || \
8247    test -n "$runpath_var" || \
8248    test "X$hardcode_automatic" = "Xyes" ; then
8249
8250   # We can hardcode non-existant directories.
8251   if test "$hardcode_direct" != no &&
8252      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8253      # have to relink, otherwise we might link with an installed library
8254      # when we should be linking with a yet-to-be-installed one
8255      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8256      test "$hardcode_minus_L" != no; then
8257     # Linking always hardcodes the temporary library directory.
8258     hardcode_action=relink
8259   else
8260     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8261     hardcode_action=immediate
8262   fi
8263 else
8264   # We cannot hardcode anything, or else we can only hardcode existing
8265   # directories.
8266   hardcode_action=unsupported
8267 fi
8268 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8269 echo "${ECHO_T}$hardcode_action" >&6
8270
8271 if test "$hardcode_action" = relink; then
8272   # Fast installation is not supported
8273   enable_fast_install=no
8274 elif test "$shlibpath_overrides_runpath" = yes ||
8275      test "$enable_shared" = no; then
8276   # Fast installation is not necessary
8277   enable_fast_install=needless
8278 fi
8279
8280 striplib=
8281 old_striplib=
8282 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8283 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8284 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8285   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8286   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8287   echo "$as_me:$LINENO: result: yes" >&5
8288 echo "${ECHO_T}yes" >&6
8289 else
8290 # FIXME - insert some real tests, host_os isn't really good enough
8291   case $host_os in
8292    darwin*)
8293        if test -n "$STRIP" ; then
8294          striplib="$STRIP -x"
8295          echo "$as_me:$LINENO: result: yes" >&5
8296 echo "${ECHO_T}yes" >&6
8297        else
8298   echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6
8300 fi
8301        ;;
8302    *)
8303   echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6
8305     ;;
8306   esac
8307 fi
8308
8309 if test "x$enable_dlopen" != xyes; then
8310   enable_dlopen=unknown
8311   enable_dlopen_self=unknown
8312   enable_dlopen_self_static=unknown
8313 else
8314   lt_cv_dlopen=no
8315   lt_cv_dlopen_libs=
8316
8317   case $host_os in
8318   beos*)
8319     lt_cv_dlopen="load_add_on"
8320     lt_cv_dlopen_libs=
8321     lt_cv_dlopen_self=yes
8322     ;;
8323
8324   mingw* | pw32*)
8325     lt_cv_dlopen="LoadLibrary"
8326     lt_cv_dlopen_libs=
8327    ;;
8328
8329   cygwin*)
8330     lt_cv_dlopen="dlopen"
8331     lt_cv_dlopen_libs=
8332    ;;
8333
8334   darwin*)
8335   # if libdl is installed we need to link against it
8336     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8337 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8338 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   ac_check_lib_save_LIBS=$LIBS
8342 LIBS="-ldl  $LIBS"
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349
8350 /* Override any gcc2 internal prototype to avoid an error.  */
8351 #ifdef __cplusplus
8352 extern "C"
8353 #endif
8354 /* We use char because int might match the return type of a gcc2
8355    builtin and then its argument prototype would still apply.  */
8356 char dlopen ();
8357 int
8358 main ()
8359 {
8360 dlopen ();
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367   (eval $ac_link) 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } &&
8374          { ac_try='test -z "$ac_c_werror_flag"
8375                          || test ! -s conftest.err'
8376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377   (eval $ac_try) 2>&5
8378   ac_status=$?
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); }; } &&
8381          { ac_try='test -s conftest$ac_exeext'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   ac_cv_lib_dl_dlopen=yes
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 ac_cv_lib_dl_dlopen=no
8393 fi
8394 rm -f conftest.err conftest.$ac_objext \
8395       conftest$ac_exeext conftest.$ac_ext
8396 LIBS=$ac_check_lib_save_LIBS
8397 fi
8398 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8399 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8400 if test $ac_cv_lib_dl_dlopen = yes; then
8401   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8402 else
8403
8404     lt_cv_dlopen="dyld"
8405     lt_cv_dlopen_libs=
8406     lt_cv_dlopen_self=yes
8407
8408 fi
8409
8410    ;;
8411
8412   *)
8413     echo "$as_me:$LINENO: checking for shl_load" >&5
8414 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8415 if test "${ac_cv_func_shl_load+set}" = set; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418   cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8426 #define shl_load innocuous_shl_load
8427
8428 /* System header to define __stub macros and hopefully few prototypes,
8429     which can conflict with char shl_load (); below.
8430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8431     <limits.h> exists even on freestanding compilers.  */
8432
8433 #ifdef __STDC__
8434 # include <limits.h>
8435 #else
8436 # include <assert.h>
8437 #endif
8438
8439 #undef shl_load
8440
8441 /* Override any gcc2 internal prototype to avoid an error.  */
8442 #ifdef __cplusplus
8443 extern "C"
8444 {
8445 #endif
8446 /* We use char because int might match the return type of a gcc2
8447    builtin and then its argument prototype would still apply.  */
8448 char shl_load ();
8449 /* The GNU C library defines this for functions which it implements
8450     to always fail with ENOSYS.  Some functions are actually named
8451     something starting with __ and the normal name is an alias.  */
8452 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8453 choke me
8454 #else
8455 char (*f) () = shl_load;
8456 #endif
8457 #ifdef __cplusplus
8458 }
8459 #endif
8460
8461 int
8462 main ()
8463 {
8464 return f != shl_load;
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471   (eval $ac_link) 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -z "$ac_c_werror_flag"
8479                          || test ! -s conftest.err'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; } &&
8485          { ac_try='test -s conftest$ac_exeext'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; }; then
8491   ac_cv_func_shl_load=yes
8492 else
8493   echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_cv_func_shl_load=no
8497 fi
8498 rm -f conftest.err conftest.$ac_objext \
8499       conftest$ac_exeext conftest.$ac_ext
8500 fi
8501 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8502 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8503 if test $ac_cv_func_shl_load = yes; then
8504   lt_cv_dlopen="shl_load"
8505 else
8506   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8507 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8508 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8509   echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511   ac_check_lib_save_LIBS=$LIBS
8512 LIBS="-ldld  $LIBS"
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h.  */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h.  */
8519
8520 /* Override any gcc2 internal prototype to avoid an error.  */
8521 #ifdef __cplusplus
8522 extern "C"
8523 #endif
8524 /* We use char because int might match the return type of a gcc2
8525    builtin and then its argument prototype would still apply.  */
8526 char shl_load ();
8527 int
8528 main ()
8529 {
8530 shl_load ();
8531   ;
8532   return 0;
8533 }
8534 _ACEOF
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537   (eval $ac_link) 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } &&
8544          { ac_try='test -z "$ac_c_werror_flag"
8545                          || test ! -s conftest.err'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; } &&
8551          { ac_try='test -s conftest$ac_exeext'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; }; then
8557   ac_cv_lib_dld_shl_load=yes
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_cv_lib_dld_shl_load=no
8563 fi
8564 rm -f conftest.err conftest.$ac_objext \
8565       conftest$ac_exeext conftest.$ac_ext
8566 LIBS=$ac_check_lib_save_LIBS
8567 fi
8568 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8569 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8570 if test $ac_cv_lib_dld_shl_load = yes; then
8571   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8572 else
8573   echo "$as_me:$LINENO: checking for dlopen" >&5
8574 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8575 if test "${ac_cv_func_dlopen+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8586 #define dlopen innocuous_dlopen
8587
8588 /* System header to define __stub macros and hopefully few prototypes,
8589     which can conflict with char dlopen (); below.
8590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8591     <limits.h> exists even on freestanding compilers.  */
8592
8593 #ifdef __STDC__
8594 # include <limits.h>
8595 #else
8596 # include <assert.h>
8597 #endif
8598
8599 #undef dlopen
8600
8601 /* Override any gcc2 internal prototype to avoid an error.  */
8602 #ifdef __cplusplus
8603 extern "C"
8604 {
8605 #endif
8606 /* We use char because int might match the return type of a gcc2
8607    builtin and then its argument prototype would still apply.  */
8608 char dlopen ();
8609 /* The GNU C library defines this for functions which it implements
8610     to always fail with ENOSYS.  Some functions are actually named
8611     something starting with __ and the normal name is an alias.  */
8612 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8613 choke me
8614 #else
8615 char (*f) () = dlopen;
8616 #endif
8617 #ifdef __cplusplus
8618 }
8619 #endif
8620
8621 int
8622 main ()
8623 {
8624 return f != dlopen;
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631   (eval $ac_link) 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -z "$ac_c_werror_flag"
8639                          || test ! -s conftest.err'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; } &&
8645          { ac_try='test -s conftest$ac_exeext'
8646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647   (eval $ac_try) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   ac_cv_func_dlopen=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656 ac_cv_func_dlopen=no
8657 fi
8658 rm -f conftest.err conftest.$ac_objext \
8659       conftest$ac_exeext conftest.$ac_ext
8660 fi
8661 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8662 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8663 if test $ac_cv_func_dlopen = yes; then
8664   lt_cv_dlopen="dlopen"
8665 else
8666   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8667 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   ac_check_lib_save_LIBS=$LIBS
8672 LIBS="-ldl  $LIBS"
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h.  */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h.  */
8679
8680 /* Override any gcc2 internal prototype to avoid an error.  */
8681 #ifdef __cplusplus
8682 extern "C"
8683 #endif
8684 /* We use char because int might match the return type of a gcc2
8685    builtin and then its argument prototype would still apply.  */
8686 char dlopen ();
8687 int
8688 main ()
8689 {
8690 dlopen ();
8691   ;
8692   return 0;
8693 }
8694 _ACEOF
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697   (eval $ac_link) 2>conftest.er1
8698   ac_status=$?
8699   grep -v '^ *+' conftest.er1 >conftest.err
8700   rm -f conftest.er1
8701   cat conftest.err >&5
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); } &&
8704          { ac_try='test -z "$ac_c_werror_flag"
8705                          || test ! -s conftest.err'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; } &&
8711          { ac_try='test -s conftest$ac_exeext'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_lib_dl_dlopen=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 ac_cv_lib_dl_dlopen=no
8723 fi
8724 rm -f conftest.err conftest.$ac_objext \
8725       conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_lib_save_LIBS
8727 fi
8728 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8729 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8730 if test $ac_cv_lib_dl_dlopen = yes; then
8731   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8732 else
8733   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8734 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8735 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   ac_check_lib_save_LIBS=$LIBS
8739 LIBS="-lsvld  $LIBS"
8740 cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h.  */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h.  */
8746
8747 /* Override any gcc2 internal prototype to avoid an error.  */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 /* We use char because int might match the return type of a gcc2
8752    builtin and then its argument prototype would still apply.  */
8753 char dlopen ();
8754 int
8755 main ()
8756 {
8757 dlopen ();
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764   (eval $ac_link) 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -z "$ac_c_werror_flag"
8772                          || test ! -s conftest.err'
8773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; } &&
8778          { ac_try='test -s conftest$ac_exeext'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; }; then
8784   ac_cv_lib_svld_dlopen=yes
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 ac_cv_lib_svld_dlopen=no
8790 fi
8791 rm -f conftest.err conftest.$ac_objext \
8792       conftest$ac_exeext conftest.$ac_ext
8793 LIBS=$ac_check_lib_save_LIBS
8794 fi
8795 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8796 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8797 if test $ac_cv_lib_svld_dlopen = yes; then
8798   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8799 else
8800   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8801 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8802 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8803   echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805   ac_check_lib_save_LIBS=$LIBS
8806 LIBS="-ldld  $LIBS"
8807 cat >conftest.$ac_ext <<_ACEOF
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813
8814 /* Override any gcc2 internal prototype to avoid an error.  */
8815 #ifdef __cplusplus
8816 extern "C"
8817 #endif
8818 /* We use char because int might match the return type of a gcc2
8819    builtin and then its argument prototype would still apply.  */
8820 char dld_link ();
8821 int
8822 main ()
8823 {
8824 dld_link ();
8825   ;
8826   return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext conftest$ac_exeext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831   (eval $ac_link) 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } &&
8838          { ac_try='test -z "$ac_c_werror_flag"
8839                          || test ! -s conftest.err'
8840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841   (eval $ac_try) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; } &&
8845          { ac_try='test -s conftest$ac_exeext'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   ac_cv_lib_dld_dld_link=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ac_cv_lib_dld_dld_link=no
8857 fi
8858 rm -f conftest.err conftest.$ac_objext \
8859       conftest$ac_exeext conftest.$ac_ext
8860 LIBS=$ac_check_lib_save_LIBS
8861 fi
8862 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8863 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8864 if test $ac_cv_lib_dld_dld_link = yes; then
8865   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8866 fi
8867
8868
8869 fi
8870
8871
8872 fi
8873
8874
8875 fi
8876
8877
8878 fi
8879
8880
8881 fi
8882
8883     ;;
8884   esac
8885
8886   if test "x$lt_cv_dlopen" != xno; then
8887     enable_dlopen=yes
8888   else
8889     enable_dlopen=no
8890   fi
8891
8892   case $lt_cv_dlopen in
8893   dlopen)
8894     save_CPPFLAGS="$CPPFLAGS"
8895     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8896
8897     save_LDFLAGS="$LDFLAGS"
8898     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8899
8900     save_LIBS="$LIBS"
8901     LIBS="$lt_cv_dlopen_libs $LIBS"
8902
8903     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8904 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8905 if test "${lt_cv_dlopen_self+set}" = set; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908           if test "$cross_compiling" = yes; then :
8909   lt_cv_dlopen_self=cross
8910 else
8911   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8912   lt_status=$lt_dlunknown
8913   cat > conftest.$ac_ext <<EOF
8914 #line 8914 "configure"
8915 #include "confdefs.h"
8916
8917 #if HAVE_DLFCN_H
8918 #include <dlfcn.h>
8919 #endif
8920
8921 #include <stdio.h>
8922
8923 #ifdef RTLD_GLOBAL
8924 #  define LT_DLGLOBAL           RTLD_GLOBAL
8925 #else
8926 #  ifdef DL_GLOBAL
8927 #    define LT_DLGLOBAL         DL_GLOBAL
8928 #  else
8929 #    define LT_DLGLOBAL         0
8930 #  endif
8931 #endif
8932
8933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8934    find out it does not work in some platform. */
8935 #ifndef LT_DLLAZY_OR_NOW
8936 #  ifdef RTLD_LAZY
8937 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8938 #  else
8939 #    ifdef DL_LAZY
8940 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8941 #    else
8942 #      ifdef RTLD_NOW
8943 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8944 #      else
8945 #        ifdef DL_NOW
8946 #          define LT_DLLAZY_OR_NOW      DL_NOW
8947 #        else
8948 #          define LT_DLLAZY_OR_NOW      0
8949 #        endif
8950 #      endif
8951 #    endif
8952 #  endif
8953 #endif
8954
8955 #ifdef __cplusplus
8956 extern "C" void exit (int);
8957 #endif
8958
8959 void fnord() { int i=42;}
8960 int main ()
8961 {
8962   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8963   int status = $lt_dlunknown;
8964
8965   if (self)
8966     {
8967       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8968       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8969       /* dlclose (self); */
8970     }
8971
8972     exit (status);
8973 }
8974 EOF
8975   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976   (eval $ac_link) 2>&5
8977   ac_status=$?
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8980     (./conftest; exit; ) >&5 2>/dev/null
8981     lt_status=$?
8982     case x$lt_status in
8983       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8984       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8985       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8986     esac
8987   else :
8988     # compilation failed
8989     lt_cv_dlopen_self=no
8990   fi
8991 fi
8992 rm -fr conftest*
8993
8994
8995 fi
8996 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8997 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8998
8999     if test "x$lt_cv_dlopen_self" = xyes; then
9000       LDFLAGS="$LDFLAGS $link_static_flag"
9001       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9002 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9003 if test "${lt_cv_dlopen_self_static+set}" = set; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006           if test "$cross_compiling" = yes; then :
9007   lt_cv_dlopen_self_static=cross
9008 else
9009   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9010   lt_status=$lt_dlunknown
9011   cat > conftest.$ac_ext <<EOF
9012 #line 9012 "configure"
9013 #include "confdefs.h"
9014
9015 #if HAVE_DLFCN_H
9016 #include <dlfcn.h>
9017 #endif
9018
9019 #include <stdio.h>
9020
9021 #ifdef RTLD_GLOBAL
9022 #  define LT_DLGLOBAL           RTLD_GLOBAL
9023 #else
9024 #  ifdef DL_GLOBAL
9025 #    define LT_DLGLOBAL         DL_GLOBAL
9026 #  else
9027 #    define LT_DLGLOBAL         0
9028 #  endif
9029 #endif
9030
9031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9032    find out it does not work in some platform. */
9033 #ifndef LT_DLLAZY_OR_NOW
9034 #  ifdef RTLD_LAZY
9035 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9036 #  else
9037 #    ifdef DL_LAZY
9038 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9039 #    else
9040 #      ifdef RTLD_NOW
9041 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9042 #      else
9043 #        ifdef DL_NOW
9044 #          define LT_DLLAZY_OR_NOW      DL_NOW
9045 #        else
9046 #          define LT_DLLAZY_OR_NOW      0
9047 #        endif
9048 #      endif
9049 #    endif
9050 #  endif
9051 #endif
9052
9053 #ifdef __cplusplus
9054 extern "C" void exit (int);
9055 #endif
9056
9057 void fnord() { int i=42;}
9058 int main ()
9059 {
9060   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9061   int status = $lt_dlunknown;
9062
9063   if (self)
9064     {
9065       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9066       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9067       /* dlclose (self); */
9068     }
9069
9070     exit (status);
9071 }
9072 EOF
9073   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074   (eval $ac_link) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9078     (./conftest; exit; ) >&5 2>/dev/null
9079     lt_status=$?
9080     case x$lt_status in
9081       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9082       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9083       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9084     esac
9085   else :
9086     # compilation failed
9087     lt_cv_dlopen_self_static=no
9088   fi
9089 fi
9090 rm -fr conftest*
9091
9092
9093 fi
9094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9095 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9096     fi
9097
9098     CPPFLAGS="$save_CPPFLAGS"
9099     LDFLAGS="$save_LDFLAGS"
9100     LIBS="$save_LIBS"
9101     ;;
9102   esac
9103
9104   case $lt_cv_dlopen_self in
9105   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9106   *) enable_dlopen_self=unknown ;;
9107   esac
9108
9109   case $lt_cv_dlopen_self_static in
9110   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9111   *) enable_dlopen_self_static=unknown ;;
9112   esac
9113 fi
9114
9115
9116 # Report which librarie types wil actually be built
9117 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9118 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9119 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9120 echo "${ECHO_T}$can_build_shared" >&6
9121
9122 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9123 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9124 test "$can_build_shared" = "no" && enable_shared=no
9125
9126 # On AIX, shared libraries and static libraries use the same namespace, and
9127 # are all built from PIC.
9128 case $host_os in
9129 aix3*)
9130   test "$enable_shared" = yes && enable_static=no
9131   if test -n "$RANLIB"; then
9132     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9133     postinstall_cmds='$RANLIB $lib'
9134   fi
9135   ;;
9136
9137 aix4* | aix5*)
9138   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9139     test "$enable_shared" = yes && enable_static=no
9140   fi
9141     ;;
9142 esac
9143 echo "$as_me:$LINENO: result: $enable_shared" >&5
9144 echo "${ECHO_T}$enable_shared" >&6
9145
9146 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9147 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9148 # Make sure either enable_shared or enable_static is yes.
9149 test "$enable_shared" = yes || enable_static=yes
9150 echo "$as_me:$LINENO: result: $enable_static" >&5
9151 echo "${ECHO_T}$enable_static" >&6
9152
9153 # The else clause should only fire when bootstrapping the
9154 # libtool distribution, otherwise you forgot to ship ltmain.sh
9155 # with your package, and you will get complaints that there are
9156 # no rules to generate ltmain.sh.
9157 if test -f "$ltmain"; then
9158   # See if we are running on zsh, and set the options which allow our commands through
9159   # without removal of \ escapes.
9160   if test -n "${ZSH_VERSION+set}" ; then
9161     setopt NO_GLOB_SUBST
9162   fi
9163   # Now quote all the things that may contain metacharacters while being
9164   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9165   # variables and quote the copies for generation of the libtool script.
9166   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9167     SED SHELL STRIP \
9168     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9169     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9170     deplibs_check_method reload_flag reload_cmds need_locks \
9171     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9172     lt_cv_sys_global_symbol_to_c_name_address \
9173     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9174     old_postinstall_cmds old_postuninstall_cmds \
9175     compiler \
9176     CC \
9177     LD \
9178     lt_prog_compiler_wl \
9179     lt_prog_compiler_pic \
9180     lt_prog_compiler_static \
9181     lt_prog_compiler_no_builtin_flag \
9182     export_dynamic_flag_spec \
9183     thread_safe_flag_spec \
9184     whole_archive_flag_spec \
9185     enable_shared_with_static_runtimes \
9186     old_archive_cmds \
9187     old_archive_from_new_cmds \
9188     predep_objects \
9189     postdep_objects \
9190     predeps \
9191     postdeps \
9192     compiler_lib_search_path \
9193     archive_cmds \
9194     archive_expsym_cmds \
9195     postinstall_cmds \
9196     postuninstall_cmds \
9197     old_archive_from_expsyms_cmds \
9198     allow_undefined_flag \
9199     no_undefined_flag \
9200     export_symbols_cmds \
9201     hardcode_libdir_flag_spec \
9202     hardcode_libdir_flag_spec_ld \
9203     hardcode_libdir_separator \
9204     hardcode_automatic \
9205     module_cmds \
9206     module_expsym_cmds \
9207     lt_cv_prog_compiler_c_o \
9208     exclude_expsyms \
9209     include_expsyms; do
9210
9211     case $var in
9212     old_archive_cmds | \
9213     old_archive_from_new_cmds | \
9214     archive_cmds | \
9215     archive_expsym_cmds | \
9216     module_cmds | \
9217     module_expsym_cmds | \
9218     old_archive_from_expsyms_cmds | \
9219     export_symbols_cmds | \
9220     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9221     postinstall_cmds | postuninstall_cmds | \
9222     old_postinstall_cmds | old_postuninstall_cmds | \
9223     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9224       # Double-quote double-evaled strings.
9225       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9226       ;;
9227     *)
9228       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9229       ;;
9230     esac
9231   done
9232
9233   case $lt_echo in
9234   *'\$0 --fallback-echo"')
9235     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9236     ;;
9237   esac
9238
9239 cfgfile="${ofile}T"
9240   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9241   $rm -f "$cfgfile"
9242   { echo "$as_me:$LINENO: creating $ofile" >&5
9243 echo "$as_me: creating $ofile" >&6;}
9244
9245   cat <<__EOF__ >> "$cfgfile"
9246 #! $SHELL
9247
9248 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9249 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9250 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9251 #
9252 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9253 # Free Software Foundation, Inc.
9254 #
9255 # This file is part of GNU Libtool:
9256 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9257 #
9258 # This program is free software; you can redistribute it and/or modify
9259 # it under the terms of the GNU General Public License as published by
9260 # the Free Software Foundation; either version 2 of the License, or
9261 # (at your option) any later version.
9262 #
9263 # This program is distributed in the hope that it will be useful, but
9264 # WITHOUT ANY WARRANTY; without even the implied warranty of
9265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9266 # General Public License for more details.
9267 #
9268 # You should have received a copy of the GNU General Public License
9269 # along with this program; if not, write to the Free Software
9270 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9271 #
9272 # As a special exception to the GNU General Public License, if you
9273 # distribute this file as part of a program that contains a
9274 # configuration script generated by Autoconf, you may include it under
9275 # the same distribution terms that you use for the rest of that program.
9276
9277 # A sed program that does not truncate output.
9278 SED=$lt_SED
9279
9280 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9281 Xsed="$SED -e 1s/^X//"
9282
9283 # The HP-UX ksh and POSIX shell print the target directory to stdout
9284 # if CDPATH is set.
9285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9286
9287 # The names of the tagged configurations supported by this script.
9288 available_tags=
9289
9290 # ### BEGIN LIBTOOL CONFIG
9291
9292 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9293
9294 # Shell to use when invoking shell scripts.
9295 SHELL=$lt_SHELL
9296
9297 # Whether or not to build shared libraries.
9298 build_libtool_libs=$enable_shared
9299
9300 # Whether or not to build static libraries.
9301 build_old_libs=$enable_static
9302
9303 # Whether or not to add -lc for building shared libraries.
9304 build_libtool_need_lc=$archive_cmds_need_lc
9305
9306 # Whether or not to disallow shared libs when runtime libs are static
9307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9308
9309 # Whether or not to optimize for fast installation.
9310 fast_install=$enable_fast_install
9311
9312 # The host system.
9313 host_alias=$host_alias
9314 host=$host
9315 host_os=$host_os
9316
9317 # The build system.
9318 build_alias=$build_alias
9319 build=$build
9320 build_os=$build_os
9321
9322 # An echo program that does not interpret backslashes.
9323 echo=$lt_echo
9324
9325 # The archiver.
9326 AR=$lt_AR
9327 AR_FLAGS=$lt_AR_FLAGS
9328
9329 # A C compiler.
9330 LTCC=$lt_LTCC
9331
9332 # A language-specific compiler.
9333 CC=$lt_compiler
9334
9335 # Is the compiler the GNU C compiler?
9336 with_gcc=$GCC
9337
9338 # An ERE matcher.
9339 EGREP=$lt_EGREP
9340
9341 # The linker used to build libraries.
9342 LD=$lt_LD
9343
9344 # Whether we need hard or soft links.
9345 LN_S=$lt_LN_S
9346
9347 # A BSD-compatible nm program.
9348 NM=$lt_NM
9349
9350 # A symbol stripping program
9351 STRIP=$lt_STRIP
9352
9353 # Used to examine libraries when file_magic_cmd begins "file"
9354 MAGIC_CMD=$MAGIC_CMD
9355
9356 # Used on cygwin: DLL creation program.
9357 DLLTOOL="$DLLTOOL"
9358
9359 # Used on cygwin: object dumper.
9360 OBJDUMP="$OBJDUMP"
9361
9362 # Used on cygwin: assembler.
9363 AS="$AS"
9364
9365 # The name of the directory that contains temporary libtool files.
9366 objdir=$objdir
9367
9368 # How to create reloadable object files.
9369 reload_flag=$lt_reload_flag
9370 reload_cmds=$lt_reload_cmds
9371
9372 # How to pass a linker flag through the compiler.
9373 wl=$lt_lt_prog_compiler_wl
9374
9375 # Object file suffix (normally "o").
9376 objext="$ac_objext"
9377
9378 # Old archive suffix (normally "a").
9379 libext="$libext"
9380
9381 # Shared library suffix (normally ".so").
9382 shrext_cmds='$shrext_cmds'
9383
9384 # Executable file suffix (normally "").
9385 exeext="$exeext"
9386
9387 # Additional compiler flags for building library objects.
9388 pic_flag=$lt_lt_prog_compiler_pic
9389 pic_mode=$pic_mode
9390
9391 # What is the maximum length of a command?
9392 max_cmd_len=$lt_cv_sys_max_cmd_len
9393
9394 # Does compiler simultaneously support -c and -o options?
9395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9396
9397 # Must we lock files when doing compilation?
9398 need_locks=$lt_need_locks
9399
9400 # Do we need the lib prefix for modules?
9401 need_lib_prefix=$need_lib_prefix
9402
9403 # Do we need a version for libraries?
9404 need_version=$need_version
9405
9406 # Whether dlopen is supported.
9407 dlopen_support=$enable_dlopen
9408
9409 # Whether dlopen of programs is supported.
9410 dlopen_self=$enable_dlopen_self
9411
9412 # Whether dlopen of statically linked programs is supported.
9413 dlopen_self_static=$enable_dlopen_self_static
9414
9415 # Compiler flag to prevent dynamic linking.
9416 link_static_flag=$lt_lt_prog_compiler_static
9417
9418 # Compiler flag to turn off builtin functions.
9419 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9420
9421 # Compiler flag to allow reflexive dlopens.
9422 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9423
9424 # Compiler flag to generate shared objects directly from archives.
9425 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9426
9427 # Compiler flag to generate thread-safe objects.
9428 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9429
9430 # Library versioning type.
9431 version_type=$version_type
9432
9433 # Format of library name prefix.
9434 libname_spec=$lt_libname_spec
9435
9436 # List of archive names.  First name is the real one, the rest are links.
9437 # The last name is the one that the linker finds with -lNAME.
9438 library_names_spec=$lt_library_names_spec
9439
9440 # The coded name of the library, if different from the real name.
9441 soname_spec=$lt_soname_spec
9442
9443 # Commands used to build and install an old-style archive.
9444 RANLIB=$lt_RANLIB
9445 old_archive_cmds=$lt_old_archive_cmds
9446 old_postinstall_cmds=$lt_old_postinstall_cmds
9447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9448
9449 # Create an old-style archive from a shared archive.
9450 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9451
9452 # Create a temporary old-style archive to link instead of a shared archive.
9453 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9454
9455 # Commands used to build and install a shared archive.
9456 archive_cmds=$lt_archive_cmds
9457 archive_expsym_cmds=$lt_archive_expsym_cmds
9458 postinstall_cmds=$lt_postinstall_cmds
9459 postuninstall_cmds=$lt_postuninstall_cmds
9460
9461 # Commands used to build a loadable module (assumed same as above if empty)
9462 module_cmds=$lt_module_cmds
9463 module_expsym_cmds=$lt_module_expsym_cmds
9464
9465 # Commands to strip libraries.
9466 old_striplib=$lt_old_striplib
9467 striplib=$lt_striplib
9468
9469 # Dependencies to place before the objects being linked to create a
9470 # shared library.
9471 predep_objects=$lt_predep_objects
9472
9473 # Dependencies to place after the objects being linked to create a
9474 # shared library.
9475 postdep_objects=$lt_postdep_objects
9476
9477 # Dependencies to place before the objects being linked to create a
9478 # shared library.
9479 predeps=$lt_predeps
9480
9481 # Dependencies to place after the objects being linked to create a
9482 # shared library.
9483 postdeps=$lt_postdeps
9484
9485 # The library search path used internally by the compiler when linking
9486 # a shared library.
9487 compiler_lib_search_path=$lt_compiler_lib_search_path
9488
9489 # Method to check whether dependent libraries are shared objects.
9490 deplibs_check_method=$lt_deplibs_check_method
9491
9492 # Command to use when deplibs_check_method == file_magic.
9493 file_magic_cmd=$lt_file_magic_cmd
9494
9495 # Flag that allows shared libraries with undefined symbols to be built.
9496 allow_undefined_flag=$lt_allow_undefined_flag
9497
9498 # Flag that forces no undefined symbols.
9499 no_undefined_flag=$lt_no_undefined_flag
9500
9501 # Commands used to finish a libtool library installation in a directory.
9502 finish_cmds=$lt_finish_cmds
9503
9504 # Same as above, but a single script fragment to be evaled but not shown.
9505 finish_eval=$lt_finish_eval
9506
9507 # Take the output of nm and produce a listing of raw symbols and C names.
9508 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9509
9510 # Transform the output of nm in a proper C declaration
9511 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9512
9513 # Transform the output of nm in a C name address pair
9514 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9515
9516 # This is the shared library runtime path variable.
9517 runpath_var=$runpath_var
9518
9519 # This is the shared library path variable.
9520 shlibpath_var=$shlibpath_var
9521
9522 # Is shlibpath searched before the hard-coded library search path?
9523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9524
9525 # How to hardcode a shared library path into an executable.
9526 hardcode_action=$hardcode_action
9527
9528 # Whether we should hardcode library paths into libraries.
9529 hardcode_into_libs=$hardcode_into_libs
9530
9531 # Flag to hardcode \$libdir into a binary during linking.
9532 # This must work even if \$libdir does not exist.
9533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9534
9535 # If ld is used when linking, flag to hardcode \$libdir into
9536 # a binary during linking. This must work even if \$libdir does
9537 # not exist.
9538 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9539
9540 # Whether we need a single -rpath flag with a separated argument.
9541 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9542
9543 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9544 # resulting binary.
9545 hardcode_direct=$hardcode_direct
9546
9547 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9548 # resulting binary.
9549 hardcode_minus_L=$hardcode_minus_L
9550
9551 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9552 # the resulting binary.
9553 hardcode_shlibpath_var=$hardcode_shlibpath_var
9554
9555 # Set to yes if building a shared library automatically hardcodes DIR into the library
9556 # and all subsequent libraries and executables linked against it.
9557 hardcode_automatic=$hardcode_automatic
9558
9559 # Variables whose values should be saved in libtool wrapper scripts and
9560 # restored at relink time.
9561 variables_saved_for_relink="$variables_saved_for_relink"
9562
9563 # Whether libtool must link a program against all its dependency libraries.
9564 link_all_deplibs=$link_all_deplibs
9565
9566 # Compile-time system search path for libraries
9567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9568
9569 # Run-time system search path for libraries
9570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9571
9572 # Fix the shell variable \$srcfile for the compiler.
9573 fix_srcfile_path="$fix_srcfile_path"
9574
9575 # Set to yes if exported symbols are required.
9576 always_export_symbols=$always_export_symbols
9577
9578 # The commands to list exported symbols.
9579 export_symbols_cmds=$lt_export_symbols_cmds
9580
9581 # The commands to extract the exported symbol list from a shared archive.
9582 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9583
9584 # Symbols that should not be listed in the preloaded symbols.
9585 exclude_expsyms=$lt_exclude_expsyms
9586
9587 # Symbols that must always be exported.
9588 include_expsyms=$lt_include_expsyms
9589
9590 # ### END LIBTOOL CONFIG
9591
9592 __EOF__
9593
9594
9595   case $host_os in
9596   aix3*)
9597     cat <<\EOF >> "$cfgfile"
9598
9599 # AIX sometimes has problems with the GCC collect2 program.  For some
9600 # reason, if we set the COLLECT_NAMES environment variable, the problems
9601 # vanish in a puff of smoke.
9602 if test "X${COLLECT_NAMES+set}" != Xset; then
9603   COLLECT_NAMES=
9604   export COLLECT_NAMES
9605 fi
9606 EOF
9607     ;;
9608   esac
9609
9610   # We use sed instead of cat because bash on DJGPP gets confused if
9611   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9612   # text mode, it properly converts lines to CR/LF.  This bash problem
9613   # is reportedly fixed, but why not run on old versions too?
9614   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9615
9616   mv -f "$cfgfile" "$ofile" || \
9617     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9618   chmod +x "$ofile"
9619
9620 else
9621   # If there is no Makefile yet, we rely on a make rule to execute
9622   # `config.status --recheck' to rerun these tests and create the
9623   # libtool script then.
9624   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9625   if test -f "$ltmain_in"; then
9626     test -f Makefile && make "$ltmain"
9627   fi
9628 fi
9629
9630
9631 ac_ext=c
9632 ac_cpp='$CPP $CPPFLAGS'
9633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9636
9637 CC="$lt_save_CC"
9638
9639
9640 # Check whether --with-tags or --without-tags was given.
9641 if test "${with_tags+set}" = set; then
9642   withval="$with_tags"
9643   tagnames="$withval"
9644 fi;
9645
9646 if test -f "$ltmain" && test -n "$tagnames"; then
9647   if test ! -f "${ofile}"; then
9648     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9649 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9650   fi
9651
9652   if test -z "$LTCC"; then
9653     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9654     if test -z "$LTCC"; then
9655       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9656 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9657     else
9658       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9659 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9660     fi
9661   fi
9662
9663   # Extract list of available tagged configurations in $ofile.
9664   # Note that this assumes the entire list is on one line.
9665   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9666
9667   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9668   for tagname in $tagnames; do
9669     IFS="$lt_save_ifs"
9670     # Check whether tagname contains only valid characters
9671     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9672     "") ;;
9673     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9674 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9675    { (exit 1); exit 1; }; }
9676         ;;
9677     esac
9678
9679     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9680     then
9681       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9682 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9683    { (exit 1); exit 1; }; }
9684     fi
9685
9686     # Update the list of available tags.
9687     if test -n "$tagname"; then
9688       echo appending configuration tag \"$tagname\" to $ofile
9689
9690       case $tagname in
9691       CXX)
9692         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9693             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9694             (test "X$CXX" != "Xg++"))) ; then
9695           ac_ext=cc
9696 ac_cpp='$CXXCPP $CPPFLAGS'
9697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9700
9701
9702
9703
9704 archive_cmds_need_lc_CXX=no
9705 allow_undefined_flag_CXX=
9706 always_export_symbols_CXX=no
9707 archive_expsym_cmds_CXX=
9708 export_dynamic_flag_spec_CXX=
9709 hardcode_direct_CXX=no
9710 hardcode_libdir_flag_spec_CXX=
9711 hardcode_libdir_flag_spec_ld_CXX=
9712 hardcode_libdir_separator_CXX=
9713 hardcode_minus_L_CXX=no
9714 hardcode_automatic_CXX=no
9715 module_cmds_CXX=
9716 module_expsym_cmds_CXX=
9717 link_all_deplibs_CXX=unknown
9718 old_archive_cmds_CXX=$old_archive_cmds
9719 no_undefined_flag_CXX=
9720 whole_archive_flag_spec_CXX=
9721 enable_shared_with_static_runtimes_CXX=no
9722
9723 # Dependencies to place before and after the object being linked:
9724 predep_objects_CXX=
9725 postdep_objects_CXX=
9726 predeps_CXX=
9727 postdeps_CXX=
9728 compiler_lib_search_path_CXX=
9729
9730 # Source file extension for C++ test sources.
9731 ac_ext=cpp
9732
9733 # Object file extension for compiled C++ test sources.
9734 objext=o
9735 objext_CXX=$objext
9736
9737 # Code to be used in simple compile tests
9738 lt_simple_compile_test_code="int some_variable = 0;\n"
9739
9740 # Code to be used in simple link tests
9741 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9742
9743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9744
9745 # If no C compiler was specified, use CC.
9746 LTCC=${LTCC-"$CC"}
9747
9748 # Allow CC to be a program name with arguments.
9749 compiler=$CC
9750
9751
9752 # save warnings/boilerplate of simple test code
9753 ac_outfile=conftest.$ac_objext
9754 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9756 _lt_compiler_boilerplate=`cat conftest.err`
9757 $rm conftest*
9758
9759 ac_outfile=conftest.$ac_objext
9760 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9762 _lt_linker_boilerplate=`cat conftest.err`
9763 $rm conftest*
9764
9765
9766 # Allow CC to be a program name with arguments.
9767 lt_save_CC=$CC
9768 lt_save_LD=$LD
9769 lt_save_GCC=$GCC
9770 GCC=$GXX
9771 lt_save_with_gnu_ld=$with_gnu_ld
9772 lt_save_path_LD=$lt_cv_path_LD
9773 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9774   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9775 else
9776   unset lt_cv_prog_gnu_ld
9777 fi
9778 if test -n "${lt_cv_path_LDCXX+set}"; then
9779   lt_cv_path_LD=$lt_cv_path_LDCXX
9780 else
9781   unset lt_cv_path_LD
9782 fi
9783 test -z "${LDCXX+set}" || LD=$LDCXX
9784 CC=${CXX-"c++"}
9785 compiler=$CC
9786 compiler_CXX=$CC
9787 for cc_temp in $compiler""; do
9788   case $cc_temp in
9789     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9790     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9791     \-*) ;;
9792     *) break;;
9793   esac
9794 done
9795 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9796
9797
9798 # We don't want -fno-exception wen compiling C++ code, so set the
9799 # no_builtin_flag separately
9800 if test "$GXX" = yes; then
9801   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9802 else
9803   lt_prog_compiler_no_builtin_flag_CXX=
9804 fi
9805
9806 if test "$GXX" = yes; then
9807   # Set up default GNU C++ configuration
9808
9809
9810 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9811 if test "${with_gnu_ld+set}" = set; then
9812   withval="$with_gnu_ld"
9813   test "$withval" = no || with_gnu_ld=yes
9814 else
9815   with_gnu_ld=no
9816 fi;
9817 ac_prog=ld
9818 if test "$GCC" = yes; then
9819   # Check if gcc -print-prog-name=ld gives a path.
9820   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9821 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9822   case $host in
9823   *-*-mingw*)
9824     # gcc leaves a trailing carriage return which upsets mingw
9825     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9826   *)
9827     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9828   esac
9829   case $ac_prog in
9830     # Accept absolute paths.
9831     [\\/]* | ?:[\\/]*)
9832       re_direlt='/[^/][^/]*/\.\./'
9833       # Canonicalize the pathname of ld
9834       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9835       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9836         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9837       done
9838       test -z "$LD" && LD="$ac_prog"
9839       ;;
9840   "")
9841     # If it fails, then pretend we aren't using GCC.
9842     ac_prog=ld
9843     ;;
9844   *)
9845     # If it is relative, then search for the first ld in PATH.
9846     with_gnu_ld=unknown
9847     ;;
9848   esac
9849 elif test "$with_gnu_ld" = yes; then
9850   echo "$as_me:$LINENO: checking for GNU ld" >&5
9851 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9852 else
9853   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9854 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9855 fi
9856 if test "${lt_cv_path_LD+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859   if test -z "$LD"; then
9860   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9861   for ac_dir in $PATH; do
9862     IFS="$lt_save_ifs"
9863     test -z "$ac_dir" && ac_dir=.
9864     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9865       lt_cv_path_LD="$ac_dir/$ac_prog"
9866       # Check to see if the program is GNU ld.  I'd rather use --version,
9867       # but apparently some variants of GNU ld only accept -v.
9868       # Break only if it was the GNU/non-GNU ld that we prefer.
9869       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9870       *GNU* | *'with BFD'*)
9871         test "$with_gnu_ld" != no && break
9872         ;;
9873       *)
9874         test "$with_gnu_ld" != yes && break
9875         ;;
9876       esac
9877     fi
9878   done
9879   IFS="$lt_save_ifs"
9880 else
9881   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9882 fi
9883 fi
9884
9885 LD="$lt_cv_path_LD"
9886 if test -n "$LD"; then
9887   echo "$as_me:$LINENO: result: $LD" >&5
9888 echo "${ECHO_T}$LD" >&6
9889 else
9890   echo "$as_me:$LINENO: result: no" >&5
9891 echo "${ECHO_T}no" >&6
9892 fi
9893 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9894 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9895    { (exit 1); exit 1; }; }
9896 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9897 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9898 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9899   echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9902 case `$LD -v 2>&1 </dev/null` in
9903 *GNU* | *'with BFD'*)
9904   lt_cv_prog_gnu_ld=yes
9905   ;;
9906 *)
9907   lt_cv_prog_gnu_ld=no
9908   ;;
9909 esac
9910 fi
9911 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9912 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9913 with_gnu_ld=$lt_cv_prog_gnu_ld
9914
9915
9916
9917   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9918   # archiving commands below assume that GNU ld is being used.
9919   if test "$with_gnu_ld" = yes; then
9920     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9921     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9922
9923     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9924     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9925
9926     # If archive_cmds runs LD, not CC, wlarc should be empty
9927     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9928     #     investigate it a little bit more. (MM)
9929     wlarc='${wl}'
9930
9931     # ancient GNU ld didn't support --whole-archive et. al.
9932     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9933         grep 'no-whole-archive' > /dev/null; then
9934       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9935     else
9936       whole_archive_flag_spec_CXX=
9937     fi
9938   else
9939     with_gnu_ld=no
9940     wlarc=
9941
9942     # A generic and very simple default shared library creation
9943     # command for GNU C++ for the case where it uses the native
9944     # linker, instead of GNU ld.  If possible, this setting should
9945     # overridden to take advantage of the native linker features on
9946     # the platform it is being used on.
9947     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9948   fi
9949
9950   # Commands to make compiler produce verbose output that lists
9951   # what "hidden" libraries, object files and flags are used when
9952   # linking a shared library.
9953   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9954
9955 else
9956   GXX=no
9957   with_gnu_ld=no
9958   wlarc=
9959 fi
9960
9961 # PORTME: fill in a description of your system's C++ link characteristics
9962 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9963 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9964 ld_shlibs_CXX=yes
9965 case $host_os in
9966   aix3*)
9967     # FIXME: insert proper C++ library support
9968     ld_shlibs_CXX=no
9969     ;;
9970   aix4* | aix5*)
9971     if test "$host_cpu" = ia64; then
9972       # On IA64, the linker does run time linking by default, so we don't
9973       # have to do anything special.
9974       aix_use_runtimelinking=no
9975       exp_sym_flag='-Bexport'
9976       no_entry_flag=""
9977     else
9978       aix_use_runtimelinking=no
9979
9980       # Test if we are trying to use run time linking or normal
9981       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9982       # need to do runtime linking.
9983       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9984         for ld_flag in $LDFLAGS; do
9985           case $ld_flag in
9986           *-brtl*)
9987             aix_use_runtimelinking=yes
9988             break
9989             ;;
9990           esac
9991         done
9992       esac
9993
9994       exp_sym_flag='-bexport'
9995       no_entry_flag='-bnoentry'
9996     fi
9997
9998     # When large executables or shared objects are built, AIX ld can
9999     # have problems creating the table of contents.  If linking a library
10000     # or program results in "error TOC overflow" add -mminimal-toc to
10001     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10002     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10003
10004     archive_cmds_CXX=''
10005     hardcode_direct_CXX=yes
10006     hardcode_libdir_separator_CXX=':'
10007     link_all_deplibs_CXX=yes
10008
10009     if test "$GXX" = yes; then
10010       case $host_os in aix4.[012]|aix4.[012].*)
10011       # We only want to do this on AIX 4.2 and lower, the check
10012       # below for broken collect2 doesn't work under 4.3+
10013         collect2name=`${CC} -print-prog-name=collect2`
10014         if test -f "$collect2name" && \
10015            strings "$collect2name" | grep resolve_lib_name >/dev/null
10016         then
10017           # We have reworked collect2
10018           hardcode_direct_CXX=yes
10019         else
10020           # We have old collect2
10021           hardcode_direct_CXX=unsupported
10022           # It fails to find uninstalled libraries when the uninstalled
10023           # path is not listed in the libpath.  Setting hardcode_minus_L
10024           # to unsupported forces relinking
10025           hardcode_minus_L_CXX=yes
10026           hardcode_libdir_flag_spec_CXX='-L$libdir'
10027           hardcode_libdir_separator_CXX=
10028         fi
10029       esac
10030       shared_flag='-shared'
10031       if test "$aix_use_runtimelinking" = yes; then
10032         shared_flag="$shared_flag "'${wl}-G'
10033       fi
10034     else
10035       # not using gcc
10036       if test "$host_cpu" = ia64; then
10037         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10038         # chokes on -Wl,-G. The following line is correct:
10039         shared_flag='-G'
10040       else
10041         if test "$aix_use_runtimelinking" = yes; then
10042           shared_flag='${wl}-G'
10043         else
10044           shared_flag='${wl}-bM:SRE'
10045         fi
10046       fi
10047     fi
10048
10049     # It seems that -bexpall does not export symbols beginning with
10050     # underscore (_), so it is better to generate a list of symbols to export.
10051     always_export_symbols_CXX=yes
10052     if test "$aix_use_runtimelinking" = yes; then
10053       # Warning - without using the other runtime loading flags (-brtl),
10054       # -berok will link without error, but may produce a broken library.
10055       allow_undefined_flag_CXX='-berok'
10056       # Determine the default libpath from the value encoded in an empty executable.
10057       cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063
10064 int
10065 main ()
10066 {
10067
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 rm -f conftest.$ac_objext conftest$ac_exeext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10074   (eval $ac_link) 2>conftest.er1
10075   ac_status=$?
10076   grep -v '^ *+' conftest.er1 >conftest.err
10077   rm -f conftest.er1
10078   cat conftest.err >&5
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); } &&
10081          { ac_try='test -z "$ac_cxx_werror_flag"
10082                          || test ! -s conftest.err'
10083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084   (eval $ac_try) 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; } &&
10088          { ac_try='test -s conftest$ac_exeext'
10089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090   (eval $ac_try) 2>&5
10091   ac_status=$?
10092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093   (exit $ac_status); }; }; then
10094
10095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10096 }'`
10097 # Check for a 64-bit object if we didn't find anything.
10098 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10099 }'`; fi
10100 else
10101   echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 fi
10105 rm -f conftest.err conftest.$ac_objext \
10106       conftest$ac_exeext conftest.$ac_ext
10107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10108
10109       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10110
10111       archive_expsym_cmds_CXX="\$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"
10112      else
10113       if test "$host_cpu" = ia64; then
10114         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10115         allow_undefined_flag_CXX="-z nodefs"
10116         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10117       else
10118         # Determine the default libpath from the value encoded in an empty executable.
10119         cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h.  */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h.  */
10125
10126 int
10127 main ()
10128 {
10129
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136   (eval $ac_link) 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -z "$ac_cxx_werror_flag"
10144                          || test ! -s conftest.err'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; } &&
10150          { ac_try='test -s conftest$ac_exeext'
10151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152   (eval $ac_try) 2>&5
10153   ac_status=$?
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); }; }; then
10156
10157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10158 }'`
10159 # Check for a 64-bit object if we didn't find anything.
10160 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10161 }'`; fi
10162 else
10163   echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 fi
10167 rm -f conftest.err conftest.$ac_objext \
10168       conftest$ac_exeext conftest.$ac_ext
10169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10170
10171         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10172         # Warning - without using the other run time loading flags,
10173         # -berok will link without error, but may produce a broken library.
10174         no_undefined_flag_CXX=' ${wl}-bernotok'
10175         allow_undefined_flag_CXX=' ${wl}-berok'
10176         # -bexpall does not export symbols beginning with underscore (_)
10177         always_export_symbols_CXX=yes
10178         # Exported symbols can be pulled into shared objects from archives
10179         whole_archive_flag_spec_CXX=' '
10180         archive_cmds_need_lc_CXX=yes
10181         # This is similar to how AIX traditionally builds its shared libraries.
10182         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10183       fi
10184     fi
10185     ;;
10186   chorus*)
10187     case $cc_basename in
10188       *)
10189         # FIXME: insert proper C++ library support
10190         ld_shlibs_CXX=no
10191         ;;
10192     esac
10193     ;;
10194
10195
10196   cygwin* | mingw* | pw32*)
10197     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10198     # as there is no search path for DLLs.
10199     hardcode_libdir_flag_spec_CXX='-L$libdir'
10200     allow_undefined_flag_CXX=unsupported
10201     always_export_symbols_CXX=no
10202     enable_shared_with_static_runtimes_CXX=yes
10203
10204     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10205       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10206       # If the export-symbols file already is a .def file (1st line
10207       # is EXPORTS), use it as is; otherwise, prepend...
10208       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10209         cp $export_symbols $output_objdir/$soname.def;
10210       else
10211         echo EXPORTS > $output_objdir/$soname.def;
10212         cat $export_symbols >> $output_objdir/$soname.def;
10213       fi~
10214       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10215     else
10216       ld_shlibs_CXX=no
10217     fi
10218   ;;
10219       darwin* | rhapsody*)
10220         case $host_os in
10221         rhapsody* | darwin1.[012])
10222          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10223          ;;
10224        *) # Darwin 1.3 on
10225          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10226            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10227          else
10228            case ${MACOSX_DEPLOYMENT_TARGET} in
10229              10.[012])
10230                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10231                ;;
10232              10.*)
10233                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10234                ;;
10235            esac
10236          fi
10237          ;;
10238         esac
10239       archive_cmds_need_lc_CXX=no
10240       hardcode_direct_CXX=no
10241       hardcode_automatic_CXX=yes
10242       hardcode_shlibpath_var_CXX=unsupported
10243       whole_archive_flag_spec_CXX=''
10244       link_all_deplibs_CXX=yes
10245
10246     if test "$GXX" = yes ; then
10247       lt_int_apple_cc_single_mod=no
10248       output_verbose_link_cmd='echo'
10249       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10250        lt_int_apple_cc_single_mod=yes
10251       fi
10252       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10253        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10254       else
10255           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10256         fi
10257         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10258         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10259           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10260             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10261           else
10262             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10263           fi
10264             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10265       else
10266       case $cc_basename in
10267         xlc*)
10268          output_verbose_link_cmd='echo'
10269           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10270           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10271           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10272           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10273           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10274           ;;
10275        *)
10276          ld_shlibs_CXX=no
10277           ;;
10278       esac
10279       fi
10280         ;;
10281
10282   dgux*)
10283     case $cc_basename in
10284       ec++*)
10285         # FIXME: insert proper C++ library support
10286         ld_shlibs_CXX=no
10287         ;;
10288       ghcx*)
10289         # Green Hills C++ Compiler
10290         # FIXME: insert proper C++ library support
10291         ld_shlibs_CXX=no
10292         ;;
10293       *)
10294         # FIXME: insert proper C++ library support
10295         ld_shlibs_CXX=no
10296         ;;
10297     esac
10298     ;;
10299   freebsd[12]*)
10300     # C++ shared libraries reported to be fairly broken before switch to ELF
10301     ld_shlibs_CXX=no
10302     ;;
10303   freebsd-elf*)
10304     archive_cmds_need_lc_CXX=no
10305     ;;
10306   freebsd* | kfreebsd*-gnu | dragonfly*)
10307     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10308     # conventions
10309     ld_shlibs_CXX=yes
10310     ;;
10311   gnu*)
10312     ;;
10313   hpux9*)
10314     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10315     hardcode_libdir_separator_CXX=:
10316     export_dynamic_flag_spec_CXX='${wl}-E'
10317     hardcode_direct_CXX=yes
10318     hardcode_minus_L_CXX=yes # Not in the search PATH,
10319                                 # but as the default
10320                                 # location of the library.
10321
10322     case $cc_basename in
10323     CC*)
10324       # FIXME: insert proper C++ library support
10325       ld_shlibs_CXX=no
10326       ;;
10327     aCC*)
10328       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10329       # Commands to make compiler produce verbose output that lists
10330       # what "hidden" libraries, object files and flags are used when
10331       # linking a shared library.
10332       #
10333       # There doesn't appear to be a way to prevent this compiler from
10334       # explicitly linking system object files so we need to strip them
10335       # from the output so that they don't get included in the library
10336       # dependencies.
10337       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10338       ;;
10339     *)
10340       if test "$GXX" = yes; then
10341         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10342       else
10343         # FIXME: insert proper C++ library support
10344         ld_shlibs_CXX=no
10345       fi
10346       ;;
10347     esac
10348     ;;
10349   hpux10*|hpux11*)
10350     if test $with_gnu_ld = no; then
10351       case $host_cpu in
10352       hppa*64*)
10353         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10354         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10355         hardcode_libdir_separator_CXX=:
10356         ;;
10357       ia64*)
10358         hardcode_libdir_flag_spec_CXX='-L$libdir'
10359         ;;
10360       *)
10361         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10362         hardcode_libdir_separator_CXX=:
10363         export_dynamic_flag_spec_CXX='${wl}-E'
10364         ;;
10365       esac
10366     fi
10367     case $host_cpu in
10368     hppa*64*)
10369       hardcode_direct_CXX=no
10370       hardcode_shlibpath_var_CXX=no
10371       ;;
10372     ia64*)
10373       hardcode_direct_CXX=no
10374       hardcode_shlibpath_var_CXX=no
10375       hardcode_minus_L_CXX=yes # Not in the search PATH,
10376                                               # but as the default
10377                                               # location of the library.
10378       ;;
10379     *)
10380       hardcode_direct_CXX=yes
10381       hardcode_minus_L_CXX=yes # Not in the search PATH,
10382                                               # but as the default
10383                                               # location of the library.
10384       ;;
10385     esac
10386
10387     case $cc_basename in
10388       CC*)
10389         # FIXME: insert proper C++ library support
10390         ld_shlibs_CXX=no
10391         ;;
10392       aCC*)
10393         case $host_cpu in
10394         hppa*64*|ia64*)
10395           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10396           ;;
10397         *)
10398           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10399           ;;
10400         esac
10401         # Commands to make compiler produce verbose output that lists
10402         # what "hidden" libraries, object files and flags are used when
10403         # linking a shared library.
10404         #
10405         # There doesn't appear to be a way to prevent this compiler from
10406         # explicitly linking system object files so we need to strip them
10407         # from the output so that they don't get included in the library
10408         # dependencies.
10409         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10410         ;;
10411       *)
10412         if test "$GXX" = yes; then
10413           if test $with_gnu_ld = no; then
10414             case $host_cpu in
10415             ia64*|hppa*64*)
10416               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10417               ;;
10418             *)
10419               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10420               ;;
10421             esac
10422           fi
10423         else
10424           # FIXME: insert proper C++ library support
10425           ld_shlibs_CXX=no
10426         fi
10427         ;;
10428     esac
10429     ;;
10430   irix5* | irix6*)
10431     case $cc_basename in
10432       CC*)
10433         # SGI C++
10434         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10435
10436         # Archives containing C++ object files must be created using
10437         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10438         # necessary to make sure instantiated templates are included
10439         # in the archive.
10440         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10441         ;;
10442       *)
10443         if test "$GXX" = yes; then
10444           if test "$with_gnu_ld" = no; then
10445             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
10446           else
10447             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10448           fi
10449         fi
10450         link_all_deplibs_CXX=yes
10451         ;;
10452     esac
10453     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10454     hardcode_libdir_separator_CXX=:
10455     ;;
10456   linux*)
10457     case $cc_basename in
10458       KCC*)
10459         # Kuck and Associates, Inc. (KAI) C++ Compiler
10460
10461         # KCC will only create a shared library if the output file
10462         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10463         # to its proper name (with version) after linking.
10464         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10465         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10466         # Commands to make compiler produce verbose output that lists
10467         # what "hidden" libraries, object files and flags are used when
10468         # linking a shared library.
10469         #
10470         # There doesn't appear to be a way to prevent this compiler from
10471         # explicitly linking system object files so we need to strip them
10472         # from the output so that they don't get included in the library
10473         # dependencies.
10474         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10475
10476         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10477         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10478
10479         # Archives containing C++ object files must be created using
10480         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10481         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10482         ;;
10483       icpc*)
10484         # Intel C++
10485         with_gnu_ld=yes
10486         # version 8.0 and above of icpc choke on multiply defined symbols
10487         # if we add $predep_objects and $postdep_objects, however 7.1 and
10488         # earlier do not add the objects themselves.
10489         case `$CC -V 2>&1` in
10490         *"Version 7."*)
10491           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10492           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10493           ;;
10494         *)  # Version 8.0 or newer
10495           tmp_idyn=
10496           case $host_cpu in
10497             ia64*) tmp_idyn=' -i_dynamic';;
10498           esac
10499           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10500           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10501           ;;
10502         esac
10503         archive_cmds_need_lc_CXX=no
10504         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10505         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10506         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10507         ;;
10508       pgCC*)
10509         # Portland Group C++ compiler
10510         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10511         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10512
10513         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10514         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10515         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10516         ;;
10517       cxx*)
10518         # Compaq C++
10519         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10520         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10521
10522         runpath_var=LD_RUN_PATH
10523         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10524         hardcode_libdir_separator_CXX=:
10525
10526         # Commands to make compiler produce verbose output that lists
10527         # what "hidden" libraries, object files and flags are used when
10528         # linking a shared library.
10529         #
10530         # There doesn't appear to be a way to prevent this compiler from
10531         # explicitly linking system object files so we need to strip them
10532         # from the output so that they don't get included in the library
10533         # dependencies.
10534         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10535         ;;
10536     esac
10537     ;;
10538   lynxos*)
10539     # FIXME: insert proper C++ library support
10540     ld_shlibs_CXX=no
10541     ;;
10542   m88k*)
10543     # FIXME: insert proper C++ library support
10544     ld_shlibs_CXX=no
10545     ;;
10546   mvs*)
10547     case $cc_basename in
10548       cxx*)
10549         # FIXME: insert proper C++ library support
10550         ld_shlibs_CXX=no
10551         ;;
10552       *)
10553         # FIXME: insert proper C++ library support
10554         ld_shlibs_CXX=no
10555         ;;
10556     esac
10557     ;;
10558   netbsd*)
10559     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10560       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10561       wlarc=
10562       hardcode_libdir_flag_spec_CXX='-R$libdir'
10563       hardcode_direct_CXX=yes
10564       hardcode_shlibpath_var_CXX=no
10565     fi
10566     # Workaround some broken pre-1.5 toolchains
10567     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10568     ;;
10569   openbsd2*)
10570     # C++ shared libraries are fairly broken
10571     ld_shlibs_CXX=no
10572     ;;
10573   openbsd*)
10574     hardcode_direct_CXX=yes
10575     hardcode_shlibpath_var_CXX=no
10576     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10577     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10578     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10579       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10580       export_dynamic_flag_spec_CXX='${wl}-E'
10581       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10582     fi
10583     output_verbose_link_cmd='echo'
10584     ;;
10585   osf3*)
10586     case $cc_basename in
10587       KCC*)
10588         # Kuck and Associates, Inc. (KAI) C++ Compiler
10589
10590         # KCC will only create a shared library if the output file
10591         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10592         # to its proper name (with version) after linking.
10593         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10594
10595         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10596         hardcode_libdir_separator_CXX=:
10597
10598         # Archives containing C++ object files must be created using
10599         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10600         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10601
10602         ;;
10603       RCC*)
10604         # Rational C++ 2.4.1
10605         # FIXME: insert proper C++ library support
10606         ld_shlibs_CXX=no
10607         ;;
10608       cxx*)
10609         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10610         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10611
10612         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10613         hardcode_libdir_separator_CXX=:
10614
10615         # Commands to make compiler produce verbose output that lists
10616         # what "hidden" libraries, object files and flags are used when
10617         # linking a shared library.
10618         #
10619         # There doesn't appear to be a way to prevent this compiler from
10620         # explicitly linking system object files so we need to strip them
10621         # from the output so that they don't get included in the library
10622         # dependencies.
10623         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10624         ;;
10625       *)
10626         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10627           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10628           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
10629
10630           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10631           hardcode_libdir_separator_CXX=:
10632
10633           # Commands to make compiler produce verbose output that lists
10634           # what "hidden" libraries, object files and flags are used when
10635           # linking a shared library.
10636           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10637
10638         else
10639           # FIXME: insert proper C++ library support
10640           ld_shlibs_CXX=no
10641         fi
10642         ;;
10643     esac
10644     ;;
10645   osf4* | osf5*)
10646     case $cc_basename in
10647       KCC*)
10648         # Kuck and Associates, Inc. (KAI) C++ Compiler
10649
10650         # KCC will only create a shared library if the output file
10651         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10652         # to its proper name (with version) after linking.
10653         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10654
10655         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10656         hardcode_libdir_separator_CXX=:
10657
10658         # Archives containing C++ object files must be created using
10659         # the KAI C++ compiler.
10660         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10661         ;;
10662       RCC*)
10663         # Rational C++ 2.4.1
10664         # FIXME: insert proper C++ library support
10665         ld_shlibs_CXX=no
10666         ;;
10667       cxx*)
10668         allow_undefined_flag_CXX=' -expect_unresolved \*'
10669         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10670         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10671           echo "-hidden">> $lib.exp~
10672           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10673           $rm $lib.exp'
10674
10675         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10676         hardcode_libdir_separator_CXX=:
10677
10678         # Commands to make compiler produce verbose output that lists
10679         # what "hidden" libraries, object files and flags are used when
10680         # linking a shared library.
10681         #
10682         # There doesn't appear to be a way to prevent this compiler from
10683         # explicitly linking system object files so we need to strip them
10684         # from the output so that they don't get included in the library
10685         # dependencies.
10686         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10687         ;;
10688       *)
10689         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10690           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10691          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
10692
10693           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10694           hardcode_libdir_separator_CXX=:
10695
10696           # Commands to make compiler produce verbose output that lists
10697           # what "hidden" libraries, object files and flags are used when
10698           # linking a shared library.
10699           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10700
10701         else
10702           # FIXME: insert proper C++ library support
10703           ld_shlibs_CXX=no
10704         fi
10705         ;;
10706     esac
10707     ;;
10708   psos*)
10709     # FIXME: insert proper C++ library support
10710     ld_shlibs_CXX=no
10711     ;;
10712   sco*)
10713     archive_cmds_need_lc_CXX=no
10714     case $cc_basename in
10715       CC*)
10716         # FIXME: insert proper C++ library support
10717         ld_shlibs_CXX=no
10718         ;;
10719       *)
10720         # FIXME: insert proper C++ library support
10721         ld_shlibs_CXX=no
10722         ;;
10723     esac
10724     ;;
10725   sunos4*)
10726     case $cc_basename in
10727       CC*)
10728         # Sun C++ 4.x
10729         # FIXME: insert proper C++ library support
10730         ld_shlibs_CXX=no
10731         ;;
10732       lcc*)
10733         # Lucid
10734         # FIXME: insert proper C++ library support
10735         ld_shlibs_CXX=no
10736         ;;
10737       *)
10738         # FIXME: insert proper C++ library support
10739         ld_shlibs_CXX=no
10740         ;;
10741     esac
10742     ;;
10743   solaris*)
10744     case $cc_basename in
10745       CC*)
10746         # Sun C++ 4.2, 5.x and Centerline C++
10747         archive_cmds_need_lc_CXX=yes
10748         no_undefined_flag_CXX=' -zdefs'
10749         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10750         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10751         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10752
10753         hardcode_libdir_flag_spec_CXX='-R$libdir'
10754         hardcode_shlibpath_var_CXX=no
10755         case $host_os in
10756           solaris2.[0-5] | solaris2.[0-5].*) ;;
10757           *)
10758             # The C++ compiler is used as linker so we must use $wl
10759             # flag to pass the commands to the underlying system
10760             # linker. We must also pass each convience library through
10761             # to the system linker between allextract/defaultextract.
10762             # The C++ compiler will combine linker options so we
10763             # cannot just pass the convience library names through
10764             # without $wl.
10765             # Supported since Solaris 2.6 (maybe 2.5.1?)
10766             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10767             ;;
10768         esac
10769         link_all_deplibs_CXX=yes
10770
10771         output_verbose_link_cmd='echo'
10772
10773         # Archives containing C++ object files must be created using
10774         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10775         # necessary to make sure instantiated templates are included
10776         # in the archive.
10777         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10778         ;;
10779       gcx*)
10780         # Green Hills C++ Compiler
10781         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10782
10783         # The C++ compiler must be used to create the archive.
10784         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10785         ;;
10786       *)
10787         # GNU C++ compiler with Solaris linker
10788         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10789           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10790           if $CC --version | grep -v '^2\.7' > /dev/null; then
10791             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10792             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10793                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10794
10795             # Commands to make compiler produce verbose output that lists
10796             # what "hidden" libraries, object files and flags are used when
10797             # linking a shared library.
10798             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10799           else
10800             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10801             # platform.
10802             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10803             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10804                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10805
10806             # Commands to make compiler produce verbose output that lists
10807             # what "hidden" libraries, object files and flags are used when
10808             # linking a shared library.
10809             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10810           fi
10811
10812           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10813         fi
10814         ;;
10815     esac
10816     ;;
10817   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10818     archive_cmds_need_lc_CXX=no
10819     ;;
10820   tandem*)
10821     case $cc_basename in
10822       NCC*)
10823         # NonStop-UX NCC 3.20
10824         # FIXME: insert proper C++ library support
10825         ld_shlibs_CXX=no
10826         ;;
10827       *)
10828         # FIXME: insert proper C++ library support
10829         ld_shlibs_CXX=no
10830         ;;
10831     esac
10832     ;;
10833   vxworks*)
10834     # FIXME: insert proper C++ library support
10835     ld_shlibs_CXX=no
10836     ;;
10837   *)
10838     # FIXME: insert proper C++ library support
10839     ld_shlibs_CXX=no
10840     ;;
10841 esac
10842 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10843 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10844 test "$ld_shlibs_CXX" = no && can_build_shared=no
10845
10846 GCC_CXX="$GXX"
10847 LD_CXX="$LD"
10848
10849
10850 cat > conftest.$ac_ext <<EOF
10851 class Foo
10852 {
10853 public:
10854   Foo (void) { a = 0; }
10855 private:
10856   int a;
10857 };
10858 EOF
10859
10860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861   (eval $ac_compile) 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; then
10865   # Parse the compiler output and extract the necessary
10866   # objects, libraries and library flags.
10867
10868   # Sentinel used to keep track of whether or not we are before
10869   # the conftest object file.
10870   pre_test_object_deps_done=no
10871
10872   # The `*' in the case matches for architectures that use `case' in
10873   # $output_verbose_cmd can trigger glob expansion during the loop
10874   # eval without this substitution.
10875   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10876
10877   for p in `eval $output_verbose_link_cmd`; do
10878     case $p in
10879
10880     -L* | -R* | -l*)
10881        # Some compilers place space between "-{L,R}" and the path.
10882        # Remove the space.
10883        if test $p = "-L" \
10884           || test $p = "-R"; then
10885          prev=$p
10886          continue
10887        else
10888          prev=
10889        fi
10890
10891        if test "$pre_test_object_deps_done" = no; then
10892          case $p in
10893          -L* | -R*)
10894            # Internal compiler library paths should come after those
10895            # provided the user.  The postdeps already come after the
10896            # user supplied libs so there is no need to process them.
10897            if test -z "$compiler_lib_search_path_CXX"; then
10898              compiler_lib_search_path_CXX="${prev}${p}"
10899            else
10900              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10901            fi
10902            ;;
10903          # The "-l" case would never come before the object being
10904          # linked, so don't bother handling this case.
10905          esac
10906        else
10907          if test -z "$postdeps_CXX"; then
10908            postdeps_CXX="${prev}${p}"
10909          else
10910            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10911          fi
10912        fi
10913        ;;
10914
10915     *.$objext)
10916        # This assumes that the test object file only shows up
10917        # once in the compiler output.
10918        if test "$p" = "conftest.$objext"; then
10919          pre_test_object_deps_done=yes
10920          continue
10921        fi
10922
10923        if test "$pre_test_object_deps_done" = no; then
10924          if test -z "$predep_objects_CXX"; then
10925            predep_objects_CXX="$p"
10926          else
10927            predep_objects_CXX="$predep_objects_CXX $p"
10928          fi
10929        else
10930          if test -z "$postdep_objects_CXX"; then
10931            postdep_objects_CXX="$p"
10932          else
10933            postdep_objects_CXX="$postdep_objects_CXX $p"
10934          fi
10935        fi
10936        ;;
10937
10938     *) ;; # Ignore the rest.
10939
10940     esac
10941   done
10942
10943   # Clean up.
10944   rm -f a.out a.exe
10945 else
10946   echo "libtool.m4: error: problem compiling CXX test program"
10947 fi
10948
10949 $rm -f confest.$objext
10950
10951 # PORTME: override above test on systems where it is broken
10952 case $host_os in
10953 solaris*)
10954   case $cc_basename in
10955   CC*)
10956     # Adding this requires a known-good setup of shared libraries for
10957     # Sun compiler versions before 5.6, else PIC objects from an old
10958     # archive will be linked into the output, leading to subtle bugs.
10959     postdeps_CXX='-lCstd -lCrun'
10960     ;;
10961   esac
10962 esac
10963
10964
10965 case " $postdeps_CXX " in
10966 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10967 esac
10968
10969 lt_prog_compiler_wl_CXX=
10970 lt_prog_compiler_pic_CXX=
10971 lt_prog_compiler_static_CXX=
10972
10973 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10975
10976   # C++ specific cases for pic, static, wl, etc.
10977   if test "$GXX" = yes; then
10978     lt_prog_compiler_wl_CXX='-Wl,'
10979     lt_prog_compiler_static_CXX='-static'
10980
10981     case $host_os in
10982     aix*)
10983       # All AIX code is PIC.
10984       if test "$host_cpu" = ia64; then
10985         # AIX 5 now supports IA64 processor
10986         lt_prog_compiler_static_CXX='-Bstatic'
10987       fi
10988       ;;
10989     amigaos*)
10990       # FIXME: we need at least 68020 code to build shared libraries, but
10991       # adding the `-m68020' flag to GCC prevents building anything better,
10992       # like `-m68040'.
10993       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10994       ;;
10995     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10996       # PIC is the default for these OSes.
10997       ;;
10998     mingw* | os2* | pw32*)
10999       # This hack is so that the source file can tell whether it is being
11000       # built for inclusion in a dll (and should export symbols for example).
11001       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11002       ;;
11003     darwin* | rhapsody*)
11004       # PIC is the default on this platform
11005       # Common symbols not allowed in MH_DYLIB files
11006       lt_prog_compiler_pic_CXX='-fno-common'
11007       ;;
11008     *djgpp*)
11009       # DJGPP does not support shared libraries at all
11010       lt_prog_compiler_pic_CXX=
11011       ;;
11012     sysv4*MP*)
11013       if test -d /usr/nec; then
11014         lt_prog_compiler_pic_CXX=-Kconform_pic
11015       fi
11016       ;;
11017     hpux*)
11018       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11019       # not for PA HP-UX.
11020       case $host_cpu in
11021       hppa*64*|ia64*)
11022         ;;
11023       *)
11024         lt_prog_compiler_pic_CXX='-fPIC'
11025         ;;
11026       esac
11027       ;;
11028     *)
11029       lt_prog_compiler_pic_CXX='-fPIC'
11030       ;;
11031     esac
11032   else
11033     case $host_os in
11034       aix4* | aix5*)
11035         # All AIX code is PIC.
11036         if test "$host_cpu" = ia64; then
11037           # AIX 5 now supports IA64 processor
11038           lt_prog_compiler_static_CXX='-Bstatic'
11039         else
11040           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11041         fi
11042         ;;
11043       chorus*)
11044         case $cc_basename in
11045         cxch68*)
11046           # Green Hills C++ Compiler
11047           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11048           ;;
11049         esac
11050         ;;
11051        darwin*)
11052          # PIC is the default on this platform
11053          # Common symbols not allowed in MH_DYLIB files
11054          case $cc_basename in
11055            xlc*)
11056            lt_prog_compiler_pic_CXX='-qnocommon'
11057            lt_prog_compiler_wl_CXX='-Wl,'
11058            ;;
11059          esac
11060        ;;
11061       dgux*)
11062         case $cc_basename in
11063           ec++*)
11064             lt_prog_compiler_pic_CXX='-KPIC'
11065             ;;
11066           ghcx*)
11067             # Green Hills C++ Compiler
11068             lt_prog_compiler_pic_CXX='-pic'
11069             ;;
11070           *)
11071             ;;
11072         esac
11073         ;;
11074       freebsd* | kfreebsd*-gnu | dragonfly*)
11075         # FreeBSD uses GNU C++
11076         ;;
11077       hpux9* | hpux10* | hpux11*)
11078         case $cc_basename in
11079           CC*)
11080             lt_prog_compiler_wl_CXX='-Wl,'
11081             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11082             if test "$host_cpu" != ia64; then
11083               lt_prog_compiler_pic_CXX='+Z'
11084             fi
11085             ;;
11086           aCC*)
11087             lt_prog_compiler_wl_CXX='-Wl,'
11088             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11089             case $host_cpu in
11090             hppa*64*|ia64*)
11091               # +Z the default
11092               ;;
11093             *)
11094               lt_prog_compiler_pic_CXX='+Z'
11095               ;;
11096             esac
11097             ;;
11098           *)
11099             ;;
11100         esac
11101         ;;
11102       irix5* | irix6* | nonstopux*)
11103         case $cc_basename in
11104           CC*)
11105             lt_prog_compiler_wl_CXX='-Wl,'
11106             lt_prog_compiler_static_CXX='-non_shared'
11107             # CC pic flag -KPIC is the default.
11108             ;;
11109           *)
11110             ;;
11111         esac
11112         ;;
11113       linux*)
11114         case $cc_basename in
11115           KCC*)
11116             # KAI C++ Compiler
11117             lt_prog_compiler_wl_CXX='--backend -Wl,'
11118             lt_prog_compiler_pic_CXX='-fPIC'
11119             ;;
11120           icpc* | ecpc*)
11121             # Intel C++
11122             lt_prog_compiler_wl_CXX='-Wl,'
11123             lt_prog_compiler_pic_CXX='-KPIC'
11124             lt_prog_compiler_static_CXX='-static'
11125             ;;
11126           pgCC*)
11127             # Portland Group C++ compiler.
11128             lt_prog_compiler_wl_CXX='-Wl,'
11129             lt_prog_compiler_pic_CXX='-fpic'
11130             lt_prog_compiler_static_CXX='-Bstatic'
11131             ;;
11132           cxx*)
11133             # Compaq C++
11134             # Make sure the PIC flag is empty.  It appears that all Alpha
11135             # Linux and Compaq Tru64 Unix objects are PIC.
11136             lt_prog_compiler_pic_CXX=
11137             lt_prog_compiler_static_CXX='-non_shared'
11138             ;;
11139           *)
11140             ;;
11141         esac
11142         ;;
11143       lynxos*)
11144         ;;
11145       m88k*)
11146         ;;
11147       mvs*)
11148         case $cc_basename in
11149           cxx*)
11150             lt_prog_compiler_pic_CXX='-W c,exportall'
11151             ;;
11152           *)
11153             ;;
11154         esac
11155         ;;
11156       netbsd*)
11157         ;;
11158       osf3* | osf4* | osf5*)
11159         case $cc_basename in
11160           KCC*)
11161             lt_prog_compiler_wl_CXX='--backend -Wl,'
11162             ;;
11163           RCC*)
11164             # Rational C++ 2.4.1
11165             lt_prog_compiler_pic_CXX='-pic'
11166             ;;
11167           cxx*)
11168             # Digital/Compaq C++
11169             lt_prog_compiler_wl_CXX='-Wl,'
11170             # Make sure the PIC flag is empty.  It appears that all Alpha
11171             # Linux and Compaq Tru64 Unix objects are PIC.
11172             lt_prog_compiler_pic_CXX=
11173             lt_prog_compiler_static_CXX='-non_shared'
11174             ;;
11175           *)
11176             ;;
11177         esac
11178         ;;
11179       psos*)
11180         ;;
11181       sco*)
11182         case $cc_basename in
11183           CC*)
11184             lt_prog_compiler_pic_CXX='-fPIC'
11185             ;;
11186           *)
11187             ;;
11188         esac
11189         ;;
11190       solaris*)
11191         case $cc_basename in
11192           CC*)
11193             # Sun C++ 4.2, 5.x and Centerline C++
11194             lt_prog_compiler_pic_CXX='-KPIC'
11195             lt_prog_compiler_static_CXX='-Bstatic'
11196             lt_prog_compiler_wl_CXX='-Qoption ld '
11197             ;;
11198           gcx*)
11199             # Green Hills C++ Compiler
11200             lt_prog_compiler_pic_CXX='-PIC'
11201             ;;
11202           *)
11203             ;;
11204         esac
11205         ;;
11206       sunos4*)
11207         case $cc_basename in
11208           CC*)
11209             # Sun C++ 4.x
11210             lt_prog_compiler_pic_CXX='-pic'
11211             lt_prog_compiler_static_CXX='-Bstatic'
11212             ;;
11213           lcc*)
11214             # Lucid
11215             lt_prog_compiler_pic_CXX='-pic'
11216             ;;
11217           *)
11218             ;;
11219         esac
11220         ;;
11221       tandem*)
11222         case $cc_basename in
11223           NCC*)
11224             # NonStop-UX NCC 3.20
11225             lt_prog_compiler_pic_CXX='-KPIC'
11226             ;;
11227           *)
11228             ;;
11229         esac
11230         ;;
11231       unixware*)
11232         ;;
11233       vxworks*)
11234         ;;
11235       *)
11236         lt_prog_compiler_can_build_shared_CXX=no
11237         ;;
11238     esac
11239   fi
11240
11241 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11242 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11243
11244 #
11245 # Check to make sure the PIC flag actually works.
11246 #
11247 if test -n "$lt_prog_compiler_pic_CXX"; then
11248
11249 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11250 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11251 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11252   echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254   lt_prog_compiler_pic_works_CXX=no
11255   ac_outfile=conftest.$ac_objext
11256    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11257    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11258    # Insert the option either (1) after the last *FLAGS variable, or
11259    # (2) before a word containing "conftest.", or (3) at the end.
11260    # Note that $ac_compile itself does not contain backslashes and begins
11261    # with a dollar sign (not a hyphen), so the echo should work correctly.
11262    # The option is referenced via a variable to avoid confusing sed.
11263    lt_compile=`echo "$ac_compile" | $SED \
11264    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11265    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11266    -e 's:$: $lt_compiler_flag:'`
11267    (eval echo "\"\$as_me:11267: $lt_compile\"" >&5)
11268    (eval "$lt_compile" 2>conftest.err)
11269    ac_status=$?
11270    cat conftest.err >&5
11271    echo "$as_me:11271: \$? = $ac_status" >&5
11272    if (exit $ac_status) && test -s "$ac_outfile"; then
11273      # The compiler can only warn and ignore the option if not recognized
11274      # So say no if there are warnings other than the usual output.
11275      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11276      $SED '/^$/d' conftest.err >conftest.er2
11277      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11278        lt_prog_compiler_pic_works_CXX=yes
11279      fi
11280    fi
11281    $rm conftest*
11282
11283 fi
11284 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11285 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11286
11287 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11288     case $lt_prog_compiler_pic_CXX in
11289      "" | " "*) ;;
11290      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11291      esac
11292 else
11293     lt_prog_compiler_pic_CXX=
11294      lt_prog_compiler_can_build_shared_CXX=no
11295 fi
11296
11297 fi
11298 case $host_os in
11299   # For platforms which do not support PIC, -DPIC is meaningless:
11300   *djgpp*)
11301     lt_prog_compiler_pic_CXX=
11302     ;;
11303   *)
11304     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11305     ;;
11306 esac
11307
11308 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11309 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11310 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11311   echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313   lt_cv_prog_compiler_c_o_CXX=no
11314    $rm -r conftest 2>/dev/null
11315    mkdir conftest
11316    cd conftest
11317    mkdir out
11318    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11319
11320    lt_compiler_flag="-o out/conftest2.$ac_objext"
11321    # Insert the option either (1) after the last *FLAGS variable, or
11322    # (2) before a word containing "conftest.", or (3) at the end.
11323    # Note that $ac_compile itself does not contain backslashes and begins
11324    # with a dollar sign (not a hyphen), so the echo should work correctly.
11325    lt_compile=`echo "$ac_compile" | $SED \
11326    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11328    -e 's:$: $lt_compiler_flag:'`
11329    (eval echo "\"\$as_me:11329: $lt_compile\"" >&5)
11330    (eval "$lt_compile" 2>out/conftest.err)
11331    ac_status=$?
11332    cat out/conftest.err >&5
11333    echo "$as_me:11333: \$? = $ac_status" >&5
11334    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11335    then
11336      # The compiler can only warn and ignore the option if not recognized
11337      # So say no if there are warnings
11338      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11339      $SED '/^$/d' out/conftest.err >out/conftest.er2
11340      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11341        lt_cv_prog_compiler_c_o_CXX=yes
11342      fi
11343    fi
11344    chmod u+w . 2>&5
11345    $rm conftest*
11346    # SGI C++ compiler will create directory out/ii_files/ for
11347    # template instantiation
11348    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11349    $rm out/* && rmdir out
11350    cd ..
11351    rmdir conftest
11352    $rm conftest*
11353
11354 fi
11355 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11356 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11357
11358
11359 hard_links="nottested"
11360 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11361   # do not overwrite the value of need_locks provided by the user
11362   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11363 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11364   hard_links=yes
11365   $rm conftest*
11366   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11367   touch conftest.a
11368   ln conftest.a conftest.b 2>&5 || hard_links=no
11369   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11370   echo "$as_me:$LINENO: result: $hard_links" >&5
11371 echo "${ECHO_T}$hard_links" >&6
11372   if test "$hard_links" = no; then
11373     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11374 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11375     need_locks=warn
11376   fi
11377 else
11378   need_locks=no
11379 fi
11380
11381 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11382 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11383
11384   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11385   case $host_os in
11386   aix4* | aix5*)
11387     # If we're using GNU nm, then we don't want the "-C" option.
11388     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11389     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11390       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11391     else
11392       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11393     fi
11394     ;;
11395   pw32*)
11396     export_symbols_cmds_CXX="$ltdll_cmds"
11397   ;;
11398   cygwin* | mingw*)
11399     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11400   ;;
11401   *)
11402     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11403   ;;
11404   esac
11405
11406 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11407 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11408 test "$ld_shlibs_CXX" = no && can_build_shared=no
11409
11410 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11411 if test "$GCC" = yes; then
11412   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11413 fi
11414
11415 #
11416 # Do we need to explicitly link libc?
11417 #
11418 case "x$archive_cmds_need_lc_CXX" in
11419 x|xyes)
11420   # Assume -lc should be added
11421   archive_cmds_need_lc_CXX=yes
11422
11423   if test "$enable_shared" = yes && test "$GCC" = yes; then
11424     case $archive_cmds_CXX in
11425     *'~'*)
11426       # FIXME: we may have to deal with multi-command sequences.
11427       ;;
11428     '$CC '*)
11429       # Test whether the compiler implicitly links with -lc since on some
11430       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11431       # to ld, don't add -lc before -lgcc.
11432       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11433 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11434       $rm conftest*
11435       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11436
11437       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438   (eval $ac_compile) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } 2>conftest.err; then
11442         soname=conftest
11443         lib=conftest
11444         libobjs=conftest.$ac_objext
11445         deplibs=
11446         wl=$lt_prog_compiler_wl_CXX
11447         compiler_flags=-v
11448         linker_flags=-v
11449         verstring=
11450         output_objdir=.
11451         libname=conftest
11452         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11453         allow_undefined_flag_CXX=
11454         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11455   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); }
11459         then
11460           archive_cmds_need_lc_CXX=no
11461         else
11462           archive_cmds_need_lc_CXX=yes
11463         fi
11464         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11465       else
11466         cat conftest.err 1>&5
11467       fi
11468       $rm conftest*
11469       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11470 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11471       ;;
11472     esac
11473   fi
11474   ;;
11475 esac
11476
11477 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11478 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11479 library_names_spec=
11480 libname_spec='lib$name'
11481 soname_spec=
11482 shrext_cmds=".so"
11483 postinstall_cmds=
11484 postuninstall_cmds=
11485 finish_cmds=
11486 finish_eval=
11487 shlibpath_var=
11488 shlibpath_overrides_runpath=unknown
11489 version_type=none
11490 dynamic_linker="$host_os ld.so"
11491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11492 if test "$GCC" = yes; then
11493   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11494   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11495     # if the path contains ";" then we assume it to be the separator
11496     # otherwise default to the standard path separator (i.e. ":") - it is
11497     # assumed that no part of a normal pathname contains ";" but that should
11498     # okay in the real world where ";" in dirpaths is itself problematic.
11499     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11500   else
11501     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11502   fi
11503 else
11504   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11505 fi
11506 need_lib_prefix=unknown
11507 hardcode_into_libs=no
11508
11509 # when you set need_version to no, make sure it does not cause -set_version
11510 # flags to be left without arguments
11511 need_version=unknown
11512
11513 case $host_os in
11514 aix3*)
11515   version_type=linux
11516   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11517   shlibpath_var=LIBPATH
11518
11519   # AIX 3 has no versioning support, so we append a major version to the name.
11520   soname_spec='${libname}${release}${shared_ext}$major'
11521   ;;
11522
11523 aix4* | aix5*)
11524   version_type=linux
11525   need_lib_prefix=no
11526   need_version=no
11527   hardcode_into_libs=yes
11528   if test "$host_cpu" = ia64; then
11529     # AIX 5 supports IA64
11530     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11531     shlibpath_var=LD_LIBRARY_PATH
11532   else
11533     # With GCC up to 2.95.x, collect2 would create an import file
11534     # for dependence libraries.  The import file would start with
11535     # the line `#! .'.  This would cause the generated library to
11536     # depend on `.', always an invalid library.  This was fixed in
11537     # development snapshots of GCC prior to 3.0.
11538     case $host_os in
11539       aix4 | aix4.[01] | aix4.[01].*)
11540       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11541            echo ' yes '
11542            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11543         :
11544       else
11545         can_build_shared=no
11546       fi
11547       ;;
11548     esac
11549     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11550     # soname into executable. Probably we can add versioning support to
11551     # collect2, so additional links can be useful in future.
11552     if test "$aix_use_runtimelinking" = yes; then
11553       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11554       # instead of lib<name>.a to let people know that these are not
11555       # typical AIX shared libraries.
11556       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557     else
11558       # We preserve .a as extension for shared libraries through AIX4.2
11559       # and later when we are not doing run time linking.
11560       library_names_spec='${libname}${release}.a $libname.a'
11561       soname_spec='${libname}${release}${shared_ext}$major'
11562     fi
11563     shlibpath_var=LIBPATH
11564   fi
11565   ;;
11566
11567 amigaos*)
11568   library_names_spec='$libname.ixlibrary $libname.a'
11569   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11570   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'
11571   ;;
11572
11573 beos*)
11574   library_names_spec='${libname}${shared_ext}'
11575   dynamic_linker="$host_os ld.so"
11576   shlibpath_var=LIBRARY_PATH
11577   ;;
11578
11579 bsdi[45]*)
11580   version_type=linux
11581   need_version=no
11582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583   soname_spec='${libname}${release}${shared_ext}$major'
11584   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11585   shlibpath_var=LD_LIBRARY_PATH
11586   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11587   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11588   # the default ld.so.conf also contains /usr/contrib/lib and
11589   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11590   # libtool to hard-code these into programs
11591   ;;
11592
11593 cygwin* | mingw* | pw32*)
11594   version_type=windows
11595   shrext_cmds=".dll"
11596   need_version=no
11597   need_lib_prefix=no
11598
11599   case $GCC,$host_os in
11600   yes,cygwin* | yes,mingw* | yes,pw32*)
11601     library_names_spec='$libname.dll.a'
11602     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11603     postinstall_cmds='base_file=`basename \${file}`~
11604       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11605       dldir=$destdir/`dirname \$dlpath`~
11606       test -d \$dldir || mkdir -p \$dldir~
11607       $install_prog $dir/$dlname \$dldir/$dlname~
11608       chmod a+x \$dldir/$dlname'
11609     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11610       dlpath=$dir/\$dldll~
11611        $rm \$dlpath'
11612     shlibpath_overrides_runpath=yes
11613
11614     case $host_os in
11615     cygwin*)
11616       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11617       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11618       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11619       ;;
11620     mingw*)
11621       # MinGW DLLs use traditional 'lib' prefix
11622       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11623       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11624       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11625         # It is most probably a Windows format PATH printed by
11626         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11627         # path with ; separators, and with drive letters. We can handle the
11628         # drive letters (cygwin fileutils understands them), so leave them,
11629         # especially as we might pass files found there to a mingw objdump,
11630         # which wouldn't understand a cygwinified path. Ahh.
11631         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11632       else
11633         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11634       fi
11635       ;;
11636     pw32*)
11637       # pw32 DLLs use 'pw' prefix rather than 'lib'
11638       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11639       ;;
11640     esac
11641     ;;
11642
11643   *)
11644     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11645     ;;
11646   esac
11647   dynamic_linker='Win32 ld.exe'
11648   # FIXME: first we should search . and the directory the executable is in
11649   shlibpath_var=PATH
11650   ;;
11651
11652 darwin* | rhapsody*)
11653   dynamic_linker="$host_os dyld"
11654   version_type=darwin
11655   need_lib_prefix=no
11656   need_version=no
11657   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11658   soname_spec='${libname}${release}${major}$shared_ext'
11659   shlibpath_overrides_runpath=yes
11660   shlibpath_var=DYLD_LIBRARY_PATH
11661   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11662   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11663   if test "$GCC" = yes; then
11664     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11665   else
11666     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11667   fi
11668   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11669   ;;
11670
11671 dgux*)
11672   version_type=linux
11673   need_lib_prefix=no
11674   need_version=no
11675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11676   soname_spec='${libname}${release}${shared_ext}$major'
11677   shlibpath_var=LD_LIBRARY_PATH
11678   ;;
11679
11680 freebsd1*)
11681   dynamic_linker=no
11682   ;;
11683
11684 kfreebsd*-gnu)
11685   version_type=linux
11686   need_lib_prefix=no
11687   need_version=no
11688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11689   soname_spec='${libname}${release}${shared_ext}$major'
11690   shlibpath_var=LD_LIBRARY_PATH
11691   shlibpath_overrides_runpath=no
11692   hardcode_into_libs=yes
11693   dynamic_linker='GNU ld.so'
11694   ;;
11695
11696 freebsd* | dragonfly*)
11697   # DragonFly does not have aout.  When/if they implement a new
11698   # versioning mechanism, adjust this.
11699   if test -x /usr/bin/objformat; then
11700     objformat=`/usr/bin/objformat`
11701   else
11702     case $host_os in
11703     freebsd[123]*) objformat=aout ;;
11704     *) objformat=elf ;;
11705     esac
11706   fi
11707   version_type=freebsd-$objformat
11708   case $version_type in
11709     freebsd-elf*)
11710       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11711       need_version=no
11712       need_lib_prefix=no
11713       ;;
11714     freebsd-*)
11715       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11716       need_version=yes
11717       ;;
11718   esac
11719   shlibpath_var=LD_LIBRARY_PATH
11720   case $host_os in
11721   freebsd2*)
11722     shlibpath_overrides_runpath=yes
11723     ;;
11724   freebsd3.[01]* | freebsdelf3.[01]*)
11725     shlibpath_overrides_runpath=yes
11726     hardcode_into_libs=yes
11727     ;;
11728   *) # from 3.2 on
11729     shlibpath_overrides_runpath=no
11730     hardcode_into_libs=yes
11731     ;;
11732   esac
11733   ;;
11734
11735 gnu*)
11736   version_type=linux
11737   need_lib_prefix=no
11738   need_version=no
11739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11740   soname_spec='${libname}${release}${shared_ext}$major'
11741   shlibpath_var=LD_LIBRARY_PATH
11742   hardcode_into_libs=yes
11743   ;;
11744
11745 hpux9* | hpux10* | hpux11*)
11746   # Give a soname corresponding to the major version so that dld.sl refuses to
11747   # link against other versions.
11748   version_type=sunos
11749   need_lib_prefix=no
11750   need_version=no
11751   case $host_cpu in
11752   ia64*)
11753     shrext_cmds='.so'
11754     hardcode_into_libs=yes
11755     dynamic_linker="$host_os dld.so"
11756     shlibpath_var=LD_LIBRARY_PATH
11757     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759     soname_spec='${libname}${release}${shared_ext}$major'
11760     if test "X$HPUX_IA64_MODE" = X32; then
11761       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11762     else
11763       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11764     fi
11765     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11766     ;;
11767    hppa*64*)
11768      shrext_cmds='.sl'
11769      hardcode_into_libs=yes
11770      dynamic_linker="$host_os dld.sl"
11771      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11772      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11773      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774      soname_spec='${libname}${release}${shared_ext}$major'
11775      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11776      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11777      ;;
11778    *)
11779     shrext_cmds='.sl'
11780     dynamic_linker="$host_os dld.sl"
11781     shlibpath_var=SHLIB_PATH
11782     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784     soname_spec='${libname}${release}${shared_ext}$major'
11785     ;;
11786   esac
11787   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11788   postinstall_cmds='chmod 555 $lib'
11789   ;;
11790
11791 irix5* | irix6* | nonstopux*)
11792   case $host_os in
11793     nonstopux*) version_type=nonstopux ;;
11794     *)
11795         if test "$lt_cv_prog_gnu_ld" = yes; then
11796                 version_type=linux
11797         else
11798                 version_type=irix
11799         fi ;;
11800   esac
11801   need_lib_prefix=no
11802   need_version=no
11803   soname_spec='${libname}${release}${shared_ext}$major'
11804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11805   case $host_os in
11806   irix5* | nonstopux*)
11807     libsuff= shlibsuff=
11808     ;;
11809   *)
11810     case $LD in # libtool.m4 will add one of these switches to LD
11811     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11812       libsuff= shlibsuff= libmagic=32-bit;;
11813     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11814       libsuff=32 shlibsuff=N32 libmagic=N32;;
11815     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11816       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11817     *) libsuff= shlibsuff= libmagic=never-match;;
11818     esac
11819     ;;
11820   esac
11821   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11822   shlibpath_overrides_runpath=no
11823   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11824   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11825   hardcode_into_libs=yes
11826   ;;
11827
11828 # No shared lib support for Linux oldld, aout, or coff.
11829 linux*oldld* | linux*aout* | linux*coff*)
11830   dynamic_linker=no
11831   ;;
11832
11833 # This must be Linux ELF.
11834 linux*)
11835   version_type=linux
11836   need_lib_prefix=no
11837   need_version=no
11838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839   soname_spec='${libname}${release}${shared_ext}$major'
11840   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11841   shlibpath_var=LD_LIBRARY_PATH
11842   shlibpath_overrides_runpath=no
11843   # This implies no fast_install, which is unacceptable.
11844   # Some rework will be needed to allow for fast_install
11845   # before this can be enabled.
11846   hardcode_into_libs=yes
11847
11848   # Append ld.so.conf contents to the search path
11849   if test -f /etc/ld.so.conf; then
11850     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11851     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11852   fi
11853
11854   # We used to test for /lib/ld.so.1 and disable shared libraries on
11855   # powerpc, because MkLinux only supported shared libraries with the
11856   # GNU dynamic linker.  Since this was broken with cross compilers,
11857   # most powerpc-linux boxes support dynamic linking these days and
11858   # people can always --disable-shared, the test was removed, and we
11859   # assume the GNU/Linux dynamic linker is in use.
11860   dynamic_linker='GNU/Linux ld.so'
11861   ;;
11862
11863 knetbsd*-gnu)
11864   version_type=linux
11865   need_lib_prefix=no
11866   need_version=no
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11868   soname_spec='${libname}${release}${shared_ext}$major'
11869   shlibpath_var=LD_LIBRARY_PATH
11870   shlibpath_overrides_runpath=no
11871   hardcode_into_libs=yes
11872   dynamic_linker='GNU ld.so'
11873   ;;
11874
11875 netbsd*)
11876   version_type=sunos
11877   need_lib_prefix=no
11878   need_version=no
11879   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11882     dynamic_linker='NetBSD (a.out) ld.so'
11883   else
11884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885     soname_spec='${libname}${release}${shared_ext}$major'
11886     dynamic_linker='NetBSD ld.elf_so'
11887   fi
11888   shlibpath_var=LD_LIBRARY_PATH
11889   shlibpath_overrides_runpath=yes
11890   hardcode_into_libs=yes
11891   ;;
11892
11893 newsos6)
11894   version_type=linux
11895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896   shlibpath_var=LD_LIBRARY_PATH
11897   shlibpath_overrides_runpath=yes
11898   ;;
11899
11900 nto-qnx*)
11901   version_type=linux
11902   need_lib_prefix=no
11903   need_version=no
11904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905   soname_spec='${libname}${release}${shared_ext}$major'
11906   shlibpath_var=LD_LIBRARY_PATH
11907   shlibpath_overrides_runpath=yes
11908   ;;
11909
11910 openbsd*)
11911   version_type=sunos
11912   need_lib_prefix=no
11913   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11914   case $host_os in
11915     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11916     *)                         need_version=no  ;;
11917   esac
11918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11920   shlibpath_var=LD_LIBRARY_PATH
11921   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11922     case $host_os in
11923       openbsd2.[89] | openbsd2.[89].*)
11924         shlibpath_overrides_runpath=no
11925         ;;
11926       *)
11927         shlibpath_overrides_runpath=yes
11928         ;;
11929       esac
11930   else
11931     shlibpath_overrides_runpath=yes
11932   fi
11933   ;;
11934
11935 os2*)
11936   libname_spec='$name'
11937   shrext_cmds=".dll"
11938   need_lib_prefix=no
11939   library_names_spec='$libname${shared_ext} $libname.a'
11940   dynamic_linker='OS/2 ld.exe'
11941   shlibpath_var=LIBPATH
11942   ;;
11943
11944 osf3* | osf4* | osf5*)
11945   version_type=osf
11946   need_lib_prefix=no
11947   need_version=no
11948   soname_spec='${libname}${release}${shared_ext}$major'
11949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11952   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11953   ;;
11954
11955 sco3.2v5*)
11956   version_type=osf
11957   soname_spec='${libname}${release}${shared_ext}$major'
11958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11959   shlibpath_var=LD_LIBRARY_PATH
11960   ;;
11961
11962 solaris*)
11963   version_type=linux
11964   need_lib_prefix=no
11965   need_version=no
11966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967   soname_spec='${libname}${release}${shared_ext}$major'
11968   shlibpath_var=LD_LIBRARY_PATH
11969   shlibpath_overrides_runpath=yes
11970   hardcode_into_libs=yes
11971   # ldd complains unless libraries are executable
11972   postinstall_cmds='chmod +x $lib'
11973   ;;
11974
11975 sunos4*)
11976   version_type=sunos
11977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11978   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11979   shlibpath_var=LD_LIBRARY_PATH
11980   shlibpath_overrides_runpath=yes
11981   if test "$with_gnu_ld" = yes; then
11982     need_lib_prefix=no
11983   fi
11984   need_version=yes
11985   ;;
11986
11987 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11988   version_type=linux
11989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990   soname_spec='${libname}${release}${shared_ext}$major'
11991   shlibpath_var=LD_LIBRARY_PATH
11992   case $host_vendor in
11993     sni)
11994       shlibpath_overrides_runpath=no
11995       need_lib_prefix=no
11996       export_dynamic_flag_spec='${wl}-Blargedynsym'
11997       runpath_var=LD_RUN_PATH
11998       ;;
11999     siemens)
12000       need_lib_prefix=no
12001       ;;
12002     motorola)
12003       need_lib_prefix=no
12004       need_version=no
12005       shlibpath_overrides_runpath=no
12006       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12007       ;;
12008   esac
12009   ;;
12010
12011 sysv4*MP*)
12012   if test -d /usr/nec ;then
12013     version_type=linux
12014     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12015     soname_spec='$libname${shared_ext}.$major'
12016     shlibpath_var=LD_LIBRARY_PATH
12017   fi
12018   ;;
12019
12020 uts4*)
12021   version_type=linux
12022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023   soname_spec='${libname}${release}${shared_ext}$major'
12024   shlibpath_var=LD_LIBRARY_PATH
12025   ;;
12026
12027 *)
12028   dynamic_linker=no
12029   ;;
12030 esac
12031 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12032 echo "${ECHO_T}$dynamic_linker" >&6
12033 test "$dynamic_linker" = no && can_build_shared=no
12034
12035 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12036 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12037 hardcode_action_CXX=
12038 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12039    test -n "$runpath_var_CXX" || \
12040    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12041
12042   # We can hardcode non-existant directories.
12043   if test "$hardcode_direct_CXX" != no &&
12044      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12045      # have to relink, otherwise we might link with an installed library
12046      # when we should be linking with a yet-to-be-installed one
12047      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12048      test "$hardcode_minus_L_CXX" != no; then
12049     # Linking always hardcodes the temporary library directory.
12050     hardcode_action_CXX=relink
12051   else
12052     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12053     hardcode_action_CXX=immediate
12054   fi
12055 else
12056   # We cannot hardcode anything, or else we can only hardcode existing
12057   # directories.
12058   hardcode_action_CXX=unsupported
12059 fi
12060 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12061 echo "${ECHO_T}$hardcode_action_CXX" >&6
12062
12063 if test "$hardcode_action_CXX" = relink; then
12064   # Fast installation is not supported
12065   enable_fast_install=no
12066 elif test "$shlibpath_overrides_runpath" = yes ||
12067      test "$enable_shared" = no; then
12068   # Fast installation is not necessary
12069   enable_fast_install=needless
12070 fi
12071
12072 striplib=
12073 old_striplib=
12074 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12075 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12076 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12077   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12078   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12079   echo "$as_me:$LINENO: result: yes" >&5
12080 echo "${ECHO_T}yes" >&6
12081 else
12082 # FIXME - insert some real tests, host_os isn't really good enough
12083   case $host_os in
12084    darwin*)
12085        if test -n "$STRIP" ; then
12086          striplib="$STRIP -x"
12087          echo "$as_me:$LINENO: result: yes" >&5
12088 echo "${ECHO_T}yes" >&6
12089        else
12090   echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6
12092 fi
12093        ;;
12094    *)
12095   echo "$as_me:$LINENO: result: no" >&5
12096 echo "${ECHO_T}no" >&6
12097     ;;
12098   esac
12099 fi
12100
12101 if test "x$enable_dlopen" != xyes; then
12102   enable_dlopen=unknown
12103   enable_dlopen_self=unknown
12104   enable_dlopen_self_static=unknown
12105 else
12106   lt_cv_dlopen=no
12107   lt_cv_dlopen_libs=
12108
12109   case $host_os in
12110   beos*)
12111     lt_cv_dlopen="load_add_on"
12112     lt_cv_dlopen_libs=
12113     lt_cv_dlopen_self=yes
12114     ;;
12115
12116   mingw* | pw32*)
12117     lt_cv_dlopen="LoadLibrary"
12118     lt_cv_dlopen_libs=
12119    ;;
12120
12121   cygwin*)
12122     lt_cv_dlopen="dlopen"
12123     lt_cv_dlopen_libs=
12124    ;;
12125
12126   darwin*)
12127   # if libdl is installed we need to link against it
12128     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12129 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133   ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-ldl  $LIBS"
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h.  */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h.  */
12141
12142 /* Override any gcc2 internal prototype to avoid an error.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 /* We use char because int might match the return type of a gcc2
12147    builtin and then its argument prototype would still apply.  */
12148 char dlopen ();
12149 int
12150 main ()
12151 {
12152 dlopen ();
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12159   (eval $ac_link) 2>conftest.er1
12160   ac_status=$?
12161   grep -v '^ *+' conftest.er1 >conftest.err
12162   rm -f conftest.er1
12163   cat conftest.err >&5
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } &&
12166          { ac_try='test -z "$ac_cxx_werror_flag"
12167                          || test ! -s conftest.err'
12168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169   (eval $ac_try) 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; } &&
12173          { ac_try='test -s conftest$ac_exeext'
12174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175   (eval $ac_try) 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; }; then
12179   ac_cv_lib_dl_dlopen=yes
12180 else
12181   echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ac_cv_lib_dl_dlopen=no
12185 fi
12186 rm -f conftest.err conftest.$ac_objext \
12187       conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12189 fi
12190 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12191 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12192 if test $ac_cv_lib_dl_dlopen = yes; then
12193   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12194 else
12195
12196     lt_cv_dlopen="dyld"
12197     lt_cv_dlopen_libs=
12198     lt_cv_dlopen_self=yes
12199
12200 fi
12201
12202    ;;
12203
12204   *)
12205     echo "$as_me:$LINENO: checking for shl_load" >&5
12206 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12207 if test "${ac_cv_func_shl_load+set}" = set; then
12208   echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210   cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12216 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12218 #define shl_load innocuous_shl_load
12219
12220 /* System header to define __stub macros and hopefully few prototypes,
12221     which can conflict with char shl_load (); below.
12222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223     <limits.h> exists even on freestanding compilers.  */
12224
12225 #ifdef __STDC__
12226 # include <limits.h>
12227 #else
12228 # include <assert.h>
12229 #endif
12230
12231 #undef shl_load
12232
12233 /* Override any gcc2 internal prototype to avoid an error.  */
12234 #ifdef __cplusplus
12235 extern "C"
12236 {
12237 #endif
12238 /* We use char because int might match the return type of a gcc2
12239    builtin and then its argument prototype would still apply.  */
12240 char shl_load ();
12241 /* The GNU C library defines this for functions which it implements
12242     to always fail with ENOSYS.  Some functions are actually named
12243     something starting with __ and the normal name is an alias.  */
12244 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12245 choke me
12246 #else
12247 char (*f) () = shl_load;
12248 #endif
12249 #ifdef __cplusplus
12250 }
12251 #endif
12252
12253 int
12254 main ()
12255 {
12256 return f != shl_load;
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263   (eval $ac_link) 2>conftest.er1
12264   ac_status=$?
12265   grep -v '^ *+' conftest.er1 >conftest.err
12266   rm -f conftest.er1
12267   cat conftest.err >&5
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); } &&
12270          { ac_try='test -z "$ac_cxx_werror_flag"
12271                          || test ! -s conftest.err'
12272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273   (eval $ac_try) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; } &&
12277          { ac_try='test -s conftest$ac_exeext'
12278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279   (eval $ac_try) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }; }; then
12283   ac_cv_func_shl_load=yes
12284 else
12285   echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12287
12288 ac_cv_func_shl_load=no
12289 fi
12290 rm -f conftest.err conftest.$ac_objext \
12291       conftest$ac_exeext conftest.$ac_ext
12292 fi
12293 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12294 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12295 if test $ac_cv_func_shl_load = yes; then
12296   lt_cv_dlopen="shl_load"
12297 else
12298   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12299 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12300 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12301   echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303   ac_check_lib_save_LIBS=$LIBS
12304 LIBS="-ldld  $LIBS"
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h.  */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h.  */
12311
12312 /* Override any gcc2 internal prototype to avoid an error.  */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 /* We use char because int might match the return type of a gcc2
12317    builtin and then its argument prototype would still apply.  */
12318 char shl_load ();
12319 int
12320 main ()
12321 {
12322 shl_load ();
12323   ;
12324   return 0;
12325 }
12326 _ACEOF
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12329   (eval $ac_link) 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
12333   cat conftest.err >&5
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } &&
12336          { ac_try='test -z "$ac_cxx_werror_flag"
12337                          || test ! -s conftest.err'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; } &&
12343          { ac_try='test -s conftest$ac_exeext'
12344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345   (eval $ac_try) 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); }; }; then
12349   ac_cv_lib_dld_shl_load=yes
12350 else
12351   echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354 ac_cv_lib_dld_shl_load=no
12355 fi
12356 rm -f conftest.err conftest.$ac_objext \
12357       conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12359 fi
12360 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12361 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12362 if test $ac_cv_lib_dld_shl_load = yes; then
12363   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12364 else
12365   echo "$as_me:$LINENO: checking for dlopen" >&5
12366 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12367 if test "${ac_cv_func_dlopen+set}" = set; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h.  */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h.  */
12376 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12378 #define dlopen innocuous_dlopen
12379
12380 /* System header to define __stub macros and hopefully few prototypes,
12381     which can conflict with char dlopen (); below.
12382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383     <limits.h> exists even on freestanding compilers.  */
12384
12385 #ifdef __STDC__
12386 # include <limits.h>
12387 #else
12388 # include <assert.h>
12389 #endif
12390
12391 #undef dlopen
12392
12393 /* Override any gcc2 internal prototype to avoid an error.  */
12394 #ifdef __cplusplus
12395 extern "C"
12396 {
12397 #endif
12398 /* We use char because int might match the return type of a gcc2
12399    builtin and then its argument prototype would still apply.  */
12400 char dlopen ();
12401 /* The GNU C library defines this for functions which it implements
12402     to always fail with ENOSYS.  Some functions are actually named
12403     something starting with __ and the normal name is an alias.  */
12404 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12405 choke me
12406 #else
12407 char (*f) () = dlopen;
12408 #endif
12409 #ifdef __cplusplus
12410 }
12411 #endif
12412
12413 int
12414 main ()
12415 {
12416 return f != dlopen;
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423   (eval $ac_link) 2>conftest.er1
12424   ac_status=$?
12425   grep -v '^ *+' conftest.er1 >conftest.err
12426   rm -f conftest.er1
12427   cat conftest.err >&5
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); } &&
12430          { ac_try='test -z "$ac_cxx_werror_flag"
12431                          || test ! -s conftest.err'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; } &&
12437          { ac_try='test -s conftest$ac_exeext'
12438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439   (eval $ac_try) 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; }; then
12443   ac_cv_func_dlopen=yes
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 ac_cv_func_dlopen=no
12449 fi
12450 rm -f conftest.err conftest.$ac_objext \
12451       conftest$ac_exeext conftest.$ac_ext
12452 fi
12453 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12454 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12455 if test $ac_cv_func_dlopen = yes; then
12456   lt_cv_dlopen="dlopen"
12457 else
12458   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12459 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12460 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463   ac_check_lib_save_LIBS=$LIBS
12464 LIBS="-ldl  $LIBS"
12465 cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h.  */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h.  */
12471
12472 /* Override any gcc2 internal prototype to avoid an error.  */
12473 #ifdef __cplusplus
12474 extern "C"
12475 #endif
12476 /* We use char because int might match the return type of a gcc2
12477    builtin and then its argument prototype would still apply.  */
12478 char dlopen ();
12479 int
12480 main ()
12481 {
12482 dlopen ();
12483   ;
12484   return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489   (eval $ac_link) 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } &&
12496          { ac_try='test -z "$ac_cxx_werror_flag"
12497                          || test ! -s conftest.err'
12498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499   (eval $ac_try) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; } &&
12503          { ac_try='test -s conftest$ac_exeext'
12504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505   (eval $ac_try) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; }; then
12509   ac_cv_lib_dl_dlopen=yes
12510 else
12511   echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 ac_cv_lib_dl_dlopen=no
12515 fi
12516 rm -f conftest.err conftest.$ac_objext \
12517       conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12519 fi
12520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12522 if test $ac_cv_lib_dl_dlopen = yes; then
12523   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12524 else
12525   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12526 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12527 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12528   echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530   ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-lsvld  $LIBS"
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538
12539 /* Override any gcc2 internal prototype to avoid an error.  */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 /* We use char because int might match the return type of a gcc2
12544    builtin and then its argument prototype would still apply.  */
12545 char dlopen ();
12546 int
12547 main ()
12548 {
12549 dlopen ();
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556   (eval $ac_link) 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } &&
12563          { ac_try='test -z "$ac_cxx_werror_flag"
12564                          || test ! -s conftest.err'
12565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566   (eval $ac_try) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); }; } &&
12570          { ac_try='test -s conftest$ac_exeext'
12571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572   (eval $ac_try) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; }; then
12576   ac_cv_lib_svld_dlopen=yes
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 ac_cv_lib_svld_dlopen=no
12582 fi
12583 rm -f conftest.err conftest.$ac_objext \
12584       conftest$ac_exeext conftest.$ac_ext
12585 LIBS=$ac_check_lib_save_LIBS
12586 fi
12587 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12588 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12589 if test $ac_cv_lib_svld_dlopen = yes; then
12590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12591 else
12592   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12593 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12594 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12595   echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597   ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-ldld  $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h.  */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h.  */
12605
12606 /* Override any gcc2 internal prototype to avoid an error.  */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 /* We use char because int might match the return type of a gcc2
12611    builtin and then its argument prototype would still apply.  */
12612 char dld_link ();
12613 int
12614 main ()
12615 {
12616 dld_link ();
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623   (eval $ac_link) 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } &&
12630          { ac_try='test -z "$ac_cxx_werror_flag"
12631                          || test ! -s conftest.err'
12632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633   (eval $ac_try) 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; } &&
12637          { ac_try='test -s conftest$ac_exeext'
12638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639   (eval $ac_try) 2>&5
12640   ac_status=$?
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); }; }; then
12643   ac_cv_lib_dld_dld_link=yes
12644 else
12645   echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648 ac_cv_lib_dld_dld_link=no
12649 fi
12650 rm -f conftest.err conftest.$ac_objext \
12651       conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12653 fi
12654 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12655 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12656 if test $ac_cv_lib_dld_dld_link = yes; then
12657   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12658 fi
12659
12660
12661 fi
12662
12663
12664 fi
12665
12666
12667 fi
12668
12669
12670 fi
12671
12672
12673 fi
12674
12675     ;;
12676   esac
12677
12678   if test "x$lt_cv_dlopen" != xno; then
12679     enable_dlopen=yes
12680   else
12681     enable_dlopen=no
12682   fi
12683
12684   case $lt_cv_dlopen in
12685   dlopen)
12686     save_CPPFLAGS="$CPPFLAGS"
12687     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12688
12689     save_LDFLAGS="$LDFLAGS"
12690     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12691
12692     save_LIBS="$LIBS"
12693     LIBS="$lt_cv_dlopen_libs $LIBS"
12694
12695     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12696 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12697 if test "${lt_cv_dlopen_self+set}" = set; then
12698   echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700           if test "$cross_compiling" = yes; then :
12701   lt_cv_dlopen_self=cross
12702 else
12703   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12704   lt_status=$lt_dlunknown
12705   cat > conftest.$ac_ext <<EOF
12706 #line 12706 "configure"
12707 #include "confdefs.h"
12708
12709 #if HAVE_DLFCN_H
12710 #include <dlfcn.h>
12711 #endif
12712
12713 #include <stdio.h>
12714
12715 #ifdef RTLD_GLOBAL
12716 #  define LT_DLGLOBAL           RTLD_GLOBAL
12717 #else
12718 #  ifdef DL_GLOBAL
12719 #    define LT_DLGLOBAL         DL_GLOBAL
12720 #  else
12721 #    define LT_DLGLOBAL         0
12722 #  endif
12723 #endif
12724
12725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12726    find out it does not work in some platform. */
12727 #ifndef LT_DLLAZY_OR_NOW
12728 #  ifdef RTLD_LAZY
12729 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12730 #  else
12731 #    ifdef DL_LAZY
12732 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12733 #    else
12734 #      ifdef RTLD_NOW
12735 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12736 #      else
12737 #        ifdef DL_NOW
12738 #          define LT_DLLAZY_OR_NOW      DL_NOW
12739 #        else
12740 #          define LT_DLLAZY_OR_NOW      0
12741 #        endif
12742 #      endif
12743 #    endif
12744 #  endif
12745 #endif
12746
12747 #ifdef __cplusplus
12748 extern "C" void exit (int);
12749 #endif
12750
12751 void fnord() { int i=42;}
12752 int main ()
12753 {
12754   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12755   int status = $lt_dlunknown;
12756
12757   if (self)
12758     {
12759       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12760       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12761       /* dlclose (self); */
12762     }
12763
12764     exit (status);
12765 }
12766 EOF
12767   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768   (eval $ac_link) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12772     (./conftest; exit; ) >&5 2>/dev/null
12773     lt_status=$?
12774     case x$lt_status in
12775       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12776       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12777       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12778     esac
12779   else :
12780     # compilation failed
12781     lt_cv_dlopen_self=no
12782   fi
12783 fi
12784 rm -fr conftest*
12785
12786
12787 fi
12788 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12789 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12790
12791     if test "x$lt_cv_dlopen_self" = xyes; then
12792       LDFLAGS="$LDFLAGS $link_static_flag"
12793       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12794 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12795 if test "${lt_cv_dlopen_self_static+set}" = set; then
12796   echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798           if test "$cross_compiling" = yes; then :
12799   lt_cv_dlopen_self_static=cross
12800 else
12801   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12802   lt_status=$lt_dlunknown
12803   cat > conftest.$ac_ext <<EOF
12804 #line 12804 "configure"
12805 #include "confdefs.h"
12806
12807 #if HAVE_DLFCN_H
12808 #include <dlfcn.h>
12809 #endif
12810
12811 #include <stdio.h>
12812
12813 #ifdef RTLD_GLOBAL
12814 #  define LT_DLGLOBAL           RTLD_GLOBAL
12815 #else
12816 #  ifdef DL_GLOBAL
12817 #    define LT_DLGLOBAL         DL_GLOBAL
12818 #  else
12819 #    define LT_DLGLOBAL         0
12820 #  endif
12821 #endif
12822
12823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12824    find out it does not work in some platform. */
12825 #ifndef LT_DLLAZY_OR_NOW
12826 #  ifdef RTLD_LAZY
12827 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12828 #  else
12829 #    ifdef DL_LAZY
12830 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12831 #    else
12832 #      ifdef RTLD_NOW
12833 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12834 #      else
12835 #        ifdef DL_NOW
12836 #          define LT_DLLAZY_OR_NOW      DL_NOW
12837 #        else
12838 #          define LT_DLLAZY_OR_NOW      0
12839 #        endif
12840 #      endif
12841 #    endif
12842 #  endif
12843 #endif
12844
12845 #ifdef __cplusplus
12846 extern "C" void exit (int);
12847 #endif
12848
12849 void fnord() { int i=42;}
12850 int main ()
12851 {
12852   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12853   int status = $lt_dlunknown;
12854
12855   if (self)
12856     {
12857       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12858       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12859       /* dlclose (self); */
12860     }
12861
12862     exit (status);
12863 }
12864 EOF
12865   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866   (eval $ac_link) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12870     (./conftest; exit; ) >&5 2>/dev/null
12871     lt_status=$?
12872     case x$lt_status in
12873       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12874       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12875       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12876     esac
12877   else :
12878     # compilation failed
12879     lt_cv_dlopen_self_static=no
12880   fi
12881 fi
12882 rm -fr conftest*
12883
12884
12885 fi
12886 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12887 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12888     fi
12889
12890     CPPFLAGS="$save_CPPFLAGS"
12891     LDFLAGS="$save_LDFLAGS"
12892     LIBS="$save_LIBS"
12893     ;;
12894   esac
12895
12896   case $lt_cv_dlopen_self in
12897   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12898   *) enable_dlopen_self=unknown ;;
12899   esac
12900
12901   case $lt_cv_dlopen_self_static in
12902   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12903   *) enable_dlopen_self_static=unknown ;;
12904   esac
12905 fi
12906
12907
12908 # The else clause should only fire when bootstrapping the
12909 # libtool distribution, otherwise you forgot to ship ltmain.sh
12910 # with your package, and you will get complaints that there are
12911 # no rules to generate ltmain.sh.
12912 if test -f "$ltmain"; then
12913   # See if we are running on zsh, and set the options which allow our commands through
12914   # without removal of \ escapes.
12915   if test -n "${ZSH_VERSION+set}" ; then
12916     setopt NO_GLOB_SUBST
12917   fi
12918   # Now quote all the things that may contain metacharacters while being
12919   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12920   # variables and quote the copies for generation of the libtool script.
12921   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12922     SED SHELL STRIP \
12923     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12924     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12925     deplibs_check_method reload_flag reload_cmds need_locks \
12926     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12927     lt_cv_sys_global_symbol_to_c_name_address \
12928     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12929     old_postinstall_cmds old_postuninstall_cmds \
12930     compiler_CXX \
12931     CC_CXX \
12932     LD_CXX \
12933     lt_prog_compiler_wl_CXX \
12934     lt_prog_compiler_pic_CXX \
12935     lt_prog_compiler_static_CXX \
12936     lt_prog_compiler_no_builtin_flag_CXX \
12937     export_dynamic_flag_spec_CXX \
12938     thread_safe_flag_spec_CXX \
12939     whole_archive_flag_spec_CXX \
12940     enable_shared_with_static_runtimes_CXX \
12941     old_archive_cmds_CXX \
12942     old_archive_from_new_cmds_CXX \
12943     predep_objects_CXX \
12944     postdep_objects_CXX \
12945     predeps_CXX \
12946     postdeps_CXX \
12947     compiler_lib_search_path_CXX \
12948     archive_cmds_CXX \
12949     archive_expsym_cmds_CXX \
12950     postinstall_cmds_CXX \
12951     postuninstall_cmds_CXX \
12952     old_archive_from_expsyms_cmds_CXX \
12953     allow_undefined_flag_CXX \
12954     no_undefined_flag_CXX \
12955     export_symbols_cmds_CXX \
12956     hardcode_libdir_flag_spec_CXX \
12957     hardcode_libdir_flag_spec_ld_CXX \
12958     hardcode_libdir_separator_CXX \
12959     hardcode_automatic_CXX \
12960     module_cmds_CXX \
12961     module_expsym_cmds_CXX \
12962     lt_cv_prog_compiler_c_o_CXX \
12963     exclude_expsyms_CXX \
12964     include_expsyms_CXX; do
12965
12966     case $var in
12967     old_archive_cmds_CXX | \
12968     old_archive_from_new_cmds_CXX | \
12969     archive_cmds_CXX | \
12970     archive_expsym_cmds_CXX | \
12971     module_cmds_CXX | \
12972     module_expsym_cmds_CXX | \
12973     old_archive_from_expsyms_cmds_CXX | \
12974     export_symbols_cmds_CXX | \
12975     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12976     postinstall_cmds | postuninstall_cmds | \
12977     old_postinstall_cmds | old_postuninstall_cmds | \
12978     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12979       # Double-quote double-evaled strings.
12980       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12981       ;;
12982     *)
12983       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12984       ;;
12985     esac
12986   done
12987
12988   case $lt_echo in
12989   *'\$0 --fallback-echo"')
12990     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12991     ;;
12992   esac
12993
12994 cfgfile="$ofile"
12995
12996   cat <<__EOF__ >> "$cfgfile"
12997 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12998
12999 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13000
13001 # Shell to use when invoking shell scripts.
13002 SHELL=$lt_SHELL
13003
13004 # Whether or not to build shared libraries.
13005 build_libtool_libs=$enable_shared
13006
13007 # Whether or not to build static libraries.
13008 build_old_libs=$enable_static
13009
13010 # Whether or not to add -lc for building shared libraries.
13011 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13012
13013 # Whether or not to disallow shared libs when runtime libs are static
13014 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13015
13016 # Whether or not to optimize for fast installation.
13017 fast_install=$enable_fast_install
13018
13019 # The host system.
13020 host_alias=$host_alias
13021 host=$host
13022 host_os=$host_os
13023
13024 # The build system.
13025 build_alias=$build_alias
13026 build=$build
13027 build_os=$build_os
13028
13029 # An echo program that does not interpret backslashes.
13030 echo=$lt_echo
13031
13032 # The archiver.
13033 AR=$lt_AR
13034 AR_FLAGS=$lt_AR_FLAGS
13035
13036 # A C compiler.
13037 LTCC=$lt_LTCC
13038
13039 # A language-specific compiler.
13040 CC=$lt_compiler_CXX
13041
13042 # Is the compiler the GNU C compiler?
13043 with_gcc=$GCC_CXX
13044
13045 # An ERE matcher.
13046 EGREP=$lt_EGREP
13047
13048 # The linker used to build libraries.
13049 LD=$lt_LD_CXX
13050
13051 # Whether we need hard or soft links.
13052 LN_S=$lt_LN_S
13053
13054 # A BSD-compatible nm program.
13055 NM=$lt_NM
13056
13057 # A symbol stripping program
13058 STRIP=$lt_STRIP
13059
13060 # Used to examine libraries when file_magic_cmd begins "file"
13061 MAGIC_CMD=$MAGIC_CMD
13062
13063 # Used on cygwin: DLL creation program.
13064 DLLTOOL="$DLLTOOL"
13065
13066 # Used on cygwin: object dumper.
13067 OBJDUMP="$OBJDUMP"
13068
13069 # Used on cygwin: assembler.
13070 AS="$AS"
13071
13072 # The name of the directory that contains temporary libtool files.
13073 objdir=$objdir
13074
13075 # How to create reloadable object files.
13076 reload_flag=$lt_reload_flag
13077 reload_cmds=$lt_reload_cmds
13078
13079 # How to pass a linker flag through the compiler.
13080 wl=$lt_lt_prog_compiler_wl_CXX
13081
13082 # Object file suffix (normally "o").
13083 objext="$ac_objext"
13084
13085 # Old archive suffix (normally "a").
13086 libext="$libext"
13087
13088 # Shared library suffix (normally ".so").
13089 shrext_cmds='$shrext_cmds'
13090
13091 # Executable file suffix (normally "").
13092 exeext="$exeext"
13093
13094 # Additional compiler flags for building library objects.
13095 pic_flag=$lt_lt_prog_compiler_pic_CXX
13096 pic_mode=$pic_mode
13097
13098 # What is the maximum length of a command?
13099 max_cmd_len=$lt_cv_sys_max_cmd_len
13100
13101 # Does compiler simultaneously support -c and -o options?
13102 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13103
13104 # Must we lock files when doing compilation?
13105 need_locks=$lt_need_locks
13106
13107 # Do we need the lib prefix for modules?
13108 need_lib_prefix=$need_lib_prefix
13109
13110 # Do we need a version for libraries?
13111 need_version=$need_version
13112
13113 # Whether dlopen is supported.
13114 dlopen_support=$enable_dlopen
13115
13116 # Whether dlopen of programs is supported.
13117 dlopen_self=$enable_dlopen_self
13118
13119 # Whether dlopen of statically linked programs is supported.
13120 dlopen_self_static=$enable_dlopen_self_static
13121
13122 # Compiler flag to prevent dynamic linking.
13123 link_static_flag=$lt_lt_prog_compiler_static_CXX
13124
13125 # Compiler flag to turn off builtin functions.
13126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13127
13128 # Compiler flag to allow reflexive dlopens.
13129 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13130
13131 # Compiler flag to generate shared objects directly from archives.
13132 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13133
13134 # Compiler flag to generate thread-safe objects.
13135 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13136
13137 # Library versioning type.
13138 version_type=$version_type
13139
13140 # Format of library name prefix.
13141 libname_spec=$lt_libname_spec
13142
13143 # List of archive names.  First name is the real one, the rest are links.
13144 # The last name is the one that the linker finds with -lNAME.
13145 library_names_spec=$lt_library_names_spec
13146
13147 # The coded name of the library, if different from the real name.
13148 soname_spec=$lt_soname_spec
13149
13150 # Commands used to build and install an old-style archive.
13151 RANLIB=$lt_RANLIB
13152 old_archive_cmds=$lt_old_archive_cmds_CXX
13153 old_postinstall_cmds=$lt_old_postinstall_cmds
13154 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13155
13156 # Create an old-style archive from a shared archive.
13157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13158
13159 # Create a temporary old-style archive to link instead of a shared archive.
13160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13161
13162 # Commands used to build and install a shared archive.
13163 archive_cmds=$lt_archive_cmds_CXX
13164 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13165 postinstall_cmds=$lt_postinstall_cmds
13166 postuninstall_cmds=$lt_postuninstall_cmds
13167
13168 # Commands used to build a loadable module (assumed same as above if empty)
13169 module_cmds=$lt_module_cmds_CXX
13170 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13171
13172 # Commands to strip libraries.
13173 old_striplib=$lt_old_striplib
13174 striplib=$lt_striplib
13175
13176 # Dependencies to place before the objects being linked to create a
13177 # shared library.
13178 predep_objects=$lt_predep_objects_CXX
13179
13180 # Dependencies to place after the objects being linked to create a
13181 # shared library.
13182 postdep_objects=$lt_postdep_objects_CXX
13183
13184 # Dependencies to place before the objects being linked to create a
13185 # shared library.
13186 predeps=$lt_predeps_CXX
13187
13188 # Dependencies to place after the objects being linked to create a
13189 # shared library.
13190 postdeps=$lt_postdeps_CXX
13191
13192 # The library search path used internally by the compiler when linking
13193 # a shared library.
13194 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13195
13196 # Method to check whether dependent libraries are shared objects.
13197 deplibs_check_method=$lt_deplibs_check_method
13198
13199 # Command to use when deplibs_check_method == file_magic.
13200 file_magic_cmd=$lt_file_magic_cmd
13201
13202 # Flag that allows shared libraries with undefined symbols to be built.
13203 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13204
13205 # Flag that forces no undefined symbols.
13206 no_undefined_flag=$lt_no_undefined_flag_CXX
13207
13208 # Commands used to finish a libtool library installation in a directory.
13209 finish_cmds=$lt_finish_cmds
13210
13211 # Same as above, but a single script fragment to be evaled but not shown.
13212 finish_eval=$lt_finish_eval
13213
13214 # Take the output of nm and produce a listing of raw symbols and C names.
13215 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13216
13217 # Transform the output of nm in a proper C declaration
13218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13219
13220 # Transform the output of nm in a C name address pair
13221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13222
13223 # This is the shared library runtime path variable.
13224 runpath_var=$runpath_var
13225
13226 # This is the shared library path variable.
13227 shlibpath_var=$shlibpath_var
13228
13229 # Is shlibpath searched before the hard-coded library search path?
13230 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13231
13232 # How to hardcode a shared library path into an executable.
13233 hardcode_action=$hardcode_action_CXX
13234
13235 # Whether we should hardcode library paths into libraries.
13236 hardcode_into_libs=$hardcode_into_libs
13237
13238 # Flag to hardcode \$libdir into a binary during linking.
13239 # This must work even if \$libdir does not exist.
13240 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13241
13242 # If ld is used when linking, flag to hardcode \$libdir into
13243 # a binary during linking. This must work even if \$libdir does
13244 # not exist.
13245 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13246
13247 # Whether we need a single -rpath flag with a separated argument.
13248 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13249
13250 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13251 # resulting binary.
13252 hardcode_direct=$hardcode_direct_CXX
13253
13254 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13255 # resulting binary.
13256 hardcode_minus_L=$hardcode_minus_L_CXX
13257
13258 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13259 # the resulting binary.
13260 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13261
13262 # Set to yes if building a shared library automatically hardcodes DIR into the library
13263 # and all subsequent libraries and executables linked against it.
13264 hardcode_automatic=$hardcode_automatic_CXX
13265
13266 # Variables whose values should be saved in libtool wrapper scripts and
13267 # restored at relink time.
13268 variables_saved_for_relink="$variables_saved_for_relink"
13269
13270 # Whether libtool must link a program against all its dependency libraries.
13271 link_all_deplibs=$link_all_deplibs_CXX
13272
13273 # Compile-time system search path for libraries
13274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13275
13276 # Run-time system search path for libraries
13277 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13278
13279 # Fix the shell variable \$srcfile for the compiler.
13280 fix_srcfile_path="$fix_srcfile_path_CXX"
13281
13282 # Set to yes if exported symbols are required.
13283 always_export_symbols=$always_export_symbols_CXX
13284
13285 # The commands to list exported symbols.
13286 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13287
13288 # The commands to extract the exported symbol list from a shared archive.
13289 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13290
13291 # Symbols that should not be listed in the preloaded symbols.
13292 exclude_expsyms=$lt_exclude_expsyms_CXX
13293
13294 # Symbols that must always be exported.
13295 include_expsyms=$lt_include_expsyms_CXX
13296
13297 # ### END LIBTOOL TAG CONFIG: $tagname
13298
13299 __EOF__
13300
13301
13302 else
13303   # If there is no Makefile yet, we rely on a make rule to execute
13304   # `config.status --recheck' to rerun these tests and create the
13305   # libtool script then.
13306   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13307   if test -f "$ltmain_in"; then
13308     test -f Makefile && make "$ltmain"
13309   fi
13310 fi
13311
13312
13313 ac_ext=c
13314 ac_cpp='$CPP $CPPFLAGS'
13315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13318
13319 CC=$lt_save_CC
13320 LDCXX=$LD
13321 LD=$lt_save_LD
13322 GCC=$lt_save_GCC
13323 with_gnu_ldcxx=$with_gnu_ld
13324 with_gnu_ld=$lt_save_with_gnu_ld
13325 lt_cv_path_LDCXX=$lt_cv_path_LD
13326 lt_cv_path_LD=$lt_save_path_LD
13327 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13328 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13329
13330         else
13331           tagname=""
13332         fi
13333         ;;
13334
13335       F77)
13336         if test -n "$F77" && test "X$F77" != "Xno"; then
13337
13338 ac_ext=f
13339 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13340 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13342
13343
13344 archive_cmds_need_lc_F77=no
13345 allow_undefined_flag_F77=
13346 always_export_symbols_F77=no
13347 archive_expsym_cmds_F77=
13348 export_dynamic_flag_spec_F77=
13349 hardcode_direct_F77=no
13350 hardcode_libdir_flag_spec_F77=
13351 hardcode_libdir_flag_spec_ld_F77=
13352 hardcode_libdir_separator_F77=
13353 hardcode_minus_L_F77=no
13354 hardcode_automatic_F77=no
13355 module_cmds_F77=
13356 module_expsym_cmds_F77=
13357 link_all_deplibs_F77=unknown
13358 old_archive_cmds_F77=$old_archive_cmds
13359 no_undefined_flag_F77=
13360 whole_archive_flag_spec_F77=
13361 enable_shared_with_static_runtimes_F77=no
13362
13363 # Source file extension for f77 test sources.
13364 ac_ext=f
13365
13366 # Object file extension for compiled f77 test sources.
13367 objext=o
13368 objext_F77=$objext
13369
13370 # Code to be used in simple compile tests
13371 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13372
13373 # Code to be used in simple link tests
13374 lt_simple_link_test_code="      program t\n      end\n"
13375
13376 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13377
13378 # If no C compiler was specified, use CC.
13379 LTCC=${LTCC-"$CC"}
13380
13381 # Allow CC to be a program name with arguments.
13382 compiler=$CC
13383
13384
13385 # save warnings/boilerplate of simple test code
13386 ac_outfile=conftest.$ac_objext
13387 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13389 _lt_compiler_boilerplate=`cat conftest.err`
13390 $rm conftest*
13391
13392 ac_outfile=conftest.$ac_objext
13393 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13395 _lt_linker_boilerplate=`cat conftest.err`
13396 $rm conftest*
13397
13398
13399 # Allow CC to be a program name with arguments.
13400 lt_save_CC="$CC"
13401 CC=${F77-"f77"}
13402 compiler=$CC
13403 compiler_F77=$CC
13404 for cc_temp in $compiler""; do
13405   case $cc_temp in
13406     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13407     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13408     \-*) ;;
13409     *) break;;
13410   esac
13411 done
13412 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13413
13414
13415 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13416 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13417 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13418 echo "${ECHO_T}$can_build_shared" >&6
13419
13420 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13421 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13422 test "$can_build_shared" = "no" && enable_shared=no
13423
13424 # On AIX, shared libraries and static libraries use the same namespace, and
13425 # are all built from PIC.
13426 case $host_os in
13427 aix3*)
13428   test "$enable_shared" = yes && enable_static=no
13429   if test -n "$RANLIB"; then
13430     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13431     postinstall_cmds='$RANLIB $lib'
13432   fi
13433   ;;
13434 aix4* | aix5*)
13435   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13436     test "$enable_shared" = yes && enable_static=no
13437   fi
13438   ;;
13439 esac
13440 echo "$as_me:$LINENO: result: $enable_shared" >&5
13441 echo "${ECHO_T}$enable_shared" >&6
13442
13443 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13444 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13445 # Make sure either enable_shared or enable_static is yes.
13446 test "$enable_shared" = yes || enable_static=yes
13447 echo "$as_me:$LINENO: result: $enable_static" >&5
13448 echo "${ECHO_T}$enable_static" >&6
13449
13450 test "$ld_shlibs_F77" = no && can_build_shared=no
13451
13452 GCC_F77="$G77"
13453 LD_F77="$LD"
13454
13455 lt_prog_compiler_wl_F77=
13456 lt_prog_compiler_pic_F77=
13457 lt_prog_compiler_static_F77=
13458
13459 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13461
13462   if test "$GCC" = yes; then
13463     lt_prog_compiler_wl_F77='-Wl,'
13464     lt_prog_compiler_static_F77='-static'
13465
13466     case $host_os in
13467       aix*)
13468       # All AIX code is PIC.
13469       if test "$host_cpu" = ia64; then
13470         # AIX 5 now supports IA64 processor
13471         lt_prog_compiler_static_F77='-Bstatic'
13472       fi
13473       ;;
13474
13475     amigaos*)
13476       # FIXME: we need at least 68020 code to build shared libraries, but
13477       # adding the `-m68020' flag to GCC prevents building anything better,
13478       # like `-m68040'.
13479       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13480       ;;
13481
13482     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13483       # PIC is the default for these OSes.
13484       ;;
13485
13486     mingw* | pw32* | os2*)
13487       # This hack is so that the source file can tell whether it is being
13488       # built for inclusion in a dll (and should export symbols for example).
13489       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13490       ;;
13491
13492     darwin* | rhapsody*)
13493       # PIC is the default on this platform
13494       # Common symbols not allowed in MH_DYLIB files
13495       lt_prog_compiler_pic_F77='-fno-common'
13496       ;;
13497
13498     msdosdjgpp*)
13499       # Just because we use GCC doesn't mean we suddenly get shared libraries
13500       # on systems that don't support them.
13501       lt_prog_compiler_can_build_shared_F77=no
13502       enable_shared=no
13503       ;;
13504
13505     sysv4*MP*)
13506       if test -d /usr/nec; then
13507         lt_prog_compiler_pic_F77=-Kconform_pic
13508       fi
13509       ;;
13510
13511     hpux*)
13512       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13513       # not for PA HP-UX.
13514       case $host_cpu in
13515       hppa*64*|ia64*)
13516         # +Z the default
13517         ;;
13518       *)
13519         lt_prog_compiler_pic_F77='-fPIC'
13520         ;;
13521       esac
13522       ;;
13523
13524     *)
13525       lt_prog_compiler_pic_F77='-fPIC'
13526       ;;
13527     esac
13528   else
13529     # PORTME Check for flag to pass linker flags through the system compiler.
13530     case $host_os in
13531     aix*)
13532       lt_prog_compiler_wl_F77='-Wl,'
13533       if test "$host_cpu" = ia64; then
13534         # AIX 5 now supports IA64 processor
13535         lt_prog_compiler_static_F77='-Bstatic'
13536       else
13537         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13538       fi
13539       ;;
13540       darwin*)
13541         # PIC is the default on this platform
13542         # Common symbols not allowed in MH_DYLIB files
13543        case $cc_basename in
13544          xlc*)
13545          lt_prog_compiler_pic_F77='-qnocommon'
13546          lt_prog_compiler_wl_F77='-Wl,'
13547          ;;
13548        esac
13549        ;;
13550
13551     mingw* | pw32* | os2*)
13552       # This hack is so that the source file can tell whether it is being
13553       # built for inclusion in a dll (and should export symbols for example).
13554       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13555       ;;
13556
13557     hpux9* | hpux10* | hpux11*)
13558       lt_prog_compiler_wl_F77='-Wl,'
13559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13560       # not for PA HP-UX.
13561       case $host_cpu in
13562       hppa*64*|ia64*)
13563         # +Z the default
13564         ;;
13565       *)
13566         lt_prog_compiler_pic_F77='+Z'
13567         ;;
13568       esac
13569       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13570       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13571       ;;
13572
13573     irix5* | irix6* | nonstopux*)
13574       lt_prog_compiler_wl_F77='-Wl,'
13575       # PIC (with -KPIC) is the default.
13576       lt_prog_compiler_static_F77='-non_shared'
13577       ;;
13578
13579     newsos6)
13580       lt_prog_compiler_pic_F77='-KPIC'
13581       lt_prog_compiler_static_F77='-Bstatic'
13582       ;;
13583
13584     linux*)
13585       case $cc_basename in
13586       icc* | ecc*)
13587         lt_prog_compiler_wl_F77='-Wl,'
13588         lt_prog_compiler_pic_F77='-KPIC'
13589         lt_prog_compiler_static_F77='-static'
13590         ;;
13591       pgcc* | pgf77* | pgf90* | pgf95*)
13592         # Portland Group compilers (*not* the Pentium gcc compiler,
13593         # which looks to be a dead project)
13594         lt_prog_compiler_wl_F77='-Wl,'
13595         lt_prog_compiler_pic_F77='-fpic'
13596         lt_prog_compiler_static_F77='-Bstatic'
13597         ;;
13598       ccc*)
13599         lt_prog_compiler_wl_F77='-Wl,'
13600         # All Alpha code is PIC.
13601         lt_prog_compiler_static_F77='-non_shared'
13602         ;;
13603       esac
13604       ;;
13605
13606     osf3* | osf4* | osf5*)
13607       lt_prog_compiler_wl_F77='-Wl,'
13608       # All OSF/1 code is PIC.
13609       lt_prog_compiler_static_F77='-non_shared'
13610       ;;
13611
13612     sco3.2v5*)
13613       lt_prog_compiler_pic_F77='-Kpic'
13614       lt_prog_compiler_static_F77='-dn'
13615       ;;
13616
13617     solaris*)
13618       lt_prog_compiler_pic_F77='-KPIC'
13619       lt_prog_compiler_static_F77='-Bstatic'
13620       case $cc_basename in
13621       f77* | f90* | f95*)
13622         lt_prog_compiler_wl_F77='-Qoption ld ';;
13623       *)
13624         lt_prog_compiler_wl_F77='-Wl,';;
13625       esac
13626       ;;
13627
13628     sunos4*)
13629       lt_prog_compiler_wl_F77='-Qoption ld '
13630       lt_prog_compiler_pic_F77='-PIC'
13631       lt_prog_compiler_static_F77='-Bstatic'
13632       ;;
13633
13634     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13635       lt_prog_compiler_wl_F77='-Wl,'
13636       lt_prog_compiler_pic_F77='-KPIC'
13637       lt_prog_compiler_static_F77='-Bstatic'
13638       ;;
13639
13640     sysv4*MP*)
13641       if test -d /usr/nec ;then
13642         lt_prog_compiler_pic_F77='-Kconform_pic'
13643         lt_prog_compiler_static_F77='-Bstatic'
13644       fi
13645       ;;
13646
13647     unicos*)
13648       lt_prog_compiler_wl_F77='-Wl,'
13649       lt_prog_compiler_can_build_shared_F77=no
13650       ;;
13651
13652     uts4*)
13653       lt_prog_compiler_pic_F77='-pic'
13654       lt_prog_compiler_static_F77='-Bstatic'
13655       ;;
13656
13657     *)
13658       lt_prog_compiler_can_build_shared_F77=no
13659       ;;
13660     esac
13661   fi
13662
13663 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13664 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13665
13666 #
13667 # Check to make sure the PIC flag actually works.
13668 #
13669 if test -n "$lt_prog_compiler_pic_F77"; then
13670
13671 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13672 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13673 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13674   echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676   lt_prog_compiler_pic_works_F77=no
13677   ac_outfile=conftest.$ac_objext
13678    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13679    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13680    # Insert the option either (1) after the last *FLAGS variable, or
13681    # (2) before a word containing "conftest.", or (3) at the end.
13682    # Note that $ac_compile itself does not contain backslashes and begins
13683    # with a dollar sign (not a hyphen), so the echo should work correctly.
13684    # The option is referenced via a variable to avoid confusing sed.
13685    lt_compile=`echo "$ac_compile" | $SED \
13686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13688    -e 's:$: $lt_compiler_flag:'`
13689    (eval echo "\"\$as_me:13689: $lt_compile\"" >&5)
13690    (eval "$lt_compile" 2>conftest.err)
13691    ac_status=$?
13692    cat conftest.err >&5
13693    echo "$as_me:13693: \$? = $ac_status" >&5
13694    if (exit $ac_status) && test -s "$ac_outfile"; then
13695      # The compiler can only warn and ignore the option if not recognized
13696      # So say no if there are warnings other than the usual output.
13697      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13698      $SED '/^$/d' conftest.err >conftest.er2
13699      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13700        lt_prog_compiler_pic_works_F77=yes
13701      fi
13702    fi
13703    $rm conftest*
13704
13705 fi
13706 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13707 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13708
13709 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13710     case $lt_prog_compiler_pic_F77 in
13711      "" | " "*) ;;
13712      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13713      esac
13714 else
13715     lt_prog_compiler_pic_F77=
13716      lt_prog_compiler_can_build_shared_F77=no
13717 fi
13718
13719 fi
13720 case $host_os in
13721   # For platforms which do not support PIC, -DPIC is meaningless:
13722   *djgpp*)
13723     lt_prog_compiler_pic_F77=
13724     ;;
13725   *)
13726     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13727     ;;
13728 esac
13729
13730 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13732 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735   lt_cv_prog_compiler_c_o_F77=no
13736    $rm -r conftest 2>/dev/null
13737    mkdir conftest
13738    cd conftest
13739    mkdir out
13740    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13741
13742    lt_compiler_flag="-o out/conftest2.$ac_objext"
13743    # Insert the option either (1) after the last *FLAGS variable, or
13744    # (2) before a word containing "conftest.", or (3) at the end.
13745    # Note that $ac_compile itself does not contain backslashes and begins
13746    # with a dollar sign (not a hyphen), so the echo should work correctly.
13747    lt_compile=`echo "$ac_compile" | $SED \
13748    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13749    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13750    -e 's:$: $lt_compiler_flag:'`
13751    (eval echo "\"\$as_me:13751: $lt_compile\"" >&5)
13752    (eval "$lt_compile" 2>out/conftest.err)
13753    ac_status=$?
13754    cat out/conftest.err >&5
13755    echo "$as_me:13755: \$? = $ac_status" >&5
13756    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13757    then
13758      # The compiler can only warn and ignore the option if not recognized
13759      # So say no if there are warnings
13760      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13761      $SED '/^$/d' out/conftest.err >out/conftest.er2
13762      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13763        lt_cv_prog_compiler_c_o_F77=yes
13764      fi
13765    fi
13766    chmod u+w . 2>&5
13767    $rm conftest*
13768    # SGI C++ compiler will create directory out/ii_files/ for
13769    # template instantiation
13770    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13771    $rm out/* && rmdir out
13772    cd ..
13773    rmdir conftest
13774    $rm conftest*
13775
13776 fi
13777 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13778 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13779
13780
13781 hard_links="nottested"
13782 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13783   # do not overwrite the value of need_locks provided by the user
13784   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13785 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13786   hard_links=yes
13787   $rm conftest*
13788   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13789   touch conftest.a
13790   ln conftest.a conftest.b 2>&5 || hard_links=no
13791   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13792   echo "$as_me:$LINENO: result: $hard_links" >&5
13793 echo "${ECHO_T}$hard_links" >&6
13794   if test "$hard_links" = no; then
13795     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13796 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13797     need_locks=warn
13798   fi
13799 else
13800   need_locks=no
13801 fi
13802
13803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13805
13806   runpath_var=
13807   allow_undefined_flag_F77=
13808   enable_shared_with_static_runtimes_F77=no
13809   archive_cmds_F77=
13810   archive_expsym_cmds_F77=
13811   old_archive_From_new_cmds_F77=
13812   old_archive_from_expsyms_cmds_F77=
13813   export_dynamic_flag_spec_F77=
13814   whole_archive_flag_spec_F77=
13815   thread_safe_flag_spec_F77=
13816   hardcode_libdir_flag_spec_F77=
13817   hardcode_libdir_flag_spec_ld_F77=
13818   hardcode_libdir_separator_F77=
13819   hardcode_direct_F77=no
13820   hardcode_minus_L_F77=no
13821   hardcode_shlibpath_var_F77=unsupported
13822   link_all_deplibs_F77=unknown
13823   hardcode_automatic_F77=no
13824   module_cmds_F77=
13825   module_expsym_cmds_F77=
13826   always_export_symbols_F77=no
13827   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13828   # include_expsyms should be a list of space-separated symbols to be *always*
13829   # included in the symbol list
13830   include_expsyms_F77=
13831   # exclude_expsyms can be an extended regexp of symbols to exclude
13832   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13833   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13834   # as well as any symbol that contains `d'.
13835   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13836   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13837   # platforms (ab)use it in PIC code, but their linkers get confused if
13838   # the symbol is explicitly referenced.  Since portable code cannot
13839   # rely on this symbol name, it's probably fine to never include it in
13840   # preloaded symbol tables.
13841   extract_expsyms_cmds=
13842   # Just being paranoid about ensuring that cc_basename is set.
13843   for cc_temp in $compiler""; do
13844   case $cc_temp in
13845     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13846     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13847     \-*) ;;
13848     *) break;;
13849   esac
13850 done
13851 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13852
13853   case $host_os in
13854   cygwin* | mingw* | pw32*)
13855     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13856     # When not using gcc, we currently assume that we are using
13857     # Microsoft Visual C++.
13858     if test "$GCC" != yes; then
13859       with_gnu_ld=no
13860     fi
13861     ;;
13862   openbsd*)
13863     with_gnu_ld=no
13864     ;;
13865   esac
13866
13867   ld_shlibs_F77=yes
13868   if test "$with_gnu_ld" = yes; then
13869     # If archive_cmds runs LD, not CC, wlarc should be empty
13870     wlarc='${wl}'
13871
13872     # Set some defaults for GNU ld with shared library support. These
13873     # are reset later if shared libraries are not supported. Putting them
13874     # here allows them to be overridden if necessary.
13875     runpath_var=LD_RUN_PATH
13876     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13877     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13878     # ancient GNU ld didn't support --whole-archive et. al.
13879     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13880         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13881       else
13882         whole_archive_flag_spec_F77=
13883     fi
13884     supports_anon_versioning=no
13885     case `$LD -v 2>/dev/null` in
13886       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13887       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13888       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13889       *\ 2.11.*) ;; # other 2.11 versions
13890       *) supports_anon_versioning=yes ;;
13891     esac
13892
13893     # See if GNU ld supports shared libraries.
13894     case $host_os in
13895     aix3* | aix4* | aix5*)
13896       # On AIX/PPC, the GNU linker is very broken
13897       if test "$host_cpu" != ia64; then
13898         ld_shlibs_F77=no
13899         cat <<EOF 1>&2
13900
13901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13902 *** to be unable to reliably create shared libraries on AIX.
13903 *** Therefore, libtool is disabling shared libraries support.  If you
13904 *** really care for shared libraries, you may want to modify your PATH
13905 *** so that a non-GNU linker is found, and then restart.
13906
13907 EOF
13908       fi
13909       ;;
13910
13911     amigaos*)
13912       archive_cmds_F77='$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)'
13913       hardcode_libdir_flag_spec_F77='-L$libdir'
13914       hardcode_minus_L_F77=yes
13915
13916       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13917       # that the semantics of dynamic libraries on AmigaOS, at least up
13918       # to version 4, is to share data among multiple programs linked
13919       # with the same dynamic library.  Since this doesn't match the
13920       # behavior of shared libraries on other platforms, we can't use
13921       # them.
13922       ld_shlibs_F77=no
13923       ;;
13924
13925     beos*)
13926       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13927         allow_undefined_flag_F77=unsupported
13928         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13929         # support --undefined.  This deserves some investigation.  FIXME
13930         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13931       else
13932         ld_shlibs_F77=no
13933       fi
13934       ;;
13935
13936     cygwin* | mingw* | pw32*)
13937       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13938       # as there is no search path for DLLs.
13939       hardcode_libdir_flag_spec_F77='-L$libdir'
13940       allow_undefined_flag_F77=unsupported
13941       always_export_symbols_F77=no
13942       enable_shared_with_static_runtimes_F77=yes
13943       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13944
13945       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13946         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13947         # If the export-symbols file already is a .def file (1st line
13948         # is EXPORTS), use it as is; otherwise, prepend...
13949         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13950           cp $export_symbols $output_objdir/$soname.def;
13951         else
13952           echo EXPORTS > $output_objdir/$soname.def;
13953           cat $export_symbols >> $output_objdir/$soname.def;
13954         fi~
13955         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13956       else
13957         ld_shlibs_F77=no
13958       fi
13959       ;;
13960
13961     linux*)
13962       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13963         tmp_addflag=
13964         case $cc_basename,$host_cpu in
13965         pgcc*)                          # Portland Group C compiler
13966           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13967           tmp_addflag=' $pic_flag'
13968           ;;
13969         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13970           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13971           tmp_addflag=' $pic_flag -Mnomain' ;;
13972         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13973           tmp_addflag=' -i_dynamic' ;;
13974         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13975           tmp_addflag=' -i_dynamic -nofor_main' ;;
13976         ifc* | ifort*)                  # Intel Fortran compiler
13977           tmp_addflag=' -nofor_main' ;;
13978         esac
13979         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13980
13981         if test $supports_anon_versioning = yes; then
13982           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13983   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13984   $echo "local: *; };" >> $output_objdir/$libname.ver~
13985           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13986         fi
13987       else
13988         ld_shlibs_F77=no
13989       fi
13990       ;;
13991
13992     netbsd*)
13993       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13994         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13995         wlarc=
13996       else
13997         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13998         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13999       fi
14000       ;;
14001
14002     solaris* | sysv5*)
14003       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14004         ld_shlibs_F77=no
14005         cat <<EOF 1>&2
14006
14007 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14008 *** create shared libraries on Solaris systems.  Therefore, libtool
14009 *** is disabling shared libraries support.  We urge you to upgrade GNU
14010 *** binutils to release 2.9.1 or newer.  Another option is to modify
14011 *** your PATH or compiler configuration so that the native linker is
14012 *** used, and then restart.
14013
14014 EOF
14015       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14016         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14017         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14018       else
14019         ld_shlibs_F77=no
14020       fi
14021       ;;
14022
14023     sunos4*)
14024       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14025       wlarc=
14026       hardcode_direct_F77=yes
14027       hardcode_shlibpath_var_F77=no
14028       ;;
14029
14030     *)
14031       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14032         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14033         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14034       else
14035         ld_shlibs_F77=no
14036       fi
14037       ;;
14038     esac
14039
14040     if test "$ld_shlibs_F77" = no; then
14041       runpath_var=
14042       hardcode_libdir_flag_spec_F77=
14043       export_dynamic_flag_spec_F77=
14044       whole_archive_flag_spec_F77=
14045     fi
14046   else
14047     # PORTME fill in a description of your system's linker (not GNU ld)
14048     case $host_os in
14049     aix3*)
14050       allow_undefined_flag_F77=unsupported
14051       always_export_symbols_F77=yes
14052       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14053       # Note: this linker hardcodes the directories in LIBPATH if there
14054       # are no directories specified by -L.
14055       hardcode_minus_L_F77=yes
14056       if test "$GCC" = yes && test -z "$link_static_flag"; then
14057         # Neither direct hardcoding nor static linking is supported with a
14058         # broken collect2.
14059         hardcode_direct_F77=unsupported
14060       fi
14061       ;;
14062
14063     aix4* | aix5*)
14064       if test "$host_cpu" = ia64; then
14065         # On IA64, the linker does run time linking by default, so we don't
14066         # have to do anything special.
14067         aix_use_runtimelinking=no
14068         exp_sym_flag='-Bexport'
14069         no_entry_flag=""
14070       else
14071         # If we're using GNU nm, then we don't want the "-C" option.
14072         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14073         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14074           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14075         else
14076           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14077         fi
14078         aix_use_runtimelinking=no
14079
14080         # Test if we are trying to use run time linking or normal
14081         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14082         # need to do runtime linking.
14083         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14084           for ld_flag in $LDFLAGS; do
14085           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14086             aix_use_runtimelinking=yes
14087             break
14088           fi
14089           done
14090         esac
14091
14092         exp_sym_flag='-bexport'
14093         no_entry_flag='-bnoentry'
14094       fi
14095
14096       # When large executables or shared objects are built, AIX ld can
14097       # have problems creating the table of contents.  If linking a library
14098       # or program results in "error TOC overflow" add -mminimal-toc to
14099       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14100       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14101
14102       archive_cmds_F77=''
14103       hardcode_direct_F77=yes
14104       hardcode_libdir_separator_F77=':'
14105       link_all_deplibs_F77=yes
14106
14107       if test "$GCC" = yes; then
14108         case $host_os in aix4.[012]|aix4.[012].*)
14109         # We only want to do this on AIX 4.2 and lower, the check
14110         # below for broken collect2 doesn't work under 4.3+
14111           collect2name=`${CC} -print-prog-name=collect2`
14112           if test -f "$collect2name" && \
14113            strings "$collect2name" | grep resolve_lib_name >/dev/null
14114           then
14115           # We have reworked collect2
14116           hardcode_direct_F77=yes
14117           else
14118           # We have old collect2
14119           hardcode_direct_F77=unsupported
14120           # It fails to find uninstalled libraries when the uninstalled
14121           # path is not listed in the libpath.  Setting hardcode_minus_L
14122           # to unsupported forces relinking
14123           hardcode_minus_L_F77=yes
14124           hardcode_libdir_flag_spec_F77='-L$libdir'
14125           hardcode_libdir_separator_F77=
14126           fi
14127         esac
14128         shared_flag='-shared'
14129         if test "$aix_use_runtimelinking" = yes; then
14130           shared_flag="$shared_flag "'${wl}-G'
14131         fi
14132       else
14133         # not using gcc
14134         if test "$host_cpu" = ia64; then
14135         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14136         # chokes on -Wl,-G. The following line is correct:
14137           shared_flag='-G'
14138         else
14139         if test "$aix_use_runtimelinking" = yes; then
14140             shared_flag='${wl}-G'
14141           else
14142             shared_flag='${wl}-bM:SRE'
14143         fi
14144         fi
14145       fi
14146
14147       # It seems that -bexpall does not export symbols beginning with
14148       # underscore (_), so it is better to generate a list of symbols to export.
14149       always_export_symbols_F77=yes
14150       if test "$aix_use_runtimelinking" = yes; then
14151         # Warning - without using the other runtime loading flags (-brtl),
14152         # -berok will link without error, but may produce a broken library.
14153         allow_undefined_flag_F77='-berok'
14154        # Determine the default libpath from the value encoded in an empty executable.
14155        cat >conftest.$ac_ext <<_ACEOF
14156       program main
14157
14158       end
14159 _ACEOF
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162   (eval $ac_link) 2>conftest.er1
14163   ac_status=$?
14164   grep -v '^ *+' conftest.er1 >conftest.err
14165   rm -f conftest.er1
14166   cat conftest.err >&5
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); } &&
14169          { ac_try='test -z "$ac_f77_werror_flag"
14170                          || test ! -s conftest.err'
14171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172   (eval $ac_try) 2>&5
14173   ac_status=$?
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); }; } &&
14176          { ac_try='test -s conftest$ac_exeext'
14177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178   (eval $ac_try) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; }; then
14182
14183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14184 }'`
14185 # Check for a 64-bit object if we didn't find anything.
14186 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14187 }'`; fi
14188 else
14189   echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 fi
14193 rm -f conftest.err conftest.$ac_objext \
14194       conftest$ac_exeext conftest.$ac_ext
14195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14196
14197        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14198         archive_expsym_cmds_F77="\$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"
14199        else
14200         if test "$host_cpu" = ia64; then
14201           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14202           allow_undefined_flag_F77="-z nodefs"
14203           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14204         else
14205          # Determine the default libpath from the value encoded in an empty executable.
14206          cat >conftest.$ac_ext <<_ACEOF
14207       program main
14208
14209       end
14210 _ACEOF
14211 rm -f conftest.$ac_objext conftest$ac_exeext
14212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14213   (eval $ac_link) 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -z "$ac_f77_werror_flag"
14221                          || test ! -s conftest.err'
14222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223   (eval $ac_try) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; } &&
14227          { ac_try='test -s conftest$ac_exeext'
14228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229   (eval $ac_try) 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); }; }; then
14233
14234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14235 }'`
14236 # Check for a 64-bit object if we didn't find anything.
14237 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14238 }'`; fi
14239 else
14240   echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 fi
14244 rm -f conftest.err conftest.$ac_objext \
14245       conftest$ac_exeext conftest.$ac_ext
14246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14247
14248          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14249           # Warning - without using the other run time loading flags,
14250           # -berok will link without error, but may produce a broken library.
14251           no_undefined_flag_F77=' ${wl}-bernotok'
14252           allow_undefined_flag_F77=' ${wl}-berok'
14253           # -bexpall does not export symbols beginning with underscore (_)
14254           always_export_symbols_F77=yes
14255           # Exported symbols can be pulled into shared objects from archives
14256           whole_archive_flag_spec_F77=' '
14257           archive_cmds_need_lc_F77=yes
14258           # This is similar to how AIX traditionally builds its shared libraries.
14259           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14260         fi
14261       fi
14262       ;;
14263
14264     amigaos*)
14265       archive_cmds_F77='$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)'
14266       hardcode_libdir_flag_spec_F77='-L$libdir'
14267       hardcode_minus_L_F77=yes
14268       # see comment about different semantics on the GNU ld section
14269       ld_shlibs_F77=no
14270       ;;
14271
14272     bsdi[45]*)
14273       export_dynamic_flag_spec_F77=-rdynamic
14274       ;;
14275
14276     cygwin* | mingw* | pw32*)
14277       # When not using gcc, we currently assume that we are using
14278       # Microsoft Visual C++.
14279       # hardcode_libdir_flag_spec is actually meaningless, as there is
14280       # no search path for DLLs.
14281       hardcode_libdir_flag_spec_F77=' '
14282       allow_undefined_flag_F77=unsupported
14283       # Tell ltmain to make .lib files, not .a files.
14284       libext=lib
14285       # Tell ltmain to make .dll files, not .so files.
14286       shrext_cmds=".dll"
14287       # FIXME: Setting linknames here is a bad hack.
14288       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14289       # The linker will automatically build a .lib file if we build a DLL.
14290       old_archive_From_new_cmds_F77='true'
14291       # FIXME: Should let the user specify the lib program.
14292       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14293       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14294       enable_shared_with_static_runtimes_F77=yes
14295       ;;
14296
14297     darwin* | rhapsody*)
14298       case $host_os in
14299         rhapsody* | darwin1.[012])
14300          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14301          ;;
14302        *) # Darwin 1.3 on
14303          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14304            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14305          else
14306            case ${MACOSX_DEPLOYMENT_TARGET} in
14307              10.[012])
14308                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14309                ;;
14310              10.*)
14311                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14312                ;;
14313            esac
14314          fi
14315          ;;
14316       esac
14317       archive_cmds_need_lc_F77=no
14318       hardcode_direct_F77=no
14319       hardcode_automatic_F77=yes
14320       hardcode_shlibpath_var_F77=unsupported
14321       whole_archive_flag_spec_F77=''
14322       link_all_deplibs_F77=yes
14323     if test "$GCC" = yes ; then
14324         output_verbose_link_cmd='echo'
14325         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14326       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14327       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14328       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14329       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14330     else
14331       case $cc_basename in
14332         xlc*)
14333          output_verbose_link_cmd='echo'
14334          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14335          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14336           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14337          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14338           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14339           ;;
14340        *)
14341          ld_shlibs_F77=no
14342           ;;
14343       esac
14344     fi
14345       ;;
14346
14347     dgux*)
14348       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349       hardcode_libdir_flag_spec_F77='-L$libdir'
14350       hardcode_shlibpath_var_F77=no
14351       ;;
14352
14353     freebsd1*)
14354       ld_shlibs_F77=no
14355       ;;
14356
14357     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14358     # support.  Future versions do this automatically, but an explicit c++rt0.o
14359     # does not break anything, and helps significantly (at the cost of a little
14360     # extra space).
14361     freebsd2.2*)
14362       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14363       hardcode_libdir_flag_spec_F77='-R$libdir'
14364       hardcode_direct_F77=yes
14365       hardcode_shlibpath_var_F77=no
14366       ;;
14367
14368     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14369     freebsd2*)
14370       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14371       hardcode_direct_F77=yes
14372       hardcode_minus_L_F77=yes
14373       hardcode_shlibpath_var_F77=no
14374       ;;
14375
14376     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14377     freebsd* | kfreebsd*-gnu | dragonfly*)
14378       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14379       hardcode_libdir_flag_spec_F77='-R$libdir'
14380       hardcode_direct_F77=yes
14381       hardcode_shlibpath_var_F77=no
14382       ;;
14383
14384     hpux9*)
14385       if test "$GCC" = yes; then
14386         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14387       else
14388         archive_cmds_F77='$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'
14389       fi
14390       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14391       hardcode_libdir_separator_F77=:
14392       hardcode_direct_F77=yes
14393
14394       # hardcode_minus_L: Not really in the search PATH,
14395       # but as the default location of the library.
14396       hardcode_minus_L_F77=yes
14397       export_dynamic_flag_spec_F77='${wl}-E'
14398       ;;
14399
14400     hpux10* | hpux11*)
14401       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14402         case $host_cpu in
14403         hppa*64*|ia64*)
14404           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14405           ;;
14406         *)
14407           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14408           ;;
14409         esac
14410       else
14411         case $host_cpu in
14412         hppa*64*|ia64*)
14413           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14414           ;;
14415         *)
14416           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14417           ;;
14418         esac
14419       fi
14420       if test "$with_gnu_ld" = no; then
14421         case $host_cpu in
14422         hppa*64*)
14423           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14424           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14425           hardcode_libdir_separator_F77=:
14426           hardcode_direct_F77=no
14427           hardcode_shlibpath_var_F77=no
14428           ;;
14429         ia64*)
14430           hardcode_libdir_flag_spec_F77='-L$libdir'
14431           hardcode_direct_F77=no
14432           hardcode_shlibpath_var_F77=no
14433
14434           # hardcode_minus_L: Not really in the search PATH,
14435           # but as the default location of the library.
14436           hardcode_minus_L_F77=yes
14437           ;;
14438         *)
14439           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14440           hardcode_libdir_separator_F77=:
14441           hardcode_direct_F77=yes
14442           export_dynamic_flag_spec_F77='${wl}-E'
14443
14444           # hardcode_minus_L: Not really in the search PATH,
14445           # but as the default location of the library.
14446           hardcode_minus_L_F77=yes
14447           ;;
14448         esac
14449       fi
14450       ;;
14451
14452     irix5* | irix6* | nonstopux*)
14453       if test "$GCC" = yes; then
14454         archive_cmds_F77='$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'
14455       else
14456         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14457         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14458       fi
14459       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460       hardcode_libdir_separator_F77=:
14461       link_all_deplibs_F77=yes
14462       ;;
14463
14464     netbsd*)
14465       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14466         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14467       else
14468         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14469       fi
14470       hardcode_libdir_flag_spec_F77='-R$libdir'
14471       hardcode_direct_F77=yes
14472       hardcode_shlibpath_var_F77=no
14473       ;;
14474
14475     newsos6)
14476       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14477       hardcode_direct_F77=yes
14478       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14479       hardcode_libdir_separator_F77=:
14480       hardcode_shlibpath_var_F77=no
14481       ;;
14482
14483     openbsd*)
14484       hardcode_direct_F77=yes
14485       hardcode_shlibpath_var_F77=no
14486       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14487         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14488         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14489         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14490         export_dynamic_flag_spec_F77='${wl}-E'
14491       else
14492        case $host_os in
14493          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14494            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14495            hardcode_libdir_flag_spec_F77='-R$libdir'
14496            ;;
14497          *)
14498            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14499            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14500            ;;
14501        esac
14502       fi
14503       ;;
14504
14505     os2*)
14506       hardcode_libdir_flag_spec_F77='-L$libdir'
14507       hardcode_minus_L_F77=yes
14508       allow_undefined_flag_F77=unsupported
14509       archive_cmds_F77='$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'
14510       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14511       ;;
14512
14513     osf3*)
14514       if test "$GCC" = yes; then
14515         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14516         archive_cmds_F77='$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'
14517       else
14518         allow_undefined_flag_F77=' -expect_unresolved \*'
14519         archive_cmds_F77='$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'
14520       fi
14521       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14522       hardcode_libdir_separator_F77=:
14523       ;;
14524
14525     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14526       if test "$GCC" = yes; then
14527         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14528         archive_cmds_F77='$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'
14529         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14530       else
14531         allow_undefined_flag_F77=' -expect_unresolved \*'
14532         archive_cmds_F77='$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'
14533         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14534         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14535
14536         # Both c and cxx compiler support -rpath directly
14537         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14538       fi
14539       hardcode_libdir_separator_F77=:
14540       ;;
14541
14542     sco3.2v5*)
14543       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14544       hardcode_shlibpath_var_F77=no
14545       export_dynamic_flag_spec_F77='${wl}-Bexport'
14546       runpath_var=LD_RUN_PATH
14547       hardcode_runpath_var=yes
14548       ;;
14549
14550     solaris*)
14551       no_undefined_flag_F77=' -z text'
14552       if test "$GCC" = yes; then
14553         wlarc='${wl}'
14554         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14555         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14556           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14557       else
14558         wlarc=''
14559         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14560         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14561         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14562       fi
14563       hardcode_libdir_flag_spec_F77='-R$libdir'
14564       hardcode_shlibpath_var_F77=no
14565       case $host_os in
14566       solaris2.[0-5] | solaris2.[0-5].*) ;;
14567       *)
14568         # The compiler driver will combine linker options so we
14569         # cannot just pass the convience library names through
14570         # without $wl, iff we do not link with $LD.
14571         # Luckily, gcc supports the same syntax we need for Sun Studio.
14572         # Supported since Solaris 2.6 (maybe 2.5.1?)
14573         case $wlarc in
14574         '')
14575           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14576         *)
14577           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14578         esac ;;
14579       esac
14580       link_all_deplibs_F77=yes
14581       ;;
14582
14583     sunos4*)
14584       if test "x$host_vendor" = xsequent; then
14585         # Use $CC to link under sequent, because it throws in some extra .o
14586         # files that make .init and .fini sections work.
14587         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14588       else
14589         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14590       fi
14591       hardcode_libdir_flag_spec_F77='-L$libdir'
14592       hardcode_direct_F77=yes
14593       hardcode_minus_L_F77=yes
14594       hardcode_shlibpath_var_F77=no
14595       ;;
14596
14597     sysv4)
14598       case $host_vendor in
14599         sni)
14600           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14601           hardcode_direct_F77=yes # is this really true???
14602         ;;
14603         siemens)
14604           ## LD is ld it makes a PLAMLIB
14605           ## CC just makes a GrossModule.
14606           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14607           reload_cmds_F77='$CC -r -o $output$reload_objs'
14608           hardcode_direct_F77=no
14609         ;;
14610         motorola)
14611           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14612           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14613         ;;
14614       esac
14615       runpath_var='LD_RUN_PATH'
14616       hardcode_shlibpath_var_F77=no
14617       ;;
14618
14619     sysv4.3*)
14620       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14621       hardcode_shlibpath_var_F77=no
14622       export_dynamic_flag_spec_F77='-Bexport'
14623       ;;
14624
14625     sysv4*MP*)
14626       if test -d /usr/nec; then
14627         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628         hardcode_shlibpath_var_F77=no
14629         runpath_var=LD_RUN_PATH
14630         hardcode_runpath_var=yes
14631         ld_shlibs_F77=yes
14632       fi
14633       ;;
14634
14635     sysv4.2uw2*)
14636       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14637       hardcode_direct_F77=yes
14638       hardcode_minus_L_F77=no
14639       hardcode_shlibpath_var_F77=no
14640       hardcode_runpath_var=yes
14641       runpath_var=LD_RUN_PATH
14642       ;;
14643
14644    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14645       no_undefined_flag_F77='${wl}-z ${wl}text'
14646       if test "$GCC" = yes; then
14647         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14648       else
14649         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14650       fi
14651       runpath_var='LD_RUN_PATH'
14652       hardcode_shlibpath_var_F77=no
14653       ;;
14654
14655     sysv5*)
14656       no_undefined_flag_F77=' -z text'
14657       # $CC -shared without GNU ld will not create a library from C++
14658       # object files and a static libstdc++, better avoid it by now
14659       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14661                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14662       hardcode_libdir_flag_spec_F77=
14663       hardcode_shlibpath_var_F77=no
14664       runpath_var='LD_RUN_PATH'
14665       ;;
14666
14667     uts4*)
14668       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14669       hardcode_libdir_flag_spec_F77='-L$libdir'
14670       hardcode_shlibpath_var_F77=no
14671       ;;
14672
14673     *)
14674       ld_shlibs_F77=no
14675       ;;
14676     esac
14677   fi
14678
14679 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14680 echo "${ECHO_T}$ld_shlibs_F77" >&6
14681 test "$ld_shlibs_F77" = no && can_build_shared=no
14682
14683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14684 if test "$GCC" = yes; then
14685   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14686 fi
14687
14688 #
14689 # Do we need to explicitly link libc?
14690 #
14691 case "x$archive_cmds_need_lc_F77" in
14692 x|xyes)
14693   # Assume -lc should be added
14694   archive_cmds_need_lc_F77=yes
14695
14696   if test "$enable_shared" = yes && test "$GCC" = yes; then
14697     case $archive_cmds_F77 in
14698     *'~'*)
14699       # FIXME: we may have to deal with multi-command sequences.
14700       ;;
14701     '$CC '*)
14702       # Test whether the compiler implicitly links with -lc since on some
14703       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14704       # to ld, don't add -lc before -lgcc.
14705       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14707       $rm conftest*
14708       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14709
14710       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14711   (eval $ac_compile) 2>&5
14712   ac_status=$?
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   (exit $ac_status); } 2>conftest.err; then
14715         soname=conftest
14716         lib=conftest
14717         libobjs=conftest.$ac_objext
14718         deplibs=
14719         wl=$lt_prog_compiler_wl_F77
14720         compiler_flags=-v
14721         linker_flags=-v
14722         verstring=
14723         output_objdir=.
14724         libname=conftest
14725         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14726         allow_undefined_flag_F77=
14727         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14728   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }
14732         then
14733           archive_cmds_need_lc_F77=no
14734         else
14735           archive_cmds_need_lc_F77=yes
14736         fi
14737         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14738       else
14739         cat conftest.err 1>&5
14740       fi
14741       $rm conftest*
14742       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14743 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14744       ;;
14745     esac
14746   fi
14747   ;;
14748 esac
14749
14750 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14751 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14752 library_names_spec=
14753 libname_spec='lib$name'
14754 soname_spec=
14755 shrext_cmds=".so"
14756 postinstall_cmds=
14757 postuninstall_cmds=
14758 finish_cmds=
14759 finish_eval=
14760 shlibpath_var=
14761 shlibpath_overrides_runpath=unknown
14762 version_type=none
14763 dynamic_linker="$host_os ld.so"
14764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14765 if test "$GCC" = yes; then
14766   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14767   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14768     # if the path contains ";" then we assume it to be the separator
14769     # otherwise default to the standard path separator (i.e. ":") - it is
14770     # assumed that no part of a normal pathname contains ";" but that should
14771     # okay in the real world where ";" in dirpaths is itself problematic.
14772     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14773   else
14774     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14775   fi
14776 else
14777   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14778 fi
14779 need_lib_prefix=unknown
14780 hardcode_into_libs=no
14781
14782 # when you set need_version to no, make sure it does not cause -set_version
14783 # flags to be left without arguments
14784 need_version=unknown
14785
14786 case $host_os in
14787 aix3*)
14788   version_type=linux
14789   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14790   shlibpath_var=LIBPATH
14791
14792   # AIX 3 has no versioning support, so we append a major version to the name.
14793   soname_spec='${libname}${release}${shared_ext}$major'
14794   ;;
14795
14796 aix4* | aix5*)
14797   version_type=linux
14798   need_lib_prefix=no
14799   need_version=no
14800   hardcode_into_libs=yes
14801   if test "$host_cpu" = ia64; then
14802     # AIX 5 supports IA64
14803     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14804     shlibpath_var=LD_LIBRARY_PATH
14805   else
14806     # With GCC up to 2.95.x, collect2 would create an import file
14807     # for dependence libraries.  The import file would start with
14808     # the line `#! .'.  This would cause the generated library to
14809     # depend on `.', always an invalid library.  This was fixed in
14810     # development snapshots of GCC prior to 3.0.
14811     case $host_os in
14812       aix4 | aix4.[01] | aix4.[01].*)
14813       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14814            echo ' yes '
14815            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14816         :
14817       else
14818         can_build_shared=no
14819       fi
14820       ;;
14821     esac
14822     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14823     # soname into executable. Probably we can add versioning support to
14824     # collect2, so additional links can be useful in future.
14825     if test "$aix_use_runtimelinking" = yes; then
14826       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14827       # instead of lib<name>.a to let people know that these are not
14828       # typical AIX shared libraries.
14829       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830     else
14831       # We preserve .a as extension for shared libraries through AIX4.2
14832       # and later when we are not doing run time linking.
14833       library_names_spec='${libname}${release}.a $libname.a'
14834       soname_spec='${libname}${release}${shared_ext}$major'
14835     fi
14836     shlibpath_var=LIBPATH
14837   fi
14838   ;;
14839
14840 amigaos*)
14841   library_names_spec='$libname.ixlibrary $libname.a'
14842   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14843   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'
14844   ;;
14845
14846 beos*)
14847   library_names_spec='${libname}${shared_ext}'
14848   dynamic_linker="$host_os ld.so"
14849   shlibpath_var=LIBRARY_PATH
14850   ;;
14851
14852 bsdi[45]*)
14853   version_type=linux
14854   need_version=no
14855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856   soname_spec='${libname}${release}${shared_ext}$major'
14857   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14858   shlibpath_var=LD_LIBRARY_PATH
14859   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14860   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14861   # the default ld.so.conf also contains /usr/contrib/lib and
14862   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14863   # libtool to hard-code these into programs
14864   ;;
14865
14866 cygwin* | mingw* | pw32*)
14867   version_type=windows
14868   shrext_cmds=".dll"
14869   need_version=no
14870   need_lib_prefix=no
14871
14872   case $GCC,$host_os in
14873   yes,cygwin* | yes,mingw* | yes,pw32*)
14874     library_names_spec='$libname.dll.a'
14875     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14876     postinstall_cmds='base_file=`basename \${file}`~
14877       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14878       dldir=$destdir/`dirname \$dlpath`~
14879       test -d \$dldir || mkdir -p \$dldir~
14880       $install_prog $dir/$dlname \$dldir/$dlname~
14881       chmod a+x \$dldir/$dlname'
14882     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14883       dlpath=$dir/\$dldll~
14884        $rm \$dlpath'
14885     shlibpath_overrides_runpath=yes
14886
14887     case $host_os in
14888     cygwin*)
14889       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14890       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14891       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14892       ;;
14893     mingw*)
14894       # MinGW DLLs use traditional 'lib' prefix
14895       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14896       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14897       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14898         # It is most probably a Windows format PATH printed by
14899         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14900         # path with ; separators, and with drive letters. We can handle the
14901         # drive letters (cygwin fileutils understands them), so leave them,
14902         # especially as we might pass files found there to a mingw objdump,
14903         # which wouldn't understand a cygwinified path. Ahh.
14904         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14905       else
14906         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14907       fi
14908       ;;
14909     pw32*)
14910       # pw32 DLLs use 'pw' prefix rather than 'lib'
14911       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14912       ;;
14913     esac
14914     ;;
14915
14916   *)
14917     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14918     ;;
14919   esac
14920   dynamic_linker='Win32 ld.exe'
14921   # FIXME: first we should search . and the directory the executable is in
14922   shlibpath_var=PATH
14923   ;;
14924
14925 darwin* | rhapsody*)
14926   dynamic_linker="$host_os dyld"
14927   version_type=darwin
14928   need_lib_prefix=no
14929   need_version=no
14930   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14931   soname_spec='${libname}${release}${major}$shared_ext'
14932   shlibpath_overrides_runpath=yes
14933   shlibpath_var=DYLD_LIBRARY_PATH
14934   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14935   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14936   if test "$GCC" = yes; then
14937     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14938   else
14939     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14940   fi
14941   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14942   ;;
14943
14944 dgux*)
14945   version_type=linux
14946   need_lib_prefix=no
14947   need_version=no
14948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14949   soname_spec='${libname}${release}${shared_ext}$major'
14950   shlibpath_var=LD_LIBRARY_PATH
14951   ;;
14952
14953 freebsd1*)
14954   dynamic_linker=no
14955   ;;
14956
14957 kfreebsd*-gnu)
14958   version_type=linux
14959   need_lib_prefix=no
14960   need_version=no
14961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14962   soname_spec='${libname}${release}${shared_ext}$major'
14963   shlibpath_var=LD_LIBRARY_PATH
14964   shlibpath_overrides_runpath=no
14965   hardcode_into_libs=yes
14966   dynamic_linker='GNU ld.so'
14967   ;;
14968
14969 freebsd* | dragonfly*)
14970   # DragonFly does not have aout.  When/if they implement a new
14971   # versioning mechanism, adjust this.
14972   if test -x /usr/bin/objformat; then
14973     objformat=`/usr/bin/objformat`
14974   else
14975     case $host_os in
14976     freebsd[123]*) objformat=aout ;;
14977     *) objformat=elf ;;
14978     esac
14979   fi
14980   version_type=freebsd-$objformat
14981   case $version_type in
14982     freebsd-elf*)
14983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14984       need_version=no
14985       need_lib_prefix=no
14986       ;;
14987     freebsd-*)
14988       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14989       need_version=yes
14990       ;;
14991   esac
14992   shlibpath_var=LD_LIBRARY_PATH
14993   case $host_os in
14994   freebsd2*)
14995     shlibpath_overrides_runpath=yes
14996     ;;
14997   freebsd3.[01]* | freebsdelf3.[01]*)
14998     shlibpath_overrides_runpath=yes
14999     hardcode_into_libs=yes
15000     ;;
15001   *) # from 3.2 on
15002     shlibpath_overrides_runpath=no
15003     hardcode_into_libs=yes
15004     ;;
15005   esac
15006   ;;
15007
15008 gnu*)
15009   version_type=linux
15010   need_lib_prefix=no
15011   need_version=no
15012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15013   soname_spec='${libname}${release}${shared_ext}$major'
15014   shlibpath_var=LD_LIBRARY_PATH
15015   hardcode_into_libs=yes
15016   ;;
15017
15018 hpux9* | hpux10* | hpux11*)
15019   # Give a soname corresponding to the major version so that dld.sl refuses to
15020   # link against other versions.
15021   version_type=sunos
15022   need_lib_prefix=no
15023   need_version=no
15024   case $host_cpu in
15025   ia64*)
15026     shrext_cmds='.so'
15027     hardcode_into_libs=yes
15028     dynamic_linker="$host_os dld.so"
15029     shlibpath_var=LD_LIBRARY_PATH
15030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032     soname_spec='${libname}${release}${shared_ext}$major'
15033     if test "X$HPUX_IA64_MODE" = X32; then
15034       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15035     else
15036       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15037     fi
15038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15039     ;;
15040    hppa*64*)
15041      shrext_cmds='.sl'
15042      hardcode_into_libs=yes
15043      dynamic_linker="$host_os dld.sl"
15044      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15045      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047      soname_spec='${libname}${release}${shared_ext}$major'
15048      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15049      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15050      ;;
15051    *)
15052     shrext_cmds='.sl'
15053     dynamic_linker="$host_os dld.sl"
15054     shlibpath_var=SHLIB_PATH
15055     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057     soname_spec='${libname}${release}${shared_ext}$major'
15058     ;;
15059   esac
15060   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15061   postinstall_cmds='chmod 555 $lib'
15062   ;;
15063
15064 irix5* | irix6* | nonstopux*)
15065   case $host_os in
15066     nonstopux*) version_type=nonstopux ;;
15067     *)
15068         if test "$lt_cv_prog_gnu_ld" = yes; then
15069                 version_type=linux
15070         else
15071                 version_type=irix
15072         fi ;;
15073   esac
15074   need_lib_prefix=no
15075   need_version=no
15076   soname_spec='${libname}${release}${shared_ext}$major'
15077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15078   case $host_os in
15079   irix5* | nonstopux*)
15080     libsuff= shlibsuff=
15081     ;;
15082   *)
15083     case $LD in # libtool.m4 will add one of these switches to LD
15084     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15085       libsuff= shlibsuff= libmagic=32-bit;;
15086     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15087       libsuff=32 shlibsuff=N32 libmagic=N32;;
15088     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15089       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15090     *) libsuff= shlibsuff= libmagic=never-match;;
15091     esac
15092     ;;
15093   esac
15094   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15095   shlibpath_overrides_runpath=no
15096   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15097   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15098   hardcode_into_libs=yes
15099   ;;
15100
15101 # No shared lib support for Linux oldld, aout, or coff.
15102 linux*oldld* | linux*aout* | linux*coff*)
15103   dynamic_linker=no
15104   ;;
15105
15106 # This must be Linux ELF.
15107 linux*)
15108   version_type=linux
15109   need_lib_prefix=no
15110   need_version=no
15111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112   soname_spec='${libname}${release}${shared_ext}$major'
15113   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15114   shlibpath_var=LD_LIBRARY_PATH
15115   shlibpath_overrides_runpath=no
15116   # This implies no fast_install, which is unacceptable.
15117   # Some rework will be needed to allow for fast_install
15118   # before this can be enabled.
15119   hardcode_into_libs=yes
15120
15121   # Append ld.so.conf contents to the search path
15122   if test -f /etc/ld.so.conf; then
15123     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15124     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15125   fi
15126
15127   # We used to test for /lib/ld.so.1 and disable shared libraries on
15128   # powerpc, because MkLinux only supported shared libraries with the
15129   # GNU dynamic linker.  Since this was broken with cross compilers,
15130   # most powerpc-linux boxes support dynamic linking these days and
15131   # people can always --disable-shared, the test was removed, and we
15132   # assume the GNU/Linux dynamic linker is in use.
15133   dynamic_linker='GNU/Linux ld.so'
15134   ;;
15135
15136 knetbsd*-gnu)
15137   version_type=linux
15138   need_lib_prefix=no
15139   need_version=no
15140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15141   soname_spec='${libname}${release}${shared_ext}$major'
15142   shlibpath_var=LD_LIBRARY_PATH
15143   shlibpath_overrides_runpath=no
15144   hardcode_into_libs=yes
15145   dynamic_linker='GNU ld.so'
15146   ;;
15147
15148 netbsd*)
15149   version_type=sunos
15150   need_lib_prefix=no
15151   need_version=no
15152   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15154     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15155     dynamic_linker='NetBSD (a.out) ld.so'
15156   else
15157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15158     soname_spec='${libname}${release}${shared_ext}$major'
15159     dynamic_linker='NetBSD ld.elf_so'
15160   fi
15161   shlibpath_var=LD_LIBRARY_PATH
15162   shlibpath_overrides_runpath=yes
15163   hardcode_into_libs=yes
15164   ;;
15165
15166 newsos6)
15167   version_type=linux
15168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169   shlibpath_var=LD_LIBRARY_PATH
15170   shlibpath_overrides_runpath=yes
15171   ;;
15172
15173 nto-qnx*)
15174   version_type=linux
15175   need_lib_prefix=no
15176   need_version=no
15177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178   soname_spec='${libname}${release}${shared_ext}$major'
15179   shlibpath_var=LD_LIBRARY_PATH
15180   shlibpath_overrides_runpath=yes
15181   ;;
15182
15183 openbsd*)
15184   version_type=sunos
15185   need_lib_prefix=no
15186   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15187   case $host_os in
15188     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15189     *)                         need_version=no  ;;
15190   esac
15191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15192   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15193   shlibpath_var=LD_LIBRARY_PATH
15194   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15195     case $host_os in
15196       openbsd2.[89] | openbsd2.[89].*)
15197         shlibpath_overrides_runpath=no
15198         ;;
15199       *)
15200         shlibpath_overrides_runpath=yes
15201         ;;
15202       esac
15203   else
15204     shlibpath_overrides_runpath=yes
15205   fi
15206   ;;
15207
15208 os2*)
15209   libname_spec='$name'
15210   shrext_cmds=".dll"
15211   need_lib_prefix=no
15212   library_names_spec='$libname${shared_ext} $libname.a'
15213   dynamic_linker='OS/2 ld.exe'
15214   shlibpath_var=LIBPATH
15215   ;;
15216
15217 osf3* | osf4* | osf5*)
15218   version_type=osf
15219   need_lib_prefix=no
15220   need_version=no
15221   soname_spec='${libname}${release}${shared_ext}$major'
15222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223   shlibpath_var=LD_LIBRARY_PATH
15224   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15225   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15226   ;;
15227
15228 sco3.2v5*)
15229   version_type=osf
15230   soname_spec='${libname}${release}${shared_ext}$major'
15231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232   shlibpath_var=LD_LIBRARY_PATH
15233   ;;
15234
15235 solaris*)
15236   version_type=linux
15237   need_lib_prefix=no
15238   need_version=no
15239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240   soname_spec='${libname}${release}${shared_ext}$major'
15241   shlibpath_var=LD_LIBRARY_PATH
15242   shlibpath_overrides_runpath=yes
15243   hardcode_into_libs=yes
15244   # ldd complains unless libraries are executable
15245   postinstall_cmds='chmod +x $lib'
15246   ;;
15247
15248 sunos4*)
15249   version_type=sunos
15250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15251   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15252   shlibpath_var=LD_LIBRARY_PATH
15253   shlibpath_overrides_runpath=yes
15254   if test "$with_gnu_ld" = yes; then
15255     need_lib_prefix=no
15256   fi
15257   need_version=yes
15258   ;;
15259
15260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15261   version_type=linux
15262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263   soname_spec='${libname}${release}${shared_ext}$major'
15264   shlibpath_var=LD_LIBRARY_PATH
15265   case $host_vendor in
15266     sni)
15267       shlibpath_overrides_runpath=no
15268       need_lib_prefix=no
15269       export_dynamic_flag_spec='${wl}-Blargedynsym'
15270       runpath_var=LD_RUN_PATH
15271       ;;
15272     siemens)
15273       need_lib_prefix=no
15274       ;;
15275     motorola)
15276       need_lib_prefix=no
15277       need_version=no
15278       shlibpath_overrides_runpath=no
15279       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15280       ;;
15281   esac
15282   ;;
15283
15284 sysv4*MP*)
15285   if test -d /usr/nec ;then
15286     version_type=linux
15287     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15288     soname_spec='$libname${shared_ext}.$major'
15289     shlibpath_var=LD_LIBRARY_PATH
15290   fi
15291   ;;
15292
15293 uts4*)
15294   version_type=linux
15295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296   soname_spec='${libname}${release}${shared_ext}$major'
15297   shlibpath_var=LD_LIBRARY_PATH
15298   ;;
15299
15300 *)
15301   dynamic_linker=no
15302   ;;
15303 esac
15304 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15305 echo "${ECHO_T}$dynamic_linker" >&6
15306 test "$dynamic_linker" = no && can_build_shared=no
15307
15308 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15309 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15310 hardcode_action_F77=
15311 if test -n "$hardcode_libdir_flag_spec_F77" || \
15312    test -n "$runpath_var_F77" || \
15313    test "X$hardcode_automatic_F77" = "Xyes" ; then
15314
15315   # We can hardcode non-existant directories.
15316   if test "$hardcode_direct_F77" != no &&
15317      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15318      # have to relink, otherwise we might link with an installed library
15319      # when we should be linking with a yet-to-be-installed one
15320      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15321      test "$hardcode_minus_L_F77" != no; then
15322     # Linking always hardcodes the temporary library directory.
15323     hardcode_action_F77=relink
15324   else
15325     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15326     hardcode_action_F77=immediate
15327   fi
15328 else
15329   # We cannot hardcode anything, or else we can only hardcode existing
15330   # directories.
15331   hardcode_action_F77=unsupported
15332 fi
15333 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15334 echo "${ECHO_T}$hardcode_action_F77" >&6
15335
15336 if test "$hardcode_action_F77" = relink; then
15337   # Fast installation is not supported
15338   enable_fast_install=no
15339 elif test "$shlibpath_overrides_runpath" = yes ||
15340      test "$enable_shared" = no; then
15341   # Fast installation is not necessary
15342   enable_fast_install=needless
15343 fi
15344
15345 striplib=
15346 old_striplib=
15347 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15348 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15349 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15350   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15351   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15352   echo "$as_me:$LINENO: result: yes" >&5
15353 echo "${ECHO_T}yes" >&6
15354 else
15355 # FIXME - insert some real tests, host_os isn't really good enough
15356   case $host_os in
15357    darwin*)
15358        if test -n "$STRIP" ; then
15359          striplib="$STRIP -x"
15360          echo "$as_me:$LINENO: result: yes" >&5
15361 echo "${ECHO_T}yes" >&6
15362        else
15363   echo "$as_me:$LINENO: result: no" >&5
15364 echo "${ECHO_T}no" >&6
15365 fi
15366        ;;
15367    *)
15368   echo "$as_me:$LINENO: result: no" >&5
15369 echo "${ECHO_T}no" >&6
15370     ;;
15371   esac
15372 fi
15373
15374
15375
15376 # The else clause should only fire when bootstrapping the
15377 # libtool distribution, otherwise you forgot to ship ltmain.sh
15378 # with your package, and you will get complaints that there are
15379 # no rules to generate ltmain.sh.
15380 if test -f "$ltmain"; then
15381   # See if we are running on zsh, and set the options which allow our commands through
15382   # without removal of \ escapes.
15383   if test -n "${ZSH_VERSION+set}" ; then
15384     setopt NO_GLOB_SUBST
15385   fi
15386   # Now quote all the things that may contain metacharacters while being
15387   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15388   # variables and quote the copies for generation of the libtool script.
15389   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15390     SED SHELL STRIP \
15391     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15392     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15393     deplibs_check_method reload_flag reload_cmds need_locks \
15394     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15395     lt_cv_sys_global_symbol_to_c_name_address \
15396     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15397     old_postinstall_cmds old_postuninstall_cmds \
15398     compiler_F77 \
15399     CC_F77 \
15400     LD_F77 \
15401     lt_prog_compiler_wl_F77 \
15402     lt_prog_compiler_pic_F77 \
15403     lt_prog_compiler_static_F77 \
15404     lt_prog_compiler_no_builtin_flag_F77 \
15405     export_dynamic_flag_spec_F77 \
15406     thread_safe_flag_spec_F77 \
15407     whole_archive_flag_spec_F77 \
15408     enable_shared_with_static_runtimes_F77 \
15409     old_archive_cmds_F77 \
15410     old_archive_from_new_cmds_F77 \
15411     predep_objects_F77 \
15412     postdep_objects_F77 \
15413     predeps_F77 \
15414     postdeps_F77 \
15415     compiler_lib_search_path_F77 \
15416     archive_cmds_F77 \
15417     archive_expsym_cmds_F77 \
15418     postinstall_cmds_F77 \
15419     postuninstall_cmds_F77 \
15420     old_archive_from_expsyms_cmds_F77 \
15421     allow_undefined_flag_F77 \
15422     no_undefined_flag_F77 \
15423     export_symbols_cmds_F77 \
15424     hardcode_libdir_flag_spec_F77 \
15425     hardcode_libdir_flag_spec_ld_F77 \
15426     hardcode_libdir_separator_F77 \
15427     hardcode_automatic_F77 \
15428     module_cmds_F77 \
15429     module_expsym_cmds_F77 \
15430     lt_cv_prog_compiler_c_o_F77 \
15431     exclude_expsyms_F77 \
15432     include_expsyms_F77; do
15433
15434     case $var in
15435     old_archive_cmds_F77 | \
15436     old_archive_from_new_cmds_F77 | \
15437     archive_cmds_F77 | \
15438     archive_expsym_cmds_F77 | \
15439     module_cmds_F77 | \
15440     module_expsym_cmds_F77 | \
15441     old_archive_from_expsyms_cmds_F77 | \
15442     export_symbols_cmds_F77 | \
15443     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15444     postinstall_cmds | postuninstall_cmds | \
15445     old_postinstall_cmds | old_postuninstall_cmds | \
15446     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15447       # Double-quote double-evaled strings.
15448       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15449       ;;
15450     *)
15451       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15452       ;;
15453     esac
15454   done
15455
15456   case $lt_echo in
15457   *'\$0 --fallback-echo"')
15458     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15459     ;;
15460   esac
15461
15462 cfgfile="$ofile"
15463
15464   cat <<__EOF__ >> "$cfgfile"
15465 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15466
15467 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15468
15469 # Shell to use when invoking shell scripts.
15470 SHELL=$lt_SHELL
15471
15472 # Whether or not to build shared libraries.
15473 build_libtool_libs=$enable_shared
15474
15475 # Whether or not to build static libraries.
15476 build_old_libs=$enable_static
15477
15478 # Whether or not to add -lc for building shared libraries.
15479 build_libtool_need_lc=$archive_cmds_need_lc_F77
15480
15481 # Whether or not to disallow shared libs when runtime libs are static
15482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15483
15484 # Whether or not to optimize for fast installation.
15485 fast_install=$enable_fast_install
15486
15487 # The host system.
15488 host_alias=$host_alias
15489 host=$host
15490 host_os=$host_os
15491
15492 # The build system.
15493 build_alias=$build_alias
15494 build=$build
15495 build_os=$build_os
15496
15497 # An echo program that does not interpret backslashes.
15498 echo=$lt_echo
15499
15500 # The archiver.
15501 AR=$lt_AR
15502 AR_FLAGS=$lt_AR_FLAGS
15503
15504 # A C compiler.
15505 LTCC=$lt_LTCC
15506
15507 # A language-specific compiler.
15508 CC=$lt_compiler_F77
15509
15510 # Is the compiler the GNU C compiler?
15511 with_gcc=$GCC_F77
15512
15513 # An ERE matcher.
15514 EGREP=$lt_EGREP
15515
15516 # The linker used to build libraries.
15517 LD=$lt_LD_F77
15518
15519 # Whether we need hard or soft links.
15520 LN_S=$lt_LN_S
15521
15522 # A BSD-compatible nm program.
15523 NM=$lt_NM
15524
15525 # A symbol stripping program
15526 STRIP=$lt_STRIP
15527
15528 # Used to examine libraries when file_magic_cmd begins "file"
15529 MAGIC_CMD=$MAGIC_CMD
15530
15531 # Used on cygwin: DLL creation program.
15532 DLLTOOL="$DLLTOOL"
15533
15534 # Used on cygwin: object dumper.
15535 OBJDUMP="$OBJDUMP"
15536
15537 # Used on cygwin: assembler.
15538 AS="$AS"
15539
15540 # The name of the directory that contains temporary libtool files.
15541 objdir=$objdir
15542
15543 # How to create reloadable object files.
15544 reload_flag=$lt_reload_flag
15545 reload_cmds=$lt_reload_cmds
15546
15547 # How to pass a linker flag through the compiler.
15548 wl=$lt_lt_prog_compiler_wl_F77
15549
15550 # Object file suffix (normally "o").
15551 objext="$ac_objext"
15552
15553 # Old archive suffix (normally "a").
15554 libext="$libext"
15555
15556 # Shared library suffix (normally ".so").
15557 shrext_cmds='$shrext_cmds'
15558
15559 # Executable file suffix (normally "").
15560 exeext="$exeext"
15561
15562 # Additional compiler flags for building library objects.
15563 pic_flag=$lt_lt_prog_compiler_pic_F77
15564 pic_mode=$pic_mode
15565
15566 # What is the maximum length of a command?
15567 max_cmd_len=$lt_cv_sys_max_cmd_len
15568
15569 # Does compiler simultaneously support -c and -o options?
15570 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15571
15572 # Must we lock files when doing compilation?
15573 need_locks=$lt_need_locks
15574
15575 # Do we need the lib prefix for modules?
15576 need_lib_prefix=$need_lib_prefix
15577
15578 # Do we need a version for libraries?
15579 need_version=$need_version
15580
15581 # Whether dlopen is supported.
15582 dlopen_support=$enable_dlopen
15583
15584 # Whether dlopen of programs is supported.
15585 dlopen_self=$enable_dlopen_self
15586
15587 # Whether dlopen of statically linked programs is supported.
15588 dlopen_self_static=$enable_dlopen_self_static
15589
15590 # Compiler flag to prevent dynamic linking.
15591 link_static_flag=$lt_lt_prog_compiler_static_F77
15592
15593 # Compiler flag to turn off builtin functions.
15594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15595
15596 # Compiler flag to allow reflexive dlopens.
15597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15598
15599 # Compiler flag to generate shared objects directly from archives.
15600 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15601
15602 # Compiler flag to generate thread-safe objects.
15603 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15604
15605 # Library versioning type.
15606 version_type=$version_type
15607
15608 # Format of library name prefix.
15609 libname_spec=$lt_libname_spec
15610
15611 # List of archive names.  First name is the real one, the rest are links.
15612 # The last name is the one that the linker finds with -lNAME.
15613 library_names_spec=$lt_library_names_spec
15614
15615 # The coded name of the library, if different from the real name.
15616 soname_spec=$lt_soname_spec
15617
15618 # Commands used to build and install an old-style archive.
15619 RANLIB=$lt_RANLIB
15620 old_archive_cmds=$lt_old_archive_cmds_F77
15621 old_postinstall_cmds=$lt_old_postinstall_cmds
15622 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15623
15624 # Create an old-style archive from a shared archive.
15625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15626
15627 # Create a temporary old-style archive to link instead of a shared archive.
15628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15629
15630 # Commands used to build and install a shared archive.
15631 archive_cmds=$lt_archive_cmds_F77
15632 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15633 postinstall_cmds=$lt_postinstall_cmds
15634 postuninstall_cmds=$lt_postuninstall_cmds
15635
15636 # Commands used to build a loadable module (assumed same as above if empty)
15637 module_cmds=$lt_module_cmds_F77
15638 module_expsym_cmds=$lt_module_expsym_cmds_F77
15639
15640 # Commands to strip libraries.
15641 old_striplib=$lt_old_striplib
15642 striplib=$lt_striplib
15643
15644 # Dependencies to place before the objects being linked to create a
15645 # shared library.
15646 predep_objects=$lt_predep_objects_F77
15647
15648 # Dependencies to place after the objects being linked to create a
15649 # shared library.
15650 postdep_objects=$lt_postdep_objects_F77
15651
15652 # Dependencies to place before the objects being linked to create a
15653 # shared library.
15654 predeps=$lt_predeps_F77
15655
15656 # Dependencies to place after the objects being linked to create a
15657 # shared library.
15658 postdeps=$lt_postdeps_F77
15659
15660 # The library search path used internally by the compiler when linking
15661 # a shared library.
15662 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15663
15664 # Method to check whether dependent libraries are shared objects.
15665 deplibs_check_method=$lt_deplibs_check_method
15666
15667 # Command to use when deplibs_check_method == file_magic.
15668 file_magic_cmd=$lt_file_magic_cmd
15669
15670 # Flag that allows shared libraries with undefined symbols to be built.
15671 allow_undefined_flag=$lt_allow_undefined_flag_F77
15672
15673 # Flag that forces no undefined symbols.
15674 no_undefined_flag=$lt_no_undefined_flag_F77
15675
15676 # Commands used to finish a libtool library installation in a directory.
15677 finish_cmds=$lt_finish_cmds
15678
15679 # Same as above, but a single script fragment to be evaled but not shown.
15680 finish_eval=$lt_finish_eval
15681
15682 # Take the output of nm and produce a listing of raw symbols and C names.
15683 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15684
15685 # Transform the output of nm in a proper C declaration
15686 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15687
15688 # Transform the output of nm in a C name address pair
15689 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15690
15691 # This is the shared library runtime path variable.
15692 runpath_var=$runpath_var
15693
15694 # This is the shared library path variable.
15695 shlibpath_var=$shlibpath_var
15696
15697 # Is shlibpath searched before the hard-coded library search path?
15698 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15699
15700 # How to hardcode a shared library path into an executable.
15701 hardcode_action=$hardcode_action_F77
15702
15703 # Whether we should hardcode library paths into libraries.
15704 hardcode_into_libs=$hardcode_into_libs
15705
15706 # Flag to hardcode \$libdir into a binary during linking.
15707 # This must work even if \$libdir does not exist.
15708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15709
15710 # If ld is used when linking, flag to hardcode \$libdir into
15711 # a binary during linking. This must work even if \$libdir does
15712 # not exist.
15713 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15714
15715 # Whether we need a single -rpath flag with a separated argument.
15716 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15717
15718 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15719 # resulting binary.
15720 hardcode_direct=$hardcode_direct_F77
15721
15722 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15723 # resulting binary.
15724 hardcode_minus_L=$hardcode_minus_L_F77
15725
15726 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15727 # the resulting binary.
15728 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15729
15730 # Set to yes if building a shared library automatically hardcodes DIR into the library
15731 # and all subsequent libraries and executables linked against it.
15732 hardcode_automatic=$hardcode_automatic_F77
15733
15734 # Variables whose values should be saved in libtool wrapper scripts and
15735 # restored at relink time.
15736 variables_saved_for_relink="$variables_saved_for_relink"
15737
15738 # Whether libtool must link a program against all its dependency libraries.
15739 link_all_deplibs=$link_all_deplibs_F77
15740
15741 # Compile-time system search path for libraries
15742 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15743
15744 # Run-time system search path for libraries
15745 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15746
15747 # Fix the shell variable \$srcfile for the compiler.
15748 fix_srcfile_path="$fix_srcfile_path_F77"
15749
15750 # Set to yes if exported symbols are required.
15751 always_export_symbols=$always_export_symbols_F77
15752
15753 # The commands to list exported symbols.
15754 export_symbols_cmds=$lt_export_symbols_cmds_F77
15755
15756 # The commands to extract the exported symbol list from a shared archive.
15757 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15758
15759 # Symbols that should not be listed in the preloaded symbols.
15760 exclude_expsyms=$lt_exclude_expsyms_F77
15761
15762 # Symbols that must always be exported.
15763 include_expsyms=$lt_include_expsyms_F77
15764
15765 # ### END LIBTOOL TAG CONFIG: $tagname
15766
15767 __EOF__
15768
15769
15770 else
15771   # If there is no Makefile yet, we rely on a make rule to execute
15772   # `config.status --recheck' to rerun these tests and create the
15773   # libtool script then.
15774   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15775   if test -f "$ltmain_in"; then
15776     test -f Makefile && make "$ltmain"
15777   fi
15778 fi
15779
15780
15781 ac_ext=c
15782 ac_cpp='$CPP $CPPFLAGS'
15783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15786
15787 CC="$lt_save_CC"
15788
15789         else
15790           tagname=""
15791         fi
15792         ;;
15793
15794       GCJ)
15795         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15796
15797
15798
15799 # Source file extension for Java test sources.
15800 ac_ext=java
15801
15802 # Object file extension for compiled Java test sources.
15803 objext=o
15804 objext_GCJ=$objext
15805
15806 # Code to be used in simple compile tests
15807 lt_simple_compile_test_code="class foo {}\n"
15808
15809 # Code to be used in simple link tests
15810 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15811
15812 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15813
15814 # If no C compiler was specified, use CC.
15815 LTCC=${LTCC-"$CC"}
15816
15817 # Allow CC to be a program name with arguments.
15818 compiler=$CC
15819
15820
15821 # save warnings/boilerplate of simple test code
15822 ac_outfile=conftest.$ac_objext
15823 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15825 _lt_compiler_boilerplate=`cat conftest.err`
15826 $rm conftest*
15827
15828 ac_outfile=conftest.$ac_objext
15829 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15831 _lt_linker_boilerplate=`cat conftest.err`
15832 $rm conftest*
15833
15834
15835 # Allow CC to be a program name with arguments.
15836 lt_save_CC="$CC"
15837 CC=${GCJ-"gcj"}
15838 compiler=$CC
15839 compiler_GCJ=$CC
15840 for cc_temp in $compiler""; do
15841   case $cc_temp in
15842     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15843     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15844     \-*) ;;
15845     *) break;;
15846   esac
15847 done
15848 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15849
15850
15851 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15852 archive_cmds_need_lc_GCJ=no
15853
15854 old_archive_cmds_GCJ=$old_archive_cmds
15855
15856
15857 lt_prog_compiler_no_builtin_flag_GCJ=
15858
15859 if test "$GCC" = yes; then
15860   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15861
15862
15863 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15864 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15865 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15866   echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868   lt_cv_prog_compiler_rtti_exceptions=no
15869   ac_outfile=conftest.$ac_objext
15870    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15871    lt_compiler_flag="-fno-rtti -fno-exceptions"
15872    # Insert the option either (1) after the last *FLAGS variable, or
15873    # (2) before a word containing "conftest.", or (3) at the end.
15874    # Note that $ac_compile itself does not contain backslashes and begins
15875    # with a dollar sign (not a hyphen), so the echo should work correctly.
15876    # The option is referenced via a variable to avoid confusing sed.
15877    lt_compile=`echo "$ac_compile" | $SED \
15878    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15879    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15880    -e 's:$: $lt_compiler_flag:'`
15881    (eval echo "\"\$as_me:15881: $lt_compile\"" >&5)
15882    (eval "$lt_compile" 2>conftest.err)
15883    ac_status=$?
15884    cat conftest.err >&5
15885    echo "$as_me:15885: \$? = $ac_status" >&5
15886    if (exit $ac_status) && test -s "$ac_outfile"; then
15887      # The compiler can only warn and ignore the option if not recognized
15888      # So say no if there are warnings other than the usual output.
15889      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15890      $SED '/^$/d' conftest.err >conftest.er2
15891      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15892        lt_cv_prog_compiler_rtti_exceptions=yes
15893      fi
15894    fi
15895    $rm conftest*
15896
15897 fi
15898 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15899 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15900
15901 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15902     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15903 else
15904     :
15905 fi
15906
15907 fi
15908
15909 lt_prog_compiler_wl_GCJ=
15910 lt_prog_compiler_pic_GCJ=
15911 lt_prog_compiler_static_GCJ=
15912
15913 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15914 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15915
15916   if test "$GCC" = yes; then
15917     lt_prog_compiler_wl_GCJ='-Wl,'
15918     lt_prog_compiler_static_GCJ='-static'
15919
15920     case $host_os in
15921       aix*)
15922       # All AIX code is PIC.
15923       if test "$host_cpu" = ia64; then
15924         # AIX 5 now supports IA64 processor
15925         lt_prog_compiler_static_GCJ='-Bstatic'
15926       fi
15927       ;;
15928
15929     amigaos*)
15930       # FIXME: we need at least 68020 code to build shared libraries, but
15931       # adding the `-m68020' flag to GCC prevents building anything better,
15932       # like `-m68040'.
15933       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15934       ;;
15935
15936     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15937       # PIC is the default for these OSes.
15938       ;;
15939
15940     mingw* | pw32* | os2*)
15941       # This hack is so that the source file can tell whether it is being
15942       # built for inclusion in a dll (and should export symbols for example).
15943       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15944       ;;
15945
15946     darwin* | rhapsody*)
15947       # PIC is the default on this platform
15948       # Common symbols not allowed in MH_DYLIB files
15949       lt_prog_compiler_pic_GCJ='-fno-common'
15950       ;;
15951
15952     msdosdjgpp*)
15953       # Just because we use GCC doesn't mean we suddenly get shared libraries
15954       # on systems that don't support them.
15955       lt_prog_compiler_can_build_shared_GCJ=no
15956       enable_shared=no
15957       ;;
15958
15959     sysv4*MP*)
15960       if test -d /usr/nec; then
15961         lt_prog_compiler_pic_GCJ=-Kconform_pic
15962       fi
15963       ;;
15964
15965     hpux*)
15966       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15967       # not for PA HP-UX.
15968       case $host_cpu in
15969       hppa*64*|ia64*)
15970         # +Z the default
15971         ;;
15972       *)
15973         lt_prog_compiler_pic_GCJ='-fPIC'
15974         ;;
15975       esac
15976       ;;
15977
15978     *)
15979       lt_prog_compiler_pic_GCJ='-fPIC'
15980       ;;
15981     esac
15982   else
15983     # PORTME Check for flag to pass linker flags through the system compiler.
15984     case $host_os in
15985     aix*)
15986       lt_prog_compiler_wl_GCJ='-Wl,'
15987       if test "$host_cpu" = ia64; then
15988         # AIX 5 now supports IA64 processor
15989         lt_prog_compiler_static_GCJ='-Bstatic'
15990       else
15991         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15992       fi
15993       ;;
15994       darwin*)
15995         # PIC is the default on this platform
15996         # Common symbols not allowed in MH_DYLIB files
15997        case $cc_basename in
15998          xlc*)
15999          lt_prog_compiler_pic_GCJ='-qnocommon'
16000          lt_prog_compiler_wl_GCJ='-Wl,'
16001          ;;
16002        esac
16003        ;;
16004
16005     mingw* | pw32* | os2*)
16006       # This hack is so that the source file can tell whether it is being
16007       # built for inclusion in a dll (and should export symbols for example).
16008       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16009       ;;
16010
16011     hpux9* | hpux10* | hpux11*)
16012       lt_prog_compiler_wl_GCJ='-Wl,'
16013       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16014       # not for PA HP-UX.
16015       case $host_cpu in
16016       hppa*64*|ia64*)
16017         # +Z the default
16018         ;;
16019       *)
16020         lt_prog_compiler_pic_GCJ='+Z'
16021         ;;
16022       esac
16023       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16024       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16025       ;;
16026
16027     irix5* | irix6* | nonstopux*)
16028       lt_prog_compiler_wl_GCJ='-Wl,'
16029       # PIC (with -KPIC) is the default.
16030       lt_prog_compiler_static_GCJ='-non_shared'
16031       ;;
16032
16033     newsos6)
16034       lt_prog_compiler_pic_GCJ='-KPIC'
16035       lt_prog_compiler_static_GCJ='-Bstatic'
16036       ;;
16037
16038     linux*)
16039       case $cc_basename in
16040       icc* | ecc*)
16041         lt_prog_compiler_wl_GCJ='-Wl,'
16042         lt_prog_compiler_pic_GCJ='-KPIC'
16043         lt_prog_compiler_static_GCJ='-static'
16044         ;;
16045       pgcc* | pgf77* | pgf90* | pgf95*)
16046         # Portland Group compilers (*not* the Pentium gcc compiler,
16047         # which looks to be a dead project)
16048         lt_prog_compiler_wl_GCJ='-Wl,'
16049         lt_prog_compiler_pic_GCJ='-fpic'
16050         lt_prog_compiler_static_GCJ='-Bstatic'
16051         ;;
16052       ccc*)
16053         lt_prog_compiler_wl_GCJ='-Wl,'
16054         # All Alpha code is PIC.
16055         lt_prog_compiler_static_GCJ='-non_shared'
16056         ;;
16057       esac
16058       ;;
16059
16060     osf3* | osf4* | osf5*)
16061       lt_prog_compiler_wl_GCJ='-Wl,'
16062       # All OSF/1 code is PIC.
16063       lt_prog_compiler_static_GCJ='-non_shared'
16064       ;;
16065
16066     sco3.2v5*)
16067       lt_prog_compiler_pic_GCJ='-Kpic'
16068       lt_prog_compiler_static_GCJ='-dn'
16069       ;;
16070
16071     solaris*)
16072       lt_prog_compiler_pic_GCJ='-KPIC'
16073       lt_prog_compiler_static_GCJ='-Bstatic'
16074       case $cc_basename in
16075       f77* | f90* | f95*)
16076         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16077       *)
16078         lt_prog_compiler_wl_GCJ='-Wl,';;
16079       esac
16080       ;;
16081
16082     sunos4*)
16083       lt_prog_compiler_wl_GCJ='-Qoption ld '
16084       lt_prog_compiler_pic_GCJ='-PIC'
16085       lt_prog_compiler_static_GCJ='-Bstatic'
16086       ;;
16087
16088     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16089       lt_prog_compiler_wl_GCJ='-Wl,'
16090       lt_prog_compiler_pic_GCJ='-KPIC'
16091       lt_prog_compiler_static_GCJ='-Bstatic'
16092       ;;
16093
16094     sysv4*MP*)
16095       if test -d /usr/nec ;then
16096         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16097         lt_prog_compiler_static_GCJ='-Bstatic'
16098       fi
16099       ;;
16100
16101     unicos*)
16102       lt_prog_compiler_wl_GCJ='-Wl,'
16103       lt_prog_compiler_can_build_shared_GCJ=no
16104       ;;
16105
16106     uts4*)
16107       lt_prog_compiler_pic_GCJ='-pic'
16108       lt_prog_compiler_static_GCJ='-Bstatic'
16109       ;;
16110
16111     *)
16112       lt_prog_compiler_can_build_shared_GCJ=no
16113       ;;
16114     esac
16115   fi
16116
16117 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16118 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16119
16120 #
16121 # Check to make sure the PIC flag actually works.
16122 #
16123 if test -n "$lt_prog_compiler_pic_GCJ"; then
16124
16125 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16126 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16127 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130   lt_prog_compiler_pic_works_GCJ=no
16131   ac_outfile=conftest.$ac_objext
16132    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16133    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16134    # Insert the option either (1) after the last *FLAGS variable, or
16135    # (2) before a word containing "conftest.", or (3) at the end.
16136    # Note that $ac_compile itself does not contain backslashes and begins
16137    # with a dollar sign (not a hyphen), so the echo should work correctly.
16138    # The option is referenced via a variable to avoid confusing sed.
16139    lt_compile=`echo "$ac_compile" | $SED \
16140    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16141    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16142    -e 's:$: $lt_compiler_flag:'`
16143    (eval echo "\"\$as_me:16143: $lt_compile\"" >&5)
16144    (eval "$lt_compile" 2>conftest.err)
16145    ac_status=$?
16146    cat conftest.err >&5
16147    echo "$as_me:16147: \$? = $ac_status" >&5
16148    if (exit $ac_status) && test -s "$ac_outfile"; then
16149      # The compiler can only warn and ignore the option if not recognized
16150      # So say no if there are warnings other than the usual output.
16151      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16152      $SED '/^$/d' conftest.err >conftest.er2
16153      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16154        lt_prog_compiler_pic_works_GCJ=yes
16155      fi
16156    fi
16157    $rm conftest*
16158
16159 fi
16160 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16161 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16162
16163 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16164     case $lt_prog_compiler_pic_GCJ in
16165      "" | " "*) ;;
16166      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16167      esac
16168 else
16169     lt_prog_compiler_pic_GCJ=
16170      lt_prog_compiler_can_build_shared_GCJ=no
16171 fi
16172
16173 fi
16174 case $host_os in
16175   # For platforms which do not support PIC, -DPIC is meaningless:
16176   *djgpp*)
16177     lt_prog_compiler_pic_GCJ=
16178     ;;
16179   *)
16180     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16181     ;;
16182 esac
16183
16184 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16185 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16186 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189   lt_cv_prog_compiler_c_o_GCJ=no
16190    $rm -r conftest 2>/dev/null
16191    mkdir conftest
16192    cd conftest
16193    mkdir out
16194    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16195
16196    lt_compiler_flag="-o out/conftest2.$ac_objext"
16197    # Insert the option either (1) after the last *FLAGS variable, or
16198    # (2) before a word containing "conftest.", or (3) at the end.
16199    # Note that $ac_compile itself does not contain backslashes and begins
16200    # with a dollar sign (not a hyphen), so the echo should work correctly.
16201    lt_compile=`echo "$ac_compile" | $SED \
16202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16204    -e 's:$: $lt_compiler_flag:'`
16205    (eval echo "\"\$as_me:16205: $lt_compile\"" >&5)
16206    (eval "$lt_compile" 2>out/conftest.err)
16207    ac_status=$?
16208    cat out/conftest.err >&5
16209    echo "$as_me:16209: \$? = $ac_status" >&5
16210    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16211    then
16212      # The compiler can only warn and ignore the option if not recognized
16213      # So say no if there are warnings
16214      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16215      $SED '/^$/d' out/conftest.err >out/conftest.er2
16216      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16217        lt_cv_prog_compiler_c_o_GCJ=yes
16218      fi
16219    fi
16220    chmod u+w . 2>&5
16221    $rm conftest*
16222    # SGI C++ compiler will create directory out/ii_files/ for
16223    # template instantiation
16224    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16225    $rm out/* && rmdir out
16226    cd ..
16227    rmdir conftest
16228    $rm conftest*
16229
16230 fi
16231 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16232 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16233
16234
16235 hard_links="nottested"
16236 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16237   # do not overwrite the value of need_locks provided by the user
16238   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16239 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16240   hard_links=yes
16241   $rm conftest*
16242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16243   touch conftest.a
16244   ln conftest.a conftest.b 2>&5 || hard_links=no
16245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16246   echo "$as_me:$LINENO: result: $hard_links" >&5
16247 echo "${ECHO_T}$hard_links" >&6
16248   if test "$hard_links" = no; then
16249     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16250 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16251     need_locks=warn
16252   fi
16253 else
16254   need_locks=no
16255 fi
16256
16257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16259
16260   runpath_var=
16261   allow_undefined_flag_GCJ=
16262   enable_shared_with_static_runtimes_GCJ=no
16263   archive_cmds_GCJ=
16264   archive_expsym_cmds_GCJ=
16265   old_archive_From_new_cmds_GCJ=
16266   old_archive_from_expsyms_cmds_GCJ=
16267   export_dynamic_flag_spec_GCJ=
16268   whole_archive_flag_spec_GCJ=
16269   thread_safe_flag_spec_GCJ=
16270   hardcode_libdir_flag_spec_GCJ=
16271   hardcode_libdir_flag_spec_ld_GCJ=
16272   hardcode_libdir_separator_GCJ=
16273   hardcode_direct_GCJ=no
16274   hardcode_minus_L_GCJ=no
16275   hardcode_shlibpath_var_GCJ=unsupported
16276   link_all_deplibs_GCJ=unknown
16277   hardcode_automatic_GCJ=no
16278   module_cmds_GCJ=
16279   module_expsym_cmds_GCJ=
16280   always_export_symbols_GCJ=no
16281   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16282   # include_expsyms should be a list of space-separated symbols to be *always*
16283   # included in the symbol list
16284   include_expsyms_GCJ=
16285   # exclude_expsyms can be an extended regexp of symbols to exclude
16286   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16287   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16288   # as well as any symbol that contains `d'.
16289   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16290   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16291   # platforms (ab)use it in PIC code, but their linkers get confused if
16292   # the symbol is explicitly referenced.  Since portable code cannot
16293   # rely on this symbol name, it's probably fine to never include it in
16294   # preloaded symbol tables.
16295   extract_expsyms_cmds=
16296   # Just being paranoid about ensuring that cc_basename is set.
16297   for cc_temp in $compiler""; do
16298   case $cc_temp in
16299     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16300     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16301     \-*) ;;
16302     *) break;;
16303   esac
16304 done
16305 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16306
16307   case $host_os in
16308   cygwin* | mingw* | pw32*)
16309     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16310     # When not using gcc, we currently assume that we are using
16311     # Microsoft Visual C++.
16312     if test "$GCC" != yes; then
16313       with_gnu_ld=no
16314     fi
16315     ;;
16316   openbsd*)
16317     with_gnu_ld=no
16318     ;;
16319   esac
16320
16321   ld_shlibs_GCJ=yes
16322   if test "$with_gnu_ld" = yes; then
16323     # If archive_cmds runs LD, not CC, wlarc should be empty
16324     wlarc='${wl}'
16325
16326     # Set some defaults for GNU ld with shared library support. These
16327     # are reset later if shared libraries are not supported. Putting them
16328     # here allows them to be overridden if necessary.
16329     runpath_var=LD_RUN_PATH
16330     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16331     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16332     # ancient GNU ld didn't support --whole-archive et. al.
16333     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16334         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16335       else
16336         whole_archive_flag_spec_GCJ=
16337     fi
16338     supports_anon_versioning=no
16339     case `$LD -v 2>/dev/null` in
16340       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16341       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16342       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16343       *\ 2.11.*) ;; # other 2.11 versions
16344       *) supports_anon_versioning=yes ;;
16345     esac
16346
16347     # See if GNU ld supports shared libraries.
16348     case $host_os in
16349     aix3* | aix4* | aix5*)
16350       # On AIX/PPC, the GNU linker is very broken
16351       if test "$host_cpu" != ia64; then
16352         ld_shlibs_GCJ=no
16353         cat <<EOF 1>&2
16354
16355 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16356 *** to be unable to reliably create shared libraries on AIX.
16357 *** Therefore, libtool is disabling shared libraries support.  If you
16358 *** really care for shared libraries, you may want to modify your PATH
16359 *** so that a non-GNU linker is found, and then restart.
16360
16361 EOF
16362       fi
16363       ;;
16364
16365     amigaos*)
16366       archive_cmds_GCJ='$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)'
16367       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16368       hardcode_minus_L_GCJ=yes
16369
16370       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16371       # that the semantics of dynamic libraries on AmigaOS, at least up
16372       # to version 4, is to share data among multiple programs linked
16373       # with the same dynamic library.  Since this doesn't match the
16374       # behavior of shared libraries on other platforms, we can't use
16375       # them.
16376       ld_shlibs_GCJ=no
16377       ;;
16378
16379     beos*)
16380       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16381         allow_undefined_flag_GCJ=unsupported
16382         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16383         # support --undefined.  This deserves some investigation.  FIXME
16384         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16385       else
16386         ld_shlibs_GCJ=no
16387       fi
16388       ;;
16389
16390     cygwin* | mingw* | pw32*)
16391       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16392       # as there is no search path for DLLs.
16393       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16394       allow_undefined_flag_GCJ=unsupported
16395       always_export_symbols_GCJ=no
16396       enable_shared_with_static_runtimes_GCJ=yes
16397       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16398
16399       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16400         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16401         # If the export-symbols file already is a .def file (1st line
16402         # is EXPORTS), use it as is; otherwise, prepend...
16403         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16404           cp $export_symbols $output_objdir/$soname.def;
16405         else
16406           echo EXPORTS > $output_objdir/$soname.def;
16407           cat $export_symbols >> $output_objdir/$soname.def;
16408         fi~
16409         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16410       else
16411         ld_shlibs_GCJ=no
16412       fi
16413       ;;
16414
16415     linux*)
16416       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16417         tmp_addflag=
16418         case $cc_basename,$host_cpu in
16419         pgcc*)                          # Portland Group C compiler
16420           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16421           tmp_addflag=' $pic_flag'
16422           ;;
16423         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16424           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16425           tmp_addflag=' $pic_flag -Mnomain' ;;
16426         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16427           tmp_addflag=' -i_dynamic' ;;
16428         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16429           tmp_addflag=' -i_dynamic -nofor_main' ;;
16430         ifc* | ifort*)                  # Intel Fortran compiler
16431           tmp_addflag=' -nofor_main' ;;
16432         esac
16433         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16434
16435         if test $supports_anon_versioning = yes; then
16436           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16437   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16438   $echo "local: *; };" >> $output_objdir/$libname.ver~
16439           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16440         fi
16441       else
16442         ld_shlibs_GCJ=no
16443       fi
16444       ;;
16445
16446     netbsd*)
16447       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16448         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16449         wlarc=
16450       else
16451         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16452         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16453       fi
16454       ;;
16455
16456     solaris* | sysv5*)
16457       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16458         ld_shlibs_GCJ=no
16459         cat <<EOF 1>&2
16460
16461 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16462 *** create shared libraries on Solaris systems.  Therefore, libtool
16463 *** is disabling shared libraries support.  We urge you to upgrade GNU
16464 *** binutils to release 2.9.1 or newer.  Another option is to modify
16465 *** your PATH or compiler configuration so that the native linker is
16466 *** used, and then restart.
16467
16468 EOF
16469       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16470         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16472       else
16473         ld_shlibs_GCJ=no
16474       fi
16475       ;;
16476
16477     sunos4*)
16478       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16479       wlarc=
16480       hardcode_direct_GCJ=yes
16481       hardcode_shlibpath_var_GCJ=no
16482       ;;
16483
16484     *)
16485       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16486         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16487         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16488       else
16489         ld_shlibs_GCJ=no
16490       fi
16491       ;;
16492     esac
16493
16494     if test "$ld_shlibs_GCJ" = no; then
16495       runpath_var=
16496       hardcode_libdir_flag_spec_GCJ=
16497       export_dynamic_flag_spec_GCJ=
16498       whole_archive_flag_spec_GCJ=
16499     fi
16500   else
16501     # PORTME fill in a description of your system's linker (not GNU ld)
16502     case $host_os in
16503     aix3*)
16504       allow_undefined_flag_GCJ=unsupported
16505       always_export_symbols_GCJ=yes
16506       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16507       # Note: this linker hardcodes the directories in LIBPATH if there
16508       # are no directories specified by -L.
16509       hardcode_minus_L_GCJ=yes
16510       if test "$GCC" = yes && test -z "$link_static_flag"; then
16511         # Neither direct hardcoding nor static linking is supported with a
16512         # broken collect2.
16513         hardcode_direct_GCJ=unsupported
16514       fi
16515       ;;
16516
16517     aix4* | aix5*)
16518       if test "$host_cpu" = ia64; then
16519         # On IA64, the linker does run time linking by default, so we don't
16520         # have to do anything special.
16521         aix_use_runtimelinking=no
16522         exp_sym_flag='-Bexport'
16523         no_entry_flag=""
16524       else
16525         # If we're using GNU nm, then we don't want the "-C" option.
16526         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16527         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16528           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16529         else
16530           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16531         fi
16532         aix_use_runtimelinking=no
16533
16534         # Test if we are trying to use run time linking or normal
16535         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16536         # need to do runtime linking.
16537         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16538           for ld_flag in $LDFLAGS; do
16539           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16540             aix_use_runtimelinking=yes
16541             break
16542           fi
16543           done
16544         esac
16545
16546         exp_sym_flag='-bexport'
16547         no_entry_flag='-bnoentry'
16548       fi
16549
16550       # When large executables or shared objects are built, AIX ld can
16551       # have problems creating the table of contents.  If linking a library
16552       # or program results in "error TOC overflow" add -mminimal-toc to
16553       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16554       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16555
16556       archive_cmds_GCJ=''
16557       hardcode_direct_GCJ=yes
16558       hardcode_libdir_separator_GCJ=':'
16559       link_all_deplibs_GCJ=yes
16560
16561       if test "$GCC" = yes; then
16562         case $host_os in aix4.[012]|aix4.[012].*)
16563         # We only want to do this on AIX 4.2 and lower, the check
16564         # below for broken collect2 doesn't work under 4.3+
16565           collect2name=`${CC} -print-prog-name=collect2`
16566           if test -f "$collect2name" && \
16567            strings "$collect2name" | grep resolve_lib_name >/dev/null
16568           then
16569           # We have reworked collect2
16570           hardcode_direct_GCJ=yes
16571           else
16572           # We have old collect2
16573           hardcode_direct_GCJ=unsupported
16574           # It fails to find uninstalled libraries when the uninstalled
16575           # path is not listed in the libpath.  Setting hardcode_minus_L
16576           # to unsupported forces relinking
16577           hardcode_minus_L_GCJ=yes
16578           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579           hardcode_libdir_separator_GCJ=
16580           fi
16581         esac
16582         shared_flag='-shared'
16583         if test "$aix_use_runtimelinking" = yes; then
16584           shared_flag="$shared_flag "'${wl}-G'
16585         fi
16586       else
16587         # not using gcc
16588         if test "$host_cpu" = ia64; then
16589         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16590         # chokes on -Wl,-G. The following line is correct:
16591           shared_flag='-G'
16592         else
16593         if test "$aix_use_runtimelinking" = yes; then
16594             shared_flag='${wl}-G'
16595           else
16596             shared_flag='${wl}-bM:SRE'
16597         fi
16598         fi
16599       fi
16600
16601       # It seems that -bexpall does not export symbols beginning with
16602       # underscore (_), so it is better to generate a list of symbols to export.
16603       always_export_symbols_GCJ=yes
16604       if test "$aix_use_runtimelinking" = yes; then
16605         # Warning - without using the other runtime loading flags (-brtl),
16606         # -berok will link without error, but may produce a broken library.
16607         allow_undefined_flag_GCJ='-berok'
16608        # Determine the default libpath from the value encoded in an empty executable.
16609        cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615
16616 int
16617 main ()
16618 {
16619
16620   ;
16621   return 0;
16622 }
16623 _ACEOF
16624 rm -f conftest.$ac_objext conftest$ac_exeext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626   (eval $ac_link) 2>conftest.er1
16627   ac_status=$?
16628   grep -v '^ *+' conftest.er1 >conftest.err
16629   rm -f conftest.er1
16630   cat conftest.err >&5
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); } &&
16633          { ac_try='test -z "$ac_c_werror_flag"
16634                          || test ! -s conftest.err'
16635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636   (eval $ac_try) 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; } &&
16640          { ac_try='test -s conftest$ac_exeext'
16641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642   (eval $ac_try) 2>&5
16643   ac_status=$?
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); }; }; then
16646
16647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16648 }'`
16649 # Check for a 64-bit object if we didn't find anything.
16650 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16651 }'`; fi
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 fi
16657 rm -f conftest.err conftest.$ac_objext \
16658       conftest$ac_exeext conftest.$ac_ext
16659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16660
16661        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16662         archive_expsym_cmds_GCJ="\$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"
16663        else
16664         if test "$host_cpu" = ia64; then
16665           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16666           allow_undefined_flag_GCJ="-z nodefs"
16667           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16668         else
16669          # Determine the default libpath from the value encoded in an empty executable.
16670          cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h.  */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h.  */
16676
16677 int
16678 main ()
16679 {
16680
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687   (eval $ac_link) 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } &&
16694          { ac_try='test -z "$ac_c_werror_flag"
16695                          || test ! -s conftest.err'
16696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697   (eval $ac_try) 2>&5
16698   ac_status=$?
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); }; } &&
16701          { ac_try='test -s conftest$ac_exeext'
16702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703   (eval $ac_try) 2>&5
16704   ac_status=$?
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); }; }; then
16707
16708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16709 }'`
16710 # Check for a 64-bit object if we didn't find anything.
16711 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16712 }'`; fi
16713 else
16714   echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717 fi
16718 rm -f conftest.err conftest.$ac_objext \
16719       conftest$ac_exeext conftest.$ac_ext
16720 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16721
16722          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16723           # Warning - without using the other run time loading flags,
16724           # -berok will link without error, but may produce a broken library.
16725           no_undefined_flag_GCJ=' ${wl}-bernotok'
16726           allow_undefined_flag_GCJ=' ${wl}-berok'
16727           # -bexpall does not export symbols beginning with underscore (_)
16728           always_export_symbols_GCJ=yes
16729           # Exported symbols can be pulled into shared objects from archives
16730           whole_archive_flag_spec_GCJ=' '
16731           archive_cmds_need_lc_GCJ=yes
16732           # This is similar to how AIX traditionally builds its shared libraries.
16733           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16734         fi
16735       fi
16736       ;;
16737
16738     amigaos*)
16739       archive_cmds_GCJ='$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)'
16740       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16741       hardcode_minus_L_GCJ=yes
16742       # see comment about different semantics on the GNU ld section
16743       ld_shlibs_GCJ=no
16744       ;;
16745
16746     bsdi[45]*)
16747       export_dynamic_flag_spec_GCJ=-rdynamic
16748       ;;
16749
16750     cygwin* | mingw* | pw32*)
16751       # When not using gcc, we currently assume that we are using
16752       # Microsoft Visual C++.
16753       # hardcode_libdir_flag_spec is actually meaningless, as there is
16754       # no search path for DLLs.
16755       hardcode_libdir_flag_spec_GCJ=' '
16756       allow_undefined_flag_GCJ=unsupported
16757       # Tell ltmain to make .lib files, not .a files.
16758       libext=lib
16759       # Tell ltmain to make .dll files, not .so files.
16760       shrext_cmds=".dll"
16761       # FIXME: Setting linknames here is a bad hack.
16762       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16763       # The linker will automatically build a .lib file if we build a DLL.
16764       old_archive_From_new_cmds_GCJ='true'
16765       # FIXME: Should let the user specify the lib program.
16766       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16767       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16768       enable_shared_with_static_runtimes_GCJ=yes
16769       ;;
16770
16771     darwin* | rhapsody*)
16772       case $host_os in
16773         rhapsody* | darwin1.[012])
16774          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16775          ;;
16776        *) # Darwin 1.3 on
16777          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16778            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16779          else
16780            case ${MACOSX_DEPLOYMENT_TARGET} in
16781              10.[012])
16782                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16783                ;;
16784              10.*)
16785                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16786                ;;
16787            esac
16788          fi
16789          ;;
16790       esac
16791       archive_cmds_need_lc_GCJ=no
16792       hardcode_direct_GCJ=no
16793       hardcode_automatic_GCJ=yes
16794       hardcode_shlibpath_var_GCJ=unsupported
16795       whole_archive_flag_spec_GCJ=''
16796       link_all_deplibs_GCJ=yes
16797     if test "$GCC" = yes ; then
16798         output_verbose_link_cmd='echo'
16799         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16800       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16801       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16802       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16803       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16804     else
16805       case $cc_basename in
16806         xlc*)
16807          output_verbose_link_cmd='echo'
16808          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16809          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16810           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16811          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16812           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16813           ;;
16814        *)
16815          ld_shlibs_GCJ=no
16816           ;;
16817       esac
16818     fi
16819       ;;
16820
16821     dgux*)
16822       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16823       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16824       hardcode_shlibpath_var_GCJ=no
16825       ;;
16826
16827     freebsd1*)
16828       ld_shlibs_GCJ=no
16829       ;;
16830
16831     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16832     # support.  Future versions do this automatically, but an explicit c++rt0.o
16833     # does not break anything, and helps significantly (at the cost of a little
16834     # extra space).
16835     freebsd2.2*)
16836       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16837       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16838       hardcode_direct_GCJ=yes
16839       hardcode_shlibpath_var_GCJ=no
16840       ;;
16841
16842     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16843     freebsd2*)
16844       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16845       hardcode_direct_GCJ=yes
16846       hardcode_minus_L_GCJ=yes
16847       hardcode_shlibpath_var_GCJ=no
16848       ;;
16849
16850     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16851     freebsd* | kfreebsd*-gnu | dragonfly*)
16852       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16853       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16854       hardcode_direct_GCJ=yes
16855       hardcode_shlibpath_var_GCJ=no
16856       ;;
16857
16858     hpux9*)
16859       if test "$GCC" = yes; then
16860         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16861       else
16862         archive_cmds_GCJ='$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'
16863       fi
16864       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16865       hardcode_libdir_separator_GCJ=:
16866       hardcode_direct_GCJ=yes
16867
16868       # hardcode_minus_L: Not really in the search PATH,
16869       # but as the default location of the library.
16870       hardcode_minus_L_GCJ=yes
16871       export_dynamic_flag_spec_GCJ='${wl}-E'
16872       ;;
16873
16874     hpux10* | hpux11*)
16875       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16876         case $host_cpu in
16877         hppa*64*|ia64*)
16878           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16879           ;;
16880         *)
16881           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16882           ;;
16883         esac
16884       else
16885         case $host_cpu in
16886         hppa*64*|ia64*)
16887           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16888           ;;
16889         *)
16890           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16891           ;;
16892         esac
16893       fi
16894       if test "$with_gnu_ld" = no; then
16895         case $host_cpu in
16896         hppa*64*)
16897           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16898           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16899           hardcode_libdir_separator_GCJ=:
16900           hardcode_direct_GCJ=no
16901           hardcode_shlibpath_var_GCJ=no
16902           ;;
16903         ia64*)
16904           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16905           hardcode_direct_GCJ=no
16906           hardcode_shlibpath_var_GCJ=no
16907
16908           # hardcode_minus_L: Not really in the search PATH,
16909           # but as the default location of the library.
16910           hardcode_minus_L_GCJ=yes
16911           ;;
16912         *)
16913           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16914           hardcode_libdir_separator_GCJ=:
16915           hardcode_direct_GCJ=yes
16916           export_dynamic_flag_spec_GCJ='${wl}-E'
16917
16918           # hardcode_minus_L: Not really in the search PATH,
16919           # but as the default location of the library.
16920           hardcode_minus_L_GCJ=yes
16921           ;;
16922         esac
16923       fi
16924       ;;
16925
16926     irix5* | irix6* | nonstopux*)
16927       if test "$GCC" = yes; then
16928         archive_cmds_GCJ='$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'
16929       else
16930         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16931         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16932       fi
16933       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16934       hardcode_libdir_separator_GCJ=:
16935       link_all_deplibs_GCJ=yes
16936       ;;
16937
16938     netbsd*)
16939       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16940         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16941       else
16942         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16943       fi
16944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16945       hardcode_direct_GCJ=yes
16946       hardcode_shlibpath_var_GCJ=no
16947       ;;
16948
16949     newsos6)
16950       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16951       hardcode_direct_GCJ=yes
16952       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16953       hardcode_libdir_separator_GCJ=:
16954       hardcode_shlibpath_var_GCJ=no
16955       ;;
16956
16957     openbsd*)
16958       hardcode_direct_GCJ=yes
16959       hardcode_shlibpath_var_GCJ=no
16960       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16961         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16962         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16963         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16964         export_dynamic_flag_spec_GCJ='${wl}-E'
16965       else
16966        case $host_os in
16967          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16968            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16969            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16970            ;;
16971          *)
16972            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16973            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16974            ;;
16975        esac
16976       fi
16977       ;;
16978
16979     os2*)
16980       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16981       hardcode_minus_L_GCJ=yes
16982       allow_undefined_flag_GCJ=unsupported
16983       archive_cmds_GCJ='$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'
16984       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16985       ;;
16986
16987     osf3*)
16988       if test "$GCC" = yes; then
16989         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16990         archive_cmds_GCJ='$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'
16991       else
16992         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16993         archive_cmds_GCJ='$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'
16994       fi
16995       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16996       hardcode_libdir_separator_GCJ=:
16997       ;;
16998
16999     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17000       if test "$GCC" = yes; then
17001         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17002         archive_cmds_GCJ='$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'
17003         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17004       else
17005         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17006         archive_cmds_GCJ='$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'
17007         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17008         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17009
17010         # Both c and cxx compiler support -rpath directly
17011         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17012       fi
17013       hardcode_libdir_separator_GCJ=:
17014       ;;
17015
17016     sco3.2v5*)
17017       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17018       hardcode_shlibpath_var_GCJ=no
17019       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17020       runpath_var=LD_RUN_PATH
17021       hardcode_runpath_var=yes
17022       ;;
17023
17024     solaris*)
17025       no_undefined_flag_GCJ=' -z text'
17026       if test "$GCC" = yes; then
17027         wlarc='${wl}'
17028         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17029         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17030           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17031       else
17032         wlarc=''
17033         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17034         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17035         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17036       fi
17037       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17038       hardcode_shlibpath_var_GCJ=no
17039       case $host_os in
17040       solaris2.[0-5] | solaris2.[0-5].*) ;;
17041       *)
17042         # The compiler driver will combine linker options so we
17043         # cannot just pass the convience library names through
17044         # without $wl, iff we do not link with $LD.
17045         # Luckily, gcc supports the same syntax we need for Sun Studio.
17046         # Supported since Solaris 2.6 (maybe 2.5.1?)
17047         case $wlarc in
17048         '')
17049           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17050         *)
17051           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17052         esac ;;
17053       esac
17054       link_all_deplibs_GCJ=yes
17055       ;;
17056
17057     sunos4*)
17058       if test "x$host_vendor" = xsequent; then
17059         # Use $CC to link under sequent, because it throws in some extra .o
17060         # files that make .init and .fini sections work.
17061         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17062       else
17063         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17064       fi
17065       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066       hardcode_direct_GCJ=yes
17067       hardcode_minus_L_GCJ=yes
17068       hardcode_shlibpath_var_GCJ=no
17069       ;;
17070
17071     sysv4)
17072       case $host_vendor in
17073         sni)
17074           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17075           hardcode_direct_GCJ=yes # is this really true???
17076         ;;
17077         siemens)
17078           ## LD is ld it makes a PLAMLIB
17079           ## CC just makes a GrossModule.
17080           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17081           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17082           hardcode_direct_GCJ=no
17083         ;;
17084         motorola)
17085           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17086           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17087         ;;
17088       esac
17089       runpath_var='LD_RUN_PATH'
17090       hardcode_shlibpath_var_GCJ=no
17091       ;;
17092
17093     sysv4.3*)
17094       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17095       hardcode_shlibpath_var_GCJ=no
17096       export_dynamic_flag_spec_GCJ='-Bexport'
17097       ;;
17098
17099     sysv4*MP*)
17100       if test -d /usr/nec; then
17101         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102         hardcode_shlibpath_var_GCJ=no
17103         runpath_var=LD_RUN_PATH
17104         hardcode_runpath_var=yes
17105         ld_shlibs_GCJ=yes
17106       fi
17107       ;;
17108
17109     sysv4.2uw2*)
17110       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17111       hardcode_direct_GCJ=yes
17112       hardcode_minus_L_GCJ=no
17113       hardcode_shlibpath_var_GCJ=no
17114       hardcode_runpath_var=yes
17115       runpath_var=LD_RUN_PATH
17116       ;;
17117
17118    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17119       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17120       if test "$GCC" = yes; then
17121         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17122       else
17123         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17124       fi
17125       runpath_var='LD_RUN_PATH'
17126       hardcode_shlibpath_var_GCJ=no
17127       ;;
17128
17129     sysv5*)
17130       no_undefined_flag_GCJ=' -z text'
17131       # $CC -shared without GNU ld will not create a library from C++
17132       # object files and a static libstdc++, better avoid it by now
17133       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17134       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17135                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17136       hardcode_libdir_flag_spec_GCJ=
17137       hardcode_shlibpath_var_GCJ=no
17138       runpath_var='LD_RUN_PATH'
17139       ;;
17140
17141     uts4*)
17142       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17143       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17144       hardcode_shlibpath_var_GCJ=no
17145       ;;
17146
17147     *)
17148       ld_shlibs_GCJ=no
17149       ;;
17150     esac
17151   fi
17152
17153 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17154 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17155 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17156
17157 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17158 if test "$GCC" = yes; then
17159   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17160 fi
17161
17162 #
17163 # Do we need to explicitly link libc?
17164 #
17165 case "x$archive_cmds_need_lc_GCJ" in
17166 x|xyes)
17167   # Assume -lc should be added
17168   archive_cmds_need_lc_GCJ=yes
17169
17170   if test "$enable_shared" = yes && test "$GCC" = yes; then
17171     case $archive_cmds_GCJ in
17172     *'~'*)
17173       # FIXME: we may have to deal with multi-command sequences.
17174       ;;
17175     '$CC '*)
17176       # Test whether the compiler implicitly links with -lc since on some
17177       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17178       # to ld, don't add -lc before -lgcc.
17179       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17180 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17181       $rm conftest*
17182       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17183
17184       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17185   (eval $ac_compile) 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); } 2>conftest.err; then
17189         soname=conftest
17190         lib=conftest
17191         libobjs=conftest.$ac_objext
17192         deplibs=
17193         wl=$lt_prog_compiler_wl_GCJ
17194         compiler_flags=-v
17195         linker_flags=-v
17196         verstring=
17197         output_objdir=.
17198         libname=conftest
17199         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17200         allow_undefined_flag_GCJ=
17201         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17202   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }
17206         then
17207           archive_cmds_need_lc_GCJ=no
17208         else
17209           archive_cmds_need_lc_GCJ=yes
17210         fi
17211         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17212       else
17213         cat conftest.err 1>&5
17214       fi
17215       $rm conftest*
17216       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17217 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17218       ;;
17219     esac
17220   fi
17221   ;;
17222 esac
17223
17224 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17225 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17226 library_names_spec=
17227 libname_spec='lib$name'
17228 soname_spec=
17229 shrext_cmds=".so"
17230 postinstall_cmds=
17231 postuninstall_cmds=
17232 finish_cmds=
17233 finish_eval=
17234 shlibpath_var=
17235 shlibpath_overrides_runpath=unknown
17236 version_type=none
17237 dynamic_linker="$host_os ld.so"
17238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17239 if test "$GCC" = yes; then
17240   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17241   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17242     # if the path contains ";" then we assume it to be the separator
17243     # otherwise default to the standard path separator (i.e. ":") - it is
17244     # assumed that no part of a normal pathname contains ";" but that should
17245     # okay in the real world where ";" in dirpaths is itself problematic.
17246     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17247   else
17248     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17249   fi
17250 else
17251   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17252 fi
17253 need_lib_prefix=unknown
17254 hardcode_into_libs=no
17255
17256 # when you set need_version to no, make sure it does not cause -set_version
17257 # flags to be left without arguments
17258 need_version=unknown
17259
17260 case $host_os in
17261 aix3*)
17262   version_type=linux
17263   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17264   shlibpath_var=LIBPATH
17265
17266   # AIX 3 has no versioning support, so we append a major version to the name.
17267   soname_spec='${libname}${release}${shared_ext}$major'
17268   ;;
17269
17270 aix4* | aix5*)
17271   version_type=linux
17272   need_lib_prefix=no
17273   need_version=no
17274   hardcode_into_libs=yes
17275   if test "$host_cpu" = ia64; then
17276     # AIX 5 supports IA64
17277     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17278     shlibpath_var=LD_LIBRARY_PATH
17279   else
17280     # With GCC up to 2.95.x, collect2 would create an import file
17281     # for dependence libraries.  The import file would start with
17282     # the line `#! .'.  This would cause the generated library to
17283     # depend on `.', always an invalid library.  This was fixed in
17284     # development snapshots of GCC prior to 3.0.
17285     case $host_os in
17286       aix4 | aix4.[01] | aix4.[01].*)
17287       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17288            echo ' yes '
17289            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17290         :
17291       else
17292         can_build_shared=no
17293       fi
17294       ;;
17295     esac
17296     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17297     # soname into executable. Probably we can add versioning support to
17298     # collect2, so additional links can be useful in future.
17299     if test "$aix_use_runtimelinking" = yes; then
17300       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17301       # instead of lib<name>.a to let people know that these are not
17302       # typical AIX shared libraries.
17303       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304     else
17305       # We preserve .a as extension for shared libraries through AIX4.2
17306       # and later when we are not doing run time linking.
17307       library_names_spec='${libname}${release}.a $libname.a'
17308       soname_spec='${libname}${release}${shared_ext}$major'
17309     fi
17310     shlibpath_var=LIBPATH
17311   fi
17312   ;;
17313
17314 amigaos*)
17315   library_names_spec='$libname.ixlibrary $libname.a'
17316   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17317   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'
17318   ;;
17319
17320 beos*)
17321   library_names_spec='${libname}${shared_ext}'
17322   dynamic_linker="$host_os ld.so"
17323   shlibpath_var=LIBRARY_PATH
17324   ;;
17325
17326 bsdi[45]*)
17327   version_type=linux
17328   need_version=no
17329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330   soname_spec='${libname}${release}${shared_ext}$major'
17331   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17332   shlibpath_var=LD_LIBRARY_PATH
17333   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17334   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17335   # the default ld.so.conf also contains /usr/contrib/lib and
17336   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17337   # libtool to hard-code these into programs
17338   ;;
17339
17340 cygwin* | mingw* | pw32*)
17341   version_type=windows
17342   shrext_cmds=".dll"
17343   need_version=no
17344   need_lib_prefix=no
17345
17346   case $GCC,$host_os in
17347   yes,cygwin* | yes,mingw* | yes,pw32*)
17348     library_names_spec='$libname.dll.a'
17349     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17350     postinstall_cmds='base_file=`basename \${file}`~
17351       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17352       dldir=$destdir/`dirname \$dlpath`~
17353       test -d \$dldir || mkdir -p \$dldir~
17354       $install_prog $dir/$dlname \$dldir/$dlname~
17355       chmod a+x \$dldir/$dlname'
17356     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17357       dlpath=$dir/\$dldll~
17358        $rm \$dlpath'
17359     shlibpath_overrides_runpath=yes
17360
17361     case $host_os in
17362     cygwin*)
17363       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17364       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17365       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17366       ;;
17367     mingw*)
17368       # MinGW DLLs use traditional 'lib' prefix
17369       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17370       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17371       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17372         # It is most probably a Windows format PATH printed by
17373         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17374         # path with ; separators, and with drive letters. We can handle the
17375         # drive letters (cygwin fileutils understands them), so leave them,
17376         # especially as we might pass files found there to a mingw objdump,
17377         # which wouldn't understand a cygwinified path. Ahh.
17378         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17379       else
17380         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17381       fi
17382       ;;
17383     pw32*)
17384       # pw32 DLLs use 'pw' prefix rather than 'lib'
17385       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17386       ;;
17387     esac
17388     ;;
17389
17390   *)
17391     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17392     ;;
17393   esac
17394   dynamic_linker='Win32 ld.exe'
17395   # FIXME: first we should search . and the directory the executable is in
17396   shlibpath_var=PATH
17397   ;;
17398
17399 darwin* | rhapsody*)
17400   dynamic_linker="$host_os dyld"
17401   version_type=darwin
17402   need_lib_prefix=no
17403   need_version=no
17404   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17405   soname_spec='${libname}${release}${major}$shared_ext'
17406   shlibpath_overrides_runpath=yes
17407   shlibpath_var=DYLD_LIBRARY_PATH
17408   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17409   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17410   if test "$GCC" = yes; then
17411     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17412   else
17413     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17414   fi
17415   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17416   ;;
17417
17418 dgux*)
17419   version_type=linux
17420   need_lib_prefix=no
17421   need_version=no
17422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17423   soname_spec='${libname}${release}${shared_ext}$major'
17424   shlibpath_var=LD_LIBRARY_PATH
17425   ;;
17426
17427 freebsd1*)
17428   dynamic_linker=no
17429   ;;
17430
17431 kfreebsd*-gnu)
17432   version_type=linux
17433   need_lib_prefix=no
17434   need_version=no
17435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17436   soname_spec='${libname}${release}${shared_ext}$major'
17437   shlibpath_var=LD_LIBRARY_PATH
17438   shlibpath_overrides_runpath=no
17439   hardcode_into_libs=yes
17440   dynamic_linker='GNU ld.so'
17441   ;;
17442
17443 freebsd* | dragonfly*)
17444   # DragonFly does not have aout.  When/if they implement a new
17445   # versioning mechanism, adjust this.
17446   if test -x /usr/bin/objformat; then
17447     objformat=`/usr/bin/objformat`
17448   else
17449     case $host_os in
17450     freebsd[123]*) objformat=aout ;;
17451     *) objformat=elf ;;
17452     esac
17453   fi
17454   version_type=freebsd-$objformat
17455   case $version_type in
17456     freebsd-elf*)
17457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17458       need_version=no
17459       need_lib_prefix=no
17460       ;;
17461     freebsd-*)
17462       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17463       need_version=yes
17464       ;;
17465   esac
17466   shlibpath_var=LD_LIBRARY_PATH
17467   case $host_os in
17468   freebsd2*)
17469     shlibpath_overrides_runpath=yes
17470     ;;
17471   freebsd3.[01]* | freebsdelf3.[01]*)
17472     shlibpath_overrides_runpath=yes
17473     hardcode_into_libs=yes
17474     ;;
17475   *) # from 3.2 on
17476     shlibpath_overrides_runpath=no
17477     hardcode_into_libs=yes
17478     ;;
17479   esac
17480   ;;
17481
17482 gnu*)
17483   version_type=linux
17484   need_lib_prefix=no
17485   need_version=no
17486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17487   soname_spec='${libname}${release}${shared_ext}$major'
17488   shlibpath_var=LD_LIBRARY_PATH
17489   hardcode_into_libs=yes
17490   ;;
17491
17492 hpux9* | hpux10* | hpux11*)
17493   # Give a soname corresponding to the major version so that dld.sl refuses to
17494   # link against other versions.
17495   version_type=sunos
17496   need_lib_prefix=no
17497   need_version=no
17498   case $host_cpu in
17499   ia64*)
17500     shrext_cmds='.so'
17501     hardcode_into_libs=yes
17502     dynamic_linker="$host_os dld.so"
17503     shlibpath_var=LD_LIBRARY_PATH
17504     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506     soname_spec='${libname}${release}${shared_ext}$major'
17507     if test "X$HPUX_IA64_MODE" = X32; then
17508       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17509     else
17510       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17511     fi
17512     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17513     ;;
17514    hppa*64*)
17515      shrext_cmds='.sl'
17516      hardcode_into_libs=yes
17517      dynamic_linker="$host_os dld.sl"
17518      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17519      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17520      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521      soname_spec='${libname}${release}${shared_ext}$major'
17522      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17523      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17524      ;;
17525    *)
17526     shrext_cmds='.sl'
17527     dynamic_linker="$host_os dld.sl"
17528     shlibpath_var=SHLIB_PATH
17529     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531     soname_spec='${libname}${release}${shared_ext}$major'
17532     ;;
17533   esac
17534   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17535   postinstall_cmds='chmod 555 $lib'
17536   ;;
17537
17538 irix5* | irix6* | nonstopux*)
17539   case $host_os in
17540     nonstopux*) version_type=nonstopux ;;
17541     *)
17542         if test "$lt_cv_prog_gnu_ld" = yes; then
17543                 version_type=linux
17544         else
17545                 version_type=irix
17546         fi ;;
17547   esac
17548   need_lib_prefix=no
17549   need_version=no
17550   soname_spec='${libname}${release}${shared_ext}$major'
17551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17552   case $host_os in
17553   irix5* | nonstopux*)
17554     libsuff= shlibsuff=
17555     ;;
17556   *)
17557     case $LD in # libtool.m4 will add one of these switches to LD
17558     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17559       libsuff= shlibsuff= libmagic=32-bit;;
17560     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17561       libsuff=32 shlibsuff=N32 libmagic=N32;;
17562     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17563       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17564     *) libsuff= shlibsuff= libmagic=never-match;;
17565     esac
17566     ;;
17567   esac
17568   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17569   shlibpath_overrides_runpath=no
17570   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17571   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17572   hardcode_into_libs=yes
17573   ;;
17574
17575 # No shared lib support for Linux oldld, aout, or coff.
17576 linux*oldld* | linux*aout* | linux*coff*)
17577   dynamic_linker=no
17578   ;;
17579
17580 # This must be Linux ELF.
17581 linux*)
17582   version_type=linux
17583   need_lib_prefix=no
17584   need_version=no
17585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586   soname_spec='${libname}${release}${shared_ext}$major'
17587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17588   shlibpath_var=LD_LIBRARY_PATH
17589   shlibpath_overrides_runpath=no
17590   # This implies no fast_install, which is unacceptable.
17591   # Some rework will be needed to allow for fast_install
17592   # before this can be enabled.
17593   hardcode_into_libs=yes
17594
17595   # Append ld.so.conf contents to the search path
17596   if test -f /etc/ld.so.conf; then
17597     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17598     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17599   fi
17600
17601   # We used to test for /lib/ld.so.1 and disable shared libraries on
17602   # powerpc, because MkLinux only supported shared libraries with the
17603   # GNU dynamic linker.  Since this was broken with cross compilers,
17604   # most powerpc-linux boxes support dynamic linking these days and
17605   # people can always --disable-shared, the test was removed, and we
17606   # assume the GNU/Linux dynamic linker is in use.
17607   dynamic_linker='GNU/Linux ld.so'
17608   ;;
17609
17610 knetbsd*-gnu)
17611   version_type=linux
17612   need_lib_prefix=no
17613   need_version=no
17614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17615   soname_spec='${libname}${release}${shared_ext}$major'
17616   shlibpath_var=LD_LIBRARY_PATH
17617   shlibpath_overrides_runpath=no
17618   hardcode_into_libs=yes
17619   dynamic_linker='GNU ld.so'
17620   ;;
17621
17622 netbsd*)
17623   version_type=sunos
17624   need_lib_prefix=no
17625   need_version=no
17626   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17628     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17629     dynamic_linker='NetBSD (a.out) ld.so'
17630   else
17631     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17632     soname_spec='${libname}${release}${shared_ext}$major'
17633     dynamic_linker='NetBSD ld.elf_so'
17634   fi
17635   shlibpath_var=LD_LIBRARY_PATH
17636   shlibpath_overrides_runpath=yes
17637   hardcode_into_libs=yes
17638   ;;
17639
17640 newsos6)
17641   version_type=linux
17642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643   shlibpath_var=LD_LIBRARY_PATH
17644   shlibpath_overrides_runpath=yes
17645   ;;
17646
17647 nto-qnx*)
17648   version_type=linux
17649   need_lib_prefix=no
17650   need_version=no
17651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652   soname_spec='${libname}${release}${shared_ext}$major'
17653   shlibpath_var=LD_LIBRARY_PATH
17654   shlibpath_overrides_runpath=yes
17655   ;;
17656
17657 openbsd*)
17658   version_type=sunos
17659   need_lib_prefix=no
17660   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17661   case $host_os in
17662     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17663     *)                         need_version=no  ;;
17664   esac
17665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17667   shlibpath_var=LD_LIBRARY_PATH
17668   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17669     case $host_os in
17670       openbsd2.[89] | openbsd2.[89].*)
17671         shlibpath_overrides_runpath=no
17672         ;;
17673       *)
17674         shlibpath_overrides_runpath=yes
17675         ;;
17676       esac
17677   else
17678     shlibpath_overrides_runpath=yes
17679   fi
17680   ;;
17681
17682 os2*)
17683   libname_spec='$name'
17684   shrext_cmds=".dll"
17685   need_lib_prefix=no
17686   library_names_spec='$libname${shared_ext} $libname.a'
17687   dynamic_linker='OS/2 ld.exe'
17688   shlibpath_var=LIBPATH
17689   ;;
17690
17691 osf3* | osf4* | osf5*)
17692   version_type=osf
17693   need_lib_prefix=no
17694   need_version=no
17695   soname_spec='${libname}${release}${shared_ext}$major'
17696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17697   shlibpath_var=LD_LIBRARY_PATH
17698   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17699   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17700   ;;
17701
17702 sco3.2v5*)
17703   version_type=osf
17704   soname_spec='${libname}${release}${shared_ext}$major'
17705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706   shlibpath_var=LD_LIBRARY_PATH
17707   ;;
17708
17709 solaris*)
17710   version_type=linux
17711   need_lib_prefix=no
17712   need_version=no
17713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714   soname_spec='${libname}${release}${shared_ext}$major'
17715   shlibpath_var=LD_LIBRARY_PATH
17716   shlibpath_overrides_runpath=yes
17717   hardcode_into_libs=yes
17718   # ldd complains unless libraries are executable
17719   postinstall_cmds='chmod +x $lib'
17720   ;;
17721
17722 sunos4*)
17723   version_type=sunos
17724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17725   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17726   shlibpath_var=LD_LIBRARY_PATH
17727   shlibpath_overrides_runpath=yes
17728   if test "$with_gnu_ld" = yes; then
17729     need_lib_prefix=no
17730   fi
17731   need_version=yes
17732   ;;
17733
17734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17735   version_type=linux
17736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17737   soname_spec='${libname}${release}${shared_ext}$major'
17738   shlibpath_var=LD_LIBRARY_PATH
17739   case $host_vendor in
17740     sni)
17741       shlibpath_overrides_runpath=no
17742       need_lib_prefix=no
17743       export_dynamic_flag_spec='${wl}-Blargedynsym'
17744       runpath_var=LD_RUN_PATH
17745       ;;
17746     siemens)
17747       need_lib_prefix=no
17748       ;;
17749     motorola)
17750       need_lib_prefix=no
17751       need_version=no
17752       shlibpath_overrides_runpath=no
17753       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17754       ;;
17755   esac
17756   ;;
17757
17758 sysv4*MP*)
17759   if test -d /usr/nec ;then
17760     version_type=linux
17761     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17762     soname_spec='$libname${shared_ext}.$major'
17763     shlibpath_var=LD_LIBRARY_PATH
17764   fi
17765   ;;
17766
17767 uts4*)
17768   version_type=linux
17769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17770   soname_spec='${libname}${release}${shared_ext}$major'
17771   shlibpath_var=LD_LIBRARY_PATH
17772   ;;
17773
17774 *)
17775   dynamic_linker=no
17776   ;;
17777 esac
17778 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17779 echo "${ECHO_T}$dynamic_linker" >&6
17780 test "$dynamic_linker" = no && can_build_shared=no
17781
17782 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17783 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17784 hardcode_action_GCJ=
17785 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17786    test -n "$runpath_var_GCJ" || \
17787    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17788
17789   # We can hardcode non-existant directories.
17790   if test "$hardcode_direct_GCJ" != no &&
17791      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17792      # have to relink, otherwise we might link with an installed library
17793      # when we should be linking with a yet-to-be-installed one
17794      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17795      test "$hardcode_minus_L_GCJ" != no; then
17796     # Linking always hardcodes the temporary library directory.
17797     hardcode_action_GCJ=relink
17798   else
17799     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17800     hardcode_action_GCJ=immediate
17801   fi
17802 else
17803   # We cannot hardcode anything, or else we can only hardcode existing
17804   # directories.
17805   hardcode_action_GCJ=unsupported
17806 fi
17807 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17808 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17809
17810 if test "$hardcode_action_GCJ" = relink; then
17811   # Fast installation is not supported
17812   enable_fast_install=no
17813 elif test "$shlibpath_overrides_runpath" = yes ||
17814      test "$enable_shared" = no; then
17815   # Fast installation is not necessary
17816   enable_fast_install=needless
17817 fi
17818
17819 striplib=
17820 old_striplib=
17821 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17822 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17823 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17824   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17825   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17826   echo "$as_me:$LINENO: result: yes" >&5
17827 echo "${ECHO_T}yes" >&6
17828 else
17829 # FIXME - insert some real tests, host_os isn't really good enough
17830   case $host_os in
17831    darwin*)
17832        if test -n "$STRIP" ; then
17833          striplib="$STRIP -x"
17834          echo "$as_me:$LINENO: result: yes" >&5
17835 echo "${ECHO_T}yes" >&6
17836        else
17837   echo "$as_me:$LINENO: result: no" >&5
17838 echo "${ECHO_T}no" >&6
17839 fi
17840        ;;
17841    *)
17842   echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6
17844     ;;
17845   esac
17846 fi
17847
17848 if test "x$enable_dlopen" != xyes; then
17849   enable_dlopen=unknown
17850   enable_dlopen_self=unknown
17851   enable_dlopen_self_static=unknown
17852 else
17853   lt_cv_dlopen=no
17854   lt_cv_dlopen_libs=
17855
17856   case $host_os in
17857   beos*)
17858     lt_cv_dlopen="load_add_on"
17859     lt_cv_dlopen_libs=
17860     lt_cv_dlopen_self=yes
17861     ;;
17862
17863   mingw* | pw32*)
17864     lt_cv_dlopen="LoadLibrary"
17865     lt_cv_dlopen_libs=
17866    ;;
17867
17868   cygwin*)
17869     lt_cv_dlopen="dlopen"
17870     lt_cv_dlopen_libs=
17871    ;;
17872
17873   darwin*)
17874   # if libdl is installed we need to link against it
17875     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17876 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17878   echo $ECHO_N "(cached) $ECHO_C" >&6
17879 else
17880   ac_check_lib_save_LIBS=$LIBS
17881 LIBS="-ldl  $LIBS"
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888
17889 /* Override any gcc2 internal prototype to avoid an error.  */
17890 #ifdef __cplusplus
17891 extern "C"
17892 #endif
17893 /* We use char because int might match the return type of a gcc2
17894    builtin and then its argument prototype would still apply.  */
17895 char dlopen ();
17896 int
17897 main ()
17898 {
17899 dlopen ();
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906   (eval $ac_link) 2>conftest.er1
17907   ac_status=$?
17908   grep -v '^ *+' conftest.er1 >conftest.err
17909   rm -f conftest.er1
17910   cat conftest.err >&5
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } &&
17913          { ac_try='test -z "$ac_c_werror_flag"
17914                          || test ! -s conftest.err'
17915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916   (eval $ac_try) 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); }; } &&
17920          { ac_try='test -s conftest$ac_exeext'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   ac_cv_lib_dl_dlopen=yes
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 ac_cv_lib_dl_dlopen=no
17932 fi
17933 rm -f conftest.err conftest.$ac_objext \
17934       conftest$ac_exeext conftest.$ac_ext
17935 LIBS=$ac_check_lib_save_LIBS
17936 fi
17937 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17938 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17939 if test $ac_cv_lib_dl_dlopen = yes; then
17940   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17941 else
17942
17943     lt_cv_dlopen="dyld"
17944     lt_cv_dlopen_libs=
17945     lt_cv_dlopen_self=yes
17946
17947 fi
17948
17949    ;;
17950
17951   *)
17952     echo "$as_me:$LINENO: checking for shl_load" >&5
17953 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17954 if test "${ac_cv_func_shl_load+set}" = set; then
17955   echo $ECHO_N "(cached) $ECHO_C" >&6
17956 else
17957   cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h.  */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h.  */
17963 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17965 #define shl_load innocuous_shl_load
17966
17967 /* System header to define __stub macros and hopefully few prototypes,
17968     which can conflict with char shl_load (); below.
17969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970     <limits.h> exists even on freestanding compilers.  */
17971
17972 #ifdef __STDC__
17973 # include <limits.h>
17974 #else
17975 # include <assert.h>
17976 #endif
17977
17978 #undef shl_load
17979
17980 /* Override any gcc2 internal prototype to avoid an error.  */
17981 #ifdef __cplusplus
17982 extern "C"
17983 {
17984 #endif
17985 /* We use char because int might match the return type of a gcc2
17986    builtin and then its argument prototype would still apply.  */
17987 char shl_load ();
17988 /* The GNU C library defines this for functions which it implements
17989     to always fail with ENOSYS.  Some functions are actually named
17990     something starting with __ and the normal name is an alias.  */
17991 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17992 choke me
17993 #else
17994 char (*f) () = shl_load;
17995 #endif
17996 #ifdef __cplusplus
17997 }
17998 #endif
17999
18000 int
18001 main ()
18002 {
18003 return f != shl_load;
18004   ;
18005   return 0;
18006 }
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010   (eval $ac_link) 2>conftest.er1
18011   ac_status=$?
18012   grep -v '^ *+' conftest.er1 >conftest.err
18013   rm -f conftest.er1
18014   cat conftest.err >&5
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); } &&
18017          { ac_try='test -z "$ac_c_werror_flag"
18018                          || test ! -s conftest.err'
18019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020   (eval $ac_try) 2>&5
18021   ac_status=$?
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); }; } &&
18024          { ac_try='test -s conftest$ac_exeext'
18025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026   (eval $ac_try) 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; }; then
18030   ac_cv_func_shl_load=yes
18031 else
18032   echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035 ac_cv_func_shl_load=no
18036 fi
18037 rm -f conftest.err conftest.$ac_objext \
18038       conftest$ac_exeext conftest.$ac_ext
18039 fi
18040 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18041 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18042 if test $ac_cv_func_shl_load = yes; then
18043   lt_cv_dlopen="shl_load"
18044 else
18045   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18046 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18047 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18048   echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
18050   ac_check_lib_save_LIBS=$LIBS
18051 LIBS="-ldld  $LIBS"
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h.  */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h.  */
18058
18059 /* Override any gcc2 internal prototype to avoid an error.  */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 /* We use char because int might match the return type of a gcc2
18064    builtin and then its argument prototype would still apply.  */
18065 char shl_load ();
18066 int
18067 main ()
18068 {
18069 shl_load ();
18070   ;
18071   return 0;
18072 }
18073 _ACEOF
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18076   (eval $ac_link) 2>conftest.er1
18077   ac_status=$?
18078   grep -v '^ *+' conftest.er1 >conftest.err
18079   rm -f conftest.er1
18080   cat conftest.err >&5
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } &&
18083          { ac_try='test -z "$ac_c_werror_flag"
18084                          || test ! -s conftest.err'
18085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086   (eval $ac_try) 2>&5
18087   ac_status=$?
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); }; } &&
18090          { ac_try='test -s conftest$ac_exeext'
18091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092   (eval $ac_try) 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; }; then
18096   ac_cv_lib_dld_shl_load=yes
18097 else
18098   echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18100
18101 ac_cv_lib_dld_shl_load=no
18102 fi
18103 rm -f conftest.err conftest.$ac_objext \
18104       conftest$ac_exeext conftest.$ac_ext
18105 LIBS=$ac_check_lib_save_LIBS
18106 fi
18107 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18108 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18109 if test $ac_cv_lib_dld_shl_load = yes; then
18110   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18111 else
18112   echo "$as_me:$LINENO: checking for dlopen" >&5
18113 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18114 if test "${ac_cv_func_dlopen+set}" = set; then
18115   echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117   cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h.  */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h.  */
18123 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18125 #define dlopen innocuous_dlopen
18126
18127 /* System header to define __stub macros and hopefully few prototypes,
18128     which can conflict with char dlopen (); below.
18129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18130     <limits.h> exists even on freestanding compilers.  */
18131
18132 #ifdef __STDC__
18133 # include <limits.h>
18134 #else
18135 # include <assert.h>
18136 #endif
18137
18138 #undef dlopen
18139
18140 /* Override any gcc2 internal prototype to avoid an error.  */
18141 #ifdef __cplusplus
18142 extern "C"
18143 {
18144 #endif
18145 /* We use char because int might match the return type of a gcc2
18146    builtin and then its argument prototype would still apply.  */
18147 char dlopen ();
18148 /* The GNU C library defines this for functions which it implements
18149     to always fail with ENOSYS.  Some functions are actually named
18150     something starting with __ and the normal name is an alias.  */
18151 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18152 choke me
18153 #else
18154 char (*f) () = dlopen;
18155 #endif
18156 #ifdef __cplusplus
18157 }
18158 #endif
18159
18160 int
18161 main ()
18162 {
18163 return f != dlopen;
18164   ;
18165   return 0;
18166 }
18167 _ACEOF
18168 rm -f conftest.$ac_objext conftest$ac_exeext
18169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18170   (eval $ac_link) 2>conftest.er1
18171   ac_status=$?
18172   grep -v '^ *+' conftest.er1 >conftest.err
18173   rm -f conftest.er1
18174   cat conftest.err >&5
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); } &&
18177          { ac_try='test -z "$ac_c_werror_flag"
18178                          || test ! -s conftest.err'
18179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180   (eval $ac_try) 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); }; } &&
18184          { ac_try='test -s conftest$ac_exeext'
18185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186   (eval $ac_try) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; }; then
18190   ac_cv_func_dlopen=yes
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195 ac_cv_func_dlopen=no
18196 fi
18197 rm -f conftest.err conftest.$ac_objext \
18198       conftest$ac_exeext conftest.$ac_ext
18199 fi
18200 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18201 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18202 if test $ac_cv_func_dlopen = yes; then
18203   lt_cv_dlopen="dlopen"
18204 else
18205   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18206 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18207 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18208   echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210   ac_check_lib_save_LIBS=$LIBS
18211 LIBS="-ldl  $LIBS"
18212 cat >conftest.$ac_ext <<_ACEOF
18213 /* confdefs.h.  */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h.  */
18218
18219 /* Override any gcc2 internal prototype to avoid an error.  */
18220 #ifdef __cplusplus
18221 extern "C"
18222 #endif
18223 /* We use char because int might match the return type of a gcc2
18224    builtin and then its argument prototype would still apply.  */
18225 char dlopen ();
18226 int
18227 main ()
18228 {
18229 dlopen ();
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236   (eval $ac_link) 2>conftest.er1
18237   ac_status=$?
18238   grep -v '^ *+' conftest.er1 >conftest.err
18239   rm -f conftest.er1
18240   cat conftest.err >&5
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } &&
18243          { ac_try='test -z "$ac_c_werror_flag"
18244                          || test ! -s conftest.err'
18245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246   (eval $ac_try) 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; } &&
18250          { ac_try='test -s conftest$ac_exeext'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256   ac_cv_lib_dl_dlopen=yes
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 ac_cv_lib_dl_dlopen=no
18262 fi
18263 rm -f conftest.err conftest.$ac_objext \
18264       conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18266 fi
18267 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18268 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18269 if test $ac_cv_lib_dl_dlopen = yes; then
18270   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18271 else
18272   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18273 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18274 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18275   echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277   ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-lsvld  $LIBS"
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h.  */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h.  */
18285
18286 /* Override any gcc2 internal prototype to avoid an error.  */
18287 #ifdef __cplusplus
18288 extern "C"
18289 #endif
18290 /* We use char because int might match the return type of a gcc2
18291    builtin and then its argument prototype would still apply.  */
18292 char dlopen ();
18293 int
18294 main ()
18295 {
18296 dlopen ();
18297   ;
18298   return 0;
18299 }
18300 _ACEOF
18301 rm -f conftest.$ac_objext conftest$ac_exeext
18302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18303   (eval $ac_link) 2>conftest.er1
18304   ac_status=$?
18305   grep -v '^ *+' conftest.er1 >conftest.err
18306   rm -f conftest.er1
18307   cat conftest.err >&5
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); } &&
18310          { ac_try='test -z "$ac_c_werror_flag"
18311                          || test ! -s conftest.err'
18312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313   (eval $ac_try) 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; } &&
18317          { ac_try='test -s conftest$ac_exeext'
18318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18319   (eval $ac_try) 2>&5
18320   ac_status=$?
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); }; }; then
18323   ac_cv_lib_svld_dlopen=yes
18324 else
18325   echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18327
18328 ac_cv_lib_svld_dlopen=no
18329 fi
18330 rm -f conftest.err conftest.$ac_objext \
18331       conftest$ac_exeext conftest.$ac_ext
18332 LIBS=$ac_check_lib_save_LIBS
18333 fi
18334 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18335 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18336 if test $ac_cv_lib_svld_dlopen = yes; then
18337   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18338 else
18339   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18340 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18342   echo $ECHO_N "(cached) $ECHO_C" >&6
18343 else
18344   ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-ldld  $LIBS"
18346 cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h.  */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h.  */
18352
18353 /* Override any gcc2 internal prototype to avoid an error.  */
18354 #ifdef __cplusplus
18355 extern "C"
18356 #endif
18357 /* We use char because int might match the return type of a gcc2
18358    builtin and then its argument prototype would still apply.  */
18359 char dld_link ();
18360 int
18361 main ()
18362 {
18363 dld_link ();
18364   ;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370   (eval $ac_link) 2>conftest.er1
18371   ac_status=$?
18372   grep -v '^ *+' conftest.er1 >conftest.err
18373   rm -f conftest.er1
18374   cat conftest.err >&5
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); } &&
18377          { ac_try='test -z "$ac_c_werror_flag"
18378                          || test ! -s conftest.err'
18379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380   (eval $ac_try) 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; } &&
18384          { ac_try='test -s conftest$ac_exeext'
18385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386   (eval $ac_try) 2>&5
18387   ac_status=$?
18388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389   (exit $ac_status); }; }; then
18390   ac_cv_lib_dld_dld_link=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395 ac_cv_lib_dld_dld_link=no
18396 fi
18397 rm -f conftest.err conftest.$ac_objext \
18398       conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18400 fi
18401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18402 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18403 if test $ac_cv_lib_dld_dld_link = yes; then
18404   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18405 fi
18406
18407
18408 fi
18409
18410
18411 fi
18412
18413
18414 fi
18415
18416
18417 fi
18418
18419
18420 fi
18421
18422     ;;
18423   esac
18424
18425   if test "x$lt_cv_dlopen" != xno; then
18426     enable_dlopen=yes
18427   else
18428     enable_dlopen=no
18429   fi
18430
18431   case $lt_cv_dlopen in
18432   dlopen)
18433     save_CPPFLAGS="$CPPFLAGS"
18434     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18435
18436     save_LDFLAGS="$LDFLAGS"
18437     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18438
18439     save_LIBS="$LIBS"
18440     LIBS="$lt_cv_dlopen_libs $LIBS"
18441
18442     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18443 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18444 if test "${lt_cv_dlopen_self+set}" = set; then
18445   echo $ECHO_N "(cached) $ECHO_C" >&6
18446 else
18447           if test "$cross_compiling" = yes; then :
18448   lt_cv_dlopen_self=cross
18449 else
18450   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18451   lt_status=$lt_dlunknown
18452   cat > conftest.$ac_ext <<EOF
18453 #line 18453 "configure"
18454 #include "confdefs.h"
18455
18456 #if HAVE_DLFCN_H
18457 #include <dlfcn.h>
18458 #endif
18459
18460 #include <stdio.h>
18461
18462 #ifdef RTLD_GLOBAL
18463 #  define LT_DLGLOBAL           RTLD_GLOBAL
18464 #else
18465 #  ifdef DL_GLOBAL
18466 #    define LT_DLGLOBAL         DL_GLOBAL
18467 #  else
18468 #    define LT_DLGLOBAL         0
18469 #  endif
18470 #endif
18471
18472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18473    find out it does not work in some platform. */
18474 #ifndef LT_DLLAZY_OR_NOW
18475 #  ifdef RTLD_LAZY
18476 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18477 #  else
18478 #    ifdef DL_LAZY
18479 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18480 #    else
18481 #      ifdef RTLD_NOW
18482 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18483 #      else
18484 #        ifdef DL_NOW
18485 #          define LT_DLLAZY_OR_NOW      DL_NOW
18486 #        else
18487 #          define LT_DLLAZY_OR_NOW      0
18488 #        endif
18489 #      endif
18490 #    endif
18491 #  endif
18492 #endif
18493
18494 #ifdef __cplusplus
18495 extern "C" void exit (int);
18496 #endif
18497
18498 void fnord() { int i=42;}
18499 int main ()
18500 {
18501   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18502   int status = $lt_dlunknown;
18503
18504   if (self)
18505     {
18506       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18507       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18508       /* dlclose (self); */
18509     }
18510
18511     exit (status);
18512 }
18513 EOF
18514   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18515   (eval $ac_link) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18519     (./conftest; exit; ) >&5 2>/dev/null
18520     lt_status=$?
18521     case x$lt_status in
18522       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18523       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18524       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18525     esac
18526   else :
18527     # compilation failed
18528     lt_cv_dlopen_self=no
18529   fi
18530 fi
18531 rm -fr conftest*
18532
18533
18534 fi
18535 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18536 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18537
18538     if test "x$lt_cv_dlopen_self" = xyes; then
18539       LDFLAGS="$LDFLAGS $link_static_flag"
18540       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18541 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18542 if test "${lt_cv_dlopen_self_static+set}" = set; then
18543   echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545           if test "$cross_compiling" = yes; then :
18546   lt_cv_dlopen_self_static=cross
18547 else
18548   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18549   lt_status=$lt_dlunknown
18550   cat > conftest.$ac_ext <<EOF
18551 #line 18551 "configure"
18552 #include "confdefs.h"
18553
18554 #if HAVE_DLFCN_H
18555 #include <dlfcn.h>
18556 #endif
18557
18558 #include <stdio.h>
18559
18560 #ifdef RTLD_GLOBAL
18561 #  define LT_DLGLOBAL           RTLD_GLOBAL
18562 #else
18563 #  ifdef DL_GLOBAL
18564 #    define LT_DLGLOBAL         DL_GLOBAL
18565 #  else
18566 #    define LT_DLGLOBAL         0
18567 #  endif
18568 #endif
18569
18570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18571    find out it does not work in some platform. */
18572 #ifndef LT_DLLAZY_OR_NOW
18573 #  ifdef RTLD_LAZY
18574 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18575 #  else
18576 #    ifdef DL_LAZY
18577 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18578 #    else
18579 #      ifdef RTLD_NOW
18580 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18581 #      else
18582 #        ifdef DL_NOW
18583 #          define LT_DLLAZY_OR_NOW      DL_NOW
18584 #        else
18585 #          define LT_DLLAZY_OR_NOW      0
18586 #        endif
18587 #      endif
18588 #    endif
18589 #  endif
18590 #endif
18591
18592 #ifdef __cplusplus
18593 extern "C" void exit (int);
18594 #endif
18595
18596 void fnord() { int i=42;}
18597 int main ()
18598 {
18599   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18600   int status = $lt_dlunknown;
18601
18602   if (self)
18603     {
18604       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18605       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18606       /* dlclose (self); */
18607     }
18608
18609     exit (status);
18610 }
18611 EOF
18612   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18613   (eval $ac_link) 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18617     (./conftest; exit; ) >&5 2>/dev/null
18618     lt_status=$?
18619     case x$lt_status in
18620       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18621       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18622       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18623     esac
18624   else :
18625     # compilation failed
18626     lt_cv_dlopen_self_static=no
18627   fi
18628 fi
18629 rm -fr conftest*
18630
18631
18632 fi
18633 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18634 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18635     fi
18636
18637     CPPFLAGS="$save_CPPFLAGS"
18638     LDFLAGS="$save_LDFLAGS"
18639     LIBS="$save_LIBS"
18640     ;;
18641   esac
18642
18643   case $lt_cv_dlopen_self in
18644   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18645   *) enable_dlopen_self=unknown ;;
18646   esac
18647
18648   case $lt_cv_dlopen_self_static in
18649   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18650   *) enable_dlopen_self_static=unknown ;;
18651   esac
18652 fi
18653
18654
18655 # The else clause should only fire when bootstrapping the
18656 # libtool distribution, otherwise you forgot to ship ltmain.sh
18657 # with your package, and you will get complaints that there are
18658 # no rules to generate ltmain.sh.
18659 if test -f "$ltmain"; then
18660   # See if we are running on zsh, and set the options which allow our commands through
18661   # without removal of \ escapes.
18662   if test -n "${ZSH_VERSION+set}" ; then
18663     setopt NO_GLOB_SUBST
18664   fi
18665   # Now quote all the things that may contain metacharacters while being
18666   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18667   # variables and quote the copies for generation of the libtool script.
18668   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18669     SED SHELL STRIP \
18670     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18671     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18672     deplibs_check_method reload_flag reload_cmds need_locks \
18673     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18674     lt_cv_sys_global_symbol_to_c_name_address \
18675     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18676     old_postinstall_cmds old_postuninstall_cmds \
18677     compiler_GCJ \
18678     CC_GCJ \
18679     LD_GCJ \
18680     lt_prog_compiler_wl_GCJ \
18681     lt_prog_compiler_pic_GCJ \
18682     lt_prog_compiler_static_GCJ \
18683     lt_prog_compiler_no_builtin_flag_GCJ \
18684     export_dynamic_flag_spec_GCJ \
18685     thread_safe_flag_spec_GCJ \
18686     whole_archive_flag_spec_GCJ \
18687     enable_shared_with_static_runtimes_GCJ \
18688     old_archive_cmds_GCJ \
18689     old_archive_from_new_cmds_GCJ \
18690     predep_objects_GCJ \
18691     postdep_objects_GCJ \
18692     predeps_GCJ \
18693     postdeps_GCJ \
18694     compiler_lib_search_path_GCJ \
18695     archive_cmds_GCJ \
18696     archive_expsym_cmds_GCJ \
18697     postinstall_cmds_GCJ \
18698     postuninstall_cmds_GCJ \
18699     old_archive_from_expsyms_cmds_GCJ \
18700     allow_undefined_flag_GCJ \
18701     no_undefined_flag_GCJ \
18702     export_symbols_cmds_GCJ \
18703     hardcode_libdir_flag_spec_GCJ \
18704     hardcode_libdir_flag_spec_ld_GCJ \
18705     hardcode_libdir_separator_GCJ \
18706     hardcode_automatic_GCJ \
18707     module_cmds_GCJ \
18708     module_expsym_cmds_GCJ \
18709     lt_cv_prog_compiler_c_o_GCJ \
18710     exclude_expsyms_GCJ \
18711     include_expsyms_GCJ; do
18712
18713     case $var in
18714     old_archive_cmds_GCJ | \
18715     old_archive_from_new_cmds_GCJ | \
18716     archive_cmds_GCJ | \
18717     archive_expsym_cmds_GCJ | \
18718     module_cmds_GCJ | \
18719     module_expsym_cmds_GCJ | \
18720     old_archive_from_expsyms_cmds_GCJ | \
18721     export_symbols_cmds_GCJ | \
18722     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18723     postinstall_cmds | postuninstall_cmds | \
18724     old_postinstall_cmds | old_postuninstall_cmds | \
18725     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18726       # Double-quote double-evaled strings.
18727       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18728       ;;
18729     *)
18730       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18731       ;;
18732     esac
18733   done
18734
18735   case $lt_echo in
18736   *'\$0 --fallback-echo"')
18737     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18738     ;;
18739   esac
18740
18741 cfgfile="$ofile"
18742
18743   cat <<__EOF__ >> "$cfgfile"
18744 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18745
18746 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18747
18748 # Shell to use when invoking shell scripts.
18749 SHELL=$lt_SHELL
18750
18751 # Whether or not to build shared libraries.
18752 build_libtool_libs=$enable_shared
18753
18754 # Whether or not to build static libraries.
18755 build_old_libs=$enable_static
18756
18757 # Whether or not to add -lc for building shared libraries.
18758 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18759
18760 # Whether or not to disallow shared libs when runtime libs are static
18761 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18762
18763 # Whether or not to optimize for fast installation.
18764 fast_install=$enable_fast_install
18765
18766 # The host system.
18767 host_alias=$host_alias
18768 host=$host
18769 host_os=$host_os
18770
18771 # The build system.
18772 build_alias=$build_alias
18773 build=$build
18774 build_os=$build_os
18775
18776 # An echo program that does not interpret backslashes.
18777 echo=$lt_echo
18778
18779 # The archiver.
18780 AR=$lt_AR
18781 AR_FLAGS=$lt_AR_FLAGS
18782
18783 # A C compiler.
18784 LTCC=$lt_LTCC
18785
18786 # A language-specific compiler.
18787 CC=$lt_compiler_GCJ
18788
18789 # Is the compiler the GNU C compiler?
18790 with_gcc=$GCC_GCJ
18791
18792 # An ERE matcher.
18793 EGREP=$lt_EGREP
18794
18795 # The linker used to build libraries.
18796 LD=$lt_LD_GCJ
18797
18798 # Whether we need hard or soft links.
18799 LN_S=$lt_LN_S
18800
18801 # A BSD-compatible nm program.
18802 NM=$lt_NM
18803
18804 # A symbol stripping program
18805 STRIP=$lt_STRIP
18806
18807 # Used to examine libraries when file_magic_cmd begins "file"
18808 MAGIC_CMD=$MAGIC_CMD
18809
18810 # Used on cygwin: DLL creation program.
18811 DLLTOOL="$DLLTOOL"
18812
18813 # Used on cygwin: object dumper.
18814 OBJDUMP="$OBJDUMP"
18815
18816 # Used on cygwin: assembler.
18817 AS="$AS"
18818
18819 # The name of the directory that contains temporary libtool files.
18820 objdir=$objdir
18821
18822 # How to create reloadable object files.
18823 reload_flag=$lt_reload_flag
18824 reload_cmds=$lt_reload_cmds
18825
18826 # How to pass a linker flag through the compiler.
18827 wl=$lt_lt_prog_compiler_wl_GCJ
18828
18829 # Object file suffix (normally "o").
18830 objext="$ac_objext"
18831
18832 # Old archive suffix (normally "a").
18833 libext="$libext"
18834
18835 # Shared library suffix (normally ".so").
18836 shrext_cmds='$shrext_cmds'
18837
18838 # Executable file suffix (normally "").
18839 exeext="$exeext"
18840
18841 # Additional compiler flags for building library objects.
18842 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18843 pic_mode=$pic_mode
18844
18845 # What is the maximum length of a command?
18846 max_cmd_len=$lt_cv_sys_max_cmd_len
18847
18848 # Does compiler simultaneously support -c and -o options?
18849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18850
18851 # Must we lock files when doing compilation?
18852 need_locks=$lt_need_locks
18853
18854 # Do we need the lib prefix for modules?
18855 need_lib_prefix=$need_lib_prefix
18856
18857 # Do we need a version for libraries?
18858 need_version=$need_version
18859
18860 # Whether dlopen is supported.
18861 dlopen_support=$enable_dlopen
18862
18863 # Whether dlopen of programs is supported.
18864 dlopen_self=$enable_dlopen_self
18865
18866 # Whether dlopen of statically linked programs is supported.
18867 dlopen_self_static=$enable_dlopen_self_static
18868
18869 # Compiler flag to prevent dynamic linking.
18870 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18871
18872 # Compiler flag to turn off builtin functions.
18873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18874
18875 # Compiler flag to allow reflexive dlopens.
18876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18877
18878 # Compiler flag to generate shared objects directly from archives.
18879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18880
18881 # Compiler flag to generate thread-safe objects.
18882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18883
18884 # Library versioning type.
18885 version_type=$version_type
18886
18887 # Format of library name prefix.
18888 libname_spec=$lt_libname_spec
18889
18890 # List of archive names.  First name is the real one, the rest are links.
18891 # The last name is the one that the linker finds with -lNAME.
18892 library_names_spec=$lt_library_names_spec
18893
18894 # The coded name of the library, if different from the real name.
18895 soname_spec=$lt_soname_spec
18896
18897 # Commands used to build and install an old-style archive.
18898 RANLIB=$lt_RANLIB
18899 old_archive_cmds=$lt_old_archive_cmds_GCJ
18900 old_postinstall_cmds=$lt_old_postinstall_cmds
18901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18902
18903 # Create an old-style archive from a shared archive.
18904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18905
18906 # Create a temporary old-style archive to link instead of a shared archive.
18907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18908
18909 # Commands used to build and install a shared archive.
18910 archive_cmds=$lt_archive_cmds_GCJ
18911 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18912 postinstall_cmds=$lt_postinstall_cmds
18913 postuninstall_cmds=$lt_postuninstall_cmds
18914
18915 # Commands used to build a loadable module (assumed same as above if empty)
18916 module_cmds=$lt_module_cmds_GCJ
18917 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18918
18919 # Commands to strip libraries.
18920 old_striplib=$lt_old_striplib
18921 striplib=$lt_striplib
18922
18923 # Dependencies to place before the objects being linked to create a
18924 # shared library.
18925 predep_objects=$lt_predep_objects_GCJ
18926
18927 # Dependencies to place after the objects being linked to create a
18928 # shared library.
18929 postdep_objects=$lt_postdep_objects_GCJ
18930
18931 # Dependencies to place before the objects being linked to create a
18932 # shared library.
18933 predeps=$lt_predeps_GCJ
18934
18935 # Dependencies to place after the objects being linked to create a
18936 # shared library.
18937 postdeps=$lt_postdeps_GCJ
18938
18939 # The library search path used internally by the compiler when linking
18940 # a shared library.
18941 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18942
18943 # Method to check whether dependent libraries are shared objects.
18944 deplibs_check_method=$lt_deplibs_check_method
18945
18946 # Command to use when deplibs_check_method == file_magic.
18947 file_magic_cmd=$lt_file_magic_cmd
18948
18949 # Flag that allows shared libraries with undefined symbols to be built.
18950 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18951
18952 # Flag that forces no undefined symbols.
18953 no_undefined_flag=$lt_no_undefined_flag_GCJ
18954
18955 # Commands used to finish a libtool library installation in a directory.
18956 finish_cmds=$lt_finish_cmds
18957
18958 # Same as above, but a single script fragment to be evaled but not shown.
18959 finish_eval=$lt_finish_eval
18960
18961 # Take the output of nm and produce a listing of raw symbols and C names.
18962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18963
18964 # Transform the output of nm in a proper C declaration
18965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18966
18967 # Transform the output of nm in a C name address pair
18968 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18969
18970 # This is the shared library runtime path variable.
18971 runpath_var=$runpath_var
18972
18973 # This is the shared library path variable.
18974 shlibpath_var=$shlibpath_var
18975
18976 # Is shlibpath searched before the hard-coded library search path?
18977 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18978
18979 # How to hardcode a shared library path into an executable.
18980 hardcode_action=$hardcode_action_GCJ
18981
18982 # Whether we should hardcode library paths into libraries.
18983 hardcode_into_libs=$hardcode_into_libs
18984
18985 # Flag to hardcode \$libdir into a binary during linking.
18986 # This must work even if \$libdir does not exist.
18987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18988
18989 # If ld is used when linking, flag to hardcode \$libdir into
18990 # a binary during linking. This must work even if \$libdir does
18991 # not exist.
18992 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18993
18994 # Whether we need a single -rpath flag with a separated argument.
18995 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18996
18997 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18998 # resulting binary.
18999 hardcode_direct=$hardcode_direct_GCJ
19000
19001 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19002 # resulting binary.
19003 hardcode_minus_L=$hardcode_minus_L_GCJ
19004
19005 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19006 # the resulting binary.
19007 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19008
19009 # Set to yes if building a shared library automatically hardcodes DIR into the library
19010 # and all subsequent libraries and executables linked against it.
19011 hardcode_automatic=$hardcode_automatic_GCJ
19012
19013 # Variables whose values should be saved in libtool wrapper scripts and
19014 # restored at relink time.
19015 variables_saved_for_relink="$variables_saved_for_relink"
19016
19017 # Whether libtool must link a program against all its dependency libraries.
19018 link_all_deplibs=$link_all_deplibs_GCJ
19019
19020 # Compile-time system search path for libraries
19021 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19022
19023 # Run-time system search path for libraries
19024 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19025
19026 # Fix the shell variable \$srcfile for the compiler.
19027 fix_srcfile_path="$fix_srcfile_path_GCJ"
19028
19029 # Set to yes if exported symbols are required.
19030 always_export_symbols=$always_export_symbols_GCJ
19031
19032 # The commands to list exported symbols.
19033 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19034
19035 # The commands to extract the exported symbol list from a shared archive.
19036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19037
19038 # Symbols that should not be listed in the preloaded symbols.
19039 exclude_expsyms=$lt_exclude_expsyms_GCJ
19040
19041 # Symbols that must always be exported.
19042 include_expsyms=$lt_include_expsyms_GCJ
19043
19044 # ### END LIBTOOL TAG CONFIG: $tagname
19045
19046 __EOF__
19047
19048
19049 else
19050   # If there is no Makefile yet, we rely on a make rule to execute
19051   # `config.status --recheck' to rerun these tests and create the
19052   # libtool script then.
19053   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19054   if test -f "$ltmain_in"; then
19055     test -f Makefile && make "$ltmain"
19056   fi
19057 fi
19058
19059
19060 ac_ext=c
19061 ac_cpp='$CPP $CPPFLAGS'
19062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19065
19066 CC="$lt_save_CC"
19067
19068         else
19069           tagname=""
19070         fi
19071         ;;
19072
19073       RC)
19074
19075
19076
19077 # Source file extension for RC test sources.
19078 ac_ext=rc
19079
19080 # Object file extension for compiled RC test sources.
19081 objext=o
19082 objext_RC=$objext
19083
19084 # Code to be used in simple compile tests
19085 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19086
19087 # Code to be used in simple link tests
19088 lt_simple_link_test_code="$lt_simple_compile_test_code"
19089
19090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19091
19092 # If no C compiler was specified, use CC.
19093 LTCC=${LTCC-"$CC"}
19094
19095 # Allow CC to be a program name with arguments.
19096 compiler=$CC
19097
19098
19099 # save warnings/boilerplate of simple test code
19100 ac_outfile=conftest.$ac_objext
19101 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19102 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19103 _lt_compiler_boilerplate=`cat conftest.err`
19104 $rm conftest*
19105
19106 ac_outfile=conftest.$ac_objext
19107 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19108 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19109 _lt_linker_boilerplate=`cat conftest.err`
19110 $rm conftest*
19111
19112
19113 # Allow CC to be a program name with arguments.
19114 lt_save_CC="$CC"
19115 CC=${RC-"windres"}
19116 compiler=$CC
19117 compiler_RC=$CC
19118 for cc_temp in $compiler""; do
19119   case $cc_temp in
19120     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19121     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19122     \-*) ;;
19123     *) break;;
19124   esac
19125 done
19126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19127
19128 lt_cv_prog_compiler_c_o_RC=yes
19129
19130 # The else clause should only fire when bootstrapping the
19131 # libtool distribution, otherwise you forgot to ship ltmain.sh
19132 # with your package, and you will get complaints that there are
19133 # no rules to generate ltmain.sh.
19134 if test -f "$ltmain"; then
19135   # See if we are running on zsh, and set the options which allow our commands through
19136   # without removal of \ escapes.
19137   if test -n "${ZSH_VERSION+set}" ; then
19138     setopt NO_GLOB_SUBST
19139   fi
19140   # Now quote all the things that may contain metacharacters while being
19141   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19142   # variables and quote the copies for generation of the libtool script.
19143   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19144     SED SHELL STRIP \
19145     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19146     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19147     deplibs_check_method reload_flag reload_cmds need_locks \
19148     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19149     lt_cv_sys_global_symbol_to_c_name_address \
19150     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19151     old_postinstall_cmds old_postuninstall_cmds \
19152     compiler_RC \
19153     CC_RC \
19154     LD_RC \
19155     lt_prog_compiler_wl_RC \
19156     lt_prog_compiler_pic_RC \
19157     lt_prog_compiler_static_RC \
19158     lt_prog_compiler_no_builtin_flag_RC \
19159     export_dynamic_flag_spec_RC \
19160     thread_safe_flag_spec_RC \
19161     whole_archive_flag_spec_RC \
19162     enable_shared_with_static_runtimes_RC \
19163     old_archive_cmds_RC \
19164     old_archive_from_new_cmds_RC \
19165     predep_objects_RC \
19166     postdep_objects_RC \
19167     predeps_RC \
19168     postdeps_RC \
19169     compiler_lib_search_path_RC \
19170     archive_cmds_RC \
19171     archive_expsym_cmds_RC \
19172     postinstall_cmds_RC \
19173     postuninstall_cmds_RC \
19174     old_archive_from_expsyms_cmds_RC \
19175     allow_undefined_flag_RC \
19176     no_undefined_flag_RC \
19177     export_symbols_cmds_RC \
19178     hardcode_libdir_flag_spec_RC \
19179     hardcode_libdir_flag_spec_ld_RC \
19180     hardcode_libdir_separator_RC \
19181     hardcode_automatic_RC \
19182     module_cmds_RC \
19183     module_expsym_cmds_RC \
19184     lt_cv_prog_compiler_c_o_RC \
19185     exclude_expsyms_RC \
19186     include_expsyms_RC; do
19187
19188     case $var in
19189     old_archive_cmds_RC | \
19190     old_archive_from_new_cmds_RC | \
19191     archive_cmds_RC | \
19192     archive_expsym_cmds_RC | \
19193     module_cmds_RC | \
19194     module_expsym_cmds_RC | \
19195     old_archive_from_expsyms_cmds_RC | \
19196     export_symbols_cmds_RC | \
19197     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19198     postinstall_cmds | postuninstall_cmds | \
19199     old_postinstall_cmds | old_postuninstall_cmds | \
19200     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19201       # Double-quote double-evaled strings.
19202       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19203       ;;
19204     *)
19205       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19206       ;;
19207     esac
19208   done
19209
19210   case $lt_echo in
19211   *'\$0 --fallback-echo"')
19212     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19213     ;;
19214   esac
19215
19216 cfgfile="$ofile"
19217
19218   cat <<__EOF__ >> "$cfgfile"
19219 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19220
19221 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19222
19223 # Shell to use when invoking shell scripts.
19224 SHELL=$lt_SHELL
19225
19226 # Whether or not to build shared libraries.
19227 build_libtool_libs=$enable_shared
19228
19229 # Whether or not to build static libraries.
19230 build_old_libs=$enable_static
19231
19232 # Whether or not to add -lc for building shared libraries.
19233 build_libtool_need_lc=$archive_cmds_need_lc_RC
19234
19235 # Whether or not to disallow shared libs when runtime libs are static
19236 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19237
19238 # Whether or not to optimize for fast installation.
19239 fast_install=$enable_fast_install
19240
19241 # The host system.
19242 host_alias=$host_alias
19243 host=$host
19244 host_os=$host_os
19245
19246 # The build system.
19247 build_alias=$build_alias
19248 build=$build
19249 build_os=$build_os
19250
19251 # An echo program that does not interpret backslashes.
19252 echo=$lt_echo
19253
19254 # The archiver.
19255 AR=$lt_AR
19256 AR_FLAGS=$lt_AR_FLAGS
19257
19258 # A C compiler.
19259 LTCC=$lt_LTCC
19260
19261 # A language-specific compiler.
19262 CC=$lt_compiler_RC
19263
19264 # Is the compiler the GNU C compiler?
19265 with_gcc=$GCC_RC
19266
19267 # An ERE matcher.
19268 EGREP=$lt_EGREP
19269
19270 # The linker used to build libraries.
19271 LD=$lt_LD_RC
19272
19273 # Whether we need hard or soft links.
19274 LN_S=$lt_LN_S
19275
19276 # A BSD-compatible nm program.
19277 NM=$lt_NM
19278
19279 # A symbol stripping program
19280 STRIP=$lt_STRIP
19281
19282 # Used to examine libraries when file_magic_cmd begins "file"
19283 MAGIC_CMD=$MAGIC_CMD
19284
19285 # Used on cygwin: DLL creation program.
19286 DLLTOOL="$DLLTOOL"
19287
19288 # Used on cygwin: object dumper.
19289 OBJDUMP="$OBJDUMP"
19290
19291 # Used on cygwin: assembler.
19292 AS="$AS"
19293
19294 # The name of the directory that contains temporary libtool files.
19295 objdir=$objdir
19296
19297 # How to create reloadable object files.
19298 reload_flag=$lt_reload_flag
19299 reload_cmds=$lt_reload_cmds
19300
19301 # How to pass a linker flag through the compiler.
19302 wl=$lt_lt_prog_compiler_wl_RC
19303
19304 # Object file suffix (normally "o").
19305 objext="$ac_objext"
19306
19307 # Old archive suffix (normally "a").
19308 libext="$libext"
19309
19310 # Shared library suffix (normally ".so").
19311 shrext_cmds='$shrext_cmds'
19312
19313 # Executable file suffix (normally "").
19314 exeext="$exeext"
19315
19316 # Additional compiler flags for building library objects.
19317 pic_flag=$lt_lt_prog_compiler_pic_RC
19318 pic_mode=$pic_mode
19319
19320 # What is the maximum length of a command?
19321 max_cmd_len=$lt_cv_sys_max_cmd_len
19322
19323 # Does compiler simultaneously support -c and -o options?
19324 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19325
19326 # Must we lock files when doing compilation?
19327 need_locks=$lt_need_locks
19328
19329 # Do we need the lib prefix for modules?
19330 need_lib_prefix=$need_lib_prefix
19331
19332 # Do we need a version for libraries?
19333 need_version=$need_version
19334
19335 # Whether dlopen is supported.
19336 dlopen_support=$enable_dlopen
19337
19338 # Whether dlopen of programs is supported.
19339 dlopen_self=$enable_dlopen_self
19340
19341 # Whether dlopen of statically linked programs is supported.
19342 dlopen_self_static=$enable_dlopen_self_static
19343
19344 # Compiler flag to prevent dynamic linking.
19345 link_static_flag=$lt_lt_prog_compiler_static_RC
19346
19347 # Compiler flag to turn off builtin functions.
19348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19349
19350 # Compiler flag to allow reflexive dlopens.
19351 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19352
19353 # Compiler flag to generate shared objects directly from archives.
19354 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19355
19356 # Compiler flag to generate thread-safe objects.
19357 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19358
19359 # Library versioning type.
19360 version_type=$version_type
19361
19362 # Format of library name prefix.
19363 libname_spec=$lt_libname_spec
19364
19365 # List of archive names.  First name is the real one, the rest are links.
19366 # The last name is the one that the linker finds with -lNAME.
19367 library_names_spec=$lt_library_names_spec
19368
19369 # The coded name of the library, if different from the real name.
19370 soname_spec=$lt_soname_spec
19371
19372 # Commands used to build and install an old-style archive.
19373 RANLIB=$lt_RANLIB
19374 old_archive_cmds=$lt_old_archive_cmds_RC
19375 old_postinstall_cmds=$lt_old_postinstall_cmds
19376 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19377
19378 # Create an old-style archive from a shared archive.
19379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19380
19381 # Create a temporary old-style archive to link instead of a shared archive.
19382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19383
19384 # Commands used to build and install a shared archive.
19385 archive_cmds=$lt_archive_cmds_RC
19386 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19387 postinstall_cmds=$lt_postinstall_cmds
19388 postuninstall_cmds=$lt_postuninstall_cmds
19389
19390 # Commands used to build a loadable module (assumed same as above if empty)
19391 module_cmds=$lt_module_cmds_RC
19392 module_expsym_cmds=$lt_module_expsym_cmds_RC
19393
19394 # Commands to strip libraries.
19395 old_striplib=$lt_old_striplib
19396 striplib=$lt_striplib
19397
19398 # Dependencies to place before the objects being linked to create a
19399 # shared library.
19400 predep_objects=$lt_predep_objects_RC
19401
19402 # Dependencies to place after the objects being linked to create a
19403 # shared library.
19404 postdep_objects=$lt_postdep_objects_RC
19405
19406 # Dependencies to place before the objects being linked to create a
19407 # shared library.
19408 predeps=$lt_predeps_RC
19409
19410 # Dependencies to place after the objects being linked to create a
19411 # shared library.
19412 postdeps=$lt_postdeps_RC
19413
19414 # The library search path used internally by the compiler when linking
19415 # a shared library.
19416 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19417
19418 # Method to check whether dependent libraries are shared objects.
19419 deplibs_check_method=$lt_deplibs_check_method
19420
19421 # Command to use when deplibs_check_method == file_magic.
19422 file_magic_cmd=$lt_file_magic_cmd
19423
19424 # Flag that allows shared libraries with undefined symbols to be built.
19425 allow_undefined_flag=$lt_allow_undefined_flag_RC
19426
19427 # Flag that forces no undefined symbols.
19428 no_undefined_flag=$lt_no_undefined_flag_RC
19429
19430 # Commands used to finish a libtool library installation in a directory.
19431 finish_cmds=$lt_finish_cmds
19432
19433 # Same as above, but a single script fragment to be evaled but not shown.
19434 finish_eval=$lt_finish_eval
19435
19436 # Take the output of nm and produce a listing of raw symbols and C names.
19437 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19438
19439 # Transform the output of nm in a proper C declaration
19440 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19441
19442 # Transform the output of nm in a C name address pair
19443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19444
19445 # This is the shared library runtime path variable.
19446 runpath_var=$runpath_var
19447
19448 # This is the shared library path variable.
19449 shlibpath_var=$shlibpath_var
19450
19451 # Is shlibpath searched before the hard-coded library search path?
19452 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19453
19454 # How to hardcode a shared library path into an executable.
19455 hardcode_action=$hardcode_action_RC
19456
19457 # Whether we should hardcode library paths into libraries.
19458 hardcode_into_libs=$hardcode_into_libs
19459
19460 # Flag to hardcode \$libdir into a binary during linking.
19461 # This must work even if \$libdir does not exist.
19462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19463
19464 # If ld is used when linking, flag to hardcode \$libdir into
19465 # a binary during linking. This must work even if \$libdir does
19466 # not exist.
19467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19468
19469 # Whether we need a single -rpath flag with a separated argument.
19470 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19471
19472 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19473 # resulting binary.
19474 hardcode_direct=$hardcode_direct_RC
19475
19476 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19477 # resulting binary.
19478 hardcode_minus_L=$hardcode_minus_L_RC
19479
19480 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19481 # the resulting binary.
19482 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19483
19484 # Set to yes if building a shared library automatically hardcodes DIR into the library
19485 # and all subsequent libraries and executables linked against it.
19486 hardcode_automatic=$hardcode_automatic_RC
19487
19488 # Variables whose values should be saved in libtool wrapper scripts and
19489 # restored at relink time.
19490 variables_saved_for_relink="$variables_saved_for_relink"
19491
19492 # Whether libtool must link a program against all its dependency libraries.
19493 link_all_deplibs=$link_all_deplibs_RC
19494
19495 # Compile-time system search path for libraries
19496 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19497
19498 # Run-time system search path for libraries
19499 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19500
19501 # Fix the shell variable \$srcfile for the compiler.
19502 fix_srcfile_path="$fix_srcfile_path_RC"
19503
19504 # Set to yes if exported symbols are required.
19505 always_export_symbols=$always_export_symbols_RC
19506
19507 # The commands to list exported symbols.
19508 export_symbols_cmds=$lt_export_symbols_cmds_RC
19509
19510 # The commands to extract the exported symbol list from a shared archive.
19511 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19512
19513 # Symbols that should not be listed in the preloaded symbols.
19514 exclude_expsyms=$lt_exclude_expsyms_RC
19515
19516 # Symbols that must always be exported.
19517 include_expsyms=$lt_include_expsyms_RC
19518
19519 # ### END LIBTOOL TAG CONFIG: $tagname
19520
19521 __EOF__
19522
19523
19524 else
19525   # If there is no Makefile yet, we rely on a make rule to execute
19526   # `config.status --recheck' to rerun these tests and create the
19527   # libtool script then.
19528   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19529   if test -f "$ltmain_in"; then
19530     test -f Makefile && make "$ltmain"
19531   fi
19532 fi
19533
19534
19535 ac_ext=c
19536 ac_cpp='$CPP $CPPFLAGS'
19537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19540
19541 CC="$lt_save_CC"
19542
19543         ;;
19544
19545       *)
19546         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19547 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19548    { (exit 1); exit 1; }; }
19549         ;;
19550       esac
19551
19552       # Append the new tag name to the list of available tags.
19553       if test -n "$tagname" ; then
19554       available_tags="$available_tags $tagname"
19555     fi
19556     fi
19557   done
19558   IFS="$lt_save_ifs"
19559
19560   # Now substitute the updated list of available tags.
19561   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19562     mv "${ofile}T" "$ofile"
19563     chmod +x "$ofile"
19564   else
19565     rm -f "${ofile}T"
19566     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19567 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19568    { (exit 1); exit 1; }; }
19569   fi
19570 fi
19571
19572
19573
19574 # This can be used to rebuild libtool when needed
19575 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19576
19577 # Always use our own libtool.
19578 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19579
19580 # Prevent multiple expansion
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602 # NTP has (so far) been relying on leading-edge autogen.
19603 # Therefore, by default:
19604 # - use the version we ship with
19605 # - do not install it
19606 # - build a static copy (AC_DISABLE_SHARED - done earlier)
19607 case "${enable_local_libopts+set}" in
19608  set) ;;
19609  *) enable_local_libopts=yes ;;
19610 esac
19611 case "${enable_libopts_install+set}" in
19612  set) ;;
19613  *) enable_libopts_install=no ;;
19614 esac
19615
19616   NEED_LIBOPTS_DIR=''
19617
19618   LIBOPTS_DIR=libopts
19619
19620   # Check whether --enable-local-libopts or --disable-local-libopts was given.
19621 if test "${enable_local_libopts+set}" = set; then
19622   enableval="$enable_local_libopts"
19623
19624     if test x$enableval = xyes ; then
19625        { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
19626 echo "$as_me: Using supplied libopts tearoff" >&6;}
19627        LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
19628        LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
19629        NEED_LIBOPTS_DIR=true
19630     fi
19631 fi;
19632
19633   # Check whether --enable-libopts-install or --disable-libopts-install was given.
19634 if test "${enable_libopts_install+set}" = set; then
19635   enableval="$enable_libopts_install"
19636
19637 fi;
19638
19639
19640 if test "X${enable_libopts_install}" != Xno; then
19641   INSTALL_LIBOPTS_TRUE=
19642   INSTALL_LIBOPTS_FALSE='#'
19643 else
19644   INSTALL_LIBOPTS_TRUE='#'
19645   INSTALL_LIBOPTS_FALSE=
19646 fi
19647
19648
19649   if test -z "${NEED_LIBOPTS_DIR}" ; then
19650      echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
19651 echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6
19652
19653 # Check whether --with-autoopts-config or --without-autoopts-config was given.
19654 if test "${with_autoopts_config+set}" = set; then
19655   withval="$with_autoopts_config"
19656   lo_cv_with_autoopts_config=${with_autoopts_config}
19657 else
19658   echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
19659 echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6
19660 if test "${lo_cv_with_autoopts_config+set}" = set; then
19661   echo $ECHO_N "(cached) $ECHO_C" >&6
19662 else
19663   if autoopts-config --help 2>/dev/null 1>&2
19664         then lo_cv_with_autoopts_config=autoopts-config
19665         elif libopts-config --help 2>/dev/null 1>&2
19666         then lo_cv_with_autoopts_config=libopts-config
19667         else lo_cv_with_autoopts_config=no ; fi
19668 fi
19669 echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
19670 echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6
19671
19672 fi;  # end of AC_ARG_WITH
19673
19674      if test "${lo_cv_test_autoopts+set}" = set; then
19675   echo $ECHO_N "(cached) $ECHO_C" >&6
19676 else
19677
19678         if test -z "${lo_cv_with_autoopts_config}" \
19679                 -o X"${lo_cv_with_autoopts_config}" = Xno
19680         then
19681            if autoopts-config --help 2>/dev/null 1>&2
19682            then lo_cv_with_autoopts_config=autoopts-config
19683            elif libopts-config --help 2>/dev/null 1>&2
19684            then lo_cv_with_autoopts_config=libopts-config
19685            else lo_cv_with_autoopts_config=false ; fi
19686         fi
19687         lo_cv_test_autoopts=`
19688             ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
19689         if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
19690         then lo_cv_test_autoopts=no ; fi
19691
19692 fi
19693  # end of CACHE_VAL
19694      echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
19695 echo "${ECHO_T}${lo_cv_test_autoopts}" >&6
19696
19697      if test "X${lo_cv_test_autoopts}" != Xno
19698      then
19699         LIBOPTS_LDADD="${lo_cv_test_autoopts}"
19700         LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
19701      else
19702         LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
19703         LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
19704         NEED_LIBOPTS_DIR=true
19705      fi
19706   fi # end of if test -z "${NEED_LIBOPTS_DIR}"
19707
19708
19709
19710 if test -n "${NEED_LIBOPTS_DIR}"; then
19711   NEED_LIBOPTS_TRUE=
19712   NEED_LIBOPTS_FALSE='#'
19713 else
19714   NEED_LIBOPTS_TRUE='#'
19715   NEED_LIBOPTS_FALSE=
19716 fi
19717
19718
19719
19720   LIBOPTS_DIR=libopts
19721
19722             ac_config_files="$ac_config_files libopts/Makefile"
19723
19724
19725
19726   if test -n "${NEED_LIBOPTS_DIR}" ; then
19727
19728
19729 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
19730   # =================
19731   # AC_HEADER_STDC
19732   # =================
19733   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19734 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19735 if test "${ac_cv_header_stdc+set}" = set; then
19736   echo $ECHO_N "(cached) $ECHO_C" >&6
19737 else
19738   cat >conftest.$ac_ext <<_ACEOF
19739 /* confdefs.h.  */
19740 _ACEOF
19741 cat confdefs.h >>conftest.$ac_ext
19742 cat >>conftest.$ac_ext <<_ACEOF
19743 /* end confdefs.h.  */
19744 #include <stdlib.h>
19745 #include <stdarg.h>
19746 #include <string.h>
19747 #include <float.h>
19748
19749 int
19750 main ()
19751 {
19752
19753   ;
19754   return 0;
19755 }
19756 _ACEOF
19757 rm -f conftest.$ac_objext
19758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19759   (eval $ac_compile) 2>conftest.er1
19760   ac_status=$?
19761   grep -v '^ *+' conftest.er1 >conftest.err
19762   rm -f conftest.er1
19763   cat conftest.err >&5
19764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765   (exit $ac_status); } &&
19766          { ac_try='test -z "$ac_c_werror_flag"
19767                          || test ! -s conftest.err'
19768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769   (eval $ac_try) 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); }; } &&
19773          { ac_try='test -s conftest.$ac_objext'
19774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775   (eval $ac_try) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; }; then
19779   ac_cv_header_stdc=yes
19780 else
19781   echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19783
19784 ac_cv_header_stdc=no
19785 fi
19786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19787
19788 if test $ac_cv_header_stdc = yes; then
19789   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19790   cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h.  */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h.  */
19796 #include <string.h>
19797
19798 _ACEOF
19799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19800   $EGREP "memchr" >/dev/null 2>&1; then
19801   :
19802 else
19803   ac_cv_header_stdc=no
19804 fi
19805 rm -f conftest*
19806
19807 fi
19808
19809 if test $ac_cv_header_stdc = yes; then
19810   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19811   cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817 #include <stdlib.h>
19818
19819 _ACEOF
19820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19821   $EGREP "free" >/dev/null 2>&1; then
19822   :
19823 else
19824   ac_cv_header_stdc=no
19825 fi
19826 rm -f conftest*
19827
19828 fi
19829
19830 if test $ac_cv_header_stdc = yes; then
19831   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19832   if test "$cross_compiling" = yes; then
19833   :
19834 else
19835   cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 #include <ctype.h>
19842 #if ((' ' & 0x0FF) == 0x020)
19843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19845 #else
19846 # define ISLOWER(c) \
19847                    (('a' <= (c) && (c) <= 'i') \
19848                      || ('j' <= (c) && (c) <= 'r') \
19849                      || ('s' <= (c) && (c) <= 'z'))
19850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19851 #endif
19852
19853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19854 int
19855 main ()
19856 {
19857   int i;
19858   for (i = 0; i < 256; i++)
19859     if (XOR (islower (i), ISLOWER (i))
19860         || toupper (i) != TOUPPER (i))
19861       exit(2);
19862   exit (0);
19863 }
19864 _ACEOF
19865 rm -f conftest$ac_exeext
19866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19867   (eval $ac_link) 2>&5
19868   ac_status=$?
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; }; then
19876   :
19877 else
19878   echo "$as_me: program exited with status $ac_status" >&5
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882 ( exit $ac_status )
19883 ac_cv_header_stdc=no
19884 fi
19885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19886 fi
19887 fi
19888 fi
19889 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19890 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19891 if test $ac_cv_header_stdc = yes; then
19892
19893 cat >>confdefs.h <<\_ACEOF
19894 #define STDC_HEADERS 1
19895 _ACEOF
19896
19897 fi
19898
19899   # =================
19900   # AC_HEADER_DIRENT
19901   # =================
19902
19903
19904
19905
19906
19907 ac_header_dirent=no
19908 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19909   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19910 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19911 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913   echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915   cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h.  */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h.  */
19921 #include <sys/types.h>
19922 #include <$ac_hdr>
19923
19924 int
19925 main ()
19926 {
19927 if ((DIR *) 0)
19928 return 0;
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext
19934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935   (eval $ac_compile) 2>conftest.er1
19936   ac_status=$?
19937   grep -v '^ *+' conftest.er1 >conftest.err
19938   rm -f conftest.er1
19939   cat conftest.err >&5
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } &&
19942          { ac_try='test -z "$ac_c_werror_flag"
19943                          || test ! -s conftest.err'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; } &&
19949          { ac_try='test -s conftest.$ac_objext'
19950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951   (eval $ac_try) 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; }; then
19955   eval "$as_ac_Header=yes"
19956 else
19957   echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960 eval "$as_ac_Header=no"
19961 fi
19962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19963 fi
19964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967   cat >>confdefs.h <<_ACEOF
19968 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19969 _ACEOF
19970
19971 ac_header_dirent=$ac_hdr; break
19972 fi
19973
19974 done
19975 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19976 if test $ac_header_dirent = dirent.h; then
19977   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19978 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19979 if test "${ac_cv_search_opendir+set}" = set; then
19980   echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982   ac_func_search_save_LIBS=$LIBS
19983 ac_cv_search_opendir=no
19984 cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h.  */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h.  */
19990
19991 /* Override any gcc2 internal prototype to avoid an error.  */
19992 #ifdef __cplusplus
19993 extern "C"
19994 #endif
19995 /* We use char because int might match the return type of a gcc2
19996    builtin and then its argument prototype would still apply.  */
19997 char opendir ();
19998 int
19999 main ()
20000 {
20001 opendir ();
20002   ;
20003   return 0;
20004 }
20005 _ACEOF
20006 rm -f conftest.$ac_objext conftest$ac_exeext
20007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20008   (eval $ac_link) 2>conftest.er1
20009   ac_status=$?
20010   grep -v '^ *+' conftest.er1 >conftest.err
20011   rm -f conftest.er1
20012   cat conftest.err >&5
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); } &&
20015          { ac_try='test -z "$ac_c_werror_flag"
20016                          || test ! -s conftest.err'
20017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018   (eval $ac_try) 2>&5
20019   ac_status=$?
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); }; } &&
20022          { ac_try='test -s conftest$ac_exeext'
20023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024   (eval $ac_try) 2>&5
20025   ac_status=$?
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); }; }; then
20028   ac_cv_search_opendir="none required"
20029 else
20030   echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 fi
20034 rm -f conftest.err conftest.$ac_objext \
20035       conftest$ac_exeext conftest.$ac_ext
20036 if test "$ac_cv_search_opendir" = no; then
20037   for ac_lib in dir; do
20038     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20039     cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045
20046 /* Override any gcc2 internal prototype to avoid an error.  */
20047 #ifdef __cplusplus
20048 extern "C"
20049 #endif
20050 /* We use char because int might match the return type of a gcc2
20051    builtin and then its argument prototype would still apply.  */
20052 char opendir ();
20053 int
20054 main ()
20055 {
20056 opendir ();
20057   ;
20058   return 0;
20059 }
20060 _ACEOF
20061 rm -f conftest.$ac_objext conftest$ac_exeext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20063   (eval $ac_link) 2>conftest.er1
20064   ac_status=$?
20065   grep -v '^ *+' conftest.er1 >conftest.err
20066   rm -f conftest.er1
20067   cat conftest.err >&5
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } &&
20070          { ac_try='test -z "$ac_c_werror_flag"
20071                          || test ! -s conftest.err'
20072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073   (eval $ac_try) 2>&5
20074   ac_status=$?
20075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); }; } &&
20077          { ac_try='test -s conftest$ac_exeext'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; }; then
20083   ac_cv_search_opendir="-l$ac_lib"
20084 break
20085 else
20086   echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 fi
20090 rm -f conftest.err conftest.$ac_objext \
20091       conftest$ac_exeext conftest.$ac_ext
20092   done
20093 fi
20094 LIBS=$ac_func_search_save_LIBS
20095 fi
20096 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20097 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20098 if test "$ac_cv_search_opendir" != no; then
20099   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20100
20101 fi
20102
20103 else
20104   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20105 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20106 if test "${ac_cv_search_opendir+set}" = set; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109   ac_func_search_save_LIBS=$LIBS
20110 ac_cv_search_opendir=no
20111 cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117
20118 /* Override any gcc2 internal prototype to avoid an error.  */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 /* We use char because int might match the return type of a gcc2
20123    builtin and then its argument prototype would still apply.  */
20124 char opendir ();
20125 int
20126 main ()
20127 {
20128 opendir ();
20129   ;
20130   return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135   (eval $ac_link) 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -z "$ac_c_werror_flag"
20143                          || test ! -s conftest.err'
20144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145   (eval $ac_try) 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); }; } &&
20149          { ac_try='test -s conftest$ac_exeext'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; }; then
20155   ac_cv_search_opendir="none required"
20156 else
20157   echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160 fi
20161 rm -f conftest.err conftest.$ac_objext \
20162       conftest$ac_exeext conftest.$ac_ext
20163 if test "$ac_cv_search_opendir" = no; then
20164   for ac_lib in x; do
20165     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20166     cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172
20173 /* Override any gcc2 internal prototype to avoid an error.  */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 /* We use char because int might match the return type of a gcc2
20178    builtin and then its argument prototype would still apply.  */
20179 char opendir ();
20180 int
20181 main ()
20182 {
20183 opendir ();
20184   ;
20185   return 0;
20186 }
20187 _ACEOF
20188 rm -f conftest.$ac_objext conftest$ac_exeext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20190   (eval $ac_link) 2>conftest.er1
20191   ac_status=$?
20192   grep -v '^ *+' conftest.er1 >conftest.err
20193   rm -f conftest.er1
20194   cat conftest.err >&5
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } &&
20197          { ac_try='test -z "$ac_c_werror_flag"
20198                          || test ! -s conftest.err'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; } &&
20204          { ac_try='test -s conftest$ac_exeext'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   ac_cv_search_opendir="-l$ac_lib"
20211 break
20212 else
20213   echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20215
20216 fi
20217 rm -f conftest.err conftest.$ac_objext \
20218       conftest$ac_exeext conftest.$ac_ext
20219   done
20220 fi
20221 LIBS=$ac_func_search_save_LIBS
20222 fi
20223 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20224 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20225 if test "$ac_cv_search_opendir" != no; then
20226   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20227
20228 fi
20229
20230 fi
20231
20232
20233   # =================
20234   # AC_CHECK_HEADERS
20235   # =================
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
20257     setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
20258     sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
20259     utime.h sysexits.h
20260 do
20261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20263   echo "$as_me:$LINENO: checking for $ac_header" >&5
20264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 fi
20268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20270 else
20271   # Is the header compilable?
20272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280 $ac_includes_default
20281 #include <$ac_header>
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20285   (eval $ac_compile) 2>conftest.er1
20286   ac_status=$?
20287   grep -v '^ *+' conftest.er1 >conftest.err
20288   rm -f conftest.er1
20289   cat conftest.err >&5
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } &&
20292          { ac_try='test -z "$ac_c_werror_flag"
20293                          || test ! -s conftest.err'
20294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295   (eval $ac_try) 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; } &&
20299          { ac_try='test -s conftest.$ac_objext'
20300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301   (eval $ac_try) 2>&5
20302   ac_status=$?
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); }; }; then
20305   ac_header_compiler=yes
20306 else
20307   echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20309
20310 ac_header_compiler=no
20311 fi
20312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20314 echo "${ECHO_T}$ac_header_compiler" >&6
20315
20316 # Is the header present?
20317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h.  */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h.  */
20325 #include <$ac_header>
20326 _ACEOF
20327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } >/dev/null; then
20335   if test -s conftest.err; then
20336     ac_cpp_err=$ac_c_preproc_warn_flag
20337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20338   else
20339     ac_cpp_err=
20340   fi
20341 else
20342   ac_cpp_err=yes
20343 fi
20344 if test -z "$ac_cpp_err"; then
20345   ac_header_preproc=yes
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350   ac_header_preproc=no
20351 fi
20352 rm -f conftest.err conftest.$ac_ext
20353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20354 echo "${ECHO_T}$ac_header_preproc" >&6
20355
20356 # So?  What about this header?
20357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20358   yes:no: )
20359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20363     ac_header_preproc=yes
20364     ;;
20365   no:yes:* )
20366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20378     (
20379       cat <<\_ASBOX
20380 ## ------------------------------------------ ##
20381 ## Report this to the AC_PACKAGE_NAME lists.  ##
20382 ## ------------------------------------------ ##
20383 _ASBOX
20384     ) |
20385       sed "s/^/$as_me: WARNING:     /" >&2
20386     ;;
20387 esac
20388 echo "$as_me:$LINENO: checking for $ac_header" >&5
20389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393   eval "$as_ac_Header=\$ac_header_preproc"
20394 fi
20395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20397
20398 fi
20399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20400   cat >>confdefs.h <<_ACEOF
20401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20402 _ACEOF
20403
20404 fi
20405
20406 done
20407
20408
20409   # --------------------------------------------
20410   # Verify certain entries from AC_CHECK_HEADERS
20411   # --------------------------------------------
20412   for f in sys_types sys_mman sys_param sys_stat sys_wait \
20413            string errno stdlib memory setjmp
20414   do eval as_ac_var=\${ac_cv_header_${f}_h+set}
20415      test "${as_ac_var}" = set || \
20416        { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
20417 echo "$as_me: error: You must have ${f}.h on your system" >&2;}
20418    { (exit 1); exit 1; }; }
20419   done
20420
20421   # ================================================
20422   # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
20423   # if varargs.h is present define HAVE_VARARGS_H.
20424   # ================================================
20425
20426
20427 for ac_header in stdarg.h varargs.h
20428 do
20429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20431   echo "$as_me:$LINENO: checking for $ac_header" >&5
20432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20434   echo $ECHO_N "(cached) $ECHO_C" >&6
20435 fi
20436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20438 else
20439   # Is the header compilable?
20440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h.  */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h.  */
20448 $ac_includes_default
20449 #include <$ac_header>
20450 _ACEOF
20451 rm -f conftest.$ac_objext
20452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20453   (eval $ac_compile) 2>conftest.er1
20454   ac_status=$?
20455   grep -v '^ *+' conftest.er1 >conftest.err
20456   rm -f conftest.er1
20457   cat conftest.err >&5
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); } &&
20460          { ac_try='test -z "$ac_c_werror_flag"
20461                          || test ! -s conftest.err'
20462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463   (eval $ac_try) 2>&5
20464   ac_status=$?
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); }; } &&
20467          { ac_try='test -s conftest.$ac_objext'
20468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469   (eval $ac_try) 2>&5
20470   ac_status=$?
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); }; }; then
20473   ac_header_compiler=yes
20474 else
20475   echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 ac_header_compiler=no
20479 fi
20480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20482 echo "${ECHO_T}$ac_header_compiler" >&6
20483
20484 # Is the header present?
20485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20487 cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h.  */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h.  */
20493 #include <$ac_header>
20494 _ACEOF
20495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } >/dev/null; then
20503   if test -s conftest.err; then
20504     ac_cpp_err=$ac_c_preproc_warn_flag
20505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20506   else
20507     ac_cpp_err=
20508   fi
20509 else
20510   ac_cpp_err=yes
20511 fi
20512 if test -z "$ac_cpp_err"; then
20513   ac_header_preproc=yes
20514 else
20515   echo "$as_me: failed program was:" >&5
20516 sed 's/^/| /' conftest.$ac_ext >&5
20517
20518   ac_header_preproc=no
20519 fi
20520 rm -f conftest.err conftest.$ac_ext
20521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522 echo "${ECHO_T}$ac_header_preproc" >&6
20523
20524 # So?  What about this header?
20525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20526   yes:no: )
20527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20531     ac_header_preproc=yes
20532     ;;
20533   no:yes:* )
20534     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20536     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20537 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20538     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20540     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20541 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20544     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20546     (
20547       cat <<\_ASBOX
20548 ## ------------------------------------------ ##
20549 ## Report this to the AC_PACKAGE_NAME lists.  ##
20550 ## ------------------------------------------ ##
20551 _ASBOX
20552     ) |
20553       sed "s/^/$as_me: WARNING:     /" >&2
20554     ;;
20555 esac
20556 echo "$as_me:$LINENO: checking for $ac_header" >&5
20557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20559   echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20561   eval "$as_ac_Header=\$ac_header_preproc"
20562 fi
20563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20565
20566 fi
20567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20568   cat >>confdefs.h <<_ACEOF
20569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20570 _ACEOF
20571  break
20572 fi
20573
20574 done
20575
20576   if test `eval echo '${'$as_ac_Header'}'` != yes; then
20577     { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
20578 echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
20579    { (exit 1); exit 1; }; }
20580   fi
20581
20582   # ================================================
20583   # Similarly for the string.h and strings.h headers
20584   # ================================================
20585
20586
20587 for ac_header in string.h strings.h
20588 do
20589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20591   echo "$as_me:$LINENO: checking for $ac_header" >&5
20592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20594   echo $ECHO_N "(cached) $ECHO_C" >&6
20595 fi
20596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20598 else
20599   # Is the header compilable?
20600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h.  */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h.  */
20608 $ac_includes_default
20609 #include <$ac_header>
20610 _ACEOF
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613   (eval $ac_compile) 2>conftest.er1
20614   ac_status=$?
20615   grep -v '^ *+' conftest.er1 >conftest.err
20616   rm -f conftest.er1
20617   cat conftest.err >&5
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); } &&
20620          { ac_try='test -z "$ac_c_werror_flag"
20621                          || test ! -s conftest.err'
20622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623   (eval $ac_try) 2>&5
20624   ac_status=$?
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); }; } &&
20627          { ac_try='test -s conftest.$ac_objext'
20628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629   (eval $ac_try) 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; }; then
20633   ac_header_compiler=yes
20634 else
20635   echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20637
20638 ac_header_compiler=no
20639 fi
20640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20642 echo "${ECHO_T}$ac_header_compiler" >&6
20643
20644 # Is the header present?
20645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h.  */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h.  */
20653 #include <$ac_header>
20654 _ACEOF
20655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20657   ac_status=$?
20658   grep -v '^ *+' conftest.er1 >conftest.err
20659   rm -f conftest.er1
20660   cat conftest.err >&5
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } >/dev/null; then
20663   if test -s conftest.err; then
20664     ac_cpp_err=$ac_c_preproc_warn_flag
20665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20666   else
20667     ac_cpp_err=
20668   fi
20669 else
20670   ac_cpp_err=yes
20671 fi
20672 if test -z "$ac_cpp_err"; then
20673   ac_header_preproc=yes
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678   ac_header_preproc=no
20679 fi
20680 rm -f conftest.err conftest.$ac_ext
20681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20682 echo "${ECHO_T}$ac_header_preproc" >&6
20683
20684 # So?  What about this header?
20685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20686   yes:no: )
20687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20691     ac_header_preproc=yes
20692     ;;
20693   no:yes:* )
20694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20706     (
20707       cat <<\_ASBOX
20708 ## ------------------------------------------ ##
20709 ## Report this to the AC_PACKAGE_NAME lists.  ##
20710 ## ------------------------------------------ ##
20711 _ASBOX
20712     ) |
20713       sed "s/^/$as_me: WARNING:     /" >&2
20714     ;;
20715 esac
20716 echo "$as_me:$LINENO: checking for $ac_header" >&5
20717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20719   echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721   eval "$as_ac_Header=\$ac_header_preproc"
20722 fi
20723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20725
20726 fi
20727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20728   cat >>confdefs.h <<_ACEOF
20729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20730 _ACEOF
20731  break
20732 fi
20733
20734 done
20735
20736   if test `eval echo '${'$as_ac_Header'}'` != yes; then
20737     { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
20738 echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
20739    { (exit 1); exit 1; }; }
20740   fi
20741
20742   # =====================
20743   # ...and limits headers
20744   # =====================
20745
20746
20747
20748 for ac_header in limits.h sys/limits.h values.h
20749 do
20750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20752   echo "$as_me:$LINENO: checking for $ac_header" >&5
20753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20755   echo $ECHO_N "(cached) $ECHO_C" >&6
20756 fi
20757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20759 else
20760   # Is the header compilable?
20761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769 $ac_includes_default
20770 #include <$ac_header>
20771 _ACEOF
20772 rm -f conftest.$ac_objext
20773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20774   (eval $ac_compile) 2>conftest.er1
20775   ac_status=$?
20776   grep -v '^ *+' conftest.er1 >conftest.err
20777   rm -f conftest.er1
20778   cat conftest.err >&5
20779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); } &&
20781          { ac_try='test -z "$ac_c_werror_flag"
20782                          || test ! -s conftest.err'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; } &&
20788          { ac_try='test -s conftest.$ac_objext'
20789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790   (eval $ac_try) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; }; then
20794   ac_header_compiler=yes
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 ac_header_compiler=no
20800 fi
20801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20803 echo "${ECHO_T}$ac_header_compiler" >&6
20804
20805 # Is the header present?
20806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20808 cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814 #include <$ac_header>
20815 _ACEOF
20816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } >/dev/null; then
20824   if test -s conftest.err; then
20825     ac_cpp_err=$ac_c_preproc_warn_flag
20826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20827   else
20828     ac_cpp_err=
20829   fi
20830 else
20831   ac_cpp_err=yes
20832 fi
20833 if test -z "$ac_cpp_err"; then
20834   ac_header_preproc=yes
20835 else
20836   echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839   ac_header_preproc=no
20840 fi
20841 rm -f conftest.err conftest.$ac_ext
20842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20843 echo "${ECHO_T}$ac_header_preproc" >&6
20844
20845 # So?  What about this header?
20846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20847   yes:no: )
20848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20852     ac_header_preproc=yes
20853     ;;
20854   no:yes:* )
20855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20867     (
20868       cat <<\_ASBOX
20869 ## ------------------------------------------ ##
20870 ## Report this to the AC_PACKAGE_NAME lists.  ##
20871 ## ------------------------------------------ ##
20872 _ASBOX
20873     ) |
20874       sed "s/^/$as_me: WARNING:     /" >&2
20875     ;;
20876 esac
20877 echo "$as_me:$LINENO: checking for $ac_header" >&5
20878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20880   echo $ECHO_N "(cached) $ECHO_C" >&6
20881 else
20882   eval "$as_ac_Header=\$ac_header_preproc"
20883 fi
20884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20886
20887 fi
20888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20889   cat >>confdefs.h <<_ACEOF
20890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20891 _ACEOF
20892  break
20893 fi
20894
20895 done
20896
20897   if test `eval echo '${'$as_ac_Header'}'` != yes; then
20898     { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
20899 echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
20900    { (exit 1); exit 1; }; }
20901   fi
20902
20903   # ========================
20904   # ...and int types headers
20905   # ========================
20906
20907
20908 for ac_header in stdint.h inttypes.h
20909 do
20910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20912   echo "$as_me:$LINENO: checking for $ac_header" >&5
20913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20915   echo $ECHO_N "(cached) $ECHO_C" >&6
20916 fi
20917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20919 else
20920   # Is the header compilable?
20921 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20923 cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 $ac_includes_default
20930 #include <$ac_header>
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934   (eval $ac_compile) 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } &&
20941          { ac_try='test -z "$ac_c_werror_flag"
20942                          || test ! -s conftest.err'
20943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944   (eval $ac_try) 2>&5
20945   ac_status=$?
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); }; } &&
20948          { ac_try='test -s conftest.$ac_objext'
20949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950   (eval $ac_try) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); }; }; then
20954   ac_header_compiler=yes
20955 else
20956   echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959 ac_header_compiler=no
20960 fi
20961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20963 echo "${ECHO_T}$ac_header_compiler" >&6
20964
20965 # Is the header present?
20966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <$ac_header>
20975 _ACEOF
20976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } >/dev/null; then
20984   if test -s conftest.err; then
20985     ac_cpp_err=$ac_c_preproc_warn_flag
20986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20987   else
20988     ac_cpp_err=
20989   fi
20990 else
20991   ac_cpp_err=yes
20992 fi
20993 if test -z "$ac_cpp_err"; then
20994   ac_header_preproc=yes
20995 else
20996   echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999   ac_header_preproc=no
21000 fi
21001 rm -f conftest.err conftest.$ac_ext
21002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21003 echo "${ECHO_T}$ac_header_preproc" >&6
21004
21005 # So?  What about this header?
21006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21007   yes:no: )
21008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21012     ac_header_preproc=yes
21013     ;;
21014   no:yes:* )
21015     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21017     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21018 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21019     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21021     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21022 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21025     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21027     (
21028       cat <<\_ASBOX
21029 ## ------------------------------------------ ##
21030 ## Report this to the AC_PACKAGE_NAME lists.  ##
21031 ## ------------------------------------------ ##
21032 _ASBOX
21033     ) |
21034       sed "s/^/$as_me: WARNING:     /" >&2
21035     ;;
21036 esac
21037 echo "$as_me:$LINENO: checking for $ac_header" >&5
21038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21040   echo $ECHO_N "(cached) $ECHO_C" >&6
21041 else
21042   eval "$as_ac_Header=\$ac_header_preproc"
21043 fi
21044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21046
21047 fi
21048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21049   cat >>confdefs.h <<_ACEOF
21050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21051 _ACEOF
21052  break
21053 fi
21054
21055 done
21056
21057   echo "$as_me:$LINENO: checking for int8_t" >&5
21058 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
21059 if test "${ac_cv_type_int8_t+set}" = set; then
21060   echo $ECHO_N "(cached) $ECHO_C" >&6
21061 else
21062   cat >conftest.$ac_ext <<_ACEOF
21063 /* confdefs.h.  */
21064 _ACEOF
21065 cat confdefs.h >>conftest.$ac_ext
21066 cat >>conftest.$ac_ext <<_ACEOF
21067 /* end confdefs.h.  */
21068 $ac_includes_default
21069 int
21070 main ()
21071 {
21072 if ((int8_t *) 0)
21073   return 0;
21074 if (sizeof (int8_t))
21075   return 0;
21076   ;
21077   return 0;
21078 }
21079 _ACEOF
21080 rm -f conftest.$ac_objext
21081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21082   (eval $ac_compile) 2>conftest.er1
21083   ac_status=$?
21084   grep -v '^ *+' conftest.er1 >conftest.err
21085   rm -f conftest.er1
21086   cat conftest.err >&5
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); } &&
21089          { ac_try='test -z "$ac_c_werror_flag"
21090                          || test ! -s conftest.err'
21091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092   (eval $ac_try) 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); }; } &&
21096          { ac_try='test -s conftest.$ac_objext'
21097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098   (eval $ac_try) 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); }; }; then
21102   ac_cv_type_int8_t=yes
21103 else
21104   echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21106
21107 ac_cv_type_int8_t=no
21108 fi
21109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21110 fi
21111 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
21112 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
21113 if test $ac_cv_type_int8_t = yes; then
21114
21115 cat >>confdefs.h <<_ACEOF
21116 #define HAVE_INT8_T 1
21117 _ACEOF
21118
21119
21120 fi
21121 echo "$as_me:$LINENO: checking for uint8_t" >&5
21122 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21123 if test "${ac_cv_type_uint8_t+set}" = set; then
21124   echo $ECHO_N "(cached) $ECHO_C" >&6
21125 else
21126   cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h.  */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h.  */
21132 $ac_includes_default
21133 int
21134 main ()
21135 {
21136 if ((uint8_t *) 0)
21137   return 0;
21138 if (sizeof (uint8_t))
21139   return 0;
21140   ;
21141   return 0;
21142 }
21143 _ACEOF
21144 rm -f conftest.$ac_objext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21146   (eval $ac_compile) 2>conftest.er1
21147   ac_status=$?
21148   grep -v '^ *+' conftest.er1 >conftest.err
21149   rm -f conftest.er1
21150   cat conftest.err >&5
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } &&
21153          { ac_try='test -z "$ac_c_werror_flag"
21154                          || test ! -s conftest.err'
21155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156   (eval $ac_try) 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; } &&
21160          { ac_try='test -s conftest.$ac_objext'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; }; then
21166   ac_cv_type_uint8_t=yes
21167 else
21168   echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 ac_cv_type_uint8_t=no
21172 fi
21173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21174 fi
21175 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21176 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21177 if test $ac_cv_type_uint8_t = yes; then
21178
21179 cat >>confdefs.h <<_ACEOF
21180 #define HAVE_UINT8_T 1
21181 _ACEOF
21182
21183
21184 fi
21185 echo "$as_me:$LINENO: checking for int16_t" >&5
21186 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
21187 if test "${ac_cv_type_int16_t+set}" = set; then
21188   echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190   cat >conftest.$ac_ext <<_ACEOF
21191 /* confdefs.h.  */
21192 _ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h.  */
21196 $ac_includes_default
21197 int
21198 main ()
21199 {
21200 if ((int16_t *) 0)
21201   return 0;
21202 if (sizeof (int16_t))
21203   return 0;
21204   ;
21205   return 0;
21206 }
21207 _ACEOF
21208 rm -f conftest.$ac_objext
21209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21210   (eval $ac_compile) 2>conftest.er1
21211   ac_status=$?
21212   grep -v '^ *+' conftest.er1 >conftest.err
21213   rm -f conftest.er1
21214   cat conftest.err >&5
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); } &&
21217          { ac_try='test -z "$ac_c_werror_flag"
21218                          || test ! -s conftest.err'
21219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220   (eval $ac_try) 2>&5
21221   ac_status=$?
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); }; } &&
21224          { ac_try='test -s conftest.$ac_objext'
21225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226   (eval $ac_try) 2>&5
21227   ac_status=$?
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); }; }; then
21230   ac_cv_type_int16_t=yes
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 ac_cv_type_int16_t=no
21236 fi
21237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21238 fi
21239 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
21240 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
21241 if test $ac_cv_type_int16_t = yes; then
21242
21243 cat >>confdefs.h <<_ACEOF
21244 #define HAVE_INT16_T 1
21245 _ACEOF
21246
21247
21248 fi
21249 echo "$as_me:$LINENO: checking for uint16_t" >&5
21250 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21251 if test "${ac_cv_type_uint16_t+set}" = set; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254   cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h.  */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h.  */
21260 $ac_includes_default
21261 int
21262 main ()
21263 {
21264 if ((uint16_t *) 0)
21265   return 0;
21266 if (sizeof (uint16_t))
21267   return 0;
21268   ;
21269   return 0;
21270 }
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274   (eval $ac_compile) 2>conftest.er1
21275   ac_status=$?
21276   grep -v '^ *+' conftest.er1 >conftest.err
21277   rm -f conftest.er1
21278   cat conftest.err >&5
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); } &&
21281          { ac_try='test -z "$ac_c_werror_flag"
21282                          || test ! -s conftest.err'
21283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284   (eval $ac_try) 2>&5
21285   ac_status=$?
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); }; } &&
21288          { ac_try='test -s conftest.$ac_objext'
21289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290   (eval $ac_try) 2>&5
21291   ac_status=$?
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); }; }; then
21294   ac_cv_type_uint16_t=yes
21295 else
21296   echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 ac_cv_type_uint16_t=no
21300 fi
21301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21302 fi
21303 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21304 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21305 if test $ac_cv_type_uint16_t = yes; then
21306
21307 cat >>confdefs.h <<_ACEOF
21308 #define HAVE_UINT16_T 1
21309 _ACEOF
21310
21311
21312 fi
21313 echo "$as_me:$LINENO: checking for int32_t" >&5
21314 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
21315 if test "${ac_cv_type_int32_t+set}" = set; then
21316   echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318   cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h.  */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h.  */
21324 $ac_includes_default
21325 int
21326 main ()
21327 {
21328 if ((int32_t *) 0)
21329   return 0;
21330 if (sizeof (int32_t))
21331   return 0;
21332   ;
21333   return 0;
21334 }
21335 _ACEOF
21336 rm -f conftest.$ac_objext
21337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21338   (eval $ac_compile) 2>conftest.er1
21339   ac_status=$?
21340   grep -v '^ *+' conftest.er1 >conftest.err
21341   rm -f conftest.er1
21342   cat conftest.err >&5
21343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); } &&
21345          { ac_try='test -z "$ac_c_werror_flag"
21346                          || test ! -s conftest.err'
21347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348   (eval $ac_try) 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; } &&
21352          { ac_try='test -s conftest.$ac_objext'
21353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354   (eval $ac_try) 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); }; }; then
21358   ac_cv_type_int32_t=yes
21359 else
21360   echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21362
21363 ac_cv_type_int32_t=no
21364 fi
21365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21366 fi
21367 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
21368 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
21369 if test $ac_cv_type_int32_t = yes; then
21370
21371 cat >>confdefs.h <<_ACEOF
21372 #define HAVE_INT32_T 1
21373 _ACEOF
21374
21375
21376 fi
21377 echo "$as_me:$LINENO: checking for uint32_t" >&5
21378 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21379 if test "${ac_cv_type_uint32_t+set}" = set; then
21380   echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382   cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388 $ac_includes_default
21389 int
21390 main ()
21391 {
21392 if ((uint32_t *) 0)
21393   return 0;
21394 if (sizeof (uint32_t))
21395   return 0;
21396   ;
21397   return 0;
21398 }
21399 _ACEOF
21400 rm -f conftest.$ac_objext
21401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21402   (eval $ac_compile) 2>conftest.er1
21403   ac_status=$?
21404   grep -v '^ *+' conftest.er1 >conftest.err
21405   rm -f conftest.er1
21406   cat conftest.err >&5
21407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408   (exit $ac_status); } &&
21409          { ac_try='test -z "$ac_c_werror_flag"
21410                          || test ! -s conftest.err'
21411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412   (eval $ac_try) 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; } &&
21416          { ac_try='test -s conftest.$ac_objext'
21417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418   (eval $ac_try) 2>&5
21419   ac_status=$?
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); }; }; then
21422   ac_cv_type_uint32_t=yes
21423 else
21424   echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21426
21427 ac_cv_type_uint32_t=no
21428 fi
21429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21430 fi
21431 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21432 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21433 if test $ac_cv_type_uint32_t = yes; then
21434
21435 cat >>confdefs.h <<_ACEOF
21436 #define HAVE_UINT32_T 1
21437 _ACEOF
21438
21439
21440 fi
21441 echo "$as_me:$LINENO: checking for intptr_t" >&5
21442 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
21443 if test "${ac_cv_type_intptr_t+set}" = set; then
21444   echo $ECHO_N "(cached) $ECHO_C" >&6
21445 else
21446   cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452 $ac_includes_default
21453 int
21454 main ()
21455 {
21456 if ((intptr_t *) 0)
21457   return 0;
21458 if (sizeof (intptr_t))
21459   return 0;
21460   ;
21461   return 0;
21462 }
21463 _ACEOF
21464 rm -f conftest.$ac_objext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466   (eval $ac_compile) 2>conftest.er1
21467   ac_status=$?
21468   grep -v '^ *+' conftest.er1 >conftest.err
21469   rm -f conftest.er1
21470   cat conftest.err >&5
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); } &&
21473          { ac_try='test -z "$ac_c_werror_flag"
21474                          || test ! -s conftest.err'
21475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476   (eval $ac_try) 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); }; } &&
21480          { ac_try='test -s conftest.$ac_objext'
21481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482   (eval $ac_try) 2>&5
21483   ac_status=$?
21484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); }; }; then
21486   ac_cv_type_intptr_t=yes
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491 ac_cv_type_intptr_t=no
21492 fi
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21494 fi
21495 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
21496 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
21497 if test $ac_cv_type_intptr_t = yes; then
21498
21499 cat >>confdefs.h <<_ACEOF
21500 #define HAVE_INTPTR_T 1
21501 _ACEOF
21502
21503
21504 fi
21505 echo "$as_me:$LINENO: checking for uint_t" >&5
21506 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
21507 if test "${ac_cv_type_uint_t+set}" = set; then
21508   echo $ECHO_N "(cached) $ECHO_C" >&6
21509 else
21510   cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h.  */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h.  */
21516 $ac_includes_default
21517 int
21518 main ()
21519 {
21520 if ((uint_t *) 0)
21521   return 0;
21522 if (sizeof (uint_t))
21523   return 0;
21524   ;
21525   return 0;
21526 }
21527 _ACEOF
21528 rm -f conftest.$ac_objext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21530   (eval $ac_compile) 2>conftest.er1
21531   ac_status=$?
21532   grep -v '^ *+' conftest.er1 >conftest.err
21533   rm -f conftest.er1
21534   cat conftest.err >&5
21535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); } &&
21537          { ac_try='test -z "$ac_c_werror_flag"
21538                          || test ! -s conftest.err'
21539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540   (eval $ac_try) 2>&5
21541   ac_status=$?
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); }; } &&
21544          { ac_try='test -s conftest.$ac_objext'
21545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546   (eval $ac_try) 2>&5
21547   ac_status=$?
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); }; }; then
21550   ac_cv_type_uint_t=yes
21551 else
21552   echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555 ac_cv_type_uint_t=no
21556 fi
21557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21558 fi
21559 echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
21560 echo "${ECHO_T}$ac_cv_type_uint_t" >&6
21561 if test $ac_cv_type_uint_t = yes; then
21562
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_UINT_T 1
21565 _ACEOF
21566
21567
21568 fi
21569
21570
21571   # ====================
21572   # uintptr type & sizes
21573   # ====================
21574   echo "$as_me:$LINENO: checking for uintptr_t" >&5
21575 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
21576 if test "${ac_cv_type_uintptr_t+set}" = set; then
21577   echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579   cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585 $ac_includes_default
21586 int
21587 main ()
21588 {
21589 if ((uintptr_t *) 0)
21590   return 0;
21591 if (sizeof (uintptr_t))
21592   return 0;
21593   ;
21594   return 0;
21595 }
21596 _ACEOF
21597 rm -f conftest.$ac_objext
21598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21599   (eval $ac_compile) 2>conftest.er1
21600   ac_status=$?
21601   grep -v '^ *+' conftest.er1 >conftest.err
21602   rm -f conftest.er1
21603   cat conftest.err >&5
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); } &&
21606          { ac_try='test -z "$ac_c_werror_flag"
21607                          || test ! -s conftest.err'
21608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609   (eval $ac_try) 2>&5
21610   ac_status=$?
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); }; } &&
21613          { ac_try='test -s conftest.$ac_objext'
21614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615   (eval $ac_try) 2>&5
21616   ac_status=$?
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); }; }; then
21619   ac_cv_type_uintptr_t=yes
21620 else
21621   echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21623
21624 ac_cv_type_uintptr_t=no
21625 fi
21626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21627 fi
21628 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
21629 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
21630 if test $ac_cv_type_uintptr_t = yes; then
21631
21632 cat >>confdefs.h <<_ACEOF
21633 #define HAVE_UINTPTR_T 1
21634 _ACEOF
21635
21636
21637 else
21638
21639 cat >>confdefs.h <<\_ACEOF
21640 #define uintptr_t unsigned long
21641 _ACEOF
21642
21643 fi
21644
21645   echo "$as_me:$LINENO: checking for char*" >&5
21646 echo $ECHO_N "checking for char*... $ECHO_C" >&6
21647 if test "${ac_cv_type_charp+set}" = set; then
21648   echo $ECHO_N "(cached) $ECHO_C" >&6
21649 else
21650   cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h.  */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h.  */
21656 $ac_includes_default
21657 int
21658 main ()
21659 {
21660 if ((char* *) 0)
21661   return 0;
21662 if (sizeof (char*))
21663   return 0;
21664   ;
21665   return 0;
21666 }
21667 _ACEOF
21668 rm -f conftest.$ac_objext
21669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21670   (eval $ac_compile) 2>conftest.er1
21671   ac_status=$?
21672   grep -v '^ *+' conftest.er1 >conftest.err
21673   rm -f conftest.er1
21674   cat conftest.err >&5
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } &&
21677          { ac_try='test -z "$ac_c_werror_flag"
21678                          || test ! -s conftest.err'
21679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680   (eval $ac_try) 2>&5
21681   ac_status=$?
21682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683   (exit $ac_status); }; } &&
21684          { ac_try='test -s conftest.$ac_objext'
21685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686   (eval $ac_try) 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); }; }; then
21690   ac_cv_type_charp=yes
21691 else
21692   echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 ac_cv_type_charp=no
21696 fi
21697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21698 fi
21699 echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
21700 echo "${ECHO_T}$ac_cv_type_charp" >&6
21701
21702 echo "$as_me:$LINENO: checking size of char*" >&5
21703 echo $ECHO_N "checking size of char*... $ECHO_C" >&6
21704 if test "${ac_cv_sizeof_charp+set}" = set; then
21705   echo $ECHO_N "(cached) $ECHO_C" >&6
21706 else
21707   if test "$ac_cv_type_charp" = yes; then
21708   # The cast to unsigned long works around a bug in the HP C Compiler
21709   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21710   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21711   # This bug is HP SR number 8606223364.
21712   if test "$cross_compiling" = yes; then
21713   # Depending upon the size, compute the lo and hi bounds.
21714 cat >conftest.$ac_ext <<_ACEOF
21715 /* confdefs.h.  */
21716 _ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h.  */
21720 $ac_includes_default
21721 int
21722 main ()
21723 {
21724 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
21725 test_array [0] = 0
21726
21727   ;
21728   return 0;
21729 }
21730 _ACEOF
21731 rm -f conftest.$ac_objext
21732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21733   (eval $ac_compile) 2>conftest.er1
21734   ac_status=$?
21735   grep -v '^ *+' conftest.er1 >conftest.err
21736   rm -f conftest.er1
21737   cat conftest.err >&5
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } &&
21740          { ac_try='test -z "$ac_c_werror_flag"
21741                          || test ! -s conftest.err'
21742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743   (eval $ac_try) 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); }; } &&
21747          { ac_try='test -s conftest.$ac_objext'
21748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749   (eval $ac_try) 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); }; }; then
21753   ac_lo=0 ac_mid=0
21754   while :; do
21755     cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761 $ac_includes_default
21762 int
21763 main ()
21764 {
21765 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
21766 test_array [0] = 0
21767
21768   ;
21769   return 0;
21770 }
21771 _ACEOF
21772 rm -f conftest.$ac_objext
21773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21774   (eval $ac_compile) 2>conftest.er1
21775   ac_status=$?
21776   grep -v '^ *+' conftest.er1 >conftest.err
21777   rm -f conftest.er1
21778   cat conftest.err >&5
21779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780   (exit $ac_status); } &&
21781          { ac_try='test -z "$ac_c_werror_flag"
21782                          || test ! -s conftest.err'
21783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784   (eval $ac_try) 2>&5
21785   ac_status=$?
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); }; } &&
21788          { ac_try='test -s conftest.$ac_objext'
21789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790   (eval $ac_try) 2>&5
21791   ac_status=$?
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); }; }; then
21794   ac_hi=$ac_mid; break
21795 else
21796   echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21798
21799 ac_lo=`expr $ac_mid + 1`
21800                     if test $ac_lo -le $ac_mid; then
21801                       ac_lo= ac_hi=
21802                       break
21803                     fi
21804                     ac_mid=`expr 2 '*' $ac_mid + 1`
21805 fi
21806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21807   done
21808 else
21809   echo "$as_me: failed program was:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21811
21812 cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h.  */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h.  */
21818 $ac_includes_default
21819 int
21820 main ()
21821 {
21822 static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
21823 test_array [0] = 0
21824
21825   ;
21826   return 0;
21827 }
21828 _ACEOF
21829 rm -f conftest.$ac_objext
21830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21831   (eval $ac_compile) 2>conftest.er1
21832   ac_status=$?
21833   grep -v '^ *+' conftest.er1 >conftest.err
21834   rm -f conftest.er1
21835   cat conftest.err >&5
21836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837   (exit $ac_status); } &&
21838          { ac_try='test -z "$ac_c_werror_flag"
21839                          || test ! -s conftest.err'
21840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841   (eval $ac_try) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); }; } &&
21845          { ac_try='test -s conftest.$ac_objext'
21846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847   (eval $ac_try) 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; }; then
21851   ac_hi=-1 ac_mid=-1
21852   while :; do
21853     cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859 $ac_includes_default
21860 int
21861 main ()
21862 {
21863 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
21864 test_array [0] = 0
21865
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21872   (eval $ac_compile) 2>conftest.er1
21873   ac_status=$?
21874   grep -v '^ *+' conftest.er1 >conftest.err
21875   rm -f conftest.er1
21876   cat conftest.err >&5
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } &&
21879          { ac_try='test -z "$ac_c_werror_flag"
21880                          || test ! -s conftest.err'
21881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882   (eval $ac_try) 2>&5
21883   ac_status=$?
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); }; } &&
21886          { ac_try='test -s conftest.$ac_objext'
21887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888   (eval $ac_try) 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; }; then
21892   ac_lo=$ac_mid; break
21893 else
21894   echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897 ac_hi=`expr '(' $ac_mid ')' - 1`
21898                        if test $ac_mid -le $ac_hi; then
21899                          ac_lo= ac_hi=
21900                          break
21901                        fi
21902                        ac_mid=`expr 2 '*' $ac_mid`
21903 fi
21904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21905   done
21906 else
21907   echo "$as_me: failed program was:" >&5
21908 sed 's/^/| /' conftest.$ac_ext >&5
21909
21910 ac_lo= ac_hi=
21911 fi
21912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21913 fi
21914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21915 # Binary search between lo and hi bounds.
21916 while test "x$ac_lo" != "x$ac_hi"; do
21917   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21918   cat >conftest.$ac_ext <<_ACEOF
21919 /* confdefs.h.  */
21920 _ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h.  */
21924 $ac_includes_default
21925 int
21926 main ()
21927 {
21928 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
21929 test_array [0] = 0
21930
21931   ;
21932   return 0;
21933 }
21934 _ACEOF
21935 rm -f conftest.$ac_objext
21936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21937   (eval $ac_compile) 2>conftest.er1
21938   ac_status=$?
21939   grep -v '^ *+' conftest.er1 >conftest.err
21940   rm -f conftest.er1
21941   cat conftest.err >&5
21942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); } &&
21944          { ac_try='test -z "$ac_c_werror_flag"
21945                          || test ! -s conftest.err'
21946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947   (eval $ac_try) 2>&5
21948   ac_status=$?
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); }; } &&
21951          { ac_try='test -s conftest.$ac_objext'
21952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953   (eval $ac_try) 2>&5
21954   ac_status=$?
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); }; }; then
21957   ac_hi=$ac_mid
21958 else
21959   echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962 ac_lo=`expr '(' $ac_mid ')' + 1`
21963 fi
21964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21965 done
21966 case $ac_lo in
21967 ?*) ac_cv_sizeof_charp=$ac_lo;;
21968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
21969 See \`config.log' for more details." >&5
21970 echo "$as_me: error: cannot compute sizeof (char*), 77
21971 See \`config.log' for more details." >&2;}
21972    { (exit 1); exit 1; }; } ;;
21973 esac
21974 else
21975   if test "$cross_compiling" = yes; then
21976   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21977 See \`config.log' for more details." >&5
21978 echo "$as_me: error: cannot run test program while cross compiling
21979 See \`config.log' for more details." >&2;}
21980    { (exit 1); exit 1; }; }
21981 else
21982   cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h.  */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h.  */
21988 $ac_includes_default
21989 long longval () { return (long) (sizeof (char*)); }
21990 unsigned long ulongval () { return (long) (sizeof (char*)); }
21991 #include <stdio.h>
21992 #include <stdlib.h>
21993 int
21994 main ()
21995 {
21996
21997   FILE *f = fopen ("conftest.val", "w");
21998   if (! f)
21999     exit (1);
22000   if (((long) (sizeof (char*))) < 0)
22001     {
22002       long i = longval ();
22003       if (i != ((long) (sizeof (char*))))
22004         exit (1);
22005       fprintf (f, "%ld\n", i);
22006     }
22007   else
22008     {
22009       unsigned long i = ulongval ();
22010       if (i != ((long) (sizeof (char*))))
22011         exit (1);
22012       fprintf (f, "%lu\n", i);
22013     }
22014   exit (ferror (f) || fclose (f) != 0);
22015
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest$ac_exeext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022   (eval $ac_link) 2>&5
22023   ac_status=$?
22024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027   (eval $ac_try) 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); }; }; then
22031   ac_cv_sizeof_charp=`cat conftest.val`
22032 else
22033   echo "$as_me: program exited with status $ac_status" >&5
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037 ( exit $ac_status )
22038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
22039 See \`config.log' for more details." >&5
22040 echo "$as_me: error: cannot compute sizeof (char*), 77
22041 See \`config.log' for more details." >&2;}
22042    { (exit 1); exit 1; }; }
22043 fi
22044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045 fi
22046 fi
22047 rm -f conftest.val
22048 else
22049   ac_cv_sizeof_charp=0
22050 fi
22051 fi
22052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
22053 echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
22054 cat >>confdefs.h <<_ACEOF
22055 #define SIZEOF_CHARP $ac_cv_sizeof_charp
22056 _ACEOF
22057
22058
22059   echo "$as_me:$LINENO: checking for int" >&5
22060 echo $ECHO_N "checking for int... $ECHO_C" >&6
22061 if test "${ac_cv_type_int+set}" = set; then
22062   echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064   cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070 $ac_includes_default
22071 int
22072 main ()
22073 {
22074 if ((int *) 0)
22075   return 0;
22076 if (sizeof (int))
22077   return 0;
22078   ;
22079   return 0;
22080 }
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22084   (eval $ac_compile) 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } &&
22091          { ac_try='test -z "$ac_c_werror_flag"
22092                          || test ! -s conftest.err'
22093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094   (eval $ac_try) 2>&5
22095   ac_status=$?
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); }; } &&
22098          { ac_try='test -s conftest.$ac_objext'
22099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100   (eval $ac_try) 2>&5
22101   ac_status=$?
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); }; }; then
22104   ac_cv_type_int=yes
22105 else
22106   echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22108
22109 ac_cv_type_int=no
22110 fi
22111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22112 fi
22113 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22114 echo "${ECHO_T}$ac_cv_type_int" >&6
22115
22116 echo "$as_me:$LINENO: checking size of int" >&5
22117 echo $ECHO_N "checking size of int... $ECHO_C" >&6
22118 if test "${ac_cv_sizeof_int+set}" = set; then
22119   echo $ECHO_N "(cached) $ECHO_C" >&6
22120 else
22121   if test "$ac_cv_type_int" = yes; then
22122   # The cast to unsigned long works around a bug in the HP C Compiler
22123   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22124   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22125   # This bug is HP SR number 8606223364.
22126   if test "$cross_compiling" = yes; then
22127   # Depending upon the size, compute the lo and hi bounds.
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h.  */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h.  */
22134 $ac_includes_default
22135 int
22136 main ()
22137 {
22138 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
22139 test_array [0] = 0
22140
22141   ;
22142   return 0;
22143 }
22144 _ACEOF
22145 rm -f conftest.$ac_objext
22146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22147   (eval $ac_compile) 2>conftest.er1
22148   ac_status=$?
22149   grep -v '^ *+' conftest.er1 >conftest.err
22150   rm -f conftest.er1
22151   cat conftest.err >&5
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); } &&
22154          { ac_try='test -z "$ac_c_werror_flag"
22155                          || test ! -s conftest.err'
22156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157   (eval $ac_try) 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; } &&
22161          { ac_try='test -s conftest.$ac_objext'
22162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163   (eval $ac_try) 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; }; then
22167   ac_lo=0 ac_mid=0
22168   while :; do
22169     cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h.  */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h.  */
22175 $ac_includes_default
22176 int
22177 main ()
22178 {
22179 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22180 test_array [0] = 0
22181
22182   ;
22183   return 0;
22184 }
22185 _ACEOF
22186 rm -f conftest.$ac_objext
22187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22188   (eval $ac_compile) 2>conftest.er1
22189   ac_status=$?
22190   grep -v '^ *+' conftest.er1 >conftest.err
22191   rm -f conftest.er1
22192   cat conftest.err >&5
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); } &&
22195          { ac_try='test -z "$ac_c_werror_flag"
22196                          || test ! -s conftest.err'
22197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198   (eval $ac_try) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); }; } &&
22202          { ac_try='test -s conftest.$ac_objext'
22203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204   (eval $ac_try) 2>&5
22205   ac_status=$?
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); }; }; then
22208   ac_hi=$ac_mid; break
22209 else
22210   echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213 ac_lo=`expr $ac_mid + 1`
22214                     if test $ac_lo -le $ac_mid; then
22215                       ac_lo= ac_hi=
22216                       break
22217                     fi
22218                     ac_mid=`expr 2 '*' $ac_mid + 1`
22219 fi
22220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22221   done
22222 else
22223   echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22225
22226 cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 $ac_includes_default
22233 int
22234 main ()
22235 {
22236 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
22237 test_array [0] = 0
22238
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22245   (eval $ac_compile) 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } &&
22252          { ac_try='test -z "$ac_c_werror_flag"
22253                          || test ! -s conftest.err'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; } &&
22259          { ac_try='test -s conftest.$ac_objext'
22260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261   (eval $ac_try) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); }; }; then
22265   ac_hi=-1 ac_mid=-1
22266   while :; do
22267     cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h.  */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h.  */
22273 $ac_includes_default
22274 int
22275 main ()
22276 {
22277 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
22278 test_array [0] = 0
22279
22280   ;
22281   return 0;
22282 }
22283 _ACEOF
22284 rm -f conftest.$ac_objext
22285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22286   (eval $ac_compile) 2>conftest.er1
22287   ac_status=$?
22288   grep -v '^ *+' conftest.er1 >conftest.err
22289   rm -f conftest.er1
22290   cat conftest.err >&5
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); } &&
22293          { ac_try='test -z "$ac_c_werror_flag"
22294                          || test ! -s conftest.err'
22295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296   (eval $ac_try) 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; } &&
22300          { ac_try='test -s conftest.$ac_objext'
22301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302   (eval $ac_try) 2>&5
22303   ac_status=$?
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); }; }; then
22306   ac_lo=$ac_mid; break
22307 else
22308   echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311 ac_hi=`expr '(' $ac_mid ')' - 1`
22312                        if test $ac_mid -le $ac_hi; then
22313                          ac_lo= ac_hi=
22314                          break
22315                        fi
22316                        ac_mid=`expr 2 '*' $ac_mid`
22317 fi
22318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22319   done
22320 else
22321   echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22323
22324 ac_lo= ac_hi=
22325 fi
22326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22327 fi
22328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22329 # Binary search between lo and hi bounds.
22330 while test "x$ac_lo" != "x$ac_hi"; do
22331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22332   cat >conftest.$ac_ext <<_ACEOF
22333 /* confdefs.h.  */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h.  */
22338 $ac_includes_default
22339 int
22340 main ()
22341 {
22342 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22343 test_array [0] = 0
22344
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22351   (eval $ac_compile) 2>conftest.er1
22352   ac_status=$?
22353   grep -v '^ *+' conftest.er1 >conftest.err
22354   rm -f conftest.er1
22355   cat conftest.err >&5
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } &&
22358          { ac_try='test -z "$ac_c_werror_flag"
22359                          || test ! -s conftest.err'
22360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361   (eval $ac_try) 2>&5
22362   ac_status=$?
22363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); }; } &&
22365          { ac_try='test -s conftest.$ac_objext'
22366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367   (eval $ac_try) 2>&5
22368   ac_status=$?
22369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370   (exit $ac_status); }; }; then
22371   ac_hi=$ac_mid
22372 else
22373   echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376 ac_lo=`expr '(' $ac_mid ')' + 1`
22377 fi
22378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22379 done
22380 case $ac_lo in
22381 ?*) ac_cv_sizeof_int=$ac_lo;;
22382 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22383 See \`config.log' for more details." >&5
22384 echo "$as_me: error: cannot compute sizeof (int), 77
22385 See \`config.log' for more details." >&2;}
22386    { (exit 1); exit 1; }; } ;;
22387 esac
22388 else
22389   if test "$cross_compiling" = yes; then
22390   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22391 See \`config.log' for more details." >&5
22392 echo "$as_me: error: cannot run test program while cross compiling
22393 See \`config.log' for more details." >&2;}
22394    { (exit 1); exit 1; }; }
22395 else
22396   cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h.  */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h.  */
22402 $ac_includes_default
22403 long longval () { return (long) (sizeof (int)); }
22404 unsigned long ulongval () { return (long) (sizeof (int)); }
22405 #include <stdio.h>
22406 #include <stdlib.h>
22407 int
22408 main ()
22409 {
22410
22411   FILE *f = fopen ("conftest.val", "w");
22412   if (! f)
22413     exit (1);
22414   if (((long) (sizeof (int))) < 0)
22415     {
22416       long i = longval ();
22417       if (i != ((long) (sizeof (int))))
22418         exit (1);
22419       fprintf (f, "%ld\n", i);
22420     }
22421   else
22422     {
22423       unsigned long i = ulongval ();
22424       if (i != ((long) (sizeof (int))))
22425         exit (1);
22426       fprintf (f, "%lu\n", i);
22427     }
22428   exit (ferror (f) || fclose (f) != 0);
22429
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest$ac_exeext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22436   (eval $ac_link) 2>&5
22437   ac_status=$?
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441   (eval $ac_try) 2>&5
22442   ac_status=$?
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); }; }; then
22445   ac_cv_sizeof_int=`cat conftest.val`
22446 else
22447   echo "$as_me: program exited with status $ac_status" >&5
22448 echo "$as_me: failed program was:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22450
22451 ( exit $ac_status )
22452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
22453 See \`config.log' for more details." >&5
22454 echo "$as_me: error: cannot compute sizeof (int), 77
22455 See \`config.log' for more details." >&2;}
22456    { (exit 1); exit 1; }; }
22457 fi
22458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22459 fi
22460 fi
22461 rm -f conftest.val
22462 else
22463   ac_cv_sizeof_int=0
22464 fi
22465 fi
22466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22467 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
22468 cat >>confdefs.h <<_ACEOF
22469 #define SIZEOF_INT $ac_cv_sizeof_int
22470 _ACEOF
22471
22472
22473   echo "$as_me:$LINENO: checking for long" >&5
22474 echo $ECHO_N "checking for long... $ECHO_C" >&6
22475 if test "${ac_cv_type_long+set}" = set; then
22476   echo $ECHO_N "(cached) $ECHO_C" >&6
22477 else
22478   cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h.  */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h.  */
22484 $ac_includes_default
22485 int
22486 main ()
22487 {
22488 if ((long *) 0)
22489   return 0;
22490 if (sizeof (long))
22491   return 0;
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22498   (eval $ac_compile) 2>conftest.er1
22499   ac_status=$?
22500   grep -v '^ *+' conftest.er1 >conftest.err
22501   rm -f conftest.er1
22502   cat conftest.err >&5
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); } &&
22505          { ac_try='test -z "$ac_c_werror_flag"
22506                          || test ! -s conftest.err'
22507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508   (eval $ac_try) 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; } &&
22512          { ac_try='test -s conftest.$ac_objext'
22513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514   (eval $ac_try) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; }; then
22518   ac_cv_type_long=yes
22519 else
22520   echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523 ac_cv_type_long=no
22524 fi
22525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22526 fi
22527 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22528 echo "${ECHO_T}$ac_cv_type_long" >&6
22529
22530 echo "$as_me:$LINENO: checking size of long" >&5
22531 echo $ECHO_N "checking size of long... $ECHO_C" >&6
22532 if test "${ac_cv_sizeof_long+set}" = set; then
22533   echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535   if test "$ac_cv_type_long" = yes; then
22536   # The cast to unsigned long works around a bug in the HP C Compiler
22537   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22538   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22539   # This bug is HP SR number 8606223364.
22540   if test "$cross_compiling" = yes; then
22541   # Depending upon the size, compute the lo and hi bounds.
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 $ac_includes_default
22549 int
22550 main ()
22551 {
22552 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
22553 test_array [0] = 0
22554
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext
22560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22561   (eval $ac_compile) 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } &&
22568          { ac_try='test -z "$ac_c_werror_flag"
22569                          || test ! -s conftest.err'
22570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571   (eval $ac_try) 2>&5
22572   ac_status=$?
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); }; } &&
22575          { ac_try='test -s conftest.$ac_objext'
22576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577   (eval $ac_try) 2>&5
22578   ac_status=$?
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); }; }; then
22581   ac_lo=0 ac_mid=0
22582   while :; do
22583     cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 $ac_includes_default
22590 int
22591 main ()
22592 {
22593 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
22594 test_array [0] = 0
22595
22596   ;
22597   return 0;
22598 }
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22602   (eval $ac_compile) 2>conftest.er1
22603   ac_status=$?
22604   grep -v '^ *+' conftest.er1 >conftest.err
22605   rm -f conftest.er1
22606   cat conftest.err >&5
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); } &&
22609          { ac_try='test -z "$ac_c_werror_flag"
22610                          || test ! -s conftest.err'
22611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612   (eval $ac_try) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); }; } &&
22616          { ac_try='test -s conftest.$ac_objext'
22617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); }; }; then
22622   ac_hi=$ac_mid; break
22623 else
22624   echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 ac_lo=`expr $ac_mid + 1`
22628                     if test $ac_lo -le $ac_mid; then
22629                       ac_lo= ac_hi=
22630                       break
22631                     fi
22632                     ac_mid=`expr 2 '*' $ac_mid + 1`
22633 fi
22634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22635   done
22636 else
22637   echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646 $ac_includes_default
22647 int
22648 main ()
22649 {
22650 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
22651 test_array [0] = 0
22652
22653   ;
22654   return 0;
22655 }
22656 _ACEOF
22657 rm -f conftest.$ac_objext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659   (eval $ac_compile) 2>conftest.er1
22660   ac_status=$?
22661   grep -v '^ *+' conftest.er1 >conftest.err
22662   rm -f conftest.er1
22663   cat conftest.err >&5
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } &&
22666          { ac_try='test -z "$ac_c_werror_flag"
22667                          || test ! -s conftest.err'
22668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669   (eval $ac_try) 2>&5
22670   ac_status=$?
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); }; } &&
22673          { ac_try='test -s conftest.$ac_objext'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; }; then
22679   ac_hi=-1 ac_mid=-1
22680   while :; do
22681     cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 $ac_includes_default
22688 int
22689 main ()
22690 {
22691 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
22692 test_array [0] = 0
22693
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700   (eval $ac_compile) 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } &&
22707          { ac_try='test -z "$ac_c_werror_flag"
22708                          || test ! -s conftest.err'
22709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710   (eval $ac_try) 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; } &&
22714          { ac_try='test -s conftest.$ac_objext'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; }; then
22720   ac_lo=$ac_mid; break
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725 ac_hi=`expr '(' $ac_mid ')' - 1`
22726                        if test $ac_mid -le $ac_hi; then
22727                          ac_lo= ac_hi=
22728                          break
22729                        fi
22730                        ac_mid=`expr 2 '*' $ac_mid`
22731 fi
22732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22733   done
22734 else
22735   echo "$as_me: failed program was:" >&5
22736 sed 's/^/| /' conftest.$ac_ext >&5
22737
22738 ac_lo= ac_hi=
22739 fi
22740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22741 fi
22742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22743 # Binary search between lo and hi bounds.
22744 while test "x$ac_lo" != "x$ac_hi"; do
22745   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22746   cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h.  */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h.  */
22752 $ac_includes_default
22753 int
22754 main ()
22755 {
22756 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
22757 test_array [0] = 0
22758
22759   ;
22760   return 0;
22761 }
22762 _ACEOF
22763 rm -f conftest.$ac_objext
22764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22765   (eval $ac_compile) 2>conftest.er1
22766   ac_status=$?
22767   grep -v '^ *+' conftest.er1 >conftest.err
22768   rm -f conftest.er1
22769   cat conftest.err >&5
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); } &&
22772          { ac_try='test -z "$ac_c_werror_flag"
22773                          || test ! -s conftest.err'
22774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775   (eval $ac_try) 2>&5
22776   ac_status=$?
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); }; } &&
22779          { ac_try='test -s conftest.$ac_objext'
22780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781   (eval $ac_try) 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); }; }; then
22785   ac_hi=$ac_mid
22786 else
22787   echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22789
22790 ac_lo=`expr '(' $ac_mid ')' + 1`
22791 fi
22792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22793 done
22794 case $ac_lo in
22795 ?*) ac_cv_sizeof_long=$ac_lo;;
22796 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22797 See \`config.log' for more details." >&5
22798 echo "$as_me: error: cannot compute sizeof (long), 77
22799 See \`config.log' for more details." >&2;}
22800    { (exit 1); exit 1; }; } ;;
22801 esac
22802 else
22803   if test "$cross_compiling" = yes; then
22804   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22805 See \`config.log' for more details." >&5
22806 echo "$as_me: error: cannot run test program while cross compiling
22807 See \`config.log' for more details." >&2;}
22808    { (exit 1); exit 1; }; }
22809 else
22810   cat >conftest.$ac_ext <<_ACEOF
22811 /* confdefs.h.  */
22812 _ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h.  */
22816 $ac_includes_default
22817 long longval () { return (long) (sizeof (long)); }
22818 unsigned long ulongval () { return (long) (sizeof (long)); }
22819 #include <stdio.h>
22820 #include <stdlib.h>
22821 int
22822 main ()
22823 {
22824
22825   FILE *f = fopen ("conftest.val", "w");
22826   if (! f)
22827     exit (1);
22828   if (((long) (sizeof (long))) < 0)
22829     {
22830       long i = longval ();
22831       if (i != ((long) (sizeof (long))))
22832         exit (1);
22833       fprintf (f, "%ld\n", i);
22834     }
22835   else
22836     {
22837       unsigned long i = ulongval ();
22838       if (i != ((long) (sizeof (long))))
22839         exit (1);
22840       fprintf (f, "%lu\n", i);
22841     }
22842   exit (ferror (f) || fclose (f) != 0);
22843
22844   ;
22845   return 0;
22846 }
22847 _ACEOF
22848 rm -f conftest$ac_exeext
22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850   (eval $ac_link) 2>&5
22851   ac_status=$?
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855   (eval $ac_try) 2>&5
22856   ac_status=$?
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); }; }; then
22859   ac_cv_sizeof_long=`cat conftest.val`
22860 else
22861   echo "$as_me: program exited with status $ac_status" >&5
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22864
22865 ( exit $ac_status )
22866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
22867 See \`config.log' for more details." >&5
22868 echo "$as_me: error: cannot compute sizeof (long), 77
22869 See \`config.log' for more details." >&2;}
22870    { (exit 1); exit 1; }; }
22871 fi
22872 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22873 fi
22874 fi
22875 rm -f conftest.val
22876 else
22877   ac_cv_sizeof_long=0
22878 fi
22879 fi
22880 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22881 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
22882 cat >>confdefs.h <<_ACEOF
22883 #define SIZEOF_LONG $ac_cv_sizeof_long
22884 _ACEOF
22885
22886
22887   echo "$as_me:$LINENO: checking for short" >&5
22888 echo $ECHO_N "checking for short... $ECHO_C" >&6
22889 if test "${ac_cv_type_short+set}" = set; then
22890   echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892   cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h.  */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h.  */
22898 $ac_includes_default
22899 int
22900 main ()
22901 {
22902 if ((short *) 0)
22903   return 0;
22904 if (sizeof (short))
22905   return 0;
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22912   (eval $ac_compile) 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } &&
22919          { ac_try='test -z "$ac_c_werror_flag"
22920                          || test ! -s conftest.err'
22921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922   (eval $ac_try) 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; } &&
22926          { ac_try='test -s conftest.$ac_objext'
22927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928   (eval $ac_try) 2>&5
22929   ac_status=$?
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); }; }; then
22932   ac_cv_type_short=yes
22933 else
22934   echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22936
22937 ac_cv_type_short=no
22938 fi
22939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22940 fi
22941 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22942 echo "${ECHO_T}$ac_cv_type_short" >&6
22943
22944 echo "$as_me:$LINENO: checking size of short" >&5
22945 echo $ECHO_N "checking size of short... $ECHO_C" >&6
22946 if test "${ac_cv_sizeof_short+set}" = set; then
22947   echo $ECHO_N "(cached) $ECHO_C" >&6
22948 else
22949   if test "$ac_cv_type_short" = yes; then
22950   # The cast to unsigned long works around a bug in the HP C Compiler
22951   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22952   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22953   # This bug is HP SR number 8606223364.
22954   if test "$cross_compiling" = yes; then
22955   # Depending upon the size, compute the lo and hi bounds.
22956 cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h.  */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h.  */
22962 $ac_includes_default
22963 int
22964 main ()
22965 {
22966 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
22967 test_array [0] = 0
22968
22969   ;
22970   return 0;
22971 }
22972 _ACEOF
22973 rm -f conftest.$ac_objext
22974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22975   (eval $ac_compile) 2>conftest.er1
22976   ac_status=$?
22977   grep -v '^ *+' conftest.er1 >conftest.err
22978   rm -f conftest.er1
22979   cat conftest.err >&5
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); } &&
22982          { ac_try='test -z "$ac_c_werror_flag"
22983                          || test ! -s conftest.err'
22984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985   (eval $ac_try) 2>&5
22986   ac_status=$?
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); }; } &&
22989          { ac_try='test -s conftest.$ac_objext'
22990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991   (eval $ac_try) 2>&5
22992   ac_status=$?
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); }; }; then
22995   ac_lo=0 ac_mid=0
22996   while :; do
22997     cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003 $ac_includes_default
23004 int
23005 main ()
23006 {
23007 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
23008 test_array [0] = 0
23009
23010   ;
23011   return 0;
23012 }
23013 _ACEOF
23014 rm -f conftest.$ac_objext
23015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23016   (eval $ac_compile) 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } &&
23023          { ac_try='test -z "$ac_c_werror_flag"
23024                          || test ! -s conftest.err'
23025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026   (eval $ac_try) 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); }; } &&
23030          { ac_try='test -s conftest.$ac_objext'
23031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032   (eval $ac_try) 2>&5
23033   ac_status=$?
23034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035   (exit $ac_status); }; }; then
23036   ac_hi=$ac_mid; break
23037 else
23038   echo "$as_me: failed program was:" >&5
23039 sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ac_lo=`expr $ac_mid + 1`
23042                     if test $ac_lo -le $ac_mid; then
23043                       ac_lo= ac_hi=
23044                       break
23045                     fi
23046                     ac_mid=`expr 2 '*' $ac_mid + 1`
23047 fi
23048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23049   done
23050 else
23051   echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054 cat >conftest.$ac_ext <<_ACEOF
23055 /* confdefs.h.  */
23056 _ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h.  */
23060 $ac_includes_default
23061 int
23062 main ()
23063 {
23064 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
23065 test_array [0] = 0
23066
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 rm -f conftest.$ac_objext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073   (eval $ac_compile) 2>conftest.er1
23074   ac_status=$?
23075   grep -v '^ *+' conftest.er1 >conftest.err
23076   rm -f conftest.er1
23077   cat conftest.err >&5
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); } &&
23080          { ac_try='test -z "$ac_c_werror_flag"
23081                          || test ! -s conftest.err'
23082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083   (eval $ac_try) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); }; } &&
23087          { ac_try='test -s conftest.$ac_objext'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; }; then
23093   ac_hi=-1 ac_mid=-1
23094   while :; do
23095     cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h.  */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h.  */
23101 $ac_includes_default
23102 int
23103 main ()
23104 {
23105 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
23106 test_array [0] = 0
23107
23108   ;
23109   return 0;
23110 }
23111 _ACEOF
23112 rm -f conftest.$ac_objext
23113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23114   (eval $ac_compile) 2>conftest.er1
23115   ac_status=$?
23116   grep -v '^ *+' conftest.er1 >conftest.err
23117   rm -f conftest.er1
23118   cat conftest.err >&5
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); } &&
23121          { ac_try='test -z "$ac_c_werror_flag"
23122                          || test ! -s conftest.err'
23123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124   (eval $ac_try) 2>&5
23125   ac_status=$?
23126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127   (exit $ac_status); }; } &&
23128          { ac_try='test -s conftest.$ac_objext'
23129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130   (eval $ac_try) 2>&5
23131   ac_status=$?
23132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133   (exit $ac_status); }; }; then
23134   ac_lo=$ac_mid; break
23135 else
23136   echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139 ac_hi=`expr '(' $ac_mid ')' - 1`
23140                        if test $ac_mid -le $ac_hi; then
23141                          ac_lo= ac_hi=
23142                          break
23143                        fi
23144                        ac_mid=`expr 2 '*' $ac_mid`
23145 fi
23146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23147   done
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ac_lo= ac_hi=
23153 fi
23154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23155 fi
23156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23157 # Binary search between lo and hi bounds.
23158 while test "x$ac_lo" != "x$ac_hi"; do
23159   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23160   cat >conftest.$ac_ext <<_ACEOF
23161 /* confdefs.h.  */
23162 _ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h.  */
23166 $ac_includes_default
23167 int
23168 main ()
23169 {
23170 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
23171 test_array [0] = 0
23172
23173   ;
23174   return 0;
23175 }
23176 _ACEOF
23177 rm -f conftest.$ac_objext
23178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23179   (eval $ac_compile) 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } &&
23186          { ac_try='test -z "$ac_c_werror_flag"
23187                          || test ! -s conftest.err'
23188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189   (eval $ac_try) 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; } &&
23193          { ac_try='test -s conftest.$ac_objext'
23194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195   (eval $ac_try) 2>&5
23196   ac_status=$?
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); }; }; then
23199   ac_hi=$ac_mid
23200 else
23201   echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23203
23204 ac_lo=`expr '(' $ac_mid ')' + 1`
23205 fi
23206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23207 done
23208 case $ac_lo in
23209 ?*) ac_cv_sizeof_short=$ac_lo;;
23210 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
23211 See \`config.log' for more details." >&5
23212 echo "$as_me: error: cannot compute sizeof (short), 77
23213 See \`config.log' for more details." >&2;}
23214    { (exit 1); exit 1; }; } ;;
23215 esac
23216 else
23217   if test "$cross_compiling" = yes; then
23218   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23219 See \`config.log' for more details." >&5
23220 echo "$as_me: error: cannot run test program while cross compiling
23221 See \`config.log' for more details." >&2;}
23222    { (exit 1); exit 1; }; }
23223 else
23224   cat >conftest.$ac_ext <<_ACEOF
23225 /* confdefs.h.  */
23226 _ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h.  */
23230 $ac_includes_default
23231 long longval () { return (long) (sizeof (short)); }
23232 unsigned long ulongval () { return (long) (sizeof (short)); }
23233 #include <stdio.h>
23234 #include <stdlib.h>
23235 int
23236 main ()
23237 {
23238
23239   FILE *f = fopen ("conftest.val", "w");
23240   if (! f)
23241     exit (1);
23242   if (((long) (sizeof (short))) < 0)
23243     {
23244       long i = longval ();
23245       if (i != ((long) (sizeof (short))))
23246         exit (1);
23247       fprintf (f, "%ld\n", i);
23248     }
23249   else
23250     {
23251       unsigned long i = ulongval ();
23252       if (i != ((long) (sizeof (short))))
23253         exit (1);
23254       fprintf (f, "%lu\n", i);
23255     }
23256   exit (ferror (f) || fclose (f) != 0);
23257
23258   ;
23259   return 0;
23260 }
23261 _ACEOF
23262 rm -f conftest$ac_exeext
23263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23264   (eval $ac_link) 2>&5
23265   ac_status=$?
23266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269   (eval $ac_try) 2>&5
23270   ac_status=$?
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); }; }; then
23273   ac_cv_sizeof_short=`cat conftest.val`
23274 else
23275   echo "$as_me: program exited with status $ac_status" >&5
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279 ( exit $ac_status )
23280 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
23281 See \`config.log' for more details." >&5
23282 echo "$as_me: error: cannot compute sizeof (short), 77
23283 See \`config.log' for more details." >&2;}
23284    { (exit 1); exit 1; }; }
23285 fi
23286 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23287 fi
23288 fi
23289 rm -f conftest.val
23290 else
23291   ac_cv_sizeof_short=0
23292 fi
23293 fi
23294 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
23295 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
23296 cat >>confdefs.h <<_ACEOF
23297 #define SIZEOF_SHORT $ac_cv_sizeof_short
23298 _ACEOF
23299
23300
23301
23302   # ----------------------------------------------------------------------
23303   # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
23304   # ----------------------------------------------------------------------
23305
23306 echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
23307 echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
23308 if test "${ac_cv_lib_gen_pathfind+set}" = set; then
23309   echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311   ac_check_lib_save_LIBS=$LIBS
23312 LIBS="-lgen  $LIBS"
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319
23320 /* Override any gcc2 internal prototype to avoid an error.  */
23321 #ifdef __cplusplus
23322 extern "C"
23323 #endif
23324 /* We use char because int might match the return type of a gcc2
23325    builtin and then its argument prototype would still apply.  */
23326 char pathfind ();
23327 int
23328 main ()
23329 {
23330 pathfind ();
23331   ;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23337   (eval $ac_link) 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } &&
23344          { ac_try='test -z "$ac_c_werror_flag"
23345                          || test ! -s conftest.err'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; } &&
23351          { ac_try='test -s conftest$ac_exeext'
23352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353   (eval $ac_try) 2>&5
23354   ac_status=$?
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); }; }; then
23357   ac_cv_lib_gen_pathfind=yes
23358 else
23359   echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362 ac_cv_lib_gen_pathfind=no
23363 fi
23364 rm -f conftest.err conftest.$ac_objext \
23365       conftest$ac_exeext conftest.$ac_ext
23366 LIBS=$ac_check_lib_save_LIBS
23367 fi
23368 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
23369 echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
23370 if test $ac_cv_lib_gen_pathfind = yes; then
23371   cat >>confdefs.h <<_ACEOF
23372 #define HAVE_LIBGEN 1
23373 _ACEOF
23374
23375   LIBS="-lgen $LIBS"
23376
23377 fi
23378
23379
23380 for ac_func in vprintf
23381 do
23382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23383 echo "$as_me:$LINENO: checking for $ac_func" >&5
23384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23385 if eval "test \"\${$as_ac_var+set}\" = set"; then
23386   echo $ECHO_N "(cached) $ECHO_C" >&6
23387 else
23388   cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23396 #define $ac_func innocuous_$ac_func
23397
23398 /* System header to define __stub macros and hopefully few prototypes,
23399     which can conflict with char $ac_func (); below.
23400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23401     <limits.h> exists even on freestanding compilers.  */
23402
23403 #ifdef __STDC__
23404 # include <limits.h>
23405 #else
23406 # include <assert.h>
23407 #endif
23408
23409 #undef $ac_func
23410
23411 /* Override any gcc2 internal prototype to avoid an error.  */
23412 #ifdef __cplusplus
23413 extern "C"
23414 {
23415 #endif
23416 /* We use char because int might match the return type of a gcc2
23417    builtin and then its argument prototype would still apply.  */
23418 char $ac_func ();
23419 /* The GNU C library defines this for functions which it implements
23420     to always fail with ENOSYS.  Some functions are actually named
23421     something starting with __ and the normal name is an alias.  */
23422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23423 choke me
23424 #else
23425 char (*f) () = $ac_func;
23426 #endif
23427 #ifdef __cplusplus
23428 }
23429 #endif
23430
23431 int
23432 main ()
23433 {
23434 return f != $ac_func;
23435   ;
23436   return 0;
23437 }
23438 _ACEOF
23439 rm -f conftest.$ac_objext conftest$ac_exeext
23440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23441   (eval $ac_link) 2>conftest.er1
23442   ac_status=$?
23443   grep -v '^ *+' conftest.er1 >conftest.err
23444   rm -f conftest.er1
23445   cat conftest.err >&5
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); } &&
23448          { ac_try='test -z "$ac_c_werror_flag"
23449                          || test ! -s conftest.err'
23450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451   (eval $ac_try) 2>&5
23452   ac_status=$?
23453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454   (exit $ac_status); }; } &&
23455          { ac_try='test -s conftest$ac_exeext'
23456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457   (eval $ac_try) 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; }; then
23461   eval "$as_ac_var=yes"
23462 else
23463   echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466 eval "$as_ac_var=no"
23467 fi
23468 rm -f conftest.err conftest.$ac_objext \
23469       conftest$ac_exeext conftest.$ac_ext
23470 fi
23471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23473 if test `eval echo '${'$as_ac_var'}'` = yes; then
23474   cat >>confdefs.h <<_ACEOF
23475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23476 _ACEOF
23477
23478 echo "$as_me:$LINENO: checking for _doprnt" >&5
23479 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
23480 if test "${ac_cv_func__doprnt+set}" = set; then
23481   echo $ECHO_N "(cached) $ECHO_C" >&6
23482 else
23483   cat >conftest.$ac_ext <<_ACEOF
23484 /* confdefs.h.  */
23485 _ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h.  */
23489 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
23490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23491 #define _doprnt innocuous__doprnt
23492
23493 /* System header to define __stub macros and hopefully few prototypes,
23494     which can conflict with char _doprnt (); below.
23495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23496     <limits.h> exists even on freestanding compilers.  */
23497
23498 #ifdef __STDC__
23499 # include <limits.h>
23500 #else
23501 # include <assert.h>
23502 #endif
23503
23504 #undef _doprnt
23505
23506 /* Override any gcc2 internal prototype to avoid an error.  */
23507 #ifdef __cplusplus
23508 extern "C"
23509 {
23510 #endif
23511 /* We use char because int might match the return type of a gcc2
23512    builtin and then its argument prototype would still apply.  */
23513 char _doprnt ();
23514 /* The GNU C library defines this for functions which it implements
23515     to always fail with ENOSYS.  Some functions are actually named
23516     something starting with __ and the normal name is an alias.  */
23517 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23518 choke me
23519 #else
23520 char (*f) () = _doprnt;
23521 #endif
23522 #ifdef __cplusplus
23523 }
23524 #endif
23525
23526 int
23527 main ()
23528 {
23529 return f != _doprnt;
23530   ;
23531   return 0;
23532 }
23533 _ACEOF
23534 rm -f conftest.$ac_objext conftest$ac_exeext
23535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23536   (eval $ac_link) 2>conftest.er1
23537   ac_status=$?
23538   grep -v '^ *+' conftest.er1 >conftest.err
23539   rm -f conftest.er1
23540   cat conftest.err >&5
23541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542   (exit $ac_status); } &&
23543          { ac_try='test -z "$ac_c_werror_flag"
23544                          || test ! -s conftest.err'
23545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546   (eval $ac_try) 2>&5
23547   ac_status=$?
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); }; } &&
23550          { ac_try='test -s conftest$ac_exeext'
23551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552   (eval $ac_try) 2>&5
23553   ac_status=$?
23554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); }; }; then
23556   ac_cv_func__doprnt=yes
23557 else
23558   echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23560
23561 ac_cv_func__doprnt=no
23562 fi
23563 rm -f conftest.err conftest.$ac_objext \
23564       conftest$ac_exeext conftest.$ac_ext
23565 fi
23566 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
23567 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
23568 if test $ac_cv_func__doprnt = yes; then
23569
23570 cat >>confdefs.h <<\_ACEOF
23571 #define HAVE_DOPRNT 1
23572 _ACEOF
23573
23574 fi
23575
23576 fi
23577 done
23578
23579
23580
23581
23582
23583
23584
23585
23586 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
23587 do
23588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23589 echo "$as_me:$LINENO: checking for $ac_func" >&5
23590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23591 if eval "test \"\${$as_ac_var+set}\" = set"; then
23592   echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23594   cat >conftest.$ac_ext <<_ACEOF
23595 /* confdefs.h.  */
23596 _ACEOF
23597 cat confdefs.h >>conftest.$ac_ext
23598 cat >>conftest.$ac_ext <<_ACEOF
23599 /* end confdefs.h.  */
23600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23602 #define $ac_func innocuous_$ac_func
23603
23604 /* System header to define __stub macros and hopefully few prototypes,
23605     which can conflict with char $ac_func (); below.
23606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23607     <limits.h> exists even on freestanding compilers.  */
23608
23609 #ifdef __STDC__
23610 # include <limits.h>
23611 #else
23612 # include <assert.h>
23613 #endif
23614
23615 #undef $ac_func
23616
23617 /* Override any gcc2 internal prototype to avoid an error.  */
23618 #ifdef __cplusplus
23619 extern "C"
23620 {
23621 #endif
23622 /* We use char because int might match the return type of a gcc2
23623    builtin and then its argument prototype would still apply.  */
23624 char $ac_func ();
23625 /* The GNU C library defines this for functions which it implements
23626     to always fail with ENOSYS.  Some functions are actually named
23627     something starting with __ and the normal name is an alias.  */
23628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23629 choke me
23630 #else
23631 char (*f) () = $ac_func;
23632 #endif
23633 #ifdef __cplusplus
23634 }
23635 #endif
23636
23637 int
23638 main ()
23639 {
23640 return f != $ac_func;
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647   (eval $ac_link) 2>conftest.er1
23648   ac_status=$?
23649   grep -v '^ *+' conftest.er1 >conftest.err
23650   rm -f conftest.er1
23651   cat conftest.err >&5
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); } &&
23654          { ac_try='test -z "$ac_c_werror_flag"
23655                          || test ! -s conftest.err'
23656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657   (eval $ac_try) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); }; } &&
23661          { ac_try='test -s conftest$ac_exeext'
23662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663   (eval $ac_try) 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; }; then
23667   eval "$as_ac_var=yes"
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672 eval "$as_ac_var=no"
23673 fi
23674 rm -f conftest.err conftest.$ac_objext \
23675       conftest$ac_exeext conftest.$ac_ext
23676 fi
23677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23679 if test `eval echo '${'$as_ac_var'}'` = yes; then
23680   cat >>confdefs.h <<_ACEOF
23681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23682 _ACEOF
23683
23684 fi
23685 done
23686
23687   INVOKE_LIBOPTS_MACROS_FIRST_done=yes
23688 fi
23689   # Check to see if a reg expr header is specified.
23690
23691
23692 # Check whether --with-regex-header or --without-regex-header was given.
23693 if test "${with_regex_header+set}" = set; then
23694   withval="$with_regex_header"
23695   libopts_cv_with_regex_header=${with_regex_header}
23696 else
23697   echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
23698 echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6
23699 if test "${libopts_cv_with_regex_header+set}" = set; then
23700   echo $ECHO_N "(cached) $ECHO_C" >&6
23701 else
23702   libopts_cv_with_regex_header=no
23703 fi
23704 echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
23705 echo "${ECHO_T}$libopts_cv_with_regex_header" >&6
23706
23707 fi;  # end of AC_ARG_WITH
23708
23709   if test "X${libopts_cv_with_regex_header}" != Xno
23710   then
23711     cat >>confdefs.h <<_ACEOF
23712 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
23713 _ACEOF
23714
23715   else
23716
23717 cat >>confdefs.h <<\_ACEOF
23718 #define REGEX_HEADER <regex.h>
23719 _ACEOF
23720
23721   fi
23722
23723
23724
23725   # Check to see if a working libregex can be found.
23726
23727
23728 # Check whether --with-libregex or --without-libregex was given.
23729 if test "${with_libregex+set}" = set; then
23730   withval="$with_libregex"
23731   libopts_cv_with_libregex_root=${with_libregex}
23732 else
23733   echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
23734 echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6
23735 if test "${libopts_cv_with_libregex_root+set}" = set; then
23736   echo $ECHO_N "(cached) $ECHO_C" >&6
23737 else
23738   libopts_cv_with_libregex_root=no
23739 fi
23740 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
23741 echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6
23742
23743 fi;  # end of AC_ARG_WITH libregex
23744
23745   if test "${with_libguile+set}" = set && \
23746      test "${withval}" = no
23747   then ## disabled by request
23748     libopts_cv_with_libregex_root=no
23749     libopts_cv_with_libregex_cflags=no
23750     libopts_cv_with_libregex_libs=no
23751   else
23752
23753
23754 # Check whether --with-libregex-cflags or --without-libregex-cflags was given.
23755 if test "${with_libregex_cflags+set}" = set; then
23756   withval="$with_libregex_cflags"
23757   libopts_cv_with_libregex_cflags=${with_regex_cflags}
23758 else
23759   echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
23760 echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6
23761 if test "${libopts_cv_with_libregex_cflags+set}" = set; then
23762   echo $ECHO_N "(cached) $ECHO_C" >&6
23763 else
23764   libopts_cv_with_libregex_cflags=no
23765 fi
23766 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
23767 echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6
23768
23769 fi;  # end of AC_ARG_WITH libregex-cflags
23770
23771
23772 # Check whether --with-libregex-libs or --without-libregex-libs was given.
23773 if test "${with_libregex_libs+set}" = set; then
23774   withval="$with_libregex_libs"
23775   libopts_cv_with_libregex_libs=${with_regex_libs}
23776 else
23777   echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
23778 echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6
23779 if test "${libopts_cv_with_libregex_libs+set}" = set; then
23780   echo $ECHO_N "(cached) $ECHO_C" >&6
23781 else
23782   libopts_cv_with_libregex_libs=no
23783 fi
23784 echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
23785 echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6
23786
23787 fi;  # end of AC_ARG_WITH libregex-libs
23788
23789   case "X${libopts_cv_with_libregex_cflags}" in
23790   Xyes|Xno|X )
23791     case "X${libopts_cv_with_libregex_root}" in
23792     Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
23793     * )        libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
23794     esac
23795   esac
23796   case "X${libopts_cv_with_libregex_libs}" in
23797   Xyes|Xno|X )
23798     case "X${libopts_cv_with_libregex_root}" in
23799     Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
23800     * )        libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
23801     esac
23802   esac
23803   libopts_save_CPPFLAGS="${CPPFLAGS}"
23804   libopts_save_LIBS="${LIBS}"
23805   fi ## disabled by request
23806
23807   case "X${libopts_cv_with_libregex_cflags}" in
23808   Xyes|Xno|X )
23809     libopts_cv_with_libregex_cflags="" ;;
23810   * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
23811   esac
23812   case "X${libopts_cv_with_libregex_libs}" in
23813   Xyes|Xno|X )
23814     libopts_cv_with_libregex_libs="" ;;
23815   * )
23816     LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
23817   esac
23818   LIBREGEX_CFLAGS=""
23819   LIBREGEX_LIBS=""
23820   echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
23821 echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6
23822   if test "${libopts_cv_with_libregex+set}" = set; then
23823   echo $ECHO_N "(cached) $ECHO_C" >&6
23824 else
23825
23826   if test "$cross_compiling" = yes; then
23827   libopts_cv_with_libregex=no
23828 else
23829   cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h.  */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h.  */
23835 #include <stdio.h>
23836 #include <stdlib.h>
23837 #include <sys/types.h>
23838 #include REGEX_HEADER
23839 static regex_t re;
23840 void comp_re( char const* pzPat ) {
23841   int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
23842   if (res == 0) return;
23843   exit( res ); }
23844 int main() {
23845   regmatch_t m[2];
23846   comp_re( "^.*\$"   );
23847   comp_re( "()|no.*" );
23848   comp_re( "."       );
23849   if (regexec( &re, "X", 2, m, 0 ) != 0)  return 1;
23850   if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
23851     fputs( "error: regex -->.<-- did not match\n", stderr );
23852     return 1;
23853   }
23854   return 0; }
23855 _ACEOF
23856 rm -f conftest$ac_exeext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23858   (eval $ac_link) 2>&5
23859   ac_status=$?
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863   (eval $ac_try) 2>&5
23864   ac_status=$?
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); }; }; then
23867   libopts_cv_with_libregex=yes
23868 else
23869   echo "$as_me: program exited with status $ac_status" >&5
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23872
23873 ( exit $ac_status )
23874 libopts_cv_with_libregex=no
23875 fi
23876 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23877 fi # end of AC_TRY_RUN
23878
23879 fi
23880  # end of AC_CACHE_VAL for libopts_cv_with_libregex
23881   echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
23882 echo "${ECHO_T}${libopts_cv_with_libregex}" >&6
23883
23884   if test "X${libopts_cv_with_libregex}" != Xno
23885   then
23886
23887 cat >>confdefs.h <<\_ACEOF
23888 #define WITH_LIBREGEX 1
23889 _ACEOF
23890
23891   else
23892     CPPFLAGS="${libopts_save_CPPFLAGS}"
23893     LIBS="${libopts_save_LIBS}"
23894   fi
23895
23896
23897
23898   # Check to see if pathfind(3) works.
23899
23900   echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
23901 echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6
23902   if test "${libopts_cv_run_pathfind+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905
23906   if test "$cross_compiling" = yes; then
23907   libopts_cv_run_pathfind=no
23908
23909 else
23910   cat >conftest.$ac_ext <<_ACEOF
23911 /* confdefs.h.  */
23912 _ACEOF
23913 cat confdefs.h >>conftest.$ac_ext
23914 cat >>conftest.$ac_ext <<_ACEOF
23915 /* end confdefs.h.  */
23916 #include <string.h>
23917 #include <stdlib.h>
23918 int main (int argc, char** argv) {
23919    char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
23920    return (pz == 0) ? 1 : 0;
23921 }
23922 _ACEOF
23923 rm -f conftest$ac_exeext
23924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23925   (eval $ac_link) 2>&5
23926   ac_status=$?
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23930   (eval $ac_try) 2>&5
23931   ac_status=$?
23932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933   (exit $ac_status); }; }; then
23934   libopts_cv_run_pathfind=yes
23935 else
23936   echo "$as_me: program exited with status $ac_status" >&5
23937 echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23939
23940 ( exit $ac_status )
23941 libopts_cv_run_pathfind=no
23942 fi
23943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23944 fi # end of TRY_RUN
23945
23946 fi
23947  # end of AC_CACHE_VAL for libopts_cv_run_pathfind
23948   echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
23949 echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6
23950
23951   if test "X${libopts_cv_run_pathfind}" != Xno
23952   then
23953
23954 cat >>confdefs.h <<\_ACEOF
23955 #define HAVE_PATHFIND 1
23956 _ACEOF
23957
23958   fi
23959
23960
23961
23962   # Check to see if /dev/zero is readable device.
23963
23964   echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
23965 echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6
23966   if test "${libopts_cv_test_dev_zero+set}" = set; then
23967   echo $ECHO_N "(cached) $ECHO_C" >&6
23968 else
23969
23970     libopts_cv_test_dev_zero=`exec 2> /dev/null
23971 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
23972 test -z "${dzero}" && exit 1
23973 echo ${dzero}`
23974     if test $? -ne 0
23975     then libopts_cv_test_dev_zero=no
23976     elif test -z "$libopts_cv_test_dev_zero"
23977     then libopts_cv_test_dev_zero=no
23978     fi
23979
23980 fi
23981  # end of CACHE_VAL of libopts_cv_test_dev_zero
23982   echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
23983 echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6
23984
23985   if test "X${libopts_cv_test_dev_zero}" != Xno
23986   then
23987
23988 cat >>confdefs.h <<\_ACEOF
23989 #define HAVE_DEV_ZERO 1
23990 _ACEOF
23991
23992   fi
23993
23994
23995
23996   # Check to see if we have a functional realpath(3C).
23997
23998   echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
23999 echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6
24000   if test "${libopts_cv_run_realpath+set}" = set; then
24001   echo $ECHO_N "(cached) $ECHO_C" >&6
24002 else
24003
24004   if test "$cross_compiling" = yes; then
24005   libopts_cv_run_realpath=no
24006
24007 else
24008   cat >conftest.$ac_ext <<_ACEOF
24009 /* confdefs.h.  */
24010 _ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h.  */
24014 #include <limits.h>
24015 #include <stdlib.h>
24016 int main (int argc, char** argv) {
24017 #ifndef PATH_MAX
24018 choke me!!
24019 #else
24020    char zPath[PATH_MAX+1];
24021 #endif
24022    char *pz = realpath(argv[0], zPath);
24023    return (pz == zPath) ? 0 : 1;
24024 }
24025 _ACEOF
24026 rm -f conftest$ac_exeext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24028   (eval $ac_link) 2>&5
24029   ac_status=$?
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033   (eval $ac_try) 2>&5
24034   ac_status=$?
24035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036   (exit $ac_status); }; }; then
24037   libopts_cv_run_realpath=yes
24038 else
24039   echo "$as_me: program exited with status $ac_status" >&5
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24042
24043 ( exit $ac_status )
24044 libopts_cv_run_realpath=no
24045 fi
24046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24047 fi # end of TRY_RUN
24048
24049 fi
24050  # end of AC_CACHE_VAL for libopts_cv_run_realpath
24051   echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
24052 echo "${ECHO_T}${libopts_cv_run_realpath}" >&6
24053
24054   if test "X${libopts_cv_run_realpath}" != Xno
24055   then
24056
24057 cat >>confdefs.h <<\_ACEOF
24058 #define HAVE_REALPATH 1
24059 _ACEOF
24060
24061   fi
24062
24063
24064
24065   # Check to see if strftime() works.
24066
24067   echo "$as_me:$LINENO: checking whether strftime() works" >&5
24068 echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6
24069   if test "${libopts_cv_run_strftime+set}" = set; then
24070   echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072
24073   if test "$cross_compiling" = yes; then
24074   libopts_cv_run_strftime=no
24075
24076 else
24077   cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h.  */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h.  */
24083 #include <time.h>
24084 #include <string.h>
24085 char t_buf[ 64 ];
24086 int main() {
24087   static char const z[] = "Thursday Aug 28 240";
24088   struct tm tm;
24089   tm.tm_sec   = 36;  /* seconds after the minute [0, 61]  */
24090   tm.tm_min   = 44;  /* minutes after the hour [0, 59] */
24091   tm.tm_hour  = 12;  /* hour since midnight [0, 23] */
24092   tm.tm_mday  = 28;  /* day of the month [1, 31] */
24093   tm.tm_mon   =  7;  /* months since January [0, 11] */
24094   tm.tm_year  = 86;  /* years since 1900 */
24095   tm.tm_wday  =  4;  /* days since Sunday [0, 6] */
24096   tm.tm_yday  = 239; /* days since January 1 [0, 365] */
24097   tm.tm_isdst =  1;  /* flag for daylight savings time */
24098   strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24099   return (strcmp( t_buf, z ) != 0); }
24100 _ACEOF
24101 rm -f conftest$ac_exeext
24102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24103   (eval $ac_link) 2>&5
24104   ac_status=$?
24105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108   (eval $ac_try) 2>&5
24109   ac_status=$?
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); }; }; then
24112   libopts_cv_run_strftime=yes
24113 else
24114   echo "$as_me: program exited with status $ac_status" >&5
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24117
24118 ( exit $ac_status )
24119 libopts_cv_run_strftime=no
24120 fi
24121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24122 fi # end of TRY_RUN
24123
24124 fi
24125  # end of AC_CACHE_VAL for libopts_cv_run_strftime
24126   echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
24127 echo "${ECHO_T}${libopts_cv_run_strftime}" >&6
24128
24129   if test "X${libopts_cv_run_strftime}" != Xno
24130   then
24131
24132 cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_STRFTIME 1
24134 _ACEOF
24135
24136   fi
24137
24138
24139
24140   # Check to see if fopen accepts "b" mode.
24141
24142   echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
24143 echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6
24144   if test "${libopts_cv_run_fopen_binary+set}" = set; then
24145   echo $ECHO_N "(cached) $ECHO_C" >&6
24146 else
24147
24148   if test "$cross_compiling" = yes; then
24149   libopts_cv_run_fopen_binary=no
24150
24151 else
24152   cat >conftest.$ac_ext <<_ACEOF
24153 /* confdefs.h.  */
24154 _ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h.  */
24158 #include <stdio.h>
24159 int main (int argc, char** argv) {
24160 FILE* fp = fopen("conftest.$ac_ext", "rb");
24161 return (fp == NULL) ? 1 : fclose(fp); }
24162 _ACEOF
24163 rm -f conftest$ac_exeext
24164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24165   (eval $ac_link) 2>&5
24166   ac_status=$?
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170   (eval $ac_try) 2>&5
24171   ac_status=$?
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); }; }; then
24174   libopts_cv_run_fopen_binary=yes
24175 else
24176   echo "$as_me: program exited with status $ac_status" >&5
24177 echo "$as_me: failed program was:" >&5
24178 sed 's/^/| /' conftest.$ac_ext >&5
24179
24180 ( exit $ac_status )
24181 libopts_cv_run_fopen_binary=no
24182 fi
24183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24184 fi # end of TRY_RUN
24185
24186 fi
24187  # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24188   echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
24189 echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6
24190
24191   if test "X${libopts_cv_run_fopen_binary}" != Xno
24192   then
24193
24194 cat >>confdefs.h <<\_ACEOF
24195 #define FOPEN_BINARY_FLAG "b"
24196 _ACEOF
24197
24198   else
24199
24200 cat >>confdefs.h <<\_ACEOF
24201 #define FOPEN_BINARY_FLAG ""
24202 _ACEOF
24203
24204   fi
24205
24206
24207
24208   # Check to see if fopen accepts "t" mode.
24209
24210   echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
24211 echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6
24212   if test "${libopts_cv_run_fopen_text+set}" = set; then
24213   echo $ECHO_N "(cached) $ECHO_C" >&6
24214 else
24215
24216   if test "$cross_compiling" = yes; then
24217   libopts_cv_run_fopen_text=no
24218
24219 else
24220   cat >conftest.$ac_ext <<_ACEOF
24221 /* confdefs.h.  */
24222 _ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h.  */
24226 #include <stdio.h>
24227 int main (int argc, char** argv) {
24228 FILE* fp = fopen("conftest.$ac_ext", "rt");
24229 return (fp == NULL) ? 1 : fclose(fp); }
24230 _ACEOF
24231 rm -f conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233   (eval $ac_link) 2>&5
24234   ac_status=$?
24235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238   (eval $ac_try) 2>&5
24239   ac_status=$?
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); }; }; then
24242   libopts_cv_run_fopen_text=yes
24243 else
24244   echo "$as_me: program exited with status $ac_status" >&5
24245 echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24247
24248 ( exit $ac_status )
24249 libopts_cv_run_fopen_text=no
24250 fi
24251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24252 fi # end of TRY_RUN
24253
24254 fi
24255  # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24256   echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
24257 echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6
24258
24259   if test "X${libopts_cv_run_fopen_text}" != Xno
24260   then
24261
24262 cat >>confdefs.h <<\_ACEOF
24263 #define FOPEN_TEXT_FLAG "t"
24264 _ACEOF
24265
24266   else
24267
24268 cat >>confdefs.h <<\_ACEOF
24269 #define FOPEN_TEXT_FLAG ""
24270 _ACEOF
24271
24272   fi
24273
24274
24275
24276   # Check to see if not wanting optional option args.
24277
24278   # Check whether --enable-optional-args or --disable-optional-args was given.
24279 if test "${enable_optional_args+set}" = set; then
24280   enableval="$enable_optional_args"
24281   libopts_cv_enable_optional_args=${enable_optional_args}
24282 else
24283   echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
24284 echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6
24285 if test "${libopts_cv_enable_optional_args+set}" = set; then
24286   echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288   libopts_cv_enable_optional_args=yes
24289 fi
24290 echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
24291 echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6
24292
24293 fi;  # end of AC_ARG_ENABLE
24294
24295   if test "X${libopts_cv_enable_optional_args}" = Xno
24296   then
24297
24298 cat >>confdefs.h <<\_ACEOF
24299 #define NO_OPTIONAL_OPT_ARGS 1
24300 _ACEOF
24301
24302   fi
24303
24304
24305
24306
24307   else
24308
24309 if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
24310   # =================
24311   # AC_HEADER_STDC
24312   # =================
24313   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24314 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
24315 if test "${ac_cv_header_stdc+set}" = set; then
24316   echo $ECHO_N "(cached) $ECHO_C" >&6
24317 else
24318   cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h.  */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h.  */
24324 #include <stdlib.h>
24325 #include <stdarg.h>
24326 #include <string.h>
24327 #include <float.h>
24328
24329 int
24330 main ()
24331 {
24332
24333   ;
24334   return 0;
24335 }
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24339   (eval $ac_compile) 2>conftest.er1
24340   ac_status=$?
24341   grep -v '^ *+' conftest.er1 >conftest.err
24342   rm -f conftest.er1
24343   cat conftest.err >&5
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); } &&
24346          { ac_try='test -z "$ac_c_werror_flag"
24347                          || test ! -s conftest.err'
24348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24349   (eval $ac_try) 2>&5
24350   ac_status=$?
24351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); }; } &&
24353          { ac_try='test -s conftest.$ac_objext'
24354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355   (eval $ac_try) 2>&5
24356   ac_status=$?
24357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); }; }; then
24359   ac_cv_header_stdc=yes
24360 else
24361   echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24363
24364 ac_cv_header_stdc=no
24365 fi
24366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24367
24368 if test $ac_cv_header_stdc = yes; then
24369   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24370   cat >conftest.$ac_ext <<_ACEOF
24371 /* confdefs.h.  */
24372 _ACEOF
24373 cat confdefs.h >>conftest.$ac_ext
24374 cat >>conftest.$ac_ext <<_ACEOF
24375 /* end confdefs.h.  */
24376 #include <string.h>
24377
24378 _ACEOF
24379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24380   $EGREP "memchr" >/dev/null 2>&1; then
24381   :
24382 else
24383   ac_cv_header_stdc=no
24384 fi
24385 rm -f conftest*
24386
24387 fi
24388
24389 if test $ac_cv_header_stdc = yes; then
24390   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24391   cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h.  */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h.  */
24397 #include <stdlib.h>
24398
24399 _ACEOF
24400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24401   $EGREP "free" >/dev/null 2>&1; then
24402   :
24403 else
24404   ac_cv_header_stdc=no
24405 fi
24406 rm -f conftest*
24407
24408 fi
24409
24410 if test $ac_cv_header_stdc = yes; then
24411   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24412   if test "$cross_compiling" = yes; then
24413   :
24414 else
24415   cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421 #include <ctype.h>
24422 #if ((' ' & 0x0FF) == 0x020)
24423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24425 #else
24426 # define ISLOWER(c) \
24427                    (('a' <= (c) && (c) <= 'i') \
24428                      || ('j' <= (c) && (c) <= 'r') \
24429                      || ('s' <= (c) && (c) <= 'z'))
24430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24431 #endif
24432
24433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24434 int
24435 main ()
24436 {
24437   int i;
24438   for (i = 0; i < 256; i++)
24439     if (XOR (islower (i), ISLOWER (i))
24440         || toupper (i) != TOUPPER (i))
24441       exit(2);
24442   exit (0);
24443 }
24444 _ACEOF
24445 rm -f conftest$ac_exeext
24446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24447   (eval $ac_link) 2>&5
24448   ac_status=$?
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452   (eval $ac_try) 2>&5
24453   ac_status=$?
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); }; }; then
24456   :
24457 else
24458   echo "$as_me: program exited with status $ac_status" >&5
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24461
24462 ( exit $ac_status )
24463 ac_cv_header_stdc=no
24464 fi
24465 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24466 fi
24467 fi
24468 fi
24469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
24471 if test $ac_cv_header_stdc = yes; then
24472
24473 cat >>confdefs.h <<\_ACEOF
24474 #define STDC_HEADERS 1
24475 _ACEOF
24476
24477 fi
24478
24479   # =================
24480   # AC_HEADER_DIRENT
24481   # =================
24482
24483
24484
24485
24486
24487 ac_header_dirent=no
24488 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24489   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24490 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
24491 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
24492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24493   echo $ECHO_N "(cached) $ECHO_C" >&6
24494 else
24495   cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h.  */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h.  */
24501 #include <sys/types.h>
24502 #include <$ac_hdr>
24503
24504 int
24505 main ()
24506 {
24507 if ((DIR *) 0)
24508 return 0;
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 rm -f conftest.$ac_objext
24514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24515   (eval $ac_compile) 2>conftest.er1
24516   ac_status=$?
24517   grep -v '^ *+' conftest.er1 >conftest.err
24518   rm -f conftest.er1
24519   cat conftest.err >&5
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); } &&
24522          { ac_try='test -z "$ac_c_werror_flag"
24523                          || test ! -s conftest.err'
24524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525   (eval $ac_try) 2>&5
24526   ac_status=$?
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); }; } &&
24529          { ac_try='test -s conftest.$ac_objext'
24530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531   (eval $ac_try) 2>&5
24532   ac_status=$?
24533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); }; }; then
24535   eval "$as_ac_Header=yes"
24536 else
24537   echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24539
24540 eval "$as_ac_Header=no"
24541 fi
24542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24543 fi
24544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24547   cat >>confdefs.h <<_ACEOF
24548 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24549 _ACEOF
24550
24551 ac_header_dirent=$ac_hdr; break
24552 fi
24553
24554 done
24555 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24556 if test $ac_header_dirent = dirent.h; then
24557   echo "$as_me:$LINENO: checking for library containing opendir" >&5
24558 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
24559 if test "${ac_cv_search_opendir+set}" = set; then
24560   echo $ECHO_N "(cached) $ECHO_C" >&6
24561 else
24562   ac_func_search_save_LIBS=$LIBS
24563 ac_cv_search_opendir=no
24564 cat >conftest.$ac_ext <<_ACEOF
24565 /* confdefs.h.  */
24566 _ACEOF
24567 cat confdefs.h >>conftest.$ac_ext
24568 cat >>conftest.$ac_ext <<_ACEOF
24569 /* end confdefs.h.  */
24570
24571 /* Override any gcc2 internal prototype to avoid an error.  */
24572 #ifdef __cplusplus
24573 extern "C"
24574 #endif
24575 /* We use char because int might match the return type of a gcc2
24576    builtin and then its argument prototype would still apply.  */
24577 char opendir ();
24578 int
24579 main ()
24580 {
24581 opendir ();
24582   ;
24583   return 0;
24584 }
24585 _ACEOF
24586 rm -f conftest.$ac_objext conftest$ac_exeext
24587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24588   (eval $ac_link) 2>conftest.er1
24589   ac_status=$?
24590   grep -v '^ *+' conftest.er1 >conftest.err
24591   rm -f conftest.er1
24592   cat conftest.err >&5
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); } &&
24595          { ac_try='test -z "$ac_c_werror_flag"
24596                          || test ! -s conftest.err'
24597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598   (eval $ac_try) 2>&5
24599   ac_status=$?
24600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); }; } &&
24602          { ac_try='test -s conftest$ac_exeext'
24603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604   (eval $ac_try) 2>&5
24605   ac_status=$?
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); }; }; then
24608   ac_cv_search_opendir="none required"
24609 else
24610   echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24612
24613 fi
24614 rm -f conftest.err conftest.$ac_objext \
24615       conftest$ac_exeext conftest.$ac_ext
24616 if test "$ac_cv_search_opendir" = no; then
24617   for ac_lib in dir; do
24618     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24619     cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h.  */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h.  */
24625
24626 /* Override any gcc2 internal prototype to avoid an error.  */
24627 #ifdef __cplusplus
24628 extern "C"
24629 #endif
24630 /* We use char because int might match the return type of a gcc2
24631    builtin and then its argument prototype would still apply.  */
24632 char opendir ();
24633 int
24634 main ()
24635 {
24636 opendir ();
24637   ;
24638   return 0;
24639 }
24640 _ACEOF
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24643   (eval $ac_link) 2>conftest.er1
24644   ac_status=$?
24645   grep -v '^ *+' conftest.er1 >conftest.err
24646   rm -f conftest.er1
24647   cat conftest.err >&5
24648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649   (exit $ac_status); } &&
24650          { ac_try='test -z "$ac_c_werror_flag"
24651                          || test ! -s conftest.err'
24652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653   (eval $ac_try) 2>&5
24654   ac_status=$?
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); }; } &&
24657          { ac_try='test -s conftest$ac_exeext'
24658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659   (eval $ac_try) 2>&5
24660   ac_status=$?
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); }; }; then
24663   ac_cv_search_opendir="-l$ac_lib"
24664 break
24665 else
24666   echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24668
24669 fi
24670 rm -f conftest.err conftest.$ac_objext \
24671       conftest$ac_exeext conftest.$ac_ext
24672   done
24673 fi
24674 LIBS=$ac_func_search_save_LIBS
24675 fi
24676 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24677 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24678 if test "$ac_cv_search_opendir" != no; then
24679   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24680
24681 fi
24682
24683 else
24684   echo "$as_me:$LINENO: checking for library containing opendir" >&5
24685 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
24686 if test "${ac_cv_search_opendir+set}" = set; then
24687   echo $ECHO_N "(cached) $ECHO_C" >&6
24688 else
24689   ac_func_search_save_LIBS=$LIBS
24690 ac_cv_search_opendir=no
24691 cat >conftest.$ac_ext <<_ACEOF
24692 /* confdefs.h.  */
24693 _ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h.  */
24697
24698 /* Override any gcc2 internal prototype to avoid an error.  */
24699 #ifdef __cplusplus
24700 extern "C"
24701 #endif
24702 /* We use char because int might match the return type of a gcc2
24703    builtin and then its argument prototype would still apply.  */
24704 char opendir ();
24705 int
24706 main ()
24707 {
24708 opendir ();
24709   ;
24710   return 0;
24711 }
24712 _ACEOF
24713 rm -f conftest.$ac_objext conftest$ac_exeext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24715   (eval $ac_link) 2>conftest.er1
24716   ac_status=$?
24717   grep -v '^ *+' conftest.er1 >conftest.err
24718   rm -f conftest.er1
24719   cat conftest.err >&5
24720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721   (exit $ac_status); } &&
24722          { ac_try='test -z "$ac_c_werror_flag"
24723                          || test ! -s conftest.err'
24724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24725   (eval $ac_try) 2>&5
24726   ac_status=$?
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); }; } &&
24729          { ac_try='test -s conftest$ac_exeext'
24730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731   (eval $ac_try) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); }; }; then
24735   ac_cv_search_opendir="none required"
24736 else
24737   echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24739
24740 fi
24741 rm -f conftest.err conftest.$ac_objext \
24742       conftest$ac_exeext conftest.$ac_ext
24743 if test "$ac_cv_search_opendir" = no; then
24744   for ac_lib in x; do
24745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24746     cat >conftest.$ac_ext <<_ACEOF
24747 /* confdefs.h.  */
24748 _ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h.  */
24752
24753 /* Override any gcc2 internal prototype to avoid an error.  */
24754 #ifdef __cplusplus
24755 extern "C"
24756 #endif
24757 /* We use char because int might match the return type of a gcc2
24758    builtin and then its argument prototype would still apply.  */
24759 char opendir ();
24760 int
24761 main ()
24762 {
24763 opendir ();
24764   ;
24765   return 0;
24766 }
24767 _ACEOF
24768 rm -f conftest.$ac_objext conftest$ac_exeext
24769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24770   (eval $ac_link) 2>conftest.er1
24771   ac_status=$?
24772   grep -v '^ *+' conftest.er1 >conftest.err
24773   rm -f conftest.er1
24774   cat conftest.err >&5
24775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776   (exit $ac_status); } &&
24777          { ac_try='test -z "$ac_c_werror_flag"
24778                          || test ! -s conftest.err'
24779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24780   (eval $ac_try) 2>&5
24781   ac_status=$?
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); }; } &&
24784          { ac_try='test -s conftest$ac_exeext'
24785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786   (eval $ac_try) 2>&5
24787   ac_status=$?
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); }; }; then
24790   ac_cv_search_opendir="-l$ac_lib"
24791 break
24792 else
24793   echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24795
24796 fi
24797 rm -f conftest.err conftest.$ac_objext \
24798       conftest$ac_exeext conftest.$ac_ext
24799   done
24800 fi
24801 LIBS=$ac_func_search_save_LIBS
24802 fi
24803 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
24804 echo "${ECHO_T}$ac_cv_search_opendir" >&6
24805 if test "$ac_cv_search_opendir" != no; then
24806   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
24807
24808 fi
24809
24810 fi
24811
24812
24813   # =================
24814   # AC_CHECK_HEADERS
24815   # =================
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
24837     setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
24838     sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h    \
24839     utime.h sysexits.h
24840 do
24841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24843   echo "$as_me:$LINENO: checking for $ac_header" >&5
24844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24846   echo $ECHO_N "(cached) $ECHO_C" >&6
24847 fi
24848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24850 else
24851   # Is the header compilable?
24852 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24854 cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h.  */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h.  */
24860 $ac_includes_default
24861 #include <$ac_header>
24862 _ACEOF
24863 rm -f conftest.$ac_objext
24864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24865   (eval $ac_compile) 2>conftest.er1
24866   ac_status=$?
24867   grep -v '^ *+' conftest.er1 >conftest.err
24868   rm -f conftest.er1
24869   cat conftest.err >&5
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); } &&
24872          { ac_try='test -z "$ac_c_werror_flag"
24873                          || test ! -s conftest.err'
24874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24875   (eval $ac_try) 2>&5
24876   ac_status=$?
24877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878   (exit $ac_status); }; } &&
24879          { ac_try='test -s conftest.$ac_objext'
24880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881   (eval $ac_try) 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); }; }; then
24885   ac_header_compiler=yes
24886 else
24887   echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24889
24890 ac_header_compiler=no
24891 fi
24892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24894 echo "${ECHO_T}$ac_header_compiler" >&6
24895
24896 # Is the header present?
24897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24899 cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905 #include <$ac_header>
24906 _ACEOF
24907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24908   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24909   ac_status=$?
24910   grep -v '^ *+' conftest.er1 >conftest.err
24911   rm -f conftest.er1
24912   cat conftest.err >&5
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); } >/dev/null; then
24915   if test -s conftest.err; then
24916     ac_cpp_err=$ac_c_preproc_warn_flag
24917     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24918   else
24919     ac_cpp_err=
24920   fi
24921 else
24922   ac_cpp_err=yes
24923 fi
24924 if test -z "$ac_cpp_err"; then
24925   ac_header_preproc=yes
24926 else
24927   echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24929
24930   ac_header_preproc=no
24931 fi
24932 rm -f conftest.err conftest.$ac_ext
24933 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24934 echo "${ECHO_T}$ac_header_preproc" >&6
24935
24936 # So?  What about this header?
24937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24938   yes:no: )
24939     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24943     ac_header_preproc=yes
24944     ;;
24945   no:yes:* )
24946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24948     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24949 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24950     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24952     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24953 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24956     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24958     (
24959       cat <<\_ASBOX
24960 ## ------------------------------------------ ##
24961 ## Report this to the AC_PACKAGE_NAME lists.  ##
24962 ## ------------------------------------------ ##
24963 _ASBOX
24964     ) |
24965       sed "s/^/$as_me: WARNING:     /" >&2
24966     ;;
24967 esac
24968 echo "$as_me:$LINENO: checking for $ac_header" >&5
24969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24971   echo $ECHO_N "(cached) $ECHO_C" >&6
24972 else
24973   eval "$as_ac_Header=\$ac_header_preproc"
24974 fi
24975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24977
24978 fi
24979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24980   cat >>confdefs.h <<_ACEOF
24981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24982 _ACEOF
24983
24984 fi
24985
24986 done
24987
24988
24989   # --------------------------------------------
24990   # Verify certain entries from AC_CHECK_HEADERS
24991   # --------------------------------------------
24992   for f in sys_types sys_mman sys_param sys_stat sys_wait \
24993            string errno stdlib memory setjmp
24994   do eval as_ac_var=\${ac_cv_header_${f}_h+set}
24995      test "${as_ac_var}" = set || \
24996        { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
24997 echo "$as_me: error: You must have ${f}.h on your system" >&2;}
24998    { (exit 1); exit 1; }; }
24999   done
25000
25001   # ================================================
25002   # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
25003   # if varargs.h is present define HAVE_VARARGS_H.
25004   # ================================================
25005
25006
25007 for ac_header in stdarg.h varargs.h
25008 do
25009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25011   echo "$as_me:$LINENO: checking for $ac_header" >&5
25012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25014   echo $ECHO_N "(cached) $ECHO_C" >&6
25015 fi
25016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25018 else
25019   # Is the header compilable?
25020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25022 cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h.  */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h.  */
25028 $ac_includes_default
25029 #include <$ac_header>
25030 _ACEOF
25031 rm -f conftest.$ac_objext
25032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25033   (eval $ac_compile) 2>conftest.er1
25034   ac_status=$?
25035   grep -v '^ *+' conftest.er1 >conftest.err
25036   rm -f conftest.er1
25037   cat conftest.err >&5
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); } &&
25040          { ac_try='test -z "$ac_c_werror_flag"
25041                          || test ! -s conftest.err'
25042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25043   (eval $ac_try) 2>&5
25044   ac_status=$?
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); }; } &&
25047          { ac_try='test -s conftest.$ac_objext'
25048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049   (eval $ac_try) 2>&5
25050   ac_status=$?
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); }; }; then
25053   ac_header_compiler=yes
25054 else
25055   echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25057
25058 ac_header_compiler=no
25059 fi
25060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25062 echo "${ECHO_T}$ac_header_compiler" >&6
25063
25064 # Is the header present?
25065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25067 cat >conftest.$ac_ext <<_ACEOF
25068 /* confdefs.h.  */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h.  */
25073 #include <$ac_header>
25074 _ACEOF
25075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25077   ac_status=$?
25078   grep -v '^ *+' conftest.er1 >conftest.err
25079   rm -f conftest.er1
25080   cat conftest.err >&5
25081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082   (exit $ac_status); } >/dev/null; then
25083   if test -s conftest.err; then
25084     ac_cpp_err=$ac_c_preproc_warn_flag
25085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25086   else
25087     ac_cpp_err=
25088   fi
25089 else
25090   ac_cpp_err=yes
25091 fi
25092 if test -z "$ac_cpp_err"; then
25093   ac_header_preproc=yes
25094 else
25095   echo "$as_me: failed program was:" >&5
25096 sed 's/^/| /' conftest.$ac_ext >&5
25097
25098   ac_header_preproc=no
25099 fi
25100 rm -f conftest.err conftest.$ac_ext
25101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25102 echo "${ECHO_T}$ac_header_preproc" >&6
25103
25104 # So?  What about this header?
25105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25106   yes:no: )
25107     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25111     ac_header_preproc=yes
25112     ;;
25113   no:yes:* )
25114     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25116     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25117 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25118     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25120     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25121 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25124     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25126     (
25127       cat <<\_ASBOX
25128 ## ------------------------------------------ ##
25129 ## Report this to the AC_PACKAGE_NAME lists.  ##
25130 ## ------------------------------------------ ##
25131 _ASBOX
25132     ) |
25133       sed "s/^/$as_me: WARNING:     /" >&2
25134     ;;
25135 esac
25136 echo "$as_me:$LINENO: checking for $ac_header" >&5
25137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25139   echo $ECHO_N "(cached) $ECHO_C" >&6
25140 else
25141   eval "$as_ac_Header=\$ac_header_preproc"
25142 fi
25143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25145
25146 fi
25147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25148   cat >>confdefs.h <<_ACEOF
25149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25150 _ACEOF
25151  break
25152 fi
25153
25154 done
25155
25156   if test `eval echo '${'$as_ac_Header'}'` != yes; then
25157     { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
25158 echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
25159    { (exit 1); exit 1; }; }
25160   fi
25161
25162   # ================================================
25163   # Similarly for the string.h and strings.h headers
25164   # ================================================
25165
25166
25167 for ac_header in string.h strings.h
25168 do
25169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25171   echo "$as_me:$LINENO: checking for $ac_header" >&5
25172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25174   echo $ECHO_N "(cached) $ECHO_C" >&6
25175 fi
25176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25178 else
25179   # Is the header compilable?
25180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25182 cat >conftest.$ac_ext <<_ACEOF
25183 /* confdefs.h.  */
25184 _ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h.  */
25188 $ac_includes_default
25189 #include <$ac_header>
25190 _ACEOF
25191 rm -f conftest.$ac_objext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25193   (eval $ac_compile) 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } &&
25200          { ac_try='test -z "$ac_c_werror_flag"
25201                          || test ! -s conftest.err'
25202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; } &&
25207          { ac_try='test -s conftest.$ac_objext'
25208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; }; then
25213   ac_header_compiler=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218 ac_header_compiler=no
25219 fi
25220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25222 echo "${ECHO_T}$ac_header_compiler" >&6
25223
25224 # Is the header present?
25225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25227 cat >conftest.$ac_ext <<_ACEOF
25228 /* confdefs.h.  */
25229 _ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h.  */
25233 #include <$ac_header>
25234 _ACEOF
25235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25237   ac_status=$?
25238   grep -v '^ *+' conftest.er1 >conftest.err
25239   rm -f conftest.er1
25240   cat conftest.err >&5
25241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); } >/dev/null; then
25243   if test -s conftest.err; then
25244     ac_cpp_err=$ac_c_preproc_warn_flag
25245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25246   else
25247     ac_cpp_err=
25248   fi
25249 else
25250   ac_cpp_err=yes
25251 fi
25252 if test -z "$ac_cpp_err"; then
25253   ac_header_preproc=yes
25254 else
25255   echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25257
25258   ac_header_preproc=no
25259 fi
25260 rm -f conftest.err conftest.$ac_ext
25261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25262 echo "${ECHO_T}$ac_header_preproc" >&6
25263
25264 # So?  What about this header?
25265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25266   yes:no: )
25267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25271     ac_header_preproc=yes
25272     ;;
25273   no:yes:* )
25274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25286     (
25287       cat <<\_ASBOX
25288 ## ------------------------------------------ ##
25289 ## Report this to the AC_PACKAGE_NAME lists.  ##
25290 ## ------------------------------------------ ##
25291 _ASBOX
25292     ) |
25293       sed "s/^/$as_me: WARNING:     /" >&2
25294     ;;
25295 esac
25296 echo "$as_me:$LINENO: checking for $ac_header" >&5
25297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25299   echo $ECHO_N "(cached) $ECHO_C" >&6
25300 else
25301   eval "$as_ac_Header=\$ac_header_preproc"
25302 fi
25303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25305
25306 fi
25307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25308   cat >>confdefs.h <<_ACEOF
25309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25310 _ACEOF
25311  break
25312 fi
25313
25314 done
25315
25316   if test `eval echo '${'$as_ac_Header'}'` != yes; then
25317     { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
25318 echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
25319    { (exit 1); exit 1; }; }
25320   fi
25321
25322   # =====================
25323   # ...and limits headers
25324   # =====================
25325
25326
25327
25328 for ac_header in limits.h sys/limits.h values.h
25329 do
25330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25332   echo "$as_me:$LINENO: checking for $ac_header" >&5
25333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25335   echo $ECHO_N "(cached) $ECHO_C" >&6
25336 fi
25337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25339 else
25340   # Is the header compilable?
25341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25343 cat >conftest.$ac_ext <<_ACEOF
25344 /* confdefs.h.  */
25345 _ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h.  */
25349 $ac_includes_default
25350 #include <$ac_header>
25351 _ACEOF
25352 rm -f conftest.$ac_objext
25353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25354   (eval $ac_compile) 2>conftest.er1
25355   ac_status=$?
25356   grep -v '^ *+' conftest.er1 >conftest.err
25357   rm -f conftest.er1
25358   cat conftest.err >&5
25359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360   (exit $ac_status); } &&
25361          { ac_try='test -z "$ac_c_werror_flag"
25362                          || test ! -s conftest.err'
25363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25364   (eval $ac_try) 2>&5
25365   ac_status=$?
25366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367   (exit $ac_status); }; } &&
25368          { ac_try='test -s conftest.$ac_objext'
25369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370   (eval $ac_try) 2>&5
25371   ac_status=$?
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); }; }; then
25374   ac_header_compiler=yes
25375 else
25376   echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25378
25379 ac_header_compiler=no
25380 fi
25381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25383 echo "${ECHO_T}$ac_header_compiler" >&6
25384
25385 # Is the header present?
25386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25388 cat >conftest.$ac_ext <<_ACEOF
25389 /* confdefs.h.  */
25390 _ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h.  */
25394 #include <$ac_header>
25395 _ACEOF
25396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25398   ac_status=$?
25399   grep -v '^ *+' conftest.er1 >conftest.err
25400   rm -f conftest.er1
25401   cat conftest.err >&5
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } >/dev/null; then
25404   if test -s conftest.err; then
25405     ac_cpp_err=$ac_c_preproc_warn_flag
25406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25407   else
25408     ac_cpp_err=
25409   fi
25410 else
25411   ac_cpp_err=yes
25412 fi
25413 if test -z "$ac_cpp_err"; then
25414   ac_header_preproc=yes
25415 else
25416   echo "$as_me: failed program was:" >&5
25417 sed 's/^/| /' conftest.$ac_ext >&5
25418
25419   ac_header_preproc=no
25420 fi
25421 rm -f conftest.err conftest.$ac_ext
25422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25423 echo "${ECHO_T}$ac_header_preproc" >&6
25424
25425 # So?  What about this header?
25426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25427   yes:no: )
25428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25432     ac_header_preproc=yes
25433     ;;
25434   no:yes:* )
25435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25447     (
25448       cat <<\_ASBOX
25449 ## ------------------------------------------ ##
25450 ## Report this to the AC_PACKAGE_NAME lists.  ##
25451 ## ------------------------------------------ ##
25452 _ASBOX
25453     ) |
25454       sed "s/^/$as_me: WARNING:     /" >&2
25455     ;;
25456 esac
25457 echo "$as_me:$LINENO: checking for $ac_header" >&5
25458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25460   echo $ECHO_N "(cached) $ECHO_C" >&6
25461 else
25462   eval "$as_ac_Header=\$ac_header_preproc"
25463 fi
25464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25466
25467 fi
25468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25469   cat >>confdefs.h <<_ACEOF
25470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25471 _ACEOF
25472  break
25473 fi
25474
25475 done
25476
25477   if test `eval echo '${'$as_ac_Header'}'` != yes; then
25478     { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
25479 echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
25480    { (exit 1); exit 1; }; }
25481   fi
25482
25483   # ========================
25484   # ...and int types headers
25485   # ========================
25486
25487
25488 for ac_header in stdint.h inttypes.h
25489 do
25490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25492   echo "$as_me:$LINENO: checking for $ac_header" >&5
25493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25495   echo $ECHO_N "(cached) $ECHO_C" >&6
25496 fi
25497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25499 else
25500   # Is the header compilable?
25501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25503 cat >conftest.$ac_ext <<_ACEOF
25504 /* confdefs.h.  */
25505 _ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h.  */
25509 $ac_includes_default
25510 #include <$ac_header>
25511 _ACEOF
25512 rm -f conftest.$ac_objext
25513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25514   (eval $ac_compile) 2>conftest.er1
25515   ac_status=$?
25516   grep -v '^ *+' conftest.er1 >conftest.err
25517   rm -f conftest.er1
25518   cat conftest.err >&5
25519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520   (exit $ac_status); } &&
25521          { ac_try='test -z "$ac_c_werror_flag"
25522                          || test ! -s conftest.err'
25523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524   (eval $ac_try) 2>&5
25525   ac_status=$?
25526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527   (exit $ac_status); }; } &&
25528          { ac_try='test -s conftest.$ac_objext'
25529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530   (eval $ac_try) 2>&5
25531   ac_status=$?
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); }; }; then
25534   ac_header_compiler=yes
25535 else
25536   echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25538
25539 ac_header_compiler=no
25540 fi
25541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25542 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25543 echo "${ECHO_T}$ac_header_compiler" >&6
25544
25545 # Is the header present?
25546 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25548 cat >conftest.$ac_ext <<_ACEOF
25549 /* confdefs.h.  */
25550 _ACEOF
25551 cat confdefs.h >>conftest.$ac_ext
25552 cat >>conftest.$ac_ext <<_ACEOF
25553 /* end confdefs.h.  */
25554 #include <$ac_header>
25555 _ACEOF
25556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25558   ac_status=$?
25559   grep -v '^ *+' conftest.er1 >conftest.err
25560   rm -f conftest.er1
25561   cat conftest.err >&5
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); } >/dev/null; then
25564   if test -s conftest.err; then
25565     ac_cpp_err=$ac_c_preproc_warn_flag
25566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25567   else
25568     ac_cpp_err=
25569   fi
25570 else
25571   ac_cpp_err=yes
25572 fi
25573 if test -z "$ac_cpp_err"; then
25574   ac_header_preproc=yes
25575 else
25576   echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25578
25579   ac_header_preproc=no
25580 fi
25581 rm -f conftest.err conftest.$ac_ext
25582 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25583 echo "${ECHO_T}$ac_header_preproc" >&6
25584
25585 # So?  What about this header?
25586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25587   yes:no: )
25588     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25592     ac_header_preproc=yes
25593     ;;
25594   no:yes:* )
25595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25597     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25598 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25599     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25601     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25602 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25605     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25607     (
25608       cat <<\_ASBOX
25609 ## ------------------------------------------ ##
25610 ## Report this to the AC_PACKAGE_NAME lists.  ##
25611 ## ------------------------------------------ ##
25612 _ASBOX
25613     ) |
25614       sed "s/^/$as_me: WARNING:     /" >&2
25615     ;;
25616 esac
25617 echo "$as_me:$LINENO: checking for $ac_header" >&5
25618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25620   echo $ECHO_N "(cached) $ECHO_C" >&6
25621 else
25622   eval "$as_ac_Header=\$ac_header_preproc"
25623 fi
25624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25626
25627 fi
25628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25629   cat >>confdefs.h <<_ACEOF
25630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25631 _ACEOF
25632  break
25633 fi
25634
25635 done
25636
25637   echo "$as_me:$LINENO: checking for int8_t" >&5
25638 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
25639 if test "${ac_cv_type_int8_t+set}" = set; then
25640   echo $ECHO_N "(cached) $ECHO_C" >&6
25641 else
25642   cat >conftest.$ac_ext <<_ACEOF
25643 /* confdefs.h.  */
25644 _ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h.  */
25648 $ac_includes_default
25649 int
25650 main ()
25651 {
25652 if ((int8_t *) 0)
25653   return 0;
25654 if (sizeof (int8_t))
25655   return 0;
25656   ;
25657   return 0;
25658 }
25659 _ACEOF
25660 rm -f conftest.$ac_objext
25661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25662   (eval $ac_compile) 2>conftest.er1
25663   ac_status=$?
25664   grep -v '^ *+' conftest.er1 >conftest.err
25665   rm -f conftest.er1
25666   cat conftest.err >&5
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); } &&
25669          { ac_try='test -z "$ac_c_werror_flag"
25670                          || test ! -s conftest.err'
25671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672   (eval $ac_try) 2>&5
25673   ac_status=$?
25674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675   (exit $ac_status); }; } &&
25676          { ac_try='test -s conftest.$ac_objext'
25677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25678   (eval $ac_try) 2>&5
25679   ac_status=$?
25680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681   (exit $ac_status); }; }; then
25682   ac_cv_type_int8_t=yes
25683 else
25684   echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25686
25687 ac_cv_type_int8_t=no
25688 fi
25689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25690 fi
25691 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
25692 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
25693 if test $ac_cv_type_int8_t = yes; then
25694
25695 cat >>confdefs.h <<_ACEOF
25696 #define HAVE_INT8_T 1
25697 _ACEOF
25698
25699
25700 fi
25701 echo "$as_me:$LINENO: checking for uint8_t" >&5
25702 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
25703 if test "${ac_cv_type_uint8_t+set}" = set; then
25704   echo $ECHO_N "(cached) $ECHO_C" >&6
25705 else
25706   cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h.  */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h.  */
25712 $ac_includes_default
25713 int
25714 main ()
25715 {
25716 if ((uint8_t *) 0)
25717   return 0;
25718 if (sizeof (uint8_t))
25719   return 0;
25720   ;
25721   return 0;
25722 }
25723 _ACEOF
25724 rm -f conftest.$ac_objext
25725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25726   (eval $ac_compile) 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } &&
25733          { ac_try='test -z "$ac_c_werror_flag"
25734                          || test ! -s conftest.err'
25735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736   (eval $ac_try) 2>&5
25737   ac_status=$?
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); }; } &&
25740          { ac_try='test -s conftest.$ac_objext'
25741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742   (eval $ac_try) 2>&5
25743   ac_status=$?
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); }; }; then
25746   ac_cv_type_uint8_t=yes
25747 else
25748   echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751 ac_cv_type_uint8_t=no
25752 fi
25753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25754 fi
25755 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
25756 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
25757 if test $ac_cv_type_uint8_t = yes; then
25758
25759 cat >>confdefs.h <<_ACEOF
25760 #define HAVE_UINT8_T 1
25761 _ACEOF
25762
25763
25764 fi
25765 echo "$as_me:$LINENO: checking for int16_t" >&5
25766 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
25767 if test "${ac_cv_type_int16_t+set}" = set; then
25768   echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25770   cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h.  */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h.  */
25776 $ac_includes_default
25777 int
25778 main ()
25779 {
25780 if ((int16_t *) 0)
25781   return 0;
25782 if (sizeof (int16_t))
25783   return 0;
25784   ;
25785   return 0;
25786 }
25787 _ACEOF
25788 rm -f conftest.$ac_objext
25789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25790   (eval $ac_compile) 2>conftest.er1
25791   ac_status=$?
25792   grep -v '^ *+' conftest.er1 >conftest.err
25793   rm -f conftest.er1
25794   cat conftest.err >&5
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); } &&
25797          { ac_try='test -z "$ac_c_werror_flag"
25798                          || test ! -s conftest.err'
25799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800   (eval $ac_try) 2>&5
25801   ac_status=$?
25802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); }; } &&
25804          { ac_try='test -s conftest.$ac_objext'
25805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806   (eval $ac_try) 2>&5
25807   ac_status=$?
25808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809   (exit $ac_status); }; }; then
25810   ac_cv_type_int16_t=yes
25811 else
25812   echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.$ac_ext >&5
25814
25815 ac_cv_type_int16_t=no
25816 fi
25817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25818 fi
25819 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
25820 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
25821 if test $ac_cv_type_int16_t = yes; then
25822
25823 cat >>confdefs.h <<_ACEOF
25824 #define HAVE_INT16_T 1
25825 _ACEOF
25826
25827
25828 fi
25829 echo "$as_me:$LINENO: checking for uint16_t" >&5
25830 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
25831 if test "${ac_cv_type_uint16_t+set}" = set; then
25832   echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25834   cat >conftest.$ac_ext <<_ACEOF
25835 /* confdefs.h.  */
25836 _ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h.  */
25840 $ac_includes_default
25841 int
25842 main ()
25843 {
25844 if ((uint16_t *) 0)
25845   return 0;
25846 if (sizeof (uint16_t))
25847   return 0;
25848   ;
25849   return 0;
25850 }
25851 _ACEOF
25852 rm -f conftest.$ac_objext
25853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25854   (eval $ac_compile) 2>conftest.er1
25855   ac_status=$?
25856   grep -v '^ *+' conftest.er1 >conftest.err
25857   rm -f conftest.er1
25858   cat conftest.err >&5
25859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860   (exit $ac_status); } &&
25861          { ac_try='test -z "$ac_c_werror_flag"
25862                          || test ! -s conftest.err'
25863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25864   (eval $ac_try) 2>&5
25865   ac_status=$?
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); }; } &&
25868          { ac_try='test -s conftest.$ac_objext'
25869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870   (eval $ac_try) 2>&5
25871   ac_status=$?
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); }; }; then
25874   ac_cv_type_uint16_t=yes
25875 else
25876   echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25878
25879 ac_cv_type_uint16_t=no
25880 fi
25881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25882 fi
25883 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
25884 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
25885 if test $ac_cv_type_uint16_t = yes; then
25886
25887 cat >>confdefs.h <<_ACEOF
25888 #define HAVE_UINT16_T 1
25889 _ACEOF
25890
25891
25892 fi
25893 echo "$as_me:$LINENO: checking for int32_t" >&5
25894 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
25895 if test "${ac_cv_type_int32_t+set}" = set; then
25896   echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898   cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h.  */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h.  */
25904 $ac_includes_default
25905 int
25906 main ()
25907 {
25908 if ((int32_t *) 0)
25909   return 0;
25910 if (sizeof (int32_t))
25911   return 0;
25912   ;
25913   return 0;
25914 }
25915 _ACEOF
25916 rm -f conftest.$ac_objext
25917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25918   (eval $ac_compile) 2>conftest.er1
25919   ac_status=$?
25920   grep -v '^ *+' conftest.er1 >conftest.err
25921   rm -f conftest.er1
25922   cat conftest.err >&5
25923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924   (exit $ac_status); } &&
25925          { ac_try='test -z "$ac_c_werror_flag"
25926                          || test ! -s conftest.err'
25927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25928   (eval $ac_try) 2>&5
25929   ac_status=$?
25930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931   (exit $ac_status); }; } &&
25932          { ac_try='test -s conftest.$ac_objext'
25933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934   (eval $ac_try) 2>&5
25935   ac_status=$?
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); }; }; then
25938   ac_cv_type_int32_t=yes
25939 else
25940   echo "$as_me: failed program was:" >&5
25941 sed 's/^/| /' conftest.$ac_ext >&5
25942
25943 ac_cv_type_int32_t=no
25944 fi
25945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25946 fi
25947 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
25948 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
25949 if test $ac_cv_type_int32_t = yes; then
25950
25951 cat >>confdefs.h <<_ACEOF
25952 #define HAVE_INT32_T 1
25953 _ACEOF
25954
25955
25956 fi
25957 echo "$as_me:$LINENO: checking for uint32_t" >&5
25958 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
25959 if test "${ac_cv_type_uint32_t+set}" = set; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   cat >conftest.$ac_ext <<_ACEOF
25963 /* confdefs.h.  */
25964 _ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h.  */
25968 $ac_includes_default
25969 int
25970 main ()
25971 {
25972 if ((uint32_t *) 0)
25973   return 0;
25974 if (sizeof (uint32_t))
25975   return 0;
25976   ;
25977   return 0;
25978 }
25979 _ACEOF
25980 rm -f conftest.$ac_objext
25981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25982   (eval $ac_compile) 2>conftest.er1
25983   ac_status=$?
25984   grep -v '^ *+' conftest.er1 >conftest.err
25985   rm -f conftest.er1
25986   cat conftest.err >&5
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); } &&
25989          { ac_try='test -z "$ac_c_werror_flag"
25990                          || test ! -s conftest.err'
25991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992   (eval $ac_try) 2>&5
25993   ac_status=$?
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); }; } &&
25996          { ac_try='test -s conftest.$ac_objext'
25997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998   (eval $ac_try) 2>&5
25999   ac_status=$?
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); }; }; then
26002   ac_cv_type_uint32_t=yes
26003 else
26004   echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26006
26007 ac_cv_type_uint32_t=no
26008 fi
26009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26010 fi
26011 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
26012 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
26013 if test $ac_cv_type_uint32_t = yes; then
26014
26015 cat >>confdefs.h <<_ACEOF
26016 #define HAVE_UINT32_T 1
26017 _ACEOF
26018
26019
26020 fi
26021 echo "$as_me:$LINENO: checking for intptr_t" >&5
26022 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
26023 if test "${ac_cv_type_intptr_t+set}" = set; then
26024   echo $ECHO_N "(cached) $ECHO_C" >&6
26025 else
26026   cat >conftest.$ac_ext <<_ACEOF
26027 /* confdefs.h.  */
26028 _ACEOF
26029 cat confdefs.h >>conftest.$ac_ext
26030 cat >>conftest.$ac_ext <<_ACEOF
26031 /* end confdefs.h.  */
26032 $ac_includes_default
26033 int
26034 main ()
26035 {
26036 if ((intptr_t *) 0)
26037   return 0;
26038 if (sizeof (intptr_t))
26039   return 0;
26040   ;
26041   return 0;
26042 }
26043 _ACEOF
26044 rm -f conftest.$ac_objext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26046   (eval $ac_compile) 2>conftest.er1
26047   ac_status=$?
26048   grep -v '^ *+' conftest.er1 >conftest.err
26049   rm -f conftest.er1
26050   cat conftest.err >&5
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); } &&
26053          { ac_try='test -z "$ac_c_werror_flag"
26054                          || test ! -s conftest.err'
26055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056   (eval $ac_try) 2>&5
26057   ac_status=$?
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); }; } &&
26060          { ac_try='test -s conftest.$ac_objext'
26061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062   (eval $ac_try) 2>&5
26063   ac_status=$?
26064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065   (exit $ac_status); }; }; then
26066   ac_cv_type_intptr_t=yes
26067 else
26068   echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26070
26071 ac_cv_type_intptr_t=no
26072 fi
26073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26074 fi
26075 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
26076 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
26077 if test $ac_cv_type_intptr_t = yes; then
26078
26079 cat >>confdefs.h <<_ACEOF
26080 #define HAVE_INTPTR_T 1
26081 _ACEOF
26082
26083
26084 fi
26085 echo "$as_me:$LINENO: checking for uint_t" >&5
26086 echo $ECHO_N "checking for uint_t... $ECHO_C" >&6
26087 if test "${ac_cv_type_uint_t+set}" = set; then
26088   echo $ECHO_N "(cached) $ECHO_C" >&6
26089 else
26090   cat >conftest.$ac_ext <<_ACEOF
26091 /* confdefs.h.  */
26092 _ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h.  */
26096 $ac_includes_default
26097 int
26098 main ()
26099 {
26100 if ((uint_t *) 0)
26101   return 0;
26102 if (sizeof (uint_t))
26103   return 0;
26104   ;
26105   return 0;
26106 }
26107 _ACEOF
26108 rm -f conftest.$ac_objext
26109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26110   (eval $ac_compile) 2>conftest.er1
26111   ac_status=$?
26112   grep -v '^ *+' conftest.er1 >conftest.err
26113   rm -f conftest.er1
26114   cat conftest.err >&5
26115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); } &&
26117          { ac_try='test -z "$ac_c_werror_flag"
26118                          || test ! -s conftest.err'
26119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120   (eval $ac_try) 2>&5
26121   ac_status=$?
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); }; } &&
26124          { ac_try='test -s conftest.$ac_objext'
26125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126   (eval $ac_try) 2>&5
26127   ac_status=$?
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); }; }; then
26130   ac_cv_type_uint_t=yes
26131 else
26132   echo "$as_me: failed program was:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26134
26135 ac_cv_type_uint_t=no
26136 fi
26137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26138 fi
26139 echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
26140 echo "${ECHO_T}$ac_cv_type_uint_t" >&6
26141 if test $ac_cv_type_uint_t = yes; then
26142
26143 cat >>confdefs.h <<_ACEOF
26144 #define HAVE_UINT_T 1
26145 _ACEOF
26146
26147
26148 fi
26149
26150
26151   # ====================
26152   # uintptr type & sizes
26153   # ====================
26154   echo "$as_me:$LINENO: checking for uintptr_t" >&5
26155 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
26156 if test "${ac_cv_type_uintptr_t+set}" = set; then
26157   echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159   cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 $ac_includes_default
26166 int
26167 main ()
26168 {
26169 if ((uintptr_t *) 0)
26170   return 0;
26171 if (sizeof (uintptr_t))
26172   return 0;
26173   ;
26174   return 0;
26175 }
26176 _ACEOF
26177 rm -f conftest.$ac_objext
26178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26179   (eval $ac_compile) 2>conftest.er1
26180   ac_status=$?
26181   grep -v '^ *+' conftest.er1 >conftest.err
26182   rm -f conftest.er1
26183   cat conftest.err >&5
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); } &&
26186          { ac_try='test -z "$ac_c_werror_flag"
26187                          || test ! -s conftest.err'
26188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26189   (eval $ac_try) 2>&5
26190   ac_status=$?
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); }; } &&
26193          { ac_try='test -s conftest.$ac_objext'
26194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195   (eval $ac_try) 2>&5
26196   ac_status=$?
26197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); }; }; then
26199   ac_cv_type_uintptr_t=yes
26200 else
26201   echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26203
26204 ac_cv_type_uintptr_t=no
26205 fi
26206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26207 fi
26208 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
26209 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
26210 if test $ac_cv_type_uintptr_t = yes; then
26211
26212 cat >>confdefs.h <<_ACEOF
26213 #define HAVE_UINTPTR_T 1
26214 _ACEOF
26215
26216
26217 else
26218
26219 cat >>confdefs.h <<\_ACEOF
26220 #define uintptr_t unsigned long
26221 _ACEOF
26222
26223 fi
26224
26225   echo "$as_me:$LINENO: checking for char*" >&5
26226 echo $ECHO_N "checking for char*... $ECHO_C" >&6
26227 if test "${ac_cv_type_charp+set}" = set; then
26228   echo $ECHO_N "(cached) $ECHO_C" >&6
26229 else
26230   cat >conftest.$ac_ext <<_ACEOF
26231 /* confdefs.h.  */
26232 _ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h.  */
26236 $ac_includes_default
26237 int
26238 main ()
26239 {
26240 if ((char* *) 0)
26241   return 0;
26242 if (sizeof (char*))
26243   return 0;
26244   ;
26245   return 0;
26246 }
26247 _ACEOF
26248 rm -f conftest.$ac_objext
26249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26250   (eval $ac_compile) 2>conftest.er1
26251   ac_status=$?
26252   grep -v '^ *+' conftest.er1 >conftest.err
26253   rm -f conftest.er1
26254   cat conftest.err >&5
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); } &&
26257          { ac_try='test -z "$ac_c_werror_flag"
26258                          || test ! -s conftest.err'
26259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26260   (eval $ac_try) 2>&5
26261   ac_status=$?
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); }; } &&
26264          { ac_try='test -s conftest.$ac_objext'
26265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266   (eval $ac_try) 2>&5
26267   ac_status=$?
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); }; }; then
26270   ac_cv_type_charp=yes
26271 else
26272   echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26274
26275 ac_cv_type_charp=no
26276 fi
26277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26278 fi
26279 echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
26280 echo "${ECHO_T}$ac_cv_type_charp" >&6
26281
26282 echo "$as_me:$LINENO: checking size of char*" >&5
26283 echo $ECHO_N "checking size of char*... $ECHO_C" >&6
26284 if test "${ac_cv_sizeof_charp+set}" = set; then
26285   echo $ECHO_N "(cached) $ECHO_C" >&6
26286 else
26287   if test "$ac_cv_type_charp" = yes; then
26288   # The cast to unsigned long works around a bug in the HP C Compiler
26289   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26290   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26291   # This bug is HP SR number 8606223364.
26292   if test "$cross_compiling" = yes; then
26293   # Depending upon the size, compute the lo and hi bounds.
26294 cat >conftest.$ac_ext <<_ACEOF
26295 /* confdefs.h.  */
26296 _ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h.  */
26300 $ac_includes_default
26301 int
26302 main ()
26303 {
26304 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
26305 test_array [0] = 0
26306
26307   ;
26308   return 0;
26309 }
26310 _ACEOF
26311 rm -f conftest.$ac_objext
26312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26313   (eval $ac_compile) 2>conftest.er1
26314   ac_status=$?
26315   grep -v '^ *+' conftest.er1 >conftest.err
26316   rm -f conftest.er1
26317   cat conftest.err >&5
26318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319   (exit $ac_status); } &&
26320          { ac_try='test -z "$ac_c_werror_flag"
26321                          || test ! -s conftest.err'
26322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26323   (eval $ac_try) 2>&5
26324   ac_status=$?
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); }; } &&
26327          { ac_try='test -s conftest.$ac_objext'
26328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26329   (eval $ac_try) 2>&5
26330   ac_status=$?
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); }; }; then
26333   ac_lo=0 ac_mid=0
26334   while :; do
26335     cat >conftest.$ac_ext <<_ACEOF
26336 /* confdefs.h.  */
26337 _ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h.  */
26341 $ac_includes_default
26342 int
26343 main ()
26344 {
26345 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
26346 test_array [0] = 0
26347
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext
26353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26354   (eval $ac_compile) 2>conftest.er1
26355   ac_status=$?
26356   grep -v '^ *+' conftest.er1 >conftest.err
26357   rm -f conftest.er1
26358   cat conftest.err >&5
26359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } &&
26361          { ac_try='test -z "$ac_c_werror_flag"
26362                          || test ! -s conftest.err'
26363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364   (eval $ac_try) 2>&5
26365   ac_status=$?
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); }; } &&
26368          { ac_try='test -s conftest.$ac_objext'
26369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370   (eval $ac_try) 2>&5
26371   ac_status=$?
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); }; }; then
26374   ac_hi=$ac_mid; break
26375 else
26376   echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 ac_lo=`expr $ac_mid + 1`
26380                     if test $ac_lo -le $ac_mid; then
26381                       ac_lo= ac_hi=
26382                       break
26383                     fi
26384                     ac_mid=`expr 2 '*' $ac_mid + 1`
26385 fi
26386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26387   done
26388 else
26389   echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26391
26392 cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h.  */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h.  */
26398 $ac_includes_default
26399 int
26400 main ()
26401 {
26402 static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
26403 test_array [0] = 0
26404
26405   ;
26406   return 0;
26407 }
26408 _ACEOF
26409 rm -f conftest.$ac_objext
26410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26411   (eval $ac_compile) 2>conftest.er1
26412   ac_status=$?
26413   grep -v '^ *+' conftest.er1 >conftest.err
26414   rm -f conftest.er1
26415   cat conftest.err >&5
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); } &&
26418          { ac_try='test -z "$ac_c_werror_flag"
26419                          || test ! -s conftest.err'
26420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26421   (eval $ac_try) 2>&5
26422   ac_status=$?
26423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424   (exit $ac_status); }; } &&
26425          { ac_try='test -s conftest.$ac_objext'
26426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427   (eval $ac_try) 2>&5
26428   ac_status=$?
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); }; }; then
26431   ac_hi=-1 ac_mid=-1
26432   while :; do
26433     cat >conftest.$ac_ext <<_ACEOF
26434 /* confdefs.h.  */
26435 _ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h.  */
26439 $ac_includes_default
26440 int
26441 main ()
26442 {
26443 static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
26444 test_array [0] = 0
26445
26446   ;
26447   return 0;
26448 }
26449 _ACEOF
26450 rm -f conftest.$ac_objext
26451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26452   (eval $ac_compile) 2>conftest.er1
26453   ac_status=$?
26454   grep -v '^ *+' conftest.er1 >conftest.err
26455   rm -f conftest.er1
26456   cat conftest.err >&5
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); } &&
26459          { ac_try='test -z "$ac_c_werror_flag"
26460                          || test ! -s conftest.err'
26461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462   (eval $ac_try) 2>&5
26463   ac_status=$?
26464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465   (exit $ac_status); }; } &&
26466          { ac_try='test -s conftest.$ac_objext'
26467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468   (eval $ac_try) 2>&5
26469   ac_status=$?
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); }; }; then
26472   ac_lo=$ac_mid; break
26473 else
26474   echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26476
26477 ac_hi=`expr '(' $ac_mid ')' - 1`
26478                        if test $ac_mid -le $ac_hi; then
26479                          ac_lo= ac_hi=
26480                          break
26481                        fi
26482                        ac_mid=`expr 2 '*' $ac_mid`
26483 fi
26484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26485   done
26486 else
26487   echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490 ac_lo= ac_hi=
26491 fi
26492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26493 fi
26494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26495 # Binary search between lo and hi bounds.
26496 while test "x$ac_lo" != "x$ac_hi"; do
26497   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26498   cat >conftest.$ac_ext <<_ACEOF
26499 /* confdefs.h.  */
26500 _ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h.  */
26504 $ac_includes_default
26505 int
26506 main ()
26507 {
26508 static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
26509 test_array [0] = 0
26510
26511   ;
26512   return 0;
26513 }
26514 _ACEOF
26515 rm -f conftest.$ac_objext
26516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26517   (eval $ac_compile) 2>conftest.er1
26518   ac_status=$?
26519   grep -v '^ *+' conftest.er1 >conftest.err
26520   rm -f conftest.er1
26521   cat conftest.err >&5
26522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523   (exit $ac_status); } &&
26524          { ac_try='test -z "$ac_c_werror_flag"
26525                          || test ! -s conftest.err'
26526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527   (eval $ac_try) 2>&5
26528   ac_status=$?
26529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530   (exit $ac_status); }; } &&
26531          { ac_try='test -s conftest.$ac_objext'
26532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533   (eval $ac_try) 2>&5
26534   ac_status=$?
26535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536   (exit $ac_status); }; }; then
26537   ac_hi=$ac_mid
26538 else
26539   echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26541
26542 ac_lo=`expr '(' $ac_mid ')' + 1`
26543 fi
26544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26545 done
26546 case $ac_lo in
26547 ?*) ac_cv_sizeof_charp=$ac_lo;;
26548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
26549 See \`config.log' for more details." >&5
26550 echo "$as_me: error: cannot compute sizeof (char*), 77
26551 See \`config.log' for more details." >&2;}
26552    { (exit 1); exit 1; }; } ;;
26553 esac
26554 else
26555   if test "$cross_compiling" = yes; then
26556   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26557 See \`config.log' for more details." >&5
26558 echo "$as_me: error: cannot run test program while cross compiling
26559 See \`config.log' for more details." >&2;}
26560    { (exit 1); exit 1; }; }
26561 else
26562   cat >conftest.$ac_ext <<_ACEOF
26563 /* confdefs.h.  */
26564 _ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h.  */
26568 $ac_includes_default
26569 long longval () { return (long) (sizeof (char*)); }
26570 unsigned long ulongval () { return (long) (sizeof (char*)); }
26571 #include <stdio.h>
26572 #include <stdlib.h>
26573 int
26574 main ()
26575 {
26576
26577   FILE *f = fopen ("conftest.val", "w");
26578   if (! f)
26579     exit (1);
26580   if (((long) (sizeof (char*))) < 0)
26581     {
26582       long i = longval ();
26583       if (i != ((long) (sizeof (char*))))
26584         exit (1);
26585       fprintf (f, "%ld\n", i);
26586     }
26587   else
26588     {
26589       unsigned long i = ulongval ();
26590       if (i != ((long) (sizeof (char*))))
26591         exit (1);
26592       fprintf (f, "%lu\n", i);
26593     }
26594   exit (ferror (f) || fclose (f) != 0);
26595
26596   ;
26597   return 0;
26598 }
26599 _ACEOF
26600 rm -f conftest$ac_exeext
26601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26602   (eval $ac_link) 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26607   (eval $ac_try) 2>&5
26608   ac_status=$?
26609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610   (exit $ac_status); }; }; then
26611   ac_cv_sizeof_charp=`cat conftest.val`
26612 else
26613   echo "$as_me: program exited with status $ac_status" >&5
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26616
26617 ( exit $ac_status )
26618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
26619 See \`config.log' for more details." >&5
26620 echo "$as_me: error: cannot compute sizeof (char*), 77
26621 See \`config.log' for more details." >&2;}
26622    { (exit 1); exit 1; }; }
26623 fi
26624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26625 fi
26626 fi
26627 rm -f conftest.val
26628 else
26629   ac_cv_sizeof_charp=0
26630 fi
26631 fi
26632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
26633 echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
26634 cat >>confdefs.h <<_ACEOF
26635 #define SIZEOF_CHARP $ac_cv_sizeof_charp
26636 _ACEOF
26637
26638
26639   echo "$as_me:$LINENO: checking for int" >&5
26640 echo $ECHO_N "checking for int... $ECHO_C" >&6
26641 if test "${ac_cv_type_int+set}" = set; then
26642   echo $ECHO_N "(cached) $ECHO_C" >&6
26643 else
26644   cat >conftest.$ac_ext <<_ACEOF
26645 /* confdefs.h.  */
26646 _ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h.  */
26650 $ac_includes_default
26651 int
26652 main ()
26653 {
26654 if ((int *) 0)
26655   return 0;
26656 if (sizeof (int))
26657   return 0;
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 rm -f conftest.$ac_objext
26663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26664   (eval $ac_compile) 2>conftest.er1
26665   ac_status=$?
26666   grep -v '^ *+' conftest.er1 >conftest.err
26667   rm -f conftest.er1
26668   cat conftest.err >&5
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); } &&
26671          { ac_try='test -z "$ac_c_werror_flag"
26672                          || test ! -s conftest.err'
26673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674   (eval $ac_try) 2>&5
26675   ac_status=$?
26676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677   (exit $ac_status); }; } &&
26678          { ac_try='test -s conftest.$ac_objext'
26679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680   (eval $ac_try) 2>&5
26681   ac_status=$?
26682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683   (exit $ac_status); }; }; then
26684   ac_cv_type_int=yes
26685 else
26686   echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26688
26689 ac_cv_type_int=no
26690 fi
26691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26692 fi
26693 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26694 echo "${ECHO_T}$ac_cv_type_int" >&6
26695
26696 echo "$as_me:$LINENO: checking size of int" >&5
26697 echo $ECHO_N "checking size of int... $ECHO_C" >&6
26698 if test "${ac_cv_sizeof_int+set}" = set; then
26699   echo $ECHO_N "(cached) $ECHO_C" >&6
26700 else
26701   if test "$ac_cv_type_int" = yes; then
26702   # The cast to unsigned long works around a bug in the HP C Compiler
26703   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26704   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26705   # This bug is HP SR number 8606223364.
26706   if test "$cross_compiling" = yes; then
26707   # Depending upon the size, compute the lo and hi bounds.
26708 cat >conftest.$ac_ext <<_ACEOF
26709 /* confdefs.h.  */
26710 _ACEOF
26711 cat confdefs.h >>conftest.$ac_ext
26712 cat >>conftest.$ac_ext <<_ACEOF
26713 /* end confdefs.h.  */
26714 $ac_includes_default
26715 int
26716 main ()
26717 {
26718 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26719 test_array [0] = 0
26720
26721   ;
26722   return 0;
26723 }
26724 _ACEOF
26725 rm -f conftest.$ac_objext
26726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26727   (eval $ac_compile) 2>conftest.er1
26728   ac_status=$?
26729   grep -v '^ *+' conftest.er1 >conftest.err
26730   rm -f conftest.er1
26731   cat conftest.err >&5
26732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733   (exit $ac_status); } &&
26734          { ac_try='test -z "$ac_c_werror_flag"
26735                          || test ! -s conftest.err'
26736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737   (eval $ac_try) 2>&5
26738   ac_status=$?
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); }; } &&
26741          { ac_try='test -s conftest.$ac_objext'
26742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26743   (eval $ac_try) 2>&5
26744   ac_status=$?
26745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746   (exit $ac_status); }; }; then
26747   ac_lo=0 ac_mid=0
26748   while :; do
26749     cat >conftest.$ac_ext <<_ACEOF
26750 /* confdefs.h.  */
26751 _ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h.  */
26755 $ac_includes_default
26756 int
26757 main ()
26758 {
26759 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26760 test_array [0] = 0
26761
26762   ;
26763   return 0;
26764 }
26765 _ACEOF
26766 rm -f conftest.$ac_objext
26767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26768   (eval $ac_compile) 2>conftest.er1
26769   ac_status=$?
26770   grep -v '^ *+' conftest.er1 >conftest.err
26771   rm -f conftest.er1
26772   cat conftest.err >&5
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); } &&
26775          { ac_try='test -z "$ac_c_werror_flag"
26776                          || test ! -s conftest.err'
26777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778   (eval $ac_try) 2>&5
26779   ac_status=$?
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); }; } &&
26782          { ac_try='test -s conftest.$ac_objext'
26783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784   (eval $ac_try) 2>&5
26785   ac_status=$?
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); }; }; then
26788   ac_hi=$ac_mid; break
26789 else
26790   echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26792
26793 ac_lo=`expr $ac_mid + 1`
26794                     if test $ac_lo -le $ac_mid; then
26795                       ac_lo= ac_hi=
26796                       break
26797                     fi
26798                     ac_mid=`expr 2 '*' $ac_mid + 1`
26799 fi
26800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26801   done
26802 else
26803   echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26805
26806 cat >conftest.$ac_ext <<_ACEOF
26807 /* confdefs.h.  */
26808 _ACEOF
26809 cat confdefs.h >>conftest.$ac_ext
26810 cat >>conftest.$ac_ext <<_ACEOF
26811 /* end confdefs.h.  */
26812 $ac_includes_default
26813 int
26814 main ()
26815 {
26816 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26817 test_array [0] = 0
26818
26819   ;
26820   return 0;
26821 }
26822 _ACEOF
26823 rm -f conftest.$ac_objext
26824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26825   (eval $ac_compile) 2>conftest.er1
26826   ac_status=$?
26827   grep -v '^ *+' conftest.er1 >conftest.err
26828   rm -f conftest.er1
26829   cat conftest.err >&5
26830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831   (exit $ac_status); } &&
26832          { ac_try='test -z "$ac_c_werror_flag"
26833                          || test ! -s conftest.err'
26834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835   (eval $ac_try) 2>&5
26836   ac_status=$?
26837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); }; } &&
26839          { ac_try='test -s conftest.$ac_objext'
26840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26841   (eval $ac_try) 2>&5
26842   ac_status=$?
26843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); }; }; then
26845   ac_hi=-1 ac_mid=-1
26846   while :; do
26847     cat >conftest.$ac_ext <<_ACEOF
26848 /* confdefs.h.  */
26849 _ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h.  */
26853 $ac_includes_default
26854 int
26855 main ()
26856 {
26857 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26858 test_array [0] = 0
26859
26860   ;
26861   return 0;
26862 }
26863 _ACEOF
26864 rm -f conftest.$ac_objext
26865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26866   (eval $ac_compile) 2>conftest.er1
26867   ac_status=$?
26868   grep -v '^ *+' conftest.er1 >conftest.err
26869   rm -f conftest.er1
26870   cat conftest.err >&5
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); } &&
26873          { ac_try='test -z "$ac_c_werror_flag"
26874                          || test ! -s conftest.err'
26875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876   (eval $ac_try) 2>&5
26877   ac_status=$?
26878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879   (exit $ac_status); }; } &&
26880          { ac_try='test -s conftest.$ac_objext'
26881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882   (eval $ac_try) 2>&5
26883   ac_status=$?
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); }; }; then
26886   ac_lo=$ac_mid; break
26887 else
26888   echo "$as_me: failed program was:" >&5
26889 sed 's/^/| /' conftest.$ac_ext >&5
26890
26891 ac_hi=`expr '(' $ac_mid ')' - 1`
26892                        if test $ac_mid -le $ac_hi; then
26893                          ac_lo= ac_hi=
26894                          break
26895                        fi
26896                        ac_mid=`expr 2 '*' $ac_mid`
26897 fi
26898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26899   done
26900 else
26901   echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26903
26904 ac_lo= ac_hi=
26905 fi
26906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26907 fi
26908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26909 # Binary search between lo and hi bounds.
26910 while test "x$ac_lo" != "x$ac_hi"; do
26911   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26912   cat >conftest.$ac_ext <<_ACEOF
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918 $ac_includes_default
26919 int
26920 main ()
26921 {
26922 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26923 test_array [0] = 0
26924
26925   ;
26926   return 0;
26927 }
26928 _ACEOF
26929 rm -f conftest.$ac_objext
26930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26931   (eval $ac_compile) 2>conftest.er1
26932   ac_status=$?
26933   grep -v '^ *+' conftest.er1 >conftest.err
26934   rm -f conftest.er1
26935   cat conftest.err >&5
26936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937   (exit $ac_status); } &&
26938          { ac_try='test -z "$ac_c_werror_flag"
26939                          || test ! -s conftest.err'
26940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941   (eval $ac_try) 2>&5
26942   ac_status=$?
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); }; } &&
26945          { ac_try='test -s conftest.$ac_objext'
26946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947   (eval $ac_try) 2>&5
26948   ac_status=$?
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); }; }; then
26951   ac_hi=$ac_mid
26952 else
26953   echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26955
26956 ac_lo=`expr '(' $ac_mid ')' + 1`
26957 fi
26958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26959 done
26960 case $ac_lo in
26961 ?*) ac_cv_sizeof_int=$ac_lo;;
26962 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
26963 See \`config.log' for more details." >&5
26964 echo "$as_me: error: cannot compute sizeof (int), 77
26965 See \`config.log' for more details." >&2;}
26966    { (exit 1); exit 1; }; } ;;
26967 esac
26968 else
26969   if test "$cross_compiling" = yes; then
26970   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26971 See \`config.log' for more details." >&5
26972 echo "$as_me: error: cannot run test program while cross compiling
26973 See \`config.log' for more details." >&2;}
26974    { (exit 1); exit 1; }; }
26975 else
26976   cat >conftest.$ac_ext <<_ACEOF
26977 /* confdefs.h.  */
26978 _ACEOF
26979 cat confdefs.h >>conftest.$ac_ext
26980 cat >>conftest.$ac_ext <<_ACEOF
26981 /* end confdefs.h.  */
26982 $ac_includes_default
26983 long longval () { return (long) (sizeof (int)); }
26984 unsigned long ulongval () { return (long) (sizeof (int)); }
26985 #include <stdio.h>
26986 #include <stdlib.h>
26987 int
26988 main ()
26989 {
26990
26991   FILE *f = fopen ("conftest.val", "w");
26992   if (! f)
26993     exit (1);
26994   if (((long) (sizeof (int))) < 0)
26995     {
26996       long i = longval ();
26997       if (i != ((long) (sizeof (int))))
26998         exit (1);
26999       fprintf (f, "%ld\n", i);
27000     }
27001   else
27002     {
27003       unsigned long i = ulongval ();
27004       if (i != ((long) (sizeof (int))))
27005         exit (1);
27006       fprintf (f, "%lu\n", i);
27007     }
27008   exit (ferror (f) || fclose (f) != 0);
27009
27010   ;
27011   return 0;
27012 }
27013 _ACEOF
27014 rm -f conftest$ac_exeext
27015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27016   (eval $ac_link) 2>&5
27017   ac_status=$?
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021   (eval $ac_try) 2>&5
27022   ac_status=$?
27023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024   (exit $ac_status); }; }; then
27025   ac_cv_sizeof_int=`cat conftest.val`
27026 else
27027   echo "$as_me: program exited with status $ac_status" >&5
27028 echo "$as_me: failed program was:" >&5
27029 sed 's/^/| /' conftest.$ac_ext >&5
27030
27031 ( exit $ac_status )
27032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27033 See \`config.log' for more details." >&5
27034 echo "$as_me: error: cannot compute sizeof (int), 77
27035 See \`config.log' for more details." >&2;}
27036    { (exit 1); exit 1; }; }
27037 fi
27038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27039 fi
27040 fi
27041 rm -f conftest.val
27042 else
27043   ac_cv_sizeof_int=0
27044 fi
27045 fi
27046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27047 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
27048 cat >>confdefs.h <<_ACEOF
27049 #define SIZEOF_INT $ac_cv_sizeof_int
27050 _ACEOF
27051
27052
27053   echo "$as_me:$LINENO: checking for long" >&5
27054 echo $ECHO_N "checking for long... $ECHO_C" >&6
27055 if test "${ac_cv_type_long+set}" = set; then
27056   echo $ECHO_N "(cached) $ECHO_C" >&6
27057 else
27058   cat >conftest.$ac_ext <<_ACEOF
27059 /* confdefs.h.  */
27060 _ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h.  */
27064 $ac_includes_default
27065 int
27066 main ()
27067 {
27068 if ((long *) 0)
27069   return 0;
27070 if (sizeof (long))
27071   return 0;
27072   ;
27073   return 0;
27074 }
27075 _ACEOF
27076 rm -f conftest.$ac_objext
27077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27078   (eval $ac_compile) 2>conftest.er1
27079   ac_status=$?
27080   grep -v '^ *+' conftest.er1 >conftest.err
27081   rm -f conftest.er1
27082   cat conftest.err >&5
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); } &&
27085          { ac_try='test -z "$ac_c_werror_flag"
27086                          || test ! -s conftest.err'
27087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088   (eval $ac_try) 2>&5
27089   ac_status=$?
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); }; } &&
27092          { ac_try='test -s conftest.$ac_objext'
27093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094   (eval $ac_try) 2>&5
27095   ac_status=$?
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); }; }; then
27098   ac_cv_type_long=yes
27099 else
27100   echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27102
27103 ac_cv_type_long=no
27104 fi
27105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27106 fi
27107 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27108 echo "${ECHO_T}$ac_cv_type_long" >&6
27109
27110 echo "$as_me:$LINENO: checking size of long" >&5
27111 echo $ECHO_N "checking size of long... $ECHO_C" >&6
27112 if test "${ac_cv_sizeof_long+set}" = set; then
27113   echo $ECHO_N "(cached) $ECHO_C" >&6
27114 else
27115   if test "$ac_cv_type_long" = yes; then
27116   # The cast to unsigned long works around a bug in the HP C Compiler
27117   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27118   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27119   # This bug is HP SR number 8606223364.
27120   if test "$cross_compiling" = yes; then
27121   # Depending upon the size, compute the lo and hi bounds.
27122 cat >conftest.$ac_ext <<_ACEOF
27123 /* confdefs.h.  */
27124 _ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h.  */
27128 $ac_includes_default
27129 int
27130 main ()
27131 {
27132 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
27133 test_array [0] = 0
27134
27135   ;
27136   return 0;
27137 }
27138 _ACEOF
27139 rm -f conftest.$ac_objext
27140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27141   (eval $ac_compile) 2>conftest.er1
27142   ac_status=$?
27143   grep -v '^ *+' conftest.er1 >conftest.err
27144   rm -f conftest.er1
27145   cat conftest.err >&5
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); } &&
27148          { ac_try='test -z "$ac_c_werror_flag"
27149                          || test ! -s conftest.err'
27150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151   (eval $ac_try) 2>&5
27152   ac_status=$?
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); }; } &&
27155          { ac_try='test -s conftest.$ac_objext'
27156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157   (eval $ac_try) 2>&5
27158   ac_status=$?
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); }; }; then
27161   ac_lo=0 ac_mid=0
27162   while :; do
27163     cat >conftest.$ac_ext <<_ACEOF
27164 /* confdefs.h.  */
27165 _ACEOF
27166 cat confdefs.h >>conftest.$ac_ext
27167 cat >>conftest.$ac_ext <<_ACEOF
27168 /* end confdefs.h.  */
27169 $ac_includes_default
27170 int
27171 main ()
27172 {
27173 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27174 test_array [0] = 0
27175
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 rm -f conftest.$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182   (eval $ac_compile) 2>conftest.er1
27183   ac_status=$?
27184   grep -v '^ *+' conftest.er1 >conftest.err
27185   rm -f conftest.er1
27186   cat conftest.err >&5
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); } &&
27189          { ac_try='test -z "$ac_c_werror_flag"
27190                          || test ! -s conftest.err'
27191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192   (eval $ac_try) 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; } &&
27196          { ac_try='test -s conftest.$ac_objext'
27197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198   (eval $ac_try) 2>&5
27199   ac_status=$?
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); }; }; then
27202   ac_hi=$ac_mid; break
27203 else
27204   echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27206
27207 ac_lo=`expr $ac_mid + 1`
27208                     if test $ac_lo -le $ac_mid; then
27209                       ac_lo= ac_hi=
27210                       break
27211                     fi
27212                     ac_mid=`expr 2 '*' $ac_mid + 1`
27213 fi
27214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27215   done
27216 else
27217   echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.$ac_ext >&5
27219
27220 cat >conftest.$ac_ext <<_ACEOF
27221 /* confdefs.h.  */
27222 _ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h.  */
27226 $ac_includes_default
27227 int
27228 main ()
27229 {
27230 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
27231 test_array [0] = 0
27232
27233   ;
27234   return 0;
27235 }
27236 _ACEOF
27237 rm -f conftest.$ac_objext
27238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27239   (eval $ac_compile) 2>conftest.er1
27240   ac_status=$?
27241   grep -v '^ *+' conftest.er1 >conftest.err
27242   rm -f conftest.er1
27243   cat conftest.err >&5
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); } &&
27246          { ac_try='test -z "$ac_c_werror_flag"
27247                          || test ! -s conftest.err'
27248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249   (eval $ac_try) 2>&5
27250   ac_status=$?
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); }; } &&
27253          { ac_try='test -s conftest.$ac_objext'
27254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255   (eval $ac_try) 2>&5
27256   ac_status=$?
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); }; }; then
27259   ac_hi=-1 ac_mid=-1
27260   while :; do
27261     cat >conftest.$ac_ext <<_ACEOF
27262 /* confdefs.h.  */
27263 _ACEOF
27264 cat confdefs.h >>conftest.$ac_ext
27265 cat >>conftest.$ac_ext <<_ACEOF
27266 /* end confdefs.h.  */
27267 $ac_includes_default
27268 int
27269 main ()
27270 {
27271 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
27272 test_array [0] = 0
27273
27274   ;
27275   return 0;
27276 }
27277 _ACEOF
27278 rm -f conftest.$ac_objext
27279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27280   (eval $ac_compile) 2>conftest.er1
27281   ac_status=$?
27282   grep -v '^ *+' conftest.er1 >conftest.err
27283   rm -f conftest.er1
27284   cat conftest.err >&5
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); } &&
27287          { ac_try='test -z "$ac_c_werror_flag"
27288                          || test ! -s conftest.err'
27289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27290   (eval $ac_try) 2>&5
27291   ac_status=$?
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); }; } &&
27294          { ac_try='test -s conftest.$ac_objext'
27295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27296   (eval $ac_try) 2>&5
27297   ac_status=$?
27298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); }; }; then
27300   ac_lo=$ac_mid; break
27301 else
27302   echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27304
27305 ac_hi=`expr '(' $ac_mid ')' - 1`
27306                        if test $ac_mid -le $ac_hi; then
27307                          ac_lo= ac_hi=
27308                          break
27309                        fi
27310                        ac_mid=`expr 2 '*' $ac_mid`
27311 fi
27312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27313   done
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318 ac_lo= ac_hi=
27319 fi
27320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27321 fi
27322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27323 # Binary search between lo and hi bounds.
27324 while test "x$ac_lo" != "x$ac_hi"; do
27325   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27326   cat >conftest.$ac_ext <<_ACEOF
27327 /* confdefs.h.  */
27328 _ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h.  */
27332 $ac_includes_default
27333 int
27334 main ()
27335 {
27336 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
27337 test_array [0] = 0
27338
27339   ;
27340   return 0;
27341 }
27342 _ACEOF
27343 rm -f conftest.$ac_objext
27344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27345   (eval $ac_compile) 2>conftest.er1
27346   ac_status=$?
27347   grep -v '^ *+' conftest.er1 >conftest.err
27348   rm -f conftest.er1
27349   cat conftest.err >&5
27350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351   (exit $ac_status); } &&
27352          { ac_try='test -z "$ac_c_werror_flag"
27353                          || test ! -s conftest.err'
27354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355   (eval $ac_try) 2>&5
27356   ac_status=$?
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); }; } &&
27359          { ac_try='test -s conftest.$ac_objext'
27360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361   (eval $ac_try) 2>&5
27362   ac_status=$?
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); }; }; then
27365   ac_hi=$ac_mid
27366 else
27367   echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27369
27370 ac_lo=`expr '(' $ac_mid ')' + 1`
27371 fi
27372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27373 done
27374 case $ac_lo in
27375 ?*) ac_cv_sizeof_long=$ac_lo;;
27376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27377 See \`config.log' for more details." >&5
27378 echo "$as_me: error: cannot compute sizeof (long), 77
27379 See \`config.log' for more details." >&2;}
27380    { (exit 1); exit 1; }; } ;;
27381 esac
27382 else
27383   if test "$cross_compiling" = yes; then
27384   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27385 See \`config.log' for more details." >&5
27386 echo "$as_me: error: cannot run test program while cross compiling
27387 See \`config.log' for more details." >&2;}
27388    { (exit 1); exit 1; }; }
27389 else
27390   cat >conftest.$ac_ext <<_ACEOF
27391 /* confdefs.h.  */
27392 _ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h.  */
27396 $ac_includes_default
27397 long longval () { return (long) (sizeof (long)); }
27398 unsigned long ulongval () { return (long) (sizeof (long)); }
27399 #include <stdio.h>
27400 #include <stdlib.h>
27401 int
27402 main ()
27403 {
27404
27405   FILE *f = fopen ("conftest.val", "w");
27406   if (! f)
27407     exit (1);
27408   if (((long) (sizeof (long))) < 0)
27409     {
27410       long i = longval ();
27411       if (i != ((long) (sizeof (long))))
27412         exit (1);
27413       fprintf (f, "%ld\n", i);
27414     }
27415   else
27416     {
27417       unsigned long i = ulongval ();
27418       if (i != ((long) (sizeof (long))))
27419         exit (1);
27420       fprintf (f, "%lu\n", i);
27421     }
27422   exit (ferror (f) || fclose (f) != 0);
27423
27424   ;
27425   return 0;
27426 }
27427 _ACEOF
27428 rm -f conftest$ac_exeext
27429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27430   (eval $ac_link) 2>&5
27431   ac_status=$?
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435   (eval $ac_try) 2>&5
27436   ac_status=$?
27437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438   (exit $ac_status); }; }; then
27439   ac_cv_sizeof_long=`cat conftest.val`
27440 else
27441   echo "$as_me: program exited with status $ac_status" >&5
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27444
27445 ( exit $ac_status )
27446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
27447 See \`config.log' for more details." >&5
27448 echo "$as_me: error: cannot compute sizeof (long), 77
27449 See \`config.log' for more details." >&2;}
27450    { (exit 1); exit 1; }; }
27451 fi
27452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27453 fi
27454 fi
27455 rm -f conftest.val
27456 else
27457   ac_cv_sizeof_long=0
27458 fi
27459 fi
27460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
27461 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
27462 cat >>confdefs.h <<_ACEOF
27463 #define SIZEOF_LONG $ac_cv_sizeof_long
27464 _ACEOF
27465
27466
27467   echo "$as_me:$LINENO: checking for short" >&5
27468 echo $ECHO_N "checking for short... $ECHO_C" >&6
27469 if test "${ac_cv_type_short+set}" = set; then
27470   echo $ECHO_N "(cached) $ECHO_C" >&6
27471 else
27472   cat >conftest.$ac_ext <<_ACEOF
27473 /* confdefs.h.  */
27474 _ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h.  */
27478 $ac_includes_default
27479 int
27480 main ()
27481 {
27482 if ((short *) 0)
27483   return 0;
27484 if (sizeof (short))
27485   return 0;
27486   ;
27487   return 0;
27488 }
27489 _ACEOF
27490 rm -f conftest.$ac_objext
27491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27492   (eval $ac_compile) 2>conftest.er1
27493   ac_status=$?
27494   grep -v '^ *+' conftest.er1 >conftest.err
27495   rm -f conftest.er1
27496   cat conftest.err >&5
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); } &&
27499          { ac_try='test -z "$ac_c_werror_flag"
27500                          || test ! -s conftest.err'
27501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502   (eval $ac_try) 2>&5
27503   ac_status=$?
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; } &&
27506          { ac_try='test -s conftest.$ac_objext'
27507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508   (eval $ac_try) 2>&5
27509   ac_status=$?
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); }; }; then
27512   ac_cv_type_short=yes
27513 else
27514   echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27516
27517 ac_cv_type_short=no
27518 fi
27519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27520 fi
27521 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27522 echo "${ECHO_T}$ac_cv_type_short" >&6
27523
27524 echo "$as_me:$LINENO: checking size of short" >&5
27525 echo $ECHO_N "checking size of short... $ECHO_C" >&6
27526 if test "${ac_cv_sizeof_short+set}" = set; then
27527   echo $ECHO_N "(cached) $ECHO_C" >&6
27528 else
27529   if test "$ac_cv_type_short" = yes; then
27530   # The cast to unsigned long works around a bug in the HP C Compiler
27531   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27532   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27533   # This bug is HP SR number 8606223364.
27534   if test "$cross_compiling" = yes; then
27535   # Depending upon the size, compute the lo and hi bounds.
27536 cat >conftest.$ac_ext <<_ACEOF
27537 /* confdefs.h.  */
27538 _ACEOF
27539 cat confdefs.h >>conftest.$ac_ext
27540 cat >>conftest.$ac_ext <<_ACEOF
27541 /* end confdefs.h.  */
27542 $ac_includes_default
27543 int
27544 main ()
27545 {
27546 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
27547 test_array [0] = 0
27548
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 rm -f conftest.$ac_objext
27554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27555   (eval $ac_compile) 2>conftest.er1
27556   ac_status=$?
27557   grep -v '^ *+' conftest.er1 >conftest.err
27558   rm -f conftest.er1
27559   cat conftest.err >&5
27560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561   (exit $ac_status); } &&
27562          { ac_try='test -z "$ac_c_werror_flag"
27563                          || test ! -s conftest.err'
27564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565   (eval $ac_try) 2>&5
27566   ac_status=$?
27567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568   (exit $ac_status); }; } &&
27569          { ac_try='test -s conftest.$ac_objext'
27570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571   (eval $ac_try) 2>&5
27572   ac_status=$?
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); }; }; then
27575   ac_lo=0 ac_mid=0
27576   while :; do
27577     cat >conftest.$ac_ext <<_ACEOF
27578 /* confdefs.h.  */
27579 _ACEOF
27580 cat confdefs.h >>conftest.$ac_ext
27581 cat >>conftest.$ac_ext <<_ACEOF
27582 /* end confdefs.h.  */
27583 $ac_includes_default
27584 int
27585 main ()
27586 {
27587 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27588 test_array [0] = 0
27589
27590   ;
27591   return 0;
27592 }
27593 _ACEOF
27594 rm -f conftest.$ac_objext
27595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27596   (eval $ac_compile) 2>conftest.er1
27597   ac_status=$?
27598   grep -v '^ *+' conftest.er1 >conftest.err
27599   rm -f conftest.er1
27600   cat conftest.err >&5
27601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602   (exit $ac_status); } &&
27603          { ac_try='test -z "$ac_c_werror_flag"
27604                          || test ! -s conftest.err'
27605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606   (eval $ac_try) 2>&5
27607   ac_status=$?
27608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609   (exit $ac_status); }; } &&
27610          { ac_try='test -s conftest.$ac_objext'
27611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612   (eval $ac_try) 2>&5
27613   ac_status=$?
27614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615   (exit $ac_status); }; }; then
27616   ac_hi=$ac_mid; break
27617 else
27618   echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27620
27621 ac_lo=`expr $ac_mid + 1`
27622                     if test $ac_lo -le $ac_mid; then
27623                       ac_lo= ac_hi=
27624                       break
27625                     fi
27626                     ac_mid=`expr 2 '*' $ac_mid + 1`
27627 fi
27628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27629   done
27630 else
27631   echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27633
27634 cat >conftest.$ac_ext <<_ACEOF
27635 /* confdefs.h.  */
27636 _ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h.  */
27640 $ac_includes_default
27641 int
27642 main ()
27643 {
27644 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
27645 test_array [0] = 0
27646
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext
27652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27653   (eval $ac_compile) 2>conftest.er1
27654   ac_status=$?
27655   grep -v '^ *+' conftest.er1 >conftest.err
27656   rm -f conftest.er1
27657   cat conftest.err >&5
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); } &&
27660          { ac_try='test -z "$ac_c_werror_flag"
27661                          || test ! -s conftest.err'
27662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27663   (eval $ac_try) 2>&5
27664   ac_status=$?
27665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666   (exit $ac_status); }; } &&
27667          { ac_try='test -s conftest.$ac_objext'
27668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669   (eval $ac_try) 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; }; then
27673   ac_hi=-1 ac_mid=-1
27674   while :; do
27675     cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h.  */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h.  */
27681 $ac_includes_default
27682 int
27683 main ()
27684 {
27685 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
27686 test_array [0] = 0
27687
27688   ;
27689   return 0;
27690 }
27691 _ACEOF
27692 rm -f conftest.$ac_objext
27693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27694   (eval $ac_compile) 2>conftest.er1
27695   ac_status=$?
27696   grep -v '^ *+' conftest.er1 >conftest.err
27697   rm -f conftest.er1
27698   cat conftest.err >&5
27699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700   (exit $ac_status); } &&
27701          { ac_try='test -z "$ac_c_werror_flag"
27702                          || test ! -s conftest.err'
27703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704   (eval $ac_try) 2>&5
27705   ac_status=$?
27706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707   (exit $ac_status); }; } &&
27708          { ac_try='test -s conftest.$ac_objext'
27709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27710   (eval $ac_try) 2>&5
27711   ac_status=$?
27712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); }; }; then
27714   ac_lo=$ac_mid; break
27715 else
27716   echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27718
27719 ac_hi=`expr '(' $ac_mid ')' - 1`
27720                        if test $ac_mid -le $ac_hi; then
27721                          ac_lo= ac_hi=
27722                          break
27723                        fi
27724                        ac_mid=`expr 2 '*' $ac_mid`
27725 fi
27726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27727   done
27728 else
27729   echo "$as_me: failed program was:" >&5
27730 sed 's/^/| /' conftest.$ac_ext >&5
27731
27732 ac_lo= ac_hi=
27733 fi
27734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27735 fi
27736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27737 # Binary search between lo and hi bounds.
27738 while test "x$ac_lo" != "x$ac_hi"; do
27739   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27740   cat >conftest.$ac_ext <<_ACEOF
27741 /* confdefs.h.  */
27742 _ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h.  */
27746 $ac_includes_default
27747 int
27748 main ()
27749 {
27750 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27751 test_array [0] = 0
27752
27753   ;
27754   return 0;
27755 }
27756 _ACEOF
27757 rm -f conftest.$ac_objext
27758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27759   (eval $ac_compile) 2>conftest.er1
27760   ac_status=$?
27761   grep -v '^ *+' conftest.er1 >conftest.err
27762   rm -f conftest.er1
27763   cat conftest.err >&5
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); } &&
27766          { ac_try='test -z "$ac_c_werror_flag"
27767                          || test ! -s conftest.err'
27768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769   (eval $ac_try) 2>&5
27770   ac_status=$?
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); }; } &&
27773          { ac_try='test -s conftest.$ac_objext'
27774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27775   (eval $ac_try) 2>&5
27776   ac_status=$?
27777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778   (exit $ac_status); }; }; then
27779   ac_hi=$ac_mid
27780 else
27781   echo "$as_me: failed program was:" >&5
27782 sed 's/^/| /' conftest.$ac_ext >&5
27783
27784 ac_lo=`expr '(' $ac_mid ')' + 1`
27785 fi
27786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27787 done
27788 case $ac_lo in
27789 ?*) ac_cv_sizeof_short=$ac_lo;;
27790 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27791 See \`config.log' for more details." >&5
27792 echo "$as_me: error: cannot compute sizeof (short), 77
27793 See \`config.log' for more details." >&2;}
27794    { (exit 1); exit 1; }; } ;;
27795 esac
27796 else
27797   if test "$cross_compiling" = yes; then
27798   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27799 See \`config.log' for more details." >&5
27800 echo "$as_me: error: cannot run test program while cross compiling
27801 See \`config.log' for more details." >&2;}
27802    { (exit 1); exit 1; }; }
27803 else
27804   cat >conftest.$ac_ext <<_ACEOF
27805 /* confdefs.h.  */
27806 _ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h.  */
27810 $ac_includes_default
27811 long longval () { return (long) (sizeof (short)); }
27812 unsigned long ulongval () { return (long) (sizeof (short)); }
27813 #include <stdio.h>
27814 #include <stdlib.h>
27815 int
27816 main ()
27817 {
27818
27819   FILE *f = fopen ("conftest.val", "w");
27820   if (! f)
27821     exit (1);
27822   if (((long) (sizeof (short))) < 0)
27823     {
27824       long i = longval ();
27825       if (i != ((long) (sizeof (short))))
27826         exit (1);
27827       fprintf (f, "%ld\n", i);
27828     }
27829   else
27830     {
27831       unsigned long i = ulongval ();
27832       if (i != ((long) (sizeof (short))))
27833         exit (1);
27834       fprintf (f, "%lu\n", i);
27835     }
27836   exit (ferror (f) || fclose (f) != 0);
27837
27838   ;
27839   return 0;
27840 }
27841 _ACEOF
27842 rm -f conftest$ac_exeext
27843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27844   (eval $ac_link) 2>&5
27845   ac_status=$?
27846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27849   (eval $ac_try) 2>&5
27850   ac_status=$?
27851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); }; }; then
27853   ac_cv_sizeof_short=`cat conftest.val`
27854 else
27855   echo "$as_me: program exited with status $ac_status" >&5
27856 echo "$as_me: failed program was:" >&5
27857 sed 's/^/| /' conftest.$ac_ext >&5
27858
27859 ( exit $ac_status )
27860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27861 See \`config.log' for more details." >&5
27862 echo "$as_me: error: cannot compute sizeof (short), 77
27863 See \`config.log' for more details." >&2;}
27864    { (exit 1); exit 1; }; }
27865 fi
27866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27867 fi
27868 fi
27869 rm -f conftest.val
27870 else
27871   ac_cv_sizeof_short=0
27872 fi
27873 fi
27874 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27875 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
27876 cat >>confdefs.h <<_ACEOF
27877 #define SIZEOF_SHORT $ac_cv_sizeof_short
27878 _ACEOF
27879
27880
27881
27882   # ----------------------------------------------------------------------
27883   # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
27884   # ----------------------------------------------------------------------
27885
27886 echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
27887 echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6
27888 if test "${ac_cv_lib_gen_pathfind+set}" = set; then
27889   echo $ECHO_N "(cached) $ECHO_C" >&6
27890 else
27891   ac_check_lib_save_LIBS=$LIBS
27892 LIBS="-lgen  $LIBS"
27893 cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899
27900 /* Override any gcc2 internal prototype to avoid an error.  */
27901 #ifdef __cplusplus
27902 extern "C"
27903 #endif
27904 /* We use char because int might match the return type of a gcc2
27905    builtin and then its argument prototype would still apply.  */
27906 char pathfind ();
27907 int
27908 main ()
27909 {
27910 pathfind ();
27911   ;
27912   return 0;
27913 }
27914 _ACEOF
27915 rm -f conftest.$ac_objext conftest$ac_exeext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27917   (eval $ac_link) 2>conftest.er1
27918   ac_status=$?
27919   grep -v '^ *+' conftest.er1 >conftest.err
27920   rm -f conftest.er1
27921   cat conftest.err >&5
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); } &&
27924          { ac_try='test -z "$ac_c_werror_flag"
27925                          || test ! -s conftest.err'
27926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927   (eval $ac_try) 2>&5
27928   ac_status=$?
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); }; } &&
27931          { ac_try='test -s conftest$ac_exeext'
27932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933   (eval $ac_try) 2>&5
27934   ac_status=$?
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); }; }; then
27937   ac_cv_lib_gen_pathfind=yes
27938 else
27939   echo "$as_me: failed program was:" >&5
27940 sed 's/^/| /' conftest.$ac_ext >&5
27941
27942 ac_cv_lib_gen_pathfind=no
27943 fi
27944 rm -f conftest.err conftest.$ac_objext \
27945       conftest$ac_exeext conftest.$ac_ext
27946 LIBS=$ac_check_lib_save_LIBS
27947 fi
27948 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
27949 echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6
27950 if test $ac_cv_lib_gen_pathfind = yes; then
27951   cat >>confdefs.h <<_ACEOF
27952 #define HAVE_LIBGEN 1
27953 _ACEOF
27954
27955   LIBS="-lgen $LIBS"
27956
27957 fi
27958
27959
27960 for ac_func in vprintf
27961 do
27962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27963 echo "$as_me:$LINENO: checking for $ac_func" >&5
27964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27965 if eval "test \"\${$as_ac_var+set}\" = set"; then
27966   echo $ECHO_N "(cached) $ECHO_C" >&6
27967 else
27968   cat >conftest.$ac_ext <<_ACEOF
27969 /* confdefs.h.  */
27970 _ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h.  */
27974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27976 #define $ac_func innocuous_$ac_func
27977
27978 /* System header to define __stub macros and hopefully few prototypes,
27979     which can conflict with char $ac_func (); below.
27980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27981     <limits.h> exists even on freestanding compilers.  */
27982
27983 #ifdef __STDC__
27984 # include <limits.h>
27985 #else
27986 # include <assert.h>
27987 #endif
27988
27989 #undef $ac_func
27990
27991 /* Override any gcc2 internal prototype to avoid an error.  */
27992 #ifdef __cplusplus
27993 extern "C"
27994 {
27995 #endif
27996 /* We use char because int might match the return type of a gcc2
27997    builtin and then its argument prototype would still apply.  */
27998 char $ac_func ();
27999 /* The GNU C library defines this for functions which it implements
28000     to always fail with ENOSYS.  Some functions are actually named
28001     something starting with __ and the normal name is an alias.  */
28002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28003 choke me
28004 #else
28005 char (*f) () = $ac_func;
28006 #endif
28007 #ifdef __cplusplus
28008 }
28009 #endif
28010
28011 int
28012 main ()
28013 {
28014 return f != $ac_func;
28015   ;
28016   return 0;
28017 }
28018 _ACEOF
28019 rm -f conftest.$ac_objext conftest$ac_exeext
28020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28021   (eval $ac_link) 2>conftest.er1
28022   ac_status=$?
28023   grep -v '^ *+' conftest.er1 >conftest.err
28024   rm -f conftest.er1
28025   cat conftest.err >&5
28026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28027   (exit $ac_status); } &&
28028          { ac_try='test -z "$ac_c_werror_flag"
28029                          || test ! -s conftest.err'
28030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031   (eval $ac_try) 2>&5
28032   ac_status=$?
28033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034   (exit $ac_status); }; } &&
28035          { ac_try='test -s conftest$ac_exeext'
28036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037   (eval $ac_try) 2>&5
28038   ac_status=$?
28039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040   (exit $ac_status); }; }; then
28041   eval "$as_ac_var=yes"
28042 else
28043   echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28045
28046 eval "$as_ac_var=no"
28047 fi
28048 rm -f conftest.err conftest.$ac_objext \
28049       conftest$ac_exeext conftest.$ac_ext
28050 fi
28051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28053 if test `eval echo '${'$as_ac_var'}'` = yes; then
28054   cat >>confdefs.h <<_ACEOF
28055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28056 _ACEOF
28057
28058 echo "$as_me:$LINENO: checking for _doprnt" >&5
28059 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28060 if test "${ac_cv_func__doprnt+set}" = set; then
28061   echo $ECHO_N "(cached) $ECHO_C" >&6
28062 else
28063   cat >conftest.$ac_ext <<_ACEOF
28064 /* confdefs.h.  */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h.  */
28069 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28071 #define _doprnt innocuous__doprnt
28072
28073 /* System header to define __stub macros and hopefully few prototypes,
28074     which can conflict with char _doprnt (); below.
28075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28076     <limits.h> exists even on freestanding compilers.  */
28077
28078 #ifdef __STDC__
28079 # include <limits.h>
28080 #else
28081 # include <assert.h>
28082 #endif
28083
28084 #undef _doprnt
28085
28086 /* Override any gcc2 internal prototype to avoid an error.  */
28087 #ifdef __cplusplus
28088 extern "C"
28089 {
28090 #endif
28091 /* We use char because int might match the return type of a gcc2
28092    builtin and then its argument prototype would still apply.  */
28093 char _doprnt ();
28094 /* The GNU C library defines this for functions which it implements
28095     to always fail with ENOSYS.  Some functions are actually named
28096     something starting with __ and the normal name is an alias.  */
28097 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28098 choke me
28099 #else
28100 char (*f) () = _doprnt;
28101 #endif
28102 #ifdef __cplusplus
28103 }
28104 #endif
28105
28106 int
28107 main ()
28108 {
28109 return f != _doprnt;
28110   ;
28111   return 0;
28112 }
28113 _ACEOF
28114 rm -f conftest.$ac_objext conftest$ac_exeext
28115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28116   (eval $ac_link) 2>conftest.er1
28117   ac_status=$?
28118   grep -v '^ *+' conftest.er1 >conftest.err
28119   rm -f conftest.er1
28120   cat conftest.err >&5
28121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122   (exit $ac_status); } &&
28123          { ac_try='test -z "$ac_c_werror_flag"
28124                          || test ! -s conftest.err'
28125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126   (eval $ac_try) 2>&5
28127   ac_status=$?
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); }; } &&
28130          { ac_try='test -s conftest$ac_exeext'
28131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132   (eval $ac_try) 2>&5
28133   ac_status=$?
28134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135   (exit $ac_status); }; }; then
28136   ac_cv_func__doprnt=yes
28137 else
28138   echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28140
28141 ac_cv_func__doprnt=no
28142 fi
28143 rm -f conftest.err conftest.$ac_objext \
28144       conftest$ac_exeext conftest.$ac_ext
28145 fi
28146 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28147 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28148 if test $ac_cv_func__doprnt = yes; then
28149
28150 cat >>confdefs.h <<\_ACEOF
28151 #define HAVE_DOPRNT 1
28152 _ACEOF
28153
28154 fi
28155
28156 fi
28157 done
28158
28159
28160
28161
28162
28163
28164
28165
28166 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
28167 do
28168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28169 echo "$as_me:$LINENO: checking for $ac_func" >&5
28170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28171 if eval "test \"\${$as_ac_var+set}\" = set"; then
28172   echo $ECHO_N "(cached) $ECHO_C" >&6
28173 else
28174   cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h.  */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h.  */
28180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28182 #define $ac_func innocuous_$ac_func
28183
28184 /* System header to define __stub macros and hopefully few prototypes,
28185     which can conflict with char $ac_func (); below.
28186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187     <limits.h> exists even on freestanding compilers.  */
28188
28189 #ifdef __STDC__
28190 # include <limits.h>
28191 #else
28192 # include <assert.h>
28193 #endif
28194
28195 #undef $ac_func
28196
28197 /* Override any gcc2 internal prototype to avoid an error.  */
28198 #ifdef __cplusplus
28199 extern "C"
28200 {
28201 #endif
28202 /* We use char because int might match the return type of a gcc2
28203    builtin and then its argument prototype would still apply.  */
28204 char $ac_func ();
28205 /* The GNU C library defines this for functions which it implements
28206     to always fail with ENOSYS.  Some functions are actually named
28207     something starting with __ and the normal name is an alias.  */
28208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28209 choke me
28210 #else
28211 char (*f) () = $ac_func;
28212 #endif
28213 #ifdef __cplusplus
28214 }
28215 #endif
28216
28217 int
28218 main ()
28219 {
28220 return f != $ac_func;
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 rm -f conftest.$ac_objext conftest$ac_exeext
28226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28227   (eval $ac_link) 2>conftest.er1
28228   ac_status=$?
28229   grep -v '^ *+' conftest.er1 >conftest.err
28230   rm -f conftest.er1
28231   cat conftest.err >&5
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); } &&
28234          { ac_try='test -z "$ac_c_werror_flag"
28235                          || test ! -s conftest.err'
28236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237   (eval $ac_try) 2>&5
28238   ac_status=$?
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); }; } &&
28241          { ac_try='test -s conftest$ac_exeext'
28242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243   (eval $ac_try) 2>&5
28244   ac_status=$?
28245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246   (exit $ac_status); }; }; then
28247   eval "$as_ac_var=yes"
28248 else
28249   echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252 eval "$as_ac_var=no"
28253 fi
28254 rm -f conftest.err conftest.$ac_objext \
28255       conftest$ac_exeext conftest.$ac_ext
28256 fi
28257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28259 if test `eval echo '${'$as_ac_var'}'` = yes; then
28260   cat >>confdefs.h <<_ACEOF
28261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28262 _ACEOF
28263
28264 fi
28265 done
28266
28267   INVOKE_LIBOPTS_MACROS_FIRST_done=yes
28268 fi
28269   fi
28270 # end of AC_DEFUN of LIBOPTS_CHECK
28271
28272
28273 echo "$as_me:$LINENO: checking if $CC can handle #warning" >&5
28274 echo $ECHO_N "checking if $CC can handle #warning... $ECHO_C" >&6
28275 cat >conftest.$ac_ext <<_ACEOF
28276 /* confdefs.h.  */
28277 _ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h.  */
28281
28282 int
28283 main ()
28284 {
28285 #warning foo
28286   ;
28287   return 0;
28288 }
28289 _ACEOF
28290 rm -f conftest.$ac_objext
28291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28292   (eval $ac_compile) 2>conftest.er1
28293   ac_status=$?
28294   grep -v '^ *+' conftest.er1 >conftest.err
28295   rm -f conftest.er1
28296   cat conftest.err >&5
28297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298   (exit $ac_status); } &&
28299          { ac_try='test -z "$ac_c_werror_flag"
28300                          || test ! -s conftest.err'
28301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302   (eval $ac_try) 2>&5
28303   ac_status=$?
28304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305   (exit $ac_status); }; } &&
28306          { ac_try='test -s conftest.$ac_objext'
28307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28308   (eval $ac_try) 2>&5
28309   ac_status=$?
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); }; }; then
28312   ac_cv_cpp_warning=yes
28313 else
28314   echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28316
28317 ac_cv_cpp_warning=no
28318 fi
28319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28320 echo "$as_me:$LINENO: result: $ac_cv_cpp_warning" >&5
28321 echo "${ECHO_T}$ac_cv_cpp_warning" >&6
28322
28323 case "$ac_cv_cpp_warning" in
28324  no)
28325
28326 cat >>confdefs.h <<\_ACEOF
28327 #define NO_OPTION_NAME_WARNINGS 1
28328 _ACEOF
28329
28330     echo "$as_me:$LINENO: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5
28331 echo "${ECHO_T}Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6
28332     ;;
28333 esac
28334
28335 # Checks for libraries.
28336
28337 # Checks for header files.
28338 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
28340 if test "${ac_cv_header_stdc+set}" = set; then
28341   echo $ECHO_N "(cached) $ECHO_C" >&6
28342 else
28343   cat >conftest.$ac_ext <<_ACEOF
28344 /* confdefs.h.  */
28345 _ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h.  */
28349 #include <stdlib.h>
28350 #include <stdarg.h>
28351 #include <string.h>
28352 #include <float.h>
28353
28354 int
28355 main ()
28356 {
28357
28358   ;
28359   return 0;
28360 }
28361 _ACEOF
28362 rm -f conftest.$ac_objext
28363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28364   (eval $ac_compile) 2>conftest.er1
28365   ac_status=$?
28366   grep -v '^ *+' conftest.er1 >conftest.err
28367   rm -f conftest.er1
28368   cat conftest.err >&5
28369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370   (exit $ac_status); } &&
28371          { ac_try='test -z "$ac_c_werror_flag"
28372                          || test ! -s conftest.err'
28373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374   (eval $ac_try) 2>&5
28375   ac_status=$?
28376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377   (exit $ac_status); }; } &&
28378          { ac_try='test -s conftest.$ac_objext'
28379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28380   (eval $ac_try) 2>&5
28381   ac_status=$?
28382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383   (exit $ac_status); }; }; then
28384   ac_cv_header_stdc=yes
28385 else
28386   echo "$as_me: failed program was:" >&5
28387 sed 's/^/| /' conftest.$ac_ext >&5
28388
28389 ac_cv_header_stdc=no
28390 fi
28391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28392
28393 if test $ac_cv_header_stdc = yes; then
28394   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28395   cat >conftest.$ac_ext <<_ACEOF
28396 /* confdefs.h.  */
28397 _ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h.  */
28401 #include <string.h>
28402
28403 _ACEOF
28404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28405   $EGREP "memchr" >/dev/null 2>&1; then
28406   :
28407 else
28408   ac_cv_header_stdc=no
28409 fi
28410 rm -f conftest*
28411
28412 fi
28413
28414 if test $ac_cv_header_stdc = yes; then
28415   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28416   cat >conftest.$ac_ext <<_ACEOF
28417 /* confdefs.h.  */
28418 _ACEOF
28419 cat confdefs.h >>conftest.$ac_ext
28420 cat >>conftest.$ac_ext <<_ACEOF
28421 /* end confdefs.h.  */
28422 #include <stdlib.h>
28423
28424 _ACEOF
28425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28426   $EGREP "free" >/dev/null 2>&1; then
28427   :
28428 else
28429   ac_cv_header_stdc=no
28430 fi
28431 rm -f conftest*
28432
28433 fi
28434
28435 if test $ac_cv_header_stdc = yes; then
28436   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28437   if test "$cross_compiling" = yes; then
28438   :
28439 else
28440   cat >conftest.$ac_ext <<_ACEOF
28441 /* confdefs.h.  */
28442 _ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h.  */
28446 #include <ctype.h>
28447 #if ((' ' & 0x0FF) == 0x020)
28448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28450 #else
28451 # define ISLOWER(c) \
28452                    (('a' <= (c) && (c) <= 'i') \
28453                      || ('j' <= (c) && (c) <= 'r') \
28454                      || ('s' <= (c) && (c) <= 'z'))
28455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28456 #endif
28457
28458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28459 int
28460 main ()
28461 {
28462   int i;
28463   for (i = 0; i < 256; i++)
28464     if (XOR (islower (i), ISLOWER (i))
28465         || toupper (i) != TOUPPER (i))
28466       exit(2);
28467   exit (0);
28468 }
28469 _ACEOF
28470 rm -f conftest$ac_exeext
28471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28472   (eval $ac_link) 2>&5
28473   ac_status=$?
28474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477   (eval $ac_try) 2>&5
28478   ac_status=$?
28479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480   (exit $ac_status); }; }; then
28481   :
28482 else
28483   echo "$as_me: program exited with status $ac_status" >&5
28484 echo "$as_me: failed program was:" >&5
28485 sed 's/^/| /' conftest.$ac_ext >&5
28486
28487 ( exit $ac_status )
28488 ac_cv_header_stdc=no
28489 fi
28490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28491 fi
28492 fi
28493 fi
28494 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28495 echo "${ECHO_T}$ac_cv_header_stdc" >&6
28496 if test $ac_cv_header_stdc = yes; then
28497
28498 cat >>confdefs.h <<\_ACEOF
28499 #define STDC_HEADERS 1
28500 _ACEOF
28501
28502 fi
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516 for ac_header in arpa/inet.h fcntl.h float.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
28517 do
28518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28520   echo "$as_me:$LINENO: checking for $ac_header" >&5
28521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28523   echo $ECHO_N "(cached) $ECHO_C" >&6
28524 fi
28525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28527 else
28528   # Is the header compilable?
28529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28531 cat >conftest.$ac_ext <<_ACEOF
28532 /* confdefs.h.  */
28533 _ACEOF
28534 cat confdefs.h >>conftest.$ac_ext
28535 cat >>conftest.$ac_ext <<_ACEOF
28536 /* end confdefs.h.  */
28537 $ac_includes_default
28538 #include <$ac_header>
28539 _ACEOF
28540 rm -f conftest.$ac_objext
28541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28542   (eval $ac_compile) 2>conftest.er1
28543   ac_status=$?
28544   grep -v '^ *+' conftest.er1 >conftest.err
28545   rm -f conftest.er1
28546   cat conftest.err >&5
28547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548   (exit $ac_status); } &&
28549          { ac_try='test -z "$ac_c_werror_flag"
28550                          || test ! -s conftest.err'
28551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552   (eval $ac_try) 2>&5
28553   ac_status=$?
28554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555   (exit $ac_status); }; } &&
28556          { ac_try='test -s conftest.$ac_objext'
28557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558   (eval $ac_try) 2>&5
28559   ac_status=$?
28560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561   (exit $ac_status); }; }; then
28562   ac_header_compiler=yes
28563 else
28564   echo "$as_me: failed program was:" >&5
28565 sed 's/^/| /' conftest.$ac_ext >&5
28566
28567 ac_header_compiler=no
28568 fi
28569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28571 echo "${ECHO_T}$ac_header_compiler" >&6
28572
28573 # Is the header present?
28574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28576 cat >conftest.$ac_ext <<_ACEOF
28577 /* confdefs.h.  */
28578 _ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h.  */
28582 #include <$ac_header>
28583 _ACEOF
28584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28586   ac_status=$?
28587   grep -v '^ *+' conftest.er1 >conftest.err
28588   rm -f conftest.er1
28589   cat conftest.err >&5
28590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591   (exit $ac_status); } >/dev/null; then
28592   if test -s conftest.err; then
28593     ac_cpp_err=$ac_c_preproc_warn_flag
28594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28595   else
28596     ac_cpp_err=
28597   fi
28598 else
28599   ac_cpp_err=yes
28600 fi
28601 if test -z "$ac_cpp_err"; then
28602   ac_header_preproc=yes
28603 else
28604   echo "$as_me: failed program was:" >&5
28605 sed 's/^/| /' conftest.$ac_ext >&5
28606
28607   ac_header_preproc=no
28608 fi
28609 rm -f conftest.err conftest.$ac_ext
28610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28611 echo "${ECHO_T}$ac_header_preproc" >&6
28612
28613 # So?  What about this header?
28614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28615   yes:no: )
28616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28620     ac_header_preproc=yes
28621     ;;
28622   no:yes:* )
28623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28635     (
28636       cat <<\_ASBOX
28637 ## ------------------------------------------ ##
28638 ## Report this to the AC_PACKAGE_NAME lists.  ##
28639 ## ------------------------------------------ ##
28640 _ASBOX
28641     ) |
28642       sed "s/^/$as_me: WARNING:     /" >&2
28643     ;;
28644 esac
28645 echo "$as_me:$LINENO: checking for $ac_header" >&5
28646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28648   echo $ECHO_N "(cached) $ECHO_C" >&6
28649 else
28650   eval "$as_ac_Header=\$ac_header_preproc"
28651 fi
28652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28654
28655 fi
28656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28657   cat >>confdefs.h <<_ACEOF
28658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28659 _ACEOF
28660
28661 fi
28662
28663 done
28664
28665
28666 # Checks for typedefs, structures, and compiler characteristics.
28667 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
28668 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
28669 if test "${ac_cv_c_const+set}" = set; then
28670   echo $ECHO_N "(cached) $ECHO_C" >&6
28671 else
28672   cat >conftest.$ac_ext <<_ACEOF
28673 /* confdefs.h.  */
28674 _ACEOF
28675 cat confdefs.h >>conftest.$ac_ext
28676 cat >>conftest.$ac_ext <<_ACEOF
28677 /* end confdefs.h.  */
28678
28679 int
28680 main ()
28681 {
28682 /* FIXME: Include the comments suggested by Paul. */
28683 #ifndef __cplusplus
28684   /* Ultrix mips cc rejects this.  */
28685   typedef int charset[2];
28686   const charset x;
28687   /* SunOS 4.1.1 cc rejects this.  */
28688   char const *const *ccp;
28689   char **p;
28690   /* NEC SVR4.0.2 mips cc rejects this.  */
28691   struct point {int x, y;};
28692   static struct point const zero = {0,0};
28693   /* AIX XL C 1.02.0.0 rejects this.
28694      It does not let you subtract one const X* pointer from another in
28695      an arm of an if-expression whose if-part is not a constant
28696      expression */
28697   const char *g = "string";
28698   ccp = &g + (g ? g-g : 0);
28699   /* HPUX 7.0 cc rejects these. */
28700   ++ccp;
28701   p = (char**) ccp;
28702   ccp = (char const *const *) p;
28703   { /* SCO 3.2v4 cc rejects this.  */
28704     char *t;
28705     char const *s = 0 ? (char *) 0 : (char const *) 0;
28706
28707     *t++ = 0;
28708   }
28709   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28710     int x[] = {25, 17};
28711     const int *foo = &x[0];
28712     ++foo;
28713   }
28714   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28715     typedef const int *iptr;
28716     iptr p = 0;
28717     ++p;
28718   }
28719   { /* AIX XL C 1.02.0.0 rejects this saying
28720        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28721     struct s { int j; const int *ap[3]; };
28722     struct s *b; b->j = 5;
28723   }
28724   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28725     const int foo = 10;
28726   }
28727 #endif
28728
28729   ;
28730   return 0;
28731 }
28732 _ACEOF
28733 rm -f conftest.$ac_objext
28734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28735   (eval $ac_compile) 2>conftest.er1
28736   ac_status=$?
28737   grep -v '^ *+' conftest.er1 >conftest.err
28738   rm -f conftest.er1
28739   cat conftest.err >&5
28740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741   (exit $ac_status); } &&
28742          { ac_try='test -z "$ac_c_werror_flag"
28743                          || test ! -s conftest.err'
28744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745   (eval $ac_try) 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); }; } &&
28749          { ac_try='test -s conftest.$ac_objext'
28750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751   (eval $ac_try) 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; }; then
28755   ac_cv_c_const=yes
28756 else
28757   echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.$ac_ext >&5
28759
28760 ac_cv_c_const=no
28761 fi
28762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28763 fi
28764 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
28765 echo "${ECHO_T}$ac_cv_c_const" >&6
28766 if test $ac_cv_c_const = no; then
28767
28768 cat >>confdefs.h <<\_ACEOF
28769 #define const
28770 _ACEOF
28771
28772 fi
28773
28774 echo "$as_me:$LINENO: checking for size_t" >&5
28775 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28776 if test "${ac_cv_type_size_t+set}" = set; then
28777   echo $ECHO_N "(cached) $ECHO_C" >&6
28778 else
28779   cat >conftest.$ac_ext <<_ACEOF
28780 /* confdefs.h.  */
28781 _ACEOF
28782 cat confdefs.h >>conftest.$ac_ext
28783 cat >>conftest.$ac_ext <<_ACEOF
28784 /* end confdefs.h.  */
28785 $ac_includes_default
28786 int
28787 main ()
28788 {
28789 if ((size_t *) 0)
28790   return 0;
28791 if (sizeof (size_t))
28792   return 0;
28793   ;
28794   return 0;
28795 }
28796 _ACEOF
28797 rm -f conftest.$ac_objext
28798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28799   (eval $ac_compile) 2>conftest.er1
28800   ac_status=$?
28801   grep -v '^ *+' conftest.er1 >conftest.err
28802   rm -f conftest.er1
28803   cat conftest.err >&5
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); } &&
28806          { ac_try='test -z "$ac_c_werror_flag"
28807                          || test ! -s conftest.err'
28808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809   (eval $ac_try) 2>&5
28810   ac_status=$?
28811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812   (exit $ac_status); }; } &&
28813          { ac_try='test -s conftest.$ac_objext'
28814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815   (eval $ac_try) 2>&5
28816   ac_status=$?
28817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818   (exit $ac_status); }; }; then
28819   ac_cv_type_size_t=yes
28820 else
28821   echo "$as_me: failed program was:" >&5
28822 sed 's/^/| /' conftest.$ac_ext >&5
28823
28824 ac_cv_type_size_t=no
28825 fi
28826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28827 fi
28828 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28829 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28830 if test $ac_cv_type_size_t = yes; then
28831   :
28832 else
28833
28834 cat >>confdefs.h <<_ACEOF
28835 #define size_t unsigned
28836 _ACEOF
28837
28838 fi
28839
28840 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28841 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
28842 if test "${ac_cv_header_time+set}" = set; then
28843   echo $ECHO_N "(cached) $ECHO_C" >&6
28844 else
28845   cat >conftest.$ac_ext <<_ACEOF
28846 /* confdefs.h.  */
28847 _ACEOF
28848 cat confdefs.h >>conftest.$ac_ext
28849 cat >>conftest.$ac_ext <<_ACEOF
28850 /* end confdefs.h.  */
28851 #include <sys/types.h>
28852 #include <sys/time.h>
28853 #include <time.h>
28854
28855 int
28856 main ()
28857 {
28858 if ((struct tm *) 0)
28859 return 0;
28860   ;
28861   return 0;
28862 }
28863 _ACEOF
28864 rm -f conftest.$ac_objext
28865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28866   (eval $ac_compile) 2>conftest.er1
28867   ac_status=$?
28868   grep -v '^ *+' conftest.er1 >conftest.err
28869   rm -f conftest.er1
28870   cat conftest.err >&5
28871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872   (exit $ac_status); } &&
28873          { ac_try='test -z "$ac_c_werror_flag"
28874                          || test ! -s conftest.err'
28875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876   (eval $ac_try) 2>&5
28877   ac_status=$?
28878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879   (exit $ac_status); }; } &&
28880          { ac_try='test -s conftest.$ac_objext'
28881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882   (eval $ac_try) 2>&5
28883   ac_status=$?
28884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885   (exit $ac_status); }; }; then
28886   ac_cv_header_time=yes
28887 else
28888   echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28890
28891 ac_cv_header_time=no
28892 fi
28893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28894 fi
28895 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28896 echo "${ECHO_T}$ac_cv_header_time" >&6
28897 if test $ac_cv_header_time = yes; then
28898
28899 cat >>confdefs.h <<\_ACEOF
28900 #define TIME_WITH_SYS_TIME 1
28901 _ACEOF
28902
28903 fi
28904
28905 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28906 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
28907 if test "${ac_cv_struct_tm+set}" = set; then
28908   echo $ECHO_N "(cached) $ECHO_C" >&6
28909 else
28910   cat >conftest.$ac_ext <<_ACEOF
28911 /* confdefs.h.  */
28912 _ACEOF
28913 cat confdefs.h >>conftest.$ac_ext
28914 cat >>conftest.$ac_ext <<_ACEOF
28915 /* end confdefs.h.  */
28916 #include <sys/types.h>
28917 #include <time.h>
28918
28919 int
28920 main ()
28921 {
28922 struct tm *tp; tp->tm_sec;
28923   ;
28924   return 0;
28925 }
28926 _ACEOF
28927 rm -f conftest.$ac_objext
28928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28929   (eval $ac_compile) 2>conftest.er1
28930   ac_status=$?
28931   grep -v '^ *+' conftest.er1 >conftest.err
28932   rm -f conftest.er1
28933   cat conftest.err >&5
28934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935   (exit $ac_status); } &&
28936          { ac_try='test -z "$ac_c_werror_flag"
28937                          || test ! -s conftest.err'
28938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28939   (eval $ac_try) 2>&5
28940   ac_status=$?
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); }; } &&
28943          { ac_try='test -s conftest.$ac_objext'
28944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945   (eval $ac_try) 2>&5
28946   ac_status=$?
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); }; }; then
28949   ac_cv_struct_tm=time.h
28950 else
28951   echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28953
28954 ac_cv_struct_tm=sys/time.h
28955 fi
28956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28957 fi
28958 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28959 echo "${ECHO_T}$ac_cv_struct_tm" >&6
28960 if test $ac_cv_struct_tm = sys/time.h; then
28961
28962 cat >>confdefs.h <<\_ACEOF
28963 #define TM_IN_SYS_TIME 1
28964 _ACEOF
28965
28966 fi
28967
28968
28969 echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
28970 echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6
28971 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
28972   echo $ECHO_N "(cached) $ECHO_C" >&6
28973 else
28974
28975         cat >conftest.$ac_ext <<_ACEOF
28976 /* confdefs.h.  */
28977 _ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h.  */
28981
28982 #include <sys/types.h>
28983 #include <sys/socket.h>
28984
28985 int
28986 main ()
28987 {
28988  struct sockaddr_storage s; s.ss_family = 1;
28989   ;
28990   return 0;
28991 }
28992 _ACEOF
28993 rm -f conftest.$ac_objext
28994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28995   (eval $ac_compile) 2>conftest.er1
28996   ac_status=$?
28997   grep -v '^ *+' conftest.er1 >conftest.err
28998   rm -f conftest.er1
28999   cat conftest.err >&5
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); } &&
29002          { ac_try='test -z "$ac_c_werror_flag"
29003                          || test ! -s conftest.err'
29004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005   (eval $ac_try) 2>&5
29006   ac_status=$?
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); }; } &&
29009          { ac_try='test -s conftest.$ac_objext'
29010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011   (eval $ac_try) 2>&5
29012   ac_status=$?
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); }; }; then
29015    ac_cv_have_ss_family_in_struct_ss="yes"
29016 else
29017   echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020  ac_cv_have_ss_family_in_struct_ss="no"
29021 fi
29022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29023
29024 fi
29025 echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
29026 echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6
29027 case "$ac_cv_have_ss_family_in_struct_ss" in
29028  yes)
29029
29030 cat >>confdefs.h <<\_ACEOF
29031 #define HAVE_SS_FAMILY_IN_SS 1
29032 _ACEOF
29033
29034     ;;
29035 esac
29036
29037 echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
29038 echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6
29039 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
29040   echo $ECHO_N "(cached) $ECHO_C" >&6
29041 else
29042
29043         cat >conftest.$ac_ext <<_ACEOF
29044 /* confdefs.h.  */
29045 _ACEOF
29046 cat confdefs.h >>conftest.$ac_ext
29047 cat >>conftest.$ac_ext <<_ACEOF
29048 /* end confdefs.h.  */
29049
29050 #include <sys/types.h>
29051 #include <sys/socket.h>
29052
29053 int
29054 main ()
29055 {
29056  struct sockaddr_storage s; s.__ss_family = 1;
29057   ;
29058   return 0;
29059 }
29060 _ACEOF
29061 rm -f conftest.$ac_objext
29062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29063   (eval $ac_compile) 2>conftest.er1
29064   ac_status=$?
29065   grep -v '^ *+' conftest.er1 >conftest.err
29066   rm -f conftest.er1
29067   cat conftest.err >&5
29068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069   (exit $ac_status); } &&
29070          { ac_try='test -z "$ac_c_werror_flag"
29071                          || test ! -s conftest.err'
29072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073   (eval $ac_try) 2>&5
29074   ac_status=$?
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); }; } &&
29077          { ac_try='test -s conftest.$ac_objext'
29078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29079   (eval $ac_try) 2>&5
29080   ac_status=$?
29081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29082   (exit $ac_status); }; }; then
29083    ac_cv_have___ss_family_in_struct_ss="yes"
29084 else
29085   echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.$ac_ext >&5
29087
29088  ac_cv_have___ss_family_in_struct_ss="no"
29089
29090 fi
29091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29092
29093 fi
29094 echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
29095 echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6
29096 case "$ac_cv_have___ss_family_in_struct_ss" in
29097  yes)
29098
29099 cat >>confdefs.h <<\_ACEOF
29100 #define HAVE___SS_FAMILY_IN_SS 1
29101 _ACEOF
29102
29103     ;;
29104 esac
29105
29106 case "$ac_cv_have_ss_family_in_struct_ss$ac_cv_have___ss_family_in_struct_ss" in
29107  noyes)
29108
29109 cat >>confdefs.h <<_ACEOF
29110 #define ss_family __ss_family
29111 _ACEOF
29112
29113
29114 cat >>confdefs.h <<_ACEOF
29115 #define ss_len __ss_len
29116 _ACEOF
29117
29118     ;;
29119 esac
29120
29121 # Checks for library functions.
29122 echo "$as_me:$LINENO: checking for working memcmp" >&5
29123 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
29124 if test "${ac_cv_func_memcmp_working+set}" = set; then
29125   echo $ECHO_N "(cached) $ECHO_C" >&6
29126 else
29127   if test "$cross_compiling" = yes; then
29128   ac_cv_func_memcmp_working=no
29129 else
29130   cat >conftest.$ac_ext <<_ACEOF
29131 /* confdefs.h.  */
29132 _ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h.  */
29136 $ac_includes_default
29137 int
29138 main ()
29139 {
29140
29141   /* Some versions of memcmp are not 8-bit clean.  */
29142   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
29143   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29144     exit (1);
29145
29146   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29147      or more and with at least one buffer not starting on a 4-byte boundary.
29148      William Lewis provided this test program.   */
29149   {
29150     char foo[21];
29151     char bar[21];
29152     int i;
29153     for (i = 0; i < 4; i++)
29154       {
29155         char *a = foo + i;
29156         char *b = bar + i;
29157         strcpy (a, "--------01111111");
29158         strcpy (b, "--------10000000");
29159         if (memcmp (a, b, 16) >= 0)
29160           exit (1);
29161       }
29162     exit (0);
29163   }
29164
29165   ;
29166   return 0;
29167 }
29168 _ACEOF
29169 rm -f conftest$ac_exeext
29170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29171   (eval $ac_link) 2>&5
29172   ac_status=$?
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176   (eval $ac_try) 2>&5
29177   ac_status=$?
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); }; }; then
29180   ac_cv_func_memcmp_working=yes
29181 else
29182   echo "$as_me: program exited with status $ac_status" >&5
29183 echo "$as_me: failed program was:" >&5
29184 sed 's/^/| /' conftest.$ac_ext >&5
29185
29186 ( exit $ac_status )
29187 ac_cv_func_memcmp_working=no
29188 fi
29189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29190 fi
29191 fi
29192 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29193 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
29194 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
29195     "memcmp.$ac_objext"   | \
29196   *" memcmp.$ac_objext"   | \
29197     "memcmp.$ac_objext "* | \
29198   *" memcmp.$ac_objext "* ) ;;
29199   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
29200 esac
29201
29202
29203 echo "$as_me:$LINENO: checking for function prototypes" >&5
29204 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
29205 if test "$ac_cv_prog_cc_stdc" != no; then
29206   echo "$as_me:$LINENO: result: yes" >&5
29207 echo "${ECHO_T}yes" >&6
29208
29209 cat >>confdefs.h <<\_ACEOF
29210 #define PROTOTYPES 1
29211 _ACEOF
29212
29213
29214 cat >>confdefs.h <<\_ACEOF
29215 #define __PROTOTYPES 1
29216 _ACEOF
29217
29218 else
29219   echo "$as_me:$LINENO: result: no" >&5
29220 echo "${ECHO_T}no" >&6
29221 fi
29222
29223 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
29224 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
29225 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
29226   echo $ECHO_N "(cached) $ECHO_C" >&6
29227 else
29228   ac_cv_func_setvbuf_reversed=no
29229    cat >conftest.$ac_ext <<_ACEOF
29230 /* confdefs.h.  */
29231 _ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h.  */
29235 #include <stdio.h>
29236 #         if PROTOTYPES
29237            int (setvbuf) (FILE *, int, char *, size_t);
29238 #         endif
29239 int
29240 main ()
29241 {
29242 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
29243   ;
29244   return 0;
29245 }
29246 _ACEOF
29247 rm -f conftest.$ac_objext conftest$ac_exeext
29248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29249   (eval $ac_link) 2>conftest.er1
29250   ac_status=$?
29251   grep -v '^ *+' conftest.er1 >conftest.err
29252   rm -f conftest.er1
29253   cat conftest.err >&5
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); } &&
29256          { ac_try='test -z "$ac_c_werror_flag"
29257                          || test ! -s conftest.err'
29258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259   (eval $ac_try) 2>&5
29260   ac_status=$?
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); }; } &&
29263          { ac_try='test -s conftest$ac_exeext'
29264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265   (eval $ac_try) 2>&5
29266   ac_status=$?
29267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268   (exit $ac_status); }; }; then
29269   cat >conftest.$ac_ext <<_ACEOF
29270 /* confdefs.h.  */
29271 _ACEOF
29272 cat confdefs.h >>conftest.$ac_ext
29273 cat >>conftest.$ac_ext <<_ACEOF
29274 /* end confdefs.h.  */
29275 #include <stdio.h>
29276 #            if PROTOTYPES
29277               int (setvbuf) (FILE *, int, char *, size_t);
29278 #            endif
29279 int
29280 main ()
29281 {
29282 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
29283   ;
29284   return 0;
29285 }
29286 _ACEOF
29287 rm -f conftest.$ac_objext conftest$ac_exeext
29288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29289   (eval $ac_link) 2>conftest.er1
29290   ac_status=$?
29291   grep -v '^ *+' conftest.er1 >conftest.err
29292   rm -f conftest.er1
29293   cat conftest.err >&5
29294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295   (exit $ac_status); } &&
29296          { ac_try='test -z "$ac_c_werror_flag"
29297                          || test ! -s conftest.err'
29298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29299   (eval $ac_try) 2>&5
29300   ac_status=$?
29301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302   (exit $ac_status); }; } &&
29303          { ac_try='test -s conftest$ac_exeext'
29304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29305   (eval $ac_try) 2>&5
29306   ac_status=$?
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); }; }; then
29309   # It compiles and links either way, so it must not be declared
29310          # with a prototype and most likely this is a K&R C compiler.
29311          # Try running it.
29312          if test "$cross_compiling" = yes; then
29313   : # Assume setvbuf is not reversed when cross-compiling.
29314 else
29315   cat >conftest.$ac_ext <<_ACEOF
29316 /* confdefs.h.  */
29317 _ACEOF
29318 cat confdefs.h >>conftest.$ac_ext
29319 cat >>conftest.$ac_ext <<_ACEOF
29320 /* end confdefs.h.  */
29321 #include <stdio.h>
29322 int
29323 main ()
29324 {
29325 /* This call has the arguments reversed.
29326                    A reversed system may check and see that the address of buf
29327                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
29328                 char buf;
29329                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
29330                   exit (1);
29331                 putchar ('\r');
29332                 exit (0); /* Non-reversed systems SEGV here.  */
29333   ;
29334   return 0;
29335 }
29336 _ACEOF
29337 rm -f conftest$ac_exeext
29338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29339   (eval $ac_link) 2>&5
29340   ac_status=$?
29341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344   (eval $ac_try) 2>&5
29345   ac_status=$?
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); }; }; then
29348   ac_cv_func_setvbuf_reversed=yes
29349 else
29350   echo "$as_me: program exited with status $ac_status" >&5
29351 echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29353
29354 ( exit $ac_status )
29355 rm -f core *.core
29356 fi
29357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29358 fi
29359         ac_cv_func_setvbuf_reversed=yes
29360 else
29361   echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29363
29364 fi
29365 rm -f conftest.err conftest.$ac_objext \
29366       conftest$ac_exeext conftest.$ac_ext
29367 else
29368   echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371 fi
29372 rm -f conftest.err conftest.$ac_objext \
29373       conftest$ac_exeext conftest.$ac_ext
29374 fi
29375 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
29376 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
29377 if test $ac_cv_func_setvbuf_reversed = yes; then
29378
29379 cat >>confdefs.h <<\_ACEOF
29380 #define SETVBUF_REVERSED 1
29381 _ACEOF
29382
29383 fi
29384
29385 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29386 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
29387 if test "${ac_cv_type_signal+set}" = set; then
29388   echo $ECHO_N "(cached) $ECHO_C" >&6
29389 else
29390   cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h.  */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h.  */
29396 #include <sys/types.h>
29397 #include <signal.h>
29398 #ifdef signal
29399 # undef signal
29400 #endif
29401 #ifdef __cplusplus
29402 extern "C" void (*signal (int, void (*)(int)))(int);
29403 #else
29404 void (*signal ()) ();
29405 #endif
29406
29407 int
29408 main ()
29409 {
29410 int i;
29411   ;
29412   return 0;
29413 }
29414 _ACEOF
29415 rm -f conftest.$ac_objext
29416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29417   (eval $ac_compile) 2>conftest.er1
29418   ac_status=$?
29419   grep -v '^ *+' conftest.er1 >conftest.err
29420   rm -f conftest.er1
29421   cat conftest.err >&5
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); } &&
29424          { ac_try='test -z "$ac_c_werror_flag"
29425                          || test ! -s conftest.err'
29426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427   (eval $ac_try) 2>&5
29428   ac_status=$?
29429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430   (exit $ac_status); }; } &&
29431          { ac_try='test -s conftest.$ac_objext'
29432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29433   (eval $ac_try) 2>&5
29434   ac_status=$?
29435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436   (exit $ac_status); }; }; then
29437   ac_cv_type_signal=void
29438 else
29439   echo "$as_me: failed program was:" >&5
29440 sed 's/^/| /' conftest.$ac_ext >&5
29441
29442 ac_cv_type_signal=int
29443 fi
29444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29445 fi
29446 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29447 echo "${ECHO_T}$ac_cv_type_signal" >&6
29448
29449 cat >>confdefs.h <<_ACEOF
29450 #define RETSIGTYPE $ac_cv_type_signal
29451 _ACEOF
29452
29453
29454
29455 for ac_func in alarm
29456 do
29457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29458 echo "$as_me:$LINENO: checking for $ac_func" >&5
29459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29460 if eval "test \"\${$as_ac_var+set}\" = set"; then
29461   echo $ECHO_N "(cached) $ECHO_C" >&6
29462 else
29463   cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h.  */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h.  */
29469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29471 #define $ac_func innocuous_$ac_func
29472
29473 /* System header to define __stub macros and hopefully few prototypes,
29474     which can conflict with char $ac_func (); below.
29475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29476     <limits.h> exists even on freestanding compilers.  */
29477
29478 #ifdef __STDC__
29479 # include <limits.h>
29480 #else
29481 # include <assert.h>
29482 #endif
29483
29484 #undef $ac_func
29485
29486 /* Override any gcc2 internal prototype to avoid an error.  */
29487 #ifdef __cplusplus
29488 extern "C"
29489 {
29490 #endif
29491 /* We use char because int might match the return type of a gcc2
29492    builtin and then its argument prototype would still apply.  */
29493 char $ac_func ();
29494 /* The GNU C library defines this for functions which it implements
29495     to always fail with ENOSYS.  Some functions are actually named
29496     something starting with __ and the normal name is an alias.  */
29497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29498 choke me
29499 #else
29500 char (*f) () = $ac_func;
29501 #endif
29502 #ifdef __cplusplus
29503 }
29504 #endif
29505
29506 int
29507 main ()
29508 {
29509 return f != $ac_func;
29510   ;
29511   return 0;
29512 }
29513 _ACEOF
29514 rm -f conftest.$ac_objext conftest$ac_exeext
29515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29516   (eval $ac_link) 2>conftest.er1
29517   ac_status=$?
29518   grep -v '^ *+' conftest.er1 >conftest.err
29519   rm -f conftest.er1
29520   cat conftest.err >&5
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); } &&
29523          { ac_try='test -z "$ac_c_werror_flag"
29524                          || test ! -s conftest.err'
29525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526   (eval $ac_try) 2>&5
29527   ac_status=$?
29528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529   (exit $ac_status); }; } &&
29530          { ac_try='test -s conftest$ac_exeext'
29531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532   (eval $ac_try) 2>&5
29533   ac_status=$?
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); }; }; then
29536   eval "$as_ac_var=yes"
29537 else
29538   echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29540
29541 eval "$as_ac_var=no"
29542 fi
29543 rm -f conftest.err conftest.$ac_objext \
29544       conftest$ac_exeext conftest.$ac_ext
29545 fi
29546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29548 if test `eval echo '${'$as_ac_var'}'` = yes; then
29549   cat >>confdefs.h <<_ACEOF
29550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29551 _ACEOF
29552
29553 fi
29554 done
29555
29556 echo "$as_me:$LINENO: checking for gethostent" >&5
29557 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
29558 if test "${ac_cv_func_gethostent+set}" = set; then
29559   echo $ECHO_N "(cached) $ECHO_C" >&6
29560 else
29561   cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
29568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29569 #define gethostent innocuous_gethostent
29570
29571 /* System header to define __stub macros and hopefully few prototypes,
29572     which can conflict with char gethostent (); below.
29573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29574     <limits.h> exists even on freestanding compilers.  */
29575
29576 #ifdef __STDC__
29577 # include <limits.h>
29578 #else
29579 # include <assert.h>
29580 #endif
29581
29582 #undef gethostent
29583
29584 /* Override any gcc2 internal prototype to avoid an error.  */
29585 #ifdef __cplusplus
29586 extern "C"
29587 {
29588 #endif
29589 /* We use char because int might match the return type of a gcc2
29590    builtin and then its argument prototype would still apply.  */
29591 char gethostent ();
29592 /* The GNU C library defines this for functions which it implements
29593     to always fail with ENOSYS.  Some functions are actually named
29594     something starting with __ and the normal name is an alias.  */
29595 #if defined (__stub_gethostent) || defined (__stub___gethostent)
29596 choke me
29597 #else
29598 char (*f) () = gethostent;
29599 #endif
29600 #ifdef __cplusplus
29601 }
29602 #endif
29603
29604 int
29605 main ()
29606 {
29607 return f != gethostent;
29608   ;
29609   return 0;
29610 }
29611 _ACEOF
29612 rm -f conftest.$ac_objext conftest$ac_exeext
29613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29614   (eval $ac_link) 2>conftest.er1
29615   ac_status=$?
29616   grep -v '^ *+' conftest.er1 >conftest.err
29617   rm -f conftest.er1
29618   cat conftest.err >&5
29619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620   (exit $ac_status); } &&
29621          { ac_try='test -z "$ac_c_werror_flag"
29622                          || test ! -s conftest.err'
29623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29624   (eval $ac_try) 2>&5
29625   ac_status=$?
29626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627   (exit $ac_status); }; } &&
29628          { ac_try='test -s conftest$ac_exeext'
29629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29630   (eval $ac_try) 2>&5
29631   ac_status=$?
29632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633   (exit $ac_status); }; }; then
29634   ac_cv_func_gethostent=yes
29635 else
29636   echo "$as_me: failed program was:" >&5
29637 sed 's/^/| /' conftest.$ac_ext >&5
29638
29639 ac_cv_func_gethostent=no
29640 fi
29641 rm -f conftest.err conftest.$ac_objext \
29642       conftest$ac_exeext conftest.$ac_ext
29643 fi
29644 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
29645 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
29646 if test $ac_cv_func_gethostent = yes; then
29647   :
29648 else
29649
29650 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
29651 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
29652 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
29653   echo $ECHO_N "(cached) $ECHO_C" >&6
29654 else
29655   ac_check_lib_save_LIBS=$LIBS
29656 LIBS="-lnsl -lsocket $LIBS"
29657 cat >conftest.$ac_ext <<_ACEOF
29658 /* confdefs.h.  */
29659 _ACEOF
29660 cat confdefs.h >>conftest.$ac_ext
29661 cat >>conftest.$ac_ext <<_ACEOF
29662 /* end confdefs.h.  */
29663
29664 /* Override any gcc2 internal prototype to avoid an error.  */
29665 #ifdef __cplusplus
29666 extern "C"
29667 #endif
29668 /* We use char because int might match the return type of a gcc2
29669    builtin and then its argument prototype would still apply.  */
29670 char gethostent ();
29671 int
29672 main ()
29673 {
29674 gethostent ();
29675   ;
29676   return 0;
29677 }
29678 _ACEOF
29679 rm -f conftest.$ac_objext conftest$ac_exeext
29680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29681   (eval $ac_link) 2>conftest.er1
29682   ac_status=$?
29683   grep -v '^ *+' conftest.er1 >conftest.err
29684   rm -f conftest.er1
29685   cat conftest.err >&5
29686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687   (exit $ac_status); } &&
29688          { ac_try='test -z "$ac_c_werror_flag"
29689                          || test ! -s conftest.err'
29690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691   (eval $ac_try) 2>&5
29692   ac_status=$?
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); }; } &&
29695          { ac_try='test -s conftest$ac_exeext'
29696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697   (eval $ac_try) 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); }; }; then
29701   ac_cv_lib_nsl_gethostent=yes
29702 else
29703   echo "$as_me: failed program was:" >&5
29704 sed 's/^/| /' conftest.$ac_ext >&5
29705
29706 ac_cv_lib_nsl_gethostent=no
29707 fi
29708 rm -f conftest.err conftest.$ac_objext \
29709       conftest$ac_exeext conftest.$ac_ext
29710 LIBS=$ac_check_lib_save_LIBS
29711 fi
29712 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
29713 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
29714 if test $ac_cv_lib_nsl_gethostent = yes; then
29715   cat >>confdefs.h <<_ACEOF
29716 #define HAVE_LIBNSL 1
29717 _ACEOF
29718
29719   LIBS="-lnsl $LIBS"
29720
29721 fi
29722
29723 fi
29724
29725
29726
29727
29728 for ac_func in gettimeofday inet_ntoa memset
29729 do
29730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29731 echo "$as_me:$LINENO: checking for $ac_func" >&5
29732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29733 if eval "test \"\${$as_ac_var+set}\" = set"; then
29734   echo $ECHO_N "(cached) $ECHO_C" >&6
29735 else
29736   cat >conftest.$ac_ext <<_ACEOF
29737 /* confdefs.h.  */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h.  */
29742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29744 #define $ac_func innocuous_$ac_func
29745
29746 /* System header to define __stub macros and hopefully few prototypes,
29747     which can conflict with char $ac_func (); below.
29748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29749     <limits.h> exists even on freestanding compilers.  */
29750
29751 #ifdef __STDC__
29752 # include <limits.h>
29753 #else
29754 # include <assert.h>
29755 #endif
29756
29757 #undef $ac_func
29758
29759 /* Override any gcc2 internal prototype to avoid an error.  */
29760 #ifdef __cplusplus
29761 extern "C"
29762 {
29763 #endif
29764 /* We use char because int might match the return type of a gcc2
29765    builtin and then its argument prototype would still apply.  */
29766 char $ac_func ();
29767 /* The GNU C library defines this for functions which it implements
29768     to always fail with ENOSYS.  Some functions are actually named
29769     something starting with __ and the normal name is an alias.  */
29770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29771 choke me
29772 #else
29773 char (*f) () = $ac_func;
29774 #endif
29775 #ifdef __cplusplus
29776 }
29777 #endif
29778
29779 int
29780 main ()
29781 {
29782 return f != $ac_func;
29783   ;
29784   return 0;
29785 }
29786 _ACEOF
29787 rm -f conftest.$ac_objext conftest$ac_exeext
29788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29789   (eval $ac_link) 2>conftest.er1
29790   ac_status=$?
29791   grep -v '^ *+' conftest.er1 >conftest.err
29792   rm -f conftest.er1
29793   cat conftest.err >&5
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); } &&
29796          { ac_try='test -z "$ac_c_werror_flag"
29797                          || test ! -s conftest.err'
29798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799   (eval $ac_try) 2>&5
29800   ac_status=$?
29801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802   (exit $ac_status); }; } &&
29803          { ac_try='test -s conftest$ac_exeext'
29804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805   (eval $ac_try) 2>&5
29806   ac_status=$?
29807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808   (exit $ac_status); }; }; then
29809   eval "$as_ac_var=yes"
29810 else
29811   echo "$as_me: failed program was:" >&5
29812 sed 's/^/| /' conftest.$ac_ext >&5
29813
29814 eval "$as_ac_var=no"
29815 fi
29816 rm -f conftest.err conftest.$ac_objext \
29817       conftest$ac_exeext conftest.$ac_ext
29818 fi
29819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29821 if test `eval echo '${'$as_ac_var'}'` = yes; then
29822   cat >>confdefs.h <<_ACEOF
29823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29824 _ACEOF
29825
29826 fi
29827 done
29828
29829
29830 for ac_func in socket
29831 do
29832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29833 echo "$as_me:$LINENO: checking for $ac_func" >&5
29834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29835 if eval "test \"\${$as_ac_var+set}\" = set"; then
29836   echo $ECHO_N "(cached) $ECHO_C" >&6
29837 else
29838   cat >conftest.$ac_ext <<_ACEOF
29839 /* confdefs.h.  */
29840 _ACEOF
29841 cat confdefs.h >>conftest.$ac_ext
29842 cat >>conftest.$ac_ext <<_ACEOF
29843 /* end confdefs.h.  */
29844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29846 #define $ac_func innocuous_$ac_func
29847
29848 /* System header to define __stub macros and hopefully few prototypes,
29849     which can conflict with char $ac_func (); below.
29850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29851     <limits.h> exists even on freestanding compilers.  */
29852
29853 #ifdef __STDC__
29854 # include <limits.h>
29855 #else
29856 # include <assert.h>
29857 #endif
29858
29859 #undef $ac_func
29860
29861 /* Override any gcc2 internal prototype to avoid an error.  */
29862 #ifdef __cplusplus
29863 extern "C"
29864 {
29865 #endif
29866 /* We use char because int might match the return type of a gcc2
29867    builtin and then its argument prototype would still apply.  */
29868 char $ac_func ();
29869 /* The GNU C library defines this for functions which it implements
29870     to always fail with ENOSYS.  Some functions are actually named
29871     something starting with __ and the normal name is an alias.  */
29872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29873 choke me
29874 #else
29875 char (*f) () = $ac_func;
29876 #endif
29877 #ifdef __cplusplus
29878 }
29879 #endif
29880
29881 int
29882 main ()
29883 {
29884 return f != $ac_func;
29885   ;
29886   return 0;
29887 }
29888 _ACEOF
29889 rm -f conftest.$ac_objext conftest$ac_exeext
29890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29891   (eval $ac_link) 2>conftest.er1
29892   ac_status=$?
29893   grep -v '^ *+' conftest.er1 >conftest.err
29894   rm -f conftest.er1
29895   cat conftest.err >&5
29896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); } &&
29898          { ac_try='test -z "$ac_c_werror_flag"
29899                          || test ! -s conftest.err'
29900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29901   (eval $ac_try) 2>&5
29902   ac_status=$?
29903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904   (exit $ac_status); }; } &&
29905          { ac_try='test -s conftest$ac_exeext'
29906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29907   (eval $ac_try) 2>&5
29908   ac_status=$?
29909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910   (exit $ac_status); }; }; then
29911   eval "$as_ac_var=yes"
29912 else
29913   echo "$as_me: failed program was:" >&5
29914 sed 's/^/| /' conftest.$ac_ext >&5
29915
29916 eval "$as_ac_var=no"
29917 fi
29918 rm -f conftest.err conftest.$ac_objext \
29919       conftest$ac_exeext conftest.$ac_ext
29920 fi
29921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29923 if test `eval echo '${'$as_ac_var'}'` = yes; then
29924   cat >>confdefs.h <<_ACEOF
29925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29926 _ACEOF
29927
29928 else
29929
29930 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
29931 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
29932 if test "${ac_cv_lib_socket_socket+set}" = set; then
29933   echo $ECHO_N "(cached) $ECHO_C" >&6
29934 else
29935   ac_check_lib_save_LIBS=$LIBS
29936 LIBS="-lsocket  $LIBS"
29937 cat >conftest.$ac_ext <<_ACEOF
29938 /* confdefs.h.  */
29939 _ACEOF
29940 cat confdefs.h >>conftest.$ac_ext
29941 cat >>conftest.$ac_ext <<_ACEOF
29942 /* end confdefs.h.  */
29943
29944 /* Override any gcc2 internal prototype to avoid an error.  */
29945 #ifdef __cplusplus
29946 extern "C"
29947 #endif
29948 /* We use char because int might match the return type of a gcc2
29949    builtin and then its argument prototype would still apply.  */
29950 char socket ();
29951 int
29952 main ()
29953 {
29954 socket ();
29955   ;
29956   return 0;
29957 }
29958 _ACEOF
29959 rm -f conftest.$ac_objext conftest$ac_exeext
29960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29961   (eval $ac_link) 2>conftest.er1
29962   ac_status=$?
29963   grep -v '^ *+' conftest.er1 >conftest.err
29964   rm -f conftest.er1
29965   cat conftest.err >&5
29966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967   (exit $ac_status); } &&
29968          { ac_try='test -z "$ac_c_werror_flag"
29969                          || test ! -s conftest.err'
29970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971   (eval $ac_try) 2>&5
29972   ac_status=$?
29973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974   (exit $ac_status); }; } &&
29975          { ac_try='test -s conftest$ac_exeext'
29976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977   (eval $ac_try) 2>&5
29978   ac_status=$?
29979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980   (exit $ac_status); }; }; then
29981   ac_cv_lib_socket_socket=yes
29982 else
29983   echo "$as_me: failed program was:" >&5
29984 sed 's/^/| /' conftest.$ac_ext >&5
29985
29986 ac_cv_lib_socket_socket=no
29987 fi
29988 rm -f conftest.err conftest.$ac_objext \
29989       conftest$ac_exeext conftest.$ac_ext
29990 LIBS=$ac_check_lib_save_LIBS
29991 fi
29992 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
29993 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
29994 if test $ac_cv_lib_socket_socket = yes; then
29995   cat >>confdefs.h <<_ACEOF
29996 #define HAVE_LIBSOCKET 1
29997 _ACEOF
29998
29999   LIBS="-lsocket $LIBS"
30000
30001 fi
30002
30003 fi
30004 done
30005
30006
30007 for ac_func in sqrt
30008 do
30009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30010 echo "$as_me:$LINENO: checking for $ac_func" >&5
30011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30012 if eval "test \"\${$as_ac_var+set}\" = set"; then
30013   echo $ECHO_N "(cached) $ECHO_C" >&6
30014 else
30015   cat >conftest.$ac_ext <<_ACEOF
30016 /* confdefs.h.  */
30017 _ACEOF
30018 cat confdefs.h >>conftest.$ac_ext
30019 cat >>conftest.$ac_ext <<_ACEOF
30020 /* end confdefs.h.  */
30021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30023 #define $ac_func innocuous_$ac_func
30024
30025 /* System header to define __stub macros and hopefully few prototypes,
30026     which can conflict with char $ac_func (); below.
30027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30028     <limits.h> exists even on freestanding compilers.  */
30029
30030 #ifdef __STDC__
30031 # include <limits.h>
30032 #else
30033 # include <assert.h>
30034 #endif
30035
30036 #undef $ac_func
30037
30038 /* Override any gcc2 internal prototype to avoid an error.  */
30039 #ifdef __cplusplus
30040 extern "C"
30041 {
30042 #endif
30043 /* We use char because int might match the return type of a gcc2
30044    builtin and then its argument prototype would still apply.  */
30045 char $ac_func ();
30046 /* The GNU C library defines this for functions which it implements
30047     to always fail with ENOSYS.  Some functions are actually named
30048     something starting with __ and the normal name is an alias.  */
30049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30050 choke me
30051 #else
30052 char (*f) () = $ac_func;
30053 #endif
30054 #ifdef __cplusplus
30055 }
30056 #endif
30057
30058 int
30059 main ()
30060 {
30061 return f != $ac_func;
30062   ;
30063   return 0;
30064 }
30065 _ACEOF
30066 rm -f conftest.$ac_objext conftest$ac_exeext
30067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30068   (eval $ac_link) 2>conftest.er1
30069   ac_status=$?
30070   grep -v '^ *+' conftest.er1 >conftest.err
30071   rm -f conftest.er1
30072   cat conftest.err >&5
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); } &&
30075          { ac_try='test -z "$ac_c_werror_flag"
30076                          || test ! -s conftest.err'
30077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30078   (eval $ac_try) 2>&5
30079   ac_status=$?
30080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081   (exit $ac_status); }; } &&
30082          { ac_try='test -s conftest$ac_exeext'
30083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084   (eval $ac_try) 2>&5
30085   ac_status=$?
30086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087   (exit $ac_status); }; }; then
30088   eval "$as_ac_var=yes"
30089 else
30090   echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30092
30093 eval "$as_ac_var=no"
30094 fi
30095 rm -f conftest.err conftest.$ac_objext \
30096       conftest$ac_exeext conftest.$ac_ext
30097 fi
30098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30100 if test `eval echo '${'$as_ac_var'}'` = yes; then
30101   cat >>confdefs.h <<_ACEOF
30102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30103 _ACEOF
30104
30105 else
30106
30107 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
30108 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
30109 if test "${ac_cv_lib_m_sqrt+set}" = set; then
30110   echo $ECHO_N "(cached) $ECHO_C" >&6
30111 else
30112   ac_check_lib_save_LIBS=$LIBS
30113 LIBS="-lm  $LIBS"
30114 cat >conftest.$ac_ext <<_ACEOF
30115 /* confdefs.h.  */
30116 _ACEOF
30117 cat confdefs.h >>conftest.$ac_ext
30118 cat >>conftest.$ac_ext <<_ACEOF
30119 /* end confdefs.h.  */
30120
30121 /* Override any gcc2 internal prototype to avoid an error.  */
30122 #ifdef __cplusplus
30123 extern "C"
30124 #endif
30125 /* We use char because int might match the return type of a gcc2
30126    builtin and then its argument prototype would still apply.  */
30127 char sqrt ();
30128 int
30129 main ()
30130 {
30131 sqrt ();
30132   ;
30133   return 0;
30134 }
30135 _ACEOF
30136 rm -f conftest.$ac_objext conftest$ac_exeext
30137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30138   (eval $ac_link) 2>conftest.er1
30139   ac_status=$?
30140   grep -v '^ *+' conftest.er1 >conftest.err
30141   rm -f conftest.er1
30142   cat conftest.err >&5
30143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144   (exit $ac_status); } &&
30145          { ac_try='test -z "$ac_c_werror_flag"
30146                          || test ! -s conftest.err'
30147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148   (eval $ac_try) 2>&5
30149   ac_status=$?
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); }; } &&
30152          { ac_try='test -s conftest$ac_exeext'
30153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154   (eval $ac_try) 2>&5
30155   ac_status=$?
30156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157   (exit $ac_status); }; }; then
30158   ac_cv_lib_m_sqrt=yes
30159 else
30160   echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30162
30163 ac_cv_lib_m_sqrt=no
30164 fi
30165 rm -f conftest.err conftest.$ac_objext \
30166       conftest$ac_exeext conftest.$ac_ext
30167 LIBS=$ac_check_lib_save_LIBS
30168 fi
30169 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
30170 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
30171 if test $ac_cv_lib_m_sqrt = yes; then
30172   cat >>confdefs.h <<_ACEOF
30173 #define HAVE_LIBM 1
30174 _ACEOF
30175
30176   LIBS="-lm $LIBS"
30177
30178 fi
30179
30180 fi
30181 done
30182
30183
30184 for ac_func in strrchr
30185 do
30186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30187 echo "$as_me:$LINENO: checking for $ac_func" >&5
30188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30189 if eval "test \"\${$as_ac_var+set}\" = set"; then
30190   echo $ECHO_N "(cached) $ECHO_C" >&6
30191 else
30192   cat >conftest.$ac_ext <<_ACEOF
30193 /* confdefs.h.  */
30194 _ACEOF
30195 cat confdefs.h >>conftest.$ac_ext
30196 cat >>conftest.$ac_ext <<_ACEOF
30197 /* end confdefs.h.  */
30198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30200 #define $ac_func innocuous_$ac_func
30201
30202 /* System header to define __stub macros and hopefully few prototypes,
30203     which can conflict with char $ac_func (); below.
30204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30205     <limits.h> exists even on freestanding compilers.  */
30206
30207 #ifdef __STDC__
30208 # include <limits.h>
30209 #else
30210 # include <assert.h>
30211 #endif
30212
30213 #undef $ac_func
30214
30215 /* Override any gcc2 internal prototype to avoid an error.  */
30216 #ifdef __cplusplus
30217 extern "C"
30218 {
30219 #endif
30220 /* We use char because int might match the return type of a gcc2
30221    builtin and then its argument prototype would still apply.  */
30222 char $ac_func ();
30223 /* The GNU C library defines this for functions which it implements
30224     to always fail with ENOSYS.  Some functions are actually named
30225     something starting with __ and the normal name is an alias.  */
30226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30227 choke me
30228 #else
30229 char (*f) () = $ac_func;
30230 #endif
30231 #ifdef __cplusplus
30232 }
30233 #endif
30234
30235 int
30236 main ()
30237 {
30238 return f != $ac_func;
30239   ;
30240   return 0;
30241 }
30242 _ACEOF
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30245   (eval $ac_link) 2>conftest.er1
30246   ac_status=$?
30247   grep -v '^ *+' conftest.er1 >conftest.err
30248   rm -f conftest.er1
30249   cat conftest.err >&5
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); } &&
30252          { ac_try='test -z "$ac_c_werror_flag"
30253                          || test ! -s conftest.err'
30254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30255   (eval $ac_try) 2>&5
30256   ac_status=$?
30257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258   (exit $ac_status); }; } &&
30259          { ac_try='test -s conftest$ac_exeext'
30260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30261   (eval $ac_try) 2>&5
30262   ac_status=$?
30263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264   (exit $ac_status); }; }; then
30265   eval "$as_ac_var=yes"
30266 else
30267   echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30269
30270 eval "$as_ac_var=no"
30271 fi
30272 rm -f conftest.err conftest.$ac_objext \
30273       conftest$ac_exeext conftest.$ac_ext
30274 fi
30275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30277 if test `eval echo '${'$as_ac_var'}'` = yes; then
30278   cat >>confdefs.h <<_ACEOF
30279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30280 _ACEOF
30281
30282 fi
30283 done
30284
30285
30286 case "$host" in
30287  *-*-hpux10.*)  # at least for hppa2.0-hp-hpux10.20
30288     case "$GCC" in
30289      yes)
30290         ;;
30291      *) CFLAGS="$CFLAGS -Wp,-H18816"
30292         ;;
30293     esac
30294     ;;
30295  *-*-linux*)
30296     CFLAGS="$CFLAGS -DADJTIME_MISSING"
30297     ;;
30298  *-*-sunos*)
30299     CFLAGS="$CFLAGS -DNONBLOCK_BROKEN"
30300     ;;
30301 esac
30302
30303 echo "$as_me:$LINENO: checking for bin subdirectory" >&5
30304 echo $ECHO_N "checking for bin subdirectory... $ECHO_C" >&6
30305
30306 # Check whether --with-binsubdir or --without-binsubdir was given.
30307 if test "${with_binsubdir+set}" = set; then
30308   withval="$with_binsubdir"
30309   use_binsubdir="$withval"
30310 else
30311   use_binsubdir="bin"
30312 fi;
30313
30314 case "$use_binsubdir" in
30315  bin)
30316     ;;
30317  sbin)
30318     ;;
30319  *)
30320     { { echo "$as_me:$LINENO: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&5
30321 echo "$as_me: error: <$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" >&2;}
30322    { (exit 1); exit 1; }; }
30323     ;;
30324 esac
30325 echo "$as_me:$LINENO: result: $use_binsubdir" >&5
30326 echo "${ECHO_T}$use_binsubdir" >&6
30327 BINSUBDIR=$use_binsubdir
30328
30329
30330           ac_config_files="$ac_config_files Makefile"
30331
30332 cat >confcache <<\_ACEOF
30333 # This file is a shell script that caches the results of configure
30334 # tests run on this system so they can be shared between configure
30335 # scripts and configure runs, see configure's option --config-cache.
30336 # It is not useful on other systems.  If it contains results you don't
30337 # want to keep, you may remove or edit it.
30338 #
30339 # config.status only pays attention to the cache file if you give it
30340 # the --recheck option to rerun configure.
30341 #
30342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30344 # following values.
30345
30346 _ACEOF
30347
30348 # The following way of writing the cache mishandles newlines in values,
30349 # but we know of no workaround that is simple, portable, and efficient.
30350 # So, don't put newlines in cache variables' values.
30351 # Ultrix sh set writes to stderr and can't be redirected directly,
30352 # and sets the high bit in the cache file unless we assign to the vars.
30353 {
30354   (set) 2>&1 |
30355     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30356     *ac_space=\ *)
30357       # `set' does not quote correctly, so add quotes (double-quote
30358       # substitution turns \\\\ into \\, and sed turns \\ into \).
30359       sed -n \
30360         "s/'/'\\\\''/g;
30361           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30362       ;;
30363     *)
30364       # `set' quotes correctly as required by POSIX, so do not add quotes.
30365       sed -n \
30366         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30367       ;;
30368     esac;
30369 } |
30370   sed '
30371      t clear
30372      : clear
30373      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30374      t end
30375      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30376      : end' >>confcache
30377 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30378   if test -w $cache_file; then
30379     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30380     cat confcache >$cache_file
30381   else
30382     echo "not updating unwritable cache $cache_file"
30383   fi
30384 fi
30385 rm -f confcache
30386
30387 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30388 # Let make expand exec_prefix.
30389 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30390
30391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30393 # trailing colons and then remove the whole line if VPATH becomes empty
30394 # (actually we leave an empty line to preserve line numbers).
30395 if test "x$srcdir" = x.; then
30396   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30397 s/:*\$(srcdir):*/:/;
30398 s/:*\${srcdir}:*/:/;
30399 s/:*@srcdir@:*/:/;
30400 s/^\([^=]*=[     ]*\):*/\1/;
30401 s/:*$//;
30402 s/^[^=]*=[       ]*$//;
30403 }'
30404 fi
30405
30406 DEFS=-DHAVE_CONFIG_H
30407
30408 ac_libobjs=
30409 ac_ltlibobjs=
30410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30411   # 1. Remove the extension, and $U if already installed.
30412   ac_i=`echo "$ac_i" |
30413          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30414   # 2. Add them.
30415   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30416   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30417 done
30418 LIBOBJS=$ac_libobjs
30419
30420 LTLIBOBJS=$ac_ltlibobjs
30421
30422
30423 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30424   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30425 Usually this means the macro was only invoked conditionally." >&5
30426 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30427 Usually this means the macro was only invoked conditionally." >&2;}
30428    { (exit 1); exit 1; }; }
30429 fi
30430 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30431   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30432 Usually this means the macro was only invoked conditionally." >&5
30433 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30434 Usually this means the macro was only invoked conditionally." >&2;}
30435    { (exit 1); exit 1; }; }
30436 fi
30437 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30438   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30439 Usually this means the macro was only invoked conditionally." >&5
30440 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30441 Usually this means the macro was only invoked conditionally." >&2;}
30442    { (exit 1); exit 1; }; }
30443 fi
30444 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
30445   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
30446 Usually this means the macro was only invoked conditionally." >&5
30447 echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
30448 Usually this means the macro was only invoked conditionally." >&2;}
30449    { (exit 1); exit 1; }; }
30450 fi
30451 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
30452   { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
30453 Usually this means the macro was only invoked conditionally." >&5
30454 echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
30455 Usually this means the macro was only invoked conditionally." >&2;}
30456    { (exit 1); exit 1; }; }
30457 fi
30458
30459 : ${CONFIG_STATUS=./config.status}
30460 ac_clean_files_save=$ac_clean_files
30461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30462 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30463 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30464 cat >$CONFIG_STATUS <<_ACEOF
30465 #! $SHELL
30466 # Generated by $as_me.
30467 # Run this file to recreate the current configuration.
30468 # Compiler output produced by configure, useful for debugging
30469 # configure, is in config.log if it exists.
30470
30471 debug=false
30472 ac_cs_recheck=false
30473 ac_cs_silent=false
30474 SHELL=\${CONFIG_SHELL-$SHELL}
30475 _ACEOF
30476
30477 cat >>$CONFIG_STATUS <<\_ACEOF
30478 ## --------------------- ##
30479 ## M4sh Initialization.  ##
30480 ## --------------------- ##
30481
30482 # Be Bourne compatible
30483 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30484   emulate sh
30485   NULLCMD=:
30486   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30487   # is contrary to our usage.  Disable this feature.
30488   alias -g '${1+"$@"}'='"$@"'
30489 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30490   set -o posix
30491 fi
30492 DUALCASE=1; export DUALCASE # for MKS sh
30493
30494 # Support unset when possible.
30495 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30496   as_unset=unset
30497 else
30498   as_unset=false
30499 fi
30500
30501
30502 # Work around bugs in pre-3.0 UWIN ksh.
30503 $as_unset ENV MAIL MAILPATH
30504 PS1='$ '
30505 PS2='> '
30506 PS4='+ '
30507
30508 # NLS nuisances.
30509 for as_var in \
30510   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30511   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30512   LC_TELEPHONE LC_TIME
30513 do
30514   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30515     eval $as_var=C; export $as_var
30516   else
30517     $as_unset $as_var
30518   fi
30519 done
30520
30521 # Required to use basename.
30522 if expr a : '\(a\)' >/dev/null 2>&1; then
30523   as_expr=expr
30524 else
30525   as_expr=false
30526 fi
30527
30528 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30529   as_basename=basename
30530 else
30531   as_basename=false
30532 fi
30533
30534
30535 # Name of the executable.
30536 as_me=`$as_basename "$0" ||
30537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30538          X"$0" : 'X\(//\)$' \| \
30539          X"$0" : 'X\(/\)$' \| \
30540          .     : '\(.\)' 2>/dev/null ||
30541 echo X/"$0" |
30542     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30543           /^X\/\(\/\/\)$/{ s//\1/; q; }
30544           /^X\/\(\/\).*/{ s//\1/; q; }
30545           s/.*/./; q'`
30546
30547
30548 # PATH needs CR, and LINENO needs CR and PATH.
30549 # Avoid depending upon Character Ranges.
30550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30553 as_cr_digits='0123456789'
30554 as_cr_alnum=$as_cr_Letters$as_cr_digits
30555
30556 # The user is always right.
30557 if test "${PATH_SEPARATOR+set}" != set; then
30558   echo "#! /bin/sh" >conf$$.sh
30559   echo  "exit 0"   >>conf$$.sh
30560   chmod +x conf$$.sh
30561   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30562     PATH_SEPARATOR=';'
30563   else
30564     PATH_SEPARATOR=:
30565   fi
30566   rm -f conf$$.sh
30567 fi
30568
30569
30570   as_lineno_1=$LINENO
30571   as_lineno_2=$LINENO
30572   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30573   test "x$as_lineno_1" != "x$as_lineno_2" &&
30574   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30575   # Find who we are.  Look in the path if we contain no path at all
30576   # relative or not.
30577   case $0 in
30578     *[\\/]* ) as_myself=$0 ;;
30579     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580 for as_dir in $PATH
30581 do
30582   IFS=$as_save_IFS
30583   test -z "$as_dir" && as_dir=.
30584   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30585 done
30586
30587        ;;
30588   esac
30589   # We did not find ourselves, most probably we were run as `sh COMMAND'
30590   # in which case we are not to be found in the path.
30591   if test "x$as_myself" = x; then
30592     as_myself=$0
30593   fi
30594   if test ! -f "$as_myself"; then
30595     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30596 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30597    { (exit 1); exit 1; }; }
30598   fi
30599   case $CONFIG_SHELL in
30600   '')
30601     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30602 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30603 do
30604   IFS=$as_save_IFS
30605   test -z "$as_dir" && as_dir=.
30606   for as_base in sh bash ksh sh5; do
30607          case $as_dir in
30608          /*)
30609            if ("$as_dir/$as_base" -c '
30610   as_lineno_1=$LINENO
30611   as_lineno_2=$LINENO
30612   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30613   test "x$as_lineno_1" != "x$as_lineno_2" &&
30614   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30615              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30616              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30617              CONFIG_SHELL=$as_dir/$as_base
30618              export CONFIG_SHELL
30619              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30620            fi;;
30621          esac
30622        done
30623 done
30624 ;;
30625   esac
30626
30627   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30628   # uniformly replaced by the line number.  The first 'sed' inserts a
30629   # line-number line before each line; the second 'sed' does the real
30630   # work.  The second script uses 'N' to pair each line-number line
30631   # with the numbered line, and appends trailing '-' during
30632   # substitution so that $LINENO is not a special case at line end.
30633   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30634   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30635   sed '=' <$as_myself |
30636     sed '
30637       N
30638       s,$,-,
30639       : loop
30640       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30641       t loop
30642       s,-$,,
30643       s,^['$as_cr_digits']*\n,,
30644     ' >$as_me.lineno &&
30645   chmod +x $as_me.lineno ||
30646     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30647 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30648    { (exit 1); exit 1; }; }
30649
30650   # Don't try to exec as it changes $[0], causing all sort of problems
30651   # (the dirname of $[0] is not the place where we might find the
30652   # original and so on.  Autoconf is especially sensible to this).
30653   . ./$as_me.lineno
30654   # Exit status is that of the last command.
30655   exit
30656 }
30657
30658
30659 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30660   *c*,-n*) ECHO_N= ECHO_C='
30661 ' ECHO_T='      ' ;;
30662   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30663   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30664 esac
30665
30666 if expr a : '\(a\)' >/dev/null 2>&1; then
30667   as_expr=expr
30668 else
30669   as_expr=false
30670 fi
30671
30672 rm -f conf$$ conf$$.exe conf$$.file
30673 echo >conf$$.file
30674 if ln -s conf$$.file conf$$ 2>/dev/null; then
30675   # We could just check for DJGPP; but this test a) works b) is more generic
30676   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30677   if test -f conf$$.exe; then
30678     # Don't use ln at all; we don't have any links
30679     as_ln_s='cp -p'
30680   else
30681     as_ln_s='ln -s'
30682   fi
30683 elif ln conf$$.file conf$$ 2>/dev/null; then
30684   as_ln_s=ln
30685 else
30686   as_ln_s='cp -p'
30687 fi
30688 rm -f conf$$ conf$$.exe conf$$.file
30689
30690 if mkdir -p . 2>/dev/null; then
30691   as_mkdir_p=:
30692 else
30693   test -d ./-p && rmdir ./-p
30694   as_mkdir_p=false
30695 fi
30696
30697 as_executable_p="test -f"
30698
30699 # Sed expression to map a string onto a valid CPP name.
30700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30701
30702 # Sed expression to map a string onto a valid variable name.
30703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30704
30705
30706 # IFS
30707 # We need space, tab and new line, in precisely that order.
30708 as_nl='
30709 '
30710 IFS="   $as_nl"
30711
30712 # CDPATH.
30713 $as_unset CDPATH
30714
30715 exec 6>&1
30716
30717 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30718 # report actual input values of CONFIG_FILES etc. instead of their
30719 # values after options handling.  Logging --version etc. is OK.
30720 exec 5>>config.log
30721 {
30722   echo
30723   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30724 ## Running $as_me. ##
30725 _ASBOX
30726 } >&5
30727 cat >&5 <<_CSEOF
30728
30729 This file was extended by $as_me, which was
30730 generated by GNU Autoconf 2.59.  Invocation command line was
30731
30732   CONFIG_FILES    = $CONFIG_FILES
30733   CONFIG_HEADERS  = $CONFIG_HEADERS
30734   CONFIG_LINKS    = $CONFIG_LINKS
30735   CONFIG_COMMANDS = $CONFIG_COMMANDS
30736   $ $0 $@
30737
30738 _CSEOF
30739 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30740 echo >&5
30741 _ACEOF
30742
30743 # Files that config.status was made for.
30744 if test -n "$ac_config_files"; then
30745   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30746 fi
30747
30748 if test -n "$ac_config_headers"; then
30749   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30750 fi
30751
30752 if test -n "$ac_config_links"; then
30753   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30754 fi
30755
30756 if test -n "$ac_config_commands"; then
30757   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30758 fi
30759
30760 cat >>$CONFIG_STATUS <<\_ACEOF
30761
30762 ac_cs_usage="\
30763 \`$as_me' instantiates files from templates according to the
30764 current configuration.
30765
30766 Usage: $0 [OPTIONS] [FILE]...
30767
30768   -h, --help       print this help, then exit
30769   -V, --version    print version number, then exit
30770   -q, --quiet      do not print progress messages
30771   -d, --debug      don't remove temporary files
30772       --recheck    update $as_me by reconfiguring in the same conditions
30773   --file=FILE[:TEMPLATE]
30774                    instantiate the configuration file FILE
30775   --header=FILE[:TEMPLATE]
30776                    instantiate the configuration header FILE
30777
30778 Configuration files:
30779 $config_files
30780
30781 Configuration headers:
30782 $config_headers
30783
30784 Configuration commands:
30785 $config_commands
30786
30787 Report bugs to <bug-autoconf@gnu.org>."
30788 _ACEOF
30789
30790 cat >>$CONFIG_STATUS <<_ACEOF
30791 ac_cs_version="\\
30792 config.status
30793 configured by $0, generated by GNU Autoconf 2.59,
30794   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30795
30796 Copyright (C) 2003 Free Software Foundation, Inc.
30797 This config.status script is free software; the Free Software Foundation
30798 gives unlimited permission to copy, distribute and modify it."
30799 srcdir=$srcdir
30800 INSTALL="$INSTALL"
30801 _ACEOF
30802
30803 cat >>$CONFIG_STATUS <<\_ACEOF
30804 # If no file are specified by the user, then we need to provide default
30805 # value.  By we need to know if files were specified by the user.
30806 ac_need_defaults=:
30807 while test $# != 0
30808 do
30809   case $1 in
30810   --*=*)
30811     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30812     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30813     ac_shift=:
30814     ;;
30815   -*)
30816     ac_option=$1
30817     ac_optarg=$2
30818     ac_shift=shift
30819     ;;
30820   *) # This is not an option, so the user has probably given explicit
30821      # arguments.
30822      ac_option=$1
30823      ac_need_defaults=false;;
30824   esac
30825
30826   case $ac_option in
30827   # Handling of the options.
30828 _ACEOF
30829 cat >>$CONFIG_STATUS <<\_ACEOF
30830   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30831     ac_cs_recheck=: ;;
30832   --version | --vers* | -V )
30833     echo "$ac_cs_version"; exit 0 ;;
30834   --he | --h)
30835     # Conflict between --help and --header
30836     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30837 Try \`$0 --help' for more information." >&5
30838 echo "$as_me: error: ambiguous option: $1
30839 Try \`$0 --help' for more information." >&2;}
30840    { (exit 1); exit 1; }; };;
30841   --help | --hel | -h )
30842     echo "$ac_cs_usage"; exit 0 ;;
30843   --debug | --d* | -d )
30844     debug=: ;;
30845   --file | --fil | --fi | --f )
30846     $ac_shift
30847     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30848     ac_need_defaults=false;;
30849   --header | --heade | --head | --hea )
30850     $ac_shift
30851     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30852     ac_need_defaults=false;;
30853   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30854   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30855     ac_cs_silent=: ;;
30856
30857   # This is an error.
30858   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30859 Try \`$0 --help' for more information." >&5
30860 echo "$as_me: error: unrecognized option: $1
30861 Try \`$0 --help' for more information." >&2;}
30862    { (exit 1); exit 1; }; } ;;
30863
30864   *) ac_config_targets="$ac_config_targets $1" ;;
30865
30866   esac
30867   shift
30868 done
30869
30870 ac_configure_extra_args=
30871
30872 if $ac_cs_silent; then
30873   exec 6>/dev/null
30874   ac_configure_extra_args="$ac_configure_extra_args --silent"
30875 fi
30876
30877 _ACEOF
30878 cat >>$CONFIG_STATUS <<_ACEOF
30879 if \$ac_cs_recheck; then
30880   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30881   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30882 fi
30883
30884 _ACEOF
30885
30886 cat >>$CONFIG_STATUS <<_ACEOF
30887 #
30888 # INIT-COMMANDS section.
30889 #
30890
30891 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30892
30893 _ACEOF
30894
30895
30896
30897 cat >>$CONFIG_STATUS <<\_ACEOF
30898 for ac_config_target in $ac_config_targets
30899 do
30900   case "$ac_config_target" in
30901   # Handling of arguments.
30902   "libopts/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
30903   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30904   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30905   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30906   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30907 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30908    { (exit 1); exit 1; }; };;
30909   esac
30910 done
30911
30912 # If the user did not use the arguments to specify the items to instantiate,
30913 # then the envvar interface is used.  Set only those that are not.
30914 # We use the long form for the default assignment because of an extremely
30915 # bizarre bug on SunOS 4.1.3.
30916 if $ac_need_defaults; then
30917   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30918   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30919   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30920 fi
30921
30922 # Have a temporary directory for convenience.  Make it in the build tree
30923 # simply because there is no reason to put it here, and in addition,
30924 # creating and moving files from /tmp can sometimes cause problems.
30925 # Create a temporary directory, and hook for its removal unless debugging.
30926 $debug ||
30927 {
30928   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30929   trap '{ (exit 1); exit 1; }' 1 2 13 15
30930 }
30931
30932 # Create a (secure) tmp directory for tmp files.
30933
30934 {
30935   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30936   test -n "$tmp" && test -d "$tmp"
30937 }  ||
30938 {
30939   tmp=./confstat$$-$RANDOM
30940   (umask 077 && mkdir $tmp)
30941 } ||
30942 {
30943    echo "$me: cannot create a temporary directory in ." >&2
30944    { (exit 1); exit 1; }
30945 }
30946
30947 _ACEOF
30948
30949 cat >>$CONFIG_STATUS <<_ACEOF
30950
30951 #
30952 # CONFIG_FILES section.
30953 #
30954
30955 # No need to generate the scripts if there are no CONFIG_FILES.
30956 # This happens for instance when ./config.status config.h
30957 if test -n "\$CONFIG_FILES"; then
30958   # Protect against being on the right side of a sed subst in config.status.
30959   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30960    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30961 s,@SHELL@,$SHELL,;t t
30962 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30963 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30964 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30965 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30966 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30967 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30968 s,@exec_prefix@,$exec_prefix,;t t
30969 s,@prefix@,$prefix,;t t
30970 s,@program_transform_name@,$program_transform_name,;t t
30971 s,@bindir@,$bindir,;t t
30972 s,@sbindir@,$sbindir,;t t
30973 s,@libexecdir@,$libexecdir,;t t
30974 s,@datadir@,$datadir,;t t
30975 s,@sysconfdir@,$sysconfdir,;t t
30976 s,@sharedstatedir@,$sharedstatedir,;t t
30977 s,@localstatedir@,$localstatedir,;t t
30978 s,@libdir@,$libdir,;t t
30979 s,@includedir@,$includedir,;t t
30980 s,@oldincludedir@,$oldincludedir,;t t
30981 s,@infodir@,$infodir,;t t
30982 s,@mandir@,$mandir,;t t
30983 s,@build_alias@,$build_alias,;t t
30984 s,@host_alias@,$host_alias,;t t
30985 s,@target_alias@,$target_alias,;t t
30986 s,@DEFS@,$DEFS,;t t
30987 s,@ECHO_C@,$ECHO_C,;t t
30988 s,@ECHO_N@,$ECHO_N,;t t
30989 s,@ECHO_T@,$ECHO_T,;t t
30990 s,@LIBS@,$LIBS,;t t
30991 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30992 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30993 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30994 s,@CYGPATH_W@,$CYGPATH_W,;t t
30995 s,@PACKAGE@,$PACKAGE,;t t
30996 s,@VERSION@,$VERSION,;t t
30997 s,@ACLOCAL@,$ACLOCAL,;t t
30998 s,@AUTOCONF@,$AUTOCONF,;t t
30999 s,@AUTOMAKE@,$AUTOMAKE,;t t
31000 s,@AUTOHEADER@,$AUTOHEADER,;t t
31001 s,@MAKEINFO@,$MAKEINFO,;t t
31002 s,@install_sh@,$install_sh,;t t
31003 s,@STRIP@,$STRIP,;t t
31004 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31005 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31006 s,@mkdir_p@,$mkdir_p,;t t
31007 s,@AWK@,$AWK,;t t
31008 s,@SET_MAKE@,$SET_MAKE,;t t
31009 s,@am__leading_dot@,$am__leading_dot,;t t
31010 s,@AMTAR@,$AMTAR,;t t
31011 s,@am__tar@,$am__tar,;t t
31012 s,@am__untar@,$am__untar,;t t
31013 s,@build@,$build,;t t
31014 s,@build_cpu@,$build_cpu,;t t
31015 s,@build_vendor@,$build_vendor,;t t
31016 s,@build_os@,$build_os,;t t
31017 s,@host@,$host,;t t
31018 s,@host_cpu@,$host_cpu,;t t
31019 s,@host_vendor@,$host_vendor,;t t
31020 s,@host_os@,$host_os,;t t
31021 s,@CC@,$CC,;t t
31022 s,@CFLAGS@,$CFLAGS,;t t
31023 s,@LDFLAGS@,$LDFLAGS,;t t
31024 s,@CPPFLAGS@,$CPPFLAGS,;t t
31025 s,@ac_ct_CC@,$ac_ct_CC,;t t
31026 s,@EXEEXT@,$EXEEXT,;t t
31027 s,@OBJEXT@,$OBJEXT,;t t
31028 s,@DEPDIR@,$DEPDIR,;t t
31029 s,@am__include@,$am__include,;t t
31030 s,@am__quote@,$am__quote,;t t
31031 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31032 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31033 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31034 s,@CCDEPMODE@,$CCDEPMODE,;t t
31035 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31036 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31037 s,@EGREP@,$EGREP,;t t
31038 s,@LN_S@,$LN_S,;t t
31039 s,@ECHO@,$ECHO,;t t
31040 s,@AR@,$AR,;t t
31041 s,@ac_ct_AR@,$ac_ct_AR,;t t
31042 s,@RANLIB@,$RANLIB,;t t
31043 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31044 s,@CPP@,$CPP,;t t
31045 s,@CXX@,$CXX,;t t
31046 s,@CXXFLAGS@,$CXXFLAGS,;t t
31047 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31048 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31049 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31050 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31051 s,@CXXCPP@,$CXXCPP,;t t
31052 s,@F77@,$F77,;t t
31053 s,@FFLAGS@,$FFLAGS,;t t
31054 s,@ac_ct_F77@,$ac_ct_F77,;t t
31055 s,@LIBTOOL@,$LIBTOOL,;t t
31056 s,@LIBOPTS_DIR@,$LIBOPTS_DIR,;t t
31057 s,@INSTALL_LIBOPTS_TRUE@,$INSTALL_LIBOPTS_TRUE,;t t
31058 s,@INSTALL_LIBOPTS_FALSE@,$INSTALL_LIBOPTS_FALSE,;t t
31059 s,@NEED_LIBOPTS_TRUE@,$NEED_LIBOPTS_TRUE,;t t
31060 s,@NEED_LIBOPTS_FALSE@,$NEED_LIBOPTS_FALSE,;t t
31061 s,@LIBOPTS_LDADD@,$LIBOPTS_LDADD,;t t
31062 s,@LIBOPTS_CFLAGS@,$LIBOPTS_CFLAGS,;t t
31063 s,@LIBOBJS@,$LIBOBJS,;t t
31064 s,@BINSUBDIR@,$BINSUBDIR,;t t
31065 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31066 CEOF
31067
31068 _ACEOF
31069
31070   cat >>$CONFIG_STATUS <<\_ACEOF
31071   # Split the substitutions into bite-sized pieces for seds with
31072   # small command number limits, like on Digital OSF/1 and HP-UX.
31073   ac_max_sed_lines=48
31074   ac_sed_frag=1 # Number of current file.
31075   ac_beg=1 # First line for current file.
31076   ac_end=$ac_max_sed_lines # Line after last line for current file.
31077   ac_more_lines=:
31078   ac_sed_cmds=
31079   while $ac_more_lines; do
31080     if test $ac_beg -gt 1; then
31081       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31082     else
31083       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31084     fi
31085     if test ! -s $tmp/subs.frag; then
31086       ac_more_lines=false
31087     else
31088       # The purpose of the label and of the branching condition is to
31089       # speed up the sed processing (if there are no `@' at all, there
31090       # is no need to browse any of the substitutions).
31091       # These are the two extra sed commands mentioned above.
31092       (echo ':t
31093   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31094       if test -z "$ac_sed_cmds"; then
31095         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31096       else
31097         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31098       fi
31099       ac_sed_frag=`expr $ac_sed_frag + 1`
31100       ac_beg=$ac_end
31101       ac_end=`expr $ac_end + $ac_max_sed_lines`
31102     fi
31103   done
31104   if test -z "$ac_sed_cmds"; then
31105     ac_sed_cmds=cat
31106   fi
31107 fi # test -n "$CONFIG_FILES"
31108
31109 _ACEOF
31110 cat >>$CONFIG_STATUS <<\_ACEOF
31111 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31112   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31113   case $ac_file in
31114   - | *:- | *:-:* ) # input from stdin
31115         cat >$tmp/stdin
31116         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31117         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31118   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31119         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31120   * )   ac_file_in=$ac_file.in ;;
31121   esac
31122
31123   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31124   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31126          X"$ac_file" : 'X\(//\)[^/]' \| \
31127          X"$ac_file" : 'X\(//\)$' \| \
31128          X"$ac_file" : 'X\(/\)' \| \
31129          .     : '\(.\)' 2>/dev/null ||
31130 echo X"$ac_file" |
31131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31132           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31133           /^X\(\/\/\)$/{ s//\1/; q; }
31134           /^X\(\/\).*/{ s//\1/; q; }
31135           s/.*/./; q'`
31136   { if $as_mkdir_p; then
31137     mkdir -p "$ac_dir"
31138   else
31139     as_dir="$ac_dir"
31140     as_dirs=
31141     while test ! -d "$as_dir"; do
31142       as_dirs="$as_dir $as_dirs"
31143       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31145          X"$as_dir" : 'X\(//\)[^/]' \| \
31146          X"$as_dir" : 'X\(//\)$' \| \
31147          X"$as_dir" : 'X\(/\)' \| \
31148          .     : '\(.\)' 2>/dev/null ||
31149 echo X"$as_dir" |
31150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31151           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31152           /^X\(\/\/\)$/{ s//\1/; q; }
31153           /^X\(\/\).*/{ s//\1/; q; }
31154           s/.*/./; q'`
31155     done
31156     test ! -n "$as_dirs" || mkdir $as_dirs
31157   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31158 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31159    { (exit 1); exit 1; }; }; }
31160
31161   ac_builddir=.
31162
31163 if test "$ac_dir" != .; then
31164   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31165   # A "../" for each directory in $ac_dir_suffix.
31166   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31167 else
31168   ac_dir_suffix= ac_top_builddir=
31169 fi
31170
31171 case $srcdir in
31172   .)  # No --srcdir option.  We are building in place.
31173     ac_srcdir=.
31174     if test -z "$ac_top_builddir"; then
31175        ac_top_srcdir=.
31176     else
31177        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31178     fi ;;
31179   [\\/]* | ?:[\\/]* )  # Absolute path.
31180     ac_srcdir=$srcdir$ac_dir_suffix;
31181     ac_top_srcdir=$srcdir ;;
31182   *) # Relative path.
31183     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31184     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31185 esac
31186
31187 # Do not use `cd foo && pwd` to compute absolute paths, because
31188 # the directories may not exist.
31189 case `pwd` in
31190 .) ac_abs_builddir="$ac_dir";;
31191 *)
31192   case "$ac_dir" in
31193   .) ac_abs_builddir=`pwd`;;
31194   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31195   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31196   esac;;
31197 esac
31198 case $ac_abs_builddir in
31199 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31200 *)
31201   case ${ac_top_builddir}. in
31202   .) ac_abs_top_builddir=$ac_abs_builddir;;
31203   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31204   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31205   esac;;
31206 esac
31207 case $ac_abs_builddir in
31208 .) ac_abs_srcdir=$ac_srcdir;;
31209 *)
31210   case $ac_srcdir in
31211   .) ac_abs_srcdir=$ac_abs_builddir;;
31212   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31213   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31214   esac;;
31215 esac
31216 case $ac_abs_builddir in
31217 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31218 *)
31219   case $ac_top_srcdir in
31220   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31221   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31222   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31223   esac;;
31224 esac
31225
31226
31227   case $INSTALL in
31228   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31229   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31230   esac
31231
31232   if test x"$ac_file" != x-; then
31233     { echo "$as_me:$LINENO: creating $ac_file" >&5
31234 echo "$as_me: creating $ac_file" >&6;}
31235     rm -f "$ac_file"
31236   fi
31237   # Let's still pretend it is `configure' which instantiates (i.e., don't
31238   # use $as_me), people would be surprised to read:
31239   #    /* config.h.  Generated by config.status.  */
31240   if test x"$ac_file" = x-; then
31241     configure_input=
31242   else
31243     configure_input="$ac_file.  "
31244   fi
31245   configure_input=$configure_input"Generated from `echo $ac_file_in |
31246                                      sed 's,.*/,,'` by configure."
31247
31248   # First look for the input files in the build tree, otherwise in the
31249   # src tree.
31250   ac_file_inputs=`IFS=:
31251     for f in $ac_file_in; do
31252       case $f in
31253       -) echo $tmp/stdin ;;
31254       [\\/$]*)
31255          # Absolute (can't be DOS-style, as IFS=:)
31256          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31257 echo "$as_me: error: cannot find input file: $f" >&2;}
31258    { (exit 1); exit 1; }; }
31259          echo "$f";;
31260       *) # Relative
31261          if test -f "$f"; then
31262            # Build tree
31263            echo "$f"
31264          elif test -f "$srcdir/$f"; then
31265            # Source tree
31266            echo "$srcdir/$f"
31267          else
31268            # /dev/null tree
31269            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31270 echo "$as_me: error: cannot find input file: $f" >&2;}
31271    { (exit 1); exit 1; }; }
31272          fi;;
31273       esac
31274     done` || { (exit 1); exit 1; }
31275 _ACEOF
31276 cat >>$CONFIG_STATUS <<_ACEOF
31277   sed "$ac_vpsub
31278 $extrasub
31279 _ACEOF
31280 cat >>$CONFIG_STATUS <<\_ACEOF
31281 :t
31282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31283 s,@configure_input@,$configure_input,;t t
31284 s,@srcdir@,$ac_srcdir,;t t
31285 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31286 s,@top_srcdir@,$ac_top_srcdir,;t t
31287 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31288 s,@builddir@,$ac_builddir,;t t
31289 s,@abs_builddir@,$ac_abs_builddir,;t t
31290 s,@top_builddir@,$ac_top_builddir,;t t
31291 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31292 s,@INSTALL@,$ac_INSTALL,;t t
31293 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31294   rm -f $tmp/stdin
31295   if test x"$ac_file" != x-; then
31296     mv $tmp/out $ac_file
31297   else
31298     cat $tmp/out
31299     rm -f $tmp/out
31300   fi
31301
31302 done
31303 _ACEOF
31304 cat >>$CONFIG_STATUS <<\_ACEOF
31305
31306 #
31307 # CONFIG_HEADER section.
31308 #
31309
31310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31312 #
31313 # ac_d sets the value in "#define NAME VALUE" lines.
31314 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31315 ac_dB='[         ].*$,\1#\2'
31316 ac_dC=' '
31317 ac_dD=',;t'
31318 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31319 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31320 ac_uB='$,\1#\2define\3'
31321 ac_uC=' '
31322 ac_uD=',;t'
31323
31324 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31325   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31326   case $ac_file in
31327   - | *:- | *:-:* ) # input from stdin
31328         cat >$tmp/stdin
31329         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31331   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31332         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31333   * )   ac_file_in=$ac_file.in ;;
31334   esac
31335
31336   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31337 echo "$as_me: creating $ac_file" >&6;}
31338
31339   # First look for the input files in the build tree, otherwise in the
31340   # src tree.
31341   ac_file_inputs=`IFS=:
31342     for f in $ac_file_in; do
31343       case $f in
31344       -) echo $tmp/stdin ;;
31345       [\\/$]*)
31346          # Absolute (can't be DOS-style, as IFS=:)
31347          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31348 echo "$as_me: error: cannot find input file: $f" >&2;}
31349    { (exit 1); exit 1; }; }
31350          # Do quote $f, to prevent DOS paths from being IFS'd.
31351          echo "$f";;
31352       *) # Relative
31353          if test -f "$f"; then
31354            # Build tree
31355            echo "$f"
31356          elif test -f "$srcdir/$f"; then
31357            # Source tree
31358            echo "$srcdir/$f"
31359          else
31360            # /dev/null tree
31361            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31362 echo "$as_me: error: cannot find input file: $f" >&2;}
31363    { (exit 1); exit 1; }; }
31364          fi;;
31365       esac
31366     done` || { (exit 1); exit 1; }
31367   # Remove the trailing spaces.
31368   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31369
31370 _ACEOF
31371
31372 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31373 # `conftest.undefs', that substitutes the proper values into
31374 # config.h.in to produce config.h.  The first handles `#define'
31375 # templates, and the second `#undef' templates.
31376 # And first: Protect against being on the right side of a sed subst in
31377 # config.status.  Protect against being in an unquoted here document
31378 # in config.status.
31379 rm -f conftest.defines conftest.undefs
31380 # Using a here document instead of a string reduces the quoting nightmare.
31381 # Putting comments in sed scripts is not portable.
31382 #
31383 # `end' is used to avoid that the second main sed command (meant for
31384 # 0-ary CPP macros) applies to n-ary macro definitions.
31385 # See the Autoconf documentation for `clear'.
31386 cat >confdef2sed.sed <<\_ACEOF
31387 s/[\\&,]/\\&/g
31388 s,[\\$`],\\&,g
31389 t clear
31390 : clear
31391 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31392 t end
31393 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31394 : end
31395 _ACEOF
31396 # If some macros were called several times there might be several times
31397 # the same #defines, which is useless.  Nevertheless, we may not want to
31398 # sort them, since we want the *last* AC-DEFINE to be honored.
31399 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31400 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31401 rm -f confdef2sed.sed
31402
31403 # This sed command replaces #undef with comments.  This is necessary, for
31404 # example, in the case of _POSIX_SOURCE, which is predefined and required
31405 # on some systems where configure will not decide to define it.
31406 cat >>conftest.undefs <<\_ACEOF
31407 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31408 _ACEOF
31409
31410 # Break up conftest.defines because some shells have a limit on the size
31411 # of here documents, and old seds have small limits too (100 cmds).
31412 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31413 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31414 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31415 echo '  :' >>$CONFIG_STATUS
31416 rm -f conftest.tail
31417 while grep . conftest.defines >/dev/null
31418 do
31419   # Write a limited-size here document to $tmp/defines.sed.
31420   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31421   # Speed up: don't consider the non `#define' lines.
31422   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31423   # Work around the forget-to-reset-the-flag bug.
31424   echo 't clr' >>$CONFIG_STATUS
31425   echo ': clr' >>$CONFIG_STATUS
31426   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31427   echo 'CEOF
31428   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31429   rm -f $tmp/in
31430   mv $tmp/out $tmp/in
31431 ' >>$CONFIG_STATUS
31432   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31433   rm -f conftest.defines
31434   mv conftest.tail conftest.defines
31435 done
31436 rm -f conftest.defines
31437 echo '  fi # grep' >>$CONFIG_STATUS
31438 echo >>$CONFIG_STATUS
31439
31440 # Break up conftest.undefs because some shells have a limit on the size
31441 # of here documents, and old seds have small limits too (100 cmds).
31442 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31443 rm -f conftest.tail
31444 while grep . conftest.undefs >/dev/null
31445 do
31446   # Write a limited-size here document to $tmp/undefs.sed.
31447   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31448   # Speed up: don't consider the non `#undef'
31449   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31450   # Work around the forget-to-reset-the-flag bug.
31451   echo 't clr' >>$CONFIG_STATUS
31452   echo ': clr' >>$CONFIG_STATUS
31453   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31454   echo 'CEOF
31455   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31456   rm -f $tmp/in
31457   mv $tmp/out $tmp/in
31458 ' >>$CONFIG_STATUS
31459   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31460   rm -f conftest.undefs
31461   mv conftest.tail conftest.undefs
31462 done
31463 rm -f conftest.undefs
31464
31465 cat >>$CONFIG_STATUS <<\_ACEOF
31466   # Let's still pretend it is `configure' which instantiates (i.e., don't
31467   # use $as_me), people would be surprised to read:
31468   #    /* config.h.  Generated by config.status.  */
31469   if test x"$ac_file" = x-; then
31470     echo "/* Generated by configure.  */" >$tmp/config.h
31471   else
31472     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31473   fi
31474   cat $tmp/in >>$tmp/config.h
31475   rm -f $tmp/in
31476   if test x"$ac_file" != x-; then
31477     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31478       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31479 echo "$as_me: $ac_file is unchanged" >&6;}
31480     else
31481       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31483          X"$ac_file" : 'X\(//\)[^/]' \| \
31484          X"$ac_file" : 'X\(//\)$' \| \
31485          X"$ac_file" : 'X\(/\)' \| \
31486          .     : '\(.\)' 2>/dev/null ||
31487 echo X"$ac_file" |
31488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31490           /^X\(\/\/\)$/{ s//\1/; q; }
31491           /^X\(\/\).*/{ s//\1/; q; }
31492           s/.*/./; q'`
31493       { if $as_mkdir_p; then
31494     mkdir -p "$ac_dir"
31495   else
31496     as_dir="$ac_dir"
31497     as_dirs=
31498     while test ! -d "$as_dir"; do
31499       as_dirs="$as_dir $as_dirs"
31500       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31502          X"$as_dir" : 'X\(//\)[^/]' \| \
31503          X"$as_dir" : 'X\(//\)$' \| \
31504          X"$as_dir" : 'X\(/\)' \| \
31505          .     : '\(.\)' 2>/dev/null ||
31506 echo X"$as_dir" |
31507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31508           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31509           /^X\(\/\/\)$/{ s//\1/; q; }
31510           /^X\(\/\).*/{ s//\1/; q; }
31511           s/.*/./; q'`
31512     done
31513     test ! -n "$as_dirs" || mkdir $as_dirs
31514   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31515 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31516    { (exit 1); exit 1; }; }; }
31517
31518       rm -f $ac_file
31519       mv $tmp/config.h $ac_file
31520     fi
31521   else
31522     cat $tmp/config.h
31523     rm -f $tmp/config.h
31524   fi
31525 # Compute $ac_file's index in $config_headers.
31526 _am_stamp_count=1
31527 for _am_header in $config_headers :; do
31528   case $_am_header in
31529     $ac_file | $ac_file:* )
31530       break ;;
31531     * )
31532       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31533   esac
31534 done
31535 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31536 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31537          X$ac_file : 'X\(//\)[^/]' \| \
31538          X$ac_file : 'X\(//\)$' \| \
31539          X$ac_file : 'X\(/\)' \| \
31540          .     : '\(.\)' 2>/dev/null ||
31541 echo X$ac_file |
31542     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31543           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31544           /^X\(\/\/\)$/{ s//\1/; q; }
31545           /^X\(\/\).*/{ s//\1/; q; }
31546           s/.*/./; q'`/stamp-h$_am_stamp_count
31547 done
31548 _ACEOF
31549 cat >>$CONFIG_STATUS <<\_ACEOF
31550
31551 #
31552 # CONFIG_COMMANDS section.
31553 #
31554 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31555   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31556   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31557   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31558 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31559          X"$ac_dest" : 'X\(//\)[^/]' \| \
31560          X"$ac_dest" : 'X\(//\)$' \| \
31561          X"$ac_dest" : 'X\(/\)' \| \
31562          .     : '\(.\)' 2>/dev/null ||
31563 echo X"$ac_dest" |
31564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31565           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31566           /^X\(\/\/\)$/{ s//\1/; q; }
31567           /^X\(\/\).*/{ s//\1/; q; }
31568           s/.*/./; q'`
31569   { if $as_mkdir_p; then
31570     mkdir -p "$ac_dir"
31571   else
31572     as_dir="$ac_dir"
31573     as_dirs=
31574     while test ! -d "$as_dir"; do
31575       as_dirs="$as_dir $as_dirs"
31576       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31578          X"$as_dir" : 'X\(//\)[^/]' \| \
31579          X"$as_dir" : 'X\(//\)$' \| \
31580          X"$as_dir" : 'X\(/\)' \| \
31581          .     : '\(.\)' 2>/dev/null ||
31582 echo X"$as_dir" |
31583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31584           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31585           /^X\(\/\/\)$/{ s//\1/; q; }
31586           /^X\(\/\).*/{ s//\1/; q; }
31587           s/.*/./; q'`
31588     done
31589     test ! -n "$as_dirs" || mkdir $as_dirs
31590   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31591 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31592    { (exit 1); exit 1; }; }; }
31593
31594   ac_builddir=.
31595
31596 if test "$ac_dir" != .; then
31597   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31598   # A "../" for each directory in $ac_dir_suffix.
31599   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31600 else
31601   ac_dir_suffix= ac_top_builddir=
31602 fi
31603
31604 case $srcdir in
31605   .)  # No --srcdir option.  We are building in place.
31606     ac_srcdir=.
31607     if test -z "$ac_top_builddir"; then
31608        ac_top_srcdir=.
31609     else
31610        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31611     fi ;;
31612   [\\/]* | ?:[\\/]* )  # Absolute path.
31613     ac_srcdir=$srcdir$ac_dir_suffix;
31614     ac_top_srcdir=$srcdir ;;
31615   *) # Relative path.
31616     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31617     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31618 esac
31619
31620 # Do not use `cd foo && pwd` to compute absolute paths, because
31621 # the directories may not exist.
31622 case `pwd` in
31623 .) ac_abs_builddir="$ac_dir";;
31624 *)
31625   case "$ac_dir" in
31626   .) ac_abs_builddir=`pwd`;;
31627   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31628   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31629   esac;;
31630 esac
31631 case $ac_abs_builddir in
31632 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31633 *)
31634   case ${ac_top_builddir}. in
31635   .) ac_abs_top_builddir=$ac_abs_builddir;;
31636   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31637   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31638   esac;;
31639 esac
31640 case $ac_abs_builddir in
31641 .) ac_abs_srcdir=$ac_srcdir;;
31642 *)
31643   case $ac_srcdir in
31644   .) ac_abs_srcdir=$ac_abs_builddir;;
31645   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31646   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31647   esac;;
31648 esac
31649 case $ac_abs_builddir in
31650 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31651 *)
31652   case $ac_top_srcdir in
31653   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31654   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31655   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31656   esac;;
31657 esac
31658
31659
31660   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31661 echo "$as_me: executing $ac_dest commands" >&6;}
31662   case $ac_dest in
31663     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31664   # Strip MF so we end up with the name of the file.
31665   mf=`echo "$mf" | sed -e 's/:.*$//'`
31666   # Check whether this is an Automake generated Makefile or not.
31667   # We used to match only the files named `Makefile.in', but
31668   # some people rename them; so instead we look at the file content.
31669   # Grep'ing the first line is not enough: some people post-process
31670   # each Makefile.in and add a new line on top of each file to say so.
31671   # So let's grep whole file.
31672   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31673     dirpart=`(dirname "$mf") 2>/dev/null ||
31674 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31675          X"$mf" : 'X\(//\)[^/]' \| \
31676          X"$mf" : 'X\(//\)$' \| \
31677          X"$mf" : 'X\(/\)' \| \
31678          .     : '\(.\)' 2>/dev/null ||
31679 echo X"$mf" |
31680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31682           /^X\(\/\/\)$/{ s//\1/; q; }
31683           /^X\(\/\).*/{ s//\1/; q; }
31684           s/.*/./; q'`
31685   else
31686     continue
31687   fi
31688   # Extract the definition of DEPDIR, am__include, and am__quote
31689   # from the Makefile without running `make'.
31690   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31691   test -z "$DEPDIR" && continue
31692   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31693   test -z "am__include" && continue
31694   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31695   # When using ansi2knr, U may be empty or an underscore; expand it
31696   U=`sed -n 's/^U = //p' < "$mf"`
31697   # Find all dependency output files, they are included files with
31698   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31699   # simplest approach to changing $(DEPDIR) to its actual value in the
31700   # expansion.
31701   for file in `sed -n "
31702     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31703        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31704     # Make sure the directory exists.
31705     test -f "$dirpart/$file" && continue
31706     fdir=`(dirname "$file") 2>/dev/null ||
31707 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31708          X"$file" : 'X\(//\)[^/]' \| \
31709          X"$file" : 'X\(//\)$' \| \
31710          X"$file" : 'X\(/\)' \| \
31711          .     : '\(.\)' 2>/dev/null ||
31712 echo X"$file" |
31713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31715           /^X\(\/\/\)$/{ s//\1/; q; }
31716           /^X\(\/\).*/{ s//\1/; q; }
31717           s/.*/./; q'`
31718     { if $as_mkdir_p; then
31719     mkdir -p $dirpart/$fdir
31720   else
31721     as_dir=$dirpart/$fdir
31722     as_dirs=
31723     while test ! -d "$as_dir"; do
31724       as_dirs="$as_dir $as_dirs"
31725       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31727          X"$as_dir" : 'X\(//\)[^/]' \| \
31728          X"$as_dir" : 'X\(//\)$' \| \
31729          X"$as_dir" : 'X\(/\)' \| \
31730          .     : '\(.\)' 2>/dev/null ||
31731 echo X"$as_dir" |
31732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31733           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31734           /^X\(\/\/\)$/{ s//\1/; q; }
31735           /^X\(\/\).*/{ s//\1/; q; }
31736           s/.*/./; q'`
31737     done
31738     test ! -n "$as_dirs" || mkdir $as_dirs
31739   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31740 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31741    { (exit 1); exit 1; }; }; }
31742
31743     # echo "creating $dirpart/$file"
31744     echo '# dummy' > "$dirpart/$file"
31745   done
31746 done
31747  ;;
31748   esac
31749 done
31750 _ACEOF
31751
31752 cat >>$CONFIG_STATUS <<\_ACEOF
31753
31754 { (exit 0); exit 0; }
31755 _ACEOF
31756 chmod +x $CONFIG_STATUS
31757 ac_clean_files=$ac_clean_files_save
31758
31759
31760 # configure is writing to config.log, and then calls config.status.
31761 # config.status does its own redirection, appending to config.log.
31762 # Unfortunately, on DOS this fails, as config.log is still kept open
31763 # by configure, so config.status won't be able to write to it; its
31764 # output is simply discarded.  So we exec the FD to /dev/null,
31765 # effectively closing config.log, so it can be properly (re)opened and
31766 # appended to by config.status.  When coming back to configure, we
31767 # need to make the FD available again.
31768 if test "$no_create" != yes; then
31769   ac_cs_success=:
31770   ac_config_status_args=
31771   test "$silent" = yes &&
31772     ac_config_status_args="$ac_config_status_args --quiet"
31773   exec 5>/dev/null
31774   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31775   exec 5>>config.log
31776   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31777   # would make configure fail if this is the last instruction.
31778   $ac_cs_success || { (exit 1); exit 1; }
31779 fi
31780