TIVI-153: Add as dependency for iputils
[profile/ivi/opensp.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.29.2.41 2005/12/16 08:12:19 tbe Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
290        echo_test_string=`eval $cmd` &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="pubtext"
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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SP_LIBOSP_CUR SP_LIBOSP_REV SP_LIBOSP_AGE 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LN_S PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB SP_MESSAGE_DOMAIN LIBOBJS DTDDECL_TRUE DTDDECL_FALSE XMLTO DOCSRC PDF2PS JADE JADETEX PDFJADETEX EXTRADOCS 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   --enable-maintainer-mode  enable make rules and dependencies not useful
1028                           (and sometimes confusing) to the casual installer
1029   --disable-dependency-tracking  speeds up one-time build
1030   --enable-dependency-tracking   do not reject slow dependency extractors
1031   --enable-shared[=PKGS]
1032                           build shared libraries [default=yes]
1033   --enable-static[=PKGS]
1034                           build static libraries [default=yes]
1035   --enable-fast-install[=PKGS]
1036                           optimize for fast installation [default=yes]
1037   --disable-libtool-lock  avoid locking (might break parallel builds)
1038   --disable-nls           do not use Native Language Support
1039   --disable-rpath         do not hardcode runtime library paths
1040   --enable-http           include support for http
1041   --enable-default-catalog=pathlist
1042                           provide one or more default catalog files or
1043                           sysids, e.g. /usr/local/lib/sgml/catalog
1044   --enable-default-search-path=pathlist
1045                           provide a default value for SGML_SEARCH_PATH
1046   --enable-xml-messages   include support for XML Formatted Messages
1047   --disable-dtddecl       disable support for DTDDECL catalog entries
1048   --disable-doc-build     do not build docs from source
1049   --enable-full-doc-build build all docs from source
1050
1051 Optional Packages:
1052   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055   --with-pic              try to use only PIC/non-PIC objects [default=use
1056                           both]
1057   --with-tags[=TAGS]
1058                           include additional configurations [automatic]
1059   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1060   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1061   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1062   --with-included-gettext use the GNU gettext library included here
1063   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1064   --without-libintl-prefix     don't search for libintl in includedir and libdir
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 _ACEOF
1084 fi
1085
1086 if test "$ac_init_help" = "recursive"; then
1087   # If there are subdirs, report their specific --help.
1088   ac_popdir=`pwd`
1089   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090     test -d $ac_dir || continue
1091     ac_builddir=.
1092
1093 if test "$ac_dir" != .; then
1094   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095   # A "../" for each directory in $ac_dir_suffix.
1096   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 else
1098   ac_dir_suffix= ac_top_builddir=
1099 fi
1100
1101 case $srcdir in
1102   .)  # No --srcdir option.  We are building in place.
1103     ac_srcdir=.
1104     if test -z "$ac_top_builddir"; then
1105        ac_top_srcdir=.
1106     else
1107        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108     fi ;;
1109   [\\/]* | ?:[\\/]* )  # Absolute path.
1110     ac_srcdir=$srcdir$ac_dir_suffix;
1111     ac_top_srcdir=$srcdir ;;
1112   *) # Relative path.
1113     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 esac
1116
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1119 case `pwd` in
1120 .) ac_abs_builddir="$ac_dir";;
1121 *)
1122   case "$ac_dir" in
1123   .) ac_abs_builddir=`pwd`;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *)
1131   case ${ac_top_builddir}. in
1132   .) ac_abs_top_builddir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135   esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1139 *)
1140   case $ac_srcdir in
1141   .) ac_abs_srcdir=$ac_abs_builddir;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144   esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *)
1149   case $ac_top_srcdir in
1150   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153   esac;;
1154 esac
1155
1156     cd $ac_dir
1157     # Check for guested configure; otherwise get Cygnus style configure.
1158     if test -f $ac_srcdir/configure.gnu; then
1159       echo
1160       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1161     elif test -f $ac_srcdir/configure; then
1162       echo
1163       $SHELL $ac_srcdir/configure  --help=recursive
1164     elif test -f $ac_srcdir/configure.ac ||
1165            test -f $ac_srcdir/configure.in; then
1166       echo
1167       $ac_configure --help
1168     else
1169       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170     fi
1171     cd $ac_popdir
1172   done
1173 fi
1174
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1177   cat <<\_ACEOF
1178
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1182 _ACEOF
1183   exit 0
1184 fi
1185 exec 5>config.log
1186 cat >&5 <<_ACEOF
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1189
1190 It was created by $as_me, which was
1191 generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193   $ $0 $@
1194
1195 _ACEOF
1196 {
1197 cat <<_ASUNAME
1198 ## --------- ##
1199 ## Platform. ##
1200 ## --------- ##
1201
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219 _ASUNAME
1220
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 for as_dir in $PATH
1223 do
1224   IFS=$as_save_IFS
1225   test -z "$as_dir" && as_dir=.
1226   echo "PATH: $as_dir"
1227 done
1228
1229 } >&5
1230
1231 cat >&5 <<_ACEOF
1232
1233
1234 ## ----------- ##
1235 ## Core tests. ##
1236 ## ----------- ##
1237
1238 _ACEOF
1239
1240
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_configure_args=
1247 ac_configure_args0=
1248 ac_configure_args1=
1249 ac_sep=
1250 ac_must_keep_next=false
1251 for ac_pass in 1 2
1252 do
1253   for ac_arg
1254   do
1255     case $ac_arg in
1256     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258     | -silent | --silent | --silen | --sile | --sil)
1259       continue ;;
1260     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262     esac
1263     case $ac_pass in
1264     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265     2)
1266       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267       if test $ac_must_keep_next = true; then
1268         ac_must_keep_next=false # Got value, back to normal.
1269       else
1270         case $ac_arg in
1271           *=* | --config-cache | -C | -disable-* | --disable-* \
1272           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274           | -with-* | --with-* | -without-* | --without-* | --x)
1275             case "$ac_configure_args0 " in
1276               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277             esac
1278             ;;
1279           -* ) ac_must_keep_next=true ;;
1280         esac
1281       fi
1282       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283       # Get rid of the leading space.
1284       ac_sep=" "
1285       ;;
1286     esac
1287   done
1288 done
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log.  We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298   # Save into config.log some information that might help in debugging.
1299   {
1300     echo
1301
1302     cat <<\_ASBOX
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1306 _ASBOX
1307     echo
1308     # The following way of writing the cache mishandles newlines in values,
1309 {
1310   (set) 2>&1 |
1311     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312     *ac_space=\ *)
1313       sed -n \
1314         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316       ;;
1317     *)
1318       sed -n \
1319         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320       ;;
1321     esac;
1322 }
1323     echo
1324
1325     cat <<\_ASBOX
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1329 _ASBOX
1330     echo
1331     for ac_var in $ac_subst_vars
1332     do
1333       eval ac_val=$`echo $ac_var`
1334       echo "$ac_var='"'"'$ac_val'"'"'"
1335     done | sort
1336     echo
1337
1338     if test -n "$ac_subst_files"; then
1339       cat <<\_ASBOX
1340 ## ------------- ##
1341 ## Output files. ##
1342 ## ------------- ##
1343 _ASBOX
1344       echo
1345       for ac_var in $ac_subst_files
1346       do
1347         eval ac_val=$`echo $ac_var`
1348         echo "$ac_var='"'"'$ac_val'"'"'"
1349       done | sort
1350       echo
1351     fi
1352
1353     if test -s confdefs.h; then
1354       cat <<\_ASBOX
1355 ## ----------- ##
1356 ## confdefs.h. ##
1357 ## ----------- ##
1358 _ASBOX
1359       echo
1360       sed "/^$/d" confdefs.h | sort
1361       echo
1362     fi
1363     test "$ac_signal" != 0 &&
1364       echo "$as_me: caught signal $ac_signal"
1365     echo "$as_me: exit $exit_status"
1366   } >&5
1367   rm -f core *.core &&
1368   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369     exit $exit_status
1370      ' 0
1371 for ac_signal in 1 2 13 15; do
1372   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 done
1374 ac_signal=0
1375
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 echo >confdefs.h
1380
1381 # Predefined preprocessor variables.
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 _ACEOF
1406
1407
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411   if test "x$prefix" != xNONE; then
1412     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413   else
1414     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415   fi
1416 fi
1417 for ac_site_file in $CONFIG_SITE; do
1418   if test -r "$ac_site_file"; then
1419     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421     sed 's/^/| /' "$ac_site_file" >&5
1422     . "$ac_site_file"
1423   fi
1424 done
1425
1426 if test -r "$cache_file"; then
1427   # Some versions of bash will fail to source /dev/null (special
1428   # files actually), so we avoid doing that.
1429   if test -f "$cache_file"; then
1430     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1432     case $cache_file in
1433       [\\/]* | ?:[\\/]* ) . $cache_file;;
1434       *)                      . ./$cache_file;;
1435     esac
1436   fi
1437 else
1438   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1440   >$cache_file
1441 fi
1442
1443 # Check that the precious variables saved in the cache have kept the same
1444 # value.
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449   eval ac_new_set=\$ac_env_${ac_var}_set
1450   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451   eval ac_new_val="\$ac_env_${ac_var}_value"
1452   case $ac_old_set,$ac_new_set in
1453     set,)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,set)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,);;
1462     *)
1463       if test "x$ac_old_val" != "x$ac_new_val"; then
1464         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467 echo "$as_me:   former value:  $ac_old_val" >&2;}
1468         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469 echo "$as_me:   current value: $ac_new_val" >&2;}
1470         ac_cache_corrupted=:
1471       fi;;
1472   esac
1473   # Pass precious variables to config.status.
1474   if test "$ac_new_set" = set; then
1475     case $ac_new_val in
1476     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478     *) ac_arg=$ac_var=$ac_new_val ;;
1479     esac
1480     case " $ac_configure_args " in
1481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483     esac
1484   fi
1485 done
1486 if $ac_cache_corrupted; then
1487   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493
1494 ac_ext=c
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 am__api_version="1.9"
1520 ac_aux_dir=
1521 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1522   if test -f $ac_dir/install-sh; then
1523     ac_aux_dir=$ac_dir
1524     ac_install_sh="$ac_aux_dir/install-sh -c"
1525     break
1526   elif test -f $ac_dir/install.sh; then
1527     ac_aux_dir=$ac_dir
1528     ac_install_sh="$ac_aux_dir/install.sh -c"
1529     break
1530   elif test -f $ac_dir/shtool; then
1531     ac_aux_dir=$ac_dir
1532     ac_install_sh="$ac_aux_dir/shtool install -c"
1533     break
1534   fi
1535 done
1536 if test -z "$ac_aux_dir"; then
1537   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1539    { (exit 1); exit 1; }; }
1540 fi
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
1545 # Find a good install program.  We prefer a C program (faster),
1546 # so one script is as good as another.  But avoid the broken or
1547 # incompatible versions:
1548 # SysV /etc/install, /usr/sbin/install
1549 # SunOS /usr/etc/install
1550 # IRIX /sbin/install
1551 # AIX /bin/install
1552 # AmigaOS /C/install, which installs bootblocks on floppy discs
1553 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556 # OS/2's system install, which has a completely different semantic
1557 # ./install, which can be erroneously created by make from ./install.sh.
1558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1560 if test -z "$INSTALL"; then
1561 if test "${ac_cv_path_install+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   # Account for people who put trailing slashes in PATH elements.
1570 case $as_dir/ in
1571   ./ | .// | /cC/* | \
1572   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1573   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1574   /usr/ucb/* ) ;;
1575   *)
1576     # OSF1 and SCO ODT 3.0 have their own names for install.
1577     # Don't use installbsd from OSF since it installs stuff as root
1578     # by default.
1579     for ac_prog in ginstall scoinst install; do
1580       for ac_exec_ext in '' $ac_executable_extensions; do
1581         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1582           if test $ac_prog = install &&
1583             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584             # AIX install.  It has an incompatible calling convention.
1585             :
1586           elif test $ac_prog = install &&
1587             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588             # program-specific install script used by HP pwplus--don't use.
1589             :
1590           else
1591             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1592             break 3
1593           fi
1594         fi
1595       done
1596     done
1597     ;;
1598 esac
1599 done
1600
1601
1602 fi
1603   if test "${ac_cv_path_install+set}" = set; then
1604     INSTALL=$ac_cv_path_install
1605   else
1606     # As a last resort, use the slow shell script.  We don't cache a
1607     # path for INSTALL within a source directory, because that will
1608     # break other packages using the cache if that directory is
1609     # removed, or if the path is relative.
1610     INSTALL=$ac_install_sh
1611   fi
1612 fi
1613 echo "$as_me:$LINENO: result: $INSTALL" >&5
1614 echo "${ECHO_T}$INSTALL" >&6
1615
1616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1617 # It thinks the first close brace ends the variable substitution.
1618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619
1620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621
1622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623
1624 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1625 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1626 # Just in case
1627 sleep 1
1628 echo timestamp > conftest.file
1629 # Do `set' in a subshell so we don't clobber the current shell's
1630 # arguments.  Must try -L first in case configure is actually a
1631 # symlink; some systems play weird games with the mod time of symlinks
1632 # (eg FreeBSD returns the mod time of the symlink's containing
1633 # directory).
1634 if (
1635    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1636    if test "$*" = "X"; then
1637       # -L didn't work.
1638       set X `ls -t $srcdir/configure conftest.file`
1639    fi
1640    rm -f conftest.file
1641    if test "$*" != "X $srcdir/configure conftest.file" \
1642       && test "$*" != "X conftest.file $srcdir/configure"; then
1643
1644       # If neither matched, then we have a broken ls.  This can happen
1645       # if, for instance, CONFIG_SHELL is bash and it inherits a
1646       # broken ls alias from the environment.  This has actually
1647       # happened.  Such a system could not be considered "sane".
1648       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1649 alias in your environment" >&5
1650 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1651 alias in your environment" >&2;}
1652    { (exit 1); exit 1; }; }
1653    fi
1654
1655    test "$2" = conftest.file
1656    )
1657 then
1658    # Ok.
1659    :
1660 else
1661    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1662 Check your system clock" >&5
1663 echo "$as_me: error: newly created file is older than distributed files!
1664 Check your system clock" >&2;}
1665    { (exit 1); exit 1; }; }
1666 fi
1667 echo "$as_me:$LINENO: result: yes" >&5
1668 echo "${ECHO_T}yes" >&6
1669 test "$program_prefix" != NONE &&
1670   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1671 # Use a double $ so make ignores it.
1672 test "$program_suffix" != NONE &&
1673   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1674 # Double any \ or $.  echo might interpret backslashes.
1675 # By default was `s,x,x', remove it if useless.
1676 cat <<\_ACEOF >conftest.sed
1677 s/[\\$]/&&/g;s/;s,x,x,$//
1678 _ACEOF
1679 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1680 rm conftest.sed
1681
1682 # expand $ac_aux_dir to an absolute path
1683 am_aux_dir=`cd $ac_aux_dir && pwd`
1684
1685 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1686 # Use eval to expand $SHELL
1687 if eval "$MISSING --run true"; then
1688   am_missing_run="$MISSING --run "
1689 else
1690   am_missing_run=
1691   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1692 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1693 fi
1694
1695 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1696   # We used to keeping the `.' as first argument, in order to
1697   # allow $(mkdir_p) to be used without argument.  As in
1698   #   $(mkdir_p) $(somedir)
1699   # where $(somedir) is conditionally defined.  However this is wrong
1700   # for two reasons:
1701   #  1. if the package is installed by a user who cannot write `.'
1702   #     make install will fail,
1703   #  2. the above comment should most certainly read
1704   #     $(mkdir_p) $(DESTDIR)$(somedir)
1705   #     so it does not work when $(somedir) is undefined and
1706   #     $(DESTDIR) is not.
1707   #  To support the latter case, we have to write
1708   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1709   #  so the `.' trick is pointless.
1710   mkdir_p='mkdir -p --'
1711 else
1712   # On NextStep and OpenStep, the `mkdir' command does not
1713   # recognize any option.  It will interpret all options as
1714   # directories to create, and then abort because `.' already
1715   # exists.
1716   for d in ./-p ./--version;
1717   do
1718     test -d $d && rmdir $d
1719   done
1720   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1721   if test -f "$ac_aux_dir/mkinstalldirs"; then
1722     mkdir_p='$(mkinstalldirs)'
1723   else
1724     mkdir_p='$(install_sh) -d'
1725   fi
1726 fi
1727
1728 for ac_prog in gawk mawk nawk awk
1729 do
1730   # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_AWK+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$AWK"; then
1738   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_AWK="$ac_prog"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 AWK=$ac_cv_prog_AWK
1757 if test -n "$AWK"; then
1758   echo "$as_me:$LINENO: result: $AWK" >&5
1759 echo "${ECHO_T}$AWK" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765   test -n "$AWK" && break
1766 done
1767
1768 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1769 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1770 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1771 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1772   echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774   cat >conftest.make <<\_ACEOF
1775 all:
1776         @echo 'ac_maketemp="$(MAKE)"'
1777 _ACEOF
1778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1779 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1780 if test -n "$ac_maketemp"; then
1781   eval ac_cv_prog_make_${ac_make}_set=yes
1782 else
1783   eval ac_cv_prog_make_${ac_make}_set=no
1784 fi
1785 rm -f conftest.make
1786 fi
1787 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1788   echo "$as_me:$LINENO: result: yes" >&5
1789 echo "${ECHO_T}yes" >&6
1790   SET_MAKE=
1791 else
1792   echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1794   SET_MAKE="MAKE=${MAKE-make}"
1795 fi
1796
1797 rm -rf .tst 2>/dev/null
1798 mkdir .tst 2>/dev/null
1799 if test -d .tst; then
1800   am__leading_dot=.
1801 else
1802   am__leading_dot=_
1803 fi
1804 rmdir .tst 2>/dev/null
1805
1806 # test to see if srcdir already configured
1807 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1808    test -f $srcdir/config.status; then
1809   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1810 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1811    { (exit 1); exit 1; }; }
1812 fi
1813
1814 # test whether we have cygpath
1815 if test -z "$CYGPATH_W"; then
1816   if (cygpath --version) >/dev/null 2>/dev/null; then
1817     CYGPATH_W='cygpath -w'
1818   else
1819     CYGPATH_W=echo
1820   fi
1821 fi
1822
1823
1824 # Define the identity of the package.
1825  PACKAGE=OpenSP
1826  VERSION=1.5.2
1827
1828
1829 # Some tools Automake needs.
1830
1831 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1832
1833
1834 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1835
1836
1837 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1838
1839
1840 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1841
1842
1843 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1844
1845 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1846
1847 # Installed binaries are usually stripped using `strip' when the user
1848 # run `make install-strip'.  However `strip' might not be the right
1849 # tool to use in cross-compilation environments, therefore Automake
1850 # will honor the `STRIP' environment variable to overrule this program.
1851 if test "$cross_compiling" != no; then
1852   if test -n "$ac_tool_prefix"; then
1853   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1854 set dummy ${ac_tool_prefix}strip; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_STRIP+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$STRIP"; then
1861   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 STRIP=$ac_cv_prog_STRIP
1880 if test -n "$STRIP"; then
1881   echo "$as_me:$LINENO: result: $STRIP" >&5
1882 echo "${ECHO_T}$STRIP" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888 fi
1889 if test -z "$ac_cv_prog_STRIP"; then
1890   ac_ct_STRIP=$STRIP
1891   # Extract the first word of "strip", so it can be a program name with args.
1892 set dummy strip; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1896   echo $ECHO_N "(cached) $ECHO_C" >&6
1897 else
1898   if test -n "$ac_ct_STRIP"; then
1899   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1900 else
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
1905   test -z "$as_dir" && as_dir=.
1906   for ac_exec_ext in '' $ac_executable_extensions; do
1907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908     ac_cv_prog_ac_ct_STRIP="strip"
1909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910     break 2
1911   fi
1912 done
1913 done
1914
1915   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1916 fi
1917 fi
1918 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1919 if test -n "$ac_ct_STRIP"; then
1920   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1921 echo "${ECHO_T}$ac_ct_STRIP" >&6
1922 else
1923   echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1925 fi
1926
1927   STRIP=$ac_ct_STRIP
1928 else
1929   STRIP="$ac_cv_prog_STRIP"
1930 fi
1931
1932 fi
1933 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1934
1935 # We need awk for the "check" target.  The system "awk" is bad on
1936 # some platforms.
1937 # Always define AMTAR for backward compatibility.
1938
1939 AMTAR=${AMTAR-"${am_missing_run}tar"}
1940
1941 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1942
1943
1944
1945
1946
1947 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1948 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1949     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1950 if test "${enable_maintainer_mode+set}" = set; then
1951   enableval="$enable_maintainer_mode"
1952   USE_MAINTAINER_MODE=$enableval
1953 else
1954   USE_MAINTAINER_MODE=no
1955 fi;
1956   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1957 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1958
1959
1960 if test $USE_MAINTAINER_MODE = yes; then
1961   MAINTAINER_MODE_TRUE=
1962   MAINTAINER_MODE_FALSE='#'
1963 else
1964   MAINTAINER_MODE_TRUE='#'
1965   MAINTAINER_MODE_FALSE=
1966 fi
1967
1968   MAINT=$MAINTAINER_MODE_TRUE
1969
1970
1971
1972           ac_config_headers="$ac_config_headers config.h"
1973
1974 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1975 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1976 # Just in case
1977 sleep 1
1978 echo timestamp > conftest.file
1979 # Do `set' in a subshell so we don't clobber the current shell's
1980 # arguments.  Must try -L first in case configure is actually a
1981 # symlink; some systems play weird games with the mod time of symlinks
1982 # (eg FreeBSD returns the mod time of the symlink's containing
1983 # directory).
1984 if (
1985    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1986    if test "$*" = "X"; then
1987       # -L didn't work.
1988       set X `ls -t $srcdir/configure conftest.file`
1989    fi
1990    rm -f conftest.file
1991    if test "$*" != "X $srcdir/configure conftest.file" \
1992       && test "$*" != "X conftest.file $srcdir/configure"; then
1993
1994       # If neither matched, then we have a broken ls.  This can happen
1995       # if, for instance, CONFIG_SHELL is bash and it inherits a
1996       # broken ls alias from the environment.  This has actually
1997       # happened.  Such a system could not be considered "sane".
1998       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1999 alias in your environment" >&5
2000 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2001 alias in your environment" >&2;}
2002    { (exit 1); exit 1; }; }
2003    fi
2004
2005    test "$2" = conftest.file
2006    )
2007 then
2008    # Ok.
2009    :
2010 else
2011    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2012 Check your system clock" >&5
2013 echo "$as_me: error: newly created file is older than distributed files!
2014 Check your system clock" >&2;}
2015    { (exit 1); exit 1; }; }
2016 fi
2017 echo "$as_me:$LINENO: result: yes" >&5
2018 echo "${ECHO_T}yes" >&6
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042 cat >>confdefs.h <<\_ACEOF
2043 #define SP_MULTI_BYTE 1
2044 _ACEOF
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define SP_PACKAGE "$PACKAGE"
2092 _ACEOF
2093
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define SP_VERSION "$VERSION"
2097 _ACEOF
2098
2099
2100 SP_LIBOSP_CUR=5
2101
2102 SP_LIBOSP_REV=0
2103
2104 SP_LIBOSP_AGE=0
2105
2106
2107 ac_ext=c
2108 ac_cpp='$CPP $CPPFLAGS'
2109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112 if test -n "$ac_tool_prefix"; then
2113   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   if test -n "$CC"; then
2121   ac_cv_prog_CC="$CC" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2125 do
2126   IFS=$as_save_IFS
2127   test -z "$as_dir" && as_dir=.
2128   for ac_exec_ext in '' $ac_executable_extensions; do
2129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132     break 2
2133   fi
2134 done
2135 done
2136
2137 fi
2138 fi
2139 CC=$ac_cv_prog_CC
2140 if test -n "$CC"; then
2141   echo "$as_me:$LINENO: result: $CC" >&5
2142 echo "${ECHO_T}$CC" >&6
2143 else
2144   echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2146 fi
2147
2148 fi
2149 if test -z "$ac_cv_prog_CC"; then
2150   ac_ct_CC=$CC
2151   # Extract the first word of "gcc", so it can be a program name with args.
2152 set dummy gcc; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$ac_ct_CC"; then
2159   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168     ac_cv_prog_ac_ct_CC="gcc"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174
2175 fi
2176 fi
2177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2178 if test -n "$ac_ct_CC"; then
2179   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2180 echo "${ECHO_T}$ac_ct_CC" >&6
2181 else
2182   echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6
2184 fi
2185
2186   CC=$ac_ct_CC
2187 else
2188   CC="$ac_cv_prog_CC"
2189 fi
2190
2191 if test -z "$CC"; then
2192   if test -n "$ac_tool_prefix"; then
2193   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2194 set dummy ${ac_tool_prefix}cc; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   if test -n "$CC"; then
2201   ac_cv_prog_CC="$CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208   for ac_exec_ext in '' $ac_executable_extensions; do
2209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210     ac_cv_prog_CC="${ac_tool_prefix}cc"
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216
2217 fi
2218 fi
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221   echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6
2223 else
2224   echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2226 fi
2227
2228 fi
2229 if test -z "$ac_cv_prog_CC"; then
2230   ac_ct_CC=$CC
2231   # Extract the first word of "cc", so it can be a program name with args.
2232 set dummy cc; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238   if test -n "$ac_ct_CC"; then
2239   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   for ac_exec_ext in '' $ac_executable_extensions; do
2247   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248     ac_cv_prog_ac_ct_CC="cc"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254
2255 fi
2256 fi
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 echo "${ECHO_T}$ac_ct_CC" >&6
2261 else
2262   echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2264 fi
2265
2266   CC=$ac_ct_CC
2267 else
2268   CC="$ac_cv_prog_CC"
2269 fi
2270
2271 fi
2272 if test -z "$CC"; then
2273   # Extract the first word of "cc", so it can be a program name with args.
2274 set dummy cc; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$CC"; then
2281   ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283   ac_prog_rejected=no
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287   IFS=$as_save_IFS
2288   test -z "$as_dir" && as_dir=.
2289   for ac_exec_ext in '' $ac_executable_extensions; do
2290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2292        ac_prog_rejected=yes
2293        continue
2294      fi
2295     ac_cv_prog_CC="cc"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301
2302 if test $ac_prog_rejected = yes; then
2303   # We found a bogon in the path, so make sure we never use it.
2304   set dummy $ac_cv_prog_CC
2305   shift
2306   if test $# != 0; then
2307     # We chose a different compiler from the bogus one.
2308     # However, it has the same basename, so the bogon will be chosen
2309     # first if we set CC to just the basename; use the full file name.
2310     shift
2311     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2312   fi
2313 fi
2314 fi
2315 fi
2316 CC=$ac_cv_prog_CC
2317 if test -n "$CC"; then
2318   echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6
2320 else
2321   echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2323 fi
2324
2325 fi
2326 if test -z "$CC"; then
2327   if test -n "$ac_tool_prefix"; then
2328   for ac_prog in cl
2329   do
2330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_CC+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   if test -n "$CC"; then
2338   ac_cv_prog_CC="$CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349     break 2
2350   fi
2351 done
2352 done
2353
2354 fi
2355 fi
2356 CC=$ac_cv_prog_CC
2357 if test -n "$CC"; then
2358   echo "$as_me:$LINENO: result: $CC" >&5
2359 echo "${ECHO_T}$CC" >&6
2360 else
2361   echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2363 fi
2364
2365     test -n "$CC" && break
2366   done
2367 fi
2368 if test -z "$CC"; then
2369   ac_ct_CC=$CC
2370   for ac_prog in cl
2371 do
2372   # Extract the first word of "$ac_prog", so it can be a program name with args.
2373 set dummy $ac_prog; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   if test -n "$ac_ct_CC"; then
2380   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385   IFS=$as_save_IFS
2386   test -z "$as_dir" && as_dir=.
2387   for ac_exec_ext in '' $ac_executable_extensions; do
2388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389     ac_cv_prog_ac_ct_CC="$ac_prog"
2390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391     break 2
2392   fi
2393 done
2394 done
2395
2396 fi
2397 fi
2398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399 if test -n "$ac_ct_CC"; then
2400   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401 echo "${ECHO_T}$ac_ct_CC" >&6
2402 else
2403   echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6
2405 fi
2406
2407   test -n "$ac_ct_CC" && break
2408 done
2409
2410   CC=$ac_ct_CC
2411 fi
2412
2413 fi
2414
2415
2416 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2417 See \`config.log' for more details." >&5
2418 echo "$as_me: error: no acceptable C compiler found in \$PATH
2419 See \`config.log' for more details." >&2;}
2420    { (exit 1); exit 1; }; }
2421
2422 # Provide some information about the compiler.
2423 echo "$as_me:$LINENO:" \
2424      "checking for C compiler version" >&5
2425 ac_compiler=`set X $ac_compile; echo $2`
2426 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2427   (eval $ac_compiler --version </dev/null >&5) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }
2431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2432   (eval $ac_compiler -v </dev/null >&5) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }
2436 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2437   (eval $ac_compiler -V </dev/null >&5) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }
2441
2442 cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 ac_clean_files_save=$ac_clean_files
2458 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2459 # Try to create an executable without -o first, disregard a.out.
2460 # It will help us diagnose broken compilers, and finding out an intuition
2461 # of exeext.
2462 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2463 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2464 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2465 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2466   (eval $ac_link_default) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; then
2470   # Find the output, starting from the most likely.  This scheme is
2471 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2472 # resort.
2473
2474 # Be careful to initialize this variable, since it used to be cached.
2475 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2476 ac_cv_exeext=
2477 # b.out is created by i960 compilers.
2478 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2479 do
2480   test -f "$ac_file" || continue
2481   case $ac_file in
2482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2483         ;;
2484     conftest.$ac_ext )
2485         # This is the source file.
2486         ;;
2487     [ab].out )
2488         # We found the default executable, but exeext='' is most
2489         # certainly right.
2490         break;;
2491     *.* )
2492         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2493         # FIXME: I believe we export ac_cv_exeext for Libtool,
2494         # but it would be cool to find out if it's true.  Does anybody
2495         # maintain Libtool? --akim.
2496         export ac_cv_exeext
2497         break;;
2498     * )
2499         break;;
2500   esac
2501 done
2502 else
2503   echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: C compiler cannot create executables
2509 See \`config.log' for more details." >&2;}
2510    { (exit 77); exit 77; }; }
2511 fi
2512
2513 ac_exeext=$ac_cv_exeext
2514 echo "$as_me:$LINENO: result: $ac_file" >&5
2515 echo "${ECHO_T}$ac_file" >&6
2516
2517 # Check the compiler produces executables we can run.  If not, either
2518 # the compiler is broken, or we cross compile.
2519 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2520 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2521 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2522 # If not cross compiling, check that we can run a simple program.
2523 if test "$cross_compiling" != yes; then
2524   if { ac_try='./$ac_file'
2525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526   (eval $ac_try) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; }; then
2530     cross_compiling=no
2531   else
2532     if test "$cross_compiling" = maybe; then
2533         cross_compiling=yes
2534     else
2535         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2536 If you meant to cross compile, use \`--host'.
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: cannot run C compiled programs.
2539 If you meant to cross compile, use \`--host'.
2540 See \`config.log' for more details." >&2;}
2541    { (exit 1); exit 1; }; }
2542     fi
2543   fi
2544 fi
2545 echo "$as_me:$LINENO: result: yes" >&5
2546 echo "${ECHO_T}yes" >&6
2547
2548 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2549 ac_clean_files=$ac_clean_files_save
2550 # Check the compiler produces executables we can run.  If not, either
2551 # the compiler is broken, or we cross compile.
2552 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2553 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2554 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2555 echo "${ECHO_T}$cross_compiling" >&6
2556
2557 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2558 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2560   (eval $ac_link) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; then
2564   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2565 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2566 # work properly (i.e., refer to `conftest.exe'), while it won't with
2567 # `rm'.
2568 for ac_file in conftest.exe conftest conftest.*; do
2569   test -f "$ac_file" || continue
2570   case $ac_file in
2571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2572     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2573           export ac_cv_exeext
2574           break;;
2575     * ) break;;
2576   esac
2577 done
2578 else
2579   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2580 See \`config.log' for more details." >&5
2581 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&2;}
2583    { (exit 1); exit 1; }; }
2584 fi
2585
2586 rm -f conftest$ac_cv_exeext
2587 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2588 echo "${ECHO_T}$ac_cv_exeext" >&6
2589
2590 rm -f conftest.$ac_ext
2591 EXEEXT=$ac_cv_exeext
2592 ac_exeext=$EXEEXT
2593 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2594 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2595 if test "${ac_cv_objext+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.o conftest.obj
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; then
2619   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2620   case $ac_file in
2621     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2622     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2623        break;;
2624   esac
2625 done
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2633 See \`config.log' for more details." >&2;}
2634    { (exit 1); exit 1; }; }
2635 fi
2636
2637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2640 echo "${ECHO_T}$ac_cv_objext" >&6
2641 OBJEXT=$ac_cv_objext
2642 ac_objext=$OBJEXT
2643 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2644 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2645 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654
2655 int
2656 main ()
2657 {
2658 #ifndef __GNUC__
2659        choke me
2660 #endif
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_c_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   ac_compiler_gnu=yes
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 ac_compiler_gnu=no
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2697
2698 fi
2699 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2700 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2701 GCC=`test $ac_compiler_gnu = yes && echo yes`
2702 ac_test_CFLAGS=${CFLAGS+set}
2703 ac_save_CFLAGS=$CFLAGS
2704 CFLAGS="-g"
2705 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2706 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2707 if test "${ac_cv_prog_cc_g+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716
2717 int
2718 main ()
2719 {
2720
2721   ;
2722   return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727   (eval $ac_compile) 2>conftest.er1
2728   ac_status=$?
2729   grep -v '^ *+' conftest.er1 >conftest.err
2730   rm -f conftest.er1
2731   cat conftest.err >&5
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -z "$ac_c_werror_flag"
2735                          || test ! -s conftest.err'
2736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737   (eval $ac_try) 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; } &&
2741          { ac_try='test -s conftest.$ac_objext'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; }; then
2747   ac_cv_prog_cc_g=yes
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 ac_cv_prog_cc_g=no
2753 fi
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 fi
2756 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2758 if test "$ac_test_CFLAGS" = set; then
2759   CFLAGS=$ac_save_CFLAGS
2760 elif test $ac_cv_prog_cc_g = yes; then
2761   if test "$GCC" = yes; then
2762     CFLAGS="-g -O2"
2763   else
2764     CFLAGS="-g"
2765   fi
2766 else
2767   if test "$GCC" = yes; then
2768     CFLAGS="-O2"
2769   else
2770     CFLAGS=
2771   fi
2772 fi
2773 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2774 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   ac_cv_prog_cc_stdc=no
2779 ac_save_CC=$CC
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h.  */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h.  */
2786 #include <stdarg.h>
2787 #include <stdio.h>
2788 #include <sys/types.h>
2789 #include <sys/stat.h>
2790 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2791 struct buf { int x; };
2792 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2793 static char *e (p, i)
2794      char **p;
2795      int i;
2796 {
2797   return p[i];
2798 }
2799 static char *f (char * (*g) (char **, int), char **p, ...)
2800 {
2801   char *s;
2802   va_list v;
2803   va_start (v,p);
2804   s = g (p, va_arg (v,int));
2805   va_end (v);
2806   return s;
2807 }
2808
2809 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2810    function prototypes and stuff, but not '\xHH' hex character constants.
2811    These don't provoke an error unfortunately, instead are silently treated
2812    as 'x'.  The following induces an error, until -std1 is added to get
2813    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2814    array size at least.  It's necessary to write '\x00'==0 to get something
2815    that's true only with -std1.  */
2816 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2817
2818 int test (int i, double x);
2819 struct s1 {int (*f) (int a);};
2820 struct s2 {int (*f) (double a);};
2821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2822 int argc;
2823 char **argv;
2824 int
2825 main ()
2826 {
2827 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 # Don't try gcc -ansi; that turns off useful extensions and
2833 # breaks some systems' header files.
2834 # AIX                   -qlanglvl=ansi
2835 # Ultrix and OSF/1      -std1
2836 # HP-UX 10.20 and later -Ae
2837 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2838 # SVR4                  -Xc -D__EXTENSIONS__
2839 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2840 do
2841   CC="$ac_save_CC $ac_arg"
2842   rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844   (eval $ac_compile) 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -z "$ac_c_werror_flag"
2852                          || test ! -s conftest.err'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   ac_cv_prog_cc_stdc=$ac_arg
2865 break
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 fi
2871 rm -f conftest.err conftest.$ac_objext
2872 done
2873 rm -f conftest.$ac_ext conftest.$ac_objext
2874 CC=$ac_save_CC
2875
2876 fi
2877
2878 case "x$ac_cv_prog_cc_stdc" in
2879   x|xno)
2880     echo "$as_me:$LINENO: result: none needed" >&5
2881 echo "${ECHO_T}none needed" >&6 ;;
2882   *)
2883     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885     CC="$CC $ac_cv_prog_cc_stdc" ;;
2886 esac
2887
2888 # Some people use a C++ compiler to compile C.  Since we use `exit',
2889 # in C++ we need to declare it.  In case someone uses the same compiler
2890 # for both compiling C and C++ we need to have the C++ compiler decide
2891 # the declaration of exit, since it's the most demanding environment.
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #ifndef __cplusplus
2894   choke me
2895 #endif
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899   (eval $ac_compile) 2>conftest.er1
2900   ac_status=$?
2901   grep -v '^ *+' conftest.er1 >conftest.err
2902   rm -f conftest.er1
2903   cat conftest.err >&5
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } &&
2906          { ac_try='test -z "$ac_c_werror_flag"
2907                          || test ! -s conftest.err'
2908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909   (eval $ac_try) 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; } &&
2913          { ac_try='test -s conftest.$ac_objext'
2914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915   (eval $ac_try) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; }; then
2919   for ac_declaration in \
2920    '' \
2921    'extern "C" void std::exit (int) throw (); using std::exit;' \
2922    'extern "C" void std::exit (int); using std::exit;' \
2923    'extern "C" void exit (int) throw ();' \
2924    'extern "C" void exit (int);' \
2925    'void exit (int);'
2926 do
2927   cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933 $ac_declaration
2934 #include <stdlib.h>
2935 int
2936 main ()
2937 {
2938 exit (42);
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945   (eval $ac_compile) 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } &&
2952          { ac_try='test -z "$ac_c_werror_flag"
2953                          || test ! -s conftest.err'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965   :
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 continue
2971 fi
2972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979 $ac_declaration
2980 int
2981 main ()
2982 {
2983 exit (42);
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990   (eval $ac_compile) 2>conftest.er1
2991   ac_status=$?
2992   grep -v '^ *+' conftest.er1 >conftest.err
2993   rm -f conftest.er1
2994   cat conftest.err >&5
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); } &&
2997          { ac_try='test -z "$ac_c_werror_flag"
2998                          || test ! -s conftest.err'
2999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000   (eval $ac_try) 2>&5
3001   ac_status=$?
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; } &&
3004          { ac_try='test -s conftest.$ac_objext'
3005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006   (eval $ac_try) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; }; then
3010   break
3011 else
3012   echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3014
3015 fi
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3017 done
3018 rm -f conftest*
3019 if test -n "$ac_declaration"; then
3020   echo '#ifdef __cplusplus' >>confdefs.h
3021   echo $ac_declaration      >>confdefs.h
3022   echo '#endif'             >>confdefs.h
3023 fi
3024
3025 else
3026   echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3028
3029 fi
3030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 DEPDIR="${am__leading_dot}deps"
3037
3038           ac_config_commands="$ac_config_commands depfiles"
3039
3040
3041 am_make=${MAKE-make}
3042 cat > confinc << 'END'
3043 am__doit:
3044         @echo done
3045 .PHONY: am__doit
3046 END
3047 # If we don't find an include directive, just comment out the code.
3048 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3049 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3050 am__include="#"
3051 am__quote=
3052 _am_result=none
3053 # First try GNU make style include.
3054 echo "include confinc" > confmf
3055 # We grep out `Entering directory' and `Leaving directory'
3056 # messages which can occur if `w' ends up in MAKEFLAGS.
3057 # In particular we don't look at `^make:' because GNU make might
3058 # be invoked under some other name (usually "gmake"), in which
3059 # case it prints its new name instead of `make'.
3060 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3061    am__include=include
3062    am__quote=
3063    _am_result=GNU
3064 fi
3065 # Now try BSD make style include.
3066 if test "$am__include" = "#"; then
3067    echo '.include "confinc"' > confmf
3068    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3069       am__include=.include
3070       am__quote="\""
3071       _am_result=BSD
3072    fi
3073 fi
3074
3075
3076 echo "$as_me:$LINENO: result: $_am_result" >&5
3077 echo "${ECHO_T}$_am_result" >&6
3078 rm -f confinc confmf
3079
3080 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3081 if test "${enable_dependency_tracking+set}" = set; then
3082   enableval="$enable_dependency_tracking"
3083
3084 fi;
3085 if test "x$enable_dependency_tracking" != xno; then
3086   am_depcomp="$ac_aux_dir/depcomp"
3087   AMDEPBACKSLASH='\'
3088 fi
3089
3090
3091 if test "x$enable_dependency_tracking" != xno; then
3092   AMDEP_TRUE=
3093   AMDEP_FALSE='#'
3094 else
3095   AMDEP_TRUE='#'
3096   AMDEP_FALSE=
3097 fi
3098
3099
3100
3101
3102 depcc="$CC"   am_compiler_list=
3103
3104 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3107   echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3110   # We make a subdir and do the tests there.  Otherwise we can end up
3111   # making bogus files that we don't know about and never remove.  For
3112   # instance it was reported that on HP-UX the gcc test will end up
3113   # making a dummy file named `D' -- because `-MD' means `put the output
3114   # in D'.
3115   mkdir conftest.dir
3116   # Copy depcomp to subdir because otherwise we won't find it if we're
3117   # using a relative directory.
3118   cp "$am_depcomp" conftest.dir
3119   cd conftest.dir
3120   # We will build objects and dependencies in a subdirectory because
3121   # it helps to detect inapplicable dependency modes.  For instance
3122   # both Tru64's cc and ICC support -MD to output dependencies as a
3123   # side effect of compilation, but ICC will put the dependencies in
3124   # the current directory while Tru64 will put them in the object
3125   # directory.
3126   mkdir sub
3127
3128   am_cv_CC_dependencies_compiler_type=none
3129   if test "$am_compiler_list" = ""; then
3130      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3131   fi
3132   for depmode in $am_compiler_list; do
3133     # Setup a source with many dependencies, because some compilers
3134     # like to wrap large dependency lists on column 80 (with \), and
3135     # we should not choose a depcomp mode which is confused by this.
3136     #
3137     # We need to recreate these files for each test, as the compiler may
3138     # overwrite some of them when testing with obscure command lines.
3139     # This happens at least with the AIX C compiler.
3140     : > sub/conftest.c
3141     for i in 1 2 3 4 5 6; do
3142       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3143       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3144       # Solaris 8's {/usr,}/bin/sh.
3145       touch sub/conftst$i.h
3146     done
3147     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3148
3149     case $depmode in
3150     nosideeffect)
3151       # after this tag, mechanisms are not by side-effect, so they'll
3152       # only be used when explicitly requested
3153       if test "x$enable_dependency_tracking" = xyes; then
3154         continue
3155       else
3156         break
3157       fi
3158       ;;
3159     none) break ;;
3160     esac
3161     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3162     # mode.  It turns out that the SunPro C++ compiler does not properly
3163     # handle `-M -o', and we need to detect this.
3164     if depmode=$depmode \
3165        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3166        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3167        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3168          >/dev/null 2>conftest.err &&
3169        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3170        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3171        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3172       # icc doesn't choke on unknown options, it will just issue warnings
3173       # or remarks (even with -Werror).  So we grep stderr for any message
3174       # that says an option was ignored or not supported.
3175       # When given -MP, icc 7.0 and 7.1 complain thusly:
3176       #   icc: Command line warning: ignoring option '-M'; no argument required
3177       # The diagnosis changed in icc 8.0:
3178       #   icc: Command line remark: option '-MP' not supported
3179       if (grep 'ignoring option' conftest.err ||
3180           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3181         am_cv_CC_dependencies_compiler_type=$depmode
3182         break
3183       fi
3184     fi
3185   done
3186
3187   cd ..
3188   rm -rf conftest.dir
3189 else
3190   am_cv_CC_dependencies_compiler_type=none
3191 fi
3192
3193 fi
3194 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3197
3198
3199
3200 if
3201   test "x$enable_dependency_tracking" != xno \
3202   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3203   am__fastdepCC_TRUE=
3204   am__fastdepCC_FALSE='#'
3205 else
3206   am__fastdepCC_TRUE='#'
3207   am__fastdepCC_FALSE=
3208 fi
3209
3210
3211 ac_ext=c
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3218 # On Suns, sometimes $CPP names a directory.
3219 if test -n "$CPP" && test -d "$CPP"; then
3220   CPP=
3221 fi
3222 if test -z "$CPP"; then
3223   if test "${ac_cv_prog_CPP+set}" = set; then
3224   echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226       # Double quotes because CPP needs to be expanded
3227     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3228     do
3229       ac_preproc_ok=false
3230 for ac_c_preproc_warn_flag in '' yes
3231 do
3232   # Use a header file that comes with gcc, so configuring glibc
3233   # with a fresh cross-compiler works.
3234   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235   # <limits.h> exists even on freestanding compilers.
3236   # On the NeXT, cc -E runs the code through the compiler's parser,
3237   # not just through cpp. "Syntax error" is here to catch this case.
3238   cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244 #ifdef __STDC__
3245 # include <limits.h>
3246 #else
3247 # include <assert.h>
3248 #endif
3249                      Syntax error
3250 _ACEOF
3251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } >/dev/null; then
3259   if test -s conftest.err; then
3260     ac_cpp_err=$ac_c_preproc_warn_flag
3261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262   else
3263     ac_cpp_err=
3264   fi
3265 else
3266   ac_cpp_err=yes
3267 fi
3268 if test -z "$ac_cpp_err"; then
3269   :
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274   # Broken: fails on valid input.
3275 continue
3276 fi
3277 rm -f conftest.err conftest.$ac_ext
3278
3279   # OK, works on sane cases.  Now check whether non-existent headers
3280   # can be detected and how.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <ac_nonexistent.h>
3288 _ACEOF
3289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } >/dev/null; then
3297   if test -s conftest.err; then
3298     ac_cpp_err=$ac_c_preproc_warn_flag
3299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300   else
3301     ac_cpp_err=
3302   fi
3303 else
3304   ac_cpp_err=yes
3305 fi
3306 if test -z "$ac_cpp_err"; then
3307   # Broken: success on invalid input.
3308 continue
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313   # Passes both tests.
3314 ac_preproc_ok=:
3315 break
3316 fi
3317 rm -f conftest.err conftest.$ac_ext
3318
3319 done
3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321 rm -f conftest.err conftest.$ac_ext
3322 if $ac_preproc_ok; then
3323   break
3324 fi
3325
3326     done
3327     ac_cv_prog_CPP=$CPP
3328
3329 fi
3330   CPP=$ac_cv_prog_CPP
3331 else
3332   ac_cv_prog_CPP=$CPP
3333 fi
3334 echo "$as_me:$LINENO: result: $CPP" >&5
3335 echo "${ECHO_T}$CPP" >&6
3336 ac_preproc_ok=false
3337 for ac_c_preproc_warn_flag in '' yes
3338 do
3339   # Use a header file that comes with gcc, so configuring glibc
3340   # with a fresh cross-compiler works.
3341   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342   # <limits.h> exists even on freestanding compilers.
3343   # On the NeXT, cc -E runs the code through the compiler's parser,
3344   # not just through cpp. "Syntax error" is here to catch this case.
3345   cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351 #ifdef __STDC__
3352 # include <limits.h>
3353 #else
3354 # include <assert.h>
3355 #endif
3356                      Syntax error
3357 _ACEOF
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } >/dev/null; then
3366   if test -s conftest.err; then
3367     ac_cpp_err=$ac_c_preproc_warn_flag
3368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369   else
3370     ac_cpp_err=
3371   fi
3372 else
3373   ac_cpp_err=yes
3374 fi
3375 if test -z "$ac_cpp_err"; then
3376   :
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381   # Broken: fails on valid input.
3382 continue
3383 fi
3384 rm -f conftest.err conftest.$ac_ext
3385
3386   # OK, works on sane cases.  Now check whether non-existent headers
3387   # can be detected and how.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <ac_nonexistent.h>
3395 _ACEOF
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } >/dev/null; then
3404   if test -s conftest.err; then
3405     ac_cpp_err=$ac_c_preproc_warn_flag
3406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407   else
3408     ac_cpp_err=
3409   fi
3410 else
3411   ac_cpp_err=yes
3412 fi
3413 if test -z "$ac_cpp_err"; then
3414   # Broken: success on invalid input.
3415 continue
3416 else
3417   echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3419
3420   # Passes both tests.
3421 ac_preproc_ok=:
3422 break
3423 fi
3424 rm -f conftest.err conftest.$ac_ext
3425
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3430   :
3431 else
3432   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436    { (exit 1); exit 1; }; }
3437 fi
3438
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445 ac_ext=cc
3446 ac_cpp='$CXXCPP $CPPFLAGS'
3447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3450 if test -n "$ac_tool_prefix"; then
3451   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3452   do
3453     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3455 echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3457 if test "${ac_cv_prog_CXX+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   if test -n "$CXX"; then
3461   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466   IFS=$as_save_IFS
3467   test -z "$as_dir" && as_dir=.
3468   for ac_exec_ext in '' $ac_executable_extensions; do
3469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472     break 2
3473   fi
3474 done
3475 done
3476
3477 fi
3478 fi
3479 CXX=$ac_cv_prog_CXX
3480 if test -n "$CXX"; then
3481   echo "$as_me:$LINENO: result: $CXX" >&5
3482 echo "${ECHO_T}$CXX" >&6
3483 else
3484   echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486 fi
3487
3488     test -n "$CXX" && break
3489   done
3490 fi
3491 if test -z "$CXX"; then
3492   ac_ct_CXX=$CXX
3493   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3494 do
3495   # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   if test -n "$ac_ct_CXX"; then
3503   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510   for ac_exec_ext in '' $ac_executable_extensions; do
3511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512     ac_cv_prog_ac_ct_CXX="$ac_prog"
3513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517 done
3518
3519 fi
3520 fi
3521 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3522 if test -n "$ac_ct_CXX"; then
3523   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3524 echo "${ECHO_T}$ac_ct_CXX" >&6
3525 else
3526   echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3528 fi
3529
3530   test -n "$ac_ct_CXX" && break
3531 done
3532 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3533
3534   CXX=$ac_ct_CXX
3535 fi
3536
3537
3538 # Provide some information about the compiler.
3539 echo "$as_me:$LINENO:" \
3540      "checking for C++ compiler version" >&5
3541 ac_compiler=`set X $ac_compile; echo $2`
3542 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3543   (eval $ac_compiler --version </dev/null >&5) 2>&5
3544   ac_status=$?
3545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546   (exit $ac_status); }
3547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3548   (eval $ac_compiler -v </dev/null >&5) 2>&5
3549   ac_status=$?
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }
3552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3553   (eval $ac_compiler -V </dev/null >&5) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }
3557
3558 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3559 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3560 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h.  */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h.  */
3569
3570 int
3571 main ()
3572 {
3573 #ifndef __GNUC__
3574        choke me
3575 #endif
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583   (eval $ac_compile) 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } &&
3590          { ac_try='test -z "$ac_cxx_werror_flag"
3591                          || test ! -s conftest.err'
3592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593   (eval $ac_try) 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); }; } &&
3597          { ac_try='test -s conftest.$ac_objext'
3598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599   (eval $ac_try) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); }; }; then
3603   ac_compiler_gnu=yes
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 ac_compiler_gnu=no
3609 fi
3610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3612
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3615 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3616 GXX=`test $ac_compiler_gnu = yes && echo yes`
3617 ac_test_CXXFLAGS=${CXXFLAGS+set}
3618 ac_save_CXXFLAGS=$CXXFLAGS
3619 CXXFLAGS="-g"
3620 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3621 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3622 if test "${ac_cv_prog_cxx_g+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h.  */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h.  */
3631
3632 int
3633 main ()
3634 {
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.$ac_objext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3642   (eval $ac_compile) 2>conftest.er1
3643   ac_status=$?
3644   grep -v '^ *+' conftest.er1 >conftest.err
3645   rm -f conftest.er1
3646   cat conftest.err >&5
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); } &&
3649          { ac_try='test -z "$ac_cxx_werror_flag"
3650                          || test ! -s conftest.err'
3651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652   (eval $ac_try) 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; } &&
3656          { ac_try='test -s conftest.$ac_objext'
3657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658   (eval $ac_try) 2>&5
3659   ac_status=$?
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); }; }; then
3662   ac_cv_prog_cxx_g=yes
3663 else
3664   echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 ac_cv_prog_cxx_g=no
3668 fi
3669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3670 fi
3671 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3672 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3673 if test "$ac_test_CXXFLAGS" = set; then
3674   CXXFLAGS=$ac_save_CXXFLAGS
3675 elif test $ac_cv_prog_cxx_g = yes; then
3676   if test "$GXX" = yes; then
3677     CXXFLAGS="-g -O2"
3678   else
3679     CXXFLAGS="-g"
3680   fi
3681 else
3682   if test "$GXX" = yes; then
3683     CXXFLAGS="-O2"
3684   else
3685     CXXFLAGS=
3686   fi
3687 fi
3688 for ac_declaration in \
3689    '' \
3690    'extern "C" void std::exit (int) throw (); using std::exit;' \
3691    'extern "C" void std::exit (int); using std::exit;' \
3692    'extern "C" void exit (int) throw ();' \
3693    'extern "C" void exit (int);' \
3694    'void exit (int);'
3695 do
3696   cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h.  */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h.  */
3702 $ac_declaration
3703 #include <stdlib.h>
3704 int
3705 main ()
3706 {
3707 exit (42);
3708   ;
3709   return 0;
3710 }
3711 _ACEOF
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714   (eval $ac_compile) 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } &&
3721          { ac_try='test -z "$ac_cxx_werror_flag"
3722                          || test ! -s conftest.err'
3723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724   (eval $ac_try) 2>&5
3725   ac_status=$?
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); }; } &&
3728          { ac_try='test -s conftest.$ac_objext'
3729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730   (eval $ac_try) 2>&5
3731   ac_status=$?
3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733   (exit $ac_status); }; }; then
3734   :
3735 else
3736   echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 continue
3740 fi
3741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3742   cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h.  */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h.  */
3748 $ac_declaration
3749 int
3750 main ()
3751 {
3752 exit (42);
3753   ;
3754   return 0;
3755 }
3756 _ACEOF
3757 rm -f conftest.$ac_objext
3758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3759   (eval $ac_compile) 2>conftest.er1
3760   ac_status=$?
3761   grep -v '^ *+' conftest.er1 >conftest.err
3762   rm -f conftest.er1
3763   cat conftest.err >&5
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); } &&
3766          { ac_try='test -z "$ac_cxx_werror_flag"
3767                          || test ! -s conftest.err'
3768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769   (eval $ac_try) 2>&5
3770   ac_status=$?
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); }; } &&
3773          { ac_try='test -s conftest.$ac_objext'
3774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775   (eval $ac_try) 2>&5
3776   ac_status=$?
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); }; }; then
3779   break
3780 else
3781   echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 fi
3785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786 done
3787 rm -f conftest*
3788 if test -n "$ac_declaration"; then
3789   echo '#ifdef __cplusplus' >>confdefs.h
3790   echo $ac_declaration      >>confdefs.h
3791   echo '#endif'             >>confdefs.h
3792 fi
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799
3800 depcc="$CXX"  am_compiler_list=
3801
3802 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3803 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3804 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3808   # We make a subdir and do the tests there.  Otherwise we can end up
3809   # making bogus files that we don't know about and never remove.  For
3810   # instance it was reported that on HP-UX the gcc test will end up
3811   # making a dummy file named `D' -- because `-MD' means `put the output
3812   # in D'.
3813   mkdir conftest.dir
3814   # Copy depcomp to subdir because otherwise we won't find it if we're
3815   # using a relative directory.
3816   cp "$am_depcomp" conftest.dir
3817   cd conftest.dir
3818   # We will build objects and dependencies in a subdirectory because
3819   # it helps to detect inapplicable dependency modes.  For instance
3820   # both Tru64's cc and ICC support -MD to output dependencies as a
3821   # side effect of compilation, but ICC will put the dependencies in
3822   # the current directory while Tru64 will put them in the object
3823   # directory.
3824   mkdir sub
3825
3826   am_cv_CXX_dependencies_compiler_type=none
3827   if test "$am_compiler_list" = ""; then
3828      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3829   fi
3830   for depmode in $am_compiler_list; do
3831     # Setup a source with many dependencies, because some compilers
3832     # like to wrap large dependency lists on column 80 (with \), and
3833     # we should not choose a depcomp mode which is confused by this.
3834     #
3835     # We need to recreate these files for each test, as the compiler may
3836     # overwrite some of them when testing with obscure command lines.
3837     # This happens at least with the AIX C compiler.
3838     : > sub/conftest.c
3839     for i in 1 2 3 4 5 6; do
3840       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3841       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3842       # Solaris 8's {/usr,}/bin/sh.
3843       touch sub/conftst$i.h
3844     done
3845     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3846
3847     case $depmode in
3848     nosideeffect)
3849       # after this tag, mechanisms are not by side-effect, so they'll
3850       # only be used when explicitly requested
3851       if test "x$enable_dependency_tracking" = xyes; then
3852         continue
3853       else
3854         break
3855       fi
3856       ;;
3857     none) break ;;
3858     esac
3859     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3860     # mode.  It turns out that the SunPro C++ compiler does not properly
3861     # handle `-M -o', and we need to detect this.
3862     if depmode=$depmode \
3863        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3864        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3865        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3866          >/dev/null 2>conftest.err &&
3867        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3869        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870       # icc doesn't choke on unknown options, it will just issue warnings
3871       # or remarks (even with -Werror).  So we grep stderr for any message
3872       # that says an option was ignored or not supported.
3873       # When given -MP, icc 7.0 and 7.1 complain thusly:
3874       #   icc: Command line warning: ignoring option '-M'; no argument required
3875       # The diagnosis changed in icc 8.0:
3876       #   icc: Command line remark: option '-MP' not supported
3877       if (grep 'ignoring option' conftest.err ||
3878           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879         am_cv_CXX_dependencies_compiler_type=$depmode
3880         break
3881       fi
3882     fi
3883   done
3884
3885   cd ..
3886   rm -rf conftest.dir
3887 else
3888   am_cv_CXX_dependencies_compiler_type=none
3889 fi
3890
3891 fi
3892 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3893 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3894 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3895
3896
3897
3898 if
3899   test "x$enable_dependency_tracking" != xno \
3900   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3901   am__fastdepCXX_TRUE=
3902   am__fastdepCXX_FALSE='#'
3903 else
3904   am__fastdepCXX_TRUE='#'
3905   am__fastdepCXX_FALSE=
3906 fi
3907
3908
3909 ac_ext=cc
3910 ac_cpp='$CXXCPP $CPPFLAGS'
3911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3914 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3915 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3916 if test -z "$CXXCPP"; then
3917   if test "${ac_cv_prog_CXXCPP+set}" = set; then
3918   echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920       # Double quotes because CXXCPP needs to be expanded
3921     for CXXCPP in "$CXX -E" "/lib/cpp"
3922     do
3923       ac_preproc_ok=false
3924 for ac_cxx_preproc_warn_flag in '' yes
3925 do
3926   # Use a header file that comes with gcc, so configuring glibc
3927   # with a fresh cross-compiler works.
3928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3929   # <limits.h> exists even on freestanding compilers.
3930   # On the NeXT, cc -E runs the code through the compiler's parser,
3931   # not just through cpp. "Syntax error" is here to catch this case.
3932   cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938 #ifdef __STDC__
3939 # include <limits.h>
3940 #else
3941 # include <assert.h>
3942 #endif
3943                      Syntax error
3944 _ACEOF
3945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3947   ac_status=$?
3948   grep -v '^ *+' conftest.er1 >conftest.err
3949   rm -f conftest.er1
3950   cat conftest.err >&5
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); } >/dev/null; then
3953   if test -s conftest.err; then
3954     ac_cpp_err=$ac_cxx_preproc_warn_flag
3955     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3956   else
3957     ac_cpp_err=
3958   fi
3959 else
3960   ac_cpp_err=yes
3961 fi
3962 if test -z "$ac_cpp_err"; then
3963   :
3964 else
3965   echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968   # Broken: fails on valid input.
3969 continue
3970 fi
3971 rm -f conftest.err conftest.$ac_ext
3972
3973   # OK, works on sane cases.  Now check whether non-existent headers
3974   # can be detected and how.
3975   cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 #include <ac_nonexistent.h>
3982 _ACEOF
3983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3985   ac_status=$?
3986   grep -v '^ *+' conftest.er1 >conftest.err
3987   rm -f conftest.er1
3988   cat conftest.err >&5
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); } >/dev/null; then
3991   if test -s conftest.err; then
3992     ac_cpp_err=$ac_cxx_preproc_warn_flag
3993     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3994   else
3995     ac_cpp_err=
3996   fi
3997 else
3998   ac_cpp_err=yes
3999 fi
4000 if test -z "$ac_cpp_err"; then
4001   # Broken: success on invalid input.
4002 continue
4003 else
4004   echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007   # Passes both tests.
4008 ac_preproc_ok=:
4009 break
4010 fi
4011 rm -f conftest.err conftest.$ac_ext
4012
4013 done
4014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015 rm -f conftest.err conftest.$ac_ext
4016 if $ac_preproc_ok; then
4017   break
4018 fi
4019
4020     done
4021     ac_cv_prog_CXXCPP=$CXXCPP
4022
4023 fi
4024   CXXCPP=$ac_cv_prog_CXXCPP
4025 else
4026   ac_cv_prog_CXXCPP=$CXXCPP
4027 fi
4028 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4029 echo "${ECHO_T}$CXXCPP" >&6
4030 ac_preproc_ok=false
4031 for ac_cxx_preproc_warn_flag in '' yes
4032 do
4033   # Use a header file that comes with gcc, so configuring glibc
4034   # with a fresh cross-compiler works.
4035   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036   # <limits.h> exists even on freestanding compilers.
4037   # On the NeXT, cc -E runs the code through the compiler's parser,
4038   # not just through cpp. "Syntax error" is here to catch this case.
4039   cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045 #ifdef __STDC__
4046 # include <limits.h>
4047 #else
4048 # include <assert.h>
4049 #endif
4050                      Syntax error
4051 _ACEOF
4052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4054   ac_status=$?
4055   grep -v '^ *+' conftest.er1 >conftest.err
4056   rm -f conftest.er1
4057   cat conftest.err >&5
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); } >/dev/null; then
4060   if test -s conftest.err; then
4061     ac_cpp_err=$ac_cxx_preproc_warn_flag
4062     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4063   else
4064     ac_cpp_err=
4065   fi
4066 else
4067   ac_cpp_err=yes
4068 fi
4069 if test -z "$ac_cpp_err"; then
4070   :
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075   # Broken: fails on valid input.
4076 continue
4077 fi
4078 rm -f conftest.err conftest.$ac_ext
4079
4080   # OK, works on sane cases.  Now check whether non-existent headers
4081   # can be detected and how.
4082   cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h.  */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h.  */
4088 #include <ac_nonexistent.h>
4089 _ACEOF
4090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4092   ac_status=$?
4093   grep -v '^ *+' conftest.er1 >conftest.err
4094   rm -f conftest.er1
4095   cat conftest.err >&5
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } >/dev/null; then
4098   if test -s conftest.err; then
4099     ac_cpp_err=$ac_cxx_preproc_warn_flag
4100     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4101   else
4102     ac_cpp_err=
4103   fi
4104 else
4105   ac_cpp_err=yes
4106 fi
4107 if test -z "$ac_cpp_err"; then
4108   # Broken: success on invalid input.
4109 continue
4110 else
4111   echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114   # Passes both tests.
4115 ac_preproc_ok=:
4116 break
4117 fi
4118 rm -f conftest.err conftest.$ac_ext
4119
4120 done
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then
4124   :
4125 else
4126   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4127 See \`config.log' for more details." >&5
4128 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4129 See \`config.log' for more details." >&2;}
4130    { (exit 1); exit 1; }; }
4131 fi
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139 # Find a good install program.  We prefer a C program (faster),
4140 # so one script is as good as another.  But avoid the broken or
4141 # incompatible versions:
4142 # SysV /etc/install, /usr/sbin/install
4143 # SunOS /usr/etc/install
4144 # IRIX /sbin/install
4145 # AIX /bin/install
4146 # AmigaOS /C/install, which installs bootblocks on floppy discs
4147 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4148 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4149 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4150 # OS/2's system install, which has a completely different semantic
4151 # ./install, which can be erroneously created by make from ./install.sh.
4152 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4153 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4154 if test -z "$INSTALL"; then
4155 if test "${ac_cv_path_install+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161   IFS=$as_save_IFS
4162   test -z "$as_dir" && as_dir=.
4163   # Account for people who put trailing slashes in PATH elements.
4164 case $as_dir/ in
4165   ./ | .// | /cC/* | \
4166   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4167   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4168   /usr/ucb/* ) ;;
4169   *)
4170     # OSF1 and SCO ODT 3.0 have their own names for install.
4171     # Don't use installbsd from OSF since it installs stuff as root
4172     # by default.
4173     for ac_prog in ginstall scoinst install; do
4174       for ac_exec_ext in '' $ac_executable_extensions; do
4175         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4176           if test $ac_prog = install &&
4177             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4178             # AIX install.  It has an incompatible calling convention.
4179             :
4180           elif test $ac_prog = install &&
4181             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4182             # program-specific install script used by HP pwplus--don't use.
4183             :
4184           else
4185             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4186             break 3
4187           fi
4188         fi
4189       done
4190     done
4191     ;;
4192 esac
4193 done
4194
4195
4196 fi
4197   if test "${ac_cv_path_install+set}" = set; then
4198     INSTALL=$ac_cv_path_install
4199   else
4200     # As a last resort, use the slow shell script.  We don't cache a
4201     # path for INSTALL within a source directory, because that will
4202     # break other packages using the cache if that directory is
4203     # removed, or if the path is relative.
4204     INSTALL=$ac_install_sh
4205   fi
4206 fi
4207 echo "$as_me:$LINENO: result: $INSTALL" >&5
4208 echo "${ECHO_T}$INSTALL" >&6
4209
4210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4211 # It thinks the first close brace ends the variable substitution.
4212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4213
4214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4215
4216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4217
4218 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4219 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4220 LN_S=$as_ln_s
4221 if test "$LN_S" = "ln -s"; then
4222   echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 else
4225   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4226 echo "${ECHO_T}no, using $LN_S" >&6
4227 fi
4228
4229 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4230 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4231 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4232 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4233   echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235   cat >conftest.make <<\_ACEOF
4236 all:
4237         @echo 'ac_maketemp="$(MAKE)"'
4238 _ACEOF
4239 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4240 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4241 if test -n "$ac_maketemp"; then
4242   eval ac_cv_prog_make_${ac_make}_set=yes
4243 else
4244   eval ac_cv_prog_make_${ac_make}_set=no
4245 fi
4246 rm -f conftest.make
4247 fi
4248 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4249   echo "$as_me:$LINENO: result: yes" >&5
4250 echo "${ECHO_T}yes" >&6
4251   SET_MAKE=
4252 else
4253   echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6
4255   SET_MAKE="MAKE=${MAKE-make}"
4256 fi
4257
4258 for ac_prog in perl
4259 do
4260   # Extract the first word of "$ac_prog", so it can be a program name with args.
4261 set dummy $ac_prog; ac_word=$2
4262 echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4264 if test "${ac_cv_path_PERL+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   case $PERL in
4268   [\\/]* | ?:[\\/]*)
4269   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4270   ;;
4271   *)
4272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277   for ac_exec_ext in '' $ac_executable_extensions; do
4278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284 done
4285
4286   ;;
4287 esac
4288 fi
4289 PERL=$ac_cv_path_PERL
4290
4291 if test -n "$PERL"; then
4292   echo "$as_me:$LINENO: result: $PERL" >&5
4293 echo "${ECHO_T}$PERL" >&6
4294 else
4295   echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6
4297 fi
4298
4299   test -n "$PERL" && break
4300 done
4301 test -n "$PERL" || PERL="perl"
4302
4303 # Check whether --enable-shared or --disable-shared was given.
4304 if test "${enable_shared+set}" = set; then
4305   enableval="$enable_shared"
4306   p=${PACKAGE-default}
4307     case $enableval in
4308     yes) enable_shared=yes ;;
4309     no) enable_shared=no ;;
4310     *)
4311       enable_shared=no
4312       # Look at the argument we got.  We use all the common list separators.
4313       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4314       for pkg in $enableval; do
4315         IFS="$lt_save_ifs"
4316         if test "X$pkg" = "X$p"; then
4317           enable_shared=yes
4318         fi
4319       done
4320       IFS="$lt_save_ifs"
4321       ;;
4322     esac
4323 else
4324   enable_shared=yes
4325 fi;
4326
4327 # Check whether --enable-static or --disable-static was given.
4328 if test "${enable_static+set}" = set; then
4329   enableval="$enable_static"
4330   p=${PACKAGE-default}
4331     case $enableval in
4332     yes) enable_static=yes ;;
4333     no) enable_static=no ;;
4334     *)
4335      enable_static=no
4336       # Look at the argument we got.  We use all the common list separators.
4337       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4338       for pkg in $enableval; do
4339         IFS="$lt_save_ifs"
4340         if test "X$pkg" = "X$p"; then
4341           enable_static=yes
4342         fi
4343       done
4344       IFS="$lt_save_ifs"
4345       ;;
4346     esac
4347 else
4348   enable_static=yes
4349 fi;
4350
4351 # Check whether --enable-fast-install or --disable-fast-install was given.
4352 if test "${enable_fast_install+set}" = set; then
4353   enableval="$enable_fast_install"
4354   p=${PACKAGE-default}
4355     case $enableval in
4356     yes) enable_fast_install=yes ;;
4357     no) enable_fast_install=no ;;
4358     *)
4359       enable_fast_install=no
4360       # Look at the argument we got.  We use all the common list separators.
4361       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4362       for pkg in $enableval; do
4363         IFS="$lt_save_ifs"
4364         if test "X$pkg" = "X$p"; then
4365           enable_fast_install=yes
4366         fi
4367       done
4368       IFS="$lt_save_ifs"
4369       ;;
4370     esac
4371 else
4372   enable_fast_install=yes
4373 fi;
4374
4375 # Make sure we can run config.sub.
4376 $ac_config_sub sun4 >/dev/null 2>&1 ||
4377   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4378 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4379    { (exit 1); exit 1; }; }
4380
4381 echo "$as_me:$LINENO: checking build system type" >&5
4382 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4383 if test "${ac_cv_build+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   ac_cv_build_alias=$build_alias
4387 test -z "$ac_cv_build_alias" &&
4388   ac_cv_build_alias=`$ac_config_guess`
4389 test -z "$ac_cv_build_alias" &&
4390   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4392    { (exit 1); exit 1; }; }
4393 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4394   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4395 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4396    { (exit 1); exit 1; }; }
4397
4398 fi
4399 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4400 echo "${ECHO_T}$ac_cv_build" >&6
4401 build=$ac_cv_build
4402 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4403 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4404 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4405
4406
4407 echo "$as_me:$LINENO: checking host system type" >&5
4408 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4409 if test "${ac_cv_host+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   ac_cv_host_alias=$host_alias
4413 test -z "$ac_cv_host_alias" &&
4414   ac_cv_host_alias=$ac_cv_build_alias
4415 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4416   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4417 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4418    { (exit 1); exit 1; }; }
4419
4420 fi
4421 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4422 echo "${ECHO_T}$ac_cv_host" >&6
4423 host=$ac_cv_host
4424 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4425 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4426 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4427
4428
4429 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4430 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4431 if test "${lt_cv_path_SED+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   # Loop through the user's path and test for sed and gsed.
4435 # Then use that list of sed's as ones to test for truncation.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441   for lt_ac_prog in sed gsed; do
4442     for ac_exec_ext in '' $ac_executable_extensions; do
4443       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4444         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4445       fi
4446     done
4447   done
4448 done
4449 lt_ac_max=0
4450 lt_ac_count=0
4451 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4452 # along with /bin/sed that truncates output.
4453 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4454   test ! -f $lt_ac_sed && continue
4455   cat /dev/null > conftest.in
4456   lt_ac_count=0
4457   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4458   # Check for GNU sed and select it if it is found.
4459   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4460     lt_cv_path_SED=$lt_ac_sed
4461     break
4462   fi
4463   while true; do
4464     cat conftest.in conftest.in >conftest.tmp
4465     mv conftest.tmp conftest.in
4466     cp conftest.in conftest.nl
4467     echo >>conftest.nl
4468     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4469     cmp -s conftest.out conftest.nl || break
4470     # 10000 chars as input seems more than enough
4471     test $lt_ac_count -gt 10 && break
4472     lt_ac_count=`expr $lt_ac_count + 1`
4473     if test $lt_ac_count -gt $lt_ac_max; then
4474       lt_ac_max=$lt_ac_count
4475       lt_cv_path_SED=$lt_ac_sed
4476     fi
4477   done
4478 done
4479
4480 fi
4481
4482 SED=$lt_cv_path_SED
4483 echo "$as_me:$LINENO: result: $SED" >&5
4484 echo "${ECHO_T}$SED" >&6
4485
4486 echo "$as_me:$LINENO: checking for egrep" >&5
4487 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4488 if test "${ac_cv_prog_egrep+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4492     then ac_cv_prog_egrep='grep -E'
4493     else ac_cv_prog_egrep='egrep'
4494     fi
4495 fi
4496 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4497 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4498  EGREP=$ac_cv_prog_egrep
4499
4500
4501
4502 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4503 if test "${with_gnu_ld+set}" = set; then
4504   withval="$with_gnu_ld"
4505   test "$withval" = no || with_gnu_ld=yes
4506 else
4507   with_gnu_ld=no
4508 fi;
4509 ac_prog=ld
4510 if test "$GCC" = yes; then
4511   # Check if gcc -print-prog-name=ld gives a path.
4512   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4513 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4514   case $host in
4515   *-*-mingw*)
4516     # gcc leaves a trailing carriage return which upsets mingw
4517     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4518   *)
4519     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4520   esac
4521   case $ac_prog in
4522     # Accept absolute paths.
4523     [\\/]* | ?:[\\/]*)
4524       re_direlt='/[^/][^/]*/\.\./'
4525       # Canonicalize the pathname of ld
4526       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4527       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4528         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4529       done
4530       test -z "$LD" && LD="$ac_prog"
4531       ;;
4532   "")
4533     # If it fails, then pretend we aren't using GCC.
4534     ac_prog=ld
4535     ;;
4536   *)
4537     # If it is relative, then search for the first ld in PATH.
4538     with_gnu_ld=unknown
4539     ;;
4540   esac
4541 elif test "$with_gnu_ld" = yes; then
4542   echo "$as_me:$LINENO: checking for GNU ld" >&5
4543 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4544 else
4545   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4546 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4547 fi
4548 if test "${lt_cv_path_LD+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551   if test -z "$LD"; then
4552   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4553   for ac_dir in $PATH; do
4554     IFS="$lt_save_ifs"
4555     test -z "$ac_dir" && ac_dir=.
4556     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4557       lt_cv_path_LD="$ac_dir/$ac_prog"
4558       # Check to see if the program is GNU ld.  I'd rather use --version,
4559       # but apparently some variants of GNU ld only accept -v.
4560       # Break only if it was the GNU/non-GNU ld that we prefer.
4561       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4562       *GNU* | *'with BFD'*)
4563         test "$with_gnu_ld" != no && break
4564         ;;
4565       *)
4566         test "$with_gnu_ld" != yes && break
4567         ;;
4568       esac
4569     fi
4570   done
4571   IFS="$lt_save_ifs"
4572 else
4573   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4574 fi
4575 fi
4576
4577 LD="$lt_cv_path_LD"
4578 if test -n "$LD"; then
4579   echo "$as_me:$LINENO: result: $LD" >&5
4580 echo "${ECHO_T}$LD" >&6
4581 else
4582   echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4584 fi
4585 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4586 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4587    { (exit 1); exit 1; }; }
4588 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4589 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4590 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4594 case `$LD -v 2>&1 </dev/null` in
4595 *GNU* | *'with BFD'*)
4596   lt_cv_prog_gnu_ld=yes
4597   ;;
4598 *)
4599   lt_cv_prog_gnu_ld=no
4600   ;;
4601 esac
4602 fi
4603 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4604 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4605 with_gnu_ld=$lt_cv_prog_gnu_ld
4606
4607
4608 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4609 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4610 if test "${lt_cv_ld_reload_flag+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   lt_cv_ld_reload_flag='-r'
4614 fi
4615 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4616 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4617 reload_flag=$lt_cv_ld_reload_flag
4618 case $reload_flag in
4619 "" | " "*) ;;
4620 *) reload_flag=" $reload_flag" ;;
4621 esac
4622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4623 case $host_os in
4624   darwin*)
4625     if test "$GCC" = yes; then
4626       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4627     else
4628       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4629     fi
4630     ;;
4631 esac
4632
4633 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4634 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4635 if test "${lt_cv_path_NM+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   if test -n "$NM"; then
4639   # Let the user override the test.
4640   lt_cv_path_NM="$NM"
4641 else
4642   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4643   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4644     IFS="$lt_save_ifs"
4645     test -z "$ac_dir" && ac_dir=.
4646     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4647     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4648       # Check to see if the nm accepts a BSD-compat flag.
4649       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4650       #   nm: unknown option "B" ignored
4651       # Tru64's nm complains that /dev/null is an invalid object file
4652       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4653       */dev/null* | *'Invalid file or object type'*)
4654         lt_cv_path_NM="$tmp_nm -B"
4655         break
4656         ;;
4657       *)
4658         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4659         */dev/null*)
4660           lt_cv_path_NM="$tmp_nm -p"
4661           break
4662           ;;
4663         *)
4664           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4665           continue # so that we can try to find one that supports BSD flags
4666           ;;
4667         esac
4668       esac
4669     fi
4670   done
4671   IFS="$lt_save_ifs"
4672   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4673 fi
4674 fi
4675 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4676 echo "${ECHO_T}$lt_cv_path_NM" >&6
4677 NM="$lt_cv_path_NM"
4678
4679 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4680 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4681 if test "${lt_cv_deplibs_check_method+set}" = set; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684   lt_cv_file_magic_cmd='$MAGIC_CMD'
4685 lt_cv_file_magic_test_file=
4686 lt_cv_deplibs_check_method='unknown'
4687 # Need to set the preceding variable on all platforms that support
4688 # interlibrary dependencies.
4689 # 'none' -- dependencies not supported.
4690 # `unknown' -- same as none, but documents that we really don't know.
4691 # 'pass_all' -- all dependencies passed with no checks.
4692 # 'test_compile' -- check by making test program.
4693 # 'file_magic [[regex]]' -- check by looking for files in library path
4694 # which responds to the $file_magic_cmd with a given extended regex.
4695 # If you have `file' or equivalent on your system and you're not sure
4696 # whether `pass_all' will *always* work, you probably want this one.
4697
4698 case $host_os in
4699 aix4* | aix5*)
4700   lt_cv_deplibs_check_method=pass_all
4701   ;;
4702
4703 beos*)
4704   lt_cv_deplibs_check_method=pass_all
4705   ;;
4706
4707 bsdi[45]*)
4708   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4709   lt_cv_file_magic_cmd='/usr/bin/file -L'
4710   lt_cv_file_magic_test_file=/shlib/libc.so
4711   ;;
4712
4713 cygwin*)
4714   # func_win32_libid is a shell function defined in ltmain.sh
4715   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4716   lt_cv_file_magic_cmd='func_win32_libid'
4717   ;;
4718
4719 mingw* | pw32*)
4720   # Base MSYS/MinGW do not provide the 'file' command needed by
4721   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4722   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4723   lt_cv_file_magic_cmd='$OBJDUMP -f'
4724   ;;
4725
4726 darwin* | rhapsody*)
4727   lt_cv_deplibs_check_method=pass_all
4728   ;;
4729
4730 freebsd* | kfreebsd*-gnu | dragonfly*)
4731   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4732     case $host_cpu in
4733     i*86 )
4734       # Not sure whether the presence of OpenBSD here was a mistake.
4735       # Let's accept both of them until this is cleared up.
4736       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4737       lt_cv_file_magic_cmd=/usr/bin/file
4738       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4739       ;;
4740     esac
4741   else
4742     lt_cv_deplibs_check_method=pass_all
4743   fi
4744   ;;
4745
4746 gnu*)
4747   lt_cv_deplibs_check_method=pass_all
4748   ;;
4749
4750 hpux10.20* | hpux11*)
4751   lt_cv_file_magic_cmd=/usr/bin/file
4752   case $host_cpu in
4753   ia64*)
4754     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4755     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4756     ;;
4757   hppa*64*)
4758     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]'
4759     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4760     ;;
4761   *)
4762     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4763     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4764     ;;
4765   esac
4766   ;;
4767
4768 irix5* | irix6* | nonstopux*)
4769   case $LD in
4770   *-32|*"-32 ") libmagic=32-bit;;
4771   *-n32|*"-n32 ") libmagic=N32;;
4772   *-64|*"-64 ") libmagic=64-bit;;
4773   *) libmagic=never-match;;
4774   esac
4775   lt_cv_deplibs_check_method=pass_all
4776   ;;
4777
4778 # This must be Linux ELF.
4779 linux*)
4780   lt_cv_deplibs_check_method=pass_all
4781   ;;
4782
4783 netbsd*)
4784   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4785     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4786   else
4787     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4788   fi
4789   ;;
4790
4791 newos6*)
4792   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4793   lt_cv_file_magic_cmd=/usr/bin/file
4794   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4795   ;;
4796
4797 nto-qnx*)
4798   lt_cv_deplibs_check_method=unknown
4799   ;;
4800
4801 openbsd*)
4802   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4803     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4804   else
4805     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4806   fi
4807   ;;
4808
4809 osf3* | osf4* | osf5*)
4810   lt_cv_deplibs_check_method=pass_all
4811   ;;
4812
4813 sco3.2v5*)
4814   lt_cv_deplibs_check_method=pass_all
4815   ;;
4816
4817 solaris*)
4818   lt_cv_deplibs_check_method=pass_all
4819   ;;
4820
4821 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4822   case $host_vendor in
4823   motorola)
4824     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]'
4825     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4826     ;;
4827   ncr)
4828     lt_cv_deplibs_check_method=pass_all
4829     ;;
4830   sequent)
4831     lt_cv_file_magic_cmd='/bin/file'
4832     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4833     ;;
4834   sni)
4835     lt_cv_file_magic_cmd='/bin/file'
4836     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4837     lt_cv_file_magic_test_file=/lib/libc.so
4838     ;;
4839   siemens)
4840     lt_cv_deplibs_check_method=pass_all
4841     ;;
4842   esac
4843   ;;
4844
4845 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4846   lt_cv_deplibs_check_method=pass_all
4847   ;;
4848 esac
4849
4850 fi
4851 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4852 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4853 file_magic_cmd=$lt_cv_file_magic_cmd
4854 deplibs_check_method=$lt_cv_deplibs_check_method
4855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4856
4857
4858
4859
4860 # If no C compiler was specified, use CC.
4861 LTCC=${LTCC-"$CC"}
4862
4863 # Allow CC to be a program name with arguments.
4864 compiler=$CC
4865
4866
4867 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4868 if test "${enable_libtool_lock+set}" = set; then
4869   enableval="$enable_libtool_lock"
4870
4871 fi;
4872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4873
4874 # Some flags need to be propagated to the compiler or linker for good
4875 # libtool support.
4876 case $host in
4877 ia64-*-hpux*)
4878   # Find out which ABI we are using.
4879   echo 'int i;' > conftest.$ac_ext
4880   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881   (eval $ac_compile) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; then
4885     case `/usr/bin/file conftest.$ac_objext` in
4886     *ELF-32*)
4887       HPUX_IA64_MODE="32"
4888       ;;
4889     *ELF-64*)
4890       HPUX_IA64_MODE="64"
4891       ;;
4892     esac
4893   fi
4894   rm -rf conftest*
4895   ;;
4896 *-*-irix6*)
4897   # Find out which ABI we are using.
4898   echo '#line 4898 "configure"' > conftest.$ac_ext
4899   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900   (eval $ac_compile) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; then
4904    if test "$lt_cv_prog_gnu_ld" = yes; then
4905     case `/usr/bin/file conftest.$ac_objext` in
4906     *32-bit*)
4907       LD="${LD-ld} -melf32bsmip"
4908       ;;
4909     *N32*)
4910       LD="${LD-ld} -melf32bmipn32"
4911       ;;
4912     *64-bit*)
4913       LD="${LD-ld} -melf64bmip"
4914       ;;
4915     esac
4916    else
4917     case `/usr/bin/file conftest.$ac_objext` in
4918     *32-bit*)
4919       LD="${LD-ld} -32"
4920       ;;
4921     *N32*)
4922       LD="${LD-ld} -n32"
4923       ;;
4924     *64-bit*)
4925       LD="${LD-ld} -64"
4926       ;;
4927     esac
4928    fi
4929   fi
4930   rm -rf conftest*
4931   ;;
4932
4933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4934   # Find out which ABI we are using.
4935   echo 'int i;' > conftest.$ac_ext
4936   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937   (eval $ac_compile) 2>&5
4938   ac_status=$?
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); }; then
4941     case `/usr/bin/file conftest.o` in
4942     *32-bit*)
4943       case $host in
4944         x86_64-*linux*)
4945           LD="${LD-ld} -m elf_i386"
4946           ;;
4947         ppc64-*linux*|powerpc64-*linux*)
4948           LD="${LD-ld} -m elf32ppclinux"
4949           ;;
4950         s390x-*linux*)
4951           LD="${LD-ld} -m elf_s390"
4952           ;;
4953         sparc64-*linux*)
4954           LD="${LD-ld} -m elf32_sparc"
4955           ;;
4956       esac
4957       ;;
4958     *64-bit*)
4959       case $host in
4960         x86_64-*linux*)
4961           LD="${LD-ld} -m elf_x86_64"
4962           ;;
4963         ppc*-*linux*|powerpc*-*linux*)
4964           LD="${LD-ld} -m elf64ppc"
4965           ;;
4966         s390*-*linux*)
4967           LD="${LD-ld} -m elf64_s390"
4968           ;;
4969         sparc*-*linux*)
4970           LD="${LD-ld} -m elf64_sparc"
4971           ;;
4972       esac
4973       ;;
4974     esac
4975   fi
4976   rm -rf conftest*
4977   ;;
4978
4979 *-*-sco3.2v5*)
4980   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4981   SAVE_CFLAGS="$CFLAGS"
4982   CFLAGS="$CFLAGS -belf"
4983   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4985 if test "${lt_cv_cc_needs_belf+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   ac_ext=c
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993
4994      cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000
5001 int
5002 main ()
5003 {
5004
5005   ;
5006   return 0;
5007 }
5008 _ACEOF
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011   (eval $ac_link) 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } &&
5018          { ac_try='test -z "$ac_c_werror_flag"
5019                          || test ! -s conftest.err'
5020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021   (eval $ac_try) 2>&5
5022   ac_status=$?
5023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024   (exit $ac_status); }; } &&
5025          { ac_try='test -s conftest$ac_exeext'
5026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027   (eval $ac_try) 2>&5
5028   ac_status=$?
5029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); }; }; then
5031   lt_cv_cc_needs_belf=yes
5032 else
5033   echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 lt_cv_cc_needs_belf=no
5037 fi
5038 rm -f conftest.err conftest.$ac_objext \
5039       conftest$ac_exeext conftest.$ac_ext
5040      ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046 fi
5047 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5048 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5049   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5050     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5051     CFLAGS="$SAVE_CFLAGS"
5052   fi
5053   ;;
5054
5055 esac
5056
5057 need_locks="$enable_libtool_lock"
5058
5059
5060
5061 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5062 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5063 if test "${ac_cv_header_stdc+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   cat >conftest.$ac_ext <<_ACEOF
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 #include <stdlib.h>
5073 #include <stdarg.h>
5074 #include <string.h>
5075 #include <float.h>
5076
5077 int
5078 main ()
5079 {
5080
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 rm -f conftest.$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087   (eval $ac_compile) 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } &&
5094          { ac_try='test -z "$ac_c_werror_flag"
5095                          || test ! -s conftest.err'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; } &&
5101          { ac_try='test -s conftest.$ac_objext'
5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103   (eval $ac_try) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   ac_cv_header_stdc=yes
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_cv_header_stdc=no
5113 fi
5114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5115
5116 if test $ac_cv_header_stdc = yes; then
5117   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5118   cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 #include <string.h>
5125
5126 _ACEOF
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128   $EGREP "memchr" >/dev/null 2>&1; then
5129   :
5130 else
5131   ac_cv_header_stdc=no
5132 fi
5133 rm -f conftest*
5134
5135 fi
5136
5137 if test $ac_cv_header_stdc = yes; then
5138   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5139   cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h.  */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h.  */
5145 #include <stdlib.h>
5146
5147 _ACEOF
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5149   $EGREP "free" >/dev/null 2>&1; then
5150   :
5151 else
5152   ac_cv_header_stdc=no
5153 fi
5154 rm -f conftest*
5155
5156 fi
5157
5158 if test $ac_cv_header_stdc = yes; then
5159   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5160   if test "$cross_compiling" = yes; then
5161   :
5162 else
5163   cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 #include <ctype.h>
5170 #if ((' ' & 0x0FF) == 0x020)
5171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5173 #else
5174 # define ISLOWER(c) \
5175                    (('a' <= (c) && (c) <= 'i') \
5176                      || ('j' <= (c) && (c) <= 'r') \
5177                      || ('s' <= (c) && (c) <= 'z'))
5178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5179 #endif
5180
5181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5182 int
5183 main ()
5184 {
5185   int i;
5186   for (i = 0; i < 256; i++)
5187     if (XOR (islower (i), ISLOWER (i))
5188         || toupper (i) != TOUPPER (i))
5189       exit(2);
5190   exit (0);
5191 }
5192 _ACEOF
5193 rm -f conftest$ac_exeext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195   (eval $ac_link) 2>&5
5196   ac_status=$?
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; }; then
5204   :
5205 else
5206   echo "$as_me: program exited with status $ac_status" >&5
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ( exit $ac_status )
5211 ac_cv_header_stdc=no
5212 fi
5213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5214 fi
5215 fi
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5218 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5219 if test $ac_cv_header_stdc = yes; then
5220
5221 cat >>confdefs.h <<\_ACEOF
5222 #define STDC_HEADERS 1
5223 _ACEOF
5224
5225 fi
5226
5227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5238                   inttypes.h stdint.h unistd.h
5239 do
5240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 echo "$as_me:$LINENO: checking for $ac_header" >&5
5242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h.  */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h.  */
5252 $ac_includes_default
5253
5254 #include <$ac_header>
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258   (eval $ac_compile) 2>conftest.er1
5259   ac_status=$?
5260   grep -v '^ *+' conftest.er1 >conftest.err
5261   rm -f conftest.er1
5262   cat conftest.err >&5
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); } &&
5265          { ac_try='test -z "$ac_c_werror_flag"
5266                          || test ! -s conftest.err'
5267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268   (eval $ac_try) 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); }; } &&
5272          { ac_try='test -s conftest.$ac_objext'
5273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274   (eval $ac_try) 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }; }; then
5278   eval "$as_ac_Header=yes"
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 eval "$as_ac_Header=no"
5284 fi
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 fi
5287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5290   cat >>confdefs.h <<_ACEOF
5291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5292 _ACEOF
5293
5294 fi
5295
5296 done
5297
5298
5299
5300 for ac_header in dlfcn.h
5301 do
5302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5304   echo "$as_me:$LINENO: checking for $ac_header" >&5
5305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 fi
5309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5311 else
5312   # Is the header compilable?
5313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321 $ac_includes_default
5322 #include <$ac_header>
5323 _ACEOF
5324 rm -f conftest.$ac_objext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5326   (eval $ac_compile) 2>conftest.er1
5327   ac_status=$?
5328   grep -v '^ *+' conftest.er1 >conftest.err
5329   rm -f conftest.er1
5330   cat conftest.err >&5
5331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332   (exit $ac_status); } &&
5333          { ac_try='test -z "$ac_c_werror_flag"
5334                          || test ! -s conftest.err'
5335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336   (eval $ac_try) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }; } &&
5340          { ac_try='test -s conftest.$ac_objext'
5341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342   (eval $ac_try) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); }; }; then
5346   ac_header_compiler=yes
5347 else
5348   echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ac_header_compiler=no
5352 fi
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5356
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h.  */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h.  */
5366 #include <$ac_header>
5367 _ACEOF
5368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5369   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5370   ac_status=$?
5371   grep -v '^ *+' conftest.er1 >conftest.err
5372   rm -f conftest.er1
5373   cat conftest.err >&5
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); } >/dev/null; then
5376   if test -s conftest.err; then
5377     ac_cpp_err=$ac_c_preproc_warn_flag
5378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5379   else
5380     ac_cpp_err=
5381   fi
5382 else
5383   ac_cpp_err=yes
5384 fi
5385 if test -z "$ac_cpp_err"; then
5386   ac_header_preproc=yes
5387 else
5388   echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391   ac_header_preproc=no
5392 fi
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5396
5397 # So?  What about this header?
5398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5399   yes:no: )
5400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5404     ac_header_preproc=yes
5405     ;;
5406   no:yes:* )
5407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5419     (
5420       cat <<\_ASBOX
5421 ## ------------------------------------------ ##
5422 ## Report this to the AC_PACKAGE_NAME lists.  ##
5423 ## ------------------------------------------ ##
5424 _ASBOX
5425     ) |
5426       sed "s/^/$as_me: WARNING:     /" >&2
5427     ;;
5428 esac
5429 echo "$as_me:$LINENO: checking for $ac_header" >&5
5430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   eval "$as_ac_Header=\$ac_header_preproc"
5435 fi
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438
5439 fi
5440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441   cat >>confdefs.h <<_ACEOF
5442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443 _ACEOF
5444
5445 fi
5446
5447 done
5448
5449
5450
5451 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5452     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5453     (test "X$CXX" != "Xg++"))) ; then
5454   ac_ext=cc
5455 ac_cpp='$CXXCPP $CPPFLAGS'
5456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5459 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5460 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5461 if test -z "$CXXCPP"; then
5462   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465       # Double quotes because CXXCPP needs to be expanded
5466     for CXXCPP in "$CXX -E" "/lib/cpp"
5467     do
5468       ac_preproc_ok=false
5469 for ac_cxx_preproc_warn_flag in '' yes
5470 do
5471   # Use a header file that comes with gcc, so configuring glibc
5472   # with a fresh cross-compiler works.
5473   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5474   # <limits.h> exists even on freestanding compilers.
5475   # On the NeXT, cc -E runs the code through the compiler's parser,
5476   # not just through cpp. "Syntax error" is here to catch this case.
5477   cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483 #ifdef __STDC__
5484 # include <limits.h>
5485 #else
5486 # include <assert.h>
5487 #endif
5488                      Syntax error
5489 _ACEOF
5490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5492   ac_status=$?
5493   grep -v '^ *+' conftest.er1 >conftest.err
5494   rm -f conftest.er1
5495   cat conftest.err >&5
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } >/dev/null; then
5498   if test -s conftest.err; then
5499     ac_cpp_err=$ac_cxx_preproc_warn_flag
5500     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5501   else
5502     ac_cpp_err=
5503   fi
5504 else
5505   ac_cpp_err=yes
5506 fi
5507 if test -z "$ac_cpp_err"; then
5508   :
5509 else
5510   echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513   # Broken: fails on valid input.
5514 continue
5515 fi
5516 rm -f conftest.err conftest.$ac_ext
5517
5518   # OK, works on sane cases.  Now check whether non-existent headers
5519   # can be detected and how.
5520   cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526 #include <ac_nonexistent.h>
5527 _ACEOF
5528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } >/dev/null; then
5536   if test -s conftest.err; then
5537     ac_cpp_err=$ac_cxx_preproc_warn_flag
5538     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5539   else
5540     ac_cpp_err=
5541   fi
5542 else
5543   ac_cpp_err=yes
5544 fi
5545 if test -z "$ac_cpp_err"; then
5546   # Broken: success on invalid input.
5547 continue
5548 else
5549   echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552   # Passes both tests.
5553 ac_preproc_ok=:
5554 break
5555 fi
5556 rm -f conftest.err conftest.$ac_ext
5557
5558 done
5559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5560 rm -f conftest.err conftest.$ac_ext
5561 if $ac_preproc_ok; then
5562   break
5563 fi
5564
5565     done
5566     ac_cv_prog_CXXCPP=$CXXCPP
5567
5568 fi
5569   CXXCPP=$ac_cv_prog_CXXCPP
5570 else
5571   ac_cv_prog_CXXCPP=$CXXCPP
5572 fi
5573 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5574 echo "${ECHO_T}$CXXCPP" >&6
5575 ac_preproc_ok=false
5576 for ac_cxx_preproc_warn_flag in '' yes
5577 do
5578   # Use a header file that comes with gcc, so configuring glibc
5579   # with a fresh cross-compiler works.
5580   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5581   # <limits.h> exists even on freestanding compilers.
5582   # On the NeXT, cc -E runs the code through the compiler's parser,
5583   # not just through cpp. "Syntax error" is here to catch this case.
5584   cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h.  */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h.  */
5590 #ifdef __STDC__
5591 # include <limits.h>
5592 #else
5593 # include <assert.h>
5594 #endif
5595                      Syntax error
5596 _ACEOF
5597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } >/dev/null; then
5605   if test -s conftest.err; then
5606     ac_cpp_err=$ac_cxx_preproc_warn_flag
5607     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5608   else
5609     ac_cpp_err=
5610   fi
5611 else
5612   ac_cpp_err=yes
5613 fi
5614 if test -z "$ac_cpp_err"; then
5615   :
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620   # Broken: fails on valid input.
5621 continue
5622 fi
5623 rm -f conftest.err conftest.$ac_ext
5624
5625   # OK, works on sane cases.  Now check whether non-existent headers
5626   # can be detected and how.
5627   cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633 #include <ac_nonexistent.h>
5634 _ACEOF
5635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5637   ac_status=$?
5638   grep -v '^ *+' conftest.er1 >conftest.err
5639   rm -f conftest.er1
5640   cat conftest.err >&5
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); } >/dev/null; then
5643   if test -s conftest.err; then
5644     ac_cpp_err=$ac_cxx_preproc_warn_flag
5645     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5646   else
5647     ac_cpp_err=
5648   fi
5649 else
5650   ac_cpp_err=yes
5651 fi
5652 if test -z "$ac_cpp_err"; then
5653   # Broken: success on invalid input.
5654 continue
5655 else
5656   echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5658
5659   # Passes both tests.
5660 ac_preproc_ok=:
5661 break
5662 fi
5663 rm -f conftest.err conftest.$ac_ext
5664
5665 done
5666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5667 rm -f conftest.err conftest.$ac_ext
5668 if $ac_preproc_ok; then
5669   :
5670 else
5671   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5672 See \`config.log' for more details." >&5
5673 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5674 See \`config.log' for more details." >&2;}
5675    { (exit 1); exit 1; }; }
5676 fi
5677
5678 ac_ext=cc
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683
5684 fi
5685
5686
5687 ac_ext=f
5688 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5689 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5691 if test -n "$ac_tool_prefix"; then
5692   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5693   do
5694     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5696 echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698 if test "${ac_cv_prog_F77+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   if test -n "$F77"; then
5702   ac_cv_prog_F77="$F77" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709   for ac_exec_ext in '' $ac_executable_extensions; do
5710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713     break 2
5714   fi
5715 done
5716 done
5717
5718 fi
5719 fi
5720 F77=$ac_cv_prog_F77
5721 if test -n "$F77"; then
5722   echo "$as_me:$LINENO: result: $F77" >&5
5723 echo "${ECHO_T}$F77" >&6
5724 else
5725   echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6
5727 fi
5728
5729     test -n "$F77" && break
5730   done
5731 fi
5732 if test -z "$F77"; then
5733   ac_ct_F77=$F77
5734   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5735 do
5736   # Extract the first word of "$ac_prog", so it can be a program name with args.
5737 set dummy $ac_prog; ac_word=$2
5738 echo "$as_me:$LINENO: checking for $ac_word" >&5
5739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5740 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743   if test -n "$ac_ct_F77"; then
5744   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5745 else
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749   IFS=$as_save_IFS
5750   test -z "$as_dir" && as_dir=.
5751   for ac_exec_ext in '' $ac_executable_extensions; do
5752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753     ac_cv_prog_ac_ct_F77="$ac_prog"
5754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755     break 2
5756   fi
5757 done
5758 done
5759
5760 fi
5761 fi
5762 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5763 if test -n "$ac_ct_F77"; then
5764   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5765 echo "${ECHO_T}$ac_ct_F77" >&6
5766 else
5767   echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6
5769 fi
5770
5771   test -n "$ac_ct_F77" && break
5772 done
5773
5774   F77=$ac_ct_F77
5775 fi
5776
5777
5778 # Provide some information about the compiler.
5779 echo "$as_me:5779:" \
5780      "checking for Fortran 77 compiler version" >&5
5781 ac_compiler=`set X $ac_compile; echo $2`
5782 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5783   (eval $ac_compiler --version </dev/null >&5) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); }
5787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5788   (eval $ac_compiler -v </dev/null >&5) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }
5792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5793   (eval $ac_compiler -V </dev/null >&5) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }
5797 rm -f a.out
5798
5799 # If we don't use `.F' as extension, the preprocessor is not run on the
5800 # input file.  (Note that this only needs to work for GNU compilers.)
5801 ac_save_ext=$ac_ext
5802 ac_ext=F
5803 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5804 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5805 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   cat >conftest.$ac_ext <<_ACEOF
5809       program main
5810 #ifndef __GNUC__
5811        choke me
5812 #endif
5813
5814       end
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818   (eval $ac_compile) 2>conftest.er1
5819   ac_status=$?
5820   grep -v '^ *+' conftest.er1 >conftest.err
5821   rm -f conftest.er1
5822   cat conftest.err >&5
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); } &&
5825          { ac_try='test -z "$ac_f77_werror_flag"
5826                          || test ! -s conftest.err'
5827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828   (eval $ac_try) 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; } &&
5832          { ac_try='test -s conftest.$ac_objext'
5833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834   (eval $ac_try) 2>&5
5835   ac_status=$?
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); }; }; then
5838   ac_compiler_gnu=yes
5839 else
5840   echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_compiler_gnu=no
5844 fi
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5847
5848 fi
5849 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5850 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5851 ac_ext=$ac_save_ext
5852 ac_test_FFLAGS=${FFLAGS+set}
5853 ac_save_FFLAGS=$FFLAGS
5854 FFLAGS=
5855 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5856 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5857 if test "${ac_cv_prog_f77_g+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   FFLAGS=-g
5861 cat >conftest.$ac_ext <<_ACEOF
5862       program main
5863
5864       end
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868   (eval $ac_compile) 2>conftest.er1
5869   ac_status=$?
5870   grep -v '^ *+' conftest.er1 >conftest.err
5871   rm -f conftest.er1
5872   cat conftest.err >&5
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } &&
5875          { ac_try='test -z "$ac_f77_werror_flag"
5876                          || test ! -s conftest.err'
5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878   (eval $ac_try) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; } &&
5882          { ac_try='test -s conftest.$ac_objext'
5883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; }; then
5888   ac_cv_prog_f77_g=yes
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 ac_cv_prog_f77_g=no
5894 fi
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896
5897 fi
5898 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5899 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5900 if test "$ac_test_FFLAGS" = set; then
5901   FFLAGS=$ac_save_FFLAGS
5902 elif test $ac_cv_prog_f77_g = yes; then
5903   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5904     FFLAGS="-g -O2"
5905   else
5906     FFLAGS="-g"
5907   fi
5908 else
5909   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5910     FFLAGS="-O2"
5911   else
5912     FFLAGS=
5913   fi
5914 fi
5915
5916 G77=`test $ac_compiler_gnu = yes && echo yes`
5917 ac_ext=c
5918 ac_cpp='$CPP $CPPFLAGS'
5919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5922
5923
5924
5925 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5926
5927 # find the maximum length of command line arguments
5928 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5929 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5930 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933     i=0
5934   teststring="ABCD"
5935
5936   case $build_os in
5937   msdosdjgpp*)
5938     # On DJGPP, this test can blow up pretty badly due to problems in libc
5939     # (any single argument exceeding 2000 bytes causes a buffer overrun
5940     # during glob expansion).  Even if it were fixed, the result of this
5941     # check would be larger than it should be.
5942     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5943     ;;
5944
5945   gnu*)
5946     # Under GNU Hurd, this test is not required because there is
5947     # no limit to the length of command line arguments.
5948     # Libtool will interpret -1 as no limit whatsoever
5949     lt_cv_sys_max_cmd_len=-1;
5950     ;;
5951
5952   cygwin* | mingw*)
5953     # On Win9x/ME, this test blows up -- it succeeds, but takes
5954     # about 5 minutes as the teststring grows exponentially.
5955     # Worse, since 9x/ME are not pre-emptively multitasking,
5956     # you end up with a "frozen" computer, even though with patience
5957     # the test eventually succeeds (with a max line length of 256k).
5958     # Instead, let's just punt: use the minimum linelength reported by
5959     # all of the supported platforms: 8192 (on NT/2K/XP).
5960     lt_cv_sys_max_cmd_len=8192;
5961     ;;
5962
5963   amigaos*)
5964     # On AmigaOS with pdksh, this test takes hours, literally.
5965     # So we just punt and use a minimum line length of 8192.
5966     lt_cv_sys_max_cmd_len=8192;
5967     ;;
5968
5969   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5970     # This has been around since 386BSD, at least.  Likely further.
5971     if test -x /sbin/sysctl; then
5972       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5973     elif test -x /usr/sbin/sysctl; then
5974       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5975     else
5976       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5977     fi
5978     # And add a safety zone
5979     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5980     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5981     ;;
5982   osf*)
5983     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5984     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5985     # nice to cause kernel panics so lets avoid the loop below.
5986     # First set a reasonable default.
5987     lt_cv_sys_max_cmd_len=16384
5988     #
5989     if test -x /sbin/sysconfig; then
5990       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5991         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5992       esac
5993     fi
5994     ;;
5995   *)
5996     # If test is not a shell built-in, we'll probably end up computing a
5997     # maximum length that is only half of the actual maximum length, but
5998     # we can't tell.
5999     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6000     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6001                = "XX$teststring") >/dev/null 2>&1 &&
6002             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6003             lt_cv_sys_max_cmd_len=$new_result &&
6004             test $i != 17 # 1/2 MB should be enough
6005     do
6006       i=`expr $i + 1`
6007       teststring=$teststring$teststring
6008     done
6009     teststring=
6010     # Add a significant safety factor because C++ compilers can tack on massive
6011     # amounts of additional arguments before passing them to the linker.
6012     # It appears as though 1/2 is a usable value.
6013     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6014     ;;
6015   esac
6016
6017 fi
6018
6019 if test -n $lt_cv_sys_max_cmd_len ; then
6020   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6021 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6022 else
6023   echo "$as_me:$LINENO: result: none" >&5
6024 echo "${ECHO_T}none" >&6
6025 fi
6026
6027
6028
6029
6030 # Check for command to grab the raw symbol name followed by C symbol from nm.
6031 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6032 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6033 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036
6037 # These are sane defaults that work on at least a few old systems.
6038 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6039
6040 # Character class describing NM global symbol codes.
6041 symcode='[BCDEGRST]'
6042
6043 # Regexp to match symbols that can be accessed directly from C.
6044 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6045
6046 # Transform an extracted symbol line into a proper C declaration
6047 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6048
6049 # Transform an extracted symbol line into symbol name and symbol address
6050 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'"
6051
6052 # Define system-specific variables.
6053 case $host_os in
6054 aix*)
6055   symcode='[BCDT]'
6056   ;;
6057 cygwin* | mingw* | pw32*)
6058   symcode='[ABCDGISTW]'
6059   ;;
6060 hpux*) # Its linker distinguishes data from code symbols
6061   if test "$host_cpu" = ia64; then
6062     symcode='[ABCDEGRST]'
6063   fi
6064   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6065   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'"
6066   ;;
6067 linux*)
6068   if test "$host_cpu" = ia64; then
6069     symcode='[ABCDGIRSTW]'
6070     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6071     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'"
6072   fi
6073   ;;
6074 irix* | nonstopux*)
6075   symcode='[BCDEGRST]'
6076   ;;
6077 osf*)
6078   symcode='[BCDEGQRST]'
6079   ;;
6080 solaris* | sysv5*)
6081   symcode='[BDRT]'
6082   ;;
6083 sysv4)
6084   symcode='[DFNSTU]'
6085   ;;
6086 esac
6087
6088 # Handle CRLF in mingw tool chain
6089 opt_cr=
6090 case $build_os in
6091 mingw*)
6092   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6093   ;;
6094 esac
6095
6096 # If we're using GNU nm, then use its standard symbol codes.
6097 case `$NM -V 2>&1` in
6098 *GNU* | *'with BFD'*)
6099   symcode='[ABCDGIRSTW]' ;;
6100 esac
6101
6102 # Try without a prefix undercore, then with it.
6103 for ac_symprfx in "" "_"; do
6104
6105   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6106   symxfrm="\\1 $ac_symprfx\\2 \\2"
6107
6108   # Write the raw and C identifiers.
6109   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6110
6111   # Check to see that the pipe works correctly.
6112   pipe_works=no
6113
6114   rm -f conftest*
6115   cat > conftest.$ac_ext <<EOF
6116 #ifdef __cplusplus
6117 extern "C" {
6118 #endif
6119 char nm_test_var;
6120 void nm_test_func(){}
6121 #ifdef __cplusplus
6122 }
6123 #endif
6124 int main(){nm_test_var='a';nm_test_func();return(0);}
6125 EOF
6126
6127   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128   (eval $ac_compile) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; then
6132     # Now try to grab the symbols.
6133     nlist=conftest.nm
6134     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6135   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); } && test -s "$nlist"; then
6139       # Try sorting and uniquifying the output.
6140       if sort "$nlist" | uniq > "$nlist"T; then
6141         mv -f "$nlist"T "$nlist"
6142       else
6143         rm -f "$nlist"T
6144       fi
6145
6146       # Make sure that we snagged all the symbols we need.
6147       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6148         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6149           cat <<EOF > conftest.$ac_ext
6150 #ifdef __cplusplus
6151 extern "C" {
6152 #endif
6153
6154 EOF
6155           # Now generate the symbol file.
6156           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6157
6158           cat <<EOF >> conftest.$ac_ext
6159 #if defined (__STDC__) && __STDC__
6160 # define lt_ptr_t void *
6161 #else
6162 # define lt_ptr_t char *
6163 # define const
6164 #endif
6165
6166 /* The mapping between symbol names and symbols. */
6167 const struct {
6168   const char *name;
6169   lt_ptr_t address;
6170 }
6171 lt_preloaded_symbols[] =
6172 {
6173 EOF
6174           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6175           cat <<\EOF >> conftest.$ac_ext
6176   {0, (lt_ptr_t) 0}
6177 };
6178
6179 #ifdef __cplusplus
6180 }
6181 #endif
6182 EOF
6183           # Now try linking the two files.
6184           mv conftest.$ac_objext conftstm.$ac_objext
6185           lt_save_LIBS="$LIBS"
6186           lt_save_CFLAGS="$CFLAGS"
6187           LIBS="conftstm.$ac_objext"
6188           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6189           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6190   (eval $ac_link) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6194             pipe_works=yes
6195           fi
6196           LIBS="$lt_save_LIBS"
6197           CFLAGS="$lt_save_CFLAGS"
6198         else
6199           echo "cannot find nm_test_func in $nlist" >&5
6200         fi
6201       else
6202         echo "cannot find nm_test_var in $nlist" >&5
6203       fi
6204     else
6205       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6206     fi
6207   else
6208     echo "$progname: failed program was:" >&5
6209     cat conftest.$ac_ext >&5
6210   fi
6211   rm -f conftest* conftst*
6212
6213   # Do not use the global_symbol_pipe unless it works.
6214   if test "$pipe_works" = yes; then
6215     break
6216   else
6217     lt_cv_sys_global_symbol_pipe=
6218   fi
6219 done
6220
6221 fi
6222
6223 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6224   lt_cv_sys_global_symbol_to_cdecl=
6225 fi
6226 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6227   echo "$as_me:$LINENO: result: failed" >&5
6228 echo "${ECHO_T}failed" >&6
6229 else
6230   echo "$as_me:$LINENO: result: ok" >&5
6231 echo "${ECHO_T}ok" >&6
6232 fi
6233
6234 echo "$as_me:$LINENO: checking for objdir" >&5
6235 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6236 if test "${lt_cv_objdir+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   rm -f .libs 2>/dev/null
6240 mkdir .libs 2>/dev/null
6241 if test -d .libs; then
6242   lt_cv_objdir=.libs
6243 else
6244   # MS-DOS does not allow filenames that begin with a dot.
6245   lt_cv_objdir=_libs
6246 fi
6247 rmdir .libs 2>/dev/null
6248 fi
6249 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6250 echo "${ECHO_T}$lt_cv_objdir" >&6
6251 objdir=$lt_cv_objdir
6252
6253
6254
6255
6256
6257 case $host_os in
6258 aix3*)
6259   # AIX sometimes has problems with the GCC collect2 program.  For some
6260   # reason, if we set the COLLECT_NAMES environment variable, the problems
6261   # vanish in a puff of smoke.
6262   if test "X${COLLECT_NAMES+set}" != Xset; then
6263     COLLECT_NAMES=
6264     export COLLECT_NAMES
6265   fi
6266   ;;
6267 esac
6268
6269 # Sed substitution that helps us do robust quoting.  It backslashifies
6270 # metacharacters that are still active within double-quoted strings.
6271 Xsed='sed -e 1s/^X//'
6272 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6273
6274 # Same as above, but do not quote variable references.
6275 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6276
6277 # Sed substitution to delay expansion of an escaped shell variable in a
6278 # double_quote_subst'ed string.
6279 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6280
6281 # Sed substitution to avoid accidental globbing in evaled expressions
6282 no_glob_subst='s/\*/\\\*/g'
6283
6284 # Constants:
6285 rm="rm -f"
6286
6287 # Global variables:
6288 default_ofile=libtool
6289 can_build_shared=yes
6290
6291 # All known linkers require a `.a' archive for static linking (except MSVC,
6292 # which needs '.lib').
6293 libext=a
6294 ltmain="$ac_aux_dir/ltmain.sh"
6295 ofile="$default_ofile"
6296 with_gnu_ld="$lt_cv_prog_gnu_ld"
6297
6298 if test -n "$ac_tool_prefix"; then
6299   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}ar; ac_word=$2
6301 echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6303 if test "${ac_cv_prog_AR+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   if test -n "$AR"; then
6307   ac_cv_prog_AR="$AR" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314   for ac_exec_ext in '' $ac_executable_extensions; do
6315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316     ac_cv_prog_AR="${ac_tool_prefix}ar"
6317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318     break 2
6319   fi
6320 done
6321 done
6322
6323 fi
6324 fi
6325 AR=$ac_cv_prog_AR
6326 if test -n "$AR"; then
6327   echo "$as_me:$LINENO: result: $AR" >&5
6328 echo "${ECHO_T}$AR" >&6
6329 else
6330   echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6332 fi
6333
6334 fi
6335 if test -z "$ac_cv_prog_AR"; then
6336   ac_ct_AR=$AR
6337   # Extract the first word of "ar", so it can be a program name with args.
6338 set dummy ar; ac_word=$2
6339 echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6341 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   if test -n "$ac_ct_AR"; then
6345   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350   IFS=$as_save_IFS
6351   test -z "$as_dir" && as_dir=.
6352   for ac_exec_ext in '' $ac_executable_extensions; do
6353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354     ac_cv_prog_ac_ct_AR="ar"
6355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356     break 2
6357   fi
6358 done
6359 done
6360
6361   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6362 fi
6363 fi
6364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6365 if test -n "$ac_ct_AR"; then
6366   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6367 echo "${ECHO_T}$ac_ct_AR" >&6
6368 else
6369   echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6
6371 fi
6372
6373   AR=$ac_ct_AR
6374 else
6375   AR="$ac_cv_prog_AR"
6376 fi
6377
6378 if test -n "$ac_tool_prefix"; then
6379   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381 echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6383 if test "${ac_cv_prog_RANLIB+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   if test -n "$RANLIB"; then
6387   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394   for ac_exec_ext in '' $ac_executable_extensions; do
6395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401 done
6402
6403 fi
6404 fi
6405 RANLIB=$ac_cv_prog_RANLIB
6406 if test -n "$RANLIB"; then
6407   echo "$as_me:$LINENO: result: $RANLIB" >&5
6408 echo "${ECHO_T}$RANLIB" >&6
6409 else
6410   echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6
6412 fi
6413
6414 fi
6415 if test -z "$ac_cv_prog_RANLIB"; then
6416   ac_ct_RANLIB=$RANLIB
6417   # Extract the first word of "ranlib", so it can be a program name with args.
6418 set dummy ranlib; ac_word=$2
6419 echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6421 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6422   echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424   if test -n "$ac_ct_RANLIB"; then
6425   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432   for ac_exec_ext in '' $ac_executable_extensions; do
6433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434     ac_cv_prog_ac_ct_RANLIB="ranlib"
6435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439 done
6440
6441   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6442 fi
6443 fi
6444 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6445 if test -n "$ac_ct_RANLIB"; then
6446   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6447 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6448 else
6449   echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6
6451 fi
6452
6453   RANLIB=$ac_ct_RANLIB
6454 else
6455   RANLIB="$ac_cv_prog_RANLIB"
6456 fi
6457
6458 if test -n "$ac_tool_prefix"; then
6459   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}strip; ac_word=$2
6461 echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6463 if test "${ac_cv_prog_STRIP+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   if test -n "$STRIP"; then
6467   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472   IFS=$as_save_IFS
6473   test -z "$as_dir" && as_dir=.
6474   for ac_exec_ext in '' $ac_executable_extensions; do
6475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478     break 2
6479   fi
6480 done
6481 done
6482
6483 fi
6484 fi
6485 STRIP=$ac_cv_prog_STRIP
6486 if test -n "$STRIP"; then
6487   echo "$as_me:$LINENO: result: $STRIP" >&5
6488 echo "${ECHO_T}$STRIP" >&6
6489 else
6490   echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6
6492 fi
6493
6494 fi
6495 if test -z "$ac_cv_prog_STRIP"; then
6496   ac_ct_STRIP=$STRIP
6497   # Extract the first word of "strip", so it can be a program name with args.
6498 set dummy strip; ac_word=$2
6499 echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6501 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   if test -n "$ac_ct_STRIP"; then
6505   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510   IFS=$as_save_IFS
6511   test -z "$as_dir" && as_dir=.
6512   for ac_exec_ext in '' $ac_executable_extensions; do
6513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514     ac_cv_prog_ac_ct_STRIP="strip"
6515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519 done
6520
6521   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6522 fi
6523 fi
6524 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6525 if test -n "$ac_ct_STRIP"; then
6526   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6527 echo "${ECHO_T}$ac_ct_STRIP" >&6
6528 else
6529   echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6
6531 fi
6532
6533   STRIP=$ac_ct_STRIP
6534 else
6535   STRIP="$ac_cv_prog_STRIP"
6536 fi
6537
6538
6539 old_CC="$CC"
6540 old_CFLAGS="$CFLAGS"
6541
6542 # Set sane defaults for various variables
6543 test -z "$AR" && AR=ar
6544 test -z "$AR_FLAGS" && AR_FLAGS=cru
6545 test -z "$AS" && AS=as
6546 test -z "$CC" && CC=cc
6547 test -z "$LTCC" && LTCC=$CC
6548 test -z "$DLLTOOL" && DLLTOOL=dlltool
6549 test -z "$LD" && LD=ld
6550 test -z "$LN_S" && LN_S="ln -s"
6551 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6552 test -z "$NM" && NM=nm
6553 test -z "$SED" && SED=sed
6554 test -z "$OBJDUMP" && OBJDUMP=objdump
6555 test -z "$RANLIB" && RANLIB=:
6556 test -z "$STRIP" && STRIP=:
6557 test -z "$ac_objext" && ac_objext=o
6558
6559 # Determine commands to create old-style static archives.
6560 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6561 old_postinstall_cmds='chmod 644 $oldlib'
6562 old_postuninstall_cmds=
6563
6564 if test -n "$RANLIB"; then
6565   case $host_os in
6566   openbsd*)
6567     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6568     ;;
6569   *)
6570     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6571     ;;
6572   esac
6573   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6574 fi
6575
6576 for cc_temp in $compiler""; do
6577   case $cc_temp in
6578     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6579     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6580     \-*) ;;
6581     *) break;;
6582   esac
6583 done
6584 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6585
6586
6587 # Only perform the check for file, if the check method requires it
6588 case $deplibs_check_method in
6589 file_magic*)
6590   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6591     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6592 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   case $MAGIC_CMD in
6597 [\\/*] |  ?:[\\/]*)
6598   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6599   ;;
6600 *)
6601   lt_save_MAGIC_CMD="$MAGIC_CMD"
6602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6603   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6604   for ac_dir in $ac_dummy; do
6605     IFS="$lt_save_ifs"
6606     test -z "$ac_dir" && ac_dir=.
6607     if test -f $ac_dir/${ac_tool_prefix}file; then
6608       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6609       if test -n "$file_magic_test_file"; then
6610         case $deplibs_check_method in
6611         "file_magic "*)
6612           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6613           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6614           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6615             $EGREP "$file_magic_regex" > /dev/null; then
6616             :
6617           else
6618             cat <<EOF 1>&2
6619
6620 *** Warning: the command libtool uses to detect shared libraries,
6621 *** $file_magic_cmd, produces output that libtool cannot recognize.
6622 *** The result is that libtool may fail to recognize shared libraries
6623 *** as such.  This will affect the creation of libtool libraries that
6624 *** depend on shared libraries, but programs linked with such libtool
6625 *** libraries will work regardless of this problem.  Nevertheless, you
6626 *** may want to report the problem to your system manager and/or to
6627 *** bug-libtool@gnu.org
6628
6629 EOF
6630           fi ;;
6631         esac
6632       fi
6633       break
6634     fi
6635   done
6636   IFS="$lt_save_ifs"
6637   MAGIC_CMD="$lt_save_MAGIC_CMD"
6638   ;;
6639 esac
6640 fi
6641
6642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6643 if test -n "$MAGIC_CMD"; then
6644   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6645 echo "${ECHO_T}$MAGIC_CMD" >&6
6646 else
6647   echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6
6649 fi
6650
6651 if test -z "$lt_cv_path_MAGIC_CMD"; then
6652   if test -n "$ac_tool_prefix"; then
6653     echo "$as_me:$LINENO: checking for file" >&5
6654 echo $ECHO_N "checking for file... $ECHO_C" >&6
6655 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658   case $MAGIC_CMD in
6659 [\\/*] |  ?:[\\/]*)
6660   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6661   ;;
6662 *)
6663   lt_save_MAGIC_CMD="$MAGIC_CMD"
6664   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6665   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6666   for ac_dir in $ac_dummy; do
6667     IFS="$lt_save_ifs"
6668     test -z "$ac_dir" && ac_dir=.
6669     if test -f $ac_dir/file; then
6670       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6671       if test -n "$file_magic_test_file"; then
6672         case $deplibs_check_method in
6673         "file_magic "*)
6674           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6675           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6676           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6677             $EGREP "$file_magic_regex" > /dev/null; then
6678             :
6679           else
6680             cat <<EOF 1>&2
6681
6682 *** Warning: the command libtool uses to detect shared libraries,
6683 *** $file_magic_cmd, produces output that libtool cannot recognize.
6684 *** The result is that libtool may fail to recognize shared libraries
6685 *** as such.  This will affect the creation of libtool libraries that
6686 *** depend on shared libraries, but programs linked with such libtool
6687 *** libraries will work regardless of this problem.  Nevertheless, you
6688 *** may want to report the problem to your system manager and/or to
6689 *** bug-libtool@gnu.org
6690
6691 EOF
6692           fi ;;
6693         esac
6694       fi
6695       break
6696     fi
6697   done
6698   IFS="$lt_save_ifs"
6699   MAGIC_CMD="$lt_save_MAGIC_CMD"
6700   ;;
6701 esac
6702 fi
6703
6704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6705 if test -n "$MAGIC_CMD"; then
6706   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6707 echo "${ECHO_T}$MAGIC_CMD" >&6
6708 else
6709   echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6
6711 fi
6712
6713   else
6714     MAGIC_CMD=:
6715   fi
6716 fi
6717
6718   fi
6719   ;;
6720 esac
6721
6722 enable_dlopen=no
6723 enable_win32_dll=no
6724
6725 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6726 if test "${enable_libtool_lock+set}" = set; then
6727   enableval="$enable_libtool_lock"
6728
6729 fi;
6730 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6731
6732
6733 # Check whether --with-pic or --without-pic was given.
6734 if test "${with_pic+set}" = set; then
6735   withval="$with_pic"
6736   pic_mode="$withval"
6737 else
6738   pic_mode=default
6739 fi;
6740 test -z "$pic_mode" && pic_mode=default
6741
6742 # Use C for the default configuration in the libtool script
6743 tagname=
6744 lt_save_CC="$CC"
6745 ac_ext=c
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751
6752 # Source file extension for C test sources.
6753 ac_ext=c
6754
6755 # Object file extension for compiled C test sources.
6756 objext=o
6757 objext=$objext
6758
6759 # Code to be used in simple compile tests
6760 lt_simple_compile_test_code="int some_variable = 0;\n"
6761
6762 # Code to be used in simple link tests
6763 lt_simple_link_test_code='int main(){return(0);}\n'
6764
6765
6766 # If no C compiler was specified, use CC.
6767 LTCC=${LTCC-"$CC"}
6768
6769 # Allow CC to be a program name with arguments.
6770 compiler=$CC
6771
6772
6773 # save warnings/boilerplate of simple test code
6774 ac_outfile=conftest.$ac_objext
6775 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6776 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6777 _lt_compiler_boilerplate=`cat conftest.err`
6778 $rm conftest*
6779
6780 ac_outfile=conftest.$ac_objext
6781 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6782 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6783 _lt_linker_boilerplate=`cat conftest.err`
6784 $rm conftest*
6785
6786
6787 #
6788 # Check for any special shared library compilation flags.
6789 #
6790 lt_prog_cc_shlib=
6791 if test "$GCC" = no; then
6792   case $host_os in
6793   sco3.2v5*)
6794     lt_prog_cc_shlib='-belf'
6795     ;;
6796   esac
6797 fi
6798 if test -n "$lt_prog_cc_shlib"; then
6799   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6800 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6801   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6802   else
6803     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6804 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6805     lt_cv_prog_cc_can_build_shared=no
6806   fi
6807 fi
6808
6809
6810 #
6811 # Check to make sure the static flag actually works.
6812 #
6813 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6814 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6815 if test "${lt_prog_compiler_static_works+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   lt_prog_compiler_static_works=no
6819    save_LDFLAGS="$LDFLAGS"
6820    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6821    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6822    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6823      # The linker can only warn and ignore the option if not recognized
6824      # So say no if there are warnings
6825      if test -s conftest.err; then
6826        # Append any errors to the config.log.
6827        cat conftest.err 1>&5
6828        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6829        $SED '/^$/d' conftest.err >conftest.er2
6830        if diff conftest.exp conftest.er2 >/dev/null; then
6831          lt_prog_compiler_static_works=yes
6832        fi
6833      else
6834        lt_prog_compiler_static_works=yes
6835      fi
6836    fi
6837    $rm conftest*
6838    LDFLAGS="$save_LDFLAGS"
6839
6840 fi
6841 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6842 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6843
6844 if test x"$lt_prog_compiler_static_works" = xyes; then
6845     :
6846 else
6847     lt_prog_compiler_static=
6848 fi
6849
6850
6851
6852
6853 lt_prog_compiler_no_builtin_flag=
6854
6855 if test "$GCC" = yes; then
6856   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6857
6858
6859 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6860 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6861 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   lt_cv_prog_compiler_rtti_exceptions=no
6865   ac_outfile=conftest.$ac_objext
6866    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6867    lt_compiler_flag="-fno-rtti -fno-exceptions"
6868    # Insert the option either (1) after the last *FLAGS variable, or
6869    # (2) before a word containing "conftest.", or (3) at the end.
6870    # Note that $ac_compile itself does not contain backslashes and begins
6871    # with a dollar sign (not a hyphen), so the echo should work correctly.
6872    # The option is referenced via a variable to avoid confusing sed.
6873    lt_compile=`echo "$ac_compile" | $SED \
6874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6876    -e 's:$: $lt_compiler_flag:'`
6877    (eval echo "\"\$as_me:6877: $lt_compile\"" >&5)
6878    (eval "$lt_compile" 2>conftest.err)
6879    ac_status=$?
6880    cat conftest.err >&5
6881    echo "$as_me:6881: \$? = $ac_status" >&5
6882    if (exit $ac_status) && test -s "$ac_outfile"; then
6883      # The compiler can only warn and ignore the option if not recognized
6884      # So say no if there are warnings other than the usual output.
6885      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6886      $SED '/^$/d' conftest.err >conftest.er2
6887      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6888        lt_cv_prog_compiler_rtti_exceptions=yes
6889      fi
6890    fi
6891    $rm conftest*
6892
6893 fi
6894 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6895 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6896
6897 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6898     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6899 else
6900     :
6901 fi
6902
6903 fi
6904
6905 lt_prog_compiler_wl=
6906 lt_prog_compiler_pic=
6907 lt_prog_compiler_static=
6908
6909 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6910 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6911
6912   if test "$GCC" = yes; then
6913     lt_prog_compiler_wl='-Wl,'
6914     lt_prog_compiler_static='-static'
6915
6916     case $host_os in
6917       aix*)
6918       # All AIX code is PIC.
6919       if test "$host_cpu" = ia64; then
6920         # AIX 5 now supports IA64 processor
6921         lt_prog_compiler_static='-Bstatic'
6922       fi
6923       ;;
6924
6925     amigaos*)
6926       # FIXME: we need at least 68020 code to build shared libraries, but
6927       # adding the `-m68020' flag to GCC prevents building anything better,
6928       # like `-m68040'.
6929       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6930       ;;
6931
6932     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6933       # PIC is the default for these OSes.
6934       ;;
6935
6936     mingw* | pw32* | os2*)
6937       # This hack is so that the source file can tell whether it is being
6938       # built for inclusion in a dll (and should export symbols for example).
6939       lt_prog_compiler_pic='-DDLL_EXPORT'
6940       ;;
6941
6942     darwin* | rhapsody*)
6943       # PIC is the default on this platform
6944       # Common symbols not allowed in MH_DYLIB files
6945       lt_prog_compiler_pic='-fno-common'
6946       ;;
6947
6948     msdosdjgpp*)
6949       # Just because we use GCC doesn't mean we suddenly get shared libraries
6950       # on systems that don't support them.
6951       lt_prog_compiler_can_build_shared=no
6952       enable_shared=no
6953       ;;
6954
6955     sysv4*MP*)
6956       if test -d /usr/nec; then
6957         lt_prog_compiler_pic=-Kconform_pic
6958       fi
6959       ;;
6960
6961     hpux*)
6962       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6963       # not for PA HP-UX.
6964       case $host_cpu in
6965       hppa*64*|ia64*)
6966         # +Z the default
6967         ;;
6968       *)
6969         lt_prog_compiler_pic='-fPIC'
6970         ;;
6971       esac
6972       ;;
6973
6974     *)
6975       lt_prog_compiler_pic='-fPIC'
6976       ;;
6977     esac
6978   else
6979     # PORTME Check for flag to pass linker flags through the system compiler.
6980     case $host_os in
6981     aix*)
6982       lt_prog_compiler_wl='-Wl,'
6983       if test "$host_cpu" = ia64; then
6984         # AIX 5 now supports IA64 processor
6985         lt_prog_compiler_static='-Bstatic'
6986       else
6987         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6988       fi
6989       ;;
6990       darwin*)
6991         # PIC is the default on this platform
6992         # Common symbols not allowed in MH_DYLIB files
6993        case $cc_basename in
6994          xlc*)
6995          lt_prog_compiler_pic='-qnocommon'
6996          lt_prog_compiler_wl='-Wl,'
6997          ;;
6998        esac
6999        ;;
7000
7001     mingw* | pw32* | os2*)
7002       # This hack is so that the source file can tell whether it is being
7003       # built for inclusion in a dll (and should export symbols for example).
7004       lt_prog_compiler_pic='-DDLL_EXPORT'
7005       ;;
7006
7007     hpux9* | hpux10* | hpux11*)
7008       lt_prog_compiler_wl='-Wl,'
7009       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7010       # not for PA HP-UX.
7011       case $host_cpu in
7012       hppa*64*|ia64*)
7013         # +Z the default
7014         ;;
7015       *)
7016         lt_prog_compiler_pic='+Z'
7017         ;;
7018       esac
7019       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7020       lt_prog_compiler_static='${wl}-a ${wl}archive'
7021       ;;
7022
7023     irix5* | irix6* | nonstopux*)
7024       lt_prog_compiler_wl='-Wl,'
7025       # PIC (with -KPIC) is the default.
7026       lt_prog_compiler_static='-non_shared'
7027       ;;
7028
7029     newsos6)
7030       lt_prog_compiler_pic='-KPIC'
7031       lt_prog_compiler_static='-Bstatic'
7032       ;;
7033
7034     linux*)
7035       case $cc_basename in
7036       icc* | ecc*)
7037         lt_prog_compiler_wl='-Wl,'
7038         lt_prog_compiler_pic='-KPIC'
7039         lt_prog_compiler_static='-static'
7040         ;;
7041       pgcc* | pgf77* | pgf90* | pgf95*)
7042         # Portland Group compilers (*not* the Pentium gcc compiler,
7043         # which looks to be a dead project)
7044         lt_prog_compiler_wl='-Wl,'
7045         lt_prog_compiler_pic='-fpic'
7046         lt_prog_compiler_static='-Bstatic'
7047         ;;
7048       ccc*)
7049         lt_prog_compiler_wl='-Wl,'
7050         # All Alpha code is PIC.
7051         lt_prog_compiler_static='-non_shared'
7052         ;;
7053       esac
7054       ;;
7055
7056     osf3* | osf4* | osf5*)
7057       lt_prog_compiler_wl='-Wl,'
7058       # All OSF/1 code is PIC.
7059       lt_prog_compiler_static='-non_shared'
7060       ;;
7061
7062     sco3.2v5*)
7063       lt_prog_compiler_pic='-Kpic'
7064       lt_prog_compiler_static='-dn'
7065       ;;
7066
7067     solaris*)
7068       lt_prog_compiler_pic='-KPIC'
7069       lt_prog_compiler_static='-Bstatic'
7070       case $cc_basename in
7071       f77* | f90* | f95*)
7072         lt_prog_compiler_wl='-Qoption ld ';;
7073       *)
7074         lt_prog_compiler_wl='-Wl,';;
7075       esac
7076       ;;
7077
7078     sunos4*)
7079       lt_prog_compiler_wl='-Qoption ld '
7080       lt_prog_compiler_pic='-PIC'
7081       lt_prog_compiler_static='-Bstatic'
7082       ;;
7083
7084     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7085       lt_prog_compiler_wl='-Wl,'
7086       lt_prog_compiler_pic='-KPIC'
7087       lt_prog_compiler_static='-Bstatic'
7088       ;;
7089
7090     sysv4*MP*)
7091       if test -d /usr/nec ;then
7092         lt_prog_compiler_pic='-Kconform_pic'
7093         lt_prog_compiler_static='-Bstatic'
7094       fi
7095       ;;
7096
7097     unicos*)
7098       lt_prog_compiler_wl='-Wl,'
7099       lt_prog_compiler_can_build_shared=no
7100       ;;
7101
7102     uts4*)
7103       lt_prog_compiler_pic='-pic'
7104       lt_prog_compiler_static='-Bstatic'
7105       ;;
7106
7107     *)
7108       lt_prog_compiler_can_build_shared=no
7109       ;;
7110     esac
7111   fi
7112
7113 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7114 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7115
7116 #
7117 # Check to make sure the PIC flag actually works.
7118 #
7119 if test -n "$lt_prog_compiler_pic"; then
7120
7121 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7122 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7123 if test "${lt_prog_compiler_pic_works+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   lt_prog_compiler_pic_works=no
7127   ac_outfile=conftest.$ac_objext
7128    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7129    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7130    # Insert the option either (1) after the last *FLAGS variable, or
7131    # (2) before a word containing "conftest.", or (3) at the end.
7132    # Note that $ac_compile itself does not contain backslashes and begins
7133    # with a dollar sign (not a hyphen), so the echo should work correctly.
7134    # The option is referenced via a variable to avoid confusing sed.
7135    lt_compile=`echo "$ac_compile" | $SED \
7136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138    -e 's:$: $lt_compiler_flag:'`
7139    (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
7140    (eval "$lt_compile" 2>conftest.err)
7141    ac_status=$?
7142    cat conftest.err >&5
7143    echo "$as_me:7143: \$? = $ac_status" >&5
7144    if (exit $ac_status) && test -s "$ac_outfile"; then
7145      # The compiler can only warn and ignore the option if not recognized
7146      # So say no if there are warnings other than the usual output.
7147      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7148      $SED '/^$/d' conftest.err >conftest.er2
7149      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7150        lt_prog_compiler_pic_works=yes
7151      fi
7152    fi
7153    $rm conftest*
7154
7155 fi
7156 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7157 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7158
7159 if test x"$lt_prog_compiler_pic_works" = xyes; then
7160     case $lt_prog_compiler_pic in
7161      "" | " "*) ;;
7162      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7163      esac
7164 else
7165     lt_prog_compiler_pic=
7166      lt_prog_compiler_can_build_shared=no
7167 fi
7168
7169 fi
7170 case $host_os in
7171   # For platforms which do not support PIC, -DPIC is meaningless:
7172   *djgpp*)
7173     lt_prog_compiler_pic=
7174     ;;
7175   *)
7176     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7177     ;;
7178 esac
7179
7180 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7181 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7182 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   lt_cv_prog_compiler_c_o=no
7186    $rm -r conftest 2>/dev/null
7187    mkdir conftest
7188    cd conftest
7189    mkdir out
7190    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7191
7192    lt_compiler_flag="-o out/conftest2.$ac_objext"
7193    # Insert the option either (1) after the last *FLAGS variable, or
7194    # (2) before a word containing "conftest.", or (3) at the end.
7195    # Note that $ac_compile itself does not contain backslashes and begins
7196    # with a dollar sign (not a hyphen), so the echo should work correctly.
7197    lt_compile=`echo "$ac_compile" | $SED \
7198    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7199    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7200    -e 's:$: $lt_compiler_flag:'`
7201    (eval echo "\"\$as_me:7201: $lt_compile\"" >&5)
7202    (eval "$lt_compile" 2>out/conftest.err)
7203    ac_status=$?
7204    cat out/conftest.err >&5
7205    echo "$as_me:7205: \$? = $ac_status" >&5
7206    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7207    then
7208      # The compiler can only warn and ignore the option if not recognized
7209      # So say no if there are warnings
7210      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7211      $SED '/^$/d' out/conftest.err >out/conftest.er2
7212      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7213        lt_cv_prog_compiler_c_o=yes
7214      fi
7215    fi
7216    chmod u+w . 2>&5
7217    $rm conftest*
7218    # SGI C++ compiler will create directory out/ii_files/ for
7219    # template instantiation
7220    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7221    $rm out/* && rmdir out
7222    cd ..
7223    rmdir conftest
7224    $rm conftest*
7225
7226 fi
7227 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7228 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7229
7230
7231 hard_links="nottested"
7232 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7233   # do not overwrite the value of need_locks provided by the user
7234   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7235 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7236   hard_links=yes
7237   $rm conftest*
7238   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7239   touch conftest.a
7240   ln conftest.a conftest.b 2>&5 || hard_links=no
7241   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7242   echo "$as_me:$LINENO: result: $hard_links" >&5
7243 echo "${ECHO_T}$hard_links" >&6
7244   if test "$hard_links" = no; then
7245     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7246 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7247     need_locks=warn
7248   fi
7249 else
7250   need_locks=no
7251 fi
7252
7253 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7254 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7255
7256   runpath_var=
7257   allow_undefined_flag=
7258   enable_shared_with_static_runtimes=no
7259   archive_cmds=
7260   archive_expsym_cmds=
7261   old_archive_From_new_cmds=
7262   old_archive_from_expsyms_cmds=
7263   export_dynamic_flag_spec=
7264   whole_archive_flag_spec=
7265   thread_safe_flag_spec=
7266   hardcode_libdir_flag_spec=
7267   hardcode_libdir_flag_spec_ld=
7268   hardcode_libdir_separator=
7269   hardcode_direct=no
7270   hardcode_minus_L=no
7271   hardcode_shlibpath_var=unsupported
7272   link_all_deplibs=unknown
7273   hardcode_automatic=no
7274   module_cmds=
7275   module_expsym_cmds=
7276   always_export_symbols=no
7277   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7278   # include_expsyms should be a list of space-separated symbols to be *always*
7279   # included in the symbol list
7280   include_expsyms=
7281   # exclude_expsyms can be an extended regexp of symbols to exclude
7282   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7283   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7284   # as well as any symbol that contains `d'.
7285   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7286   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7287   # platforms (ab)use it in PIC code, but their linkers get confused if
7288   # the symbol is explicitly referenced.  Since portable code cannot
7289   # rely on this symbol name, it's probably fine to never include it in
7290   # preloaded symbol tables.
7291   extract_expsyms_cmds=
7292   # Just being paranoid about ensuring that cc_basename is set.
7293   for cc_temp in $compiler""; do
7294   case $cc_temp in
7295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7297     \-*) ;;
7298     *) break;;
7299   esac
7300 done
7301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7302
7303   case $host_os in
7304   cygwin* | mingw* | pw32*)
7305     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7306     # When not using gcc, we currently assume that we are using
7307     # Microsoft Visual C++.
7308     if test "$GCC" != yes; then
7309       with_gnu_ld=no
7310     fi
7311     ;;
7312   openbsd*)
7313     with_gnu_ld=no
7314     ;;
7315   esac
7316
7317   ld_shlibs=yes
7318   if test "$with_gnu_ld" = yes; then
7319     # If archive_cmds runs LD, not CC, wlarc should be empty
7320     wlarc='${wl}'
7321
7322     # Set some defaults for GNU ld with shared library support. These
7323     # are reset later if shared libraries are not supported. Putting them
7324     # here allows them to be overridden if necessary.
7325     runpath_var=LD_RUN_PATH
7326     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7327     export_dynamic_flag_spec='${wl}--export-dynamic'
7328     # ancient GNU ld didn't support --whole-archive et. al.
7329     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7330         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7331       else
7332         whole_archive_flag_spec=
7333     fi
7334     supports_anon_versioning=no
7335     case `$LD -v 2>/dev/null` in
7336       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7337       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7338       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7339       *\ 2.11.*) ;; # other 2.11 versions
7340       *) supports_anon_versioning=yes ;;
7341     esac
7342
7343     # See if GNU ld supports shared libraries.
7344     case $host_os in
7345     aix3* | aix4* | aix5*)
7346       # On AIX/PPC, the GNU linker is very broken
7347       if test "$host_cpu" != ia64; then
7348         ld_shlibs=no
7349         cat <<EOF 1>&2
7350
7351 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7352 *** to be unable to reliably create shared libraries on AIX.
7353 *** Therefore, libtool is disabling shared libraries support.  If you
7354 *** really care for shared libraries, you may want to modify your PATH
7355 *** so that a non-GNU linker is found, and then restart.
7356
7357 EOF
7358       fi
7359       ;;
7360
7361     amigaos*)
7362       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)'
7363       hardcode_libdir_flag_spec='-L$libdir'
7364       hardcode_minus_L=yes
7365
7366       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7367       # that the semantics of dynamic libraries on AmigaOS, at least up
7368       # to version 4, is to share data among multiple programs linked
7369       # with the same dynamic library.  Since this doesn't match the
7370       # behavior of shared libraries on other platforms, we can't use
7371       # them.
7372       ld_shlibs=no
7373       ;;
7374
7375     beos*)
7376       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7377         allow_undefined_flag=unsupported
7378         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7379         # support --undefined.  This deserves some investigation.  FIXME
7380         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7381       else
7382         ld_shlibs=no
7383       fi
7384       ;;
7385
7386     cygwin* | mingw* | pw32*)
7387       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7388       # as there is no search path for DLLs.
7389       hardcode_libdir_flag_spec='-L$libdir'
7390       allow_undefined_flag=unsupported
7391       always_export_symbols=no
7392       enable_shared_with_static_runtimes=yes
7393       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7394
7395       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7396         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7397         # If the export-symbols file already is a .def file (1st line
7398         # is EXPORTS), use it as is; otherwise, prepend...
7399         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7400           cp $export_symbols $output_objdir/$soname.def;
7401         else
7402           echo EXPORTS > $output_objdir/$soname.def;
7403           cat $export_symbols >> $output_objdir/$soname.def;
7404         fi~
7405         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7406       else
7407         ld_shlibs=no
7408       fi
7409       ;;
7410
7411     linux*)
7412       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7413         tmp_addflag=
7414         case $cc_basename,$host_cpu in
7415         pgcc*)                          # Portland Group C compiler
7416           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'
7417           tmp_addflag=' $pic_flag'
7418           ;;
7419         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7420           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'
7421           tmp_addflag=' $pic_flag -Mnomain' ;;
7422         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7423           tmp_addflag=' -i_dynamic' ;;
7424         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7425           tmp_addflag=' -i_dynamic -nofor_main' ;;
7426         ifc* | ifort*)                  # Intel Fortran compiler
7427           tmp_addflag=' -nofor_main' ;;
7428         esac
7429         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7430
7431         if test $supports_anon_versioning = yes; then
7432           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7433   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7434   $echo "local: *; };" >> $output_objdir/$libname.ver~
7435           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7436         fi
7437       else
7438         ld_shlibs=no
7439       fi
7440       ;;
7441
7442     netbsd*)
7443       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7444         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7445         wlarc=
7446       else
7447         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7448         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7449       fi
7450       ;;
7451
7452     solaris* | sysv5*)
7453       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7454         ld_shlibs=no
7455         cat <<EOF 1>&2
7456
7457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7458 *** create shared libraries on Solaris systems.  Therefore, libtool
7459 *** is disabling shared libraries support.  We urge you to upgrade GNU
7460 *** binutils to release 2.9.1 or newer.  Another option is to modify
7461 *** your PATH or compiler configuration so that the native linker is
7462 *** used, and then restart.
7463
7464 EOF
7465       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7466         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7467         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7468       else
7469         ld_shlibs=no
7470       fi
7471       ;;
7472
7473     sunos4*)
7474       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7475       wlarc=
7476       hardcode_direct=yes
7477       hardcode_shlibpath_var=no
7478       ;;
7479
7480     *)
7481       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7482         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7483         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7484       else
7485         ld_shlibs=no
7486       fi
7487       ;;
7488     esac
7489
7490     if test "$ld_shlibs" = no; then
7491       runpath_var=
7492       hardcode_libdir_flag_spec=
7493       export_dynamic_flag_spec=
7494       whole_archive_flag_spec=
7495     fi
7496   else
7497     # PORTME fill in a description of your system's linker (not GNU ld)
7498     case $host_os in
7499     aix3*)
7500       allow_undefined_flag=unsupported
7501       always_export_symbols=yes
7502       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'
7503       # Note: this linker hardcodes the directories in LIBPATH if there
7504       # are no directories specified by -L.
7505       hardcode_minus_L=yes
7506       if test "$GCC" = yes && test -z "$link_static_flag"; then
7507         # Neither direct hardcoding nor static linking is supported with a
7508         # broken collect2.
7509         hardcode_direct=unsupported
7510       fi
7511       ;;
7512
7513     aix4* | aix5*)
7514       if test "$host_cpu" = ia64; then
7515         # On IA64, the linker does run time linking by default, so we don't
7516         # have to do anything special.
7517         aix_use_runtimelinking=no
7518         exp_sym_flag='-Bexport'
7519         no_entry_flag=""
7520       else
7521         # If we're using GNU nm, then we don't want the "-C" option.
7522         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7523         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7524           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'
7525         else
7526           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'
7527         fi
7528         aix_use_runtimelinking=no
7529
7530         # Test if we are trying to use run time linking or normal
7531         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7532         # need to do runtime linking.
7533         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7534           for ld_flag in $LDFLAGS; do
7535           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7536             aix_use_runtimelinking=yes
7537             break
7538           fi
7539           done
7540         esac
7541
7542         exp_sym_flag='-bexport'
7543         no_entry_flag='-bnoentry'
7544       fi
7545
7546       # When large executables or shared objects are built, AIX ld can
7547       # have problems creating the table of contents.  If linking a library
7548       # or program results in "error TOC overflow" add -mminimal-toc to
7549       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7550       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7551
7552       archive_cmds=''
7553       hardcode_direct=yes
7554       hardcode_libdir_separator=':'
7555       link_all_deplibs=yes
7556
7557       if test "$GCC" = yes; then
7558         case $host_os in aix4.[012]|aix4.[012].*)
7559         # We only want to do this on AIX 4.2 and lower, the check
7560         # below for broken collect2 doesn't work under 4.3+
7561           collect2name=`${CC} -print-prog-name=collect2`
7562           if test -f "$collect2name" && \
7563            strings "$collect2name" | grep resolve_lib_name >/dev/null
7564           then
7565           # We have reworked collect2
7566           hardcode_direct=yes
7567           else
7568           # We have old collect2
7569           hardcode_direct=unsupported
7570           # It fails to find uninstalled libraries when the uninstalled
7571           # path is not listed in the libpath.  Setting hardcode_minus_L
7572           # to unsupported forces relinking
7573           hardcode_minus_L=yes
7574           hardcode_libdir_flag_spec='-L$libdir'
7575           hardcode_libdir_separator=
7576           fi
7577         esac
7578         shared_flag='-shared'
7579         if test "$aix_use_runtimelinking" = yes; then
7580           shared_flag="$shared_flag "'${wl}-G'
7581         fi
7582       else
7583         # not using gcc
7584         if test "$host_cpu" = ia64; then
7585         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7586         # chokes on -Wl,-G. The following line is correct:
7587           shared_flag='-G'
7588         else
7589         if test "$aix_use_runtimelinking" = yes; then
7590             shared_flag='${wl}-G'
7591           else
7592             shared_flag='${wl}-bM:SRE'
7593         fi
7594         fi
7595       fi
7596
7597       # It seems that -bexpall does not export symbols beginning with
7598       # underscore (_), so it is better to generate a list of symbols to export.
7599       always_export_symbols=yes
7600       if test "$aix_use_runtimelinking" = yes; then
7601         # Warning - without using the other runtime loading flags (-brtl),
7602         # -berok will link without error, but may produce a broken library.
7603         allow_undefined_flag='-berok'
7604        # Determine the default libpath from the value encoded in an empty executable.
7605        cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h.  */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h.  */
7611
7612 int
7613 main ()
7614 {
7615
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622   (eval $ac_link) 2>conftest.er1
7623   ac_status=$?
7624   grep -v '^ *+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } &&
7629          { ac_try='test -z "$ac_c_werror_flag"
7630                          || test ! -s conftest.err'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; } &&
7636          { ac_try='test -s conftest$ac_exeext'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; }; then
7642
7643 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7644 }'`
7645 # Check for a 64-bit object if we didn't find anything.
7646 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; }
7647 }'`; fi
7648 else
7649   echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 fi
7653 rm -f conftest.err conftest.$ac_objext \
7654       conftest$ac_exeext conftest.$ac_ext
7655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7656
7657        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7658         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"
7659        else
7660         if test "$host_cpu" = ia64; then
7661           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7662           allow_undefined_flag="-z nodefs"
7663           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"
7664         else
7665          # Determine the default libpath from the value encoded in an empty executable.
7666          cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672
7673 int
7674 main ()
7675 {
7676
7677   ;
7678   return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7683   (eval $ac_link) 2>conftest.er1
7684   ac_status=$?
7685   grep -v '^ *+' conftest.er1 >conftest.err
7686   rm -f conftest.er1
7687   cat conftest.err >&5
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); } &&
7690          { ac_try='test -z "$ac_c_werror_flag"
7691                          || test ! -s conftest.err'
7692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693   (eval $ac_try) 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; } &&
7697          { ac_try='test -s conftest$ac_exeext'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; }; then
7703
7704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7705 }'`
7706 # Check for a 64-bit object if we didn't find anything.
7707 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; }
7708 }'`; fi
7709 else
7710   echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7712
7713 fi
7714 rm -f conftest.err conftest.$ac_objext \
7715       conftest$ac_exeext conftest.$ac_ext
7716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7717
7718          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7719           # Warning - without using the other run time loading flags,
7720           # -berok will link without error, but may produce a broken library.
7721           no_undefined_flag=' ${wl}-bernotok'
7722           allow_undefined_flag=' ${wl}-berok'
7723           # -bexpall does not export symbols beginning with underscore (_)
7724           always_export_symbols=yes
7725           # Exported symbols can be pulled into shared objects from archives
7726           whole_archive_flag_spec=' '
7727           archive_cmds_need_lc=yes
7728           # This is similar to how AIX traditionally builds its shared libraries.
7729           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'
7730         fi
7731       fi
7732       ;;
7733
7734     amigaos*)
7735       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)'
7736       hardcode_libdir_flag_spec='-L$libdir'
7737       hardcode_minus_L=yes
7738       # see comment about different semantics on the GNU ld section
7739       ld_shlibs=no
7740       ;;
7741
7742     bsdi[45]*)
7743       export_dynamic_flag_spec=-rdynamic
7744       ;;
7745
7746     cygwin* | mingw* | pw32*)
7747       # When not using gcc, we currently assume that we are using
7748       # Microsoft Visual C++.
7749       # hardcode_libdir_flag_spec is actually meaningless, as there is
7750       # no search path for DLLs.
7751       hardcode_libdir_flag_spec=' '
7752       allow_undefined_flag=unsupported
7753       # Tell ltmain to make .lib files, not .a files.
7754       libext=lib
7755       # Tell ltmain to make .dll files, not .so files.
7756       shrext_cmds=".dll"
7757       # FIXME: Setting linknames here is a bad hack.
7758       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7759       # The linker will automatically build a .lib file if we build a DLL.
7760       old_archive_From_new_cmds='true'
7761       # FIXME: Should let the user specify the lib program.
7762       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7763       fix_srcfile_path='`cygpath -w "$srcfile"`'
7764       enable_shared_with_static_runtimes=yes
7765       ;;
7766
7767     darwin* | rhapsody*)
7768       case $host_os in
7769         rhapsody* | darwin1.[012])
7770          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7771          ;;
7772        *) # Darwin 1.3 on
7773          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7774            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7775          else
7776            case ${MACOSX_DEPLOYMENT_TARGET} in
7777              10.[012])
7778                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7779                ;;
7780              10.*)
7781                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7782                ;;
7783            esac
7784          fi
7785          ;;
7786       esac
7787       archive_cmds_need_lc=no
7788       hardcode_direct=no
7789       hardcode_automatic=yes
7790       hardcode_shlibpath_var=unsupported
7791       whole_archive_flag_spec=''
7792       link_all_deplibs=yes
7793     if test "$GCC" = yes ; then
7794         output_verbose_link_cmd='echo'
7795         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7796       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7797       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7798       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}'
7799       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}'
7800     else
7801       case $cc_basename in
7802         xlc*)
7803          output_verbose_link_cmd='echo'
7804          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7805          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7806           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7807          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}'
7808           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}'
7809           ;;
7810        *)
7811          ld_shlibs=no
7812           ;;
7813       esac
7814     fi
7815       ;;
7816
7817     dgux*)
7818       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7819       hardcode_libdir_flag_spec='-L$libdir'
7820       hardcode_shlibpath_var=no
7821       ;;
7822
7823     freebsd1*)
7824       ld_shlibs=no
7825       ;;
7826
7827     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7828     # support.  Future versions do this automatically, but an explicit c++rt0.o
7829     # does not break anything, and helps significantly (at the cost of a little
7830     # extra space).
7831     freebsd2.2*)
7832       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7833       hardcode_libdir_flag_spec='-R$libdir'
7834       hardcode_direct=yes
7835       hardcode_shlibpath_var=no
7836       ;;
7837
7838     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7839     freebsd2*)
7840       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7841       hardcode_direct=yes
7842       hardcode_minus_L=yes
7843       hardcode_shlibpath_var=no
7844       ;;
7845
7846     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7847     freebsd* | kfreebsd*-gnu | dragonfly*)
7848       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7849       hardcode_libdir_flag_spec='-R$libdir'
7850       hardcode_direct=yes
7851       hardcode_shlibpath_var=no
7852       ;;
7853
7854     hpux9*)
7855       if test "$GCC" = yes; then
7856         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'
7857       else
7858         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'
7859       fi
7860       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7861       hardcode_libdir_separator=:
7862       hardcode_direct=yes
7863
7864       # hardcode_minus_L: Not really in the search PATH,
7865       # but as the default location of the library.
7866       hardcode_minus_L=yes
7867       export_dynamic_flag_spec='${wl}-E'
7868       ;;
7869
7870     hpux10* | hpux11*)
7871       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7872         case $host_cpu in
7873         hppa*64*|ia64*)
7874           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7875           ;;
7876         *)
7877           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7878           ;;
7879         esac
7880       else
7881         case $host_cpu in
7882         hppa*64*|ia64*)
7883           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7884           ;;
7885         *)
7886           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7887           ;;
7888         esac
7889       fi
7890       if test "$with_gnu_ld" = no; then
7891         case $host_cpu in
7892         hppa*64*)
7893           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7894           hardcode_libdir_flag_spec_ld='+b $libdir'
7895           hardcode_libdir_separator=:
7896           hardcode_direct=no
7897           hardcode_shlibpath_var=no
7898           ;;
7899         ia64*)
7900           hardcode_libdir_flag_spec='-L$libdir'
7901           hardcode_direct=no
7902           hardcode_shlibpath_var=no
7903
7904           # hardcode_minus_L: Not really in the search PATH,
7905           # but as the default location of the library.
7906           hardcode_minus_L=yes
7907           ;;
7908         *)
7909           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7910           hardcode_libdir_separator=:
7911           hardcode_direct=yes
7912           export_dynamic_flag_spec='${wl}-E'
7913
7914           # hardcode_minus_L: Not really in the search PATH,
7915           # but as the default location of the library.
7916           hardcode_minus_L=yes
7917           ;;
7918         esac
7919       fi
7920       ;;
7921
7922     irix5* | irix6* | nonstopux*)
7923       if test "$GCC" = yes; then
7924         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'
7925       else
7926         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'
7927         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7928       fi
7929       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7930       hardcode_libdir_separator=:
7931       link_all_deplibs=yes
7932       ;;
7933
7934     netbsd*)
7935       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7936         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7937       else
7938         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7939       fi
7940       hardcode_libdir_flag_spec='-R$libdir'
7941       hardcode_direct=yes
7942       hardcode_shlibpath_var=no
7943       ;;
7944
7945     newsos6)
7946       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7947       hardcode_direct=yes
7948       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7949       hardcode_libdir_separator=:
7950       hardcode_shlibpath_var=no
7951       ;;
7952
7953     openbsd*)
7954       hardcode_direct=yes
7955       hardcode_shlibpath_var=no
7956       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7957         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7958         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7959         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7960         export_dynamic_flag_spec='${wl}-E'
7961       else
7962        case $host_os in
7963          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7964            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7965            hardcode_libdir_flag_spec='-R$libdir'
7966            ;;
7967          *)
7968            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7969            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7970            ;;
7971        esac
7972       fi
7973       ;;
7974
7975     os2*)
7976       hardcode_libdir_flag_spec='-L$libdir'
7977       hardcode_minus_L=yes
7978       allow_undefined_flag=unsupported
7979       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'
7980       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7981       ;;
7982
7983     osf3*)
7984       if test "$GCC" = yes; then
7985         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7986         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'
7987       else
7988         allow_undefined_flag=' -expect_unresolved \*'
7989         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'
7990       fi
7991       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7992       hardcode_libdir_separator=:
7993       ;;
7994
7995     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7996       if test "$GCC" = yes; then
7997         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7998         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'
7999         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8000       else
8001         allow_undefined_flag=' -expect_unresolved \*'
8002         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'
8003         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8004         $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'
8005
8006         # Both c and cxx compiler support -rpath directly
8007         hardcode_libdir_flag_spec='-rpath $libdir'
8008       fi
8009       hardcode_libdir_separator=:
8010       ;;
8011
8012     sco3.2v5*)
8013       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8014       hardcode_shlibpath_var=no
8015       export_dynamic_flag_spec='${wl}-Bexport'
8016       runpath_var=LD_RUN_PATH
8017       hardcode_runpath_var=yes
8018       ;;
8019
8020     solaris*)
8021       no_undefined_flag=' -z text'
8022       if test "$GCC" = yes; then
8023         wlarc='${wl}'
8024         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8025         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8026           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8027       else
8028         wlarc=''
8029         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8030         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8032       fi
8033       hardcode_libdir_flag_spec='-R$libdir'
8034       hardcode_shlibpath_var=no
8035       case $host_os in
8036       solaris2.[0-5] | solaris2.[0-5].*) ;;
8037       *)
8038         # The compiler driver will combine linker options so we
8039         # cannot just pass the convience library names through
8040         # without $wl, iff we do not link with $LD.
8041         # Luckily, gcc supports the same syntax we need for Sun Studio.
8042         # Supported since Solaris 2.6 (maybe 2.5.1?)
8043         case $wlarc in
8044         '')
8045           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8046         *)
8047           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' ;;
8048         esac ;;
8049       esac
8050       link_all_deplibs=yes
8051       ;;
8052
8053     sunos4*)
8054       if test "x$host_vendor" = xsequent; then
8055         # Use $CC to link under sequent, because it throws in some extra .o
8056         # files that make .init and .fini sections work.
8057         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8058       else
8059         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8060       fi
8061       hardcode_libdir_flag_spec='-L$libdir'
8062       hardcode_direct=yes
8063       hardcode_minus_L=yes
8064       hardcode_shlibpath_var=no
8065       ;;
8066
8067     sysv4)
8068       case $host_vendor in
8069         sni)
8070           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8071           hardcode_direct=yes # is this really true???
8072         ;;
8073         siemens)
8074           ## LD is ld it makes a PLAMLIB
8075           ## CC just makes a GrossModule.
8076           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8077           reload_cmds='$CC -r -o $output$reload_objs'
8078           hardcode_direct=no
8079         ;;
8080         motorola)
8081           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8083         ;;
8084       esac
8085       runpath_var='LD_RUN_PATH'
8086       hardcode_shlibpath_var=no
8087       ;;
8088
8089     sysv4.3*)
8090       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8091       hardcode_shlibpath_var=no
8092       export_dynamic_flag_spec='-Bexport'
8093       ;;
8094
8095     sysv4*MP*)
8096       if test -d /usr/nec; then
8097         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8098         hardcode_shlibpath_var=no
8099         runpath_var=LD_RUN_PATH
8100         hardcode_runpath_var=yes
8101         ld_shlibs=yes
8102       fi
8103       ;;
8104
8105     sysv4.2uw2*)
8106       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8107       hardcode_direct=yes
8108       hardcode_minus_L=no
8109       hardcode_shlibpath_var=no
8110       hardcode_runpath_var=yes
8111       runpath_var=LD_RUN_PATH
8112       ;;
8113
8114    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8115       no_undefined_flag='${wl}-z ${wl}text'
8116       if test "$GCC" = yes; then
8117         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8118       else
8119         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8120       fi
8121       runpath_var='LD_RUN_PATH'
8122       hardcode_shlibpath_var=no
8123       ;;
8124
8125     sysv5*)
8126       no_undefined_flag=' -z text'
8127       # $CC -shared without GNU ld will not create a library from C++
8128       # object files and a static libstdc++, better avoid it by now
8129       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8130       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8131                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8132       hardcode_libdir_flag_spec=
8133       hardcode_shlibpath_var=no
8134       runpath_var='LD_RUN_PATH'
8135       ;;
8136
8137     uts4*)
8138       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8139       hardcode_libdir_flag_spec='-L$libdir'
8140       hardcode_shlibpath_var=no
8141       ;;
8142
8143     *)
8144       ld_shlibs=no
8145       ;;
8146     esac
8147   fi
8148
8149 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8150 echo "${ECHO_T}$ld_shlibs" >&6
8151 test "$ld_shlibs" = no && can_build_shared=no
8152
8153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8154 if test "$GCC" = yes; then
8155   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8156 fi
8157
8158 #
8159 # Do we need to explicitly link libc?
8160 #
8161 case "x$archive_cmds_need_lc" in
8162 x|xyes)
8163   # Assume -lc should be added
8164   archive_cmds_need_lc=yes
8165
8166   if test "$enable_shared" = yes && test "$GCC" = yes; then
8167     case $archive_cmds in
8168     *'~'*)
8169       # FIXME: we may have to deal with multi-command sequences.
8170       ;;
8171     '$CC '*)
8172       # Test whether the compiler implicitly links with -lc since on some
8173       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8174       # to ld, don't add -lc before -lgcc.
8175       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8176 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8177       $rm conftest*
8178       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8179
8180       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8181   (eval $ac_compile) 2>&5
8182   ac_status=$?
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } 2>conftest.err; then
8185         soname=conftest
8186         lib=conftest
8187         libobjs=conftest.$ac_objext
8188         deplibs=
8189         wl=$lt_prog_compiler_wl
8190         compiler_flags=-v
8191         linker_flags=-v
8192         verstring=
8193         output_objdir=.
8194         libname=conftest
8195         lt_save_allow_undefined_flag=$allow_undefined_flag
8196         allow_undefined_flag=
8197         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8198   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }
8202         then
8203           archive_cmds_need_lc=no
8204         else
8205           archive_cmds_need_lc=yes
8206         fi
8207         allow_undefined_flag=$lt_save_allow_undefined_flag
8208       else
8209         cat conftest.err 1>&5
8210       fi
8211       $rm conftest*
8212       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8213 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8214       ;;
8215     esac
8216   fi
8217   ;;
8218 esac
8219
8220 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8221 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8222 library_names_spec=
8223 libname_spec='lib$name'
8224 soname_spec=
8225 shrext_cmds=".so"
8226 postinstall_cmds=
8227 postuninstall_cmds=
8228 finish_cmds=
8229 finish_eval=
8230 shlibpath_var=
8231 shlibpath_overrides_runpath=unknown
8232 version_type=none
8233 dynamic_linker="$host_os ld.so"
8234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8235 if test "$GCC" = yes; then
8236   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8237   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8238     # if the path contains ";" then we assume it to be the separator
8239     # otherwise default to the standard path separator (i.e. ":") - it is
8240     # assumed that no part of a normal pathname contains ";" but that should
8241     # okay in the real world where ";" in dirpaths is itself problematic.
8242     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8243   else
8244     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8245   fi
8246 else
8247   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8248 fi
8249 need_lib_prefix=unknown
8250 hardcode_into_libs=no
8251
8252 # when you set need_version to no, make sure it does not cause -set_version
8253 # flags to be left without arguments
8254 need_version=unknown
8255
8256 case $host_os in
8257 aix3*)
8258   version_type=linux
8259   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8260   shlibpath_var=LIBPATH
8261
8262   # AIX 3 has no versioning support, so we append a major version to the name.
8263   soname_spec='${libname}${release}${shared_ext}$major'
8264   ;;
8265
8266 aix4* | aix5*)
8267   version_type=linux
8268   need_lib_prefix=no
8269   need_version=no
8270   hardcode_into_libs=yes
8271   if test "$host_cpu" = ia64; then
8272     # AIX 5 supports IA64
8273     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8274     shlibpath_var=LD_LIBRARY_PATH
8275   else
8276     # With GCC up to 2.95.x, collect2 would create an import file
8277     # for dependence libraries.  The import file would start with
8278     # the line `#! .'.  This would cause the generated library to
8279     # depend on `.', always an invalid library.  This was fixed in
8280     # development snapshots of GCC prior to 3.0.
8281     case $host_os in
8282       aix4 | aix4.[01] | aix4.[01].*)
8283       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8284            echo ' yes '
8285            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8286         :
8287       else
8288         can_build_shared=no
8289       fi
8290       ;;
8291     esac
8292     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8293     # soname into executable. Probably we can add versioning support to
8294     # collect2, so additional links can be useful in future.
8295     if test "$aix_use_runtimelinking" = yes; then
8296       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8297       # instead of lib<name>.a to let people know that these are not
8298       # typical AIX shared libraries.
8299       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8300     else
8301       # We preserve .a as extension for shared libraries through AIX4.2
8302       # and later when we are not doing run time linking.
8303       library_names_spec='${libname}${release}.a $libname.a'
8304       soname_spec='${libname}${release}${shared_ext}$major'
8305     fi
8306     shlibpath_var=LIBPATH
8307   fi
8308   ;;
8309
8310 amigaos*)
8311   library_names_spec='$libname.ixlibrary $libname.a'
8312   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8313   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'
8314   ;;
8315
8316 beos*)
8317   library_names_spec='${libname}${shared_ext}'
8318   dynamic_linker="$host_os ld.so"
8319   shlibpath_var=LIBRARY_PATH
8320   ;;
8321
8322 bsdi[45]*)
8323   version_type=linux
8324   need_version=no
8325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326   soname_spec='${libname}${release}${shared_ext}$major'
8327   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8328   shlibpath_var=LD_LIBRARY_PATH
8329   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8330   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8331   # the default ld.so.conf also contains /usr/contrib/lib and
8332   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8333   # libtool to hard-code these into programs
8334   ;;
8335
8336 cygwin* | mingw* | pw32*)
8337   version_type=windows
8338   shrext_cmds=".dll"
8339   need_version=no
8340   need_lib_prefix=no
8341
8342   case $GCC,$host_os in
8343   yes,cygwin* | yes,mingw* | yes,pw32*)
8344     library_names_spec='$libname.dll.a'
8345     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8346     postinstall_cmds='base_file=`basename \${file}`~
8347       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8348       dldir=$destdir/`dirname \$dlpath`~
8349       test -d \$dldir || mkdir -p \$dldir~
8350       $install_prog $dir/$dlname \$dldir/$dlname~
8351       chmod a+x \$dldir/$dlname'
8352     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8353       dlpath=$dir/\$dldll~
8354        $rm \$dlpath'
8355     shlibpath_overrides_runpath=yes
8356
8357     case $host_os in
8358     cygwin*)
8359       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8360       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8361       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8362       ;;
8363     mingw*)
8364       # MinGW DLLs use traditional 'lib' prefix
8365       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8366       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8367       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8368         # It is most probably a Windows format PATH printed by
8369         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8370         # path with ; separators, and with drive letters. We can handle the
8371         # drive letters (cygwin fileutils understands them), so leave them,
8372         # especially as we might pass files found there to a mingw objdump,
8373         # which wouldn't understand a cygwinified path. Ahh.
8374         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8375       else
8376         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8377       fi
8378       ;;
8379     pw32*)
8380       # pw32 DLLs use 'pw' prefix rather than 'lib'
8381       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8382       ;;
8383     esac
8384     ;;
8385
8386   *)
8387     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8388     ;;
8389   esac
8390   dynamic_linker='Win32 ld.exe'
8391   # FIXME: first we should search . and the directory the executable is in
8392   shlibpath_var=PATH
8393   ;;
8394
8395 darwin* | rhapsody*)
8396   dynamic_linker="$host_os dyld"
8397   version_type=darwin
8398   need_lib_prefix=no
8399   need_version=no
8400   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8401   soname_spec='${libname}${release}${major}$shared_ext'
8402   shlibpath_overrides_runpath=yes
8403   shlibpath_var=DYLD_LIBRARY_PATH
8404   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8405   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8406   if test "$GCC" = yes; then
8407     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"`
8408   else
8409     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8410   fi
8411   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8412   ;;
8413
8414 dgux*)
8415   version_type=linux
8416   need_lib_prefix=no
8417   need_version=no
8418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8419   soname_spec='${libname}${release}${shared_ext}$major'
8420   shlibpath_var=LD_LIBRARY_PATH
8421   ;;
8422
8423 freebsd1*)
8424   dynamic_linker=no
8425   ;;
8426
8427 kfreebsd*-gnu)
8428   version_type=linux
8429   need_lib_prefix=no
8430   need_version=no
8431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8432   soname_spec='${libname}${release}${shared_ext}$major'
8433   shlibpath_var=LD_LIBRARY_PATH
8434   shlibpath_overrides_runpath=no
8435   hardcode_into_libs=yes
8436   dynamic_linker='GNU ld.so'
8437   ;;
8438
8439 freebsd* | dragonfly*)
8440   # DragonFly does not have aout.  When/if they implement a new
8441   # versioning mechanism, adjust this.
8442   if test -x /usr/bin/objformat; then
8443     objformat=`/usr/bin/objformat`
8444   else
8445     case $host_os in
8446     freebsd[123]*) objformat=aout ;;
8447     *) objformat=elf ;;
8448     esac
8449   fi
8450   version_type=freebsd-$objformat
8451   case $version_type in
8452     freebsd-elf*)
8453       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8454       need_version=no
8455       need_lib_prefix=no
8456       ;;
8457     freebsd-*)
8458       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8459       need_version=yes
8460       ;;
8461   esac
8462   shlibpath_var=LD_LIBRARY_PATH
8463   case $host_os in
8464   freebsd2*)
8465     shlibpath_overrides_runpath=yes
8466     ;;
8467   freebsd3.[01]* | freebsdelf3.[01]*)
8468     shlibpath_overrides_runpath=yes
8469     hardcode_into_libs=yes
8470     ;;
8471   *) # from 3.2 on
8472     shlibpath_overrides_runpath=no
8473     hardcode_into_libs=yes
8474     ;;
8475   esac
8476   ;;
8477
8478 gnu*)
8479   version_type=linux
8480   need_lib_prefix=no
8481   need_version=no
8482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8483   soname_spec='${libname}${release}${shared_ext}$major'
8484   shlibpath_var=LD_LIBRARY_PATH
8485   hardcode_into_libs=yes
8486   ;;
8487
8488 hpux9* | hpux10* | hpux11*)
8489   # Give a soname corresponding to the major version so that dld.sl refuses to
8490   # link against other versions.
8491   version_type=sunos
8492   need_lib_prefix=no
8493   need_version=no
8494   case $host_cpu in
8495   ia64*)
8496     shrext_cmds='.so'
8497     hardcode_into_libs=yes
8498     dynamic_linker="$host_os dld.so"
8499     shlibpath_var=LD_LIBRARY_PATH
8500     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8502     soname_spec='${libname}${release}${shared_ext}$major'
8503     if test "X$HPUX_IA64_MODE" = X32; then
8504       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8505     else
8506       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8507     fi
8508     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8509     ;;
8510    hppa*64*)
8511      shrext_cmds='.sl'
8512      hardcode_into_libs=yes
8513      dynamic_linker="$host_os dld.sl"
8514      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8515      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8516      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517      soname_spec='${libname}${release}${shared_ext}$major'
8518      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8519      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8520      ;;
8521    *)
8522     shrext_cmds='.sl'
8523     dynamic_linker="$host_os dld.sl"
8524     shlibpath_var=SHLIB_PATH
8525     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527     soname_spec='${libname}${release}${shared_ext}$major'
8528     ;;
8529   esac
8530   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8531   postinstall_cmds='chmod 555 $lib'
8532   ;;
8533
8534 irix5* | irix6* | nonstopux*)
8535   case $host_os in
8536     nonstopux*) version_type=nonstopux ;;
8537     *)
8538         if test "$lt_cv_prog_gnu_ld" = yes; then
8539                 version_type=linux
8540         else
8541                 version_type=irix
8542         fi ;;
8543   esac
8544   need_lib_prefix=no
8545   need_version=no
8546   soname_spec='${libname}${release}${shared_ext}$major'
8547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8548   case $host_os in
8549   irix5* | nonstopux*)
8550     libsuff= shlibsuff=
8551     ;;
8552   *)
8553     case $LD in # libtool.m4 will add one of these switches to LD
8554     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8555       libsuff= shlibsuff= libmagic=32-bit;;
8556     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8557       libsuff=32 shlibsuff=N32 libmagic=N32;;
8558     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8559       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8560     *) libsuff= shlibsuff= libmagic=never-match;;
8561     esac
8562     ;;
8563   esac
8564   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8565   shlibpath_overrides_runpath=no
8566   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8567   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8568   hardcode_into_libs=yes
8569   ;;
8570
8571 # No shared lib support for Linux oldld, aout, or coff.
8572 linux*oldld* | linux*aout* | linux*coff*)
8573   dynamic_linker=no
8574   ;;
8575
8576 # This must be Linux ELF.
8577 linux*)
8578   version_type=linux
8579   need_lib_prefix=no
8580   need_version=no
8581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8582   soname_spec='${libname}${release}${shared_ext}$major'
8583   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8584   shlibpath_var=LD_LIBRARY_PATH
8585   shlibpath_overrides_runpath=no
8586   # This implies no fast_install, which is unacceptable.
8587   # Some rework will be needed to allow for fast_install
8588   # before this can be enabled.
8589   hardcode_into_libs=yes
8590
8591   # find out which ABI we are using
8592   libsuff=
8593   case "$host_cpu" in
8594   x86_64*|s390x*|powerpc64*)
8595     echo '#line 8595 "configure"' > conftest.$ac_ext
8596     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8597   (eval $ac_compile) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; then
8601       case `/usr/bin/file conftest.$ac_objext` in
8602       *64-bit*)
8603         libsuff=64
8604         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8605         ;;
8606       esac
8607     fi
8608     rm -rf conftest*
8609     ;;
8610   esac
8611
8612   # Append ld.so.conf contents to the search path
8613   if test -f /etc/ld.so.conf; then
8614     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' ' '`
8615     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8616   fi
8617
8618   # We used to test for /lib/ld.so.1 and disable shared libraries on
8619   # powerpc, because MkLinux only supported shared libraries with the
8620   # GNU dynamic linker.  Since this was broken with cross compilers,
8621   # most powerpc-linux boxes support dynamic linking these days and
8622   # people can always --disable-shared, the test was removed, and we
8623   # assume the GNU/Linux dynamic linker is in use.
8624   dynamic_linker='GNU/Linux ld.so'
8625   ;;
8626
8627 knetbsd*-gnu)
8628   version_type=linux
8629   need_lib_prefix=no
8630   need_version=no
8631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8632   soname_spec='${libname}${release}${shared_ext}$major'
8633   shlibpath_var=LD_LIBRARY_PATH
8634   shlibpath_overrides_runpath=no
8635   hardcode_into_libs=yes
8636   dynamic_linker='GNU ld.so'
8637   ;;
8638
8639 netbsd*)
8640   version_type=sunos
8641   need_lib_prefix=no
8642   need_version=no
8643   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8645     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8646     dynamic_linker='NetBSD (a.out) ld.so'
8647   else
8648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8649     soname_spec='${libname}${release}${shared_ext}$major'
8650     dynamic_linker='NetBSD ld.elf_so'
8651   fi
8652   shlibpath_var=LD_LIBRARY_PATH
8653   shlibpath_overrides_runpath=yes
8654   hardcode_into_libs=yes
8655   ;;
8656
8657 newsos6)
8658   version_type=linux
8659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8660   shlibpath_var=LD_LIBRARY_PATH
8661   shlibpath_overrides_runpath=yes
8662   ;;
8663
8664 nto-qnx*)
8665   version_type=linux
8666   need_lib_prefix=no
8667   need_version=no
8668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8669   soname_spec='${libname}${release}${shared_ext}$major'
8670   shlibpath_var=LD_LIBRARY_PATH
8671   shlibpath_overrides_runpath=yes
8672   ;;
8673
8674 openbsd*)
8675   version_type=sunos
8676   need_lib_prefix=no
8677   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8678   case $host_os in
8679     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8680     *)                         need_version=no  ;;
8681   esac
8682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8683   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8684   shlibpath_var=LD_LIBRARY_PATH
8685   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8686     case $host_os in
8687       openbsd2.[89] | openbsd2.[89].*)
8688         shlibpath_overrides_runpath=no
8689         ;;
8690       *)
8691         shlibpath_overrides_runpath=yes
8692         ;;
8693       esac
8694   else
8695     shlibpath_overrides_runpath=yes
8696   fi
8697   ;;
8698
8699 os2*)
8700   libname_spec='$name'
8701   shrext_cmds=".dll"
8702   need_lib_prefix=no
8703   library_names_spec='$libname${shared_ext} $libname.a'
8704   dynamic_linker='OS/2 ld.exe'
8705   shlibpath_var=LIBPATH
8706   ;;
8707
8708 osf3* | osf4* | osf5*)
8709   version_type=osf
8710   need_lib_prefix=no
8711   need_version=no
8712   soname_spec='${libname}${release}${shared_ext}$major'
8713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8714   shlibpath_var=LD_LIBRARY_PATH
8715   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8716   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8717   ;;
8718
8719 sco3.2v5*)
8720   version_type=osf
8721   soname_spec='${libname}${release}${shared_ext}$major'
8722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8723   shlibpath_var=LD_LIBRARY_PATH
8724   ;;
8725
8726 solaris*)
8727   version_type=linux
8728   need_lib_prefix=no
8729   need_version=no
8730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731   soname_spec='${libname}${release}${shared_ext}$major'
8732   shlibpath_var=LD_LIBRARY_PATH
8733   shlibpath_overrides_runpath=yes
8734   hardcode_into_libs=yes
8735   # ldd complains unless libraries are executable
8736   postinstall_cmds='chmod +x $lib'
8737   ;;
8738
8739 sunos4*)
8740   version_type=sunos
8741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8742   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8743   shlibpath_var=LD_LIBRARY_PATH
8744   shlibpath_overrides_runpath=yes
8745   if test "$with_gnu_ld" = yes; then
8746     need_lib_prefix=no
8747   fi
8748   need_version=yes
8749   ;;
8750
8751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8752   version_type=linux
8753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8754   soname_spec='${libname}${release}${shared_ext}$major'
8755   shlibpath_var=LD_LIBRARY_PATH
8756   case $host_vendor in
8757     sni)
8758       shlibpath_overrides_runpath=no
8759       need_lib_prefix=no
8760       export_dynamic_flag_spec='${wl}-Blargedynsym'
8761       runpath_var=LD_RUN_PATH
8762       ;;
8763     siemens)
8764       need_lib_prefix=no
8765       ;;
8766     motorola)
8767       need_lib_prefix=no
8768       need_version=no
8769       shlibpath_overrides_runpath=no
8770       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8771       ;;
8772   esac
8773   ;;
8774
8775 sysv4*MP*)
8776   if test -d /usr/nec ;then
8777     version_type=linux
8778     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8779     soname_spec='$libname${shared_ext}.$major'
8780     shlibpath_var=LD_LIBRARY_PATH
8781   fi
8782   ;;
8783
8784 uts4*)
8785   version_type=linux
8786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787   soname_spec='${libname}${release}${shared_ext}$major'
8788   shlibpath_var=LD_LIBRARY_PATH
8789   ;;
8790
8791 *)
8792   dynamic_linker=no
8793   ;;
8794 esac
8795 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8796 echo "${ECHO_T}$dynamic_linker" >&6
8797 test "$dynamic_linker" = no && can_build_shared=no
8798
8799 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8800 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8801 hardcode_action=
8802 if test -n "$hardcode_libdir_flag_spec" || \
8803    test -n "$runpath_var" || \
8804    test "X$hardcode_automatic" = "Xyes" ; then
8805
8806   # We can hardcode non-existant directories.
8807   if test "$hardcode_direct" != no &&
8808      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8809      # have to relink, otherwise we might link with an installed library
8810      # when we should be linking with a yet-to-be-installed one
8811      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8812      test "$hardcode_minus_L" != no; then
8813     # Linking always hardcodes the temporary library directory.
8814     hardcode_action=relink
8815   else
8816     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8817     hardcode_action=immediate
8818   fi
8819 else
8820   # We cannot hardcode anything, or else we can only hardcode existing
8821   # directories.
8822   hardcode_action=unsupported
8823 fi
8824 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8825 echo "${ECHO_T}$hardcode_action" >&6
8826
8827 if test "$hardcode_action" = relink; then
8828   # Fast installation is not supported
8829   enable_fast_install=no
8830 elif test "$shlibpath_overrides_runpath" = yes ||
8831      test "$enable_shared" = no; then
8832   # Fast installation is not necessary
8833   enable_fast_install=needless
8834 fi
8835
8836 striplib=
8837 old_striplib=
8838 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8839 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8840 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8841   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8842   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8843   echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6
8845 else
8846 # FIXME - insert some real tests, host_os isn't really good enough
8847   case $host_os in
8848    darwin*)
8849        if test -n "$STRIP" ; then
8850          striplib="$STRIP -x"
8851          echo "$as_me:$LINENO: result: yes" >&5
8852 echo "${ECHO_T}yes" >&6
8853        else
8854   echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8856 fi
8857        ;;
8858    *)
8859   echo "$as_me:$LINENO: result: no" >&5
8860 echo "${ECHO_T}no" >&6
8861     ;;
8862   esac
8863 fi
8864
8865 if test "x$enable_dlopen" != xyes; then
8866   enable_dlopen=unknown
8867   enable_dlopen_self=unknown
8868   enable_dlopen_self_static=unknown
8869 else
8870   lt_cv_dlopen=no
8871   lt_cv_dlopen_libs=
8872
8873   case $host_os in
8874   beos*)
8875     lt_cv_dlopen="load_add_on"
8876     lt_cv_dlopen_libs=
8877     lt_cv_dlopen_self=yes
8878     ;;
8879
8880   mingw* | pw32*)
8881     lt_cv_dlopen="LoadLibrary"
8882     lt_cv_dlopen_libs=
8883    ;;
8884
8885   cygwin*)
8886     lt_cv_dlopen="dlopen"
8887     lt_cv_dlopen_libs=
8888    ;;
8889
8890   darwin*)
8891   # if libdl is installed we need to link against it
8892     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8893 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8894 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   ac_check_lib_save_LIBS=$LIBS
8898 LIBS="-ldl  $LIBS"
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905
8906 /* Override any gcc2 internal prototype to avoid an error.  */
8907 #ifdef __cplusplus
8908 extern "C"
8909 #endif
8910 /* We use char because int might match the return type of a gcc2
8911    builtin and then its argument prototype would still apply.  */
8912 char dlopen ();
8913 int
8914 main ()
8915 {
8916 dlopen ();
8917   ;
8918   return 0;
8919 }
8920 _ACEOF
8921 rm -f conftest.$ac_objext conftest$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923   (eval $ac_link) 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -z "$ac_c_werror_flag"
8931                          || test ! -s conftest.err'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; } &&
8937          { ac_try='test -s conftest$ac_exeext'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; }; then
8943   ac_cv_lib_dl_dlopen=yes
8944 else
8945   echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 ac_cv_lib_dl_dlopen=no
8949 fi
8950 rm -f conftest.err conftest.$ac_objext \
8951       conftest$ac_exeext conftest.$ac_ext
8952 LIBS=$ac_check_lib_save_LIBS
8953 fi
8954 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8955 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8956 if test $ac_cv_lib_dl_dlopen = yes; then
8957   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8958 else
8959
8960     lt_cv_dlopen="dyld"
8961     lt_cv_dlopen_libs=
8962     lt_cv_dlopen_self=yes
8963
8964 fi
8965
8966    ;;
8967
8968   *)
8969     echo "$as_me:$LINENO: checking for shl_load" >&5
8970 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8971 if test "${ac_cv_func_shl_load+set}" = set; then
8972   echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974   cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8982 #define shl_load innocuous_shl_load
8983
8984 /* System header to define __stub macros and hopefully few prototypes,
8985     which can conflict with char shl_load (); below.
8986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987     <limits.h> exists even on freestanding compilers.  */
8988
8989 #ifdef __STDC__
8990 # include <limits.h>
8991 #else
8992 # include <assert.h>
8993 #endif
8994
8995 #undef shl_load
8996
8997 /* Override any gcc2 internal prototype to avoid an error.  */
8998 #ifdef __cplusplus
8999 extern "C"
9000 {
9001 #endif
9002 /* We use char because int might match the return type of a gcc2
9003    builtin and then its argument prototype would still apply.  */
9004 char shl_load ();
9005 /* The GNU C library defines this for functions which it implements
9006     to always fail with ENOSYS.  Some functions are actually named
9007     something starting with __ and the normal name is an alias.  */
9008 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9009 choke me
9010 #else
9011 char (*f) () = shl_load;
9012 #endif
9013 #ifdef __cplusplus
9014 }
9015 #endif
9016
9017 int
9018 main ()
9019 {
9020 return f != shl_load;
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 rm -f conftest.$ac_objext conftest$ac_exeext
9026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027   (eval $ac_link) 2>conftest.er1
9028   ac_status=$?
9029   grep -v '^ *+' conftest.er1 >conftest.err
9030   rm -f conftest.er1
9031   cat conftest.err >&5
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); } &&
9034          { ac_try='test -z "$ac_c_werror_flag"
9035                          || test ! -s conftest.err'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; } &&
9041          { ac_try='test -s conftest$ac_exeext'
9042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043   (eval $ac_try) 2>&5
9044   ac_status=$?
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   (exit $ac_status); }; }; then
9047   ac_cv_func_shl_load=yes
9048 else
9049   echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 ac_cv_func_shl_load=no
9053 fi
9054 rm -f conftest.err conftest.$ac_objext \
9055       conftest$ac_exeext conftest.$ac_ext
9056 fi
9057 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9058 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9059 if test $ac_cv_func_shl_load = yes; then
9060   lt_cv_dlopen="shl_load"
9061 else
9062   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9063 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9064 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   ac_check_lib_save_LIBS=$LIBS
9068 LIBS="-ldld  $LIBS"
9069 cat >conftest.$ac_ext <<_ACEOF
9070 /* confdefs.h.  */
9071 _ACEOF
9072 cat confdefs.h >>conftest.$ac_ext
9073 cat >>conftest.$ac_ext <<_ACEOF
9074 /* end confdefs.h.  */
9075
9076 /* Override any gcc2 internal prototype to avoid an error.  */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 /* We use char because int might match the return type of a gcc2
9081    builtin and then its argument prototype would still apply.  */
9082 char shl_load ();
9083 int
9084 main ()
9085 {
9086 shl_load ();
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093   (eval $ac_link) 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } &&
9100          { ac_try='test -z "$ac_c_werror_flag"
9101                          || test ! -s conftest.err'
9102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103   (eval $ac_try) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }; } &&
9107          { ac_try='test -s conftest$ac_exeext'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; }; then
9113   ac_cv_lib_dld_shl_load=yes
9114 else
9115   echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9117
9118 ac_cv_lib_dld_shl_load=no
9119 fi
9120 rm -f conftest.err conftest.$ac_objext \
9121       conftest$ac_exeext conftest.$ac_ext
9122 LIBS=$ac_check_lib_save_LIBS
9123 fi
9124 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9126 if test $ac_cv_lib_dld_shl_load = yes; then
9127   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9128 else
9129   echo "$as_me:$LINENO: checking for dlopen" >&5
9130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9131 if test "${ac_cv_func_dlopen+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h.  */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h.  */
9140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9142 #define dlopen innocuous_dlopen
9143
9144 /* System header to define __stub macros and hopefully few prototypes,
9145     which can conflict with char dlopen (); below.
9146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9147     <limits.h> exists even on freestanding compilers.  */
9148
9149 #ifdef __STDC__
9150 # include <limits.h>
9151 #else
9152 # include <assert.h>
9153 #endif
9154
9155 #undef dlopen
9156
9157 /* Override any gcc2 internal prototype to avoid an error.  */
9158 #ifdef __cplusplus
9159 extern "C"
9160 {
9161 #endif
9162 /* We use char because int might match the return type of a gcc2
9163    builtin and then its argument prototype would still apply.  */
9164 char dlopen ();
9165 /* The GNU C library defines this for functions which it implements
9166     to always fail with ENOSYS.  Some functions are actually named
9167     something starting with __ and the normal name is an alias.  */
9168 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9169 choke me
9170 #else
9171 char (*f) () = dlopen;
9172 #endif
9173 #ifdef __cplusplus
9174 }
9175 #endif
9176
9177 int
9178 main ()
9179 {
9180 return f != dlopen;
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187   (eval $ac_link) 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } &&
9194          { ac_try='test -z "$ac_c_werror_flag"
9195                          || test ! -s conftest.err'
9196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197   (eval $ac_try) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); }; } &&
9201          { ac_try='test -s conftest$ac_exeext'
9202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203   (eval $ac_try) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }; }; then
9207   ac_cv_func_dlopen=yes
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 ac_cv_func_dlopen=no
9213 fi
9214 rm -f conftest.err conftest.$ac_objext \
9215       conftest$ac_exeext conftest.$ac_ext
9216 fi
9217 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9218 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9219 if test $ac_cv_func_dlopen = yes; then
9220   lt_cv_dlopen="dlopen"
9221 else
9222   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9223 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-ldl  $LIBS"
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235
9236 /* Override any gcc2 internal prototype to avoid an error.  */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 /* We use char because int might match the return type of a gcc2
9241    builtin and then its argument prototype would still apply.  */
9242 char dlopen ();
9243 int
9244 main ()
9245 {
9246 dlopen ();
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253   (eval $ac_link) 2>conftest.er1
9254   ac_status=$?
9255   grep -v '^ *+' conftest.er1 >conftest.err
9256   rm -f conftest.er1
9257   cat conftest.err >&5
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } &&
9260          { ac_try='test -z "$ac_c_werror_flag"
9261                          || test ! -s conftest.err'
9262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263   (eval $ac_try) 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); }; } &&
9267          { ac_try='test -s conftest$ac_exeext'
9268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269   (eval $ac_try) 2>&5
9270   ac_status=$?
9271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272   (exit $ac_status); }; }; then
9273   ac_cv_lib_dl_dlopen=yes
9274 else
9275   echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278 ac_cv_lib_dl_dlopen=no
9279 fi
9280 rm -f conftest.err conftest.$ac_objext \
9281       conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9283 fi
9284 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9285 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9286 if test $ac_cv_lib_dl_dlopen = yes; then
9287   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9288 else
9289   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9290 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9291 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294   ac_check_lib_save_LIBS=$LIBS
9295 LIBS="-lsvld  $LIBS"
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302
9303 /* Override any gcc2 internal prototype to avoid an error.  */
9304 #ifdef __cplusplus
9305 extern "C"
9306 #endif
9307 /* We use char because int might match the return type of a gcc2
9308    builtin and then its argument prototype would still apply.  */
9309 char dlopen ();
9310 int
9311 main ()
9312 {
9313 dlopen ();
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320   (eval $ac_link) 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } &&
9327          { ac_try='test -z "$ac_c_werror_flag"
9328                          || test ! -s conftest.err'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; } &&
9334          { ac_try='test -s conftest$ac_exeext'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340   ac_cv_lib_svld_dlopen=yes
9341 else
9342   echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 ac_cv_lib_svld_dlopen=no
9346 fi
9347 rm -f conftest.err conftest.$ac_objext \
9348       conftest$ac_exeext conftest.$ac_ext
9349 LIBS=$ac_check_lib_save_LIBS
9350 fi
9351 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9352 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9353 if test $ac_cv_lib_svld_dlopen = yes; then
9354   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9355 else
9356   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9357 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9359   echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361   ac_check_lib_save_LIBS=$LIBS
9362 LIBS="-ldld  $LIBS"
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369
9370 /* Override any gcc2 internal prototype to avoid an error.  */
9371 #ifdef __cplusplus
9372 extern "C"
9373 #endif
9374 /* We use char because int might match the return type of a gcc2
9375    builtin and then its argument prototype would still apply.  */
9376 char dld_link ();
9377 int
9378 main ()
9379 {
9380 dld_link ();
9381   ;
9382   return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387   (eval $ac_link) 2>conftest.er1
9388   ac_status=$?
9389   grep -v '^ *+' conftest.er1 >conftest.err
9390   rm -f conftest.er1
9391   cat conftest.err >&5
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } &&
9394          { ac_try='test -z "$ac_c_werror_flag"
9395                          || test ! -s conftest.err'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; } &&
9401          { ac_try='test -s conftest$ac_exeext'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; }; then
9407   ac_cv_lib_dld_dld_link=yes
9408 else
9409   echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412 ac_cv_lib_dld_dld_link=no
9413 fi
9414 rm -f conftest.err conftest.$ac_objext \
9415       conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9417 fi
9418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9419 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9420 if test $ac_cv_lib_dld_dld_link = yes; then
9421   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9422 fi
9423
9424
9425 fi
9426
9427
9428 fi
9429
9430
9431 fi
9432
9433
9434 fi
9435
9436
9437 fi
9438
9439     ;;
9440   esac
9441
9442   if test "x$lt_cv_dlopen" != xno; then
9443     enable_dlopen=yes
9444   else
9445     enable_dlopen=no
9446   fi
9447
9448   case $lt_cv_dlopen in
9449   dlopen)
9450     save_CPPFLAGS="$CPPFLAGS"
9451     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9452
9453     save_LDFLAGS="$LDFLAGS"
9454     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9455
9456     save_LIBS="$LIBS"
9457     LIBS="$lt_cv_dlopen_libs $LIBS"
9458
9459     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9460 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9461 if test "${lt_cv_dlopen_self+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464           if test "$cross_compiling" = yes; then :
9465   lt_cv_dlopen_self=cross
9466 else
9467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9468   lt_status=$lt_dlunknown
9469   cat > conftest.$ac_ext <<EOF
9470 #line 9470 "configure"
9471 #include "confdefs.h"
9472
9473 #if HAVE_DLFCN_H
9474 #include <dlfcn.h>
9475 #endif
9476
9477 #include <stdio.h>
9478
9479 #ifdef RTLD_GLOBAL
9480 #  define LT_DLGLOBAL           RTLD_GLOBAL
9481 #else
9482 #  ifdef DL_GLOBAL
9483 #    define LT_DLGLOBAL         DL_GLOBAL
9484 #  else
9485 #    define LT_DLGLOBAL         0
9486 #  endif
9487 #endif
9488
9489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9490    find out it does not work in some platform. */
9491 #ifndef LT_DLLAZY_OR_NOW
9492 #  ifdef RTLD_LAZY
9493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9494 #  else
9495 #    ifdef DL_LAZY
9496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9497 #    else
9498 #      ifdef RTLD_NOW
9499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9500 #      else
9501 #        ifdef DL_NOW
9502 #          define LT_DLLAZY_OR_NOW      DL_NOW
9503 #        else
9504 #          define LT_DLLAZY_OR_NOW      0
9505 #        endif
9506 #      endif
9507 #    endif
9508 #  endif
9509 #endif
9510
9511 #ifdef __cplusplus
9512 extern "C" void exit (int);
9513 #endif
9514
9515 void fnord() { int i=42;}
9516 int main ()
9517 {
9518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9519   int status = $lt_dlunknown;
9520
9521   if (self)
9522     {
9523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9524       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9525       /* dlclose (self); */
9526     }
9527
9528     exit (status);
9529 }
9530 EOF
9531   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532   (eval $ac_link) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9536     (./conftest; exit; ) >&5 2>/dev/null
9537     lt_status=$?
9538     case x$lt_status in
9539       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9540       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9541       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9542     esac
9543   else :
9544     # compilation failed
9545     lt_cv_dlopen_self=no
9546   fi
9547 fi
9548 rm -fr conftest*
9549
9550
9551 fi
9552 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9553 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9554
9555     if test "x$lt_cv_dlopen_self" = xyes; then
9556       LDFLAGS="$LDFLAGS $link_static_flag"
9557       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9558 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9559 if test "${lt_cv_dlopen_self_static+set}" = set; then
9560   echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562           if test "$cross_compiling" = yes; then :
9563   lt_cv_dlopen_self_static=cross
9564 else
9565   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9566   lt_status=$lt_dlunknown
9567   cat > conftest.$ac_ext <<EOF
9568 #line 9568 "configure"
9569 #include "confdefs.h"
9570
9571 #if HAVE_DLFCN_H
9572 #include <dlfcn.h>
9573 #endif
9574
9575 #include <stdio.h>
9576
9577 #ifdef RTLD_GLOBAL
9578 #  define LT_DLGLOBAL           RTLD_GLOBAL
9579 #else
9580 #  ifdef DL_GLOBAL
9581 #    define LT_DLGLOBAL         DL_GLOBAL
9582 #  else
9583 #    define LT_DLGLOBAL         0
9584 #  endif
9585 #endif
9586
9587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9588    find out it does not work in some platform. */
9589 #ifndef LT_DLLAZY_OR_NOW
9590 #  ifdef RTLD_LAZY
9591 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9592 #  else
9593 #    ifdef DL_LAZY
9594 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9595 #    else
9596 #      ifdef RTLD_NOW
9597 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9598 #      else
9599 #        ifdef DL_NOW
9600 #          define LT_DLLAZY_OR_NOW      DL_NOW
9601 #        else
9602 #          define LT_DLLAZY_OR_NOW      0
9603 #        endif
9604 #      endif
9605 #    endif
9606 #  endif
9607 #endif
9608
9609 #ifdef __cplusplus
9610 extern "C" void exit (int);
9611 #endif
9612
9613 void fnord() { int i=42;}
9614 int main ()
9615 {
9616   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9617   int status = $lt_dlunknown;
9618
9619   if (self)
9620     {
9621       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9622       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9623       /* dlclose (self); */
9624     }
9625
9626     exit (status);
9627 }
9628 EOF
9629   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630   (eval $ac_link) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9634     (./conftest; exit; ) >&5 2>/dev/null
9635     lt_status=$?
9636     case x$lt_status in
9637       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9638       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9639       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9640     esac
9641   else :
9642     # compilation failed
9643     lt_cv_dlopen_self_static=no
9644   fi
9645 fi
9646 rm -fr conftest*
9647
9648
9649 fi
9650 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9651 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9652     fi
9653
9654     CPPFLAGS="$save_CPPFLAGS"
9655     LDFLAGS="$save_LDFLAGS"
9656     LIBS="$save_LIBS"
9657     ;;
9658   esac
9659
9660   case $lt_cv_dlopen_self in
9661   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9662   *) enable_dlopen_self=unknown ;;
9663   esac
9664
9665   case $lt_cv_dlopen_self_static in
9666   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9667   *) enable_dlopen_self_static=unknown ;;
9668   esac
9669 fi
9670
9671
9672 # Report which librarie types wil actually be built
9673 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9674 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9675 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9676 echo "${ECHO_T}$can_build_shared" >&6
9677
9678 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9679 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9680 test "$can_build_shared" = "no" && enable_shared=no
9681
9682 # On AIX, shared libraries and static libraries use the same namespace, and
9683 # are all built from PIC.
9684 case $host_os in
9685 aix3*)
9686   test "$enable_shared" = yes && enable_static=no
9687   if test -n "$RANLIB"; then
9688     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9689     postinstall_cmds='$RANLIB $lib'
9690   fi
9691   ;;
9692
9693 aix4* | aix5*)
9694   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9695     test "$enable_shared" = yes && enable_static=no
9696   fi
9697     ;;
9698 esac
9699 echo "$as_me:$LINENO: result: $enable_shared" >&5
9700 echo "${ECHO_T}$enable_shared" >&6
9701
9702 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9703 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9704 # Make sure either enable_shared or enable_static is yes.
9705 test "$enable_shared" = yes || enable_static=yes
9706 echo "$as_me:$LINENO: result: $enable_static" >&5
9707 echo "${ECHO_T}$enable_static" >&6
9708
9709 # The else clause should only fire when bootstrapping the
9710 # libtool distribution, otherwise you forgot to ship ltmain.sh
9711 # with your package, and you will get complaints that there are
9712 # no rules to generate ltmain.sh.
9713 if test -f "$ltmain"; then
9714   # See if we are running on zsh, and set the options which allow our commands through
9715   # without removal of \ escapes.
9716   if test -n "${ZSH_VERSION+set}" ; then
9717     setopt NO_GLOB_SUBST
9718   fi
9719   # Now quote all the things that may contain metacharacters while being
9720   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9721   # variables and quote the copies for generation of the libtool script.
9722   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9723     SED SHELL STRIP \
9724     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9725     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9726     deplibs_check_method reload_flag reload_cmds need_locks \
9727     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9728     lt_cv_sys_global_symbol_to_c_name_address \
9729     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9730     old_postinstall_cmds old_postuninstall_cmds \
9731     compiler \
9732     CC \
9733     LD \
9734     lt_prog_compiler_wl \
9735     lt_prog_compiler_pic \
9736     lt_prog_compiler_static \
9737     lt_prog_compiler_no_builtin_flag \
9738     export_dynamic_flag_spec \
9739     thread_safe_flag_spec \
9740     whole_archive_flag_spec \
9741     enable_shared_with_static_runtimes \
9742     old_archive_cmds \
9743     old_archive_from_new_cmds \
9744     predep_objects \
9745     postdep_objects \
9746     predeps \
9747     postdeps \
9748     compiler_lib_search_path \
9749     archive_cmds \
9750     archive_expsym_cmds \
9751     postinstall_cmds \
9752     postuninstall_cmds \
9753     old_archive_from_expsyms_cmds \
9754     allow_undefined_flag \
9755     no_undefined_flag \
9756     export_symbols_cmds \
9757     hardcode_libdir_flag_spec \
9758     hardcode_libdir_flag_spec_ld \
9759     hardcode_libdir_separator \
9760     hardcode_automatic \
9761     module_cmds \
9762     module_expsym_cmds \
9763     lt_cv_prog_compiler_c_o \
9764     exclude_expsyms \
9765     include_expsyms; do
9766
9767     case $var in
9768     old_archive_cmds | \
9769     old_archive_from_new_cmds | \
9770     archive_cmds | \
9771     archive_expsym_cmds | \
9772     module_cmds | \
9773     module_expsym_cmds | \
9774     old_archive_from_expsyms_cmds | \
9775     export_symbols_cmds | \
9776     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9777     postinstall_cmds | postuninstall_cmds | \
9778     old_postinstall_cmds | old_postuninstall_cmds | \
9779     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9780       # Double-quote double-evaled strings.
9781       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9782       ;;
9783     *)
9784       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9785       ;;
9786     esac
9787   done
9788
9789   case $lt_echo in
9790   *'\$0 --fallback-echo"')
9791     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9792     ;;
9793   esac
9794
9795 cfgfile="${ofile}T"
9796   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9797   $rm -f "$cfgfile"
9798   { echo "$as_me:$LINENO: creating $ofile" >&5
9799 echo "$as_me: creating $ofile" >&6;}
9800
9801   cat <<__EOF__ >> "$cfgfile"
9802 #! $SHELL
9803
9804 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9805 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9806 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9807 #
9808 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9809 # Free Software Foundation, Inc.
9810 #
9811 # This file is part of GNU Libtool:
9812 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9813 #
9814 # This program is free software; you can redistribute it and/or modify
9815 # it under the terms of the GNU General Public License as published by
9816 # the Free Software Foundation; either version 2 of the License, or
9817 # (at your option) any later version.
9818 #
9819 # This program is distributed in the hope that it will be useful, but
9820 # WITHOUT ANY WARRANTY; without even the implied warranty of
9821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9822 # General Public License for more details.
9823 #
9824 # You should have received a copy of the GNU General Public License
9825 # along with this program; if not, write to the Free Software
9826 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9827 #
9828 # As a special exception to the GNU General Public License, if you
9829 # distribute this file as part of a program that contains a
9830 # configuration script generated by Autoconf, you may include it under
9831 # the same distribution terms that you use for the rest of that program.
9832
9833 # A sed program that does not truncate output.
9834 SED=$lt_SED
9835
9836 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9837 Xsed="$SED -e 1s/^X//"
9838
9839 # The HP-UX ksh and POSIX shell print the target directory to stdout
9840 # if CDPATH is set.
9841 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9842
9843 # The names of the tagged configurations supported by this script.
9844 available_tags=
9845
9846 # ### BEGIN LIBTOOL CONFIG
9847
9848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9849
9850 # Shell to use when invoking shell scripts.
9851 SHELL=$lt_SHELL
9852
9853 # Whether or not to build shared libraries.
9854 build_libtool_libs=$enable_shared
9855
9856 # Whether or not to build static libraries.
9857 build_old_libs=$enable_static
9858
9859 # Whether or not to add -lc for building shared libraries.
9860 build_libtool_need_lc=$archive_cmds_need_lc
9861
9862 # Whether or not to disallow shared libs when runtime libs are static
9863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9864
9865 # Whether or not to optimize for fast installation.
9866 fast_install=$enable_fast_install
9867
9868 # The host system.
9869 host_alias=$host_alias
9870 host=$host
9871 host_os=$host_os
9872
9873 # The build system.
9874 build_alias=$build_alias
9875 build=$build
9876 build_os=$build_os
9877
9878 # An echo program that does not interpret backslashes.
9879 echo=$lt_echo
9880
9881 # The archiver.
9882 AR=$lt_AR
9883 AR_FLAGS=$lt_AR_FLAGS
9884
9885 # A C compiler.
9886 LTCC=$lt_LTCC
9887
9888 # A language-specific compiler.
9889 CC=$lt_compiler
9890
9891 # Is the compiler the GNU C compiler?
9892 with_gcc=$GCC
9893
9894 # An ERE matcher.
9895 EGREP=$lt_EGREP
9896
9897 # The linker used to build libraries.
9898 LD=$lt_LD
9899
9900 # Whether we need hard or soft links.
9901 LN_S=$lt_LN_S
9902
9903 # A BSD-compatible nm program.
9904 NM=$lt_NM
9905
9906 # A symbol stripping program
9907 STRIP=$lt_STRIP
9908
9909 # Used to examine libraries when file_magic_cmd begins "file"
9910 MAGIC_CMD=$MAGIC_CMD
9911
9912 # Used on cygwin: DLL creation program.
9913 DLLTOOL="$DLLTOOL"
9914
9915 # Used on cygwin: object dumper.
9916 OBJDUMP="$OBJDUMP"
9917
9918 # Used on cygwin: assembler.
9919 AS="$AS"
9920
9921 # The name of the directory that contains temporary libtool files.
9922 objdir=$objdir
9923
9924 # How to create reloadable object files.
9925 reload_flag=$lt_reload_flag
9926 reload_cmds=$lt_reload_cmds
9927
9928 # How to pass a linker flag through the compiler.
9929 wl=$lt_lt_prog_compiler_wl
9930
9931 # Object file suffix (normally "o").
9932 objext="$ac_objext"
9933
9934 # Old archive suffix (normally "a").
9935 libext="$libext"
9936
9937 # Shared library suffix (normally ".so").
9938 shrext_cmds='$shrext_cmds'
9939
9940 # Executable file suffix (normally "").
9941 exeext="$exeext"
9942
9943 # Additional compiler flags for building library objects.
9944 pic_flag=$lt_lt_prog_compiler_pic
9945 pic_mode=$pic_mode
9946
9947 # What is the maximum length of a command?
9948 max_cmd_len=$lt_cv_sys_max_cmd_len
9949
9950 # Does compiler simultaneously support -c and -o options?
9951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9952
9953 # Must we lock files when doing compilation?
9954 need_locks=$lt_need_locks
9955
9956 # Do we need the lib prefix for modules?
9957 need_lib_prefix=$need_lib_prefix
9958
9959 # Do we need a version for libraries?
9960 need_version=$need_version
9961
9962 # Whether dlopen is supported.
9963 dlopen_support=$enable_dlopen
9964
9965 # Whether dlopen of programs is supported.
9966 dlopen_self=$enable_dlopen_self
9967
9968 # Whether dlopen of statically linked programs is supported.
9969 dlopen_self_static=$enable_dlopen_self_static
9970
9971 # Compiler flag to prevent dynamic linking.
9972 link_static_flag=$lt_lt_prog_compiler_static
9973
9974 # Compiler flag to turn off builtin functions.
9975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9976
9977 # Compiler flag to allow reflexive dlopens.
9978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9979
9980 # Compiler flag to generate shared objects directly from archives.
9981 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9982
9983 # Compiler flag to generate thread-safe objects.
9984 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9985
9986 # Library versioning type.
9987 version_type=$version_type
9988
9989 # Format of library name prefix.
9990 libname_spec=$lt_libname_spec
9991
9992 # List of archive names.  First name is the real one, the rest are links.
9993 # The last name is the one that the linker finds with -lNAME.
9994 library_names_spec=$lt_library_names_spec
9995
9996 # The coded name of the library, if different from the real name.
9997 soname_spec=$lt_soname_spec
9998
9999 # Commands used to build and install an old-style archive.
10000 RANLIB=$lt_RANLIB
10001 old_archive_cmds=$lt_old_archive_cmds
10002 old_postinstall_cmds=$lt_old_postinstall_cmds
10003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10004
10005 # Create an old-style archive from a shared archive.
10006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10007
10008 # Create a temporary old-style archive to link instead of a shared archive.
10009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10010
10011 # Commands used to build and install a shared archive.
10012 archive_cmds=$lt_archive_cmds
10013 archive_expsym_cmds=$lt_archive_expsym_cmds
10014 postinstall_cmds=$lt_postinstall_cmds
10015 postuninstall_cmds=$lt_postuninstall_cmds
10016
10017 # Commands used to build a loadable module (assumed same as above if empty)
10018 module_cmds=$lt_module_cmds
10019 module_expsym_cmds=$lt_module_expsym_cmds
10020
10021 # Commands to strip libraries.
10022 old_striplib=$lt_old_striplib
10023 striplib=$lt_striplib
10024
10025 # Dependencies to place before the objects being linked to create a
10026 # shared library.
10027 predep_objects=$lt_predep_objects
10028
10029 # Dependencies to place after the objects being linked to create a
10030 # shared library.
10031 postdep_objects=$lt_postdep_objects
10032
10033 # Dependencies to place before the objects being linked to create a
10034 # shared library.
10035 predeps=$lt_predeps
10036
10037 # Dependencies to place after the objects being linked to create a
10038 # shared library.
10039 postdeps=$lt_postdeps
10040
10041 # The library search path used internally by the compiler when linking
10042 # a shared library.
10043 compiler_lib_search_path=$lt_compiler_lib_search_path
10044
10045 # Method to check whether dependent libraries are shared objects.
10046 deplibs_check_method=$lt_deplibs_check_method
10047
10048 # Command to use when deplibs_check_method == file_magic.
10049 file_magic_cmd=$lt_file_magic_cmd
10050
10051 # Flag that allows shared libraries with undefined symbols to be built.
10052 allow_undefined_flag=$lt_allow_undefined_flag
10053
10054 # Flag that forces no undefined symbols.
10055 no_undefined_flag=$lt_no_undefined_flag
10056
10057 # Commands used to finish a libtool library installation in a directory.
10058 finish_cmds=$lt_finish_cmds
10059
10060 # Same as above, but a single script fragment to be evaled but not shown.
10061 finish_eval=$lt_finish_eval
10062
10063 # Take the output of nm and produce a listing of raw symbols and C names.
10064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10065
10066 # Transform the output of nm in a proper C declaration
10067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10068
10069 # Transform the output of nm in a C name address pair
10070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10071
10072 # This is the shared library runtime path variable.
10073 runpath_var=$runpath_var
10074
10075 # This is the shared library path variable.
10076 shlibpath_var=$shlibpath_var
10077
10078 # Is shlibpath searched before the hard-coded library search path?
10079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10080
10081 # How to hardcode a shared library path into an executable.
10082 hardcode_action=$hardcode_action
10083
10084 # Whether we should hardcode library paths into libraries.
10085 hardcode_into_libs=$hardcode_into_libs
10086
10087 # Flag to hardcode \$libdir into a binary during linking.
10088 # This must work even if \$libdir does not exist.
10089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10090
10091 # If ld is used when linking, flag to hardcode \$libdir into
10092 # a binary during linking. This must work even if \$libdir does
10093 # not exist.
10094 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10095
10096 # Whether we need a single -rpath flag with a separated argument.
10097 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10098
10099 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10100 # resulting binary.
10101 hardcode_direct=$hardcode_direct
10102
10103 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10104 # resulting binary.
10105 hardcode_minus_L=$hardcode_minus_L
10106
10107 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10108 # the resulting binary.
10109 hardcode_shlibpath_var=$hardcode_shlibpath_var
10110
10111 # Set to yes if building a shared library automatically hardcodes DIR into the library
10112 # and all subsequent libraries and executables linked against it.
10113 hardcode_automatic=$hardcode_automatic
10114
10115 # Variables whose values should be saved in libtool wrapper scripts and
10116 # restored at relink time.
10117 variables_saved_for_relink="$variables_saved_for_relink"
10118
10119 # Whether libtool must link a program against all its dependency libraries.
10120 link_all_deplibs=$link_all_deplibs
10121
10122 # Compile-time system search path for libraries
10123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10124
10125 # Run-time system search path for libraries
10126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10127
10128 # Fix the shell variable \$srcfile for the compiler.
10129 fix_srcfile_path="$fix_srcfile_path"
10130
10131 # Set to yes if exported symbols are required.
10132 always_export_symbols=$always_export_symbols
10133
10134 # The commands to list exported symbols.
10135 export_symbols_cmds=$lt_export_symbols_cmds
10136
10137 # The commands to extract the exported symbol list from a shared archive.
10138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10139
10140 # Symbols that should not be listed in the preloaded symbols.
10141 exclude_expsyms=$lt_exclude_expsyms
10142
10143 # Symbols that must always be exported.
10144 include_expsyms=$lt_include_expsyms
10145
10146 # ### END LIBTOOL CONFIG
10147
10148 __EOF__
10149
10150
10151   case $host_os in
10152   aix3*)
10153     cat <<\EOF >> "$cfgfile"
10154
10155 # AIX sometimes has problems with the GCC collect2 program.  For some
10156 # reason, if we set the COLLECT_NAMES environment variable, the problems
10157 # vanish in a puff of smoke.
10158 if test "X${COLLECT_NAMES+set}" != Xset; then
10159   COLLECT_NAMES=
10160   export COLLECT_NAMES
10161 fi
10162 EOF
10163     ;;
10164   esac
10165
10166   # We use sed instead of cat because bash on DJGPP gets confused if
10167   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10168   # text mode, it properly converts lines to CR/LF.  This bash problem
10169   # is reportedly fixed, but why not run on old versions too?
10170   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10171
10172   mv -f "$cfgfile" "$ofile" || \
10173     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10174   chmod +x "$ofile"
10175
10176 else
10177   # If there is no Makefile yet, we rely on a make rule to execute
10178   # `config.status --recheck' to rerun these tests and create the
10179   # libtool script then.
10180   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10181   if test -f "$ltmain_in"; then
10182     test -f Makefile && make "$ltmain"
10183   fi
10184 fi
10185
10186
10187 ac_ext=c
10188 ac_cpp='$CPP $CPPFLAGS'
10189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10192
10193 CC="$lt_save_CC"
10194
10195
10196 # Check whether --with-tags or --without-tags was given.
10197 if test "${with_tags+set}" = set; then
10198   withval="$with_tags"
10199   tagnames="$withval"
10200 fi;
10201
10202 if test -f "$ltmain" && test -n "$tagnames"; then
10203   if test ! -f "${ofile}"; then
10204     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10205 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10206   fi
10207
10208   if test -z "$LTCC"; then
10209     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10210     if test -z "$LTCC"; then
10211       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10212 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10213     else
10214       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10215 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10216     fi
10217   fi
10218
10219   # Extract list of available tagged configurations in $ofile.
10220   # Note that this assumes the entire list is on one line.
10221   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10222
10223   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10224   for tagname in $tagnames; do
10225     IFS="$lt_save_ifs"
10226     # Check whether tagname contains only valid characters
10227     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10228     "") ;;
10229     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10230 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10231    { (exit 1); exit 1; }; }
10232         ;;
10233     esac
10234
10235     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10236     then
10237       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10238 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10239    { (exit 1); exit 1; }; }
10240     fi
10241
10242     # Update the list of available tags.
10243     if test -n "$tagname"; then
10244       echo appending configuration tag \"$tagname\" to $ofile
10245
10246       case $tagname in
10247       CXX)
10248         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10249             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10250             (test "X$CXX" != "Xg++"))) ; then
10251           ac_ext=cc
10252 ac_cpp='$CXXCPP $CPPFLAGS'
10253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10256
10257
10258
10259
10260 archive_cmds_need_lc_CXX=no
10261 allow_undefined_flag_CXX=
10262 always_export_symbols_CXX=no
10263 archive_expsym_cmds_CXX=
10264 export_dynamic_flag_spec_CXX=
10265 hardcode_direct_CXX=no
10266 hardcode_libdir_flag_spec_CXX=
10267 hardcode_libdir_flag_spec_ld_CXX=
10268 hardcode_libdir_separator_CXX=
10269 hardcode_minus_L_CXX=no
10270 hardcode_automatic_CXX=no
10271 module_cmds_CXX=
10272 module_expsym_cmds_CXX=
10273 link_all_deplibs_CXX=unknown
10274 old_archive_cmds_CXX=$old_archive_cmds
10275 no_undefined_flag_CXX=
10276 whole_archive_flag_spec_CXX=
10277 enable_shared_with_static_runtimes_CXX=no
10278
10279 # Dependencies to place before and after the object being linked:
10280 predep_objects_CXX=
10281 postdep_objects_CXX=
10282 predeps_CXX=
10283 postdeps_CXX=
10284 compiler_lib_search_path_CXX=
10285
10286 # Source file extension for C++ test sources.
10287 ac_ext=cpp
10288
10289 # Object file extension for compiled C++ test sources.
10290 objext=o
10291 objext_CXX=$objext
10292
10293 # Code to be used in simple compile tests
10294 lt_simple_compile_test_code="int some_variable = 0;\n"
10295
10296 # Code to be used in simple link tests
10297 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10298
10299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10300
10301 # If no C compiler was specified, use CC.
10302 LTCC=${LTCC-"$CC"}
10303
10304 # Allow CC to be a program name with arguments.
10305 compiler=$CC
10306
10307
10308 # save warnings/boilerplate of simple test code
10309 ac_outfile=conftest.$ac_objext
10310 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10312 _lt_compiler_boilerplate=`cat conftest.err`
10313 $rm conftest*
10314
10315 ac_outfile=conftest.$ac_objext
10316 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10317 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10318 _lt_linker_boilerplate=`cat conftest.err`
10319 $rm conftest*
10320
10321
10322 # Allow CC to be a program name with arguments.
10323 lt_save_CC=$CC
10324 lt_save_LD=$LD
10325 lt_save_GCC=$GCC
10326 GCC=$GXX
10327 lt_save_with_gnu_ld=$with_gnu_ld
10328 lt_save_path_LD=$lt_cv_path_LD
10329 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10330   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10331 else
10332   unset lt_cv_prog_gnu_ld
10333 fi
10334 if test -n "${lt_cv_path_LDCXX+set}"; then
10335   lt_cv_path_LD=$lt_cv_path_LDCXX
10336 else
10337   unset lt_cv_path_LD
10338 fi
10339 test -z "${LDCXX+set}" || LD=$LDCXX
10340 CC=${CXX-"c++"}
10341 compiler=$CC
10342 compiler_CXX=$CC
10343 for cc_temp in $compiler""; do
10344   case $cc_temp in
10345     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10346     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10347     \-*) ;;
10348     *) break;;
10349   esac
10350 done
10351 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10352
10353
10354 # We don't want -fno-exception wen compiling C++ code, so set the
10355 # no_builtin_flag separately
10356 if test "$GXX" = yes; then
10357   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10358 else
10359   lt_prog_compiler_no_builtin_flag_CXX=
10360 fi
10361
10362 if test "$GXX" = yes; then
10363   # Set up default GNU C++ configuration
10364
10365
10366 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10367 if test "${with_gnu_ld+set}" = set; then
10368   withval="$with_gnu_ld"
10369   test "$withval" = no || with_gnu_ld=yes
10370 else
10371   with_gnu_ld=no
10372 fi;
10373 ac_prog=ld
10374 if test "$GCC" = yes; then
10375   # Check if gcc -print-prog-name=ld gives a path.
10376   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10377 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10378   case $host in
10379   *-*-mingw*)
10380     # gcc leaves a trailing carriage return which upsets mingw
10381     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10382   *)
10383     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10384   esac
10385   case $ac_prog in
10386     # Accept absolute paths.
10387     [\\/]* | ?:[\\/]*)
10388       re_direlt='/[^/][^/]*/\.\./'
10389       # Canonicalize the pathname of ld
10390       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10391       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10392         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10393       done
10394       test -z "$LD" && LD="$ac_prog"
10395       ;;
10396   "")
10397     # If it fails, then pretend we aren't using GCC.
10398     ac_prog=ld
10399     ;;
10400   *)
10401     # If it is relative, then search for the first ld in PATH.
10402     with_gnu_ld=unknown
10403     ;;
10404   esac
10405 elif test "$with_gnu_ld" = yes; then
10406   echo "$as_me:$LINENO: checking for GNU ld" >&5
10407 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10408 else
10409   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10410 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10411 fi
10412 if test "${lt_cv_path_LD+set}" = set; then
10413   echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415   if test -z "$LD"; then
10416   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10417   for ac_dir in $PATH; do
10418     IFS="$lt_save_ifs"
10419     test -z "$ac_dir" && ac_dir=.
10420     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10421       lt_cv_path_LD="$ac_dir/$ac_prog"
10422       # Check to see if the program is GNU ld.  I'd rather use --version,
10423       # but apparently some variants of GNU ld only accept -v.
10424       # Break only if it was the GNU/non-GNU ld that we prefer.
10425       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10426       *GNU* | *'with BFD'*)
10427         test "$with_gnu_ld" != no && break
10428         ;;
10429       *)
10430         test "$with_gnu_ld" != yes && break
10431         ;;
10432       esac
10433     fi
10434   done
10435   IFS="$lt_save_ifs"
10436 else
10437   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10438 fi
10439 fi
10440
10441 LD="$lt_cv_path_LD"
10442 if test -n "$LD"; then
10443   echo "$as_me:$LINENO: result: $LD" >&5
10444 echo "${ECHO_T}$LD" >&6
10445 else
10446   echo "$as_me:$LINENO: result: no" >&5
10447 echo "${ECHO_T}no" >&6
10448 fi
10449 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10450 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10451    { (exit 1); exit 1; }; }
10452 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10453 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10454 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10458 case `$LD -v 2>&1 </dev/null` in
10459 *GNU* | *'with BFD'*)
10460   lt_cv_prog_gnu_ld=yes
10461   ;;
10462 *)
10463   lt_cv_prog_gnu_ld=no
10464   ;;
10465 esac
10466 fi
10467 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10468 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10469 with_gnu_ld=$lt_cv_prog_gnu_ld
10470
10471
10472
10473   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10474   # archiving commands below assume that GNU ld is being used.
10475   if test "$with_gnu_ld" = yes; then
10476     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10477     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'
10478
10479     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10480     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10481
10482     # If archive_cmds runs LD, not CC, wlarc should be empty
10483     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10484     #     investigate it a little bit more. (MM)
10485     wlarc='${wl}'
10486
10487     # ancient GNU ld didn't support --whole-archive et. al.
10488     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10489         grep 'no-whole-archive' > /dev/null; then
10490       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10491     else
10492       whole_archive_flag_spec_CXX=
10493     fi
10494   else
10495     with_gnu_ld=no
10496     wlarc=
10497
10498     # A generic and very simple default shared library creation
10499     # command for GNU C++ for the case where it uses the native
10500     # linker, instead of GNU ld.  If possible, this setting should
10501     # overridden to take advantage of the native linker features on
10502     # the platform it is being used on.
10503     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10504   fi
10505
10506   # Commands to make compiler produce verbose output that lists
10507   # what "hidden" libraries, object files and flags are used when
10508   # linking a shared library.
10509   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10510
10511 else
10512   GXX=no
10513   with_gnu_ld=no
10514   wlarc=
10515 fi
10516
10517 # PORTME: fill in a description of your system's C++ link characteristics
10518 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10519 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10520 ld_shlibs_CXX=yes
10521 case $host_os in
10522   aix3*)
10523     # FIXME: insert proper C++ library support
10524     ld_shlibs_CXX=no
10525     ;;
10526   aix4* | aix5*)
10527     if test "$host_cpu" = ia64; then
10528       # On IA64, the linker does run time linking by default, so we don't
10529       # have to do anything special.
10530       aix_use_runtimelinking=no
10531       exp_sym_flag='-Bexport'
10532       no_entry_flag=""
10533     else
10534       aix_use_runtimelinking=no
10535
10536       # Test if we are trying to use run time linking or normal
10537       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10538       # need to do runtime linking.
10539       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10540         for ld_flag in $LDFLAGS; do
10541           case $ld_flag in
10542           *-brtl*)
10543             aix_use_runtimelinking=yes
10544             break
10545             ;;
10546           esac
10547         done
10548       esac
10549
10550       exp_sym_flag='-bexport'
10551       no_entry_flag='-bnoentry'
10552     fi
10553
10554     # When large executables or shared objects are built, AIX ld can
10555     # have problems creating the table of contents.  If linking a library
10556     # or program results in "error TOC overflow" add -mminimal-toc to
10557     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10558     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10559
10560     archive_cmds_CXX=''
10561     hardcode_direct_CXX=yes
10562     hardcode_libdir_separator_CXX=':'
10563     link_all_deplibs_CXX=yes
10564
10565     if test "$GXX" = yes; then
10566       case $host_os in aix4.[012]|aix4.[012].*)
10567       # We only want to do this on AIX 4.2 and lower, the check
10568       # below for broken collect2 doesn't work under 4.3+
10569         collect2name=`${CC} -print-prog-name=collect2`
10570         if test -f "$collect2name" && \
10571            strings "$collect2name" | grep resolve_lib_name >/dev/null
10572         then
10573           # We have reworked collect2
10574           hardcode_direct_CXX=yes
10575         else
10576           # We have old collect2
10577           hardcode_direct_CXX=unsupported
10578           # It fails to find uninstalled libraries when the uninstalled
10579           # path is not listed in the libpath.  Setting hardcode_minus_L
10580           # to unsupported forces relinking
10581           hardcode_minus_L_CXX=yes
10582           hardcode_libdir_flag_spec_CXX='-L$libdir'
10583           hardcode_libdir_separator_CXX=
10584         fi
10585       esac
10586       shared_flag='-shared'
10587       if test "$aix_use_runtimelinking" = yes; then
10588         shared_flag="$shared_flag "'${wl}-G'
10589       fi
10590     else
10591       # not using gcc
10592       if test "$host_cpu" = ia64; then
10593         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10594         # chokes on -Wl,-G. The following line is correct:
10595         shared_flag='-G'
10596       else
10597         if test "$aix_use_runtimelinking" = yes; then
10598           shared_flag='${wl}-G'
10599         else
10600           shared_flag='${wl}-bM:SRE'
10601         fi
10602       fi
10603     fi
10604
10605     # It seems that -bexpall does not export symbols beginning with
10606     # underscore (_), so it is better to generate a list of symbols to export.
10607     always_export_symbols_CXX=yes
10608     if test "$aix_use_runtimelinking" = yes; then
10609       # Warning - without using the other runtime loading flags (-brtl),
10610       # -berok will link without error, but may produce a broken library.
10611       allow_undefined_flag_CXX='-berok'
10612       # Determine the default libpath from the value encoded in an empty executable.
10613       cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619
10620 int
10621 main ()
10622 {
10623
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630   (eval $ac_link) 2>conftest.er1
10631   ac_status=$?
10632   grep -v '^ *+' conftest.er1 >conftest.err
10633   rm -f conftest.er1
10634   cat conftest.err >&5
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); } &&
10637          { ac_try='test -z "$ac_cxx_werror_flag"
10638                          || test ! -s conftest.err'
10639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640   (eval $ac_try) 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; } &&
10644          { ac_try='test -s conftest$ac_exeext'
10645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646   (eval $ac_try) 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; }; then
10650
10651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10652 }'`
10653 # Check for a 64-bit object if we didn't find anything.
10654 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; }
10655 }'`; fi
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 fi
10661 rm -f conftest.err conftest.$ac_objext \
10662       conftest$ac_exeext conftest.$ac_ext
10663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10664
10665       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10666
10667       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"
10668      else
10669       if test "$host_cpu" = ia64; then
10670         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10671         allow_undefined_flag_CXX="-z nodefs"
10672         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"
10673       else
10674         # Determine the default libpath from the value encoded in an empty executable.
10675         cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681
10682 int
10683 main ()
10684 {
10685
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692   (eval $ac_link) 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } &&
10699          { ac_try='test -z "$ac_cxx_werror_flag"
10700                          || test ! -s conftest.err'
10701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702   (eval $ac_try) 2>&5
10703   ac_status=$?
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); }; } &&
10706          { ac_try='test -s conftest$ac_exeext'
10707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708   (eval $ac_try) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; }; then
10712
10713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10714 }'`
10715 # Check for a 64-bit object if we didn't find anything.
10716 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; }
10717 }'`; fi
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 fi
10723 rm -f conftest.err conftest.$ac_objext \
10724       conftest$ac_exeext conftest.$ac_ext
10725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10726
10727         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10728         # Warning - without using the other run time loading flags,
10729         # -berok will link without error, but may produce a broken library.
10730         no_undefined_flag_CXX=' ${wl}-bernotok'
10731         allow_undefined_flag_CXX=' ${wl}-berok'
10732         # -bexpall does not export symbols beginning with underscore (_)
10733         always_export_symbols_CXX=yes
10734         # Exported symbols can be pulled into shared objects from archives
10735         whole_archive_flag_spec_CXX=' '
10736         archive_cmds_need_lc_CXX=yes
10737         # This is similar to how AIX traditionally builds its shared libraries.
10738         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'
10739       fi
10740     fi
10741     ;;
10742   chorus*)
10743     case $cc_basename in
10744       *)
10745         # FIXME: insert proper C++ library support
10746         ld_shlibs_CXX=no
10747         ;;
10748     esac
10749     ;;
10750
10751
10752   cygwin* | mingw* | pw32*)
10753     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10754     # as there is no search path for DLLs.
10755     hardcode_libdir_flag_spec_CXX='-L$libdir'
10756     allow_undefined_flag_CXX=unsupported
10757     always_export_symbols_CXX=no
10758     enable_shared_with_static_runtimes_CXX=yes
10759
10760     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10761       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'
10762       # If the export-symbols file already is a .def file (1st line
10763       # is EXPORTS), use it as is; otherwise, prepend...
10764       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10765         cp $export_symbols $output_objdir/$soname.def;
10766       else
10767         echo EXPORTS > $output_objdir/$soname.def;
10768         cat $export_symbols >> $output_objdir/$soname.def;
10769       fi~
10770       $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'
10771     else
10772       ld_shlibs_CXX=no
10773     fi
10774   ;;
10775       darwin* | rhapsody*)
10776         case $host_os in
10777         rhapsody* | darwin1.[012])
10778          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10779          ;;
10780        *) # Darwin 1.3 on
10781          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10782            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10783          else
10784            case ${MACOSX_DEPLOYMENT_TARGET} in
10785              10.[012])
10786                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10787                ;;
10788              10.*)
10789                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10790                ;;
10791            esac
10792          fi
10793          ;;
10794         esac
10795       archive_cmds_need_lc_CXX=no
10796       hardcode_direct_CXX=no
10797       hardcode_automatic_CXX=yes
10798       hardcode_shlibpath_var_CXX=unsupported
10799       whole_archive_flag_spec_CXX=''
10800       link_all_deplibs_CXX=yes
10801
10802     if test "$GXX" = yes ; then
10803       lt_int_apple_cc_single_mod=no
10804       output_verbose_link_cmd='echo'
10805       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10806        lt_int_apple_cc_single_mod=yes
10807       fi
10808       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10809        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10810       else
10811           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'
10812         fi
10813         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10814         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10815           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10816             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}'
10817           else
10818             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}'
10819           fi
10820             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}'
10821       else
10822       case $cc_basename in
10823         xlc*)
10824          output_verbose_link_cmd='echo'
10825           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'
10826           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10827           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10828           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}'
10829           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}'
10830           ;;
10831        *)
10832          ld_shlibs_CXX=no
10833           ;;
10834       esac
10835       fi
10836         ;;
10837
10838   dgux*)
10839     case $cc_basename in
10840       ec++*)
10841         # FIXME: insert proper C++ library support
10842         ld_shlibs_CXX=no
10843         ;;
10844       ghcx*)
10845         # Green Hills C++ Compiler
10846         # FIXME: insert proper C++ library support
10847         ld_shlibs_CXX=no
10848         ;;
10849       *)
10850         # FIXME: insert proper C++ library support
10851         ld_shlibs_CXX=no
10852         ;;
10853     esac
10854     ;;
10855   freebsd[12]*)
10856     # C++ shared libraries reported to be fairly broken before switch to ELF
10857     ld_shlibs_CXX=no
10858     ;;
10859   freebsd-elf*)
10860     archive_cmds_need_lc_CXX=no
10861     ;;
10862   freebsd* | kfreebsd*-gnu | dragonfly*)
10863     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10864     # conventions
10865     ld_shlibs_CXX=yes
10866     ;;
10867   gnu*)
10868     ;;
10869   hpux9*)
10870     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10871     hardcode_libdir_separator_CXX=:
10872     export_dynamic_flag_spec_CXX='${wl}-E'
10873     hardcode_direct_CXX=yes
10874     hardcode_minus_L_CXX=yes # Not in the search PATH,
10875                                 # but as the default
10876                                 # location of the library.
10877
10878     case $cc_basename in
10879     CC*)
10880       # FIXME: insert proper C++ library support
10881       ld_shlibs_CXX=no
10882       ;;
10883     aCC*)
10884       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'
10885       # Commands to make compiler produce verbose output that lists
10886       # what "hidden" libraries, object files and flags are used when
10887       # linking a shared library.
10888       #
10889       # There doesn't appear to be a way to prevent this compiler from
10890       # explicitly linking system object files so we need to strip them
10891       # from the output so that they don't get included in the library
10892       # dependencies.
10893       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'
10894       ;;
10895     *)
10896       if test "$GXX" = yes; then
10897         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'
10898       else
10899         # FIXME: insert proper C++ library support
10900         ld_shlibs_CXX=no
10901       fi
10902       ;;
10903     esac
10904     ;;
10905   hpux10*|hpux11*)
10906     if test $with_gnu_ld = no; then
10907       case $host_cpu in
10908       hppa*64*)
10909         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10910         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10911         hardcode_libdir_separator_CXX=:
10912         ;;
10913       ia64*)
10914         hardcode_libdir_flag_spec_CXX='-L$libdir'
10915         ;;
10916       *)
10917         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10918         hardcode_libdir_separator_CXX=:
10919         export_dynamic_flag_spec_CXX='${wl}-E'
10920         ;;
10921       esac
10922     fi
10923     case $host_cpu in
10924     hppa*64*)
10925       hardcode_direct_CXX=no
10926       hardcode_shlibpath_var_CXX=no
10927       ;;
10928     ia64*)
10929       hardcode_direct_CXX=no
10930       hardcode_shlibpath_var_CXX=no
10931       hardcode_minus_L_CXX=yes # Not in the search PATH,
10932                                               # but as the default
10933                                               # location of the library.
10934       ;;
10935     *)
10936       hardcode_direct_CXX=yes
10937       hardcode_minus_L_CXX=yes # Not in the search PATH,
10938                                               # but as the default
10939                                               # location of the library.
10940       ;;
10941     esac
10942
10943     case $cc_basename in
10944       CC*)
10945         # FIXME: insert proper C++ library support
10946         ld_shlibs_CXX=no
10947         ;;
10948       aCC*)
10949         case $host_cpu in
10950         hppa*64*|ia64*)
10951           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10952           ;;
10953         *)
10954           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10955           ;;
10956         esac
10957         # Commands to make compiler produce verbose output that lists
10958         # what "hidden" libraries, object files and flags are used when
10959         # linking a shared library.
10960         #
10961         # There doesn't appear to be a way to prevent this compiler from
10962         # explicitly linking system object files so we need to strip them
10963         # from the output so that they don't get included in the library
10964         # dependencies.
10965         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'
10966         ;;
10967       *)
10968         if test "$GXX" = yes; then
10969           if test $with_gnu_ld = no; then
10970             case $host_cpu in
10971             ia64*|hppa*64*)
10972               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10973               ;;
10974             *)
10975               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'
10976               ;;
10977             esac
10978           fi
10979         else
10980           # FIXME: insert proper C++ library support
10981           ld_shlibs_CXX=no
10982         fi
10983         ;;
10984     esac
10985     ;;
10986   irix5* | irix6*)
10987     case $cc_basename in
10988       CC*)
10989         # SGI C++
10990         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'
10991
10992         # Archives containing C++ object files must be created using
10993         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10994         # necessary to make sure instantiated templates are included
10995         # in the archive.
10996         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10997         ;;
10998       *)
10999         if test "$GXX" = yes; then
11000           if test "$with_gnu_ld" = no; then
11001             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'
11002           else
11003             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'
11004           fi
11005         fi
11006         link_all_deplibs_CXX=yes
11007         ;;
11008     esac
11009     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11010     hardcode_libdir_separator_CXX=:
11011     ;;
11012   linux*)
11013     case $cc_basename in
11014       KCC*)
11015         # Kuck and Associates, Inc. (KAI) C++ Compiler
11016
11017         # KCC will only create a shared library if the output file
11018         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11019         # to its proper name (with version) after linking.
11020         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'
11021         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'
11022         # Commands to make compiler produce verbose output that lists
11023         # what "hidden" libraries, object files and flags are used when
11024         # linking a shared library.
11025         #
11026         # There doesn't appear to be a way to prevent this compiler from
11027         # explicitly linking system object files so we need to strip them
11028         # from the output so that they don't get included in the library
11029         # dependencies.
11030         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'
11031
11032         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11033         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11034
11035         # Archives containing C++ object files must be created using
11036         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11037         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11038         ;;
11039       icpc*)
11040         # Intel C++
11041         with_gnu_ld=yes
11042         # version 8.0 and above of icpc choke on multiply defined symbols
11043         # if we add $predep_objects and $postdep_objects, however 7.1 and
11044         # earlier do not add the objects themselves.
11045         case `$CC -V 2>&1` in
11046         *"Version 7."*)
11047           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048           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'
11049           ;;
11050         *)  # Version 8.0 or newer
11051           tmp_idyn=
11052           case $host_cpu in
11053             ia64*) tmp_idyn=' -i_dynamic';;
11054           esac
11055           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11056           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'
11057           ;;
11058         esac
11059         archive_cmds_need_lc_CXX=no
11060         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11061         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11062         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11063         ;;
11064       pgCC*)
11065         # Portland Group C++ compiler
11066         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11067         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'
11068
11069         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11070         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11071         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'
11072         ;;
11073       cxx*)
11074         # Compaq C++
11075         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11076         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'
11077
11078         runpath_var=LD_RUN_PATH
11079         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11080         hardcode_libdir_separator_CXX=:
11081
11082         # Commands to make compiler produce verbose output that lists
11083         # what "hidden" libraries, object files and flags are used when
11084         # linking a shared library.
11085         #
11086         # There doesn't appear to be a way to prevent this compiler from
11087         # explicitly linking system object files so we need to strip them
11088         # from the output so that they don't get included in the library
11089         # dependencies.
11090         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'
11091         ;;
11092     esac
11093     ;;
11094   lynxos*)
11095     # FIXME: insert proper C++ library support
11096     ld_shlibs_CXX=no
11097     ;;
11098   m88k*)
11099     # FIXME: insert proper C++ library support
11100     ld_shlibs_CXX=no
11101     ;;
11102   mvs*)
11103     case $cc_basename in
11104       cxx*)
11105         # FIXME: insert proper C++ library support
11106         ld_shlibs_CXX=no
11107         ;;
11108       *)
11109         # FIXME: insert proper C++ library support
11110         ld_shlibs_CXX=no
11111         ;;
11112     esac
11113     ;;
11114   netbsd*)
11115     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11116       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11117       wlarc=
11118       hardcode_libdir_flag_spec_CXX='-R$libdir'
11119       hardcode_direct_CXX=yes
11120       hardcode_shlibpath_var_CXX=no
11121     fi
11122     # Workaround some broken pre-1.5 toolchains
11123     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11124     ;;
11125   openbsd2*)
11126     # C++ shared libraries are fairly broken
11127     ld_shlibs_CXX=no
11128     ;;
11129   openbsd*)
11130     hardcode_direct_CXX=yes
11131     hardcode_shlibpath_var_CXX=no
11132     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11133     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11134     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11135       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11136       export_dynamic_flag_spec_CXX='${wl}-E'
11137       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11138     fi
11139     output_verbose_link_cmd='echo'
11140     ;;
11141   osf3*)
11142     case $cc_basename in
11143       KCC*)
11144         # Kuck and Associates, Inc. (KAI) C++ Compiler
11145
11146         # KCC will only create a shared library if the output file
11147         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11148         # to its proper name (with version) after linking.
11149         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'
11150
11151         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11152         hardcode_libdir_separator_CXX=:
11153
11154         # Archives containing C++ object files must be created using
11155         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11156         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11157
11158         ;;
11159       RCC*)
11160         # Rational C++ 2.4.1
11161         # FIXME: insert proper C++ library support
11162         ld_shlibs_CXX=no
11163         ;;
11164       cxx*)
11165         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11166         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'
11167
11168         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11169         hardcode_libdir_separator_CXX=:
11170
11171         # Commands to make compiler produce verbose output that lists
11172         # what "hidden" libraries, object files and flags are used when
11173         # linking a shared library.
11174         #
11175         # There doesn't appear to be a way to prevent this compiler from
11176         # explicitly linking system object files so we need to strip them
11177         # from the output so that they don't get included in the library
11178         # dependencies.
11179         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'
11180         ;;
11181       *)
11182         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11183           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11184           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'
11185
11186           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11187           hardcode_libdir_separator_CXX=:
11188
11189           # Commands to make compiler produce verbose output that lists
11190           # what "hidden" libraries, object files and flags are used when
11191           # linking a shared library.
11192           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11193
11194         else
11195           # FIXME: insert proper C++ library support
11196           ld_shlibs_CXX=no
11197         fi
11198         ;;
11199     esac
11200     ;;
11201   osf4* | osf5*)
11202     case $cc_basename in
11203       KCC*)
11204         # Kuck and Associates, Inc. (KAI) C++ Compiler
11205
11206         # KCC will only create a shared library if the output file
11207         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11208         # to its proper name (with version) after linking.
11209         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'
11210
11211         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11212         hardcode_libdir_separator_CXX=:
11213
11214         # Archives containing C++ object files must be created using
11215         # the KAI C++ compiler.
11216         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11217         ;;
11218       RCC*)
11219         # Rational C++ 2.4.1
11220         # FIXME: insert proper C++ library support
11221         ld_shlibs_CXX=no
11222         ;;
11223       cxx*)
11224         allow_undefined_flag_CXX=' -expect_unresolved \*'
11225         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'
11226         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11227           echo "-hidden">> $lib.exp~
11228           $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~
11229           $rm $lib.exp'
11230
11231         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11232         hardcode_libdir_separator_CXX=:
11233
11234         # Commands to make compiler produce verbose output that lists
11235         # what "hidden" libraries, object files and flags are used when
11236         # linking a shared library.
11237         #
11238         # There doesn't appear to be a way to prevent this compiler from
11239         # explicitly linking system object files so we need to strip them
11240         # from the output so that they don't get included in the library
11241         # dependencies.
11242         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'
11243         ;;
11244       *)
11245         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11246           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11247          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'
11248
11249           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11250           hardcode_libdir_separator_CXX=:
11251
11252           # Commands to make compiler produce verbose output that lists
11253           # what "hidden" libraries, object files and flags are used when
11254           # linking a shared library.
11255           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11256
11257         else
11258           # FIXME: insert proper C++ library support
11259           ld_shlibs_CXX=no
11260         fi
11261         ;;
11262     esac
11263     ;;
11264   psos*)
11265     # FIXME: insert proper C++ library support
11266     ld_shlibs_CXX=no
11267     ;;
11268   sco*)
11269     archive_cmds_need_lc_CXX=no
11270     case $cc_basename in
11271       CC*)
11272         # FIXME: insert proper C++ library support
11273         ld_shlibs_CXX=no
11274         ;;
11275       *)
11276         # FIXME: insert proper C++ library support
11277         ld_shlibs_CXX=no
11278         ;;
11279     esac
11280     ;;
11281   sunos4*)
11282     case $cc_basename in
11283       CC*)
11284         # Sun C++ 4.x
11285         # FIXME: insert proper C++ library support
11286         ld_shlibs_CXX=no
11287         ;;
11288       lcc*)
11289         # Lucid
11290         # FIXME: insert proper C++ library support
11291         ld_shlibs_CXX=no
11292         ;;
11293       *)
11294         # FIXME: insert proper C++ library support
11295         ld_shlibs_CXX=no
11296         ;;
11297     esac
11298     ;;
11299   solaris*)
11300     case $cc_basename in
11301       CC*)
11302         # Sun C++ 4.2, 5.x and Centerline C++
11303         archive_cmds_need_lc_CXX=yes
11304         no_undefined_flag_CXX=' -zdefs'
11305         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11306         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11307         $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'
11308
11309         hardcode_libdir_flag_spec_CXX='-R$libdir'
11310         hardcode_shlibpath_var_CXX=no
11311         case $host_os in
11312           solaris2.[0-5] | solaris2.[0-5].*) ;;
11313           *)
11314             # The C++ compiler is used as linker so we must use $wl
11315             # flag to pass the commands to the underlying system
11316             # linker. We must also pass each convience library through
11317             # to the system linker between allextract/defaultextract.
11318             # The C++ compiler will combine linker options so we
11319             # cannot just pass the convience library names through
11320             # without $wl.
11321             # Supported since Solaris 2.6 (maybe 2.5.1?)
11322             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'
11323             ;;
11324         esac
11325         link_all_deplibs_CXX=yes
11326
11327         output_verbose_link_cmd='echo'
11328
11329         # Archives containing C++ object files must be created using
11330         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11331         # necessary to make sure instantiated templates are included
11332         # in the archive.
11333         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11334         ;;
11335       gcx*)
11336         # Green Hills C++ Compiler
11337         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11338
11339         # The C++ compiler must be used to create the archive.
11340         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11341         ;;
11342       *)
11343         # GNU C++ compiler with Solaris linker
11344         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11345           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11346           if $CC --version | grep -v '^2\.7' > /dev/null; then
11347             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11348             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11349                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11350
11351             # Commands to make compiler produce verbose output that lists
11352             # what "hidden" libraries, object files and flags are used when
11353             # linking a shared library.
11354             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11355           else
11356             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11357             # platform.
11358             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11359             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11360                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11361
11362             # Commands to make compiler produce verbose output that lists
11363             # what "hidden" libraries, object files and flags are used when
11364             # linking a shared library.
11365             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11366           fi
11367
11368           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11369         fi
11370         ;;
11371     esac
11372     ;;
11373   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11374     archive_cmds_need_lc_CXX=no
11375     ;;
11376   tandem*)
11377     case $cc_basename in
11378       NCC*)
11379         # NonStop-UX NCC 3.20
11380         # FIXME: insert proper C++ library support
11381         ld_shlibs_CXX=no
11382         ;;
11383       *)
11384         # FIXME: insert proper C++ library support
11385         ld_shlibs_CXX=no
11386         ;;
11387     esac
11388     ;;
11389   vxworks*)
11390     # FIXME: insert proper C++ library support
11391     ld_shlibs_CXX=no
11392     ;;
11393   *)
11394     # FIXME: insert proper C++ library support
11395     ld_shlibs_CXX=no
11396     ;;
11397 esac
11398 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11399 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11400 test "$ld_shlibs_CXX" = no && can_build_shared=no
11401
11402 GCC_CXX="$GXX"
11403 LD_CXX="$LD"
11404
11405
11406 cat > conftest.$ac_ext <<EOF
11407 class Foo
11408 {
11409 public:
11410   Foo (void) { a = 0; }
11411 private:
11412   int a;
11413 };
11414 EOF
11415
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417   (eval $ac_compile) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; then
11421   # Parse the compiler output and extract the necessary
11422   # objects, libraries and library flags.
11423
11424   # Sentinel used to keep track of whether or not we are before
11425   # the conftest object file.
11426   pre_test_object_deps_done=no
11427
11428   # The `*' in the case matches for architectures that use `case' in
11429   # $output_verbose_cmd can trigger glob expansion during the loop
11430   # eval without this substitution.
11431   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11432
11433   for p in `eval $output_verbose_link_cmd`; do
11434     case $p in
11435
11436     -L* | -R* | -l*)
11437        # Some compilers place space between "-{L,R}" and the path.
11438        # Remove the space.
11439        if test $p = "-L" \
11440           || test $p = "-R"; then
11441          prev=$p
11442          continue
11443        else
11444          prev=
11445        fi
11446
11447        if test "$pre_test_object_deps_done" = no; then
11448          case $p in
11449          -L* | -R*)
11450            # Internal compiler library paths should come after those
11451            # provided the user.  The postdeps already come after the
11452            # user supplied libs so there is no need to process them.
11453            if test -z "$compiler_lib_search_path_CXX"; then
11454              compiler_lib_search_path_CXX="${prev}${p}"
11455            else
11456              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11457            fi
11458            ;;
11459          # The "-l" case would never come before the object being
11460          # linked, so don't bother handling this case.
11461          esac
11462        else
11463          if test -z "$postdeps_CXX"; then
11464            postdeps_CXX="${prev}${p}"
11465          else
11466            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11467          fi
11468        fi
11469        ;;
11470
11471     *.$objext)
11472        # This assumes that the test object file only shows up
11473        # once in the compiler output.
11474        if test "$p" = "conftest.$objext"; then
11475          pre_test_object_deps_done=yes
11476          continue
11477        fi
11478
11479        if test "$pre_test_object_deps_done" = no; then
11480          if test -z "$predep_objects_CXX"; then
11481            predep_objects_CXX="$p"
11482          else
11483            predep_objects_CXX="$predep_objects_CXX $p"
11484          fi
11485        else
11486          if test -z "$postdep_objects_CXX"; then
11487            postdep_objects_CXX="$p"
11488          else
11489            postdep_objects_CXX="$postdep_objects_CXX $p"
11490          fi
11491        fi
11492        ;;
11493
11494     *) ;; # Ignore the rest.
11495
11496     esac
11497   done
11498
11499   # Clean up.
11500   rm -f a.out a.exe
11501 else
11502   echo "libtool.m4: error: problem compiling CXX test program"
11503 fi
11504
11505 $rm -f confest.$objext
11506
11507 # PORTME: override above test on systems where it is broken
11508 case $host_os in
11509 solaris*)
11510   case $cc_basename in
11511   CC*)
11512     # Adding this requires a known-good setup of shared libraries for
11513     # Sun compiler versions before 5.6, else PIC objects from an old
11514     # archive will be linked into the output, leading to subtle bugs.
11515     postdeps_CXX='-lCstd -lCrun'
11516     ;;
11517   esac
11518 esac
11519
11520
11521 case " $postdeps_CXX " in
11522 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11523 esac
11524
11525 lt_prog_compiler_wl_CXX=
11526 lt_prog_compiler_pic_CXX=
11527 lt_prog_compiler_static_CXX=
11528
11529 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11530 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11531
11532   # C++ specific cases for pic, static, wl, etc.
11533   if test "$GXX" = yes; then
11534     lt_prog_compiler_wl_CXX='-Wl,'
11535     lt_prog_compiler_static_CXX='-static'
11536
11537     case $host_os in
11538     aix*)
11539       # All AIX code is PIC.
11540       if test "$host_cpu" = ia64; then
11541         # AIX 5 now supports IA64 processor
11542         lt_prog_compiler_static_CXX='-Bstatic'
11543       fi
11544       ;;
11545     amigaos*)
11546       # FIXME: we need at least 68020 code to build shared libraries, but
11547       # adding the `-m68020' flag to GCC prevents building anything better,
11548       # like `-m68040'.
11549       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11550       ;;
11551     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11552       # PIC is the default for these OSes.
11553       ;;
11554     mingw* | os2* | pw32*)
11555       # This hack is so that the source file can tell whether it is being
11556       # built for inclusion in a dll (and should export symbols for example).
11557       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11558       ;;
11559     darwin* | rhapsody*)
11560       # PIC is the default on this platform
11561       # Common symbols not allowed in MH_DYLIB files
11562       lt_prog_compiler_pic_CXX='-fno-common'
11563       ;;
11564     *djgpp*)
11565       # DJGPP does not support shared libraries at all
11566       lt_prog_compiler_pic_CXX=
11567       ;;
11568     sysv4*MP*)
11569       if test -d /usr/nec; then
11570         lt_prog_compiler_pic_CXX=-Kconform_pic
11571       fi
11572       ;;
11573     hpux*)
11574       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11575       # not for PA HP-UX.
11576       case $host_cpu in
11577       hppa*64*|ia64*)
11578         ;;
11579       *)
11580         lt_prog_compiler_pic_CXX='-fPIC'
11581         ;;
11582       esac
11583       ;;
11584     *)
11585       lt_prog_compiler_pic_CXX='-fPIC'
11586       ;;
11587     esac
11588   else
11589     case $host_os in
11590       aix4* | aix5*)
11591         # All AIX code is PIC.
11592         if test "$host_cpu" = ia64; then
11593           # AIX 5 now supports IA64 processor
11594           lt_prog_compiler_static_CXX='-Bstatic'
11595         else
11596           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11597         fi
11598         ;;
11599       chorus*)
11600         case $cc_basename in
11601         cxch68*)
11602           # Green Hills C++ Compiler
11603           # _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"
11604           ;;
11605         esac
11606         ;;
11607        darwin*)
11608          # PIC is the default on this platform
11609          # Common symbols not allowed in MH_DYLIB files
11610          case $cc_basename in
11611            xlc*)
11612            lt_prog_compiler_pic_CXX='-qnocommon'
11613            lt_prog_compiler_wl_CXX='-Wl,'
11614            ;;
11615          esac
11616        ;;
11617       dgux*)
11618         case $cc_basename in
11619           ec++*)
11620             lt_prog_compiler_pic_CXX='-KPIC'
11621             ;;
11622           ghcx*)
11623             # Green Hills C++ Compiler
11624             lt_prog_compiler_pic_CXX='-pic'
11625             ;;
11626           *)
11627             ;;
11628         esac
11629         ;;
11630       freebsd* | kfreebsd*-gnu | dragonfly*)
11631         # FreeBSD uses GNU C++
11632         ;;
11633       hpux9* | hpux10* | hpux11*)
11634         case $cc_basename in
11635           CC*)
11636             lt_prog_compiler_wl_CXX='-Wl,'
11637             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11638             if test "$host_cpu" != ia64; then
11639               lt_prog_compiler_pic_CXX='+Z'
11640             fi
11641             ;;
11642           aCC*)
11643             lt_prog_compiler_wl_CXX='-Wl,'
11644             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11645             case $host_cpu in
11646             hppa*64*|ia64*)
11647               # +Z the default
11648               ;;
11649             *)
11650               lt_prog_compiler_pic_CXX='+Z'
11651               ;;
11652             esac
11653             ;;
11654           *)
11655             ;;
11656         esac
11657         ;;
11658       irix5* | irix6* | nonstopux*)
11659         case $cc_basename in
11660           CC*)
11661             lt_prog_compiler_wl_CXX='-Wl,'
11662             lt_prog_compiler_static_CXX='-non_shared'
11663             # CC pic flag -KPIC is the default.
11664             ;;
11665           *)
11666             ;;
11667         esac
11668         ;;
11669       linux*)
11670         case $cc_basename in
11671           KCC*)
11672             # KAI C++ Compiler
11673             lt_prog_compiler_wl_CXX='--backend -Wl,'
11674             lt_prog_compiler_pic_CXX='-fPIC'
11675             ;;
11676           icpc* | ecpc*)
11677             # Intel C++
11678             lt_prog_compiler_wl_CXX='-Wl,'
11679             lt_prog_compiler_pic_CXX='-KPIC'
11680             lt_prog_compiler_static_CXX='-static'
11681             ;;
11682           pgCC*)
11683             # Portland Group C++ compiler.
11684             lt_prog_compiler_wl_CXX='-Wl,'
11685             lt_prog_compiler_pic_CXX='-fpic'
11686             lt_prog_compiler_static_CXX='-Bstatic'
11687             ;;
11688           cxx*)
11689             # Compaq C++
11690             # Make sure the PIC flag is empty.  It appears that all Alpha
11691             # Linux and Compaq Tru64 Unix objects are PIC.
11692             lt_prog_compiler_pic_CXX=
11693             lt_prog_compiler_static_CXX='-non_shared'
11694             ;;
11695           *)
11696             ;;
11697         esac
11698         ;;
11699       lynxos*)
11700         ;;
11701       m88k*)
11702         ;;
11703       mvs*)
11704         case $cc_basename in
11705           cxx*)
11706             lt_prog_compiler_pic_CXX='-W c,exportall'
11707             ;;
11708           *)
11709             ;;
11710         esac
11711         ;;
11712       netbsd*)
11713         ;;
11714       osf3* | osf4* | osf5*)
11715         case $cc_basename in
11716           KCC*)
11717             lt_prog_compiler_wl_CXX='--backend -Wl,'
11718             ;;
11719           RCC*)
11720             # Rational C++ 2.4.1
11721             lt_prog_compiler_pic_CXX='-pic'
11722             ;;
11723           cxx*)
11724             # Digital/Compaq C++
11725             lt_prog_compiler_wl_CXX='-Wl,'
11726             # Make sure the PIC flag is empty.  It appears that all Alpha
11727             # Linux and Compaq Tru64 Unix objects are PIC.
11728             lt_prog_compiler_pic_CXX=
11729             lt_prog_compiler_static_CXX='-non_shared'
11730             ;;
11731           *)
11732             ;;
11733         esac
11734         ;;
11735       psos*)
11736         ;;
11737       sco*)
11738         case $cc_basename in
11739           CC*)
11740             lt_prog_compiler_pic_CXX='-fPIC'
11741             ;;
11742           *)
11743             ;;
11744         esac
11745         ;;
11746       solaris*)
11747         case $cc_basename in
11748           CC*)
11749             # Sun C++ 4.2, 5.x and Centerline C++
11750             lt_prog_compiler_pic_CXX='-KPIC'
11751             lt_prog_compiler_static_CXX='-Bstatic'
11752             lt_prog_compiler_wl_CXX='-Qoption ld '
11753             ;;
11754           gcx*)
11755             # Green Hills C++ Compiler
11756             lt_prog_compiler_pic_CXX='-PIC'
11757             ;;
11758           *)
11759             ;;
11760         esac
11761         ;;
11762       sunos4*)
11763         case $cc_basename in
11764           CC*)
11765             # Sun C++ 4.x
11766             lt_prog_compiler_pic_CXX='-pic'
11767             lt_prog_compiler_static_CXX='-Bstatic'
11768             ;;
11769           lcc*)
11770             # Lucid
11771             lt_prog_compiler_pic_CXX='-pic'
11772             ;;
11773           *)
11774             ;;
11775         esac
11776         ;;
11777       tandem*)
11778         case $cc_basename in
11779           NCC*)
11780             # NonStop-UX NCC 3.20
11781             lt_prog_compiler_pic_CXX='-KPIC'
11782             ;;
11783           *)
11784             ;;
11785         esac
11786         ;;
11787       unixware*)
11788         ;;
11789       vxworks*)
11790         ;;
11791       *)
11792         lt_prog_compiler_can_build_shared_CXX=no
11793         ;;
11794     esac
11795   fi
11796
11797 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11798 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11799
11800 #
11801 # Check to make sure the PIC flag actually works.
11802 #
11803 if test -n "$lt_prog_compiler_pic_CXX"; then
11804
11805 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11806 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11807 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   lt_prog_compiler_pic_works_CXX=no
11811   ac_outfile=conftest.$ac_objext
11812    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11813    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11814    # Insert the option either (1) after the last *FLAGS variable, or
11815    # (2) before a word containing "conftest.", or (3) at the end.
11816    # Note that $ac_compile itself does not contain backslashes and begins
11817    # with a dollar sign (not a hyphen), so the echo should work correctly.
11818    # The option is referenced via a variable to avoid confusing sed.
11819    lt_compile=`echo "$ac_compile" | $SED \
11820    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11821    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11822    -e 's:$: $lt_compiler_flag:'`
11823    (eval echo "\"\$as_me:11823: $lt_compile\"" >&5)
11824    (eval "$lt_compile" 2>conftest.err)
11825    ac_status=$?
11826    cat conftest.err >&5
11827    echo "$as_me:11827: \$? = $ac_status" >&5
11828    if (exit $ac_status) && test -s "$ac_outfile"; then
11829      # The compiler can only warn and ignore the option if not recognized
11830      # So say no if there are warnings other than the usual output.
11831      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11832      $SED '/^$/d' conftest.err >conftest.er2
11833      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11834        lt_prog_compiler_pic_works_CXX=yes
11835      fi
11836    fi
11837    $rm conftest*
11838
11839 fi
11840 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11841 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11842
11843 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11844     case $lt_prog_compiler_pic_CXX in
11845      "" | " "*) ;;
11846      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11847      esac
11848 else
11849     lt_prog_compiler_pic_CXX=
11850      lt_prog_compiler_can_build_shared_CXX=no
11851 fi
11852
11853 fi
11854 case $host_os in
11855   # For platforms which do not support PIC, -DPIC is meaningless:
11856   *djgpp*)
11857     lt_prog_compiler_pic_CXX=
11858     ;;
11859   *)
11860     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11861     ;;
11862 esac
11863
11864 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11865 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11866 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   lt_cv_prog_compiler_c_o_CXX=no
11870    $rm -r conftest 2>/dev/null
11871    mkdir conftest
11872    cd conftest
11873    mkdir out
11874    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11875
11876    lt_compiler_flag="-o out/conftest2.$ac_objext"
11877    # Insert the option either (1) after the last *FLAGS variable, or
11878    # (2) before a word containing "conftest.", or (3) at the end.
11879    # Note that $ac_compile itself does not contain backslashes and begins
11880    # with a dollar sign (not a hyphen), so the echo should work correctly.
11881    lt_compile=`echo "$ac_compile" | $SED \
11882    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11884    -e 's:$: $lt_compiler_flag:'`
11885    (eval echo "\"\$as_me:11885: $lt_compile\"" >&5)
11886    (eval "$lt_compile" 2>out/conftest.err)
11887    ac_status=$?
11888    cat out/conftest.err >&5
11889    echo "$as_me:11889: \$? = $ac_status" >&5
11890    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11891    then
11892      # The compiler can only warn and ignore the option if not recognized
11893      # So say no if there are warnings
11894      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11895      $SED '/^$/d' out/conftest.err >out/conftest.er2
11896      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11897        lt_cv_prog_compiler_c_o_CXX=yes
11898      fi
11899    fi
11900    chmod u+w . 2>&5
11901    $rm conftest*
11902    # SGI C++ compiler will create directory out/ii_files/ for
11903    # template instantiation
11904    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11905    $rm out/* && rmdir out
11906    cd ..
11907    rmdir conftest
11908    $rm conftest*
11909
11910 fi
11911 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11913
11914
11915 hard_links="nottested"
11916 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11917   # do not overwrite the value of need_locks provided by the user
11918   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11919 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11920   hard_links=yes
11921   $rm conftest*
11922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11923   touch conftest.a
11924   ln conftest.a conftest.b 2>&5 || hard_links=no
11925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11926   echo "$as_me:$LINENO: result: $hard_links" >&5
11927 echo "${ECHO_T}$hard_links" >&6
11928   if test "$hard_links" = no; then
11929     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11930 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11931     need_locks=warn
11932   fi
11933 else
11934   need_locks=no
11935 fi
11936
11937 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11939
11940   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11941   case $host_os in
11942   aix4* | aix5*)
11943     # If we're using GNU nm, then we don't want the "-C" option.
11944     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11945     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11946       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'
11947     else
11948       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'
11949     fi
11950     ;;
11951   pw32*)
11952     export_symbols_cmds_CXX="$ltdll_cmds"
11953   ;;
11954   cygwin* | mingw*)
11955     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'
11956   ;;
11957   *)
11958     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11959   ;;
11960   esac
11961
11962 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11963 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11964 test "$ld_shlibs_CXX" = no && can_build_shared=no
11965
11966 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11967 if test "$GCC" = yes; then
11968   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11969 fi
11970
11971 #
11972 # Do we need to explicitly link libc?
11973 #
11974 case "x$archive_cmds_need_lc_CXX" in
11975 x|xyes)
11976   # Assume -lc should be added
11977   archive_cmds_need_lc_CXX=yes
11978
11979   if test "$enable_shared" = yes && test "$GCC" = yes; then
11980     case $archive_cmds_CXX in
11981     *'~'*)
11982       # FIXME: we may have to deal with multi-command sequences.
11983       ;;
11984     '$CC '*)
11985       # Test whether the compiler implicitly links with -lc since on some
11986       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11987       # to ld, don't add -lc before -lgcc.
11988       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11989 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11990       $rm conftest*
11991       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11992
11993       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994   (eval $ac_compile) 2>&5
11995   ac_status=$?
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } 2>conftest.err; then
11998         soname=conftest
11999         lib=conftest
12000         libobjs=conftest.$ac_objext
12001         deplibs=
12002         wl=$lt_prog_compiler_wl_CXX
12003         compiler_flags=-v
12004         linker_flags=-v
12005         verstring=
12006         output_objdir=.
12007         libname=conftest
12008         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12009         allow_undefined_flag_CXX=
12010         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12011   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }
12015         then
12016           archive_cmds_need_lc_CXX=no
12017         else
12018           archive_cmds_need_lc_CXX=yes
12019         fi
12020         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12021       else
12022         cat conftest.err 1>&5
12023       fi
12024       $rm conftest*
12025       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12026 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12027       ;;
12028     esac
12029   fi
12030   ;;
12031 esac
12032
12033 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12035 library_names_spec=
12036 libname_spec='lib$name'
12037 soname_spec=
12038 shrext_cmds=".so"
12039 postinstall_cmds=
12040 postuninstall_cmds=
12041 finish_cmds=
12042 finish_eval=
12043 shlibpath_var=
12044 shlibpath_overrides_runpath=unknown
12045 version_type=none
12046 dynamic_linker="$host_os ld.so"
12047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12048 if test "$GCC" = yes; then
12049   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12050   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12051     # if the path contains ";" then we assume it to be the separator
12052     # otherwise default to the standard path separator (i.e. ":") - it is
12053     # assumed that no part of a normal pathname contains ";" but that should
12054     # okay in the real world where ";" in dirpaths is itself problematic.
12055     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12056   else
12057     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12058   fi
12059 else
12060   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12061 fi
12062 need_lib_prefix=unknown
12063 hardcode_into_libs=no
12064
12065 # when you set need_version to no, make sure it does not cause -set_version
12066 # flags to be left without arguments
12067 need_version=unknown
12068
12069 case $host_os in
12070 aix3*)
12071   version_type=linux
12072   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12073   shlibpath_var=LIBPATH
12074
12075   # AIX 3 has no versioning support, so we append a major version to the name.
12076   soname_spec='${libname}${release}${shared_ext}$major'
12077   ;;
12078
12079 aix4* | aix5*)
12080   version_type=linux
12081   need_lib_prefix=no
12082   need_version=no
12083   hardcode_into_libs=yes
12084   if test "$host_cpu" = ia64; then
12085     # AIX 5 supports IA64
12086     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12087     shlibpath_var=LD_LIBRARY_PATH
12088   else
12089     # With GCC up to 2.95.x, collect2 would create an import file
12090     # for dependence libraries.  The import file would start with
12091     # the line `#! .'.  This would cause the generated library to
12092     # depend on `.', always an invalid library.  This was fixed in
12093     # development snapshots of GCC prior to 3.0.
12094     case $host_os in
12095       aix4 | aix4.[01] | aix4.[01].*)
12096       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12097            echo ' yes '
12098            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12099         :
12100       else
12101         can_build_shared=no
12102       fi
12103       ;;
12104     esac
12105     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12106     # soname into executable. Probably we can add versioning support to
12107     # collect2, so additional links can be useful in future.
12108     if test "$aix_use_runtimelinking" = yes; then
12109       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12110       # instead of lib<name>.a to let people know that these are not
12111       # typical AIX shared libraries.
12112       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12113     else
12114       # We preserve .a as extension for shared libraries through AIX4.2
12115       # and later when we are not doing run time linking.
12116       library_names_spec='${libname}${release}.a $libname.a'
12117       soname_spec='${libname}${release}${shared_ext}$major'
12118     fi
12119     shlibpath_var=LIBPATH
12120   fi
12121   ;;
12122
12123 amigaos*)
12124   library_names_spec='$libname.ixlibrary $libname.a'
12125   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12126   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'
12127   ;;
12128
12129 beos*)
12130   library_names_spec='${libname}${shared_ext}'
12131   dynamic_linker="$host_os ld.so"
12132   shlibpath_var=LIBRARY_PATH
12133   ;;
12134
12135 bsdi[45]*)
12136   version_type=linux
12137   need_version=no
12138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139   soname_spec='${libname}${release}${shared_ext}$major'
12140   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12141   shlibpath_var=LD_LIBRARY_PATH
12142   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12143   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12144   # the default ld.so.conf also contains /usr/contrib/lib and
12145   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12146   # libtool to hard-code these into programs
12147   ;;
12148
12149 cygwin* | mingw* | pw32*)
12150   version_type=windows
12151   shrext_cmds=".dll"
12152   need_version=no
12153   need_lib_prefix=no
12154
12155   case $GCC,$host_os in
12156   yes,cygwin* | yes,mingw* | yes,pw32*)
12157     library_names_spec='$libname.dll.a'
12158     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12159     postinstall_cmds='base_file=`basename \${file}`~
12160       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12161       dldir=$destdir/`dirname \$dlpath`~
12162       test -d \$dldir || mkdir -p \$dldir~
12163       $install_prog $dir/$dlname \$dldir/$dlname~
12164       chmod a+x \$dldir/$dlname'
12165     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12166       dlpath=$dir/\$dldll~
12167        $rm \$dlpath'
12168     shlibpath_overrides_runpath=yes
12169
12170     case $host_os in
12171     cygwin*)
12172       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12173       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12174       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12175       ;;
12176     mingw*)
12177       # MinGW DLLs use traditional 'lib' prefix
12178       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12179       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12180       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12181         # It is most probably a Windows format PATH printed by
12182         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12183         # path with ; separators, and with drive letters. We can handle the
12184         # drive letters (cygwin fileutils understands them), so leave them,
12185         # especially as we might pass files found there to a mingw objdump,
12186         # which wouldn't understand a cygwinified path. Ahh.
12187         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12188       else
12189         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12190       fi
12191       ;;
12192     pw32*)
12193       # pw32 DLLs use 'pw' prefix rather than 'lib'
12194       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12195       ;;
12196     esac
12197     ;;
12198
12199   *)
12200     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12201     ;;
12202   esac
12203   dynamic_linker='Win32 ld.exe'
12204   # FIXME: first we should search . and the directory the executable is in
12205   shlibpath_var=PATH
12206   ;;
12207
12208 darwin* | rhapsody*)
12209   dynamic_linker="$host_os dyld"
12210   version_type=darwin
12211   need_lib_prefix=no
12212   need_version=no
12213   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12214   soname_spec='${libname}${release}${major}$shared_ext'
12215   shlibpath_overrides_runpath=yes
12216   shlibpath_var=DYLD_LIBRARY_PATH
12217   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12218   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12219   if test "$GCC" = yes; then
12220     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"`
12221   else
12222     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12223   fi
12224   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12225   ;;
12226
12227 dgux*)
12228   version_type=linux
12229   need_lib_prefix=no
12230   need_version=no
12231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12232   soname_spec='${libname}${release}${shared_ext}$major'
12233   shlibpath_var=LD_LIBRARY_PATH
12234   ;;
12235
12236 freebsd1*)
12237   dynamic_linker=no
12238   ;;
12239
12240 kfreebsd*-gnu)
12241   version_type=linux
12242   need_lib_prefix=no
12243   need_version=no
12244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12245   soname_spec='${libname}${release}${shared_ext}$major'
12246   shlibpath_var=LD_LIBRARY_PATH
12247   shlibpath_overrides_runpath=no
12248   hardcode_into_libs=yes
12249   dynamic_linker='GNU ld.so'
12250   ;;
12251
12252 freebsd* | dragonfly*)
12253   # DragonFly does not have aout.  When/if they implement a new
12254   # versioning mechanism, adjust this.
12255   if test -x /usr/bin/objformat; then
12256     objformat=`/usr/bin/objformat`
12257   else
12258     case $host_os in
12259     freebsd[123]*) objformat=aout ;;
12260     *) objformat=elf ;;
12261     esac
12262   fi
12263   version_type=freebsd-$objformat
12264   case $version_type in
12265     freebsd-elf*)
12266       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12267       need_version=no
12268       need_lib_prefix=no
12269       ;;
12270     freebsd-*)
12271       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12272       need_version=yes
12273       ;;
12274   esac
12275   shlibpath_var=LD_LIBRARY_PATH
12276   case $host_os in
12277   freebsd2*)
12278     shlibpath_overrides_runpath=yes
12279     ;;
12280   freebsd3.[01]* | freebsdelf3.[01]*)
12281     shlibpath_overrides_runpath=yes
12282     hardcode_into_libs=yes
12283     ;;
12284   *) # from 3.2 on
12285     shlibpath_overrides_runpath=no
12286     hardcode_into_libs=yes
12287     ;;
12288   esac
12289   ;;
12290
12291 gnu*)
12292   version_type=linux
12293   need_lib_prefix=no
12294   need_version=no
12295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12296   soname_spec='${libname}${release}${shared_ext}$major'
12297   shlibpath_var=LD_LIBRARY_PATH
12298   hardcode_into_libs=yes
12299   ;;
12300
12301 hpux9* | hpux10* | hpux11*)
12302   # Give a soname corresponding to the major version so that dld.sl refuses to
12303   # link against other versions.
12304   version_type=sunos
12305   need_lib_prefix=no
12306   need_version=no
12307   case $host_cpu in
12308   ia64*)
12309     shrext_cmds='.so'
12310     hardcode_into_libs=yes
12311     dynamic_linker="$host_os dld.so"
12312     shlibpath_var=LD_LIBRARY_PATH
12313     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12314     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315     soname_spec='${libname}${release}${shared_ext}$major'
12316     if test "X$HPUX_IA64_MODE" = X32; then
12317       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12318     else
12319       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12320     fi
12321     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12322     ;;
12323    hppa*64*)
12324      shrext_cmds='.sl'
12325      hardcode_into_libs=yes
12326      dynamic_linker="$host_os dld.sl"
12327      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12328      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12329      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330      soname_spec='${libname}${release}${shared_ext}$major'
12331      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12332      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12333      ;;
12334    *)
12335     shrext_cmds='.sl'
12336     dynamic_linker="$host_os dld.sl"
12337     shlibpath_var=SHLIB_PATH
12338     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340     soname_spec='${libname}${release}${shared_ext}$major'
12341     ;;
12342   esac
12343   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12344   postinstall_cmds='chmod 555 $lib'
12345   ;;
12346
12347 irix5* | irix6* | nonstopux*)
12348   case $host_os in
12349     nonstopux*) version_type=nonstopux ;;
12350     *)
12351         if test "$lt_cv_prog_gnu_ld" = yes; then
12352                 version_type=linux
12353         else
12354                 version_type=irix
12355         fi ;;
12356   esac
12357   need_lib_prefix=no
12358   need_version=no
12359   soname_spec='${libname}${release}${shared_ext}$major'
12360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12361   case $host_os in
12362   irix5* | nonstopux*)
12363     libsuff= shlibsuff=
12364     ;;
12365   *)
12366     case $LD in # libtool.m4 will add one of these switches to LD
12367     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12368       libsuff= shlibsuff= libmagic=32-bit;;
12369     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12370       libsuff=32 shlibsuff=N32 libmagic=N32;;
12371     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12372       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12373     *) libsuff= shlibsuff= libmagic=never-match;;
12374     esac
12375     ;;
12376   esac
12377   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12378   shlibpath_overrides_runpath=no
12379   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12380   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12381   hardcode_into_libs=yes
12382   ;;
12383
12384 # No shared lib support for Linux oldld, aout, or coff.
12385 linux*oldld* | linux*aout* | linux*coff*)
12386   dynamic_linker=no
12387   ;;
12388
12389 # This must be Linux ELF.
12390 linux*)
12391   version_type=linux
12392   need_lib_prefix=no
12393   need_version=no
12394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12395   soname_spec='${libname}${release}${shared_ext}$major'
12396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12397   shlibpath_var=LD_LIBRARY_PATH
12398   shlibpath_overrides_runpath=no
12399   # This implies no fast_install, which is unacceptable.
12400   # Some rework will be needed to allow for fast_install
12401   # before this can be enabled.
12402   hardcode_into_libs=yes
12403
12404   # find out which ABI we are using
12405   libsuff=
12406   case "$host_cpu" in
12407   x86_64*|s390x*|powerpc64*)
12408     echo '#line 12408 "configure"' > conftest.$ac_ext
12409     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12410   (eval $ac_compile) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; then
12414       case `/usr/bin/file conftest.$ac_objext` in
12415       *64-bit*)
12416         libsuff=64
12417         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12418         ;;
12419       esac
12420     fi
12421     rm -rf conftest*
12422     ;;
12423   esac
12424
12425   # Append ld.so.conf contents to the search path
12426   if test -f /etc/ld.so.conf; then
12427     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' ' '`
12428     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12429   fi
12430
12431   # We used to test for /lib/ld.so.1 and disable shared libraries on
12432   # powerpc, because MkLinux only supported shared libraries with the
12433   # GNU dynamic linker.  Since this was broken with cross compilers,
12434   # most powerpc-linux boxes support dynamic linking these days and
12435   # people can always --disable-shared, the test was removed, and we
12436   # assume the GNU/Linux dynamic linker is in use.
12437   dynamic_linker='GNU/Linux ld.so'
12438   ;;
12439
12440 knetbsd*-gnu)
12441   version_type=linux
12442   need_lib_prefix=no
12443   need_version=no
12444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12445   soname_spec='${libname}${release}${shared_ext}$major'
12446   shlibpath_var=LD_LIBRARY_PATH
12447   shlibpath_overrides_runpath=no
12448   hardcode_into_libs=yes
12449   dynamic_linker='GNU ld.so'
12450   ;;
12451
12452 netbsd*)
12453   version_type=sunos
12454   need_lib_prefix=no
12455   need_version=no
12456   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12458     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12459     dynamic_linker='NetBSD (a.out) ld.so'
12460   else
12461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12462     soname_spec='${libname}${release}${shared_ext}$major'
12463     dynamic_linker='NetBSD ld.elf_so'
12464   fi
12465   shlibpath_var=LD_LIBRARY_PATH
12466   shlibpath_overrides_runpath=yes
12467   hardcode_into_libs=yes
12468   ;;
12469
12470 newsos6)
12471   version_type=linux
12472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12473   shlibpath_var=LD_LIBRARY_PATH
12474   shlibpath_overrides_runpath=yes
12475   ;;
12476
12477 nto-qnx*)
12478   version_type=linux
12479   need_lib_prefix=no
12480   need_version=no
12481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482   soname_spec='${libname}${release}${shared_ext}$major'
12483   shlibpath_var=LD_LIBRARY_PATH
12484   shlibpath_overrides_runpath=yes
12485   ;;
12486
12487 openbsd*)
12488   version_type=sunos
12489   need_lib_prefix=no
12490   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12491   case $host_os in
12492     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12493     *)                         need_version=no  ;;
12494   esac
12495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12496   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12497   shlibpath_var=LD_LIBRARY_PATH
12498   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12499     case $host_os in
12500       openbsd2.[89] | openbsd2.[89].*)
12501         shlibpath_overrides_runpath=no
12502         ;;
12503       *)
12504         shlibpath_overrides_runpath=yes
12505         ;;
12506       esac
12507   else
12508     shlibpath_overrides_runpath=yes
12509   fi
12510   ;;
12511
12512 os2*)
12513   libname_spec='$name'
12514   shrext_cmds=".dll"
12515   need_lib_prefix=no
12516   library_names_spec='$libname${shared_ext} $libname.a'
12517   dynamic_linker='OS/2 ld.exe'
12518   shlibpath_var=LIBPATH
12519   ;;
12520
12521 osf3* | osf4* | osf5*)
12522   version_type=osf
12523   need_lib_prefix=no
12524   need_version=no
12525   soname_spec='${libname}${release}${shared_ext}$major'
12526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12527   shlibpath_var=LD_LIBRARY_PATH
12528   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12529   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12530   ;;
12531
12532 sco3.2v5*)
12533   version_type=osf
12534   soname_spec='${libname}${release}${shared_ext}$major'
12535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12536   shlibpath_var=LD_LIBRARY_PATH
12537   ;;
12538
12539 solaris*)
12540   version_type=linux
12541   need_lib_prefix=no
12542   need_version=no
12543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544   soname_spec='${libname}${release}${shared_ext}$major'
12545   shlibpath_var=LD_LIBRARY_PATH
12546   shlibpath_overrides_runpath=yes
12547   hardcode_into_libs=yes
12548   # ldd complains unless libraries are executable
12549   postinstall_cmds='chmod +x $lib'
12550   ;;
12551
12552 sunos4*)
12553   version_type=sunos
12554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12555   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12556   shlibpath_var=LD_LIBRARY_PATH
12557   shlibpath_overrides_runpath=yes
12558   if test "$with_gnu_ld" = yes; then
12559     need_lib_prefix=no
12560   fi
12561   need_version=yes
12562   ;;
12563
12564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12565   version_type=linux
12566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567   soname_spec='${libname}${release}${shared_ext}$major'
12568   shlibpath_var=LD_LIBRARY_PATH
12569   case $host_vendor in
12570     sni)
12571       shlibpath_overrides_runpath=no
12572       need_lib_prefix=no
12573       export_dynamic_flag_spec='${wl}-Blargedynsym'
12574       runpath_var=LD_RUN_PATH
12575       ;;
12576     siemens)
12577       need_lib_prefix=no
12578       ;;
12579     motorola)
12580       need_lib_prefix=no
12581       need_version=no
12582       shlibpath_overrides_runpath=no
12583       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12584       ;;
12585   esac
12586   ;;
12587
12588 sysv4*MP*)
12589   if test -d /usr/nec ;then
12590     version_type=linux
12591     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12592     soname_spec='$libname${shared_ext}.$major'
12593     shlibpath_var=LD_LIBRARY_PATH
12594   fi
12595   ;;
12596
12597 uts4*)
12598   version_type=linux
12599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600   soname_spec='${libname}${release}${shared_ext}$major'
12601   shlibpath_var=LD_LIBRARY_PATH
12602   ;;
12603
12604 *)
12605   dynamic_linker=no
12606   ;;
12607 esac
12608 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12609 echo "${ECHO_T}$dynamic_linker" >&6
12610 test "$dynamic_linker" = no && can_build_shared=no
12611
12612 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12613 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12614 hardcode_action_CXX=
12615 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12616    test -n "$runpath_var_CXX" || \
12617    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12618
12619   # We can hardcode non-existant directories.
12620   if test "$hardcode_direct_CXX" != no &&
12621      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12622      # have to relink, otherwise we might link with an installed library
12623      # when we should be linking with a yet-to-be-installed one
12624      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12625      test "$hardcode_minus_L_CXX" != no; then
12626     # Linking always hardcodes the temporary library directory.
12627     hardcode_action_CXX=relink
12628   else
12629     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12630     hardcode_action_CXX=immediate
12631   fi
12632 else
12633   # We cannot hardcode anything, or else we can only hardcode existing
12634   # directories.
12635   hardcode_action_CXX=unsupported
12636 fi
12637 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12638 echo "${ECHO_T}$hardcode_action_CXX" >&6
12639
12640 if test "$hardcode_action_CXX" = relink; then
12641   # Fast installation is not supported
12642   enable_fast_install=no
12643 elif test "$shlibpath_overrides_runpath" = yes ||
12644      test "$enable_shared" = no; then
12645   # Fast installation is not necessary
12646   enable_fast_install=needless
12647 fi
12648
12649 striplib=
12650 old_striplib=
12651 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12652 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12653 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12654   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12655   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12656   echo "$as_me:$LINENO: result: yes" >&5
12657 echo "${ECHO_T}yes" >&6
12658 else
12659 # FIXME - insert some real tests, host_os isn't really good enough
12660   case $host_os in
12661    darwin*)
12662        if test -n "$STRIP" ; then
12663          striplib="$STRIP -x"
12664          echo "$as_me:$LINENO: result: yes" >&5
12665 echo "${ECHO_T}yes" >&6
12666        else
12667   echo "$as_me:$LINENO: result: no" >&5
12668 echo "${ECHO_T}no" >&6
12669 fi
12670        ;;
12671    *)
12672   echo "$as_me:$LINENO: result: no" >&5
12673 echo "${ECHO_T}no" >&6
12674     ;;
12675   esac
12676 fi
12677
12678 if test "x$enable_dlopen" != xyes; then
12679   enable_dlopen=unknown
12680   enable_dlopen_self=unknown
12681   enable_dlopen_self_static=unknown
12682 else
12683   lt_cv_dlopen=no
12684   lt_cv_dlopen_libs=
12685
12686   case $host_os in
12687   beos*)
12688     lt_cv_dlopen="load_add_on"
12689     lt_cv_dlopen_libs=
12690     lt_cv_dlopen_self=yes
12691     ;;
12692
12693   mingw* | pw32*)
12694     lt_cv_dlopen="LoadLibrary"
12695     lt_cv_dlopen_libs=
12696    ;;
12697
12698   cygwin*)
12699     lt_cv_dlopen="dlopen"
12700     lt_cv_dlopen_libs=
12701    ;;
12702
12703   darwin*)
12704   # if libdl is installed we need to link against it
12705     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12706 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12707 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   ac_check_lib_save_LIBS=$LIBS
12711 LIBS="-ldl  $LIBS"
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718
12719 /* Override any gcc2 internal prototype to avoid an error.  */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 /* We use char because int might match the return type of a gcc2
12724    builtin and then its argument prototype would still apply.  */
12725 char dlopen ();
12726 int
12727 main ()
12728 {
12729 dlopen ();
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736   (eval $ac_link) 2>conftest.er1
12737   ac_status=$?
12738   grep -v '^ *+' conftest.er1 >conftest.err
12739   rm -f conftest.er1
12740   cat conftest.err >&5
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); } &&
12743          { ac_try='test -z "$ac_cxx_werror_flag"
12744                          || test ! -s conftest.err'
12745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746   (eval $ac_try) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; } &&
12750          { ac_try='test -s conftest$ac_exeext'
12751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752   (eval $ac_try) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   ac_cv_lib_dl_dlopen=yes
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 ac_cv_lib_dl_dlopen=no
12762 fi
12763 rm -f conftest.err conftest.$ac_objext \
12764       conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12766 fi
12767 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12769 if test $ac_cv_lib_dl_dlopen = yes; then
12770   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12771 else
12772
12773     lt_cv_dlopen="dyld"
12774     lt_cv_dlopen_libs=
12775     lt_cv_dlopen_self=yes
12776
12777 fi
12778
12779    ;;
12780
12781   *)
12782     echo "$as_me:$LINENO: checking for shl_load" >&5
12783 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12784 if test "${ac_cv_func_shl_load+set}" = set; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12795 #define shl_load innocuous_shl_load
12796
12797 /* System header to define __stub macros and hopefully few prototypes,
12798     which can conflict with char shl_load (); below.
12799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800     <limits.h> exists even on freestanding compilers.  */
12801
12802 #ifdef __STDC__
12803 # include <limits.h>
12804 #else
12805 # include <assert.h>
12806 #endif
12807
12808 #undef shl_load
12809
12810 /* Override any gcc2 internal prototype to avoid an error.  */
12811 #ifdef __cplusplus
12812 extern "C"
12813 {
12814 #endif
12815 /* We use char because int might match the return type of a gcc2
12816    builtin and then its argument prototype would still apply.  */
12817 char shl_load ();
12818 /* The GNU C library defines this for functions which it implements
12819     to always fail with ENOSYS.  Some functions are actually named
12820     something starting with __ and the normal name is an alias.  */
12821 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12822 choke me
12823 #else
12824 char (*f) () = shl_load;
12825 #endif
12826 #ifdef __cplusplus
12827 }
12828 #endif
12829
12830 int
12831 main ()
12832 {
12833 return f != shl_load;
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840   (eval $ac_link) 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } &&
12847          { ac_try='test -z "$ac_cxx_werror_flag"
12848                          || test ! -s conftest.err'
12849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850   (eval $ac_try) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; } &&
12854          { ac_try='test -s conftest$ac_exeext'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_cv_func_shl_load=yes
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 ac_cv_func_shl_load=no
12866 fi
12867 rm -f conftest.err conftest.$ac_objext \
12868       conftest$ac_exeext conftest.$ac_ext
12869 fi
12870 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12871 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12872 if test $ac_cv_func_shl_load = yes; then
12873   lt_cv_dlopen="shl_load"
12874 else
12875   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12876 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12877 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12878   echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880   ac_check_lib_save_LIBS=$LIBS
12881 LIBS="-ldld  $LIBS"
12882 cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12888
12889 /* Override any gcc2 internal prototype to avoid an error.  */
12890 #ifdef __cplusplus
12891 extern "C"
12892 #endif
12893 /* We use char because int might match the return type of a gcc2
12894    builtin and then its argument prototype would still apply.  */
12895 char shl_load ();
12896 int
12897 main ()
12898 {
12899 shl_load ();
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906   (eval $ac_link) 2>conftest.er1
12907   ac_status=$?
12908   grep -v '^ *+' conftest.er1 >conftest.err
12909   rm -f conftest.er1
12910   cat conftest.err >&5
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } &&
12913          { ac_try='test -z "$ac_cxx_werror_flag"
12914                          || test ! -s conftest.err'
12915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916   (eval $ac_try) 2>&5
12917   ac_status=$?
12918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919   (exit $ac_status); }; } &&
12920          { ac_try='test -s conftest$ac_exeext'
12921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922   (eval $ac_try) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }; }; then
12926   ac_cv_lib_dld_shl_load=yes
12927 else
12928   echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.$ac_ext >&5
12930
12931 ac_cv_lib_dld_shl_load=no
12932 fi
12933 rm -f conftest.err conftest.$ac_objext \
12934       conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS
12936 fi
12937 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12938 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12939 if test $ac_cv_lib_dld_shl_load = yes; then
12940   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12941 else
12942   echo "$as_me:$LINENO: checking for dlopen" >&5
12943 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12944 if test "${ac_cv_func_dlopen+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   cat >conftest.$ac_ext <<_ACEOF
12948 /* confdefs.h.  */
12949 _ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h.  */
12953 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12955 #define dlopen innocuous_dlopen
12956
12957 /* System header to define __stub macros and hopefully few prototypes,
12958     which can conflict with char dlopen (); below.
12959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12960     <limits.h> exists even on freestanding compilers.  */
12961
12962 #ifdef __STDC__
12963 # include <limits.h>
12964 #else
12965 # include <assert.h>
12966 #endif
12967
12968 #undef dlopen
12969
12970 /* Override any gcc2 internal prototype to avoid an error.  */
12971 #ifdef __cplusplus
12972 extern "C"
12973 {
12974 #endif
12975 /* We use char because int might match the return type of a gcc2
12976    builtin and then its argument prototype would still apply.  */
12977 char dlopen ();
12978 /* The GNU C library defines this for functions which it implements
12979     to always fail with ENOSYS.  Some functions are actually named
12980     something starting with __ and the normal name is an alias.  */
12981 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12982 choke me
12983 #else
12984 char (*f) () = dlopen;
12985 #endif
12986 #ifdef __cplusplus
12987 }
12988 #endif
12989
12990 int
12991 main ()
12992 {
12993 return f != dlopen;
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000   (eval $ac_link) 2>conftest.er1
13001   ac_status=$?
13002   grep -v '^ *+' conftest.er1 >conftest.err
13003   rm -f conftest.er1
13004   cat conftest.err >&5
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); } &&
13007          { ac_try='test -z "$ac_cxx_werror_flag"
13008                          || test ! -s conftest.err'
13009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010   (eval $ac_try) 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; } &&
13014          { ac_try='test -s conftest$ac_exeext'
13015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016   (eval $ac_try) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; }; then
13020   ac_cv_func_dlopen=yes
13021 else
13022   echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13024
13025 ac_cv_func_dlopen=no
13026 fi
13027 rm -f conftest.err conftest.$ac_objext \
13028       conftest$ac_exeext conftest.$ac_ext
13029 fi
13030 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13031 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13032 if test $ac_cv_func_dlopen = yes; then
13033   lt_cv_dlopen="dlopen"
13034 else
13035   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13036 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13038   echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040   ac_check_lib_save_LIBS=$LIBS
13041 LIBS="-ldl  $LIBS"
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h.  */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h.  */
13048
13049 /* Override any gcc2 internal prototype to avoid an error.  */
13050 #ifdef __cplusplus
13051 extern "C"
13052 #endif
13053 /* We use char because int might match the return type of a gcc2
13054    builtin and then its argument prototype would still apply.  */
13055 char dlopen ();
13056 int
13057 main ()
13058 {
13059 dlopen ();
13060   ;
13061   return 0;
13062 }
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066   (eval $ac_link) 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } &&
13073          { ac_try='test -z "$ac_cxx_werror_flag"
13074                          || test ! -s conftest.err'
13075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076   (eval $ac_try) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; } &&
13080          { ac_try='test -s conftest$ac_exeext'
13081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082   (eval $ac_try) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; }; then
13086   ac_cv_lib_dl_dlopen=yes
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091 ac_cv_lib_dl_dlopen=no
13092 fi
13093 rm -f conftest.err conftest.$ac_objext \
13094       conftest$ac_exeext conftest.$ac_ext
13095 LIBS=$ac_check_lib_save_LIBS
13096 fi
13097 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13098 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13099 if test $ac_cv_lib_dl_dlopen = yes; then
13100   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13101 else
13102   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13103 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13104 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13105   echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107   ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-lsvld  $LIBS"
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115
13116 /* Override any gcc2 internal prototype to avoid an error.  */
13117 #ifdef __cplusplus
13118 extern "C"
13119 #endif
13120 /* We use char because int might match the return type of a gcc2
13121    builtin and then its argument prototype would still apply.  */
13122 char dlopen ();
13123 int
13124 main ()
13125 {
13126 dlopen ();
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133   (eval $ac_link) 2>conftest.er1
13134   ac_status=$?
13135   grep -v '^ *+' conftest.er1 >conftest.err
13136   rm -f conftest.er1
13137   cat conftest.err >&5
13138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139   (exit $ac_status); } &&
13140          { ac_try='test -z "$ac_cxx_werror_flag"
13141                          || test ! -s conftest.err'
13142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143   (eval $ac_try) 2>&5
13144   ac_status=$?
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); }; } &&
13147          { ac_try='test -s conftest$ac_exeext'
13148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149   (eval $ac_try) 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; }; then
13153   ac_cv_lib_svld_dlopen=yes
13154 else
13155   echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158 ac_cv_lib_svld_dlopen=no
13159 fi
13160 rm -f conftest.err conftest.$ac_objext \
13161       conftest$ac_exeext conftest.$ac_ext
13162 LIBS=$ac_check_lib_save_LIBS
13163 fi
13164 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13165 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13166 if test $ac_cv_lib_svld_dlopen = yes; then
13167   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13168 else
13169   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13170 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13171 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13172   echo $ECHO_N "(cached) $ECHO_C" >&6
13173 else
13174   ac_check_lib_save_LIBS=$LIBS
13175 LIBS="-ldld  $LIBS"
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182
13183 /* Override any gcc2 internal prototype to avoid an error.  */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 /* We use char because int might match the return type of a gcc2
13188    builtin and then its argument prototype would still apply.  */
13189 char dld_link ();
13190 int
13191 main ()
13192 {
13193 dld_link ();
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200   (eval $ac_link) 2>conftest.er1
13201   ac_status=$?
13202   grep -v '^ *+' conftest.er1 >conftest.err
13203   rm -f conftest.er1
13204   cat conftest.err >&5
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } &&
13207          { ac_try='test -z "$ac_cxx_werror_flag"
13208                          || test ! -s conftest.err'
13209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210   (eval $ac_try) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }; } &&
13214          { ac_try='test -s conftest$ac_exeext'
13215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216   (eval $ac_try) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   ac_cv_lib_dld_dld_link=yes
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 ac_cv_lib_dld_dld_link=no
13226 fi
13227 rm -f conftest.err conftest.$ac_objext \
13228       conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13230 fi
13231 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13232 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13233 if test $ac_cv_lib_dld_dld_link = yes; then
13234   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13235 fi
13236
13237
13238 fi
13239
13240
13241 fi
13242
13243
13244 fi
13245
13246
13247 fi
13248
13249
13250 fi
13251
13252     ;;
13253   esac
13254
13255   if test "x$lt_cv_dlopen" != xno; then
13256     enable_dlopen=yes
13257   else
13258     enable_dlopen=no
13259   fi
13260
13261   case $lt_cv_dlopen in
13262   dlopen)
13263     save_CPPFLAGS="$CPPFLAGS"
13264     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13265
13266     save_LDFLAGS="$LDFLAGS"
13267     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13268
13269     save_LIBS="$LIBS"
13270     LIBS="$lt_cv_dlopen_libs $LIBS"
13271
13272     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13273 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13274 if test "${lt_cv_dlopen_self+set}" = set; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277           if test "$cross_compiling" = yes; then :
13278   lt_cv_dlopen_self=cross
13279 else
13280   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13281   lt_status=$lt_dlunknown
13282   cat > conftest.$ac_ext <<EOF
13283 #line 13283 "configure"
13284 #include "confdefs.h"
13285
13286 #if HAVE_DLFCN_H
13287 #include <dlfcn.h>
13288 #endif
13289
13290 #include <stdio.h>
13291
13292 #ifdef RTLD_GLOBAL
13293 #  define LT_DLGLOBAL           RTLD_GLOBAL
13294 #else
13295 #  ifdef DL_GLOBAL
13296 #    define LT_DLGLOBAL         DL_GLOBAL
13297 #  else
13298 #    define LT_DLGLOBAL         0
13299 #  endif
13300 #endif
13301
13302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13303    find out it does not work in some platform. */
13304 #ifndef LT_DLLAZY_OR_NOW
13305 #  ifdef RTLD_LAZY
13306 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13307 #  else
13308 #    ifdef DL_LAZY
13309 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13310 #    else
13311 #      ifdef RTLD_NOW
13312 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13313 #      else
13314 #        ifdef DL_NOW
13315 #          define LT_DLLAZY_OR_NOW      DL_NOW
13316 #        else
13317 #          define LT_DLLAZY_OR_NOW      0
13318 #        endif
13319 #      endif
13320 #    endif
13321 #  endif
13322 #endif
13323
13324 #ifdef __cplusplus
13325 extern "C" void exit (int);
13326 #endif
13327
13328 void fnord() { int i=42;}
13329 int main ()
13330 {
13331   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13332   int status = $lt_dlunknown;
13333
13334   if (self)
13335     {
13336       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13337       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13338       /* dlclose (self); */
13339     }
13340
13341     exit (status);
13342 }
13343 EOF
13344   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13345   (eval $ac_link) 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13349     (./conftest; exit; ) >&5 2>/dev/null
13350     lt_status=$?
13351     case x$lt_status in
13352       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13353       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13354       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13355     esac
13356   else :
13357     # compilation failed
13358     lt_cv_dlopen_self=no
13359   fi
13360 fi
13361 rm -fr conftest*
13362
13363
13364 fi
13365 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13366 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13367
13368     if test "x$lt_cv_dlopen_self" = xyes; then
13369       LDFLAGS="$LDFLAGS $link_static_flag"
13370       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13371 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13372 if test "${lt_cv_dlopen_self_static+set}" = set; then
13373   echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375           if test "$cross_compiling" = yes; then :
13376   lt_cv_dlopen_self_static=cross
13377 else
13378   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13379   lt_status=$lt_dlunknown
13380   cat > conftest.$ac_ext <<EOF
13381 #line 13381 "configure"
13382 #include "confdefs.h"
13383
13384 #if HAVE_DLFCN_H
13385 #include <dlfcn.h>
13386 #endif
13387
13388 #include <stdio.h>
13389
13390 #ifdef RTLD_GLOBAL
13391 #  define LT_DLGLOBAL           RTLD_GLOBAL
13392 #else
13393 #  ifdef DL_GLOBAL
13394 #    define LT_DLGLOBAL         DL_GLOBAL
13395 #  else
13396 #    define LT_DLGLOBAL         0
13397 #  endif
13398 #endif
13399
13400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13401    find out it does not work in some platform. */
13402 #ifndef LT_DLLAZY_OR_NOW
13403 #  ifdef RTLD_LAZY
13404 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13405 #  else
13406 #    ifdef DL_LAZY
13407 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13408 #    else
13409 #      ifdef RTLD_NOW
13410 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13411 #      else
13412 #        ifdef DL_NOW
13413 #          define LT_DLLAZY_OR_NOW      DL_NOW
13414 #        else
13415 #          define LT_DLLAZY_OR_NOW      0
13416 #        endif
13417 #      endif
13418 #    endif
13419 #  endif
13420 #endif
13421
13422 #ifdef __cplusplus
13423 extern "C" void exit (int);
13424 #endif
13425
13426 void fnord() { int i=42;}
13427 int main ()
13428 {
13429   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13430   int status = $lt_dlunknown;
13431
13432   if (self)
13433     {
13434       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13435       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13436       /* dlclose (self); */
13437     }
13438
13439     exit (status);
13440 }
13441 EOF
13442   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443   (eval $ac_link) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13447     (./conftest; exit; ) >&5 2>/dev/null
13448     lt_status=$?
13449     case x$lt_status in
13450       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13451       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13452       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13453     esac
13454   else :
13455     # compilation failed
13456     lt_cv_dlopen_self_static=no
13457   fi
13458 fi
13459 rm -fr conftest*
13460
13461
13462 fi
13463 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13464 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13465     fi
13466
13467     CPPFLAGS="$save_CPPFLAGS"
13468     LDFLAGS="$save_LDFLAGS"
13469     LIBS="$save_LIBS"
13470     ;;
13471   esac
13472
13473   case $lt_cv_dlopen_self in
13474   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13475   *) enable_dlopen_self=unknown ;;
13476   esac
13477
13478   case $lt_cv_dlopen_self_static in
13479   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13480   *) enable_dlopen_self_static=unknown ;;
13481   esac
13482 fi
13483
13484
13485 # The else clause should only fire when bootstrapping the
13486 # libtool distribution, otherwise you forgot to ship ltmain.sh
13487 # with your package, and you will get complaints that there are
13488 # no rules to generate ltmain.sh.
13489 if test -f "$ltmain"; then
13490   # See if we are running on zsh, and set the options which allow our commands through
13491   # without removal of \ escapes.
13492   if test -n "${ZSH_VERSION+set}" ; then
13493     setopt NO_GLOB_SUBST
13494   fi
13495   # Now quote all the things that may contain metacharacters while being
13496   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13497   # variables and quote the copies for generation of the libtool script.
13498   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13499     SED SHELL STRIP \
13500     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13501     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13502     deplibs_check_method reload_flag reload_cmds need_locks \
13503     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13504     lt_cv_sys_global_symbol_to_c_name_address \
13505     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13506     old_postinstall_cmds old_postuninstall_cmds \
13507     compiler_CXX \
13508     CC_CXX \
13509     LD_CXX \
13510     lt_prog_compiler_wl_CXX \
13511     lt_prog_compiler_pic_CXX \
13512     lt_prog_compiler_static_CXX \
13513     lt_prog_compiler_no_builtin_flag_CXX \
13514     export_dynamic_flag_spec_CXX \
13515     thread_safe_flag_spec_CXX \
13516     whole_archive_flag_spec_CXX \
13517     enable_shared_with_static_runtimes_CXX \
13518     old_archive_cmds_CXX \
13519     old_archive_from_new_cmds_CXX \
13520     predep_objects_CXX \
13521     postdep_objects_CXX \
13522     predeps_CXX \
13523     postdeps_CXX \
13524     compiler_lib_search_path_CXX \
13525     archive_cmds_CXX \
13526     archive_expsym_cmds_CXX \
13527     postinstall_cmds_CXX \
13528     postuninstall_cmds_CXX \
13529     old_archive_from_expsyms_cmds_CXX \
13530     allow_undefined_flag_CXX \
13531     no_undefined_flag_CXX \
13532     export_symbols_cmds_CXX \
13533     hardcode_libdir_flag_spec_CXX \
13534     hardcode_libdir_flag_spec_ld_CXX \
13535     hardcode_libdir_separator_CXX \
13536     hardcode_automatic_CXX \
13537     module_cmds_CXX \
13538     module_expsym_cmds_CXX \
13539     lt_cv_prog_compiler_c_o_CXX \
13540     exclude_expsyms_CXX \
13541     include_expsyms_CXX; do
13542
13543     case $var in
13544     old_archive_cmds_CXX | \
13545     old_archive_from_new_cmds_CXX | \
13546     archive_cmds_CXX | \
13547     archive_expsym_cmds_CXX | \
13548     module_cmds_CXX | \
13549     module_expsym_cmds_CXX | \
13550     old_archive_from_expsyms_cmds_CXX | \
13551     export_symbols_cmds_CXX | \
13552     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13553     postinstall_cmds | postuninstall_cmds | \
13554     old_postinstall_cmds | old_postuninstall_cmds | \
13555     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13556       # Double-quote double-evaled strings.
13557       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13558       ;;
13559     *)
13560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13561       ;;
13562     esac
13563   done
13564
13565   case $lt_echo in
13566   *'\$0 --fallback-echo"')
13567     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13568     ;;
13569   esac
13570
13571 cfgfile="$ofile"
13572
13573   cat <<__EOF__ >> "$cfgfile"
13574 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13575
13576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13577
13578 # Shell to use when invoking shell scripts.
13579 SHELL=$lt_SHELL
13580
13581 # Whether or not to build shared libraries.
13582 build_libtool_libs=$enable_shared
13583
13584 # Whether or not to build static libraries.
13585 build_old_libs=$enable_static
13586
13587 # Whether or not to add -lc for building shared libraries.
13588 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13589
13590 # Whether or not to disallow shared libs when runtime libs are static
13591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13592
13593 # Whether or not to optimize for fast installation.
13594 fast_install=$enable_fast_install
13595
13596 # The host system.
13597 host_alias=$host_alias
13598 host=$host
13599 host_os=$host_os
13600
13601 # The build system.
13602 build_alias=$build_alias
13603 build=$build
13604 build_os=$build_os
13605
13606 # An echo program that does not interpret backslashes.
13607 echo=$lt_echo
13608
13609 # The archiver.
13610 AR=$lt_AR
13611 AR_FLAGS=$lt_AR_FLAGS
13612
13613 # A C compiler.
13614 LTCC=$lt_LTCC
13615
13616 # A language-specific compiler.
13617 CC=$lt_compiler_CXX
13618
13619 # Is the compiler the GNU C compiler?
13620 with_gcc=$GCC_CXX
13621
13622 # An ERE matcher.
13623 EGREP=$lt_EGREP
13624
13625 # The linker used to build libraries.
13626 LD=$lt_LD_CXX
13627
13628 # Whether we need hard or soft links.
13629 LN_S=$lt_LN_S
13630
13631 # A BSD-compatible nm program.
13632 NM=$lt_NM
13633
13634 # A symbol stripping program
13635 STRIP=$lt_STRIP
13636
13637 # Used to examine libraries when file_magic_cmd begins "file"
13638 MAGIC_CMD=$MAGIC_CMD
13639
13640 # Used on cygwin: DLL creation program.
13641 DLLTOOL="$DLLTOOL"
13642
13643 # Used on cygwin: object dumper.
13644 OBJDUMP="$OBJDUMP"
13645
13646 # Used on cygwin: assembler.
13647 AS="$AS"
13648
13649 # The name of the directory that contains temporary libtool files.
13650 objdir=$objdir
13651
13652 # How to create reloadable object files.
13653 reload_flag=$lt_reload_flag
13654 reload_cmds=$lt_reload_cmds
13655
13656 # How to pass a linker flag through the compiler.
13657 wl=$lt_lt_prog_compiler_wl_CXX
13658
13659 # Object file suffix (normally "o").
13660 objext="$ac_objext"
13661
13662 # Old archive suffix (normally "a").
13663 libext="$libext"
13664
13665 # Shared library suffix (normally ".so").
13666 shrext_cmds='$shrext_cmds'
13667
13668 # Executable file suffix (normally "").
13669 exeext="$exeext"
13670
13671 # Additional compiler flags for building library objects.
13672 pic_flag=$lt_lt_prog_compiler_pic_CXX
13673 pic_mode=$pic_mode
13674
13675 # What is the maximum length of a command?
13676 max_cmd_len=$lt_cv_sys_max_cmd_len
13677
13678 # Does compiler simultaneously support -c and -o options?
13679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13680
13681 # Must we lock files when doing compilation?
13682 need_locks=$lt_need_locks
13683
13684 # Do we need the lib prefix for modules?
13685 need_lib_prefix=$need_lib_prefix
13686
13687 # Do we need a version for libraries?
13688 need_version=$need_version
13689
13690 # Whether dlopen is supported.
13691 dlopen_support=$enable_dlopen
13692
13693 # Whether dlopen of programs is supported.
13694 dlopen_self=$enable_dlopen_self
13695
13696 # Whether dlopen of statically linked programs is supported.
13697 dlopen_self_static=$enable_dlopen_self_static
13698
13699 # Compiler flag to prevent dynamic linking.
13700 link_static_flag=$lt_lt_prog_compiler_static_CXX
13701
13702 # Compiler flag to turn off builtin functions.
13703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13704
13705 # Compiler flag to allow reflexive dlopens.
13706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13707
13708 # Compiler flag to generate shared objects directly from archives.
13709 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13710
13711 # Compiler flag to generate thread-safe objects.
13712 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13713
13714 # Library versioning type.
13715 version_type=$version_type
13716
13717 # Format of library name prefix.
13718 libname_spec=$lt_libname_spec
13719
13720 # List of archive names.  First name is the real one, the rest are links.
13721 # The last name is the one that the linker finds with -lNAME.
13722 library_names_spec=$lt_library_names_spec
13723
13724 # The coded name of the library, if different from the real name.
13725 soname_spec=$lt_soname_spec
13726
13727 # Commands used to build and install an old-style archive.
13728 RANLIB=$lt_RANLIB
13729 old_archive_cmds=$lt_old_archive_cmds_CXX
13730 old_postinstall_cmds=$lt_old_postinstall_cmds
13731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13732
13733 # Create an old-style archive from a shared archive.
13734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13735
13736 # Create a temporary old-style archive to link instead of a shared archive.
13737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13738
13739 # Commands used to build and install a shared archive.
13740 archive_cmds=$lt_archive_cmds_CXX
13741 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13742 postinstall_cmds=$lt_postinstall_cmds
13743 postuninstall_cmds=$lt_postuninstall_cmds
13744
13745 # Commands used to build a loadable module (assumed same as above if empty)
13746 module_cmds=$lt_module_cmds_CXX
13747 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13748
13749 # Commands to strip libraries.
13750 old_striplib=$lt_old_striplib
13751 striplib=$lt_striplib
13752
13753 # Dependencies to place before the objects being linked to create a
13754 # shared library.
13755 predep_objects=$lt_predep_objects_CXX
13756
13757 # Dependencies to place after the objects being linked to create a
13758 # shared library.
13759 postdep_objects=$lt_postdep_objects_CXX
13760
13761 # Dependencies to place before the objects being linked to create a
13762 # shared library.
13763 predeps=$lt_predeps_CXX
13764
13765 # Dependencies to place after the objects being linked to create a
13766 # shared library.
13767 postdeps=$lt_postdeps_CXX
13768
13769 # The library search path used internally by the compiler when linking
13770 # a shared library.
13771 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13772
13773 # Method to check whether dependent libraries are shared objects.
13774 deplibs_check_method=$lt_deplibs_check_method
13775
13776 # Command to use when deplibs_check_method == file_magic.
13777 file_magic_cmd=$lt_file_magic_cmd
13778
13779 # Flag that allows shared libraries with undefined symbols to be built.
13780 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13781
13782 # Flag that forces no undefined symbols.
13783 no_undefined_flag=$lt_no_undefined_flag_CXX
13784
13785 # Commands used to finish a libtool library installation in a directory.
13786 finish_cmds=$lt_finish_cmds
13787
13788 # Same as above, but a single script fragment to be evaled but not shown.
13789 finish_eval=$lt_finish_eval
13790
13791 # Take the output of nm and produce a listing of raw symbols and C names.
13792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13793
13794 # Transform the output of nm in a proper C declaration
13795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13796
13797 # Transform the output of nm in a C name address pair
13798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13799
13800 # This is the shared library runtime path variable.
13801 runpath_var=$runpath_var
13802
13803 # This is the shared library path variable.
13804 shlibpath_var=$shlibpath_var
13805
13806 # Is shlibpath searched before the hard-coded library search path?
13807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13808
13809 # How to hardcode a shared library path into an executable.
13810 hardcode_action=$hardcode_action_CXX
13811
13812 # Whether we should hardcode library paths into libraries.
13813 hardcode_into_libs=$hardcode_into_libs
13814
13815 # Flag to hardcode \$libdir into a binary during linking.
13816 # This must work even if \$libdir does not exist.
13817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13818
13819 # If ld is used when linking, flag to hardcode \$libdir into
13820 # a binary during linking. This must work even if \$libdir does
13821 # not exist.
13822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13823
13824 # Whether we need a single -rpath flag with a separated argument.
13825 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13826
13827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13828 # resulting binary.
13829 hardcode_direct=$hardcode_direct_CXX
13830
13831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13832 # resulting binary.
13833 hardcode_minus_L=$hardcode_minus_L_CXX
13834
13835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13836 # the resulting binary.
13837 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13838
13839 # Set to yes if building a shared library automatically hardcodes DIR into the library
13840 # and all subsequent libraries and executables linked against it.
13841 hardcode_automatic=$hardcode_automatic_CXX
13842
13843 # Variables whose values should be saved in libtool wrapper scripts and
13844 # restored at relink time.
13845 variables_saved_for_relink="$variables_saved_for_relink"
13846
13847 # Whether libtool must link a program against all its dependency libraries.
13848 link_all_deplibs=$link_all_deplibs_CXX
13849
13850 # Compile-time system search path for libraries
13851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13852
13853 # Run-time system search path for libraries
13854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13855
13856 # Fix the shell variable \$srcfile for the compiler.
13857 fix_srcfile_path="$fix_srcfile_path_CXX"
13858
13859 # Set to yes if exported symbols are required.
13860 always_export_symbols=$always_export_symbols_CXX
13861
13862 # The commands to list exported symbols.
13863 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13864
13865 # The commands to extract the exported symbol list from a shared archive.
13866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13867
13868 # Symbols that should not be listed in the preloaded symbols.
13869 exclude_expsyms=$lt_exclude_expsyms_CXX
13870
13871 # Symbols that must always be exported.
13872 include_expsyms=$lt_include_expsyms_CXX
13873
13874 # ### END LIBTOOL TAG CONFIG: $tagname
13875
13876 __EOF__
13877
13878
13879 else
13880   # If there is no Makefile yet, we rely on a make rule to execute
13881   # `config.status --recheck' to rerun these tests and create the
13882   # libtool script then.
13883   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13884   if test -f "$ltmain_in"; then
13885     test -f Makefile && make "$ltmain"
13886   fi
13887 fi
13888
13889
13890 ac_ext=c
13891 ac_cpp='$CPP $CPPFLAGS'
13892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13895
13896 CC=$lt_save_CC
13897 LDCXX=$LD
13898 LD=$lt_save_LD
13899 GCC=$lt_save_GCC
13900 with_gnu_ldcxx=$with_gnu_ld
13901 with_gnu_ld=$lt_save_with_gnu_ld
13902 lt_cv_path_LDCXX=$lt_cv_path_LD
13903 lt_cv_path_LD=$lt_save_path_LD
13904 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13905 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13906
13907         else
13908           tagname=""
13909         fi
13910         ;;
13911
13912       F77)
13913         if test -n "$F77" && test "X$F77" != "Xno"; then
13914
13915 ac_ext=f
13916 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13917 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13919
13920
13921 archive_cmds_need_lc_F77=no
13922 allow_undefined_flag_F77=
13923 always_export_symbols_F77=no
13924 archive_expsym_cmds_F77=
13925 export_dynamic_flag_spec_F77=
13926 hardcode_direct_F77=no
13927 hardcode_libdir_flag_spec_F77=
13928 hardcode_libdir_flag_spec_ld_F77=
13929 hardcode_libdir_separator_F77=
13930 hardcode_minus_L_F77=no
13931 hardcode_automatic_F77=no
13932 module_cmds_F77=
13933 module_expsym_cmds_F77=
13934 link_all_deplibs_F77=unknown
13935 old_archive_cmds_F77=$old_archive_cmds
13936 no_undefined_flag_F77=
13937 whole_archive_flag_spec_F77=
13938 enable_shared_with_static_runtimes_F77=no
13939
13940 # Source file extension for f77 test sources.
13941 ac_ext=f
13942
13943 # Object file extension for compiled f77 test sources.
13944 objext=o
13945 objext_F77=$objext
13946
13947 # Code to be used in simple compile tests
13948 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13949
13950 # Code to be used in simple link tests
13951 lt_simple_link_test_code="      program t\n      end\n"
13952
13953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13954
13955 # If no C compiler was specified, use CC.
13956 LTCC=${LTCC-"$CC"}
13957
13958 # Allow CC to be a program name with arguments.
13959 compiler=$CC
13960
13961
13962 # save warnings/boilerplate of simple test code
13963 ac_outfile=conftest.$ac_objext
13964 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13966 _lt_compiler_boilerplate=`cat conftest.err`
13967 $rm conftest*
13968
13969 ac_outfile=conftest.$ac_objext
13970 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13972 _lt_linker_boilerplate=`cat conftest.err`
13973 $rm conftest*
13974
13975
13976 # Allow CC to be a program name with arguments.
13977 lt_save_CC="$CC"
13978 CC=${F77-"f77"}
13979 compiler=$CC
13980 compiler_F77=$CC
13981 for cc_temp in $compiler""; do
13982   case $cc_temp in
13983     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13984     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13985     \-*) ;;
13986     *) break;;
13987   esac
13988 done
13989 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13990
13991
13992 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13993 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13994 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13995 echo "${ECHO_T}$can_build_shared" >&6
13996
13997 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13998 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13999 test "$can_build_shared" = "no" && enable_shared=no
14000
14001 # On AIX, shared libraries and static libraries use the same namespace, and
14002 # are all built from PIC.
14003 case $host_os in
14004 aix3*)
14005   test "$enable_shared" = yes && enable_static=no
14006   if test -n "$RANLIB"; then
14007     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14008     postinstall_cmds='$RANLIB $lib'
14009   fi
14010   ;;
14011 aix4* | aix5*)
14012   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14013     test "$enable_shared" = yes && enable_static=no
14014   fi
14015   ;;
14016 esac
14017 echo "$as_me:$LINENO: result: $enable_shared" >&5
14018 echo "${ECHO_T}$enable_shared" >&6
14019
14020 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14021 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14022 # Make sure either enable_shared or enable_static is yes.
14023 test "$enable_shared" = yes || enable_static=yes
14024 echo "$as_me:$LINENO: result: $enable_static" >&5
14025 echo "${ECHO_T}$enable_static" >&6
14026
14027 test "$ld_shlibs_F77" = no && can_build_shared=no
14028
14029 GCC_F77="$G77"
14030 LD_F77="$LD"
14031
14032 lt_prog_compiler_wl_F77=
14033 lt_prog_compiler_pic_F77=
14034 lt_prog_compiler_static_F77=
14035
14036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14038
14039   if test "$GCC" = yes; then
14040     lt_prog_compiler_wl_F77='-Wl,'
14041     lt_prog_compiler_static_F77='-static'
14042
14043     case $host_os in
14044       aix*)
14045       # All AIX code is PIC.
14046       if test "$host_cpu" = ia64; then
14047         # AIX 5 now supports IA64 processor
14048         lt_prog_compiler_static_F77='-Bstatic'
14049       fi
14050       ;;
14051
14052     amigaos*)
14053       # FIXME: we need at least 68020 code to build shared libraries, but
14054       # adding the `-m68020' flag to GCC prevents building anything better,
14055       # like `-m68040'.
14056       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14057       ;;
14058
14059     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14060       # PIC is the default for these OSes.
14061       ;;
14062
14063     mingw* | pw32* | os2*)
14064       # This hack is so that the source file can tell whether it is being
14065       # built for inclusion in a dll (and should export symbols for example).
14066       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14067       ;;
14068
14069     darwin* | rhapsody*)
14070       # PIC is the default on this platform
14071       # Common symbols not allowed in MH_DYLIB files
14072       lt_prog_compiler_pic_F77='-fno-common'
14073       ;;
14074
14075     msdosdjgpp*)
14076       # Just because we use GCC doesn't mean we suddenly get shared libraries
14077       # on systems that don't support them.
14078       lt_prog_compiler_can_build_shared_F77=no
14079       enable_shared=no
14080       ;;
14081
14082     sysv4*MP*)
14083       if test -d /usr/nec; then
14084         lt_prog_compiler_pic_F77=-Kconform_pic
14085       fi
14086       ;;
14087
14088     hpux*)
14089       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14090       # not for PA HP-UX.
14091       case $host_cpu in
14092       hppa*64*|ia64*)
14093         # +Z the default
14094         ;;
14095       *)
14096         lt_prog_compiler_pic_F77='-fPIC'
14097         ;;
14098       esac
14099       ;;
14100
14101     *)
14102       lt_prog_compiler_pic_F77='-fPIC'
14103       ;;
14104     esac
14105   else
14106     # PORTME Check for flag to pass linker flags through the system compiler.
14107     case $host_os in
14108     aix*)
14109       lt_prog_compiler_wl_F77='-Wl,'
14110       if test "$host_cpu" = ia64; then
14111         # AIX 5 now supports IA64 processor
14112         lt_prog_compiler_static_F77='-Bstatic'
14113       else
14114         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14115       fi
14116       ;;
14117       darwin*)
14118         # PIC is the default on this platform
14119         # Common symbols not allowed in MH_DYLIB files
14120        case $cc_basename in
14121          xlc*)
14122          lt_prog_compiler_pic_F77='-qnocommon'
14123          lt_prog_compiler_wl_F77='-Wl,'
14124          ;;
14125        esac
14126        ;;
14127
14128     mingw* | pw32* | os2*)
14129       # This hack is so that the source file can tell whether it is being
14130       # built for inclusion in a dll (and should export symbols for example).
14131       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14132       ;;
14133
14134     hpux9* | hpux10* | hpux11*)
14135       lt_prog_compiler_wl_F77='-Wl,'
14136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14137       # not for PA HP-UX.
14138       case $host_cpu in
14139       hppa*64*|ia64*)
14140         # +Z the default
14141         ;;
14142       *)
14143         lt_prog_compiler_pic_F77='+Z'
14144         ;;
14145       esac
14146       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14147       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14148       ;;
14149
14150     irix5* | irix6* | nonstopux*)
14151       lt_prog_compiler_wl_F77='-Wl,'
14152       # PIC (with -KPIC) is the default.
14153       lt_prog_compiler_static_F77='-non_shared'
14154       ;;
14155
14156     newsos6)
14157       lt_prog_compiler_pic_F77='-KPIC'
14158       lt_prog_compiler_static_F77='-Bstatic'
14159       ;;
14160
14161     linux*)
14162       case $cc_basename in
14163       icc* | ecc*)
14164         lt_prog_compiler_wl_F77='-Wl,'
14165         lt_prog_compiler_pic_F77='-KPIC'
14166         lt_prog_compiler_static_F77='-static'
14167         ;;
14168       pgcc* | pgf77* | pgf90* | pgf95*)
14169         # Portland Group compilers (*not* the Pentium gcc compiler,
14170         # which looks to be a dead project)
14171         lt_prog_compiler_wl_F77='-Wl,'
14172         lt_prog_compiler_pic_F77='-fpic'
14173         lt_prog_compiler_static_F77='-Bstatic'
14174         ;;
14175       ccc*)
14176         lt_prog_compiler_wl_F77='-Wl,'
14177         # All Alpha code is PIC.
14178         lt_prog_compiler_static_F77='-non_shared'
14179         ;;
14180       esac
14181       ;;
14182
14183     osf3* | osf4* | osf5*)
14184       lt_prog_compiler_wl_F77='-Wl,'
14185       # All OSF/1 code is PIC.
14186       lt_prog_compiler_static_F77='-non_shared'
14187       ;;
14188
14189     sco3.2v5*)
14190       lt_prog_compiler_pic_F77='-Kpic'
14191       lt_prog_compiler_static_F77='-dn'
14192       ;;
14193
14194     solaris*)
14195       lt_prog_compiler_pic_F77='-KPIC'
14196       lt_prog_compiler_static_F77='-Bstatic'
14197       case $cc_basename in
14198       f77* | f90* | f95*)
14199         lt_prog_compiler_wl_F77='-Qoption ld ';;
14200       *)
14201         lt_prog_compiler_wl_F77='-Wl,';;
14202       esac
14203       ;;
14204
14205     sunos4*)
14206       lt_prog_compiler_wl_F77='-Qoption ld '
14207       lt_prog_compiler_pic_F77='-PIC'
14208       lt_prog_compiler_static_F77='-Bstatic'
14209       ;;
14210
14211     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14212       lt_prog_compiler_wl_F77='-Wl,'
14213       lt_prog_compiler_pic_F77='-KPIC'
14214       lt_prog_compiler_static_F77='-Bstatic'
14215       ;;
14216
14217     sysv4*MP*)
14218       if test -d /usr/nec ;then
14219         lt_prog_compiler_pic_F77='-Kconform_pic'
14220         lt_prog_compiler_static_F77='-Bstatic'
14221       fi
14222       ;;
14223
14224     unicos*)
14225       lt_prog_compiler_wl_F77='-Wl,'
14226       lt_prog_compiler_can_build_shared_F77=no
14227       ;;
14228
14229     uts4*)
14230       lt_prog_compiler_pic_F77='-pic'
14231       lt_prog_compiler_static_F77='-Bstatic'
14232       ;;
14233
14234     *)
14235       lt_prog_compiler_can_build_shared_F77=no
14236       ;;
14237     esac
14238   fi
14239
14240 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14241 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14242
14243 #
14244 # Check to make sure the PIC flag actually works.
14245 #
14246 if test -n "$lt_prog_compiler_pic_F77"; then
14247
14248 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14249 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14250 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14251   echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253   lt_prog_compiler_pic_works_F77=no
14254   ac_outfile=conftest.$ac_objext
14255    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14256    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14257    # Insert the option either (1) after the last *FLAGS variable, or
14258    # (2) before a word containing "conftest.", or (3) at the end.
14259    # Note that $ac_compile itself does not contain backslashes and begins
14260    # with a dollar sign (not a hyphen), so the echo should work correctly.
14261    # The option is referenced via a variable to avoid confusing sed.
14262    lt_compile=`echo "$ac_compile" | $SED \
14263    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14264    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14265    -e 's:$: $lt_compiler_flag:'`
14266    (eval echo "\"\$as_me:14266: $lt_compile\"" >&5)
14267    (eval "$lt_compile" 2>conftest.err)
14268    ac_status=$?
14269    cat conftest.err >&5
14270    echo "$as_me:14270: \$? = $ac_status" >&5
14271    if (exit $ac_status) && test -s "$ac_outfile"; then
14272      # The compiler can only warn and ignore the option if not recognized
14273      # So say no if there are warnings other than the usual output.
14274      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14275      $SED '/^$/d' conftest.err >conftest.er2
14276      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14277        lt_prog_compiler_pic_works_F77=yes
14278      fi
14279    fi
14280    $rm conftest*
14281
14282 fi
14283 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14284 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14285
14286 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14287     case $lt_prog_compiler_pic_F77 in
14288      "" | " "*) ;;
14289      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14290      esac
14291 else
14292     lt_prog_compiler_pic_F77=
14293      lt_prog_compiler_can_build_shared_F77=no
14294 fi
14295
14296 fi
14297 case $host_os in
14298   # For platforms which do not support PIC, -DPIC is meaningless:
14299   *djgpp*)
14300     lt_prog_compiler_pic_F77=
14301     ;;
14302   *)
14303     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14304     ;;
14305 esac
14306
14307 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14308 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14309 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312   lt_cv_prog_compiler_c_o_F77=no
14313    $rm -r conftest 2>/dev/null
14314    mkdir conftest
14315    cd conftest
14316    mkdir out
14317    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14318
14319    lt_compiler_flag="-o out/conftest2.$ac_objext"
14320    # Insert the option either (1) after the last *FLAGS variable, or
14321    # (2) before a word containing "conftest.", or (3) at the end.
14322    # Note that $ac_compile itself does not contain backslashes and begins
14323    # with a dollar sign (not a hyphen), so the echo should work correctly.
14324    lt_compile=`echo "$ac_compile" | $SED \
14325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14327    -e 's:$: $lt_compiler_flag:'`
14328    (eval echo "\"\$as_me:14328: $lt_compile\"" >&5)
14329    (eval "$lt_compile" 2>out/conftest.err)
14330    ac_status=$?
14331    cat out/conftest.err >&5
14332    echo "$as_me:14332: \$? = $ac_status" >&5
14333    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14334    then
14335      # The compiler can only warn and ignore the option if not recognized
14336      # So say no if there are warnings
14337      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14338      $SED '/^$/d' out/conftest.err >out/conftest.er2
14339      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14340        lt_cv_prog_compiler_c_o_F77=yes
14341      fi
14342    fi
14343    chmod u+w . 2>&5
14344    $rm conftest*
14345    # SGI C++ compiler will create directory out/ii_files/ for
14346    # template instantiation
14347    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14348    $rm out/* && rmdir out
14349    cd ..
14350    rmdir conftest
14351    $rm conftest*
14352
14353 fi
14354 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14355 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14356
14357
14358 hard_links="nottested"
14359 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14360   # do not overwrite the value of need_locks provided by the user
14361   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14362 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14363   hard_links=yes
14364   $rm conftest*
14365   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14366   touch conftest.a
14367   ln conftest.a conftest.b 2>&5 || hard_links=no
14368   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14369   echo "$as_me:$LINENO: result: $hard_links" >&5
14370 echo "${ECHO_T}$hard_links" >&6
14371   if test "$hard_links" = no; then
14372     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14373 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14374     need_locks=warn
14375   fi
14376 else
14377   need_locks=no
14378 fi
14379
14380 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14381 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14382
14383   runpath_var=
14384   allow_undefined_flag_F77=
14385   enable_shared_with_static_runtimes_F77=no
14386   archive_cmds_F77=
14387   archive_expsym_cmds_F77=
14388   old_archive_From_new_cmds_F77=
14389   old_archive_from_expsyms_cmds_F77=
14390   export_dynamic_flag_spec_F77=
14391   whole_archive_flag_spec_F77=
14392   thread_safe_flag_spec_F77=
14393   hardcode_libdir_flag_spec_F77=
14394   hardcode_libdir_flag_spec_ld_F77=
14395   hardcode_libdir_separator_F77=
14396   hardcode_direct_F77=no
14397   hardcode_minus_L_F77=no
14398   hardcode_shlibpath_var_F77=unsupported
14399   link_all_deplibs_F77=unknown
14400   hardcode_automatic_F77=no
14401   module_cmds_F77=
14402   module_expsym_cmds_F77=
14403   always_export_symbols_F77=no
14404   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14405   # include_expsyms should be a list of space-separated symbols to be *always*
14406   # included in the symbol list
14407   include_expsyms_F77=
14408   # exclude_expsyms can be an extended regexp of symbols to exclude
14409   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14410   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14411   # as well as any symbol that contains `d'.
14412   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14413   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14414   # platforms (ab)use it in PIC code, but their linkers get confused if
14415   # the symbol is explicitly referenced.  Since portable code cannot
14416   # rely on this symbol name, it's probably fine to never include it in
14417   # preloaded symbol tables.
14418   extract_expsyms_cmds=
14419   # Just being paranoid about ensuring that cc_basename is set.
14420   for cc_temp in $compiler""; do
14421   case $cc_temp in
14422     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14423     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14424     \-*) ;;
14425     *) break;;
14426   esac
14427 done
14428 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14429
14430   case $host_os in
14431   cygwin* | mingw* | pw32*)
14432     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14433     # When not using gcc, we currently assume that we are using
14434     # Microsoft Visual C++.
14435     if test "$GCC" != yes; then
14436       with_gnu_ld=no
14437     fi
14438     ;;
14439   openbsd*)
14440     with_gnu_ld=no
14441     ;;
14442   esac
14443
14444   ld_shlibs_F77=yes
14445   if test "$with_gnu_ld" = yes; then
14446     # If archive_cmds runs LD, not CC, wlarc should be empty
14447     wlarc='${wl}'
14448
14449     # Set some defaults for GNU ld with shared library support. These
14450     # are reset later if shared libraries are not supported. Putting them
14451     # here allows them to be overridden if necessary.
14452     runpath_var=LD_RUN_PATH
14453     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14454     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14455     # ancient GNU ld didn't support --whole-archive et. al.
14456     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14457         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14458       else
14459         whole_archive_flag_spec_F77=
14460     fi
14461     supports_anon_versioning=no
14462     case `$LD -v 2>/dev/null` in
14463       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14464       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14465       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14466       *\ 2.11.*) ;; # other 2.11 versions
14467       *) supports_anon_versioning=yes ;;
14468     esac
14469
14470     # See if GNU ld supports shared libraries.
14471     case $host_os in
14472     aix3* | aix4* | aix5*)
14473       # On AIX/PPC, the GNU linker is very broken
14474       if test "$host_cpu" != ia64; then
14475         ld_shlibs_F77=no
14476         cat <<EOF 1>&2
14477
14478 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14479 *** to be unable to reliably create shared libraries on AIX.
14480 *** Therefore, libtool is disabling shared libraries support.  If you
14481 *** really care for shared libraries, you may want to modify your PATH
14482 *** so that a non-GNU linker is found, and then restart.
14483
14484 EOF
14485       fi
14486       ;;
14487
14488     amigaos*)
14489       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)'
14490       hardcode_libdir_flag_spec_F77='-L$libdir'
14491       hardcode_minus_L_F77=yes
14492
14493       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14494       # that the semantics of dynamic libraries on AmigaOS, at least up
14495       # to version 4, is to share data among multiple programs linked
14496       # with the same dynamic library.  Since this doesn't match the
14497       # behavior of shared libraries on other platforms, we can't use
14498       # them.
14499       ld_shlibs_F77=no
14500       ;;
14501
14502     beos*)
14503       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14504         allow_undefined_flag_F77=unsupported
14505         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14506         # support --undefined.  This deserves some investigation.  FIXME
14507         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14508       else
14509         ld_shlibs_F77=no
14510       fi
14511       ;;
14512
14513     cygwin* | mingw* | pw32*)
14514       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14515       # as there is no search path for DLLs.
14516       hardcode_libdir_flag_spec_F77='-L$libdir'
14517       allow_undefined_flag_F77=unsupported
14518       always_export_symbols_F77=no
14519       enable_shared_with_static_runtimes_F77=yes
14520       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14521
14522       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14523         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14524         # If the export-symbols file already is a .def file (1st line
14525         # is EXPORTS), use it as is; otherwise, prepend...
14526         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14527           cp $export_symbols $output_objdir/$soname.def;
14528         else
14529           echo EXPORTS > $output_objdir/$soname.def;
14530           cat $export_symbols >> $output_objdir/$soname.def;
14531         fi~
14532         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14533       else
14534         ld_shlibs_F77=no
14535       fi
14536       ;;
14537
14538     linux*)
14539       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14540         tmp_addflag=
14541         case $cc_basename,$host_cpu in
14542         pgcc*)                          # Portland Group C compiler
14543           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'
14544           tmp_addflag=' $pic_flag'
14545           ;;
14546         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14547           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'
14548           tmp_addflag=' $pic_flag -Mnomain' ;;
14549         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14550           tmp_addflag=' -i_dynamic' ;;
14551         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14552           tmp_addflag=' -i_dynamic -nofor_main' ;;
14553         ifc* | ifort*)                  # Intel Fortran compiler
14554           tmp_addflag=' -nofor_main' ;;
14555         esac
14556         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14557
14558         if test $supports_anon_versioning = yes; then
14559           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14560   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14561   $echo "local: *; };" >> $output_objdir/$libname.ver~
14562           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14563         fi
14564       else
14565         ld_shlibs_F77=no
14566       fi
14567       ;;
14568
14569     netbsd*)
14570       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14571         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14572         wlarc=
14573       else
14574         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14575         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14576       fi
14577       ;;
14578
14579     solaris* | sysv5*)
14580       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14581         ld_shlibs_F77=no
14582         cat <<EOF 1>&2
14583
14584 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14585 *** create shared libraries on Solaris systems.  Therefore, libtool
14586 *** is disabling shared libraries support.  We urge you to upgrade GNU
14587 *** binutils to release 2.9.1 or newer.  Another option is to modify
14588 *** your PATH or compiler configuration so that the native linker is
14589 *** used, and then restart.
14590
14591 EOF
14592       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14593         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14594         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14595       else
14596         ld_shlibs_F77=no
14597       fi
14598       ;;
14599
14600     sunos4*)
14601       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14602       wlarc=
14603       hardcode_direct_F77=yes
14604       hardcode_shlibpath_var_F77=no
14605       ;;
14606
14607     *)
14608       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14609         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14610         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14611       else
14612         ld_shlibs_F77=no
14613       fi
14614       ;;
14615     esac
14616
14617     if test "$ld_shlibs_F77" = no; then
14618       runpath_var=
14619       hardcode_libdir_flag_spec_F77=
14620       export_dynamic_flag_spec_F77=
14621       whole_archive_flag_spec_F77=
14622     fi
14623   else
14624     # PORTME fill in a description of your system's linker (not GNU ld)
14625     case $host_os in
14626     aix3*)
14627       allow_undefined_flag_F77=unsupported
14628       always_export_symbols_F77=yes
14629       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'
14630       # Note: this linker hardcodes the directories in LIBPATH if there
14631       # are no directories specified by -L.
14632       hardcode_minus_L_F77=yes
14633       if test "$GCC" = yes && test -z "$link_static_flag"; then
14634         # Neither direct hardcoding nor static linking is supported with a
14635         # broken collect2.
14636         hardcode_direct_F77=unsupported
14637       fi
14638       ;;
14639
14640     aix4* | aix5*)
14641       if test "$host_cpu" = ia64; then
14642         # On IA64, the linker does run time linking by default, so we don't
14643         # have to do anything special.
14644         aix_use_runtimelinking=no
14645         exp_sym_flag='-Bexport'
14646         no_entry_flag=""
14647       else
14648         # If we're using GNU nm, then we don't want the "-C" option.
14649         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14650         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14651           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'
14652         else
14653           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'
14654         fi
14655         aix_use_runtimelinking=no
14656
14657         # Test if we are trying to use run time linking or normal
14658         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14659         # need to do runtime linking.
14660         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14661           for ld_flag in $LDFLAGS; do
14662           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14663             aix_use_runtimelinking=yes
14664             break
14665           fi
14666           done
14667         esac
14668
14669         exp_sym_flag='-bexport'
14670         no_entry_flag='-bnoentry'
14671       fi
14672
14673       # When large executables or shared objects are built, AIX ld can
14674       # have problems creating the table of contents.  If linking a library
14675       # or program results in "error TOC overflow" add -mminimal-toc to
14676       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14677       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14678
14679       archive_cmds_F77=''
14680       hardcode_direct_F77=yes
14681       hardcode_libdir_separator_F77=':'
14682       link_all_deplibs_F77=yes
14683
14684       if test "$GCC" = yes; then
14685         case $host_os in aix4.[012]|aix4.[012].*)
14686         # We only want to do this on AIX 4.2 and lower, the check
14687         # below for broken collect2 doesn't work under 4.3+
14688           collect2name=`${CC} -print-prog-name=collect2`
14689           if test -f "$collect2name" && \
14690            strings "$collect2name" | grep resolve_lib_name >/dev/null
14691           then
14692           # We have reworked collect2
14693           hardcode_direct_F77=yes
14694           else
14695           # We have old collect2
14696           hardcode_direct_F77=unsupported
14697           # It fails to find uninstalled libraries when the uninstalled
14698           # path is not listed in the libpath.  Setting hardcode_minus_L
14699           # to unsupported forces relinking
14700           hardcode_minus_L_F77=yes
14701           hardcode_libdir_flag_spec_F77='-L$libdir'
14702           hardcode_libdir_separator_F77=
14703           fi
14704         esac
14705         shared_flag='-shared'
14706         if test "$aix_use_runtimelinking" = yes; then
14707           shared_flag="$shared_flag "'${wl}-G'
14708         fi
14709       else
14710         # not using gcc
14711         if test "$host_cpu" = ia64; then
14712         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14713         # chokes on -Wl,-G. The following line is correct:
14714           shared_flag='-G'
14715         else
14716         if test "$aix_use_runtimelinking" = yes; then
14717             shared_flag='${wl}-G'
14718           else
14719             shared_flag='${wl}-bM:SRE'
14720         fi
14721         fi
14722       fi
14723
14724       # It seems that -bexpall does not export symbols beginning with
14725       # underscore (_), so it is better to generate a list of symbols to export.
14726       always_export_symbols_F77=yes
14727       if test "$aix_use_runtimelinking" = yes; then
14728         # Warning - without using the other runtime loading flags (-brtl),
14729         # -berok will link without error, but may produce a broken library.
14730         allow_undefined_flag_F77='-berok'
14731        # Determine the default libpath from the value encoded in an empty executable.
14732        cat >conftest.$ac_ext <<_ACEOF
14733       program main
14734
14735       end
14736 _ACEOF
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739   (eval $ac_link) 2>conftest.er1
14740   ac_status=$?
14741   grep -v '^ *+' conftest.er1 >conftest.err
14742   rm -f conftest.er1
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); } &&
14746          { ac_try='test -z "$ac_f77_werror_flag"
14747                          || test ! -s conftest.err'
14748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; } &&
14753          { ac_try='test -s conftest$ac_exeext'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; }; then
14759
14760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14761 }'`
14762 # Check for a 64-bit object if we didn't find anything.
14763 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; }
14764 }'`; fi
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 fi
14770 rm -f conftest.err conftest.$ac_objext \
14771       conftest$ac_exeext conftest.$ac_ext
14772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14773
14774        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14775         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"
14776        else
14777         if test "$host_cpu" = ia64; then
14778           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14779           allow_undefined_flag_F77="-z nodefs"
14780           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"
14781         else
14782          # Determine the default libpath from the value encoded in an empty executable.
14783          cat >conftest.$ac_ext <<_ACEOF
14784       program main
14785
14786       end
14787 _ACEOF
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14790   (eval $ac_link) 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -z "$ac_f77_werror_flag"
14798                          || test ! -s conftest.err'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; } &&
14804          { ac_try='test -s conftest$ac_exeext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810
14811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14812 }'`
14813 # Check for a 64-bit object if we didn't find anything.
14814 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; }
14815 }'`; fi
14816 else
14817   echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 fi
14821 rm -f conftest.err conftest.$ac_objext \
14822       conftest$ac_exeext conftest.$ac_ext
14823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14824
14825          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14826           # Warning - without using the other run time loading flags,
14827           # -berok will link without error, but may produce a broken library.
14828           no_undefined_flag_F77=' ${wl}-bernotok'
14829           allow_undefined_flag_F77=' ${wl}-berok'
14830           # -bexpall does not export symbols beginning with underscore (_)
14831           always_export_symbols_F77=yes
14832           # Exported symbols can be pulled into shared objects from archives
14833           whole_archive_flag_spec_F77=' '
14834           archive_cmds_need_lc_F77=yes
14835           # This is similar to how AIX traditionally builds its shared libraries.
14836           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'
14837         fi
14838       fi
14839       ;;
14840
14841     amigaos*)
14842       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)'
14843       hardcode_libdir_flag_spec_F77='-L$libdir'
14844       hardcode_minus_L_F77=yes
14845       # see comment about different semantics on the GNU ld section
14846       ld_shlibs_F77=no
14847       ;;
14848
14849     bsdi[45]*)
14850       export_dynamic_flag_spec_F77=-rdynamic
14851       ;;
14852
14853     cygwin* | mingw* | pw32*)
14854       # When not using gcc, we currently assume that we are using
14855       # Microsoft Visual C++.
14856       # hardcode_libdir_flag_spec is actually meaningless, as there is
14857       # no search path for DLLs.
14858       hardcode_libdir_flag_spec_F77=' '
14859       allow_undefined_flag_F77=unsupported
14860       # Tell ltmain to make .lib files, not .a files.
14861       libext=lib
14862       # Tell ltmain to make .dll files, not .so files.
14863       shrext_cmds=".dll"
14864       # FIXME: Setting linknames here is a bad hack.
14865       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14866       # The linker will automatically build a .lib file if we build a DLL.
14867       old_archive_From_new_cmds_F77='true'
14868       # FIXME: Should let the user specify the lib program.
14869       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14870       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14871       enable_shared_with_static_runtimes_F77=yes
14872       ;;
14873
14874     darwin* | rhapsody*)
14875       case $host_os in
14876         rhapsody* | darwin1.[012])
14877          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14878          ;;
14879        *) # Darwin 1.3 on
14880          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14881            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14882          else
14883            case ${MACOSX_DEPLOYMENT_TARGET} in
14884              10.[012])
14885                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14886                ;;
14887              10.*)
14888                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14889                ;;
14890            esac
14891          fi
14892          ;;
14893       esac
14894       archive_cmds_need_lc_F77=no
14895       hardcode_direct_F77=no
14896       hardcode_automatic_F77=yes
14897       hardcode_shlibpath_var_F77=unsupported
14898       whole_archive_flag_spec_F77=''
14899       link_all_deplibs_F77=yes
14900     if test "$GCC" = yes ; then
14901         output_verbose_link_cmd='echo'
14902         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14903       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14904       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14905       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}'
14906       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}'
14907     else
14908       case $cc_basename in
14909         xlc*)
14910          output_verbose_link_cmd='echo'
14911          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14912          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14913           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14914          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}'
14915           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}'
14916           ;;
14917        *)
14918          ld_shlibs_F77=no
14919           ;;
14920       esac
14921     fi
14922       ;;
14923
14924     dgux*)
14925       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926       hardcode_libdir_flag_spec_F77='-L$libdir'
14927       hardcode_shlibpath_var_F77=no
14928       ;;
14929
14930     freebsd1*)
14931       ld_shlibs_F77=no
14932       ;;
14933
14934     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14935     # support.  Future versions do this automatically, but an explicit c++rt0.o
14936     # does not break anything, and helps significantly (at the cost of a little
14937     # extra space).
14938     freebsd2.2*)
14939       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14940       hardcode_libdir_flag_spec_F77='-R$libdir'
14941       hardcode_direct_F77=yes
14942       hardcode_shlibpath_var_F77=no
14943       ;;
14944
14945     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14946     freebsd2*)
14947       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14948       hardcode_direct_F77=yes
14949       hardcode_minus_L_F77=yes
14950       hardcode_shlibpath_var_F77=no
14951       ;;
14952
14953     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14954     freebsd* | kfreebsd*-gnu | dragonfly*)
14955       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14956       hardcode_libdir_flag_spec_F77='-R$libdir'
14957       hardcode_direct_F77=yes
14958       hardcode_shlibpath_var_F77=no
14959       ;;
14960
14961     hpux9*)
14962       if test "$GCC" = yes; then
14963         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'
14964       else
14965         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'
14966       fi
14967       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14968       hardcode_libdir_separator_F77=:
14969       hardcode_direct_F77=yes
14970
14971       # hardcode_minus_L: Not really in the search PATH,
14972       # but as the default location of the library.
14973       hardcode_minus_L_F77=yes
14974       export_dynamic_flag_spec_F77='${wl}-E'
14975       ;;
14976
14977     hpux10* | hpux11*)
14978       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14979         case $host_cpu in
14980         hppa*64*|ia64*)
14981           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14982           ;;
14983         *)
14984           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14985           ;;
14986         esac
14987       else
14988         case $host_cpu in
14989         hppa*64*|ia64*)
14990           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14991           ;;
14992         *)
14993           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14994           ;;
14995         esac
14996       fi
14997       if test "$with_gnu_ld" = no; then
14998         case $host_cpu in
14999         hppa*64*)
15000           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15001           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15002           hardcode_libdir_separator_F77=:
15003           hardcode_direct_F77=no
15004           hardcode_shlibpath_var_F77=no
15005           ;;
15006         ia64*)
15007           hardcode_libdir_flag_spec_F77='-L$libdir'
15008           hardcode_direct_F77=no
15009           hardcode_shlibpath_var_F77=no
15010
15011           # hardcode_minus_L: Not really in the search PATH,
15012           # but as the default location of the library.
15013           hardcode_minus_L_F77=yes
15014           ;;
15015         *)
15016           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15017           hardcode_libdir_separator_F77=:
15018           hardcode_direct_F77=yes
15019           export_dynamic_flag_spec_F77='${wl}-E'
15020
15021           # hardcode_minus_L: Not really in the search PATH,
15022           # but as the default location of the library.
15023           hardcode_minus_L_F77=yes
15024           ;;
15025         esac
15026       fi
15027       ;;
15028
15029     irix5* | irix6* | nonstopux*)
15030       if test "$GCC" = yes; then
15031         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'
15032       else
15033         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'
15034         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15035       fi
15036       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15037       hardcode_libdir_separator_F77=:
15038       link_all_deplibs_F77=yes
15039       ;;
15040
15041     netbsd*)
15042       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15043         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15044       else
15045         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15046       fi
15047       hardcode_libdir_flag_spec_F77='-R$libdir'
15048       hardcode_direct_F77=yes
15049       hardcode_shlibpath_var_F77=no
15050       ;;
15051
15052     newsos6)
15053       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15054       hardcode_direct_F77=yes
15055       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15056       hardcode_libdir_separator_F77=:
15057       hardcode_shlibpath_var_F77=no
15058       ;;
15059
15060     openbsd*)
15061       hardcode_direct_F77=yes
15062       hardcode_shlibpath_var_F77=no
15063       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15064         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15065         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15066         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15067         export_dynamic_flag_spec_F77='${wl}-E'
15068       else
15069        case $host_os in
15070          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15071            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15072            hardcode_libdir_flag_spec_F77='-R$libdir'
15073            ;;
15074          *)
15075            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15076            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15077            ;;
15078        esac
15079       fi
15080       ;;
15081
15082     os2*)
15083       hardcode_libdir_flag_spec_F77='-L$libdir'
15084       hardcode_minus_L_F77=yes
15085       allow_undefined_flag_F77=unsupported
15086       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'
15087       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15088       ;;
15089
15090     osf3*)
15091       if test "$GCC" = yes; then
15092         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15093         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'
15094       else
15095         allow_undefined_flag_F77=' -expect_unresolved \*'
15096         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'
15097       fi
15098       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15099       hardcode_libdir_separator_F77=:
15100       ;;
15101
15102     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15103       if test "$GCC" = yes; then
15104         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15105         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'
15106         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15107       else
15108         allow_undefined_flag_F77=' -expect_unresolved \*'
15109         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'
15110         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~
15111         $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'
15112
15113         # Both c and cxx compiler support -rpath directly
15114         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15115       fi
15116       hardcode_libdir_separator_F77=:
15117       ;;
15118
15119     sco3.2v5*)
15120       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121       hardcode_shlibpath_var_F77=no
15122       export_dynamic_flag_spec_F77='${wl}-Bexport'
15123       runpath_var=LD_RUN_PATH
15124       hardcode_runpath_var=yes
15125       ;;
15126
15127     solaris*)
15128       no_undefined_flag_F77=' -z text'
15129       if test "$GCC" = yes; then
15130         wlarc='${wl}'
15131         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15132         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15133           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15134       else
15135         wlarc=''
15136         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15137         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15138         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15139       fi
15140       hardcode_libdir_flag_spec_F77='-R$libdir'
15141       hardcode_shlibpath_var_F77=no
15142       case $host_os in
15143       solaris2.[0-5] | solaris2.[0-5].*) ;;
15144       *)
15145         # The compiler driver will combine linker options so we
15146         # cannot just pass the convience library names through
15147         # without $wl, iff we do not link with $LD.
15148         # Luckily, gcc supports the same syntax we need for Sun Studio.
15149         # Supported since Solaris 2.6 (maybe 2.5.1?)
15150         case $wlarc in
15151         '')
15152           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15153         *)
15154           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' ;;
15155         esac ;;
15156       esac
15157       link_all_deplibs_F77=yes
15158       ;;
15159
15160     sunos4*)
15161       if test "x$host_vendor" = xsequent; then
15162         # Use $CC to link under sequent, because it throws in some extra .o
15163         # files that make .init and .fini sections work.
15164         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15165       else
15166         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15167       fi
15168       hardcode_libdir_flag_spec_F77='-L$libdir'
15169       hardcode_direct_F77=yes
15170       hardcode_minus_L_F77=yes
15171       hardcode_shlibpath_var_F77=no
15172       ;;
15173
15174     sysv4)
15175       case $host_vendor in
15176         sni)
15177           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15178           hardcode_direct_F77=yes # is this really true???
15179         ;;
15180         siemens)
15181           ## LD is ld it makes a PLAMLIB
15182           ## CC just makes a GrossModule.
15183           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15184           reload_cmds_F77='$CC -r -o $output$reload_objs'
15185           hardcode_direct_F77=no
15186         ;;
15187         motorola)
15188           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15189           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15190         ;;
15191       esac
15192       runpath_var='LD_RUN_PATH'
15193       hardcode_shlibpath_var_F77=no
15194       ;;
15195
15196     sysv4.3*)
15197       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15198       hardcode_shlibpath_var_F77=no
15199       export_dynamic_flag_spec_F77='-Bexport'
15200       ;;
15201
15202     sysv4*MP*)
15203       if test -d /usr/nec; then
15204         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15205         hardcode_shlibpath_var_F77=no
15206         runpath_var=LD_RUN_PATH
15207         hardcode_runpath_var=yes
15208         ld_shlibs_F77=yes
15209       fi
15210       ;;
15211
15212     sysv4.2uw2*)
15213       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15214       hardcode_direct_F77=yes
15215       hardcode_minus_L_F77=no
15216       hardcode_shlibpath_var_F77=no
15217       hardcode_runpath_var=yes
15218       runpath_var=LD_RUN_PATH
15219       ;;
15220
15221    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15222       no_undefined_flag_F77='${wl}-z ${wl}text'
15223       if test "$GCC" = yes; then
15224         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225       else
15226         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15227       fi
15228       runpath_var='LD_RUN_PATH'
15229       hardcode_shlibpath_var_F77=no
15230       ;;
15231
15232     sysv5*)
15233       no_undefined_flag_F77=' -z text'
15234       # $CC -shared without GNU ld will not create a library from C++
15235       # object files and a static libstdc++, better avoid it by now
15236       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15237       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15238                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15239       hardcode_libdir_flag_spec_F77=
15240       hardcode_shlibpath_var_F77=no
15241       runpath_var='LD_RUN_PATH'
15242       ;;
15243
15244     uts4*)
15245       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15246       hardcode_libdir_flag_spec_F77='-L$libdir'
15247       hardcode_shlibpath_var_F77=no
15248       ;;
15249
15250     *)
15251       ld_shlibs_F77=no
15252       ;;
15253     esac
15254   fi
15255
15256 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15257 echo "${ECHO_T}$ld_shlibs_F77" >&6
15258 test "$ld_shlibs_F77" = no && can_build_shared=no
15259
15260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15261 if test "$GCC" = yes; then
15262   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15263 fi
15264
15265 #
15266 # Do we need to explicitly link libc?
15267 #
15268 case "x$archive_cmds_need_lc_F77" in
15269 x|xyes)
15270   # Assume -lc should be added
15271   archive_cmds_need_lc_F77=yes
15272
15273   if test "$enable_shared" = yes && test "$GCC" = yes; then
15274     case $archive_cmds_F77 in
15275     *'~'*)
15276       # FIXME: we may have to deal with multi-command sequences.
15277       ;;
15278     '$CC '*)
15279       # Test whether the compiler implicitly links with -lc since on some
15280       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15281       # to ld, don't add -lc before -lgcc.
15282       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15283 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15284       $rm conftest*
15285       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15286
15287       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15288   (eval $ac_compile) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); } 2>conftest.err; then
15292         soname=conftest
15293         lib=conftest
15294         libobjs=conftest.$ac_objext
15295         deplibs=
15296         wl=$lt_prog_compiler_wl_F77
15297         compiler_flags=-v
15298         linker_flags=-v
15299         verstring=
15300         output_objdir=.
15301         libname=conftest
15302         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15303         allow_undefined_flag_F77=
15304         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15305   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15306   ac_status=$?
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); }
15309         then
15310           archive_cmds_need_lc_F77=no
15311         else
15312           archive_cmds_need_lc_F77=yes
15313         fi
15314         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15315       else
15316         cat conftest.err 1>&5
15317       fi
15318       $rm conftest*
15319       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15320 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15321       ;;
15322     esac
15323   fi
15324   ;;
15325 esac
15326
15327 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15329 library_names_spec=
15330 libname_spec='lib$name'
15331 soname_spec=
15332 shrext_cmds=".so"
15333 postinstall_cmds=
15334 postuninstall_cmds=
15335 finish_cmds=
15336 finish_eval=
15337 shlibpath_var=
15338 shlibpath_overrides_runpath=unknown
15339 version_type=none
15340 dynamic_linker="$host_os ld.so"
15341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15342 if test "$GCC" = yes; then
15343   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15344   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15345     # if the path contains ";" then we assume it to be the separator
15346     # otherwise default to the standard path separator (i.e. ":") - it is
15347     # assumed that no part of a normal pathname contains ";" but that should
15348     # okay in the real world where ";" in dirpaths is itself problematic.
15349     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15350   else
15351     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15352   fi
15353 else
15354   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15355 fi
15356 need_lib_prefix=unknown
15357 hardcode_into_libs=no
15358
15359 # when you set need_version to no, make sure it does not cause -set_version
15360 # flags to be left without arguments
15361 need_version=unknown
15362
15363 case $host_os in
15364 aix3*)
15365   version_type=linux
15366   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15367   shlibpath_var=LIBPATH
15368
15369   # AIX 3 has no versioning support, so we append a major version to the name.
15370   soname_spec='${libname}${release}${shared_ext}$major'
15371   ;;
15372
15373 aix4* | aix5*)
15374   version_type=linux
15375   need_lib_prefix=no
15376   need_version=no
15377   hardcode_into_libs=yes
15378   if test "$host_cpu" = ia64; then
15379     # AIX 5 supports IA64
15380     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15381     shlibpath_var=LD_LIBRARY_PATH
15382   else
15383     # With GCC up to 2.95.x, collect2 would create an import file
15384     # for dependence libraries.  The import file would start with
15385     # the line `#! .'.  This would cause the generated library to
15386     # depend on `.', always an invalid library.  This was fixed in
15387     # development snapshots of GCC prior to 3.0.
15388     case $host_os in
15389       aix4 | aix4.[01] | aix4.[01].*)
15390       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15391            echo ' yes '
15392            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15393         :
15394       else
15395         can_build_shared=no
15396       fi
15397       ;;
15398     esac
15399     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15400     # soname into executable. Probably we can add versioning support to
15401     # collect2, so additional links can be useful in future.
15402     if test "$aix_use_runtimelinking" = yes; then
15403       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15404       # instead of lib<name>.a to let people know that these are not
15405       # typical AIX shared libraries.
15406       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407     else
15408       # We preserve .a as extension for shared libraries through AIX4.2
15409       # and later when we are not doing run time linking.
15410       library_names_spec='${libname}${release}.a $libname.a'
15411       soname_spec='${libname}${release}${shared_ext}$major'
15412     fi
15413     shlibpath_var=LIBPATH
15414   fi
15415   ;;
15416
15417 amigaos*)
15418   library_names_spec='$libname.ixlibrary $libname.a'
15419   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15420   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'
15421   ;;
15422
15423 beos*)
15424   library_names_spec='${libname}${shared_ext}'
15425   dynamic_linker="$host_os ld.so"
15426   shlibpath_var=LIBRARY_PATH
15427   ;;
15428
15429 bsdi[45]*)
15430   version_type=linux
15431   need_version=no
15432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433   soname_spec='${libname}${release}${shared_ext}$major'
15434   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15435   shlibpath_var=LD_LIBRARY_PATH
15436   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15437   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15438   # the default ld.so.conf also contains /usr/contrib/lib and
15439   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15440   # libtool to hard-code these into programs
15441   ;;
15442
15443 cygwin* | mingw* | pw32*)
15444   version_type=windows
15445   shrext_cmds=".dll"
15446   need_version=no
15447   need_lib_prefix=no
15448
15449   case $GCC,$host_os in
15450   yes,cygwin* | yes,mingw* | yes,pw32*)
15451     library_names_spec='$libname.dll.a'
15452     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15453     postinstall_cmds='base_file=`basename \${file}`~
15454       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15455       dldir=$destdir/`dirname \$dlpath`~
15456       test -d \$dldir || mkdir -p \$dldir~
15457       $install_prog $dir/$dlname \$dldir/$dlname~
15458       chmod a+x \$dldir/$dlname'
15459     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15460       dlpath=$dir/\$dldll~
15461        $rm \$dlpath'
15462     shlibpath_overrides_runpath=yes
15463
15464     case $host_os in
15465     cygwin*)
15466       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15467       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15468       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15469       ;;
15470     mingw*)
15471       # MinGW DLLs use traditional 'lib' prefix
15472       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15473       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15474       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15475         # It is most probably a Windows format PATH printed by
15476         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15477         # path with ; separators, and with drive letters. We can handle the
15478         # drive letters (cygwin fileutils understands them), so leave them,
15479         # especially as we might pass files found there to a mingw objdump,
15480         # which wouldn't understand a cygwinified path. Ahh.
15481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15482       else
15483         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15484       fi
15485       ;;
15486     pw32*)
15487       # pw32 DLLs use 'pw' prefix rather than 'lib'
15488       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15489       ;;
15490     esac
15491     ;;
15492
15493   *)
15494     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15495     ;;
15496   esac
15497   dynamic_linker='Win32 ld.exe'
15498   # FIXME: first we should search . and the directory the executable is in
15499   shlibpath_var=PATH
15500   ;;
15501
15502 darwin* | rhapsody*)
15503   dynamic_linker="$host_os dyld"
15504   version_type=darwin
15505   need_lib_prefix=no
15506   need_version=no
15507   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15508   soname_spec='${libname}${release}${major}$shared_ext'
15509   shlibpath_overrides_runpath=yes
15510   shlibpath_var=DYLD_LIBRARY_PATH
15511   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15512   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15513   if test "$GCC" = yes; then
15514     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"`
15515   else
15516     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15517   fi
15518   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15519   ;;
15520
15521 dgux*)
15522   version_type=linux
15523   need_lib_prefix=no
15524   need_version=no
15525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15526   soname_spec='${libname}${release}${shared_ext}$major'
15527   shlibpath_var=LD_LIBRARY_PATH
15528   ;;
15529
15530 freebsd1*)
15531   dynamic_linker=no
15532   ;;
15533
15534 kfreebsd*-gnu)
15535   version_type=linux
15536   need_lib_prefix=no
15537   need_version=no
15538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15539   soname_spec='${libname}${release}${shared_ext}$major'
15540   shlibpath_var=LD_LIBRARY_PATH
15541   shlibpath_overrides_runpath=no
15542   hardcode_into_libs=yes
15543   dynamic_linker='GNU ld.so'
15544   ;;
15545
15546 freebsd* | dragonfly*)
15547   # DragonFly does not have aout.  When/if they implement a new
15548   # versioning mechanism, adjust this.
15549   if test -x /usr/bin/objformat; then
15550     objformat=`/usr/bin/objformat`
15551   else
15552     case $host_os in
15553     freebsd[123]*) objformat=aout ;;
15554     *) objformat=elf ;;
15555     esac
15556   fi
15557   version_type=freebsd-$objformat
15558   case $version_type in
15559     freebsd-elf*)
15560       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15561       need_version=no
15562       need_lib_prefix=no
15563       ;;
15564     freebsd-*)
15565       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15566       need_version=yes
15567       ;;
15568   esac
15569   shlibpath_var=LD_LIBRARY_PATH
15570   case $host_os in
15571   freebsd2*)
15572     shlibpath_overrides_runpath=yes
15573     ;;
15574   freebsd3.[01]* | freebsdelf3.[01]*)
15575     shlibpath_overrides_runpath=yes
15576     hardcode_into_libs=yes
15577     ;;
15578   *) # from 3.2 on
15579     shlibpath_overrides_runpath=no
15580     hardcode_into_libs=yes
15581     ;;
15582   esac
15583   ;;
15584
15585 gnu*)
15586   version_type=linux
15587   need_lib_prefix=no
15588   need_version=no
15589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15590   soname_spec='${libname}${release}${shared_ext}$major'
15591   shlibpath_var=LD_LIBRARY_PATH
15592   hardcode_into_libs=yes
15593   ;;
15594
15595 hpux9* | hpux10* | hpux11*)
15596   # Give a soname corresponding to the major version so that dld.sl refuses to
15597   # link against other versions.
15598   version_type=sunos
15599   need_lib_prefix=no
15600   need_version=no
15601   case $host_cpu in
15602   ia64*)
15603     shrext_cmds='.so'
15604     hardcode_into_libs=yes
15605     dynamic_linker="$host_os dld.so"
15606     shlibpath_var=LD_LIBRARY_PATH
15607     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609     soname_spec='${libname}${release}${shared_ext}$major'
15610     if test "X$HPUX_IA64_MODE" = X32; then
15611       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15612     else
15613       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15614     fi
15615     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15616     ;;
15617    hppa*64*)
15618      shrext_cmds='.sl'
15619      hardcode_into_libs=yes
15620      dynamic_linker="$host_os dld.sl"
15621      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15622      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15623      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624      soname_spec='${libname}${release}${shared_ext}$major'
15625      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15626      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15627      ;;
15628    *)
15629     shrext_cmds='.sl'
15630     dynamic_linker="$host_os dld.sl"
15631     shlibpath_var=SHLIB_PATH
15632     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634     soname_spec='${libname}${release}${shared_ext}$major'
15635     ;;
15636   esac
15637   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15638   postinstall_cmds='chmod 555 $lib'
15639   ;;
15640
15641 irix5* | irix6* | nonstopux*)
15642   case $host_os in
15643     nonstopux*) version_type=nonstopux ;;
15644     *)
15645         if test "$lt_cv_prog_gnu_ld" = yes; then
15646                 version_type=linux
15647         else
15648                 version_type=irix
15649         fi ;;
15650   esac
15651   need_lib_prefix=no
15652   need_version=no
15653   soname_spec='${libname}${release}${shared_ext}$major'
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15655   case $host_os in
15656   irix5* | nonstopux*)
15657     libsuff= shlibsuff=
15658     ;;
15659   *)
15660     case $LD in # libtool.m4 will add one of these switches to LD
15661     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15662       libsuff= shlibsuff= libmagic=32-bit;;
15663     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15664       libsuff=32 shlibsuff=N32 libmagic=N32;;
15665     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15666       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15667     *) libsuff= shlibsuff= libmagic=never-match;;
15668     esac
15669     ;;
15670   esac
15671   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15672   shlibpath_overrides_runpath=no
15673   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15674   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15675   hardcode_into_libs=yes
15676   ;;
15677
15678 # No shared lib support for Linux oldld, aout, or coff.
15679 linux*oldld* | linux*aout* | linux*coff*)
15680   dynamic_linker=no
15681   ;;
15682
15683 # This must be Linux ELF.
15684 linux*)
15685   version_type=linux
15686   need_lib_prefix=no
15687   need_version=no
15688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689   soname_spec='${libname}${release}${shared_ext}$major'
15690   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15691   shlibpath_var=LD_LIBRARY_PATH
15692   shlibpath_overrides_runpath=no
15693   # This implies no fast_install, which is unacceptable.
15694   # Some rework will be needed to allow for fast_install
15695   # before this can be enabled.
15696   hardcode_into_libs=yes
15697
15698   # find out which ABI we are using
15699   libsuff=
15700   case "$host_cpu" in
15701   x86_64*|s390x*|powerpc64*)
15702     echo '#line 15702 "configure"' > conftest.$ac_ext
15703     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15704   (eval $ac_compile) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; then
15708       case `/usr/bin/file conftest.$ac_objext` in
15709       *64-bit*)
15710         libsuff=64
15711         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15712         ;;
15713       esac
15714     fi
15715     rm -rf conftest*
15716     ;;
15717   esac
15718
15719   # Append ld.so.conf contents to the search path
15720   if test -f /etc/ld.so.conf; then
15721     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' ' '`
15722     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15723   fi
15724
15725   # We used to test for /lib/ld.so.1 and disable shared libraries on
15726   # powerpc, because MkLinux only supported shared libraries with the
15727   # GNU dynamic linker.  Since this was broken with cross compilers,
15728   # most powerpc-linux boxes support dynamic linking these days and
15729   # people can always --disable-shared, the test was removed, and we
15730   # assume the GNU/Linux dynamic linker is in use.
15731   dynamic_linker='GNU/Linux ld.so'
15732   ;;
15733
15734 knetbsd*-gnu)
15735   version_type=linux
15736   need_lib_prefix=no
15737   need_version=no
15738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15739   soname_spec='${libname}${release}${shared_ext}$major'
15740   shlibpath_var=LD_LIBRARY_PATH
15741   shlibpath_overrides_runpath=no
15742   hardcode_into_libs=yes
15743   dynamic_linker='GNU ld.so'
15744   ;;
15745
15746 netbsd*)
15747   version_type=sunos
15748   need_lib_prefix=no
15749   need_version=no
15750   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15751     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15752     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15753     dynamic_linker='NetBSD (a.out) ld.so'
15754   else
15755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15756     soname_spec='${libname}${release}${shared_ext}$major'
15757     dynamic_linker='NetBSD ld.elf_so'
15758   fi
15759   shlibpath_var=LD_LIBRARY_PATH
15760   shlibpath_overrides_runpath=yes
15761   hardcode_into_libs=yes
15762   ;;
15763
15764 newsos6)
15765   version_type=linux
15766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767   shlibpath_var=LD_LIBRARY_PATH
15768   shlibpath_overrides_runpath=yes
15769   ;;
15770
15771 nto-qnx*)
15772   version_type=linux
15773   need_lib_prefix=no
15774   need_version=no
15775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776   soname_spec='${libname}${release}${shared_ext}$major'
15777   shlibpath_var=LD_LIBRARY_PATH
15778   shlibpath_overrides_runpath=yes
15779   ;;
15780
15781 openbsd*)
15782   version_type=sunos
15783   need_lib_prefix=no
15784   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15785   case $host_os in
15786     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15787     *)                         need_version=no  ;;
15788   esac
15789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15791   shlibpath_var=LD_LIBRARY_PATH
15792   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15793     case $host_os in
15794       openbsd2.[89] | openbsd2.[89].*)
15795         shlibpath_overrides_runpath=no
15796         ;;
15797       *)
15798         shlibpath_overrides_runpath=yes
15799         ;;
15800       esac
15801   else
15802     shlibpath_overrides_runpath=yes
15803   fi
15804   ;;
15805
15806 os2*)
15807   libname_spec='$name'
15808   shrext_cmds=".dll"
15809   need_lib_prefix=no
15810   library_names_spec='$libname${shared_ext} $libname.a'
15811   dynamic_linker='OS/2 ld.exe'
15812   shlibpath_var=LIBPATH
15813   ;;
15814
15815 osf3* | osf4* | osf5*)
15816   version_type=osf
15817   need_lib_prefix=no
15818   need_version=no
15819   soname_spec='${libname}${release}${shared_ext}$major'
15820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821   shlibpath_var=LD_LIBRARY_PATH
15822   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15823   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15824   ;;
15825
15826 sco3.2v5*)
15827   version_type=osf
15828   soname_spec='${libname}${release}${shared_ext}$major'
15829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15830   shlibpath_var=LD_LIBRARY_PATH
15831   ;;
15832
15833 solaris*)
15834   version_type=linux
15835   need_lib_prefix=no
15836   need_version=no
15837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838   soname_spec='${libname}${release}${shared_ext}$major'
15839   shlibpath_var=LD_LIBRARY_PATH
15840   shlibpath_overrides_runpath=yes
15841   hardcode_into_libs=yes
15842   # ldd complains unless libraries are executable
15843   postinstall_cmds='chmod +x $lib'
15844   ;;
15845
15846 sunos4*)
15847   version_type=sunos
15848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15849   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15850   shlibpath_var=LD_LIBRARY_PATH
15851   shlibpath_overrides_runpath=yes
15852   if test "$with_gnu_ld" = yes; then
15853     need_lib_prefix=no
15854   fi
15855   need_version=yes
15856   ;;
15857
15858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15859   version_type=linux
15860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861   soname_spec='${libname}${release}${shared_ext}$major'
15862   shlibpath_var=LD_LIBRARY_PATH
15863   case $host_vendor in
15864     sni)
15865       shlibpath_overrides_runpath=no
15866       need_lib_prefix=no
15867       export_dynamic_flag_spec='${wl}-Blargedynsym'
15868       runpath_var=LD_RUN_PATH
15869       ;;
15870     siemens)
15871       need_lib_prefix=no
15872       ;;
15873     motorola)
15874       need_lib_prefix=no
15875       need_version=no
15876       shlibpath_overrides_runpath=no
15877       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15878       ;;
15879   esac
15880   ;;
15881
15882 sysv4*MP*)
15883   if test -d /usr/nec ;then
15884     version_type=linux
15885     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15886     soname_spec='$libname${shared_ext}.$major'
15887     shlibpath_var=LD_LIBRARY_PATH
15888   fi
15889   ;;
15890
15891 uts4*)
15892   version_type=linux
15893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894   soname_spec='${libname}${release}${shared_ext}$major'
15895   shlibpath_var=LD_LIBRARY_PATH
15896   ;;
15897
15898 *)
15899   dynamic_linker=no
15900   ;;
15901 esac
15902 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15903 echo "${ECHO_T}$dynamic_linker" >&6
15904 test "$dynamic_linker" = no && can_build_shared=no
15905
15906 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15907 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15908 hardcode_action_F77=
15909 if test -n "$hardcode_libdir_flag_spec_F77" || \
15910    test -n "$runpath_var_F77" || \
15911    test "X$hardcode_automatic_F77" = "Xyes" ; then
15912
15913   # We can hardcode non-existant directories.
15914   if test "$hardcode_direct_F77" != no &&
15915      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15916      # have to relink, otherwise we might link with an installed library
15917      # when we should be linking with a yet-to-be-installed one
15918      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15919      test "$hardcode_minus_L_F77" != no; then
15920     # Linking always hardcodes the temporary library directory.
15921     hardcode_action_F77=relink
15922   else
15923     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15924     hardcode_action_F77=immediate
15925   fi
15926 else
15927   # We cannot hardcode anything, or else we can only hardcode existing
15928   # directories.
15929   hardcode_action_F77=unsupported
15930 fi
15931 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15932 echo "${ECHO_T}$hardcode_action_F77" >&6
15933
15934 if test "$hardcode_action_F77" = relink; then
15935   # Fast installation is not supported
15936   enable_fast_install=no
15937 elif test "$shlibpath_overrides_runpath" = yes ||
15938      test "$enable_shared" = no; then
15939   # Fast installation is not necessary
15940   enable_fast_install=needless
15941 fi
15942
15943 striplib=
15944 old_striplib=
15945 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15946 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15947 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15948   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15949   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15950   echo "$as_me:$LINENO: result: yes" >&5
15951 echo "${ECHO_T}yes" >&6
15952 else
15953 # FIXME - insert some real tests, host_os isn't really good enough
15954   case $host_os in
15955    darwin*)
15956        if test -n "$STRIP" ; then
15957          striplib="$STRIP -x"
15958          echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6
15960        else
15961   echo "$as_me:$LINENO: result: no" >&5
15962 echo "${ECHO_T}no" >&6
15963 fi
15964        ;;
15965    *)
15966   echo "$as_me:$LINENO: result: no" >&5
15967 echo "${ECHO_T}no" >&6
15968     ;;
15969   esac
15970 fi
15971
15972
15973
15974 # The else clause should only fire when bootstrapping the
15975 # libtool distribution, otherwise you forgot to ship ltmain.sh
15976 # with your package, and you will get complaints that there are
15977 # no rules to generate ltmain.sh.
15978 if test -f "$ltmain"; then
15979   # See if we are running on zsh, and set the options which allow our commands through
15980   # without removal of \ escapes.
15981   if test -n "${ZSH_VERSION+set}" ; then
15982     setopt NO_GLOB_SUBST
15983   fi
15984   # Now quote all the things that may contain metacharacters while being
15985   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15986   # variables and quote the copies for generation of the libtool script.
15987   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15988     SED SHELL STRIP \
15989     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15990     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15991     deplibs_check_method reload_flag reload_cmds need_locks \
15992     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15993     lt_cv_sys_global_symbol_to_c_name_address \
15994     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15995     old_postinstall_cmds old_postuninstall_cmds \
15996     compiler_F77 \
15997     CC_F77 \
15998     LD_F77 \
15999     lt_prog_compiler_wl_F77 \
16000     lt_prog_compiler_pic_F77 \
16001     lt_prog_compiler_static_F77 \
16002     lt_prog_compiler_no_builtin_flag_F77 \
16003     export_dynamic_flag_spec_F77 \
16004     thread_safe_flag_spec_F77 \
16005     whole_archive_flag_spec_F77 \
16006     enable_shared_with_static_runtimes_F77 \
16007     old_archive_cmds_F77 \
16008     old_archive_from_new_cmds_F77 \
16009     predep_objects_F77 \
16010     postdep_objects_F77 \
16011     predeps_F77 \
16012     postdeps_F77 \
16013     compiler_lib_search_path_F77 \
16014     archive_cmds_F77 \
16015     archive_expsym_cmds_F77 \
16016     postinstall_cmds_F77 \
16017     postuninstall_cmds_F77 \
16018     old_archive_from_expsyms_cmds_F77 \
16019     allow_undefined_flag_F77 \
16020     no_undefined_flag_F77 \
16021     export_symbols_cmds_F77 \
16022     hardcode_libdir_flag_spec_F77 \
16023     hardcode_libdir_flag_spec_ld_F77 \
16024     hardcode_libdir_separator_F77 \
16025     hardcode_automatic_F77 \
16026     module_cmds_F77 \
16027     module_expsym_cmds_F77 \
16028     lt_cv_prog_compiler_c_o_F77 \
16029     exclude_expsyms_F77 \
16030     include_expsyms_F77; do
16031
16032     case $var in
16033     old_archive_cmds_F77 | \
16034     old_archive_from_new_cmds_F77 | \
16035     archive_cmds_F77 | \
16036     archive_expsym_cmds_F77 | \
16037     module_cmds_F77 | \
16038     module_expsym_cmds_F77 | \
16039     old_archive_from_expsyms_cmds_F77 | \
16040     export_symbols_cmds_F77 | \
16041     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16042     postinstall_cmds | postuninstall_cmds | \
16043     old_postinstall_cmds | old_postuninstall_cmds | \
16044     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16045       # Double-quote double-evaled strings.
16046       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16047       ;;
16048     *)
16049       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16050       ;;
16051     esac
16052   done
16053
16054   case $lt_echo in
16055   *'\$0 --fallback-echo"')
16056     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16057     ;;
16058   esac
16059
16060 cfgfile="$ofile"
16061
16062   cat <<__EOF__ >> "$cfgfile"
16063 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16064
16065 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16066
16067 # Shell to use when invoking shell scripts.
16068 SHELL=$lt_SHELL
16069
16070 # Whether or not to build shared libraries.
16071 build_libtool_libs=$enable_shared
16072
16073 # Whether or not to build static libraries.
16074 build_old_libs=$enable_static
16075
16076 # Whether or not to add -lc for building shared libraries.
16077 build_libtool_need_lc=$archive_cmds_need_lc_F77
16078
16079 # Whether or not to disallow shared libs when runtime libs are static
16080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16081
16082 # Whether or not to optimize for fast installation.
16083 fast_install=$enable_fast_install
16084
16085 # The host system.
16086 host_alias=$host_alias
16087 host=$host
16088 host_os=$host_os
16089
16090 # The build system.
16091 build_alias=$build_alias
16092 build=$build
16093 build_os=$build_os
16094
16095 # An echo program that does not interpret backslashes.
16096 echo=$lt_echo
16097
16098 # The archiver.
16099 AR=$lt_AR
16100 AR_FLAGS=$lt_AR_FLAGS
16101
16102 # A C compiler.
16103 LTCC=$lt_LTCC
16104
16105 # A language-specific compiler.
16106 CC=$lt_compiler_F77
16107
16108 # Is the compiler the GNU C compiler?
16109 with_gcc=$GCC_F77
16110
16111 # An ERE matcher.
16112 EGREP=$lt_EGREP
16113
16114 # The linker used to build libraries.
16115 LD=$lt_LD_F77
16116
16117 # Whether we need hard or soft links.
16118 LN_S=$lt_LN_S
16119
16120 # A BSD-compatible nm program.
16121 NM=$lt_NM
16122
16123 # A symbol stripping program
16124 STRIP=$lt_STRIP
16125
16126 # Used to examine libraries when file_magic_cmd begins "file"
16127 MAGIC_CMD=$MAGIC_CMD
16128
16129 # Used on cygwin: DLL creation program.
16130 DLLTOOL="$DLLTOOL"
16131
16132 # Used on cygwin: object dumper.
16133 OBJDUMP="$OBJDUMP"
16134
16135 # Used on cygwin: assembler.
16136 AS="$AS"
16137
16138 # The name of the directory that contains temporary libtool files.
16139 objdir=$objdir
16140
16141 # How to create reloadable object files.
16142 reload_flag=$lt_reload_flag
16143 reload_cmds=$lt_reload_cmds
16144
16145 # How to pass a linker flag through the compiler.
16146 wl=$lt_lt_prog_compiler_wl_F77
16147
16148 # Object file suffix (normally "o").
16149 objext="$ac_objext"
16150
16151 # Old archive suffix (normally "a").
16152 libext="$libext"
16153
16154 # Shared library suffix (normally ".so").
16155 shrext_cmds='$shrext_cmds'
16156
16157 # Executable file suffix (normally "").
16158 exeext="$exeext"
16159
16160 # Additional compiler flags for building library objects.
16161 pic_flag=$lt_lt_prog_compiler_pic_F77
16162 pic_mode=$pic_mode
16163
16164 # What is the maximum length of a command?
16165 max_cmd_len=$lt_cv_sys_max_cmd_len
16166
16167 # Does compiler simultaneously support -c and -o options?
16168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16169
16170 # Must we lock files when doing compilation?
16171 need_locks=$lt_need_locks
16172
16173 # Do we need the lib prefix for modules?
16174 need_lib_prefix=$need_lib_prefix
16175
16176 # Do we need a version for libraries?
16177 need_version=$need_version
16178
16179 # Whether dlopen is supported.
16180 dlopen_support=$enable_dlopen
16181
16182 # Whether dlopen of programs is supported.
16183 dlopen_self=$enable_dlopen_self
16184
16185 # Whether dlopen of statically linked programs is supported.
16186 dlopen_self_static=$enable_dlopen_self_static
16187
16188 # Compiler flag to prevent dynamic linking.
16189 link_static_flag=$lt_lt_prog_compiler_static_F77
16190
16191 # Compiler flag to turn off builtin functions.
16192 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16193
16194 # Compiler flag to allow reflexive dlopens.
16195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16196
16197 # Compiler flag to generate shared objects directly from archives.
16198 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16199
16200 # Compiler flag to generate thread-safe objects.
16201 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16202
16203 # Library versioning type.
16204 version_type=$version_type
16205
16206 # Format of library name prefix.
16207 libname_spec=$lt_libname_spec
16208
16209 # List of archive names.  First name is the real one, the rest are links.
16210 # The last name is the one that the linker finds with -lNAME.
16211 library_names_spec=$lt_library_names_spec
16212
16213 # The coded name of the library, if different from the real name.
16214 soname_spec=$lt_soname_spec
16215
16216 # Commands used to build and install an old-style archive.
16217 RANLIB=$lt_RANLIB
16218 old_archive_cmds=$lt_old_archive_cmds_F77
16219 old_postinstall_cmds=$lt_old_postinstall_cmds
16220 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16221
16222 # Create an old-style archive from a shared archive.
16223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16224
16225 # Create a temporary old-style archive to link instead of a shared archive.
16226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16227
16228 # Commands used to build and install a shared archive.
16229 archive_cmds=$lt_archive_cmds_F77
16230 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16231 postinstall_cmds=$lt_postinstall_cmds
16232 postuninstall_cmds=$lt_postuninstall_cmds
16233
16234 # Commands used to build a loadable module (assumed same as above if empty)
16235 module_cmds=$lt_module_cmds_F77
16236 module_expsym_cmds=$lt_module_expsym_cmds_F77
16237
16238 # Commands to strip libraries.
16239 old_striplib=$lt_old_striplib
16240 striplib=$lt_striplib
16241
16242 # Dependencies to place before the objects being linked to create a
16243 # shared library.
16244 predep_objects=$lt_predep_objects_F77
16245
16246 # Dependencies to place after the objects being linked to create a
16247 # shared library.
16248 postdep_objects=$lt_postdep_objects_F77
16249
16250 # Dependencies to place before the objects being linked to create a
16251 # shared library.
16252 predeps=$lt_predeps_F77
16253
16254 # Dependencies to place after the objects being linked to create a
16255 # shared library.
16256 postdeps=$lt_postdeps_F77
16257
16258 # The library search path used internally by the compiler when linking
16259 # a shared library.
16260 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16261
16262 # Method to check whether dependent libraries are shared objects.
16263 deplibs_check_method=$lt_deplibs_check_method
16264
16265 # Command to use when deplibs_check_method == file_magic.
16266 file_magic_cmd=$lt_file_magic_cmd
16267
16268 # Flag that allows shared libraries with undefined symbols to be built.
16269 allow_undefined_flag=$lt_allow_undefined_flag_F77
16270
16271 # Flag that forces no undefined symbols.
16272 no_undefined_flag=$lt_no_undefined_flag_F77
16273
16274 # Commands used to finish a libtool library installation in a directory.
16275 finish_cmds=$lt_finish_cmds
16276
16277 # Same as above, but a single script fragment to be evaled but not shown.
16278 finish_eval=$lt_finish_eval
16279
16280 # Take the output of nm and produce a listing of raw symbols and C names.
16281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16282
16283 # Transform the output of nm in a proper C declaration
16284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16285
16286 # Transform the output of nm in a C name address pair
16287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16288
16289 # This is the shared library runtime path variable.
16290 runpath_var=$runpath_var
16291
16292 # This is the shared library path variable.
16293 shlibpath_var=$shlibpath_var
16294
16295 # Is shlibpath searched before the hard-coded library search path?
16296 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16297
16298 # How to hardcode a shared library path into an executable.
16299 hardcode_action=$hardcode_action_F77
16300
16301 # Whether we should hardcode library paths into libraries.
16302 hardcode_into_libs=$hardcode_into_libs
16303
16304 # Flag to hardcode \$libdir into a binary during linking.
16305 # This must work even if \$libdir does not exist.
16306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16307
16308 # If ld is used when linking, flag to hardcode \$libdir into
16309 # a binary during linking. This must work even if \$libdir does
16310 # not exist.
16311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16312
16313 # Whether we need a single -rpath flag with a separated argument.
16314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16315
16316 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16317 # resulting binary.
16318 hardcode_direct=$hardcode_direct_F77
16319
16320 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16321 # resulting binary.
16322 hardcode_minus_L=$hardcode_minus_L_F77
16323
16324 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16325 # the resulting binary.
16326 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16327
16328 # Set to yes if building a shared library automatically hardcodes DIR into the library
16329 # and all subsequent libraries and executables linked against it.
16330 hardcode_automatic=$hardcode_automatic_F77
16331
16332 # Variables whose values should be saved in libtool wrapper scripts and
16333 # restored at relink time.
16334 variables_saved_for_relink="$variables_saved_for_relink"
16335
16336 # Whether libtool must link a program against all its dependency libraries.
16337 link_all_deplibs=$link_all_deplibs_F77
16338
16339 # Compile-time system search path for libraries
16340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16341
16342 # Run-time system search path for libraries
16343 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16344
16345 # Fix the shell variable \$srcfile for the compiler.
16346 fix_srcfile_path="$fix_srcfile_path_F77"
16347
16348 # Set to yes if exported symbols are required.
16349 always_export_symbols=$always_export_symbols_F77
16350
16351 # The commands to list exported symbols.
16352 export_symbols_cmds=$lt_export_symbols_cmds_F77
16353
16354 # The commands to extract the exported symbol list from a shared archive.
16355 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16356
16357 # Symbols that should not be listed in the preloaded symbols.
16358 exclude_expsyms=$lt_exclude_expsyms_F77
16359
16360 # Symbols that must always be exported.
16361 include_expsyms=$lt_include_expsyms_F77
16362
16363 # ### END LIBTOOL TAG CONFIG: $tagname
16364
16365 __EOF__
16366
16367
16368 else
16369   # If there is no Makefile yet, we rely on a make rule to execute
16370   # `config.status --recheck' to rerun these tests and create the
16371   # libtool script then.
16372   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16373   if test -f "$ltmain_in"; then
16374     test -f Makefile && make "$ltmain"
16375   fi
16376 fi
16377
16378
16379 ac_ext=c
16380 ac_cpp='$CPP $CPPFLAGS'
16381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16384
16385 CC="$lt_save_CC"
16386
16387         else
16388           tagname=""
16389         fi
16390         ;;
16391
16392       GCJ)
16393         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16394
16395
16396
16397 # Source file extension for Java test sources.
16398 ac_ext=java
16399
16400 # Object file extension for compiled Java test sources.
16401 objext=o
16402 objext_GCJ=$objext
16403
16404 # Code to be used in simple compile tests
16405 lt_simple_compile_test_code="class foo {}\n"
16406
16407 # Code to be used in simple link tests
16408 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16409
16410 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16411
16412 # If no C compiler was specified, use CC.
16413 LTCC=${LTCC-"$CC"}
16414
16415 # Allow CC to be a program name with arguments.
16416 compiler=$CC
16417
16418
16419 # save warnings/boilerplate of simple test code
16420 ac_outfile=conftest.$ac_objext
16421 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16422 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16423 _lt_compiler_boilerplate=`cat conftest.err`
16424 $rm conftest*
16425
16426 ac_outfile=conftest.$ac_objext
16427 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16428 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16429 _lt_linker_boilerplate=`cat conftest.err`
16430 $rm conftest*
16431
16432
16433 # Allow CC to be a program name with arguments.
16434 lt_save_CC="$CC"
16435 CC=${GCJ-"gcj"}
16436 compiler=$CC
16437 compiler_GCJ=$CC
16438 for cc_temp in $compiler""; do
16439   case $cc_temp in
16440     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16441     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16442     \-*) ;;
16443     *) break;;
16444   esac
16445 done
16446 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16447
16448
16449 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16450 archive_cmds_need_lc_GCJ=no
16451
16452 old_archive_cmds_GCJ=$old_archive_cmds
16453
16454
16455 lt_prog_compiler_no_builtin_flag_GCJ=
16456
16457 if test "$GCC" = yes; then
16458   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16459
16460
16461 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16462 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16463 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16464   echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466   lt_cv_prog_compiler_rtti_exceptions=no
16467   ac_outfile=conftest.$ac_objext
16468    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16469    lt_compiler_flag="-fno-rtti -fno-exceptions"
16470    # Insert the option either (1) after the last *FLAGS variable, or
16471    # (2) before a word containing "conftest.", or (3) at the end.
16472    # Note that $ac_compile itself does not contain backslashes and begins
16473    # with a dollar sign (not a hyphen), so the echo should work correctly.
16474    # The option is referenced via a variable to avoid confusing sed.
16475    lt_compile=`echo "$ac_compile" | $SED \
16476    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16478    -e 's:$: $lt_compiler_flag:'`
16479    (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
16480    (eval "$lt_compile" 2>conftest.err)
16481    ac_status=$?
16482    cat conftest.err >&5
16483    echo "$as_me:16483: \$? = $ac_status" >&5
16484    if (exit $ac_status) && test -s "$ac_outfile"; then
16485      # The compiler can only warn and ignore the option if not recognized
16486      # So say no if there are warnings other than the usual output.
16487      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16488      $SED '/^$/d' conftest.err >conftest.er2
16489      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16490        lt_cv_prog_compiler_rtti_exceptions=yes
16491      fi
16492    fi
16493    $rm conftest*
16494
16495 fi
16496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16497 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16498
16499 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16500     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16501 else
16502     :
16503 fi
16504
16505 fi
16506
16507 lt_prog_compiler_wl_GCJ=
16508 lt_prog_compiler_pic_GCJ=
16509 lt_prog_compiler_static_GCJ=
16510
16511 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16512 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16513
16514   if test "$GCC" = yes; then
16515     lt_prog_compiler_wl_GCJ='-Wl,'
16516     lt_prog_compiler_static_GCJ='-static'
16517
16518     case $host_os in
16519       aix*)
16520       # All AIX code is PIC.
16521       if test "$host_cpu" = ia64; then
16522         # AIX 5 now supports IA64 processor
16523         lt_prog_compiler_static_GCJ='-Bstatic'
16524       fi
16525       ;;
16526
16527     amigaos*)
16528       # FIXME: we need at least 68020 code to build shared libraries, but
16529       # adding the `-m68020' flag to GCC prevents building anything better,
16530       # like `-m68040'.
16531       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16532       ;;
16533
16534     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16535       # PIC is the default for these OSes.
16536       ;;
16537
16538     mingw* | pw32* | os2*)
16539       # This hack is so that the source file can tell whether it is being
16540       # built for inclusion in a dll (and should export symbols for example).
16541       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16542       ;;
16543
16544     darwin* | rhapsody*)
16545       # PIC is the default on this platform
16546       # Common symbols not allowed in MH_DYLIB files
16547       lt_prog_compiler_pic_GCJ='-fno-common'
16548       ;;
16549
16550     msdosdjgpp*)
16551       # Just because we use GCC doesn't mean we suddenly get shared libraries
16552       # on systems that don't support them.
16553       lt_prog_compiler_can_build_shared_GCJ=no
16554       enable_shared=no
16555       ;;
16556
16557     sysv4*MP*)
16558       if test -d /usr/nec; then
16559         lt_prog_compiler_pic_GCJ=-Kconform_pic
16560       fi
16561       ;;
16562
16563     hpux*)
16564       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16565       # not for PA HP-UX.
16566       case $host_cpu in
16567       hppa*64*|ia64*)
16568         # +Z the default
16569         ;;
16570       *)
16571         lt_prog_compiler_pic_GCJ='-fPIC'
16572         ;;
16573       esac
16574       ;;
16575
16576     *)
16577       lt_prog_compiler_pic_GCJ='-fPIC'
16578       ;;
16579     esac
16580   else
16581     # PORTME Check for flag to pass linker flags through the system compiler.
16582     case $host_os in
16583     aix*)
16584       lt_prog_compiler_wl_GCJ='-Wl,'
16585       if test "$host_cpu" = ia64; then
16586         # AIX 5 now supports IA64 processor
16587         lt_prog_compiler_static_GCJ='-Bstatic'
16588       else
16589         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16590       fi
16591       ;;
16592       darwin*)
16593         # PIC is the default on this platform
16594         # Common symbols not allowed in MH_DYLIB files
16595        case $cc_basename in
16596          xlc*)
16597          lt_prog_compiler_pic_GCJ='-qnocommon'
16598          lt_prog_compiler_wl_GCJ='-Wl,'
16599          ;;
16600        esac
16601        ;;
16602
16603     mingw* | pw32* | os2*)
16604       # This hack is so that the source file can tell whether it is being
16605       # built for inclusion in a dll (and should export symbols for example).
16606       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16607       ;;
16608
16609     hpux9* | hpux10* | hpux11*)
16610       lt_prog_compiler_wl_GCJ='-Wl,'
16611       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16612       # not for PA HP-UX.
16613       case $host_cpu in
16614       hppa*64*|ia64*)
16615         # +Z the default
16616         ;;
16617       *)
16618         lt_prog_compiler_pic_GCJ='+Z'
16619         ;;
16620       esac
16621       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16622       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16623       ;;
16624
16625     irix5* | irix6* | nonstopux*)
16626       lt_prog_compiler_wl_GCJ='-Wl,'
16627       # PIC (with -KPIC) is the default.
16628       lt_prog_compiler_static_GCJ='-non_shared'
16629       ;;
16630
16631     newsos6)
16632       lt_prog_compiler_pic_GCJ='-KPIC'
16633       lt_prog_compiler_static_GCJ='-Bstatic'
16634       ;;
16635
16636     linux*)
16637       case $cc_basename in
16638       icc* | ecc*)
16639         lt_prog_compiler_wl_GCJ='-Wl,'
16640         lt_prog_compiler_pic_GCJ='-KPIC'
16641         lt_prog_compiler_static_GCJ='-static'
16642         ;;
16643       pgcc* | pgf77* | pgf90* | pgf95*)
16644         # Portland Group compilers (*not* the Pentium gcc compiler,
16645         # which looks to be a dead project)
16646         lt_prog_compiler_wl_GCJ='-Wl,'
16647         lt_prog_compiler_pic_GCJ='-fpic'
16648         lt_prog_compiler_static_GCJ='-Bstatic'
16649         ;;
16650       ccc*)
16651         lt_prog_compiler_wl_GCJ='-Wl,'
16652         # All Alpha code is PIC.
16653         lt_prog_compiler_static_GCJ='-non_shared'
16654         ;;
16655       esac
16656       ;;
16657
16658     osf3* | osf4* | osf5*)
16659       lt_prog_compiler_wl_GCJ='-Wl,'
16660       # All OSF/1 code is PIC.
16661       lt_prog_compiler_static_GCJ='-non_shared'
16662       ;;
16663
16664     sco3.2v5*)
16665       lt_prog_compiler_pic_GCJ='-Kpic'
16666       lt_prog_compiler_static_GCJ='-dn'
16667       ;;
16668
16669     solaris*)
16670       lt_prog_compiler_pic_GCJ='-KPIC'
16671       lt_prog_compiler_static_GCJ='-Bstatic'
16672       case $cc_basename in
16673       f77* | f90* | f95*)
16674         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16675       *)
16676         lt_prog_compiler_wl_GCJ='-Wl,';;
16677       esac
16678       ;;
16679
16680     sunos4*)
16681       lt_prog_compiler_wl_GCJ='-Qoption ld '
16682       lt_prog_compiler_pic_GCJ='-PIC'
16683       lt_prog_compiler_static_GCJ='-Bstatic'
16684       ;;
16685
16686     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16687       lt_prog_compiler_wl_GCJ='-Wl,'
16688       lt_prog_compiler_pic_GCJ='-KPIC'
16689       lt_prog_compiler_static_GCJ='-Bstatic'
16690       ;;
16691
16692     sysv4*MP*)
16693       if test -d /usr/nec ;then
16694         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16695         lt_prog_compiler_static_GCJ='-Bstatic'
16696       fi
16697       ;;
16698
16699     unicos*)
16700       lt_prog_compiler_wl_GCJ='-Wl,'
16701       lt_prog_compiler_can_build_shared_GCJ=no
16702       ;;
16703
16704     uts4*)
16705       lt_prog_compiler_pic_GCJ='-pic'
16706       lt_prog_compiler_static_GCJ='-Bstatic'
16707       ;;
16708
16709     *)
16710       lt_prog_compiler_can_build_shared_GCJ=no
16711       ;;
16712     esac
16713   fi
16714
16715 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16716 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16717
16718 #
16719 # Check to make sure the PIC flag actually works.
16720 #
16721 if test -n "$lt_prog_compiler_pic_GCJ"; then
16722
16723 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16724 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16725 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728   lt_prog_compiler_pic_works_GCJ=no
16729   ac_outfile=conftest.$ac_objext
16730    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16731    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16732    # Insert the option either (1) after the last *FLAGS variable, or
16733    # (2) before a word containing "conftest.", or (3) at the end.
16734    # Note that $ac_compile itself does not contain backslashes and begins
16735    # with a dollar sign (not a hyphen), so the echo should work correctly.
16736    # The option is referenced via a variable to avoid confusing sed.
16737    lt_compile=`echo "$ac_compile" | $SED \
16738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16740    -e 's:$: $lt_compiler_flag:'`
16741    (eval echo "\"\$as_me:16741: $lt_compile\"" >&5)
16742    (eval "$lt_compile" 2>conftest.err)
16743    ac_status=$?
16744    cat conftest.err >&5
16745    echo "$as_me:16745: \$? = $ac_status" >&5
16746    if (exit $ac_status) && test -s "$ac_outfile"; then
16747      # The compiler can only warn and ignore the option if not recognized
16748      # So say no if there are warnings other than the usual output.
16749      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16750      $SED '/^$/d' conftest.err >conftest.er2
16751      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16752        lt_prog_compiler_pic_works_GCJ=yes
16753      fi
16754    fi
16755    $rm conftest*
16756
16757 fi
16758 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16759 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16760
16761 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16762     case $lt_prog_compiler_pic_GCJ in
16763      "" | " "*) ;;
16764      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16765      esac
16766 else
16767     lt_prog_compiler_pic_GCJ=
16768      lt_prog_compiler_can_build_shared_GCJ=no
16769 fi
16770
16771 fi
16772 case $host_os in
16773   # For platforms which do not support PIC, -DPIC is meaningless:
16774   *djgpp*)
16775     lt_prog_compiler_pic_GCJ=
16776     ;;
16777   *)
16778     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16779     ;;
16780 esac
16781
16782 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16783 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16784 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16785   echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787   lt_cv_prog_compiler_c_o_GCJ=no
16788    $rm -r conftest 2>/dev/null
16789    mkdir conftest
16790    cd conftest
16791    mkdir out
16792    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16793
16794    lt_compiler_flag="-o out/conftest2.$ac_objext"
16795    # Insert the option either (1) after the last *FLAGS variable, or
16796    # (2) before a word containing "conftest.", or (3) at the end.
16797    # Note that $ac_compile itself does not contain backslashes and begins
16798    # with a dollar sign (not a hyphen), so the echo should work correctly.
16799    lt_compile=`echo "$ac_compile" | $SED \
16800    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16801    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16802    -e 's:$: $lt_compiler_flag:'`
16803    (eval echo "\"\$as_me:16803: $lt_compile\"" >&5)
16804    (eval "$lt_compile" 2>out/conftest.err)
16805    ac_status=$?
16806    cat out/conftest.err >&5
16807    echo "$as_me:16807: \$? = $ac_status" >&5
16808    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16809    then
16810      # The compiler can only warn and ignore the option if not recognized
16811      # So say no if there are warnings
16812      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16813      $SED '/^$/d' out/conftest.err >out/conftest.er2
16814      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16815        lt_cv_prog_compiler_c_o_GCJ=yes
16816      fi
16817    fi
16818    chmod u+w . 2>&5
16819    $rm conftest*
16820    # SGI C++ compiler will create directory out/ii_files/ for
16821    # template instantiation
16822    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16823    $rm out/* && rmdir out
16824    cd ..
16825    rmdir conftest
16826    $rm conftest*
16827
16828 fi
16829 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16830 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16831
16832
16833 hard_links="nottested"
16834 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16835   # do not overwrite the value of need_locks provided by the user
16836   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16837 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16838   hard_links=yes
16839   $rm conftest*
16840   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16841   touch conftest.a
16842   ln conftest.a conftest.b 2>&5 || hard_links=no
16843   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16844   echo "$as_me:$LINENO: result: $hard_links" >&5
16845 echo "${ECHO_T}$hard_links" >&6
16846   if test "$hard_links" = no; then
16847     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16848 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16849     need_locks=warn
16850   fi
16851 else
16852   need_locks=no
16853 fi
16854
16855 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16856 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16857
16858   runpath_var=
16859   allow_undefined_flag_GCJ=
16860   enable_shared_with_static_runtimes_GCJ=no
16861   archive_cmds_GCJ=
16862   archive_expsym_cmds_GCJ=
16863   old_archive_From_new_cmds_GCJ=
16864   old_archive_from_expsyms_cmds_GCJ=
16865   export_dynamic_flag_spec_GCJ=
16866   whole_archive_flag_spec_GCJ=
16867   thread_safe_flag_spec_GCJ=
16868   hardcode_libdir_flag_spec_GCJ=
16869   hardcode_libdir_flag_spec_ld_GCJ=
16870   hardcode_libdir_separator_GCJ=
16871   hardcode_direct_GCJ=no
16872   hardcode_minus_L_GCJ=no
16873   hardcode_shlibpath_var_GCJ=unsupported
16874   link_all_deplibs_GCJ=unknown
16875   hardcode_automatic_GCJ=no
16876   module_cmds_GCJ=
16877   module_expsym_cmds_GCJ=
16878   always_export_symbols_GCJ=no
16879   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16880   # include_expsyms should be a list of space-separated symbols to be *always*
16881   # included in the symbol list
16882   include_expsyms_GCJ=
16883   # exclude_expsyms can be an extended regexp of symbols to exclude
16884   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16885   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16886   # as well as any symbol that contains `d'.
16887   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16888   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16889   # platforms (ab)use it in PIC code, but their linkers get confused if
16890   # the symbol is explicitly referenced.  Since portable code cannot
16891   # rely on this symbol name, it's probably fine to never include it in
16892   # preloaded symbol tables.
16893   extract_expsyms_cmds=
16894   # Just being paranoid about ensuring that cc_basename is set.
16895   for cc_temp in $compiler""; do
16896   case $cc_temp in
16897     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16898     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16899     \-*) ;;
16900     *) break;;
16901   esac
16902 done
16903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16904
16905   case $host_os in
16906   cygwin* | mingw* | pw32*)
16907     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16908     # When not using gcc, we currently assume that we are using
16909     # Microsoft Visual C++.
16910     if test "$GCC" != yes; then
16911       with_gnu_ld=no
16912     fi
16913     ;;
16914   openbsd*)
16915     with_gnu_ld=no
16916     ;;
16917   esac
16918
16919   ld_shlibs_GCJ=yes
16920   if test "$with_gnu_ld" = yes; then
16921     # If archive_cmds runs LD, not CC, wlarc should be empty
16922     wlarc='${wl}'
16923
16924     # Set some defaults for GNU ld with shared library support. These
16925     # are reset later if shared libraries are not supported. Putting them
16926     # here allows them to be overridden if necessary.
16927     runpath_var=LD_RUN_PATH
16928     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16929     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16930     # ancient GNU ld didn't support --whole-archive et. al.
16931     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16932         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16933       else
16934         whole_archive_flag_spec_GCJ=
16935     fi
16936     supports_anon_versioning=no
16937     case `$LD -v 2>/dev/null` in
16938       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16939       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16940       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16941       *\ 2.11.*) ;; # other 2.11 versions
16942       *) supports_anon_versioning=yes ;;
16943     esac
16944
16945     # See if GNU ld supports shared libraries.
16946     case $host_os in
16947     aix3* | aix4* | aix5*)
16948       # On AIX/PPC, the GNU linker is very broken
16949       if test "$host_cpu" != ia64; then
16950         ld_shlibs_GCJ=no
16951         cat <<EOF 1>&2
16952
16953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16954 *** to be unable to reliably create shared libraries on AIX.
16955 *** Therefore, libtool is disabling shared libraries support.  If you
16956 *** really care for shared libraries, you may want to modify your PATH
16957 *** so that a non-GNU linker is found, and then restart.
16958
16959 EOF
16960       fi
16961       ;;
16962
16963     amigaos*)
16964       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)'
16965       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966       hardcode_minus_L_GCJ=yes
16967
16968       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16969       # that the semantics of dynamic libraries on AmigaOS, at least up
16970       # to version 4, is to share data among multiple programs linked
16971       # with the same dynamic library.  Since this doesn't match the
16972       # behavior of shared libraries on other platforms, we can't use
16973       # them.
16974       ld_shlibs_GCJ=no
16975       ;;
16976
16977     beos*)
16978       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16979         allow_undefined_flag_GCJ=unsupported
16980         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16981         # support --undefined.  This deserves some investigation.  FIXME
16982         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16983       else
16984         ld_shlibs_GCJ=no
16985       fi
16986       ;;
16987
16988     cygwin* | mingw* | pw32*)
16989       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16990       # as there is no search path for DLLs.
16991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992       allow_undefined_flag_GCJ=unsupported
16993       always_export_symbols_GCJ=no
16994       enable_shared_with_static_runtimes_GCJ=yes
16995       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16996
16997       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16998         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16999         # If the export-symbols file already is a .def file (1st line
17000         # is EXPORTS), use it as is; otherwise, prepend...
17001         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17002           cp $export_symbols $output_objdir/$soname.def;
17003         else
17004           echo EXPORTS > $output_objdir/$soname.def;
17005           cat $export_symbols >> $output_objdir/$soname.def;
17006         fi~
17007         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17008       else
17009         ld_shlibs_GCJ=no
17010       fi
17011       ;;
17012
17013     linux*)
17014       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17015         tmp_addflag=
17016         case $cc_basename,$host_cpu in
17017         pgcc*)                          # Portland Group C compiler
17018           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'
17019           tmp_addflag=' $pic_flag'
17020           ;;
17021         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17022           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'
17023           tmp_addflag=' $pic_flag -Mnomain' ;;
17024         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17025           tmp_addflag=' -i_dynamic' ;;
17026         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17027           tmp_addflag=' -i_dynamic -nofor_main' ;;
17028         ifc* | ifort*)                  # Intel Fortran compiler
17029           tmp_addflag=' -nofor_main' ;;
17030         esac
17031         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17032
17033         if test $supports_anon_versioning = yes; then
17034           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17035   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17036   $echo "local: *; };" >> $output_objdir/$libname.ver~
17037           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17038         fi
17039       else
17040         ld_shlibs_GCJ=no
17041       fi
17042       ;;
17043
17044     netbsd*)
17045       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17046         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17047         wlarc=
17048       else
17049         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17050         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17051       fi
17052       ;;
17053
17054     solaris* | sysv5*)
17055       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17056         ld_shlibs_GCJ=no
17057         cat <<EOF 1>&2
17058
17059 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17060 *** create shared libraries on Solaris systems.  Therefore, libtool
17061 *** is disabling shared libraries support.  We urge you to upgrade GNU
17062 *** binutils to release 2.9.1 or newer.  Another option is to modify
17063 *** your PATH or compiler configuration so that the native linker is
17064 *** used, and then restart.
17065
17066 EOF
17067       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17068         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17069         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17070       else
17071         ld_shlibs_GCJ=no
17072       fi
17073       ;;
17074
17075     sunos4*)
17076       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17077       wlarc=
17078       hardcode_direct_GCJ=yes
17079       hardcode_shlibpath_var_GCJ=no
17080       ;;
17081
17082     *)
17083       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17084         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17085         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17086       else
17087         ld_shlibs_GCJ=no
17088       fi
17089       ;;
17090     esac
17091
17092     if test "$ld_shlibs_GCJ" = no; then
17093       runpath_var=
17094       hardcode_libdir_flag_spec_GCJ=
17095       export_dynamic_flag_spec_GCJ=
17096       whole_archive_flag_spec_GCJ=
17097     fi
17098   else
17099     # PORTME fill in a description of your system's linker (not GNU ld)
17100     case $host_os in
17101     aix3*)
17102       allow_undefined_flag_GCJ=unsupported
17103       always_export_symbols_GCJ=yes
17104       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'
17105       # Note: this linker hardcodes the directories in LIBPATH if there
17106       # are no directories specified by -L.
17107       hardcode_minus_L_GCJ=yes
17108       if test "$GCC" = yes && test -z "$link_static_flag"; then
17109         # Neither direct hardcoding nor static linking is supported with a
17110         # broken collect2.
17111         hardcode_direct_GCJ=unsupported
17112       fi
17113       ;;
17114
17115     aix4* | aix5*)
17116       if test "$host_cpu" = ia64; then
17117         # On IA64, the linker does run time linking by default, so we don't
17118         # have to do anything special.
17119         aix_use_runtimelinking=no
17120         exp_sym_flag='-Bexport'
17121         no_entry_flag=""
17122       else
17123         # If we're using GNU nm, then we don't want the "-C" option.
17124         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17125         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17126           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'
17127         else
17128           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'
17129         fi
17130         aix_use_runtimelinking=no
17131
17132         # Test if we are trying to use run time linking or normal
17133         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17134         # need to do runtime linking.
17135         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17136           for ld_flag in $LDFLAGS; do
17137           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17138             aix_use_runtimelinking=yes
17139             break
17140           fi
17141           done
17142         esac
17143
17144         exp_sym_flag='-bexport'
17145         no_entry_flag='-bnoentry'
17146       fi
17147
17148       # When large executables or shared objects are built, AIX ld can
17149       # have problems creating the table of contents.  If linking a library
17150       # or program results in "error TOC overflow" add -mminimal-toc to
17151       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17152       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17153
17154       archive_cmds_GCJ=''
17155       hardcode_direct_GCJ=yes
17156       hardcode_libdir_separator_GCJ=':'
17157       link_all_deplibs_GCJ=yes
17158
17159       if test "$GCC" = yes; then
17160         case $host_os in aix4.[012]|aix4.[012].*)
17161         # We only want to do this on AIX 4.2 and lower, the check
17162         # below for broken collect2 doesn't work under 4.3+
17163           collect2name=`${CC} -print-prog-name=collect2`
17164           if test -f "$collect2name" && \
17165            strings "$collect2name" | grep resolve_lib_name >/dev/null
17166           then
17167           # We have reworked collect2
17168           hardcode_direct_GCJ=yes
17169           else
17170           # We have old collect2
17171           hardcode_direct_GCJ=unsupported
17172           # It fails to find uninstalled libraries when the uninstalled
17173           # path is not listed in the libpath.  Setting hardcode_minus_L
17174           # to unsupported forces relinking
17175           hardcode_minus_L_GCJ=yes
17176           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17177           hardcode_libdir_separator_GCJ=
17178           fi
17179         esac
17180         shared_flag='-shared'
17181         if test "$aix_use_runtimelinking" = yes; then
17182           shared_flag="$shared_flag "'${wl}-G'
17183         fi
17184       else
17185         # not using gcc
17186         if test "$host_cpu" = ia64; then
17187         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17188         # chokes on -Wl,-G. The following line is correct:
17189           shared_flag='-G'
17190         else
17191         if test "$aix_use_runtimelinking" = yes; then
17192             shared_flag='${wl}-G'
17193           else
17194             shared_flag='${wl}-bM:SRE'
17195         fi
17196         fi
17197       fi
17198
17199       # It seems that -bexpall does not export symbols beginning with
17200       # underscore (_), so it is better to generate a list of symbols to export.
17201       always_export_symbols_GCJ=yes
17202       if test "$aix_use_runtimelinking" = yes; then
17203         # Warning - without using the other runtime loading flags (-brtl),
17204         # -berok will link without error, but may produce a broken library.
17205         allow_undefined_flag_GCJ='-berok'
17206        # Determine the default libpath from the value encoded in an empty executable.
17207        cat >conftest.$ac_ext <<_ACEOF
17208 /* confdefs.h.  */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h.  */
17213
17214 int
17215 main ()
17216 {
17217
17218   ;
17219   return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest.$ac_objext conftest$ac_exeext
17223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224   (eval $ac_link) 2>conftest.er1
17225   ac_status=$?
17226   grep -v '^ *+' conftest.er1 >conftest.err
17227   rm -f conftest.er1
17228   cat conftest.err >&5
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); } &&
17231          { ac_try='test -z "$ac_c_werror_flag"
17232                          || test ! -s conftest.err'
17233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234   (eval $ac_try) 2>&5
17235   ac_status=$?
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); }; } &&
17238          { ac_try='test -s conftest$ac_exeext'
17239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240   (eval $ac_try) 2>&5
17241   ac_status=$?
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); }; }; then
17244
17245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17246 }'`
17247 # Check for a 64-bit object if we didn't find anything.
17248 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; }
17249 }'`; fi
17250 else
17251   echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17253
17254 fi
17255 rm -f conftest.err conftest.$ac_objext \
17256       conftest$ac_exeext conftest.$ac_ext
17257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17258
17259        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17260         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"
17261        else
17262         if test "$host_cpu" = ia64; then
17263           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17264           allow_undefined_flag_GCJ="-z nodefs"
17265           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"
17266         else
17267          # Determine the default libpath from the value encoded in an empty executable.
17268          cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274
17275 int
17276 main ()
17277 {
17278
17279   ;
17280   return 0;
17281 }
17282 _ACEOF
17283 rm -f conftest.$ac_objext conftest$ac_exeext
17284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17285   (eval $ac_link) 2>conftest.er1
17286   ac_status=$?
17287   grep -v '^ *+' conftest.er1 >conftest.err
17288   rm -f conftest.er1
17289   cat conftest.err >&5
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); } &&
17292          { ac_try='test -z "$ac_c_werror_flag"
17293                          || test ! -s conftest.err'
17294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295   (eval $ac_try) 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; } &&
17299          { ac_try='test -s conftest$ac_exeext'
17300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301   (eval $ac_try) 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; }; then
17305
17306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17307 }'`
17308 # Check for a 64-bit object if we didn't find anything.
17309 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; }
17310 }'`; fi
17311 else
17312   echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 fi
17316 rm -f conftest.err conftest.$ac_objext \
17317       conftest$ac_exeext conftest.$ac_ext
17318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17319
17320          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17321           # Warning - without using the other run time loading flags,
17322           # -berok will link without error, but may produce a broken library.
17323           no_undefined_flag_GCJ=' ${wl}-bernotok'
17324           allow_undefined_flag_GCJ=' ${wl}-berok'
17325           # -bexpall does not export symbols beginning with underscore (_)
17326           always_export_symbols_GCJ=yes
17327           # Exported symbols can be pulled into shared objects from archives
17328           whole_archive_flag_spec_GCJ=' '
17329           archive_cmds_need_lc_GCJ=yes
17330           # This is similar to how AIX traditionally builds its shared libraries.
17331           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'
17332         fi
17333       fi
17334       ;;
17335
17336     amigaos*)
17337       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)'
17338       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17339       hardcode_minus_L_GCJ=yes
17340       # see comment about different semantics on the GNU ld section
17341       ld_shlibs_GCJ=no
17342       ;;
17343
17344     bsdi[45]*)
17345       export_dynamic_flag_spec_GCJ=-rdynamic
17346       ;;
17347
17348     cygwin* | mingw* | pw32*)
17349       # When not using gcc, we currently assume that we are using
17350       # Microsoft Visual C++.
17351       # hardcode_libdir_flag_spec is actually meaningless, as there is
17352       # no search path for DLLs.
17353       hardcode_libdir_flag_spec_GCJ=' '
17354       allow_undefined_flag_GCJ=unsupported
17355       # Tell ltmain to make .lib files, not .a files.
17356       libext=lib
17357       # Tell ltmain to make .dll files, not .so files.
17358       shrext_cmds=".dll"
17359       # FIXME: Setting linknames here is a bad hack.
17360       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17361       # The linker will automatically build a .lib file if we build a DLL.
17362       old_archive_From_new_cmds_GCJ='true'
17363       # FIXME: Should let the user specify the lib program.
17364       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17365       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17366       enable_shared_with_static_runtimes_GCJ=yes
17367       ;;
17368
17369     darwin* | rhapsody*)
17370       case $host_os in
17371         rhapsody* | darwin1.[012])
17372          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17373          ;;
17374        *) # Darwin 1.3 on
17375          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17376            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17377          else
17378            case ${MACOSX_DEPLOYMENT_TARGET} in
17379              10.[012])
17380                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17381                ;;
17382              10.*)
17383                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17384                ;;
17385            esac
17386          fi
17387          ;;
17388       esac
17389       archive_cmds_need_lc_GCJ=no
17390       hardcode_direct_GCJ=no
17391       hardcode_automatic_GCJ=yes
17392       hardcode_shlibpath_var_GCJ=unsupported
17393       whole_archive_flag_spec_GCJ=''
17394       link_all_deplibs_GCJ=yes
17395     if test "$GCC" = yes ; then
17396         output_verbose_link_cmd='echo'
17397         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17398       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17399       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17400       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}'
17401       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}'
17402     else
17403       case $cc_basename in
17404         xlc*)
17405          output_verbose_link_cmd='echo'
17406          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17407          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17408           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17409          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}'
17410           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}'
17411           ;;
17412        *)
17413          ld_shlibs_GCJ=no
17414           ;;
17415       esac
17416     fi
17417       ;;
17418
17419     dgux*)
17420       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17421       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17422       hardcode_shlibpath_var_GCJ=no
17423       ;;
17424
17425     freebsd1*)
17426       ld_shlibs_GCJ=no
17427       ;;
17428
17429     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17430     # support.  Future versions do this automatically, but an explicit c++rt0.o
17431     # does not break anything, and helps significantly (at the cost of a little
17432     # extra space).
17433     freebsd2.2*)
17434       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17435       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17436       hardcode_direct_GCJ=yes
17437       hardcode_shlibpath_var_GCJ=no
17438       ;;
17439
17440     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17441     freebsd2*)
17442       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17443       hardcode_direct_GCJ=yes
17444       hardcode_minus_L_GCJ=yes
17445       hardcode_shlibpath_var_GCJ=no
17446       ;;
17447
17448     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17449     freebsd* | kfreebsd*-gnu | dragonfly*)
17450       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17451       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17452       hardcode_direct_GCJ=yes
17453       hardcode_shlibpath_var_GCJ=no
17454       ;;
17455
17456     hpux9*)
17457       if test "$GCC" = yes; then
17458         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'
17459       else
17460         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'
17461       fi
17462       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17463       hardcode_libdir_separator_GCJ=:
17464       hardcode_direct_GCJ=yes
17465
17466       # hardcode_minus_L: Not really in the search PATH,
17467       # but as the default location of the library.
17468       hardcode_minus_L_GCJ=yes
17469       export_dynamic_flag_spec_GCJ='${wl}-E'
17470       ;;
17471
17472     hpux10* | hpux11*)
17473       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17474         case $host_cpu in
17475         hppa*64*|ia64*)
17476           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17477           ;;
17478         *)
17479           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17480           ;;
17481         esac
17482       else
17483         case $host_cpu in
17484         hppa*64*|ia64*)
17485           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17486           ;;
17487         *)
17488           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17489           ;;
17490         esac
17491       fi
17492       if test "$with_gnu_ld" = no; then
17493         case $host_cpu in
17494         hppa*64*)
17495           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17496           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17497           hardcode_libdir_separator_GCJ=:
17498           hardcode_direct_GCJ=no
17499           hardcode_shlibpath_var_GCJ=no
17500           ;;
17501         ia64*)
17502           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17503           hardcode_direct_GCJ=no
17504           hardcode_shlibpath_var_GCJ=no
17505
17506           # hardcode_minus_L: Not really in the search PATH,
17507           # but as the default location of the library.
17508           hardcode_minus_L_GCJ=yes
17509           ;;
17510         *)
17511           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17512           hardcode_libdir_separator_GCJ=:
17513           hardcode_direct_GCJ=yes
17514           export_dynamic_flag_spec_GCJ='${wl}-E'
17515
17516           # hardcode_minus_L: Not really in the search PATH,
17517           # but as the default location of the library.
17518           hardcode_minus_L_GCJ=yes
17519           ;;
17520         esac
17521       fi
17522       ;;
17523
17524     irix5* | irix6* | nonstopux*)
17525       if test "$GCC" = yes; then
17526         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'
17527       else
17528         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'
17529         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17530       fi
17531       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17532       hardcode_libdir_separator_GCJ=:
17533       link_all_deplibs_GCJ=yes
17534       ;;
17535
17536     netbsd*)
17537       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17538         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17539       else
17540         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17541       fi
17542       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17543       hardcode_direct_GCJ=yes
17544       hardcode_shlibpath_var_GCJ=no
17545       ;;
17546
17547     newsos6)
17548       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549       hardcode_direct_GCJ=yes
17550       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17551       hardcode_libdir_separator_GCJ=:
17552       hardcode_shlibpath_var_GCJ=no
17553       ;;
17554
17555     openbsd*)
17556       hardcode_direct_GCJ=yes
17557       hardcode_shlibpath_var_GCJ=no
17558       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17559         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17560         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17561         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17562         export_dynamic_flag_spec_GCJ='${wl}-E'
17563       else
17564        case $host_os in
17565          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17566            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17567            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17568            ;;
17569          *)
17570            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17571            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17572            ;;
17573        esac
17574       fi
17575       ;;
17576
17577     os2*)
17578       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579       hardcode_minus_L_GCJ=yes
17580       allow_undefined_flag_GCJ=unsupported
17581       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'
17582       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17583       ;;
17584
17585     osf3*)
17586       if test "$GCC" = yes; then
17587         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17588         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'
17589       else
17590         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17591         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'
17592       fi
17593       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594       hardcode_libdir_separator_GCJ=:
17595       ;;
17596
17597     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17598       if test "$GCC" = yes; then
17599         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17600         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'
17601         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17602       else
17603         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17604         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'
17605         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~
17606         $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'
17607
17608         # Both c and cxx compiler support -rpath directly
17609         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17610       fi
17611       hardcode_libdir_separator_GCJ=:
17612       ;;
17613
17614     sco3.2v5*)
17615       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17616       hardcode_shlibpath_var_GCJ=no
17617       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17618       runpath_var=LD_RUN_PATH
17619       hardcode_runpath_var=yes
17620       ;;
17621
17622     solaris*)
17623       no_undefined_flag_GCJ=' -z text'
17624       if test "$GCC" = yes; then
17625         wlarc='${wl}'
17626         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17627         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17628           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17629       else
17630         wlarc=''
17631         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17632         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17633         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17634       fi
17635       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17636       hardcode_shlibpath_var_GCJ=no
17637       case $host_os in
17638       solaris2.[0-5] | solaris2.[0-5].*) ;;
17639       *)
17640         # The compiler driver will combine linker options so we
17641         # cannot just pass the convience library names through
17642         # without $wl, iff we do not link with $LD.
17643         # Luckily, gcc supports the same syntax we need for Sun Studio.
17644         # Supported since Solaris 2.6 (maybe 2.5.1?)
17645         case $wlarc in
17646         '')
17647           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17648         *)
17649           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' ;;
17650         esac ;;
17651       esac
17652       link_all_deplibs_GCJ=yes
17653       ;;
17654
17655     sunos4*)
17656       if test "x$host_vendor" = xsequent; then
17657         # Use $CC to link under sequent, because it throws in some extra .o
17658         # files that make .init and .fini sections work.
17659         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17660       else
17661         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17662       fi
17663       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17664       hardcode_direct_GCJ=yes
17665       hardcode_minus_L_GCJ=yes
17666       hardcode_shlibpath_var_GCJ=no
17667       ;;
17668
17669     sysv4)
17670       case $host_vendor in
17671         sni)
17672           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17673           hardcode_direct_GCJ=yes # is this really true???
17674         ;;
17675         siemens)
17676           ## LD is ld it makes a PLAMLIB
17677           ## CC just makes a GrossModule.
17678           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17679           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17680           hardcode_direct_GCJ=no
17681         ;;
17682         motorola)
17683           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17684           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17685         ;;
17686       esac
17687       runpath_var='LD_RUN_PATH'
17688       hardcode_shlibpath_var_GCJ=no
17689       ;;
17690
17691     sysv4.3*)
17692       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17693       hardcode_shlibpath_var_GCJ=no
17694       export_dynamic_flag_spec_GCJ='-Bexport'
17695       ;;
17696
17697     sysv4*MP*)
17698       if test -d /usr/nec; then
17699         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17700         hardcode_shlibpath_var_GCJ=no
17701         runpath_var=LD_RUN_PATH
17702         hardcode_runpath_var=yes
17703         ld_shlibs_GCJ=yes
17704       fi
17705       ;;
17706
17707     sysv4.2uw2*)
17708       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17709       hardcode_direct_GCJ=yes
17710       hardcode_minus_L_GCJ=no
17711       hardcode_shlibpath_var_GCJ=no
17712       hardcode_runpath_var=yes
17713       runpath_var=LD_RUN_PATH
17714       ;;
17715
17716    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17717       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17718       if test "$GCC" = yes; then
17719         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17720       else
17721         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17722       fi
17723       runpath_var='LD_RUN_PATH'
17724       hardcode_shlibpath_var_GCJ=no
17725       ;;
17726
17727     sysv5*)
17728       no_undefined_flag_GCJ=' -z text'
17729       # $CC -shared without GNU ld will not create a library from C++
17730       # object files and a static libstdc++, better avoid it by now
17731       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17732       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17733                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17734       hardcode_libdir_flag_spec_GCJ=
17735       hardcode_shlibpath_var_GCJ=no
17736       runpath_var='LD_RUN_PATH'
17737       ;;
17738
17739     uts4*)
17740       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742       hardcode_shlibpath_var_GCJ=no
17743       ;;
17744
17745     *)
17746       ld_shlibs_GCJ=no
17747       ;;
17748     esac
17749   fi
17750
17751 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17752 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17753 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17754
17755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17756 if test "$GCC" = yes; then
17757   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17758 fi
17759
17760 #
17761 # Do we need to explicitly link libc?
17762 #
17763 case "x$archive_cmds_need_lc_GCJ" in
17764 x|xyes)
17765   # Assume -lc should be added
17766   archive_cmds_need_lc_GCJ=yes
17767
17768   if test "$enable_shared" = yes && test "$GCC" = yes; then
17769     case $archive_cmds_GCJ in
17770     *'~'*)
17771       # FIXME: we may have to deal with multi-command sequences.
17772       ;;
17773     '$CC '*)
17774       # Test whether the compiler implicitly links with -lc since on some
17775       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17776       # to ld, don't add -lc before -lgcc.
17777       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17778 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17779       $rm conftest*
17780       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17781
17782       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17783   (eval $ac_compile) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } 2>conftest.err; then
17787         soname=conftest
17788         lib=conftest
17789         libobjs=conftest.$ac_objext
17790         deplibs=
17791         wl=$lt_prog_compiler_wl_GCJ
17792         compiler_flags=-v
17793         linker_flags=-v
17794         verstring=
17795         output_objdir=.
17796         libname=conftest
17797         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17798         allow_undefined_flag_GCJ=
17799         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17800   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }
17804         then
17805           archive_cmds_need_lc_GCJ=no
17806         else
17807           archive_cmds_need_lc_GCJ=yes
17808         fi
17809         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17810       else
17811         cat conftest.err 1>&5
17812       fi
17813       $rm conftest*
17814       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17815 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17816       ;;
17817     esac
17818   fi
17819   ;;
17820 esac
17821
17822 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17823 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17824 library_names_spec=
17825 libname_spec='lib$name'
17826 soname_spec=
17827 shrext_cmds=".so"
17828 postinstall_cmds=
17829 postuninstall_cmds=
17830 finish_cmds=
17831 finish_eval=
17832 shlibpath_var=
17833 shlibpath_overrides_runpath=unknown
17834 version_type=none
17835 dynamic_linker="$host_os ld.so"
17836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17837 if test "$GCC" = yes; then
17838   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17839   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17840     # if the path contains ";" then we assume it to be the separator
17841     # otherwise default to the standard path separator (i.e. ":") - it is
17842     # assumed that no part of a normal pathname contains ";" but that should
17843     # okay in the real world where ";" in dirpaths is itself problematic.
17844     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17845   else
17846     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17847   fi
17848 else
17849   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17850 fi
17851 need_lib_prefix=unknown
17852 hardcode_into_libs=no
17853
17854 # when you set need_version to no, make sure it does not cause -set_version
17855 # flags to be left without arguments
17856 need_version=unknown
17857
17858 case $host_os in
17859 aix3*)
17860   version_type=linux
17861   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17862   shlibpath_var=LIBPATH
17863
17864   # AIX 3 has no versioning support, so we append a major version to the name.
17865   soname_spec='${libname}${release}${shared_ext}$major'
17866   ;;
17867
17868 aix4* | aix5*)
17869   version_type=linux
17870   need_lib_prefix=no
17871   need_version=no
17872   hardcode_into_libs=yes
17873   if test "$host_cpu" = ia64; then
17874     # AIX 5 supports IA64
17875     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17876     shlibpath_var=LD_LIBRARY_PATH
17877   else
17878     # With GCC up to 2.95.x, collect2 would create an import file
17879     # for dependence libraries.  The import file would start with
17880     # the line `#! .'.  This would cause the generated library to
17881     # depend on `.', always an invalid library.  This was fixed in
17882     # development snapshots of GCC prior to 3.0.
17883     case $host_os in
17884       aix4 | aix4.[01] | aix4.[01].*)
17885       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17886            echo ' yes '
17887            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17888         :
17889       else
17890         can_build_shared=no
17891       fi
17892       ;;
17893     esac
17894     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17895     # soname into executable. Probably we can add versioning support to
17896     # collect2, so additional links can be useful in future.
17897     if test "$aix_use_runtimelinking" = yes; then
17898       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17899       # instead of lib<name>.a to let people know that these are not
17900       # typical AIX shared libraries.
17901       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17902     else
17903       # We preserve .a as extension for shared libraries through AIX4.2
17904       # and later when we are not doing run time linking.
17905       library_names_spec='${libname}${release}.a $libname.a'
17906       soname_spec='${libname}${release}${shared_ext}$major'
17907     fi
17908     shlibpath_var=LIBPATH
17909   fi
17910   ;;
17911
17912 amigaos*)
17913   library_names_spec='$libname.ixlibrary $libname.a'
17914   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17915   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'
17916   ;;
17917
17918 beos*)
17919   library_names_spec='${libname}${shared_ext}'
17920   dynamic_linker="$host_os ld.so"
17921   shlibpath_var=LIBRARY_PATH
17922   ;;
17923
17924 bsdi[45]*)
17925   version_type=linux
17926   need_version=no
17927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928   soname_spec='${libname}${release}${shared_ext}$major'
17929   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17930   shlibpath_var=LD_LIBRARY_PATH
17931   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17932   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17933   # the default ld.so.conf also contains /usr/contrib/lib and
17934   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17935   # libtool to hard-code these into programs
17936   ;;
17937
17938 cygwin* | mingw* | pw32*)
17939   version_type=windows
17940   shrext_cmds=".dll"
17941   need_version=no
17942   need_lib_prefix=no
17943
17944   case $GCC,$host_os in
17945   yes,cygwin* | yes,mingw* | yes,pw32*)
17946     library_names_spec='$libname.dll.a'
17947     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17948     postinstall_cmds='base_file=`basename \${file}`~
17949       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17950       dldir=$destdir/`dirname \$dlpath`~
17951       test -d \$dldir || mkdir -p \$dldir~
17952       $install_prog $dir/$dlname \$dldir/$dlname~
17953       chmod a+x \$dldir/$dlname'
17954     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17955       dlpath=$dir/\$dldll~
17956        $rm \$dlpath'
17957     shlibpath_overrides_runpath=yes
17958
17959     case $host_os in
17960     cygwin*)
17961       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17962       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17963       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17964       ;;
17965     mingw*)
17966       # MinGW DLLs use traditional 'lib' prefix
17967       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17968       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17969       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17970         # It is most probably a Windows format PATH printed by
17971         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17972         # path with ; separators, and with drive letters. We can handle the
17973         # drive letters (cygwin fileutils understands them), so leave them,
17974         # especially as we might pass files found there to a mingw objdump,
17975         # which wouldn't understand a cygwinified path. Ahh.
17976         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17977       else
17978         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17979       fi
17980       ;;
17981     pw32*)
17982       # pw32 DLLs use 'pw' prefix rather than 'lib'
17983       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17984       ;;
17985     esac
17986     ;;
17987
17988   *)
17989     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17990     ;;
17991   esac
17992   dynamic_linker='Win32 ld.exe'
17993   # FIXME: first we should search . and the directory the executable is in
17994   shlibpath_var=PATH
17995   ;;
17996
17997 darwin* | rhapsody*)
17998   dynamic_linker="$host_os dyld"
17999   version_type=darwin
18000   need_lib_prefix=no
18001   need_version=no
18002   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18003   soname_spec='${libname}${release}${major}$shared_ext'
18004   shlibpath_overrides_runpath=yes
18005   shlibpath_var=DYLD_LIBRARY_PATH
18006   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18007   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18008   if test "$GCC" = yes; then
18009     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"`
18010   else
18011     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18012   fi
18013   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18014   ;;
18015
18016 dgux*)
18017   version_type=linux
18018   need_lib_prefix=no
18019   need_version=no
18020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18021   soname_spec='${libname}${release}${shared_ext}$major'
18022   shlibpath_var=LD_LIBRARY_PATH
18023   ;;
18024
18025 freebsd1*)
18026   dynamic_linker=no
18027   ;;
18028
18029 kfreebsd*-gnu)
18030   version_type=linux
18031   need_lib_prefix=no
18032   need_version=no
18033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18034   soname_spec='${libname}${release}${shared_ext}$major'
18035   shlibpath_var=LD_LIBRARY_PATH
18036   shlibpath_overrides_runpath=no
18037   hardcode_into_libs=yes
18038   dynamic_linker='GNU ld.so'
18039   ;;
18040
18041 freebsd* | dragonfly*)
18042   # DragonFly does not have aout.  When/if they implement a new
18043   # versioning mechanism, adjust this.
18044   if test -x /usr/bin/objformat; then
18045     objformat=`/usr/bin/objformat`
18046   else
18047     case $host_os in
18048     freebsd[123]*) objformat=aout ;;
18049     *) objformat=elf ;;
18050     esac
18051   fi
18052   version_type=freebsd-$objformat
18053   case $version_type in
18054     freebsd-elf*)
18055       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18056       need_version=no
18057       need_lib_prefix=no
18058       ;;
18059     freebsd-*)
18060       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18061       need_version=yes
18062       ;;
18063   esac
18064   shlibpath_var=LD_LIBRARY_PATH
18065   case $host_os in
18066   freebsd2*)
18067     shlibpath_overrides_runpath=yes
18068     ;;
18069   freebsd3.[01]* | freebsdelf3.[01]*)
18070     shlibpath_overrides_runpath=yes
18071     hardcode_into_libs=yes
18072     ;;
18073   *) # from 3.2 on
18074     shlibpath_overrides_runpath=no
18075     hardcode_into_libs=yes
18076     ;;
18077   esac
18078   ;;
18079
18080 gnu*)
18081   version_type=linux
18082   need_lib_prefix=no
18083   need_version=no
18084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18085   soname_spec='${libname}${release}${shared_ext}$major'
18086   shlibpath_var=LD_LIBRARY_PATH
18087   hardcode_into_libs=yes
18088   ;;
18089
18090 hpux9* | hpux10* | hpux11*)
18091   # Give a soname corresponding to the major version so that dld.sl refuses to
18092   # link against other versions.
18093   version_type=sunos
18094   need_lib_prefix=no
18095   need_version=no
18096   case $host_cpu in
18097   ia64*)
18098     shrext_cmds='.so'
18099     hardcode_into_libs=yes
18100     dynamic_linker="$host_os dld.so"
18101     shlibpath_var=LD_LIBRARY_PATH
18102     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18104     soname_spec='${libname}${release}${shared_ext}$major'
18105     if test "X$HPUX_IA64_MODE" = X32; then
18106       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18107     else
18108       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18109     fi
18110     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18111     ;;
18112    hppa*64*)
18113      shrext_cmds='.sl'
18114      hardcode_into_libs=yes
18115      dynamic_linker="$host_os dld.sl"
18116      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18117      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18118      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18119      soname_spec='${libname}${release}${shared_ext}$major'
18120      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18121      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18122      ;;
18123    *)
18124     shrext_cmds='.sl'
18125     dynamic_linker="$host_os dld.sl"
18126     shlibpath_var=SHLIB_PATH
18127     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129     soname_spec='${libname}${release}${shared_ext}$major'
18130     ;;
18131   esac
18132   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18133   postinstall_cmds='chmod 555 $lib'
18134   ;;
18135
18136 irix5* | irix6* | nonstopux*)
18137   case $host_os in
18138     nonstopux*) version_type=nonstopux ;;
18139     *)
18140         if test "$lt_cv_prog_gnu_ld" = yes; then
18141                 version_type=linux
18142         else
18143                 version_type=irix
18144         fi ;;
18145   esac
18146   need_lib_prefix=no
18147   need_version=no
18148   soname_spec='${libname}${release}${shared_ext}$major'
18149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18150   case $host_os in
18151   irix5* | nonstopux*)
18152     libsuff= shlibsuff=
18153     ;;
18154   *)
18155     case $LD in # libtool.m4 will add one of these switches to LD
18156     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18157       libsuff= shlibsuff= libmagic=32-bit;;
18158     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18159       libsuff=32 shlibsuff=N32 libmagic=N32;;
18160     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18161       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18162     *) libsuff= shlibsuff= libmagic=never-match;;
18163     esac
18164     ;;
18165   esac
18166   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18167   shlibpath_overrides_runpath=no
18168   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18169   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18170   hardcode_into_libs=yes
18171   ;;
18172
18173 # No shared lib support for Linux oldld, aout, or coff.
18174 linux*oldld* | linux*aout* | linux*coff*)
18175   dynamic_linker=no
18176   ;;
18177
18178 # This must be Linux ELF.
18179 linux*)
18180   version_type=linux
18181   need_lib_prefix=no
18182   need_version=no
18183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184   soname_spec='${libname}${release}${shared_ext}$major'
18185   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18186   shlibpath_var=LD_LIBRARY_PATH
18187   shlibpath_overrides_runpath=no
18188   # This implies no fast_install, which is unacceptable.
18189   # Some rework will be needed to allow for fast_install
18190   # before this can be enabled.
18191   hardcode_into_libs=yes
18192
18193   # find out which ABI we are using
18194   libsuff=
18195   case "$host_cpu" in
18196   x86_64*|s390x*|powerpc64*)
18197     echo '#line 18197 "configure"' > conftest.$ac_ext
18198     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18199   (eval $ac_compile) 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; then
18203       case `/usr/bin/file conftest.$ac_objext` in
18204       *64-bit*)
18205         libsuff=64
18206         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18207         ;;
18208       esac
18209     fi
18210     rm -rf conftest*
18211     ;;
18212   esac
18213
18214   # Append ld.so.conf contents to the search path
18215   if test -f /etc/ld.so.conf; then
18216     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' ' '`
18217     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18218   fi
18219
18220   # We used to test for /lib/ld.so.1 and disable shared libraries on
18221   # powerpc, because MkLinux only supported shared libraries with the
18222   # GNU dynamic linker.  Since this was broken with cross compilers,
18223   # most powerpc-linux boxes support dynamic linking these days and
18224   # people can always --disable-shared, the test was removed, and we
18225   # assume the GNU/Linux dynamic linker is in use.
18226   dynamic_linker='GNU/Linux ld.so'
18227   ;;
18228
18229 knetbsd*-gnu)
18230   version_type=linux
18231   need_lib_prefix=no
18232   need_version=no
18233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18234   soname_spec='${libname}${release}${shared_ext}$major'
18235   shlibpath_var=LD_LIBRARY_PATH
18236   shlibpath_overrides_runpath=no
18237   hardcode_into_libs=yes
18238   dynamic_linker='GNU ld.so'
18239   ;;
18240
18241 netbsd*)
18242   version_type=sunos
18243   need_lib_prefix=no
18244   need_version=no
18245   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18247     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18248     dynamic_linker='NetBSD (a.out) ld.so'
18249   else
18250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18251     soname_spec='${libname}${release}${shared_ext}$major'
18252     dynamic_linker='NetBSD ld.elf_so'
18253   fi
18254   shlibpath_var=LD_LIBRARY_PATH
18255   shlibpath_overrides_runpath=yes
18256   hardcode_into_libs=yes
18257   ;;
18258
18259 newsos6)
18260   version_type=linux
18261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262   shlibpath_var=LD_LIBRARY_PATH
18263   shlibpath_overrides_runpath=yes
18264   ;;
18265
18266 nto-qnx*)
18267   version_type=linux
18268   need_lib_prefix=no
18269   need_version=no
18270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271   soname_spec='${libname}${release}${shared_ext}$major'
18272   shlibpath_var=LD_LIBRARY_PATH
18273   shlibpath_overrides_runpath=yes
18274   ;;
18275
18276 openbsd*)
18277   version_type=sunos
18278   need_lib_prefix=no
18279   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18280   case $host_os in
18281     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18282     *)                         need_version=no  ;;
18283   esac
18284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18285   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18286   shlibpath_var=LD_LIBRARY_PATH
18287   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18288     case $host_os in
18289       openbsd2.[89] | openbsd2.[89].*)
18290         shlibpath_overrides_runpath=no
18291         ;;
18292       *)
18293         shlibpath_overrides_runpath=yes
18294         ;;
18295       esac
18296   else
18297     shlibpath_overrides_runpath=yes
18298   fi
18299   ;;
18300
18301 os2*)
18302   libname_spec='$name'
18303   shrext_cmds=".dll"
18304   need_lib_prefix=no
18305   library_names_spec='$libname${shared_ext} $libname.a'
18306   dynamic_linker='OS/2 ld.exe'
18307   shlibpath_var=LIBPATH
18308   ;;
18309
18310 osf3* | osf4* | osf5*)
18311   version_type=osf
18312   need_lib_prefix=no
18313   need_version=no
18314   soname_spec='${libname}${release}${shared_ext}$major'
18315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316   shlibpath_var=LD_LIBRARY_PATH
18317   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18318   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18319   ;;
18320
18321 sco3.2v5*)
18322   version_type=osf
18323   soname_spec='${libname}${release}${shared_ext}$major'
18324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18325   shlibpath_var=LD_LIBRARY_PATH
18326   ;;
18327
18328 solaris*)
18329   version_type=linux
18330   need_lib_prefix=no
18331   need_version=no
18332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333   soname_spec='${libname}${release}${shared_ext}$major'
18334   shlibpath_var=LD_LIBRARY_PATH
18335   shlibpath_overrides_runpath=yes
18336   hardcode_into_libs=yes
18337   # ldd complains unless libraries are executable
18338   postinstall_cmds='chmod +x $lib'
18339   ;;
18340
18341 sunos4*)
18342   version_type=sunos
18343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18344   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18345   shlibpath_var=LD_LIBRARY_PATH
18346   shlibpath_overrides_runpath=yes
18347   if test "$with_gnu_ld" = yes; then
18348     need_lib_prefix=no
18349   fi
18350   need_version=yes
18351   ;;
18352
18353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18354   version_type=linux
18355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18356   soname_spec='${libname}${release}${shared_ext}$major'
18357   shlibpath_var=LD_LIBRARY_PATH
18358   case $host_vendor in
18359     sni)
18360       shlibpath_overrides_runpath=no
18361       need_lib_prefix=no
18362       export_dynamic_flag_spec='${wl}-Blargedynsym'
18363       runpath_var=LD_RUN_PATH
18364       ;;
18365     siemens)
18366       need_lib_prefix=no
18367       ;;
18368     motorola)
18369       need_lib_prefix=no
18370       need_version=no
18371       shlibpath_overrides_runpath=no
18372       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18373       ;;
18374   esac
18375   ;;
18376
18377 sysv4*MP*)
18378   if test -d /usr/nec ;then
18379     version_type=linux
18380     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18381     soname_spec='$libname${shared_ext}.$major'
18382     shlibpath_var=LD_LIBRARY_PATH
18383   fi
18384   ;;
18385
18386 uts4*)
18387   version_type=linux
18388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389   soname_spec='${libname}${release}${shared_ext}$major'
18390   shlibpath_var=LD_LIBRARY_PATH
18391   ;;
18392
18393 *)
18394   dynamic_linker=no
18395   ;;
18396 esac
18397 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18398 echo "${ECHO_T}$dynamic_linker" >&6
18399 test "$dynamic_linker" = no && can_build_shared=no
18400
18401 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18402 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18403 hardcode_action_GCJ=
18404 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18405    test -n "$runpath_var_GCJ" || \
18406    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18407
18408   # We can hardcode non-existant directories.
18409   if test "$hardcode_direct_GCJ" != no &&
18410      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18411      # have to relink, otherwise we might link with an installed library
18412      # when we should be linking with a yet-to-be-installed one
18413      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18414      test "$hardcode_minus_L_GCJ" != no; then
18415     # Linking always hardcodes the temporary library directory.
18416     hardcode_action_GCJ=relink
18417   else
18418     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18419     hardcode_action_GCJ=immediate
18420   fi
18421 else
18422   # We cannot hardcode anything, or else we can only hardcode existing
18423   # directories.
18424   hardcode_action_GCJ=unsupported
18425 fi
18426 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18427 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18428
18429 if test "$hardcode_action_GCJ" = relink; then
18430   # Fast installation is not supported
18431   enable_fast_install=no
18432 elif test "$shlibpath_overrides_runpath" = yes ||
18433      test "$enable_shared" = no; then
18434   # Fast installation is not necessary
18435   enable_fast_install=needless
18436 fi
18437
18438 striplib=
18439 old_striplib=
18440 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18441 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18442 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18443   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18444   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18445   echo "$as_me:$LINENO: result: yes" >&5
18446 echo "${ECHO_T}yes" >&6
18447 else
18448 # FIXME - insert some real tests, host_os isn't really good enough
18449   case $host_os in
18450    darwin*)
18451        if test -n "$STRIP" ; then
18452          striplib="$STRIP -x"
18453          echo "$as_me:$LINENO: result: yes" >&5
18454 echo "${ECHO_T}yes" >&6
18455        else
18456   echo "$as_me:$LINENO: result: no" >&5
18457 echo "${ECHO_T}no" >&6
18458 fi
18459        ;;
18460    *)
18461   echo "$as_me:$LINENO: result: no" >&5
18462 echo "${ECHO_T}no" >&6
18463     ;;
18464   esac
18465 fi
18466
18467 if test "x$enable_dlopen" != xyes; then
18468   enable_dlopen=unknown
18469   enable_dlopen_self=unknown
18470   enable_dlopen_self_static=unknown
18471 else
18472   lt_cv_dlopen=no
18473   lt_cv_dlopen_libs=
18474
18475   case $host_os in
18476   beos*)
18477     lt_cv_dlopen="load_add_on"
18478     lt_cv_dlopen_libs=
18479     lt_cv_dlopen_self=yes
18480     ;;
18481
18482   mingw* | pw32*)
18483     lt_cv_dlopen="LoadLibrary"
18484     lt_cv_dlopen_libs=
18485    ;;
18486
18487   cygwin*)
18488     lt_cv_dlopen="dlopen"
18489     lt_cv_dlopen_libs=
18490    ;;
18491
18492   darwin*)
18493   # if libdl is installed we need to link against it
18494     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499   ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-ldl  $LIBS"
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507
18508 /* Override any gcc2 internal prototype to avoid an error.  */
18509 #ifdef __cplusplus
18510 extern "C"
18511 #endif
18512 /* We use char because int might match the return type of a gcc2
18513    builtin and then its argument prototype would still apply.  */
18514 char dlopen ();
18515 int
18516 main ()
18517 {
18518 dlopen ();
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18525   (eval $ac_link) 2>conftest.er1
18526   ac_status=$?
18527   grep -v '^ *+' conftest.er1 >conftest.err
18528   rm -f conftest.er1
18529   cat conftest.err >&5
18530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531   (exit $ac_status); } &&
18532          { ac_try='test -z "$ac_c_werror_flag"
18533                          || test ! -s conftest.err'
18534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535   (eval $ac_try) 2>&5
18536   ac_status=$?
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); }; } &&
18539          { ac_try='test -s conftest$ac_exeext'
18540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541   (eval $ac_try) 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); }; }; then
18545   ac_cv_lib_dl_dlopen=yes
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 ac_cv_lib_dl_dlopen=no
18551 fi
18552 rm -f conftest.err conftest.$ac_objext \
18553       conftest$ac_exeext conftest.$ac_ext
18554 LIBS=$ac_check_lib_save_LIBS
18555 fi
18556 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18557 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18558 if test $ac_cv_lib_dl_dlopen = yes; then
18559   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18560 else
18561
18562     lt_cv_dlopen="dyld"
18563     lt_cv_dlopen_libs=
18564     lt_cv_dlopen_self=yes
18565
18566 fi
18567
18568    ;;
18569
18570   *)
18571     echo "$as_me:$LINENO: checking for shl_load" >&5
18572 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18573 if test "${ac_cv_func_shl_load+set}" = set; then
18574   echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576   cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18584 #define shl_load innocuous_shl_load
18585
18586 /* System header to define __stub macros and hopefully few prototypes,
18587     which can conflict with char shl_load (); below.
18588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589     <limits.h> exists even on freestanding compilers.  */
18590
18591 #ifdef __STDC__
18592 # include <limits.h>
18593 #else
18594 # include <assert.h>
18595 #endif
18596
18597 #undef shl_load
18598
18599 /* Override any gcc2 internal prototype to avoid an error.  */
18600 #ifdef __cplusplus
18601 extern "C"
18602 {
18603 #endif
18604 /* We use char because int might match the return type of a gcc2
18605    builtin and then its argument prototype would still apply.  */
18606 char shl_load ();
18607 /* The GNU C library defines this for functions which it implements
18608     to always fail with ENOSYS.  Some functions are actually named
18609     something starting with __ and the normal name is an alias.  */
18610 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18611 choke me
18612 #else
18613 char (*f) () = shl_load;
18614 #endif
18615 #ifdef __cplusplus
18616 }
18617 #endif
18618
18619 int
18620 main ()
18621 {
18622 return f != shl_load;
18623   ;
18624   return 0;
18625 }
18626 _ACEOF
18627 rm -f conftest.$ac_objext conftest$ac_exeext
18628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18629   (eval $ac_link) 2>conftest.er1
18630   ac_status=$?
18631   grep -v '^ *+' conftest.er1 >conftest.err
18632   rm -f conftest.er1
18633   cat conftest.err >&5
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); } &&
18636          { ac_try='test -z "$ac_c_werror_flag"
18637                          || test ! -s conftest.err'
18638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18639   (eval $ac_try) 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); }; } &&
18643          { ac_try='test -s conftest$ac_exeext'
18644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18645   (eval $ac_try) 2>&5
18646   ac_status=$?
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); }; }; then
18649   ac_cv_func_shl_load=yes
18650 else
18651   echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654 ac_cv_func_shl_load=no
18655 fi
18656 rm -f conftest.err conftest.$ac_objext \
18657       conftest$ac_exeext conftest.$ac_ext
18658 fi
18659 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18660 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18661 if test $ac_cv_func_shl_load = yes; then
18662   lt_cv_dlopen="shl_load"
18663 else
18664   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18665 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18666 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18667   echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669   ac_check_lib_save_LIBS=$LIBS
18670 LIBS="-ldld  $LIBS"
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677
18678 /* Override any gcc2 internal prototype to avoid an error.  */
18679 #ifdef __cplusplus
18680 extern "C"
18681 #endif
18682 /* We use char because int might match the return type of a gcc2
18683    builtin and then its argument prototype would still apply.  */
18684 char shl_load ();
18685 int
18686 main ()
18687 {
18688 shl_load ();
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18695   (eval $ac_link) 2>conftest.er1
18696   ac_status=$?
18697   grep -v '^ *+' conftest.er1 >conftest.err
18698   rm -f conftest.er1
18699   cat conftest.err >&5
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } &&
18702          { ac_try='test -z "$ac_c_werror_flag"
18703                          || test ! -s conftest.err'
18704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705   (eval $ac_try) 2>&5
18706   ac_status=$?
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); }; } &&
18709          { ac_try='test -s conftest$ac_exeext'
18710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711   (eval $ac_try) 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); }; }; then
18715   ac_cv_lib_dld_shl_load=yes
18716 else
18717   echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18719
18720 ac_cv_lib_dld_shl_load=no
18721 fi
18722 rm -f conftest.err conftest.$ac_objext \
18723       conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_lib_save_LIBS
18725 fi
18726 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18727 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18728 if test $ac_cv_lib_dld_shl_load = yes; then
18729   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18730 else
18731   echo "$as_me:$LINENO: checking for dlopen" >&5
18732 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18733 if test "${ac_cv_func_dlopen+set}" = set; then
18734   echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736   cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18744 #define dlopen innocuous_dlopen
18745
18746 /* System header to define __stub macros and hopefully few prototypes,
18747     which can conflict with char dlopen (); below.
18748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18749     <limits.h> exists even on freestanding compilers.  */
18750
18751 #ifdef __STDC__
18752 # include <limits.h>
18753 #else
18754 # include <assert.h>
18755 #endif
18756
18757 #undef dlopen
18758
18759 /* Override any gcc2 internal prototype to avoid an error.  */
18760 #ifdef __cplusplus
18761 extern "C"
18762 {
18763 #endif
18764 /* We use char because int might match the return type of a gcc2
18765    builtin and then its argument prototype would still apply.  */
18766 char dlopen ();
18767 /* The GNU C library defines this for functions which it implements
18768     to always fail with ENOSYS.  Some functions are actually named
18769     something starting with __ and the normal name is an alias.  */
18770 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18771 choke me
18772 #else
18773 char (*f) () = dlopen;
18774 #endif
18775 #ifdef __cplusplus
18776 }
18777 #endif
18778
18779 int
18780 main ()
18781 {
18782 return f != dlopen;
18783   ;
18784   return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18789   (eval $ac_link) 2>conftest.er1
18790   ac_status=$?
18791   grep -v '^ *+' conftest.er1 >conftest.err
18792   rm -f conftest.er1
18793   cat conftest.err >&5
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); } &&
18796          { ac_try='test -z "$ac_c_werror_flag"
18797                          || test ! -s conftest.err'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; } &&
18803          { ac_try='test -s conftest$ac_exeext'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809   ac_cv_func_dlopen=yes
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814 ac_cv_func_dlopen=no
18815 fi
18816 rm -f conftest.err conftest.$ac_objext \
18817       conftest$ac_exeext conftest.$ac_ext
18818 fi
18819 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18820 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18821 if test $ac_cv_func_dlopen = yes; then
18822   lt_cv_dlopen="dlopen"
18823 else
18824   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18827   echo $ECHO_N "(cached) $ECHO_C" >&6
18828 else
18829   ac_check_lib_save_LIBS=$LIBS
18830 LIBS="-ldl  $LIBS"
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837
18838 /* Override any gcc2 internal prototype to avoid an error.  */
18839 #ifdef __cplusplus
18840 extern "C"
18841 #endif
18842 /* We use char because int might match the return type of a gcc2
18843    builtin and then its argument prototype would still apply.  */
18844 char dlopen ();
18845 int
18846 main ()
18847 {
18848 dlopen ();
18849   ;
18850   return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855   (eval $ac_link) 2>conftest.er1
18856   ac_status=$?
18857   grep -v '^ *+' conftest.er1 >conftest.err
18858   rm -f conftest.er1
18859   cat conftest.err >&5
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); } &&
18862          { ac_try='test -z "$ac_c_werror_flag"
18863                          || test ! -s conftest.err'
18864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865   (eval $ac_try) 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; } &&
18869          { ac_try='test -s conftest$ac_exeext'
18870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871   (eval $ac_try) 2>&5
18872   ac_status=$?
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); }; }; then
18875   ac_cv_lib_dl_dlopen=yes
18876 else
18877   echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18879
18880 ac_cv_lib_dl_dlopen=no
18881 fi
18882 rm -f conftest.err conftest.$ac_objext \
18883       conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18885 fi
18886 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18887 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18888 if test $ac_cv_lib_dl_dlopen = yes; then
18889   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18890 else
18891   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18892 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18893 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 else
18896   ac_check_lib_save_LIBS=$LIBS
18897 LIBS="-lsvld  $LIBS"
18898 cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904
18905 /* Override any gcc2 internal prototype to avoid an error.  */
18906 #ifdef __cplusplus
18907 extern "C"
18908 #endif
18909 /* We use char because int might match the return type of a gcc2
18910    builtin and then its argument prototype would still apply.  */
18911 char dlopen ();
18912 int
18913 main ()
18914 {
18915 dlopen ();
18916   ;
18917   return 0;
18918 }
18919 _ACEOF
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18922   (eval $ac_link) 2>conftest.er1
18923   ac_status=$?
18924   grep -v '^ *+' conftest.er1 >conftest.err
18925   rm -f conftest.er1
18926   cat conftest.err >&5
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } &&
18929          { ac_try='test -z "$ac_c_werror_flag"
18930                          || test ! -s conftest.err'
18931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932   (eval $ac_try) 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); }; } &&
18936          { ac_try='test -s conftest$ac_exeext'
18937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938   (eval $ac_try) 2>&5
18939   ac_status=$?
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); }; }; then
18942   ac_cv_lib_svld_dlopen=yes
18943 else
18944   echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18946
18947 ac_cv_lib_svld_dlopen=no
18948 fi
18949 rm -f conftest.err conftest.$ac_objext \
18950       conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18952 fi
18953 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18955 if test $ac_cv_lib_svld_dlopen = yes; then
18956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18957 else
18958   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18961   echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963   ac_check_lib_save_LIBS=$LIBS
18964 LIBS="-ldld  $LIBS"
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h.  */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h.  */
18971
18972 /* Override any gcc2 internal prototype to avoid an error.  */
18973 #ifdef __cplusplus
18974 extern "C"
18975 #endif
18976 /* We use char because int might match the return type of a gcc2
18977    builtin and then its argument prototype would still apply.  */
18978 char dld_link ();
18979 int
18980 main ()
18981 {
18982 dld_link ();
18983   ;
18984   return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18989   (eval $ac_link) 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } &&
18996          { ac_try='test -z "$ac_c_werror_flag"
18997                          || test ! -s conftest.err'
18998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999   (eval $ac_try) 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; } &&
19003          { ac_try='test -s conftest$ac_exeext'
19004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005   (eval $ac_try) 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); }; }; then
19009   ac_cv_lib_dld_dld_link=yes
19010 else
19011   echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19013
19014 ac_cv_lib_dld_dld_link=no
19015 fi
19016 rm -f conftest.err conftest.$ac_objext \
19017       conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19019 fi
19020 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19021 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19022 if test $ac_cv_lib_dld_dld_link = yes; then
19023   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19024 fi
19025
19026
19027 fi
19028
19029
19030 fi
19031
19032
19033 fi
19034
19035
19036 fi
19037
19038
19039 fi
19040
19041     ;;
19042   esac
19043
19044   if test "x$lt_cv_dlopen" != xno; then
19045     enable_dlopen=yes
19046   else
19047     enable_dlopen=no
19048   fi
19049
19050   case $lt_cv_dlopen in
19051   dlopen)
19052     save_CPPFLAGS="$CPPFLAGS"
19053     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19054
19055     save_LDFLAGS="$LDFLAGS"
19056     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19057
19058     save_LIBS="$LIBS"
19059     LIBS="$lt_cv_dlopen_libs $LIBS"
19060
19061     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19062 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19063 if test "${lt_cv_dlopen_self+set}" = set; then
19064   echo $ECHO_N "(cached) $ECHO_C" >&6
19065 else
19066           if test "$cross_compiling" = yes; then :
19067   lt_cv_dlopen_self=cross
19068 else
19069   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19070   lt_status=$lt_dlunknown
19071   cat > conftest.$ac_ext <<EOF
19072 #line 19072 "configure"
19073 #include "confdefs.h"
19074
19075 #if HAVE_DLFCN_H
19076 #include <dlfcn.h>
19077 #endif
19078
19079 #include <stdio.h>
19080
19081 #ifdef RTLD_GLOBAL
19082 #  define LT_DLGLOBAL           RTLD_GLOBAL
19083 #else
19084 #  ifdef DL_GLOBAL
19085 #    define LT_DLGLOBAL         DL_GLOBAL
19086 #  else
19087 #    define LT_DLGLOBAL         0
19088 #  endif
19089 #endif
19090
19091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19092    find out it does not work in some platform. */
19093 #ifndef LT_DLLAZY_OR_NOW
19094 #  ifdef RTLD_LAZY
19095 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19096 #  else
19097 #    ifdef DL_LAZY
19098 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19099 #    else
19100 #      ifdef RTLD_NOW
19101 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19102 #      else
19103 #        ifdef DL_NOW
19104 #          define LT_DLLAZY_OR_NOW      DL_NOW
19105 #        else
19106 #          define LT_DLLAZY_OR_NOW      0
19107 #        endif
19108 #      endif
19109 #    endif
19110 #  endif
19111 #endif
19112
19113 #ifdef __cplusplus
19114 extern "C" void exit (int);
19115 #endif
19116
19117 void fnord() { int i=42;}
19118 int main ()
19119 {
19120   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19121   int status = $lt_dlunknown;
19122
19123   if (self)
19124     {
19125       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19126       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19127       /* dlclose (self); */
19128     }
19129
19130     exit (status);
19131 }
19132 EOF
19133   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19134   (eval $ac_link) 2>&5
19135   ac_status=$?
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19138     (./conftest; exit; ) >&5 2>/dev/null
19139     lt_status=$?
19140     case x$lt_status in
19141       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19142       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19143       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19144     esac
19145   else :
19146     # compilation failed
19147     lt_cv_dlopen_self=no
19148   fi
19149 fi
19150 rm -fr conftest*
19151
19152
19153 fi
19154 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19155 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19156
19157     if test "x$lt_cv_dlopen_self" = xyes; then
19158       LDFLAGS="$LDFLAGS $link_static_flag"
19159       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19160 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19161 if test "${lt_cv_dlopen_self_static+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164           if test "$cross_compiling" = yes; then :
19165   lt_cv_dlopen_self_static=cross
19166 else
19167   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19168   lt_status=$lt_dlunknown
19169   cat > conftest.$ac_ext <<EOF
19170 #line 19170 "configure"
19171 #include "confdefs.h"
19172
19173 #if HAVE_DLFCN_H
19174 #include <dlfcn.h>
19175 #endif
19176
19177 #include <stdio.h>
19178
19179 #ifdef RTLD_GLOBAL
19180 #  define LT_DLGLOBAL           RTLD_GLOBAL
19181 #else
19182 #  ifdef DL_GLOBAL
19183 #    define LT_DLGLOBAL         DL_GLOBAL
19184 #  else
19185 #    define LT_DLGLOBAL         0
19186 #  endif
19187 #endif
19188
19189 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19190    find out it does not work in some platform. */
19191 #ifndef LT_DLLAZY_OR_NOW
19192 #  ifdef RTLD_LAZY
19193 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19194 #  else
19195 #    ifdef DL_LAZY
19196 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19197 #    else
19198 #      ifdef RTLD_NOW
19199 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19200 #      else
19201 #        ifdef DL_NOW
19202 #          define LT_DLLAZY_OR_NOW      DL_NOW
19203 #        else
19204 #          define LT_DLLAZY_OR_NOW      0
19205 #        endif
19206 #      endif
19207 #    endif
19208 #  endif
19209 #endif
19210
19211 #ifdef __cplusplus
19212 extern "C" void exit (int);
19213 #endif
19214
19215 void fnord() { int i=42;}
19216 int main ()
19217 {
19218   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19219   int status = $lt_dlunknown;
19220
19221   if (self)
19222     {
19223       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19224       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19225       /* dlclose (self); */
19226     }
19227
19228     exit (status);
19229 }
19230 EOF
19231   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19232   (eval $ac_link) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19236     (./conftest; exit; ) >&5 2>/dev/null
19237     lt_status=$?
19238     case x$lt_status in
19239       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19240       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19241       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19242     esac
19243   else :
19244     # compilation failed
19245     lt_cv_dlopen_self_static=no
19246   fi
19247 fi
19248 rm -fr conftest*
19249
19250
19251 fi
19252 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19253 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19254     fi
19255
19256     CPPFLAGS="$save_CPPFLAGS"
19257     LDFLAGS="$save_LDFLAGS"
19258     LIBS="$save_LIBS"
19259     ;;
19260   esac
19261
19262   case $lt_cv_dlopen_self in
19263   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19264   *) enable_dlopen_self=unknown ;;
19265   esac
19266
19267   case $lt_cv_dlopen_self_static in
19268   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19269   *) enable_dlopen_self_static=unknown ;;
19270   esac
19271 fi
19272
19273
19274 # The else clause should only fire when bootstrapping the
19275 # libtool distribution, otherwise you forgot to ship ltmain.sh
19276 # with your package, and you will get complaints that there are
19277 # no rules to generate ltmain.sh.
19278 if test -f "$ltmain"; then
19279   # See if we are running on zsh, and set the options which allow our commands through
19280   # without removal of \ escapes.
19281   if test -n "${ZSH_VERSION+set}" ; then
19282     setopt NO_GLOB_SUBST
19283   fi
19284   # Now quote all the things that may contain metacharacters while being
19285   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19286   # variables and quote the copies for generation of the libtool script.
19287   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19288     SED SHELL STRIP \
19289     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19290     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19291     deplibs_check_method reload_flag reload_cmds need_locks \
19292     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19293     lt_cv_sys_global_symbol_to_c_name_address \
19294     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19295     old_postinstall_cmds old_postuninstall_cmds \
19296     compiler_GCJ \
19297     CC_GCJ \
19298     LD_GCJ \
19299     lt_prog_compiler_wl_GCJ \
19300     lt_prog_compiler_pic_GCJ \
19301     lt_prog_compiler_static_GCJ \
19302     lt_prog_compiler_no_builtin_flag_GCJ \
19303     export_dynamic_flag_spec_GCJ \
19304     thread_safe_flag_spec_GCJ \
19305     whole_archive_flag_spec_GCJ \
19306     enable_shared_with_static_runtimes_GCJ \
19307     old_archive_cmds_GCJ \
19308     old_archive_from_new_cmds_GCJ \
19309     predep_objects_GCJ \
19310     postdep_objects_GCJ \
19311     predeps_GCJ \
19312     postdeps_GCJ \
19313     compiler_lib_search_path_GCJ \
19314     archive_cmds_GCJ \
19315     archive_expsym_cmds_GCJ \
19316     postinstall_cmds_GCJ \
19317     postuninstall_cmds_GCJ \
19318     old_archive_from_expsyms_cmds_GCJ \
19319     allow_undefined_flag_GCJ \
19320     no_undefined_flag_GCJ \
19321     export_symbols_cmds_GCJ \
19322     hardcode_libdir_flag_spec_GCJ \
19323     hardcode_libdir_flag_spec_ld_GCJ \
19324     hardcode_libdir_separator_GCJ \
19325     hardcode_automatic_GCJ \
19326     module_cmds_GCJ \
19327     module_expsym_cmds_GCJ \
19328     lt_cv_prog_compiler_c_o_GCJ \
19329     exclude_expsyms_GCJ \
19330     include_expsyms_GCJ; do
19331
19332     case $var in
19333     old_archive_cmds_GCJ | \
19334     old_archive_from_new_cmds_GCJ | \
19335     archive_cmds_GCJ | \
19336     archive_expsym_cmds_GCJ | \
19337     module_cmds_GCJ | \
19338     module_expsym_cmds_GCJ | \
19339     old_archive_from_expsyms_cmds_GCJ | \
19340     export_symbols_cmds_GCJ | \
19341     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19342     postinstall_cmds | postuninstall_cmds | \
19343     old_postinstall_cmds | old_postuninstall_cmds | \
19344     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19345       # Double-quote double-evaled strings.
19346       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19347       ;;
19348     *)
19349       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19350       ;;
19351     esac
19352   done
19353
19354   case $lt_echo in
19355   *'\$0 --fallback-echo"')
19356     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19357     ;;
19358   esac
19359
19360 cfgfile="$ofile"
19361
19362   cat <<__EOF__ >> "$cfgfile"
19363 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19364
19365 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19366
19367 # Shell to use when invoking shell scripts.
19368 SHELL=$lt_SHELL
19369
19370 # Whether or not to build shared libraries.
19371 build_libtool_libs=$enable_shared
19372
19373 # Whether or not to build static libraries.
19374 build_old_libs=$enable_static
19375
19376 # Whether or not to add -lc for building shared libraries.
19377 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19378
19379 # Whether or not to disallow shared libs when runtime libs are static
19380 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19381
19382 # Whether or not to optimize for fast installation.
19383 fast_install=$enable_fast_install
19384
19385 # The host system.
19386 host_alias=$host_alias
19387 host=$host
19388 host_os=$host_os
19389
19390 # The build system.
19391 build_alias=$build_alias
19392 build=$build
19393 build_os=$build_os
19394
19395 # An echo program that does not interpret backslashes.
19396 echo=$lt_echo
19397
19398 # The archiver.
19399 AR=$lt_AR
19400 AR_FLAGS=$lt_AR_FLAGS
19401
19402 # A C compiler.
19403 LTCC=$lt_LTCC
19404
19405 # A language-specific compiler.
19406 CC=$lt_compiler_GCJ
19407
19408 # Is the compiler the GNU C compiler?
19409 with_gcc=$GCC_GCJ
19410
19411 # An ERE matcher.
19412 EGREP=$lt_EGREP
19413
19414 # The linker used to build libraries.
19415 LD=$lt_LD_GCJ
19416
19417 # Whether we need hard or soft links.
19418 LN_S=$lt_LN_S
19419
19420 # A BSD-compatible nm program.
19421 NM=$lt_NM
19422
19423 # A symbol stripping program
19424 STRIP=$lt_STRIP
19425
19426 # Used to examine libraries when file_magic_cmd begins "file"
19427 MAGIC_CMD=$MAGIC_CMD
19428
19429 # Used on cygwin: DLL creation program.
19430 DLLTOOL="$DLLTOOL"
19431
19432 # Used on cygwin: object dumper.
19433 OBJDUMP="$OBJDUMP"
19434
19435 # Used on cygwin: assembler.
19436 AS="$AS"
19437
19438 # The name of the directory that contains temporary libtool files.
19439 objdir=$objdir
19440
19441 # How to create reloadable object files.
19442 reload_flag=$lt_reload_flag
19443 reload_cmds=$lt_reload_cmds
19444
19445 # How to pass a linker flag through the compiler.
19446 wl=$lt_lt_prog_compiler_wl_GCJ
19447
19448 # Object file suffix (normally "o").
19449 objext="$ac_objext"
19450
19451 # Old archive suffix (normally "a").
19452 libext="$libext"
19453
19454 # Shared library suffix (normally ".so").
19455 shrext_cmds='$shrext_cmds'
19456
19457 # Executable file suffix (normally "").
19458 exeext="$exeext"
19459
19460 # Additional compiler flags for building library objects.
19461 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19462 pic_mode=$pic_mode
19463
19464 # What is the maximum length of a command?
19465 max_cmd_len=$lt_cv_sys_max_cmd_len
19466
19467 # Does compiler simultaneously support -c and -o options?
19468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19469
19470 # Must we lock files when doing compilation?
19471 need_locks=$lt_need_locks
19472
19473 # Do we need the lib prefix for modules?
19474 need_lib_prefix=$need_lib_prefix
19475
19476 # Do we need a version for libraries?
19477 need_version=$need_version
19478
19479 # Whether dlopen is supported.
19480 dlopen_support=$enable_dlopen
19481
19482 # Whether dlopen of programs is supported.
19483 dlopen_self=$enable_dlopen_self
19484
19485 # Whether dlopen of statically linked programs is supported.
19486 dlopen_self_static=$enable_dlopen_self_static
19487
19488 # Compiler flag to prevent dynamic linking.
19489 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19490
19491 # Compiler flag to turn off builtin functions.
19492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19493
19494 # Compiler flag to allow reflexive dlopens.
19495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19496
19497 # Compiler flag to generate shared objects directly from archives.
19498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19499
19500 # Compiler flag to generate thread-safe objects.
19501 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19502
19503 # Library versioning type.
19504 version_type=$version_type
19505
19506 # Format of library name prefix.
19507 libname_spec=$lt_libname_spec
19508
19509 # List of archive names.  First name is the real one, the rest are links.
19510 # The last name is the one that the linker finds with -lNAME.
19511 library_names_spec=$lt_library_names_spec
19512
19513 # The coded name of the library, if different from the real name.
19514 soname_spec=$lt_soname_spec
19515
19516 # Commands used to build and install an old-style archive.
19517 RANLIB=$lt_RANLIB
19518 old_archive_cmds=$lt_old_archive_cmds_GCJ
19519 old_postinstall_cmds=$lt_old_postinstall_cmds
19520 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19521
19522 # Create an old-style archive from a shared archive.
19523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19524
19525 # Create a temporary old-style archive to link instead of a shared archive.
19526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19527
19528 # Commands used to build and install a shared archive.
19529 archive_cmds=$lt_archive_cmds_GCJ
19530 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19531 postinstall_cmds=$lt_postinstall_cmds
19532 postuninstall_cmds=$lt_postuninstall_cmds
19533
19534 # Commands used to build a loadable module (assumed same as above if empty)
19535 module_cmds=$lt_module_cmds_GCJ
19536 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19537
19538 # Commands to strip libraries.
19539 old_striplib=$lt_old_striplib
19540 striplib=$lt_striplib
19541
19542 # Dependencies to place before the objects being linked to create a
19543 # shared library.
19544 predep_objects=$lt_predep_objects_GCJ
19545
19546 # Dependencies to place after the objects being linked to create a
19547 # shared library.
19548 postdep_objects=$lt_postdep_objects_GCJ
19549
19550 # Dependencies to place before the objects being linked to create a
19551 # shared library.
19552 predeps=$lt_predeps_GCJ
19553
19554 # Dependencies to place after the objects being linked to create a
19555 # shared library.
19556 postdeps=$lt_postdeps_GCJ
19557
19558 # The library search path used internally by the compiler when linking
19559 # a shared library.
19560 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19561
19562 # Method to check whether dependent libraries are shared objects.
19563 deplibs_check_method=$lt_deplibs_check_method
19564
19565 # Command to use when deplibs_check_method == file_magic.
19566 file_magic_cmd=$lt_file_magic_cmd
19567
19568 # Flag that allows shared libraries with undefined symbols to be built.
19569 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19570
19571 # Flag that forces no undefined symbols.
19572 no_undefined_flag=$lt_no_undefined_flag_GCJ
19573
19574 # Commands used to finish a libtool library installation in a directory.
19575 finish_cmds=$lt_finish_cmds
19576
19577 # Same as above, but a single script fragment to be evaled but not shown.
19578 finish_eval=$lt_finish_eval
19579
19580 # Take the output of nm and produce a listing of raw symbols and C names.
19581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19582
19583 # Transform the output of nm in a proper C declaration
19584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19585
19586 # Transform the output of nm in a C name address pair
19587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19588
19589 # This is the shared library runtime path variable.
19590 runpath_var=$runpath_var
19591
19592 # This is the shared library path variable.
19593 shlibpath_var=$shlibpath_var
19594
19595 # Is shlibpath searched before the hard-coded library search path?
19596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19597
19598 # How to hardcode a shared library path into an executable.
19599 hardcode_action=$hardcode_action_GCJ
19600
19601 # Whether we should hardcode library paths into libraries.
19602 hardcode_into_libs=$hardcode_into_libs
19603
19604 # Flag to hardcode \$libdir into a binary during linking.
19605 # This must work even if \$libdir does not exist.
19606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19607
19608 # If ld is used when linking, flag to hardcode \$libdir into
19609 # a binary during linking. This must work even if \$libdir does
19610 # not exist.
19611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19612
19613 # Whether we need a single -rpath flag with a separated argument.
19614 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19615
19616 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19617 # resulting binary.
19618 hardcode_direct=$hardcode_direct_GCJ
19619
19620 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19621 # resulting binary.
19622 hardcode_minus_L=$hardcode_minus_L_GCJ
19623
19624 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19625 # the resulting binary.
19626 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19627
19628 # Set to yes if building a shared library automatically hardcodes DIR into the library
19629 # and all subsequent libraries and executables linked against it.
19630 hardcode_automatic=$hardcode_automatic_GCJ
19631
19632 # Variables whose values should be saved in libtool wrapper scripts and
19633 # restored at relink time.
19634 variables_saved_for_relink="$variables_saved_for_relink"
19635
19636 # Whether libtool must link a program against all its dependency libraries.
19637 link_all_deplibs=$link_all_deplibs_GCJ
19638
19639 # Compile-time system search path for libraries
19640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19641
19642 # Run-time system search path for libraries
19643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19644
19645 # Fix the shell variable \$srcfile for the compiler.
19646 fix_srcfile_path="$fix_srcfile_path_GCJ"
19647
19648 # Set to yes if exported symbols are required.
19649 always_export_symbols=$always_export_symbols_GCJ
19650
19651 # The commands to list exported symbols.
19652 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19653
19654 # The commands to extract the exported symbol list from a shared archive.
19655 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19656
19657 # Symbols that should not be listed in the preloaded symbols.
19658 exclude_expsyms=$lt_exclude_expsyms_GCJ
19659
19660 # Symbols that must always be exported.
19661 include_expsyms=$lt_include_expsyms_GCJ
19662
19663 # ### END LIBTOOL TAG CONFIG: $tagname
19664
19665 __EOF__
19666
19667
19668 else
19669   # If there is no Makefile yet, we rely on a make rule to execute
19670   # `config.status --recheck' to rerun these tests and create the
19671   # libtool script then.
19672   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19673   if test -f "$ltmain_in"; then
19674     test -f Makefile && make "$ltmain"
19675   fi
19676 fi
19677
19678
19679 ac_ext=c
19680 ac_cpp='$CPP $CPPFLAGS'
19681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19684
19685 CC="$lt_save_CC"
19686
19687         else
19688           tagname=""
19689         fi
19690         ;;
19691
19692       RC)
19693
19694
19695
19696 # Source file extension for RC test sources.
19697 ac_ext=rc
19698
19699 # Object file extension for compiled RC test sources.
19700 objext=o
19701 objext_RC=$objext
19702
19703 # Code to be used in simple compile tests
19704 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19705
19706 # Code to be used in simple link tests
19707 lt_simple_link_test_code="$lt_simple_compile_test_code"
19708
19709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19710
19711 # If no C compiler was specified, use CC.
19712 LTCC=${LTCC-"$CC"}
19713
19714 # Allow CC to be a program name with arguments.
19715 compiler=$CC
19716
19717
19718 # save warnings/boilerplate of simple test code
19719 ac_outfile=conftest.$ac_objext
19720 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19722 _lt_compiler_boilerplate=`cat conftest.err`
19723 $rm conftest*
19724
19725 ac_outfile=conftest.$ac_objext
19726 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19728 _lt_linker_boilerplate=`cat conftest.err`
19729 $rm conftest*
19730
19731
19732 # Allow CC to be a program name with arguments.
19733 lt_save_CC="$CC"
19734 CC=${RC-"windres"}
19735 compiler=$CC
19736 compiler_RC=$CC
19737 for cc_temp in $compiler""; do
19738   case $cc_temp in
19739     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19740     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19741     \-*) ;;
19742     *) break;;
19743   esac
19744 done
19745 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19746
19747 lt_cv_prog_compiler_c_o_RC=yes
19748
19749 # The else clause should only fire when bootstrapping the
19750 # libtool distribution, otherwise you forgot to ship ltmain.sh
19751 # with your package, and you will get complaints that there are
19752 # no rules to generate ltmain.sh.
19753 if test -f "$ltmain"; then
19754   # See if we are running on zsh, and set the options which allow our commands through
19755   # without removal of \ escapes.
19756   if test -n "${ZSH_VERSION+set}" ; then
19757     setopt NO_GLOB_SUBST
19758   fi
19759   # Now quote all the things that may contain metacharacters while being
19760   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19761   # variables and quote the copies for generation of the libtool script.
19762   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19763     SED SHELL STRIP \
19764     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19765     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19766     deplibs_check_method reload_flag reload_cmds need_locks \
19767     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19768     lt_cv_sys_global_symbol_to_c_name_address \
19769     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19770     old_postinstall_cmds old_postuninstall_cmds \
19771     compiler_RC \
19772     CC_RC \
19773     LD_RC \
19774     lt_prog_compiler_wl_RC \
19775     lt_prog_compiler_pic_RC \
19776     lt_prog_compiler_static_RC \
19777     lt_prog_compiler_no_builtin_flag_RC \
19778     export_dynamic_flag_spec_RC \
19779     thread_safe_flag_spec_RC \
19780     whole_archive_flag_spec_RC \
19781     enable_shared_with_static_runtimes_RC \
19782     old_archive_cmds_RC \
19783     old_archive_from_new_cmds_RC \
19784     predep_objects_RC \
19785     postdep_objects_RC \
19786     predeps_RC \
19787     postdeps_RC \
19788     compiler_lib_search_path_RC \
19789     archive_cmds_RC \
19790     archive_expsym_cmds_RC \
19791     postinstall_cmds_RC \
19792     postuninstall_cmds_RC \
19793     old_archive_from_expsyms_cmds_RC \
19794     allow_undefined_flag_RC \
19795     no_undefined_flag_RC \
19796     export_symbols_cmds_RC \
19797     hardcode_libdir_flag_spec_RC \
19798     hardcode_libdir_flag_spec_ld_RC \
19799     hardcode_libdir_separator_RC \
19800     hardcode_automatic_RC \
19801     module_cmds_RC \
19802     module_expsym_cmds_RC \
19803     lt_cv_prog_compiler_c_o_RC \
19804     exclude_expsyms_RC \
19805     include_expsyms_RC; do
19806
19807     case $var in
19808     old_archive_cmds_RC | \
19809     old_archive_from_new_cmds_RC | \
19810     archive_cmds_RC | \
19811     archive_expsym_cmds_RC | \
19812     module_cmds_RC | \
19813     module_expsym_cmds_RC | \
19814     old_archive_from_expsyms_cmds_RC | \
19815     export_symbols_cmds_RC | \
19816     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19817     postinstall_cmds | postuninstall_cmds | \
19818     old_postinstall_cmds | old_postuninstall_cmds | \
19819     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19820       # Double-quote double-evaled strings.
19821       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19822       ;;
19823     *)
19824       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19825       ;;
19826     esac
19827   done
19828
19829   case $lt_echo in
19830   *'\$0 --fallback-echo"')
19831     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19832     ;;
19833   esac
19834
19835 cfgfile="$ofile"
19836
19837   cat <<__EOF__ >> "$cfgfile"
19838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19839
19840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19841
19842 # Shell to use when invoking shell scripts.
19843 SHELL=$lt_SHELL
19844
19845 # Whether or not to build shared libraries.
19846 build_libtool_libs=$enable_shared
19847
19848 # Whether or not to build static libraries.
19849 build_old_libs=$enable_static
19850
19851 # Whether or not to add -lc for building shared libraries.
19852 build_libtool_need_lc=$archive_cmds_need_lc_RC
19853
19854 # Whether or not to disallow shared libs when runtime libs are static
19855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19856
19857 # Whether or not to optimize for fast installation.
19858 fast_install=$enable_fast_install
19859
19860 # The host system.
19861 host_alias=$host_alias
19862 host=$host
19863 host_os=$host_os
19864
19865 # The build system.
19866 build_alias=$build_alias
19867 build=$build
19868 build_os=$build_os
19869
19870 # An echo program that does not interpret backslashes.
19871 echo=$lt_echo
19872
19873 # The archiver.
19874 AR=$lt_AR
19875 AR_FLAGS=$lt_AR_FLAGS
19876
19877 # A C compiler.
19878 LTCC=$lt_LTCC
19879
19880 # A language-specific compiler.
19881 CC=$lt_compiler_RC
19882
19883 # Is the compiler the GNU C compiler?
19884 with_gcc=$GCC_RC
19885
19886 # An ERE matcher.
19887 EGREP=$lt_EGREP
19888
19889 # The linker used to build libraries.
19890 LD=$lt_LD_RC
19891
19892 # Whether we need hard or soft links.
19893 LN_S=$lt_LN_S
19894
19895 # A BSD-compatible nm program.
19896 NM=$lt_NM
19897
19898 # A symbol stripping program
19899 STRIP=$lt_STRIP
19900
19901 # Used to examine libraries when file_magic_cmd begins "file"
19902 MAGIC_CMD=$MAGIC_CMD
19903
19904 # Used on cygwin: DLL creation program.
19905 DLLTOOL="$DLLTOOL"
19906
19907 # Used on cygwin: object dumper.
19908 OBJDUMP="$OBJDUMP"
19909
19910 # Used on cygwin: assembler.
19911 AS="$AS"
19912
19913 # The name of the directory that contains temporary libtool files.
19914 objdir=$objdir
19915
19916 # How to create reloadable object files.
19917 reload_flag=$lt_reload_flag
19918 reload_cmds=$lt_reload_cmds
19919
19920 # How to pass a linker flag through the compiler.
19921 wl=$lt_lt_prog_compiler_wl_RC
19922
19923 # Object file suffix (normally "o").
19924 objext="$ac_objext"
19925
19926 # Old archive suffix (normally "a").
19927 libext="$libext"
19928
19929 # Shared library suffix (normally ".so").
19930 shrext_cmds='$shrext_cmds'
19931
19932 # Executable file suffix (normally "").
19933 exeext="$exeext"
19934
19935 # Additional compiler flags for building library objects.
19936 pic_flag=$lt_lt_prog_compiler_pic_RC
19937 pic_mode=$pic_mode
19938
19939 # What is the maximum length of a command?
19940 max_cmd_len=$lt_cv_sys_max_cmd_len
19941
19942 # Does compiler simultaneously support -c and -o options?
19943 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19944
19945 # Must we lock files when doing compilation?
19946 need_locks=$lt_need_locks
19947
19948 # Do we need the lib prefix for modules?
19949 need_lib_prefix=$need_lib_prefix
19950
19951 # Do we need a version for libraries?
19952 need_version=$need_version
19953
19954 # Whether dlopen is supported.
19955 dlopen_support=$enable_dlopen
19956
19957 # Whether dlopen of programs is supported.
19958 dlopen_self=$enable_dlopen_self
19959
19960 # Whether dlopen of statically linked programs is supported.
19961 dlopen_self_static=$enable_dlopen_self_static
19962
19963 # Compiler flag to prevent dynamic linking.
19964 link_static_flag=$lt_lt_prog_compiler_static_RC
19965
19966 # Compiler flag to turn off builtin functions.
19967 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19968
19969 # Compiler flag to allow reflexive dlopens.
19970 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19971
19972 # Compiler flag to generate shared objects directly from archives.
19973 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19974
19975 # Compiler flag to generate thread-safe objects.
19976 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19977
19978 # Library versioning type.
19979 version_type=$version_type
19980
19981 # Format of library name prefix.
19982 libname_spec=$lt_libname_spec
19983
19984 # List of archive names.  First name is the real one, the rest are links.
19985 # The last name is the one that the linker finds with -lNAME.
19986 library_names_spec=$lt_library_names_spec
19987
19988 # The coded name of the library, if different from the real name.
19989 soname_spec=$lt_soname_spec
19990
19991 # Commands used to build and install an old-style archive.
19992 RANLIB=$lt_RANLIB
19993 old_archive_cmds=$lt_old_archive_cmds_RC
19994 old_postinstall_cmds=$lt_old_postinstall_cmds
19995 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19996
19997 # Create an old-style archive from a shared archive.
19998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19999
20000 # Create a temporary old-style archive to link instead of a shared archive.
20001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20002
20003 # Commands used to build and install a shared archive.
20004 archive_cmds=$lt_archive_cmds_RC
20005 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20006 postinstall_cmds=$lt_postinstall_cmds
20007 postuninstall_cmds=$lt_postuninstall_cmds
20008
20009 # Commands used to build a loadable module (assumed same as above if empty)
20010 module_cmds=$lt_module_cmds_RC
20011 module_expsym_cmds=$lt_module_expsym_cmds_RC
20012
20013 # Commands to strip libraries.
20014 old_striplib=$lt_old_striplib
20015 striplib=$lt_striplib
20016
20017 # Dependencies to place before the objects being linked to create a
20018 # shared library.
20019 predep_objects=$lt_predep_objects_RC
20020
20021 # Dependencies to place after the objects being linked to create a
20022 # shared library.
20023 postdep_objects=$lt_postdep_objects_RC
20024
20025 # Dependencies to place before the objects being linked to create a
20026 # shared library.
20027 predeps=$lt_predeps_RC
20028
20029 # Dependencies to place after the objects being linked to create a
20030 # shared library.
20031 postdeps=$lt_postdeps_RC
20032
20033 # The library search path used internally by the compiler when linking
20034 # a shared library.
20035 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20036
20037 # Method to check whether dependent libraries are shared objects.
20038 deplibs_check_method=$lt_deplibs_check_method
20039
20040 # Command to use when deplibs_check_method == file_magic.
20041 file_magic_cmd=$lt_file_magic_cmd
20042
20043 # Flag that allows shared libraries with undefined symbols to be built.
20044 allow_undefined_flag=$lt_allow_undefined_flag_RC
20045
20046 # Flag that forces no undefined symbols.
20047 no_undefined_flag=$lt_no_undefined_flag_RC
20048
20049 # Commands used to finish a libtool library installation in a directory.
20050 finish_cmds=$lt_finish_cmds
20051
20052 # Same as above, but a single script fragment to be evaled but not shown.
20053 finish_eval=$lt_finish_eval
20054
20055 # Take the output of nm and produce a listing of raw symbols and C names.
20056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20057
20058 # Transform the output of nm in a proper C declaration
20059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20060
20061 # Transform the output of nm in a C name address pair
20062 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20063
20064 # This is the shared library runtime path variable.
20065 runpath_var=$runpath_var
20066
20067 # This is the shared library path variable.
20068 shlibpath_var=$shlibpath_var
20069
20070 # Is shlibpath searched before the hard-coded library search path?
20071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20072
20073 # How to hardcode a shared library path into an executable.
20074 hardcode_action=$hardcode_action_RC
20075
20076 # Whether we should hardcode library paths into libraries.
20077 hardcode_into_libs=$hardcode_into_libs
20078
20079 # Flag to hardcode \$libdir into a binary during linking.
20080 # This must work even if \$libdir does not exist.
20081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20082
20083 # If ld is used when linking, flag to hardcode \$libdir into
20084 # a binary during linking. This must work even if \$libdir does
20085 # not exist.
20086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20087
20088 # Whether we need a single -rpath flag with a separated argument.
20089 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20090
20091 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20092 # resulting binary.
20093 hardcode_direct=$hardcode_direct_RC
20094
20095 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20096 # resulting binary.
20097 hardcode_minus_L=$hardcode_minus_L_RC
20098
20099 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20100 # the resulting binary.
20101 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20102
20103 # Set to yes if building a shared library automatically hardcodes DIR into the library
20104 # and all subsequent libraries and executables linked against it.
20105 hardcode_automatic=$hardcode_automatic_RC
20106
20107 # Variables whose values should be saved in libtool wrapper scripts and
20108 # restored at relink time.
20109 variables_saved_for_relink="$variables_saved_for_relink"
20110
20111 # Whether libtool must link a program against all its dependency libraries.
20112 link_all_deplibs=$link_all_deplibs_RC
20113
20114 # Compile-time system search path for libraries
20115 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20116
20117 # Run-time system search path for libraries
20118 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20119
20120 # Fix the shell variable \$srcfile for the compiler.
20121 fix_srcfile_path="$fix_srcfile_path_RC"
20122
20123 # Set to yes if exported symbols are required.
20124 always_export_symbols=$always_export_symbols_RC
20125
20126 # The commands to list exported symbols.
20127 export_symbols_cmds=$lt_export_symbols_cmds_RC
20128
20129 # The commands to extract the exported symbol list from a shared archive.
20130 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20131
20132 # Symbols that should not be listed in the preloaded symbols.
20133 exclude_expsyms=$lt_exclude_expsyms_RC
20134
20135 # Symbols that must always be exported.
20136 include_expsyms=$lt_include_expsyms_RC
20137
20138 # ### END LIBTOOL TAG CONFIG: $tagname
20139
20140 __EOF__
20141
20142
20143 else
20144   # If there is no Makefile yet, we rely on a make rule to execute
20145   # `config.status --recheck' to rerun these tests and create the
20146   # libtool script then.
20147   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20148   if test -f "$ltmain_in"; then
20149     test -f Makefile && make "$ltmain"
20150   fi
20151 fi
20152
20153
20154 ac_ext=c
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159
20160 CC="$lt_save_CC"
20161
20162         ;;
20163
20164       *)
20165         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20166 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20167    { (exit 1); exit 1; }; }
20168         ;;
20169       esac
20170
20171       # Append the new tag name to the list of available tags.
20172       if test -n "$tagname" ; then
20173       available_tags="$available_tags $tagname"
20174     fi
20175     fi
20176   done
20177   IFS="$lt_save_ifs"
20178
20179   # Now substitute the updated list of available tags.
20180   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20181     mv "${ofile}T" "$ofile"
20182     chmod +x "$ofile"
20183   else
20184     rm -f "${ofile}T"
20185     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20186 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20187    { (exit 1); exit 1; }; }
20188   fi
20189 fi
20190
20191
20192
20193 # This can be used to rebuild libtool when needed
20194 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20195
20196 # Always use our own libtool.
20197 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20198
20199 # Prevent multiple expansion
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20222 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20223 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20224   echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226   ac_check_lib_save_LIBS=$LIBS
20227 LIBS="-lpthread  $LIBS"
20228 cat >conftest.$ac_ext <<_ACEOF
20229 /* confdefs.h.  */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h.  */
20234
20235 /* Override any gcc2 internal prototype to avoid an error.  */
20236 #ifdef __cplusplus
20237 extern "C"
20238 #endif
20239 /* We use char because int might match the return type of a gcc2
20240    builtin and then its argument prototype would still apply.  */
20241 char pthread_create ();
20242 int
20243 main ()
20244 {
20245 pthread_create ();
20246   ;
20247   return 0;
20248 }
20249 _ACEOF
20250 rm -f conftest.$ac_objext conftest$ac_exeext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20252   (eval $ac_link) 2>conftest.er1
20253   ac_status=$?
20254   grep -v '^ *+' conftest.er1 >conftest.err
20255   rm -f conftest.er1
20256   cat conftest.err >&5
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); } &&
20259          { ac_try='test -z "$ac_c_werror_flag"
20260                          || test ! -s conftest.err'
20261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262   (eval $ac_try) 2>&5
20263   ac_status=$?
20264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); }; } &&
20266          { ac_try='test -s conftest$ac_exeext'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; }; then
20272   ac_cv_lib_pthread_pthread_create=yes
20273 else
20274   echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 ac_cv_lib_pthread_pthread_create=no
20278 fi
20279 rm -f conftest.err conftest.$ac_objext \
20280       conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20282 fi
20283 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20284 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20285 if test $ac_cv_lib_pthread_pthread_create = yes; then
20286   cat >>confdefs.h <<_ACEOF
20287 #define HAVE_LIBPTHREAD 1
20288 _ACEOF
20289
20290   LIBS="-lpthread $LIBS"
20291
20292 else
20293
20294 echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
20295 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
20296 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299   ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-lthreads  $LIBS"
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307
20308 /* Override any gcc2 internal prototype to avoid an error.  */
20309 #ifdef __cplusplus
20310 extern "C"
20311 #endif
20312 /* We use char because int might match the return type of a gcc2
20313    builtin and then its argument prototype would still apply.  */
20314 char cthread_fork ();
20315 int
20316 main ()
20317 {
20318 cthread_fork ();
20319   ;
20320   return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest.$ac_objext conftest$ac_exeext
20324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325   (eval $ac_link) 2>conftest.er1
20326   ac_status=$?
20327   grep -v '^ *+' conftest.er1 >conftest.err
20328   rm -f conftest.er1
20329   cat conftest.err >&5
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } &&
20332          { ac_try='test -z "$ac_c_werror_flag"
20333                          || test ! -s conftest.err'
20334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; } &&
20339          { ac_try='test -s conftest$ac_exeext'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   ac_cv_lib_threads_cthread_fork=yes
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 ac_cv_lib_threads_cthread_fork=no
20351 fi
20352 rm -f conftest.err conftest.$ac_objext \
20353       conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20355 fi
20356 echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
20357 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
20358 if test $ac_cv_lib_threads_cthread_fork = yes; then
20359   cat >>confdefs.h <<_ACEOF
20360 #define HAVE_LIBTHREADS 1
20361 _ACEOF
20362
20363   LIBS="-lthreads $LIBS"
20364
20365 fi
20366
20367 fi
20368
20369
20370
20371
20372         MKINSTALLDIRS=
20373   if test -n "$ac_aux_dir"; then
20374     case "$ac_aux_dir" in
20375       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
20376       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
20377     esac
20378   fi
20379   if test -z "$MKINSTALLDIRS"; then
20380     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20381   fi
20382
20383
20384
20385   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20386 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
20387     # Check whether --enable-nls or --disable-nls was given.
20388 if test "${enable_nls+set}" = set; then
20389   enableval="$enable_nls"
20390   USE_NLS=$enableval
20391 else
20392   USE_NLS=yes
20393 fi;
20394   echo "$as_me:$LINENO: result: $USE_NLS" >&5
20395 echo "${ECHO_T}$USE_NLS" >&6
20396
20397
20398
20399
20400
20401
20402 # Prepare PATH_SEPARATOR.
20403 # The user is always right.
20404 if test "${PATH_SEPARATOR+set}" != set; then
20405   echo "#! /bin/sh" >conf$$.sh
20406   echo  "exit 0"   >>conf$$.sh
20407   chmod +x conf$$.sh
20408   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20409     PATH_SEPARATOR=';'
20410   else
20411     PATH_SEPARATOR=:
20412   fi
20413   rm -f conf$$.sh
20414 fi
20415
20416 # Find out how to test for executable files. Don't use a zero-byte file,
20417 # as systems may use methods other than mode bits to determine executability.
20418 cat >conf$$.file <<_ASEOF
20419 #! /bin/sh
20420 exit 0
20421 _ASEOF
20422 chmod +x conf$$.file
20423 if test -x conf$$.file >/dev/null 2>&1; then
20424   ac_executable_p="test -x"
20425 else
20426   ac_executable_p="test -f"
20427 fi
20428 rm -f conf$$.file
20429
20430 # Extract the first word of "msgfmt", so it can be a program name with args.
20431 set dummy msgfmt; ac_word=$2
20432 echo "$as_me:$LINENO: checking for $ac_word" >&5
20433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20434 if test "${ac_cv_path_MSGFMT+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   case "$MSGFMT" in
20438   [\\/]* | ?:[\\/]*)
20439     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20440     ;;
20441   *)
20442     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20443     for ac_dir in $PATH; do
20444       IFS="$ac_save_IFS"
20445       test -z "$ac_dir" && ac_dir=.
20446       for ac_exec_ext in '' $ac_executable_extensions; do
20447         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20448           echo "$as_me: trying $ac_dir/$ac_word..." >&5
20449           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20450      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20451             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20452             break 2
20453           fi
20454         fi
20455       done
20456     done
20457     IFS="$ac_save_IFS"
20458   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20459     ;;
20460 esac
20461 fi
20462 MSGFMT="$ac_cv_path_MSGFMT"
20463 if test "$MSGFMT" != ":"; then
20464   echo "$as_me:$LINENO: result: $MSGFMT" >&5
20465 echo "${ECHO_T}$MSGFMT" >&6
20466 else
20467   echo "$as_me:$LINENO: result: no" >&5
20468 echo "${ECHO_T}no" >&6
20469 fi
20470
20471   # Extract the first word of "gmsgfmt", so it can be a program name with args.
20472 set dummy gmsgfmt; ac_word=$2
20473 echo "$as_me:$LINENO: checking for $ac_word" >&5
20474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20475 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20476   echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478   case $GMSGFMT in
20479   [\\/]* | ?:[\\/]*)
20480   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20481   ;;
20482   *)
20483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20484 for as_dir in $PATH
20485 do
20486   IFS=$as_save_IFS
20487   test -z "$as_dir" && as_dir=.
20488   for ac_exec_ext in '' $ac_executable_extensions; do
20489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20490     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20492     break 2
20493   fi
20494 done
20495 done
20496
20497   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20498   ;;
20499 esac
20500 fi
20501 GMSGFMT=$ac_cv_path_GMSGFMT
20502
20503 if test -n "$GMSGFMT"; then
20504   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20505 echo "${ECHO_T}$GMSGFMT" >&6
20506 else
20507   echo "$as_me:$LINENO: result: no" >&5
20508 echo "${ECHO_T}no" >&6
20509 fi
20510
20511
20512
20513 # Prepare PATH_SEPARATOR.
20514 # The user is always right.
20515 if test "${PATH_SEPARATOR+set}" != set; then
20516   echo "#! /bin/sh" >conf$$.sh
20517   echo  "exit 0"   >>conf$$.sh
20518   chmod +x conf$$.sh
20519   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20520     PATH_SEPARATOR=';'
20521   else
20522     PATH_SEPARATOR=:
20523   fi
20524   rm -f conf$$.sh
20525 fi
20526
20527 # Find out how to test for executable files. Don't use a zero-byte file,
20528 # as systems may use methods other than mode bits to determine executability.
20529 cat >conf$$.file <<_ASEOF
20530 #! /bin/sh
20531 exit 0
20532 _ASEOF
20533 chmod +x conf$$.file
20534 if test -x conf$$.file >/dev/null 2>&1; then
20535   ac_executable_p="test -x"
20536 else
20537   ac_executable_p="test -f"
20538 fi
20539 rm -f conf$$.file
20540
20541 # Extract the first word of "xgettext", so it can be a program name with args.
20542 set dummy xgettext; ac_word=$2
20543 echo "$as_me:$LINENO: checking for $ac_word" >&5
20544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20545 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548   case "$XGETTEXT" in
20549   [\\/]* | ?:[\\/]*)
20550     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20551     ;;
20552   *)
20553     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20554     for ac_dir in $PATH; do
20555       IFS="$ac_save_IFS"
20556       test -z "$ac_dir" && ac_dir=.
20557       for ac_exec_ext in '' $ac_executable_extensions; do
20558         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20559           echo "$as_me: trying $ac_dir/$ac_word..." >&5
20560           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20561      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20562             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20563             break 2
20564           fi
20565         fi
20566       done
20567     done
20568     IFS="$ac_save_IFS"
20569   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20570     ;;
20571 esac
20572 fi
20573 XGETTEXT="$ac_cv_path_XGETTEXT"
20574 if test "$XGETTEXT" != ":"; then
20575   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20576 echo "${ECHO_T}$XGETTEXT" >&6
20577 else
20578   echo "$as_me:$LINENO: result: no" >&5
20579 echo "${ECHO_T}no" >&6
20580 fi
20581
20582     rm -f messages.po
20583
20584
20585 # Prepare PATH_SEPARATOR.
20586 # The user is always right.
20587 if test "${PATH_SEPARATOR+set}" != set; then
20588   echo "#! /bin/sh" >conf$$.sh
20589   echo  "exit 0"   >>conf$$.sh
20590   chmod +x conf$$.sh
20591   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20592     PATH_SEPARATOR=';'
20593   else
20594     PATH_SEPARATOR=:
20595   fi
20596   rm -f conf$$.sh
20597 fi
20598
20599 # Find out how to test for executable files. Don't use a zero-byte file,
20600 # as systems may use methods other than mode bits to determine executability.
20601 cat >conf$$.file <<_ASEOF
20602 #! /bin/sh
20603 exit 0
20604 _ASEOF
20605 chmod +x conf$$.file
20606 if test -x conf$$.file >/dev/null 2>&1; then
20607   ac_executable_p="test -x"
20608 else
20609   ac_executable_p="test -f"
20610 fi
20611 rm -f conf$$.file
20612
20613 # Extract the first word of "msgmerge", so it can be a program name with args.
20614 set dummy msgmerge; ac_word=$2
20615 echo "$as_me:$LINENO: checking for $ac_word" >&5
20616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20617 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   case "$MSGMERGE" in
20621   [\\/]* | ?:[\\/]*)
20622     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20623     ;;
20624   *)
20625     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20626     for ac_dir in $PATH; do
20627       IFS="$ac_save_IFS"
20628       test -z "$ac_dir" && ac_dir=.
20629       for ac_exec_ext in '' $ac_executable_extensions; do
20630         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20631           echo "$as_me: trying $ac_dir/$ac_word..." >&5
20632           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20633             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20634             break 2
20635           fi
20636         fi
20637       done
20638     done
20639     IFS="$ac_save_IFS"
20640   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20641     ;;
20642 esac
20643 fi
20644 MSGMERGE="$ac_cv_path_MSGMERGE"
20645 if test "$MSGMERGE" != ":"; then
20646   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20647 echo "${ECHO_T}$MSGMERGE" >&6
20648 else
20649   echo "$as_me:$LINENO: result: no" >&5
20650 echo "${ECHO_T}no" >&6
20651 fi
20652
20653
20654       if test "$GMSGFMT" != ":"; then
20655             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
20656        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20657       : ;
20658     else
20659       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
20660       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
20661 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
20662       GMSGFMT=":"
20663     fi
20664   fi
20665
20666       if test "$XGETTEXT" != ":"; then
20667             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20668        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20669       : ;
20670     else
20671       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
20672 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
20673       XGETTEXT=":"
20674     fi
20675         rm -f messages.po
20676   fi
20677
20678             ac_config_commands="$ac_config_commands default-1"
20679
20680
20681
20682     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
20683 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
20684 if test "${ac_cv_gnu_library_2+set}" = set; then
20685   echo $ECHO_N "(cached) $ECHO_C" >&6
20686 else
20687   cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h.  */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h.  */
20693
20694 #include <features.h>
20695 #ifdef __GNU_LIBRARY__
20696  #if (__GLIBC__ >= 2)
20697   Lucky GNU user
20698  #endif
20699 #endif
20700
20701 _ACEOF
20702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20703   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20704   ac_cv_gnu_library_2=yes
20705 else
20706   ac_cv_gnu_library_2=no
20707 fi
20708 rm -f conftest*
20709
20710
20711
20712 fi
20713 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
20714 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
20715
20716     GLIBC2="$ac_cv_gnu_library_2"
20717
20718
20719 if test -n "$ac_tool_prefix"; then
20720   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20721 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20722 echo "$as_me:$LINENO: checking for $ac_word" >&5
20723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20724 if test "${ac_cv_prog_RANLIB+set}" = set; then
20725   echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727   if test -n "$RANLIB"; then
20728   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20729 else
20730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20731 for as_dir in $PATH
20732 do
20733   IFS=$as_save_IFS
20734   test -z "$as_dir" && as_dir=.
20735   for ac_exec_ext in '' $ac_executable_extensions; do
20736   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20737     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20739     break 2
20740   fi
20741 done
20742 done
20743
20744 fi
20745 fi
20746 RANLIB=$ac_cv_prog_RANLIB
20747 if test -n "$RANLIB"; then
20748   echo "$as_me:$LINENO: result: $RANLIB" >&5
20749 echo "${ECHO_T}$RANLIB" >&6
20750 else
20751   echo "$as_me:$LINENO: result: no" >&5
20752 echo "${ECHO_T}no" >&6
20753 fi
20754
20755 fi
20756 if test -z "$ac_cv_prog_RANLIB"; then
20757   ac_ct_RANLIB=$RANLIB
20758   # Extract the first word of "ranlib", so it can be a program name with args.
20759 set dummy ranlib; ac_word=$2
20760 echo "$as_me:$LINENO: checking for $ac_word" >&5
20761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20762 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765   if test -n "$ac_ct_RANLIB"; then
20766   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20767 else
20768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20769 for as_dir in $PATH
20770 do
20771   IFS=$as_save_IFS
20772   test -z "$as_dir" && as_dir=.
20773   for ac_exec_ext in '' $ac_executable_extensions; do
20774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20775     ac_cv_prog_ac_ct_RANLIB="ranlib"
20776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20777     break 2
20778   fi
20779 done
20780 done
20781
20782   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20783 fi
20784 fi
20785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20786 if test -n "$ac_ct_RANLIB"; then
20787   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20788 echo "${ECHO_T}$ac_ct_RANLIB" >&6
20789 else
20790   echo "$as_me:$LINENO: result: no" >&5
20791 echo "${ECHO_T}no" >&6
20792 fi
20793
20794   RANLIB=$ac_ct_RANLIB
20795 else
20796   RANLIB="$ac_cv_prog_RANLIB"
20797 fi
20798
20799 echo "$as_me:$LINENO: checking for library containing strerror" >&5
20800 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
20801 if test "${ac_cv_search_strerror+set}" = set; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804   ac_func_search_save_LIBS=$LIBS
20805 ac_cv_search_strerror=no
20806 cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h.  */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h.  */
20812
20813 /* Override any gcc2 internal prototype to avoid an error.  */
20814 #ifdef __cplusplus
20815 extern "C"
20816 #endif
20817 /* We use char because int might match the return type of a gcc2
20818    builtin and then its argument prototype would still apply.  */
20819 char strerror ();
20820 int
20821 main ()
20822 {
20823 strerror ();
20824   ;
20825   return 0;
20826 }
20827 _ACEOF
20828 rm -f conftest.$ac_objext conftest$ac_exeext
20829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20830   (eval $ac_link) 2>conftest.er1
20831   ac_status=$?
20832   grep -v '^ *+' conftest.er1 >conftest.err
20833   rm -f conftest.er1
20834   cat conftest.err >&5
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); } &&
20837          { ac_try='test -z "$ac_c_werror_flag"
20838                          || test ! -s conftest.err'
20839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840   (eval $ac_try) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; } &&
20844          { ac_try='test -s conftest$ac_exeext'
20845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846   (eval $ac_try) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   ac_cv_search_strerror="none required"
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 fi
20856 rm -f conftest.err conftest.$ac_objext \
20857       conftest$ac_exeext conftest.$ac_ext
20858 if test "$ac_cv_search_strerror" = no; then
20859   for ac_lib in cposix; do
20860     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20861     cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867
20868 /* Override any gcc2 internal prototype to avoid an error.  */
20869 #ifdef __cplusplus
20870 extern "C"
20871 #endif
20872 /* We use char because int might match the return type of a gcc2
20873    builtin and then its argument prototype would still apply.  */
20874 char strerror ();
20875 int
20876 main ()
20877 {
20878 strerror ();
20879   ;
20880   return 0;
20881 }
20882 _ACEOF
20883 rm -f conftest.$ac_objext conftest$ac_exeext
20884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20885   (eval $ac_link) 2>conftest.er1
20886   ac_status=$?
20887   grep -v '^ *+' conftest.er1 >conftest.err
20888   rm -f conftest.er1
20889   cat conftest.err >&5
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } &&
20892          { ac_try='test -z "$ac_c_werror_flag"
20893                          || test ! -s conftest.err'
20894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895   (eval $ac_try) 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; } &&
20899          { ac_try='test -s conftest$ac_exeext'
20900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901   (eval $ac_try) 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); }; }; then
20905   ac_cv_search_strerror="-l$ac_lib"
20906 break
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 fi
20912 rm -f conftest.err conftest.$ac_objext \
20913       conftest$ac_exeext conftest.$ac_ext
20914   done
20915 fi
20916 LIBS=$ac_func_search_save_LIBS
20917 fi
20918 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20919 echo "${ECHO_T}$ac_cv_search_strerror" >&6
20920 if test "$ac_cv_search_strerror" != no; then
20921   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
20922
20923 fi
20924
20925 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20926 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20927 if test "${ac_cv_c_const+set}" = set; then
20928   echo $ECHO_N "(cached) $ECHO_C" >&6
20929 else
20930   cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h.  */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h.  */
20936
20937 int
20938 main ()
20939 {
20940 /* FIXME: Include the comments suggested by Paul. */
20941 #ifndef __cplusplus
20942   /* Ultrix mips cc rejects this.  */
20943   typedef int charset[2];
20944   const charset x;
20945   /* SunOS 4.1.1 cc rejects this.  */
20946   char const *const *ccp;
20947   char **p;
20948   /* NEC SVR4.0.2 mips cc rejects this.  */
20949   struct point {int x, y;};
20950   static struct point const zero = {0,0};
20951   /* AIX XL C 1.02.0.0 rejects this.
20952      It does not let you subtract one const X* pointer from another in
20953      an arm of an if-expression whose if-part is not a constant
20954      expression */
20955   const char *g = "string";
20956   ccp = &g + (g ? g-g : 0);
20957   /* HPUX 7.0 cc rejects these. */
20958   ++ccp;
20959   p = (char**) ccp;
20960   ccp = (char const *const *) p;
20961   { /* SCO 3.2v4 cc rejects this.  */
20962     char *t;
20963     char const *s = 0 ? (char *) 0 : (char const *) 0;
20964
20965     *t++ = 0;
20966   }
20967   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20968     int x[] = {25, 17};
20969     const int *foo = &x[0];
20970     ++foo;
20971   }
20972   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20973     typedef const int *iptr;
20974     iptr p = 0;
20975     ++p;
20976   }
20977   { /* AIX XL C 1.02.0.0 rejects this saying
20978        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20979     struct s { int j; const int *ap[3]; };
20980     struct s *b; b->j = 5;
20981   }
20982   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20983     const int foo = 10;
20984   }
20985 #endif
20986
20987   ;
20988   return 0;
20989 }
20990 _ACEOF
20991 rm -f conftest.$ac_objext
20992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20993   (eval $ac_compile) 2>conftest.er1
20994   ac_status=$?
20995   grep -v '^ *+' conftest.er1 >conftest.err
20996   rm -f conftest.er1
20997   cat conftest.err >&5
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } &&
21000          { ac_try='test -z "$ac_c_werror_flag"
21001                          || test ! -s conftest.err'
21002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003   (eval $ac_try) 2>&5
21004   ac_status=$?
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); }; } &&
21007          { ac_try='test -s conftest.$ac_objext'
21008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009   (eval $ac_try) 2>&5
21010   ac_status=$?
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); }; }; then
21013   ac_cv_c_const=yes
21014 else
21015   echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21017
21018 ac_cv_c_const=no
21019 fi
21020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21021 fi
21022 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21023 echo "${ECHO_T}$ac_cv_c_const" >&6
21024 if test $ac_cv_c_const = no; then
21025
21026 cat >>confdefs.h <<\_ACEOF
21027 #define const
21028 _ACEOF
21029
21030 fi
21031
21032
21033   echo "$as_me:$LINENO: checking for signed" >&5
21034 echo $ECHO_N "checking for signed... $ECHO_C" >&6
21035 if test "${bh_cv_c_signed+set}" = set; then
21036   echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038   cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h.  */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h.  */
21044
21045 int
21046 main ()
21047 {
21048 signed char x;
21049   ;
21050   return 0;
21051 }
21052 _ACEOF
21053 rm -f conftest.$ac_objext
21054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21055   (eval $ac_compile) 2>conftest.er1
21056   ac_status=$?
21057   grep -v '^ *+' conftest.er1 >conftest.err
21058   rm -f conftest.er1
21059   cat conftest.err >&5
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } &&
21062          { ac_try='test -z "$ac_c_werror_flag"
21063                          || test ! -s conftest.err'
21064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065   (eval $ac_try) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; } &&
21069          { ac_try='test -s conftest.$ac_objext'
21070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071   (eval $ac_try) 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; }; then
21075   bh_cv_c_signed=yes
21076 else
21077   echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080 bh_cv_c_signed=no
21081 fi
21082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21083 fi
21084 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
21085 echo "${ECHO_T}$bh_cv_c_signed" >&6
21086   if test $bh_cv_c_signed = no; then
21087
21088 cat >>confdefs.h <<\_ACEOF
21089 #define signed
21090 _ACEOF
21091
21092   fi
21093
21094 echo "$as_me:$LINENO: checking for inline" >&5
21095 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21096 if test "${ac_cv_c_inline+set}" = set; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099   ac_cv_c_inline=no
21100 for ac_kw in inline __inline__ __inline; do
21101   cat >conftest.$ac_ext <<_ACEOF
21102 /* confdefs.h.  */
21103 _ACEOF
21104 cat confdefs.h >>conftest.$ac_ext
21105 cat >>conftest.$ac_ext <<_ACEOF
21106 /* end confdefs.h.  */
21107 #ifndef __cplusplus
21108 typedef int foo_t;
21109 static $ac_kw foo_t static_foo () {return 0; }
21110 $ac_kw foo_t foo () {return 0; }
21111 #endif
21112
21113 _ACEOF
21114 rm -f conftest.$ac_objext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116   (eval $ac_compile) 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } &&
21123          { ac_try='test -z "$ac_c_werror_flag"
21124                          || test ! -s conftest.err'
21125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126   (eval $ac_try) 2>&5
21127   ac_status=$?
21128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129   (exit $ac_status); }; } &&
21130          { ac_try='test -s conftest.$ac_objext'
21131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132   (eval $ac_try) 2>&5
21133   ac_status=$?
21134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135   (exit $ac_status); }; }; then
21136   ac_cv_c_inline=$ac_kw; break
21137 else
21138   echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141 fi
21142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21143 done
21144
21145 fi
21146 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21147 echo "${ECHO_T}$ac_cv_c_inline" >&6
21148
21149
21150 case $ac_cv_c_inline in
21151   inline | yes) ;;
21152   *)
21153     case $ac_cv_c_inline in
21154       no) ac_val=;;
21155       *) ac_val=$ac_cv_c_inline;;
21156     esac
21157     cat >>confdefs.h <<_ACEOF
21158 #ifndef __cplusplus
21159 #define inline $ac_val
21160 #endif
21161 _ACEOF
21162     ;;
21163 esac
21164
21165 echo "$as_me:$LINENO: checking for off_t" >&5
21166 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21167 if test "${ac_cv_type_off_t+set}" = set; then
21168   echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170   cat >conftest.$ac_ext <<_ACEOF
21171 /* confdefs.h.  */
21172 _ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h.  */
21176 $ac_includes_default
21177 int
21178 main ()
21179 {
21180 if ((off_t *) 0)
21181   return 0;
21182 if (sizeof (off_t))
21183   return 0;
21184   ;
21185   return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21190   (eval $ac_compile) 2>conftest.er1
21191   ac_status=$?
21192   grep -v '^ *+' conftest.er1 >conftest.err
21193   rm -f conftest.er1
21194   cat conftest.err >&5
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); } &&
21197          { ac_try='test -z "$ac_c_werror_flag"
21198                          || test ! -s conftest.err'
21199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200   (eval $ac_try) 2>&5
21201   ac_status=$?
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); }; } &&
21204          { ac_try='test -s conftest.$ac_objext'
21205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206   (eval $ac_try) 2>&5
21207   ac_status=$?
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); }; }; then
21210   ac_cv_type_off_t=yes
21211 else
21212   echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215 ac_cv_type_off_t=no
21216 fi
21217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21218 fi
21219 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21220 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21221 if test $ac_cv_type_off_t = yes; then
21222   :
21223 else
21224
21225 cat >>confdefs.h <<_ACEOF
21226 #define off_t long
21227 _ACEOF
21228
21229 fi
21230
21231 echo "$as_me:$LINENO: checking for size_t" >&5
21232 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21233 if test "${ac_cv_type_size_t+set}" = set; then
21234   echo $ECHO_N "(cached) $ECHO_C" >&6
21235 else
21236   cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242 $ac_includes_default
21243 int
21244 main ()
21245 {
21246 if ((size_t *) 0)
21247   return 0;
21248 if (sizeof (size_t))
21249   return 0;
21250   ;
21251   return 0;
21252 }
21253 _ACEOF
21254 rm -f conftest.$ac_objext
21255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21256   (eval $ac_compile) 2>conftest.er1
21257   ac_status=$?
21258   grep -v '^ *+' conftest.er1 >conftest.err
21259   rm -f conftest.er1
21260   cat conftest.err >&5
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); } &&
21263          { ac_try='test -z "$ac_c_werror_flag"
21264                          || test ! -s conftest.err'
21265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266   (eval $ac_try) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; } &&
21270          { ac_try='test -s conftest.$ac_objext'
21271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272   (eval $ac_try) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; }; then
21276   ac_cv_type_size_t=yes
21277 else
21278   echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21280
21281 ac_cv_type_size_t=no
21282 fi
21283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21284 fi
21285 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21286 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21287 if test $ac_cv_type_size_t = yes; then
21288   :
21289 else
21290
21291 cat >>confdefs.h <<_ACEOF
21292 #define size_t unsigned
21293 _ACEOF
21294
21295 fi
21296
21297
21298   echo "$as_me:$LINENO: checking for long long" >&5
21299 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21300 if test "${ac_cv_type_long_long+set}" = set; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303   cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h.  */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h.  */
21309 long long ll = 1LL; int i = 63;
21310 int
21311 main ()
21312 {
21313 long long llmax = (long long) -1;
21314      return ll << i | ll >> i | llmax / ll | llmax % ll;
21315   ;
21316   return 0;
21317 }
21318 _ACEOF
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21321   (eval $ac_link) 2>conftest.er1
21322   ac_status=$?
21323   grep -v '^ *+' conftest.er1 >conftest.err
21324   rm -f conftest.er1
21325   cat conftest.err >&5
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); } &&
21328          { ac_try='test -z "$ac_c_werror_flag"
21329                          || test ! -s conftest.err'
21330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331   (eval $ac_try) 2>&5
21332   ac_status=$?
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); }; } &&
21335          { ac_try='test -s conftest$ac_exeext'
21336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337   (eval $ac_try) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; }; then
21341   ac_cv_type_long_long=yes
21342 else
21343   echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21345
21346 ac_cv_type_long_long=no
21347 fi
21348 rm -f conftest.err conftest.$ac_objext \
21349       conftest$ac_exeext conftest.$ac_ext
21350 fi
21351 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21352 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21353   if test $ac_cv_type_long_long = yes; then
21354
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_LONG_LONG 1
21357 _ACEOF
21358
21359   fi
21360
21361
21362   echo "$as_me:$LINENO: checking for long double" >&5
21363 echo $ECHO_N "checking for long double... $ECHO_C" >&6
21364 if test "${gt_cv_c_long_double+set}" = set; then
21365   echo $ECHO_N "(cached) $ECHO_C" >&6
21366 else
21367   if test "$GCC" = yes; then
21368        gt_cv_c_long_double=yes
21369      else
21370        cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376
21377          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
21378          long double foo = 0.0;
21379          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
21380          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
21381
21382 int
21383 main ()
21384 {
21385
21386   ;
21387   return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392   (eval $ac_compile) 2>conftest.er1
21393   ac_status=$?
21394   grep -v '^ *+' conftest.er1 >conftest.err
21395   rm -f conftest.er1
21396   cat conftest.err >&5
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); } &&
21399          { ac_try='test -z "$ac_c_werror_flag"
21400                          || test ! -s conftest.err'
21401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402   (eval $ac_try) 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); }; } &&
21406          { ac_try='test -s conftest.$ac_objext'
21407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408   (eval $ac_try) 2>&5
21409   ac_status=$?
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); }; }; then
21412   gt_cv_c_long_double=yes
21413 else
21414   echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21416
21417 gt_cv_c_long_double=no
21418 fi
21419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21420      fi
21421 fi
21422 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
21423 echo "${ECHO_T}$gt_cv_c_long_double" >&6
21424   if test $gt_cv_c_long_double = yes; then
21425
21426 cat >>confdefs.h <<\_ACEOF
21427 #define HAVE_LONG_DOUBLE 1
21428 _ACEOF
21429
21430   fi
21431
21432
21433   echo "$as_me:$LINENO: checking for wchar_t" >&5
21434 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21435 if test "${gt_cv_c_wchar_t+set}" = set; then
21436   echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438   cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444 #include <stddef.h>
21445        wchar_t foo = (wchar_t)'\0';
21446 int
21447 main ()
21448 {
21449
21450   ;
21451   return 0;
21452 }
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456   (eval $ac_compile) 2>conftest.er1
21457   ac_status=$?
21458   grep -v '^ *+' conftest.er1 >conftest.err
21459   rm -f conftest.er1
21460   cat conftest.err >&5
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } &&
21463          { ac_try='test -z "$ac_c_werror_flag"
21464                          || test ! -s conftest.err'
21465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466   (eval $ac_try) 2>&5
21467   ac_status=$?
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); }; } &&
21470          { ac_try='test -s conftest.$ac_objext'
21471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472   (eval $ac_try) 2>&5
21473   ac_status=$?
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); }; }; then
21476   gt_cv_c_wchar_t=yes
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 gt_cv_c_wchar_t=no
21482 fi
21483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21484 fi
21485 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
21486 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
21487   if test $gt_cv_c_wchar_t = yes; then
21488
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_WCHAR_T 1
21491 _ACEOF
21492
21493   fi
21494
21495
21496   echo "$as_me:$LINENO: checking for wint_t" >&5
21497 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
21498 if test "${gt_cv_c_wint_t+set}" = set; then
21499   echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501   cat >conftest.$ac_ext <<_ACEOF
21502 /* confdefs.h.  */
21503 _ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h.  */
21507 #include <wchar.h>
21508        wint_t foo = (wchar_t)'\0';
21509 int
21510 main ()
21511 {
21512
21513   ;
21514   return 0;
21515 }
21516 _ACEOF
21517 rm -f conftest.$ac_objext
21518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21519   (eval $ac_compile) 2>conftest.er1
21520   ac_status=$?
21521   grep -v '^ *+' conftest.er1 >conftest.err
21522   rm -f conftest.er1
21523   cat conftest.err >&5
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); } &&
21526          { ac_try='test -z "$ac_c_werror_flag"
21527                          || test ! -s conftest.err'
21528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529   (eval $ac_try) 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); }; } &&
21533          { ac_try='test -s conftest.$ac_objext'
21534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535   (eval $ac_try) 2>&5
21536   ac_status=$?
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); }; }; then
21539   gt_cv_c_wint_t=yes
21540 else
21541   echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 gt_cv_c_wint_t=no
21545 fi
21546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21547 fi
21548 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
21549 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
21550   if test $gt_cv_c_wint_t = yes; then
21551
21552 cat >>confdefs.h <<\_ACEOF
21553 #define HAVE_WINT_T 1
21554 _ACEOF
21555
21556   fi
21557
21558
21559   echo "$as_me:$LINENO: checking for inttypes.h" >&5
21560 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
21561 if test "${gl_cv_header_inttypes_h+set}" = set; then
21562   echo $ECHO_N "(cached) $ECHO_C" >&6
21563 else
21564   cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h.  */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h.  */
21570 #include <sys/types.h>
21571 #include <inttypes.h>
21572 int
21573 main ()
21574 {
21575 uintmax_t i = (uintmax_t) -1;
21576   ;
21577   return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582   (eval $ac_compile) 2>conftest.er1
21583   ac_status=$?
21584   grep -v '^ *+' conftest.er1 >conftest.err
21585   rm -f conftest.er1
21586   cat conftest.err >&5
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); } &&
21589          { ac_try='test -z "$ac_c_werror_flag"
21590                          || test ! -s conftest.err'
21591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592   (eval $ac_try) 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; } &&
21596          { ac_try='test -s conftest.$ac_objext'
21597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598   (eval $ac_try) 2>&5
21599   ac_status=$?
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); }; }; then
21602   gl_cv_header_inttypes_h=yes
21603 else
21604   echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21606
21607 gl_cv_header_inttypes_h=no
21608 fi
21609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21610 fi
21611 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
21612 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
21613   if test $gl_cv_header_inttypes_h = yes; then
21614
21615 cat >>confdefs.h <<_ACEOF
21616 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
21617 _ACEOF
21618
21619   fi
21620
21621
21622   echo "$as_me:$LINENO: checking for stdint.h" >&5
21623 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
21624 if test "${gl_cv_header_stdint_h+set}" = set; then
21625   echo $ECHO_N "(cached) $ECHO_C" >&6
21626 else
21627   cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633 #include <sys/types.h>
21634 #include <stdint.h>
21635 int
21636 main ()
21637 {
21638 uintmax_t i = (uintmax_t) -1;
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest.$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645   (eval $ac_compile) 2>conftest.er1
21646   ac_status=$?
21647   grep -v '^ *+' conftest.er1 >conftest.err
21648   rm -f conftest.er1
21649   cat conftest.err >&5
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } &&
21652          { ac_try='test -z "$ac_c_werror_flag"
21653                          || test ! -s conftest.err'
21654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655   (eval $ac_try) 2>&5
21656   ac_status=$?
21657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658   (exit $ac_status); }; } &&
21659          { ac_try='test -s conftest.$ac_objext'
21660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661   (eval $ac_try) 2>&5
21662   ac_status=$?
21663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); }; }; then
21665   gl_cv_header_stdint_h=yes
21666 else
21667   echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21669
21670 gl_cv_header_stdint_h=no
21671 fi
21672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21673 fi
21674 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
21675 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
21676   if test $gl_cv_header_stdint_h = yes; then
21677
21678 cat >>confdefs.h <<_ACEOF
21679 #define HAVE_STDINT_H_WITH_UINTMAX 1
21680 _ACEOF
21681
21682   fi
21683
21684
21685
21686
21687   echo "$as_me:$LINENO: checking for intmax_t" >&5
21688 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
21689 if test "${gt_cv_c_intmax_t+set}" = set; then
21690   echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692   cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698
21699 #include <stddef.h>
21700 #include <stdlib.h>
21701 #if HAVE_STDINT_H_WITH_UINTMAX
21702 #include <stdint.h>
21703 #endif
21704 #if HAVE_INTTYPES_H_WITH_UINTMAX
21705 #include <inttypes.h>
21706 #endif
21707
21708 int
21709 main ()
21710 {
21711 intmax_t x = -1;
21712   ;
21713   return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718   (eval $ac_compile) 2>conftest.er1
21719   ac_status=$?
21720   grep -v '^ *+' conftest.er1 >conftest.err
21721   rm -f conftest.er1
21722   cat conftest.err >&5
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); } &&
21725          { ac_try='test -z "$ac_c_werror_flag"
21726                          || test ! -s conftest.err'
21727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728   (eval $ac_try) 2>&5
21729   ac_status=$?
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); }; } &&
21732          { ac_try='test -s conftest.$ac_objext'
21733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734   (eval $ac_try) 2>&5
21735   ac_status=$?
21736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737   (exit $ac_status); }; }; then
21738   gt_cv_c_intmax_t=yes
21739 else
21740   echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 gt_cv_c_intmax_t=no
21744 fi
21745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746 fi
21747 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
21748 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
21749   if test $gt_cv_c_intmax_t = yes; then
21750
21751 cat >>confdefs.h <<\_ACEOF
21752 #define HAVE_INTMAX_T 1
21753 _ACEOF
21754
21755   fi
21756
21757
21758
21759   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
21760 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
21761 if test "${gt_cv_func_printf_posix+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764
21765       if test "$cross_compiling" = yes; then
21766
21767         cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h.  */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h.  */
21773
21774 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
21775   notposix
21776 #endif
21777
21778 _ACEOF
21779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21780   $EGREP "notposix" >/dev/null 2>&1; then
21781   gt_cv_func_printf_posix="guessing no"
21782 else
21783   gt_cv_func_printf_posix="guessing yes"
21784 fi
21785 rm -f conftest*
21786
21787
21788 else
21789   cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h.  */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h.  */
21795
21796 #include <stdio.h>
21797 #include <string.h>
21798 /* The string "%2$d %1$d", with dollar characters protected from the shell's
21799    dollar expansion (possibly an autoconf bug).  */
21800 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21801 static char buf[100];
21802 int main ()
21803 {
21804   sprintf (buf, format, 33, 55);
21805   return (strcmp (buf, "55 33") != 0);
21806 }
21807 _ACEOF
21808 rm -f conftest$ac_exeext
21809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21810   (eval $ac_link) 2>&5
21811   ac_status=$?
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815   (eval $ac_try) 2>&5
21816   ac_status=$?
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); }; }; then
21819   gt_cv_func_printf_posix=yes
21820 else
21821   echo "$as_me: program exited with status $ac_status" >&5
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825 ( exit $ac_status )
21826 gt_cv_func_printf_posix=no
21827 fi
21828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21829 fi
21830
21831 fi
21832 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
21833 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
21834   case $gt_cv_func_printf_posix in
21835     *yes)
21836
21837 cat >>confdefs.h <<\_ACEOF
21838 #define HAVE_POSIX_PRINTF 1
21839 _ACEOF
21840
21841       ;;
21842   esac
21843
21844 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21845 # for constant arguments.  Useless!
21846 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21847 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21848 if test "${ac_cv_working_alloca_h+set}" = set; then
21849   echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851   cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h.  */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h.  */
21857 #include <alloca.h>
21858 int
21859 main ()
21860 {
21861 char *p = (char *) alloca (2 * sizeof (int));
21862   ;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest.$ac_objext conftest$ac_exeext
21867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21868   (eval $ac_link) 2>conftest.er1
21869   ac_status=$?
21870   grep -v '^ *+' conftest.er1 >conftest.err
21871   rm -f conftest.er1
21872   cat conftest.err >&5
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } &&
21875          { ac_try='test -z "$ac_c_werror_flag"
21876                          || test ! -s conftest.err'
21877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21878   (eval $ac_try) 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; } &&
21882          { ac_try='test -s conftest$ac_exeext'
21883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884   (eval $ac_try) 2>&5
21885   ac_status=$?
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); }; }; then
21888   ac_cv_working_alloca_h=yes
21889 else
21890   echo "$as_me: failed program was:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21892
21893 ac_cv_working_alloca_h=no
21894 fi
21895 rm -f conftest.err conftest.$ac_objext \
21896       conftest$ac_exeext conftest.$ac_ext
21897 fi
21898 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21899 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21900 if test $ac_cv_working_alloca_h = yes; then
21901
21902 cat >>confdefs.h <<\_ACEOF
21903 #define HAVE_ALLOCA_H 1
21904 _ACEOF
21905
21906 fi
21907
21908 echo "$as_me:$LINENO: checking for alloca" >&5
21909 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21910 if test "${ac_cv_func_alloca_works+set}" = set; then
21911   echo $ECHO_N "(cached) $ECHO_C" >&6
21912 else
21913   cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h.  */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h.  */
21919 #ifdef __GNUC__
21920 # define alloca __builtin_alloca
21921 #else
21922 # ifdef _MSC_VER
21923 #  include <malloc.h>
21924 #  define alloca _alloca
21925 # else
21926 #  if HAVE_ALLOCA_H
21927 #   include <alloca.h>
21928 #  else
21929 #   ifdef _AIX
21930  #pragma alloca
21931 #   else
21932 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21933 char *alloca ();
21934 #    endif
21935 #   endif
21936 #  endif
21937 # endif
21938 #endif
21939
21940 int
21941 main ()
21942 {
21943 char *p = (char *) alloca (1);
21944   ;
21945   return 0;
21946 }
21947 _ACEOF
21948 rm -f conftest.$ac_objext conftest$ac_exeext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21950   (eval $ac_link) 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } &&
21957          { ac_try='test -z "$ac_c_werror_flag"
21958                          || test ! -s conftest.err'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; } &&
21964          { ac_try='test -s conftest$ac_exeext'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; }; then
21970   ac_cv_func_alloca_works=yes
21971 else
21972   echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975 ac_cv_func_alloca_works=no
21976 fi
21977 rm -f conftest.err conftest.$ac_objext \
21978       conftest$ac_exeext conftest.$ac_ext
21979 fi
21980 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21981 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21982
21983 if test $ac_cv_func_alloca_works = yes; then
21984
21985 cat >>confdefs.h <<\_ACEOF
21986 #define HAVE_ALLOCA 1
21987 _ACEOF
21988
21989 else
21990   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21991 # that cause trouble.  Some versions do not even contain alloca or
21992 # contain a buggy version.  If you still want to use their alloca,
21993 # use ar to extract alloca.o from them instead of compiling alloca.c.
21994
21995 ALLOCA=alloca.$ac_objext
21996
21997 cat >>confdefs.h <<\_ACEOF
21998 #define C_ALLOCA 1
21999 _ACEOF
22000
22001
22002 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22003 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22004 if test "${ac_cv_os_cray+set}" = set; then
22005   echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007   cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h.  */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h.  */
22013 #if defined(CRAY) && ! defined(CRAY2)
22014 webecray
22015 #else
22016 wenotbecray
22017 #endif
22018
22019 _ACEOF
22020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22021   $EGREP "webecray" >/dev/null 2>&1; then
22022   ac_cv_os_cray=yes
22023 else
22024   ac_cv_os_cray=no
22025 fi
22026 rm -f conftest*
22027
22028 fi
22029 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22030 echo "${ECHO_T}$ac_cv_os_cray" >&6
22031 if test $ac_cv_os_cray = yes; then
22032   for ac_func in _getb67 GETB67 getb67; do
22033     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22034 echo "$as_me:$LINENO: checking for $ac_func" >&5
22035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22036 if eval "test \"\${$as_ac_var+set}\" = set"; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039   cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22047 #define $ac_func innocuous_$ac_func
22048
22049 /* System header to define __stub macros and hopefully few prototypes,
22050     which can conflict with char $ac_func (); below.
22051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22052     <limits.h> exists even on freestanding compilers.  */
22053
22054 #ifdef __STDC__
22055 # include <limits.h>
22056 #else
22057 # include <assert.h>
22058 #endif
22059
22060 #undef $ac_func
22061
22062 /* Override any gcc2 internal prototype to avoid an error.  */
22063 #ifdef __cplusplus
22064 extern "C"
22065 {
22066 #endif
22067 /* We use char because int might match the return type of a gcc2
22068    builtin and then its argument prototype would still apply.  */
22069 char $ac_func ();
22070 /* The GNU C library defines this for functions which it implements
22071     to always fail with ENOSYS.  Some functions are actually named
22072     something starting with __ and the normal name is an alias.  */
22073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22074 choke me
22075 #else
22076 char (*f) () = $ac_func;
22077 #endif
22078 #ifdef __cplusplus
22079 }
22080 #endif
22081
22082 int
22083 main ()
22084 {
22085 return f != $ac_func;
22086   ;
22087   return 0;
22088 }
22089 _ACEOF
22090 rm -f conftest.$ac_objext conftest$ac_exeext
22091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22092   (eval $ac_link) 2>conftest.er1
22093   ac_status=$?
22094   grep -v '^ *+' conftest.er1 >conftest.err
22095   rm -f conftest.er1
22096   cat conftest.err >&5
22097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098   (exit $ac_status); } &&
22099          { ac_try='test -z "$ac_c_werror_flag"
22100                          || test ! -s conftest.err'
22101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22102   (eval $ac_try) 2>&5
22103   ac_status=$?
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); }; } &&
22106          { ac_try='test -s conftest$ac_exeext'
22107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108   (eval $ac_try) 2>&5
22109   ac_status=$?
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); }; }; then
22112   eval "$as_ac_var=yes"
22113 else
22114   echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117 eval "$as_ac_var=no"
22118 fi
22119 rm -f conftest.err conftest.$ac_objext \
22120       conftest$ac_exeext conftest.$ac_ext
22121 fi
22122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22124 if test `eval echo '${'$as_ac_var'}'` = yes; then
22125
22126 cat >>confdefs.h <<_ACEOF
22127 #define CRAY_STACKSEG_END $ac_func
22128 _ACEOF
22129
22130     break
22131 fi
22132
22133   done
22134 fi
22135
22136 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22137 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22138 if test "${ac_cv_c_stack_direction+set}" = set; then
22139   echo $ECHO_N "(cached) $ECHO_C" >&6
22140 else
22141   if test "$cross_compiling" = yes; then
22142   ac_cv_c_stack_direction=0
22143 else
22144   cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150 int
22151 find_stack_direction ()
22152 {
22153   static char *addr = 0;
22154   auto char dummy;
22155   if (addr == 0)
22156     {
22157       addr = &dummy;
22158       return find_stack_direction ();
22159     }
22160   else
22161     return (&dummy > addr) ? 1 : -1;
22162 }
22163
22164 int
22165 main ()
22166 {
22167   exit (find_stack_direction () < 0);
22168 }
22169 _ACEOF
22170 rm -f conftest$ac_exeext
22171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22172   (eval $ac_link) 2>&5
22173   ac_status=$?
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177   (eval $ac_try) 2>&5
22178   ac_status=$?
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); }; }; then
22181   ac_cv_c_stack_direction=1
22182 else
22183   echo "$as_me: program exited with status $ac_status" >&5
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187 ( exit $ac_status )
22188 ac_cv_c_stack_direction=-1
22189 fi
22190 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22191 fi
22192 fi
22193 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22194 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22195
22196 cat >>confdefs.h <<_ACEOF
22197 #define STACK_DIRECTION $ac_cv_c_stack_direction
22198 _ACEOF
22199
22200
22201 fi
22202
22203
22204
22205 for ac_header in stdlib.h unistd.h
22206 do
22207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22209   echo "$as_me:$LINENO: checking for $ac_header" >&5
22210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22212   echo $ECHO_N "(cached) $ECHO_C" >&6
22213 fi
22214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22216 else
22217   # Is the header compilable?
22218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22220 cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h.  */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h.  */
22226 $ac_includes_default
22227 #include <$ac_header>
22228 _ACEOF
22229 rm -f conftest.$ac_objext
22230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22231   (eval $ac_compile) 2>conftest.er1
22232   ac_status=$?
22233   grep -v '^ *+' conftest.er1 >conftest.err
22234   rm -f conftest.er1
22235   cat conftest.err >&5
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } &&
22238          { ac_try='test -z "$ac_c_werror_flag"
22239                          || test ! -s conftest.err'
22240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241   (eval $ac_try) 2>&5
22242   ac_status=$?
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); }; } &&
22245          { ac_try='test -s conftest.$ac_objext'
22246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247   (eval $ac_try) 2>&5
22248   ac_status=$?
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); }; }; then
22251   ac_header_compiler=yes
22252 else
22253   echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22255
22256 ac_header_compiler=no
22257 fi
22258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22260 echo "${ECHO_T}$ac_header_compiler" >&6
22261
22262 # Is the header present?
22263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22265 cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h.  */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h.  */
22271 #include <$ac_header>
22272 _ACEOF
22273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22275   ac_status=$?
22276   grep -v '^ *+' conftest.er1 >conftest.err
22277   rm -f conftest.er1
22278   cat conftest.err >&5
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); } >/dev/null; then
22281   if test -s conftest.err; then
22282     ac_cpp_err=$ac_c_preproc_warn_flag
22283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22284   else
22285     ac_cpp_err=
22286   fi
22287 else
22288   ac_cpp_err=yes
22289 fi
22290 if test -z "$ac_cpp_err"; then
22291   ac_header_preproc=yes
22292 else
22293   echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22295
22296   ac_header_preproc=no
22297 fi
22298 rm -f conftest.err conftest.$ac_ext
22299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22300 echo "${ECHO_T}$ac_header_preproc" >&6
22301
22302 # So?  What about this header?
22303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22304   yes:no: )
22305     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22309     ac_header_preproc=yes
22310     ;;
22311   no:yes:* )
22312     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22314     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22315 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22316     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22318     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22319 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22322     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22324     (
22325       cat <<\_ASBOX
22326 ## ------------------------------------------ ##
22327 ## Report this to the AC_PACKAGE_NAME lists.  ##
22328 ## ------------------------------------------ ##
22329 _ASBOX
22330     ) |
22331       sed "s/^/$as_me: WARNING:     /" >&2
22332     ;;
22333 esac
22334 echo "$as_me:$LINENO: checking for $ac_header" >&5
22335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22337   echo $ECHO_N "(cached) $ECHO_C" >&6
22338 else
22339   eval "$as_ac_Header=\$ac_header_preproc"
22340 fi
22341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22343
22344 fi
22345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22346   cat >>confdefs.h <<_ACEOF
22347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22348 _ACEOF
22349
22350 fi
22351
22352 done
22353
22354
22355 for ac_func in getpagesize
22356 do
22357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22358 echo "$as_me:$LINENO: checking for $ac_func" >&5
22359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22360 if eval "test \"\${$as_ac_var+set}\" = set"; then
22361   echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363   cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h.  */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h.  */
22369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22371 #define $ac_func innocuous_$ac_func
22372
22373 /* System header to define __stub macros and hopefully few prototypes,
22374     which can conflict with char $ac_func (); below.
22375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22376     <limits.h> exists even on freestanding compilers.  */
22377
22378 #ifdef __STDC__
22379 # include <limits.h>
22380 #else
22381 # include <assert.h>
22382 #endif
22383
22384 #undef $ac_func
22385
22386 /* Override any gcc2 internal prototype to avoid an error.  */
22387 #ifdef __cplusplus
22388 extern "C"
22389 {
22390 #endif
22391 /* We use char because int might match the return type of a gcc2
22392    builtin and then its argument prototype would still apply.  */
22393 char $ac_func ();
22394 /* The GNU C library defines this for functions which it implements
22395     to always fail with ENOSYS.  Some functions are actually named
22396     something starting with __ and the normal name is an alias.  */
22397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22398 choke me
22399 #else
22400 char (*f) () = $ac_func;
22401 #endif
22402 #ifdef __cplusplus
22403 }
22404 #endif
22405
22406 int
22407 main ()
22408 {
22409 return f != $ac_func;
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext conftest$ac_exeext
22415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22416   (eval $ac_link) 2>conftest.er1
22417   ac_status=$?
22418   grep -v '^ *+' conftest.er1 >conftest.err
22419   rm -f conftest.er1
22420   cat conftest.err >&5
22421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422   (exit $ac_status); } &&
22423          { ac_try='test -z "$ac_c_werror_flag"
22424                          || test ! -s conftest.err'
22425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426   (eval $ac_try) 2>&5
22427   ac_status=$?
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); }; } &&
22430          { ac_try='test -s conftest$ac_exeext'
22431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432   (eval $ac_try) 2>&5
22433   ac_status=$?
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); }; }; then
22436   eval "$as_ac_var=yes"
22437 else
22438   echo "$as_me: failed program was:" >&5
22439 sed 's/^/| /' conftest.$ac_ext >&5
22440
22441 eval "$as_ac_var=no"
22442 fi
22443 rm -f conftest.err conftest.$ac_objext \
22444       conftest$ac_exeext conftest.$ac_ext
22445 fi
22446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22448 if test `eval echo '${'$as_ac_var'}'` = yes; then
22449   cat >>confdefs.h <<_ACEOF
22450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22451 _ACEOF
22452
22453 fi
22454 done
22455
22456 echo "$as_me:$LINENO: checking for working mmap" >&5
22457 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22458 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 else
22461   if test "$cross_compiling" = yes; then
22462   ac_cv_func_mmap_fixed_mapped=no
22463 else
22464   cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h.  */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h.  */
22470 $ac_includes_default
22471 /* malloc might have been renamed as rpl_malloc. */
22472 #undef malloc
22473
22474 /* Thanks to Mike Haertel and Jim Avera for this test.
22475    Here is a matrix of mmap possibilities:
22476         mmap private not fixed
22477         mmap private fixed at somewhere currently unmapped
22478         mmap private fixed at somewhere already mapped
22479         mmap shared not fixed
22480         mmap shared fixed at somewhere currently unmapped
22481         mmap shared fixed at somewhere already mapped
22482    For private mappings, we should verify that changes cannot be read()
22483    back from the file, nor mmap's back from the file at a different
22484    address.  (There have been systems where private was not correctly
22485    implemented like the infamous i386 svr4.0, and systems where the
22486    VM page cache was not coherent with the file system buffer cache
22487    like early versions of FreeBSD and possibly contemporary NetBSD.)
22488    For shared mappings, we should conversely verify that changes get
22489    propagated back to all the places they're supposed to be.
22490
22491    Grep wants private fixed already mapped.
22492    The main things grep needs to know about mmap are:
22493    * does it exist and is it safe to write into the mmap'd area
22494    * how to use it (BSD variants)  */
22495
22496 #include <fcntl.h>
22497 #include <sys/mman.h>
22498
22499 #if !STDC_HEADERS && !HAVE_STDLIB_H
22500 char *malloc ();
22501 #endif
22502
22503 /* This mess was copied from the GNU getpagesize.h.  */
22504 #if !HAVE_GETPAGESIZE
22505 /* Assume that all systems that can run configure have sys/param.h.  */
22506 # if !HAVE_SYS_PARAM_H
22507 #  define HAVE_SYS_PARAM_H 1
22508 # endif
22509
22510 # ifdef _SC_PAGESIZE
22511 #  define getpagesize() sysconf(_SC_PAGESIZE)
22512 # else /* no _SC_PAGESIZE */
22513 #  if HAVE_SYS_PARAM_H
22514 #   include <sys/param.h>
22515 #   ifdef EXEC_PAGESIZE
22516 #    define getpagesize() EXEC_PAGESIZE
22517 #   else /* no EXEC_PAGESIZE */
22518 #    ifdef NBPG
22519 #     define getpagesize() NBPG * CLSIZE
22520 #     ifndef CLSIZE
22521 #      define CLSIZE 1
22522 #     endif /* no CLSIZE */
22523 #    else /* no NBPG */
22524 #     ifdef NBPC
22525 #      define getpagesize() NBPC
22526 #     else /* no NBPC */
22527 #      ifdef PAGESIZE
22528 #       define getpagesize() PAGESIZE
22529 #      endif /* PAGESIZE */
22530 #     endif /* no NBPC */
22531 #    endif /* no NBPG */
22532 #   endif /* no EXEC_PAGESIZE */
22533 #  else /* no HAVE_SYS_PARAM_H */
22534 #   define getpagesize() 8192   /* punt totally */
22535 #  endif /* no HAVE_SYS_PARAM_H */
22536 # endif /* no _SC_PAGESIZE */
22537
22538 #endif /* no HAVE_GETPAGESIZE */
22539
22540 int
22541 main ()
22542 {
22543   char *data, *data2, *data3;
22544   int i, pagesize;
22545   int fd;
22546
22547   pagesize = getpagesize ();
22548
22549   /* First, make a file with some known garbage in it. */
22550   data = (char *) malloc (pagesize);
22551   if (!data)
22552     exit (1);
22553   for (i = 0; i < pagesize; ++i)
22554     *(data + i) = rand ();
22555   umask (0);
22556   fd = creat ("conftest.mmap", 0600);
22557   if (fd < 0)
22558     exit (1);
22559   if (write (fd, data, pagesize) != pagesize)
22560     exit (1);
22561   close (fd);
22562
22563   /* Next, try to mmap the file at a fixed address which already has
22564      something else allocated at it.  If we can, also make sure that
22565      we see the same garbage.  */
22566   fd = open ("conftest.mmap", O_RDWR);
22567   if (fd < 0)
22568     exit (1);
22569   data2 = (char *) malloc (2 * pagesize);
22570   if (!data2)
22571     exit (1);
22572   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22573   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22574                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22575     exit (1);
22576   for (i = 0; i < pagesize; ++i)
22577     if (*(data + i) != *(data2 + i))
22578       exit (1);
22579
22580   /* Finally, make sure that changes to the mapped area do not
22581      percolate back to the file as seen by read().  (This is a bug on
22582      some variants of i386 svr4.0.)  */
22583   for (i = 0; i < pagesize; ++i)
22584     *(data2 + i) = *(data2 + i) + 1;
22585   data3 = (char *) malloc (pagesize);
22586   if (!data3)
22587     exit (1);
22588   if (read (fd, data3, pagesize) != pagesize)
22589     exit (1);
22590   for (i = 0; i < pagesize; ++i)
22591     if (*(data + i) != *(data3 + i))
22592       exit (1);
22593   close (fd);
22594   exit (0);
22595 }
22596 _ACEOF
22597 rm -f conftest$ac_exeext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599   (eval $ac_link) 2>&5
22600   ac_status=$?
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604   (eval $ac_try) 2>&5
22605   ac_status=$?
22606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); }; }; then
22608   ac_cv_func_mmap_fixed_mapped=yes
22609 else
22610   echo "$as_me: program exited with status $ac_status" >&5
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 ( exit $ac_status )
22615 ac_cv_func_mmap_fixed_mapped=no
22616 fi
22617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22618 fi
22619 fi
22620 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22621 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22622 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22623
22624 cat >>confdefs.h <<\_ACEOF
22625 #define HAVE_MMAP 1
22626 _ACEOF
22627
22628 fi
22629 rm -f conftest.mmap
22630
22631
22632     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
22633 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
22634 if test "${ac_cv_gnu_library_2_1+set}" = set; then
22635   echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637   cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h.  */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h.  */
22643
22644 #include <features.h>
22645 #ifdef __GNU_LIBRARY__
22646  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22647   Lucky GNU user
22648  #endif
22649 #endif
22650
22651 _ACEOF
22652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22653   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22654   ac_cv_gnu_library_2_1=yes
22655 else
22656   ac_cv_gnu_library_2_1=no
22657 fi
22658 rm -f conftest*
22659
22660
22661
22662 fi
22663 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
22664 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
22665
22666     GLIBC21="$ac_cv_gnu_library_2_1"
22667
22668
22669
22670
22671   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
22672 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
22673 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
22674   echo $ECHO_N "(cached) $ECHO_C" >&6
22675 else
22676
22677       if test "$cross_compiling" = yes; then
22678
22679           # Guess based on the CPU.
22680           case "$host_cpu" in
22681             alpha* | i3456786 | m68k | s390*)
22682               gt_cv_int_divbyzero_sigfpe="guessing yes";;
22683             *)
22684               gt_cv_int_divbyzero_sigfpe="guessing no";;
22685           esac
22686
22687 else
22688   cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h.  */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h.  */
22694
22695 #include <stdlib.h>
22696 #include <signal.h>
22697
22698 static void
22699 #ifdef __cplusplus
22700 sigfpe_handler (int sig)
22701 #else
22702 sigfpe_handler (sig) int sig;
22703 #endif
22704 {
22705   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
22706   exit (sig != SIGFPE);
22707 }
22708
22709 int x = 1;
22710 int y = 0;
22711 int z;
22712 int nan;
22713
22714 int main ()
22715 {
22716   signal (SIGFPE, sigfpe_handler);
22717 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
22718 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
22719   signal (SIGTRAP, sigfpe_handler);
22720 #endif
22721 /* Linux/SPARC yields signal SIGILL.  */
22722 #if defined (__sparc__) && defined (__linux__)
22723   signal (SIGILL, sigfpe_handler);
22724 #endif
22725
22726   z = x / y;
22727   nan = y / y;
22728   exit (1);
22729 }
22730
22731 _ACEOF
22732 rm -f conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734   (eval $ac_link) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; }; then
22743   gt_cv_int_divbyzero_sigfpe=yes
22744 else
22745   echo "$as_me: program exited with status $ac_status" >&5
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 ( exit $ac_status )
22750 gt_cv_int_divbyzero_sigfpe=no
22751 fi
22752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22753 fi
22754
22755 fi
22756 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
22757 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
22758   case "$gt_cv_int_divbyzero_sigfpe" in
22759     *yes) value=1;;
22760     *) value=0;;
22761   esac
22762
22763 cat >>confdefs.h <<_ACEOF
22764 #define INTDIV0_RAISES_SIGFPE $value
22765 _ACEOF
22766
22767
22768
22769   echo "$as_me:$LINENO: checking for unsigned long long" >&5
22770 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
22771 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
22772   echo $ECHO_N "(cached) $ECHO_C" >&6
22773 else
22774   cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h.  */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h.  */
22780 unsigned long long ull = 1ULL; int i = 63;
22781 int
22782 main ()
22783 {
22784 unsigned long long ullmax = (unsigned long long) -1;
22785      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
22786   ;
22787   return 0;
22788 }
22789 _ACEOF
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22792   (eval $ac_link) 2>conftest.er1
22793   ac_status=$?
22794   grep -v '^ *+' conftest.er1 >conftest.err
22795   rm -f conftest.er1
22796   cat conftest.err >&5
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); } &&
22799          { ac_try='test -z "$ac_c_werror_flag"
22800                          || test ! -s conftest.err'
22801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802   (eval $ac_try) 2>&5
22803   ac_status=$?
22804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); }; } &&
22806          { ac_try='test -s conftest$ac_exeext'
22807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808   (eval $ac_try) 2>&5
22809   ac_status=$?
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); }; }; then
22812   ac_cv_type_unsigned_long_long=yes
22813 else
22814   echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22816
22817 ac_cv_type_unsigned_long_long=no
22818 fi
22819 rm -f conftest.err conftest.$ac_objext \
22820       conftest$ac_exeext conftest.$ac_ext
22821 fi
22822 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
22823 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
22824   if test $ac_cv_type_unsigned_long_long = yes; then
22825
22826 cat >>confdefs.h <<\_ACEOF
22827 #define HAVE_UNSIGNED_LONG_LONG 1
22828 _ACEOF
22829
22830   fi
22831
22832
22833
22834
22835   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
22836
22837     test $ac_cv_type_unsigned_long_long = yes \
22838       && ac_type='unsigned long long' \
22839       || ac_type='unsigned long'
22840
22841 cat >>confdefs.h <<_ACEOF
22842 #define uintmax_t $ac_type
22843 _ACEOF
22844
22845   else
22846
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_UINTMAX_T 1
22849 _ACEOF
22850
22851   fi
22852
22853
22854   echo "$as_me:$LINENO: checking for inttypes.h" >&5
22855 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22856 if test "${gt_cv_header_inttypes_h+set}" = set; then
22857   echo $ECHO_N "(cached) $ECHO_C" >&6
22858 else
22859
22860     cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h.  */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h.  */
22866 #include <sys/types.h>
22867 #include <inttypes.h>
22868 int
22869 main ()
22870 {
22871
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22878   (eval $ac_compile) 2>conftest.er1
22879   ac_status=$?
22880   grep -v '^ *+' conftest.er1 >conftest.err
22881   rm -f conftest.er1
22882   cat conftest.err >&5
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } &&
22885          { ac_try='test -z "$ac_c_werror_flag"
22886                          || test ! -s conftest.err'
22887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888   (eval $ac_try) 2>&5
22889   ac_status=$?
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); }; } &&
22892          { ac_try='test -s conftest.$ac_objext'
22893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894   (eval $ac_try) 2>&5
22895   ac_status=$?
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); }; }; then
22898   gt_cv_header_inttypes_h=yes
22899 else
22900   echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903 gt_cv_header_inttypes_h=no
22904 fi
22905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22906
22907 fi
22908 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
22909 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
22910   if test $gt_cv_header_inttypes_h = yes; then
22911
22912 cat >>confdefs.h <<_ACEOF
22913 #define HAVE_INTTYPES_H 1
22914 _ACEOF
22915
22916   fi
22917
22918
22919
22920   if test $gt_cv_header_inttypes_h = yes; then
22921     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
22922 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
22923 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
22924   echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926
22927         cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h.  */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h.  */
22933 #include <inttypes.h>
22934 #ifdef PRId32
22935 char *p = PRId32;
22936 #endif
22937
22938 int
22939 main ()
22940 {
22941
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22948   (eval $ac_compile) 2>conftest.er1
22949   ac_status=$?
22950   grep -v '^ *+' conftest.er1 >conftest.err
22951   rm -f conftest.er1
22952   cat conftest.err >&5
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); } &&
22955          { ac_try='test -z "$ac_c_werror_flag"
22956                          || test ! -s conftest.err'
22957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958   (eval $ac_try) 2>&5
22959   ac_status=$?
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); }; } &&
22962          { ac_try='test -s conftest.$ac_objext'
22963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964   (eval $ac_try) 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); }; }; then
22968   gt_cv_inttypes_pri_broken=no
22969 else
22970   echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22972
22973 gt_cv_inttypes_pri_broken=yes
22974 fi
22975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22976
22977 fi
22978 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
22979 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
22980   fi
22981   if test "$gt_cv_inttypes_pri_broken" = yes; then
22982
22983 cat >>confdefs.h <<_ACEOF
22984 #define PRI_MACROS_BROKEN 1
22985 _ACEOF
22986
22987   fi
22988
22989
22990
22991 for ac_header in stdint.h
22992 do
22993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22995   echo "$as_me:$LINENO: checking for $ac_header" >&5
22996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22998   echo $ECHO_N "(cached) $ECHO_C" >&6
22999 fi
23000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23002 else
23003   # Is the header compilable?
23004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23006 cat >conftest.$ac_ext <<_ACEOF
23007 /* confdefs.h.  */
23008 _ACEOF
23009 cat confdefs.h >>conftest.$ac_ext
23010 cat >>conftest.$ac_ext <<_ACEOF
23011 /* end confdefs.h.  */
23012 $ac_includes_default
23013 #include <$ac_header>
23014 _ACEOF
23015 rm -f conftest.$ac_objext
23016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23017   (eval $ac_compile) 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } &&
23024          { ac_try='test -z "$ac_c_werror_flag"
23025                          || test ! -s conftest.err'
23026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027   (eval $ac_try) 2>&5
23028   ac_status=$?
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); }; } &&
23031          { ac_try='test -s conftest.$ac_objext'
23032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033   (eval $ac_try) 2>&5
23034   ac_status=$?
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); }; }; then
23037   ac_header_compiler=yes
23038 else
23039   echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23041
23042 ac_header_compiler=no
23043 fi
23044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23046 echo "${ECHO_T}$ac_header_compiler" >&6
23047
23048 # Is the header present?
23049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h.  */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h.  */
23057 #include <$ac_header>
23058 _ACEOF
23059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23061   ac_status=$?
23062   grep -v '^ *+' conftest.er1 >conftest.err
23063   rm -f conftest.er1
23064   cat conftest.err >&5
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); } >/dev/null; then
23067   if test -s conftest.err; then
23068     ac_cpp_err=$ac_c_preproc_warn_flag
23069     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23070   else
23071     ac_cpp_err=
23072   fi
23073 else
23074   ac_cpp_err=yes
23075 fi
23076 if test -z "$ac_cpp_err"; then
23077   ac_header_preproc=yes
23078 else
23079   echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23081
23082   ac_header_preproc=no
23083 fi
23084 rm -f conftest.err conftest.$ac_ext
23085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23086 echo "${ECHO_T}$ac_header_preproc" >&6
23087
23088 # So?  What about this header?
23089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23090   yes:no: )
23091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23095     ac_header_preproc=yes
23096     ;;
23097   no:yes:* )
23098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23110     (
23111       cat <<\_ASBOX
23112 ## ------------------------------------------ ##
23113 ## Report this to the AC_PACKAGE_NAME lists.  ##
23114 ## ------------------------------------------ ##
23115 _ASBOX
23116     ) |
23117       sed "s/^/$as_me: WARNING:     /" >&2
23118     ;;
23119 esac
23120 echo "$as_me:$LINENO: checking for $ac_header" >&5
23121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23123   echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125   eval "$as_ac_Header=\$ac_header_preproc"
23126 fi
23127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23129
23130 fi
23131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23132   cat >>confdefs.h <<_ACEOF
23133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23134 _ACEOF
23135
23136 fi
23137
23138 done
23139
23140     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
23141 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
23142   result=
23143   cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h.  */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h.  */
23149
23150 #include <limits.h>
23151 #if HAVE_STDINT_H
23152 #include <stdint.h>
23153 #endif
23154 #ifdef SIZE_MAX
23155 Found it
23156 #endif
23157
23158 _ACEOF
23159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23160   $EGREP "Found it" >/dev/null 2>&1; then
23161   result=yes
23162 fi
23163 rm -f conftest*
23164
23165   if test -z "$result"; then
23166                     if test "$cross_compiling" = yes; then
23167   # Depending upon the size, compute the lo and hi bounds.
23168 cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h.  */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h.  */
23174 #include <stddef.h>
23175 int
23176 main ()
23177 {
23178 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
23179 test_array [0] = 0
23180
23181   ;
23182   return 0;
23183 }
23184 _ACEOF
23185 rm -f conftest.$ac_objext
23186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23187   (eval $ac_compile) 2>conftest.er1
23188   ac_status=$?
23189   grep -v '^ *+' conftest.er1 >conftest.err
23190   rm -f conftest.er1
23191   cat conftest.err >&5
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); } &&
23194          { ac_try='test -z "$ac_c_werror_flag"
23195                          || test ! -s conftest.err'
23196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197   (eval $ac_try) 2>&5
23198   ac_status=$?
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); }; } &&
23201          { ac_try='test -s conftest.$ac_objext'
23202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23203   (eval $ac_try) 2>&5
23204   ac_status=$?
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); }; }; then
23207   ac_lo=0 ac_mid=0
23208   while :; do
23209     cat >conftest.$ac_ext <<_ACEOF
23210 /* confdefs.h.  */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h.  */
23215 #include <stddef.h>
23216 int
23217 main ()
23218 {
23219 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
23220 test_array [0] = 0
23221
23222   ;
23223   return 0;
23224 }
23225 _ACEOF
23226 rm -f conftest.$ac_objext
23227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23228   (eval $ac_compile) 2>conftest.er1
23229   ac_status=$?
23230   grep -v '^ *+' conftest.er1 >conftest.err
23231   rm -f conftest.er1
23232   cat conftest.err >&5
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); } &&
23235          { ac_try='test -z "$ac_c_werror_flag"
23236                          || test ! -s conftest.err'
23237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238   (eval $ac_try) 2>&5
23239   ac_status=$?
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); }; } &&
23242          { ac_try='test -s conftest.$ac_objext'
23243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244   (eval $ac_try) 2>&5
23245   ac_status=$?
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); }; }; then
23248   ac_hi=$ac_mid; break
23249 else
23250   echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23252
23253 ac_lo=`expr $ac_mid + 1`
23254                     if test $ac_lo -le $ac_mid; then
23255                       ac_lo= ac_hi=
23256                       break
23257                     fi
23258                     ac_mid=`expr 2 '*' $ac_mid + 1`
23259 fi
23260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23261   done
23262 else
23263   echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23265
23266 cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272 #include <stddef.h>
23273 int
23274 main ()
23275 {
23276 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
23277 test_array [0] = 0
23278
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23285   (eval $ac_compile) 2>conftest.er1
23286   ac_status=$?
23287   grep -v '^ *+' conftest.er1 >conftest.err
23288   rm -f conftest.er1
23289   cat conftest.err >&5
23290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); } &&
23292          { ac_try='test -z "$ac_c_werror_flag"
23293                          || test ! -s conftest.err'
23294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295   (eval $ac_try) 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; } &&
23299          { ac_try='test -s conftest.$ac_objext'
23300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301   (eval $ac_try) 2>&5
23302   ac_status=$?
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); }; }; then
23305   ac_hi=-1 ac_mid=-1
23306   while :; do
23307     cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h.  */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h.  */
23313 #include <stddef.h>
23314 int
23315 main ()
23316 {
23317 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
23318 test_array [0] = 0
23319
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23326   (eval $ac_compile) 2>conftest.er1
23327   ac_status=$?
23328   grep -v '^ *+' conftest.er1 >conftest.err
23329   rm -f conftest.er1
23330   cat conftest.err >&5
23331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332   (exit $ac_status); } &&
23333          { ac_try='test -z "$ac_c_werror_flag"
23334                          || test ! -s conftest.err'
23335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336   (eval $ac_try) 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; } &&
23340          { ac_try='test -s conftest.$ac_objext'
23341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342   (eval $ac_try) 2>&5
23343   ac_status=$?
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); }; }; then
23346   ac_lo=$ac_mid; break
23347 else
23348   echo "$as_me: failed program was:" >&5
23349 sed 's/^/| /' conftest.$ac_ext >&5
23350
23351 ac_hi=`expr '(' $ac_mid ')' - 1`
23352                        if test $ac_mid -le $ac_hi; then
23353                          ac_lo= ac_hi=
23354                          break
23355                        fi
23356                        ac_mid=`expr 2 '*' $ac_mid`
23357 fi
23358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23359   done
23360 else
23361   echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23363
23364 ac_lo= ac_hi=
23365 fi
23366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23367 fi
23368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23369 # Binary search between lo and hi bounds.
23370 while test "x$ac_lo" != "x$ac_hi"; do
23371   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23372   cat >conftest.$ac_ext <<_ACEOF
23373 /* confdefs.h.  */
23374 _ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h.  */
23378 #include <stddef.h>
23379 int
23380 main ()
23381 {
23382 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
23383 test_array [0] = 0
23384
23385   ;
23386   return 0;
23387 }
23388 _ACEOF
23389 rm -f conftest.$ac_objext
23390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23391   (eval $ac_compile) 2>conftest.er1
23392   ac_status=$?
23393   grep -v '^ *+' conftest.er1 >conftest.err
23394   rm -f conftest.er1
23395   cat conftest.err >&5
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); } &&
23398          { ac_try='test -z "$ac_c_werror_flag"
23399                          || test ! -s conftest.err'
23400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401   (eval $ac_try) 2>&5
23402   ac_status=$?
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); }; } &&
23405          { ac_try='test -s conftest.$ac_objext'
23406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23407   (eval $ac_try) 2>&5
23408   ac_status=$?
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); }; }; then
23411   ac_hi=$ac_mid
23412 else
23413   echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23415
23416 ac_lo=`expr '(' $ac_mid ')' + 1`
23417 fi
23418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23419 done
23420 case $ac_lo in
23421 ?*) res_hi=$ac_lo;;
23422 '') result=? ;;
23423 esac
23424 else
23425   if test "$cross_compiling" = yes; then
23426   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23427 See \`config.log' for more details." >&5
23428 echo "$as_me: error: cannot run test program while cross compiling
23429 See \`config.log' for more details." >&2;}
23430    { (exit 1); exit 1; }; }
23431 else
23432   cat >conftest.$ac_ext <<_ACEOF
23433 /* confdefs.h.  */
23434 _ACEOF
23435 cat confdefs.h >>conftest.$ac_ext
23436 cat >>conftest.$ac_ext <<_ACEOF
23437 /* end confdefs.h.  */
23438 #include <stddef.h>
23439 long longval () { return ~(size_t)0 / 10; }
23440 unsigned long ulongval () { return ~(size_t)0 / 10; }
23441 #include <stdio.h>
23442 #include <stdlib.h>
23443 int
23444 main ()
23445 {
23446
23447   FILE *f = fopen ("conftest.val", "w");
23448   if (! f)
23449     exit (1);
23450   if ((~(size_t)0 / 10) < 0)
23451     {
23452       long i = longval ();
23453       if (i != (~(size_t)0 / 10))
23454         exit (1);
23455       fprintf (f, "%ld\n", i);
23456     }
23457   else
23458     {
23459       unsigned long i = ulongval ();
23460       if (i != (~(size_t)0 / 10))
23461         exit (1);
23462       fprintf (f, "%lu\n", i);
23463     }
23464   exit (ferror (f) || fclose (f) != 0);
23465
23466   ;
23467   return 0;
23468 }
23469 _ACEOF
23470 rm -f conftest$ac_exeext
23471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23472   (eval $ac_link) 2>&5
23473   ac_status=$?
23474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477   (eval $ac_try) 2>&5
23478   ac_status=$?
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); }; }; then
23481   res_hi=`cat conftest.val`
23482 else
23483   echo "$as_me: program exited with status $ac_status" >&5
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487 ( exit $ac_status )
23488 result=?
23489 fi
23490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23491 fi
23492 fi
23493 rm -f conftest.val
23494     if test "$cross_compiling" = yes; then
23495   # Depending upon the size, compute the lo and hi bounds.
23496 cat >conftest.$ac_ext <<_ACEOF
23497 /* confdefs.h.  */
23498 _ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h.  */
23502 #include <stddef.h>
23503 int
23504 main ()
23505 {
23506 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
23507 test_array [0] = 0
23508
23509   ;
23510   return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest.$ac_objext
23514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23515   (eval $ac_compile) 2>conftest.er1
23516   ac_status=$?
23517   grep -v '^ *+' conftest.er1 >conftest.err
23518   rm -f conftest.er1
23519   cat conftest.err >&5
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } &&
23522          { ac_try='test -z "$ac_c_werror_flag"
23523                          || test ! -s conftest.err'
23524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525   (eval $ac_try) 2>&5
23526   ac_status=$?
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); }; } &&
23529          { ac_try='test -s conftest.$ac_objext'
23530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531   (eval $ac_try) 2>&5
23532   ac_status=$?
23533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534   (exit $ac_status); }; }; then
23535   ac_lo=0 ac_mid=0
23536   while :; do
23537     cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h.  */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h.  */
23543 #include <stddef.h>
23544 int
23545 main ()
23546 {
23547 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
23548 test_array [0] = 0
23549
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23556   (eval $ac_compile) 2>conftest.er1
23557   ac_status=$?
23558   grep -v '^ *+' conftest.er1 >conftest.err
23559   rm -f conftest.er1
23560   cat conftest.err >&5
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); } &&
23563          { ac_try='test -z "$ac_c_werror_flag"
23564                          || test ! -s conftest.err'
23565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566   (eval $ac_try) 2>&5
23567   ac_status=$?
23568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); }; } &&
23570          { ac_try='test -s conftest.$ac_objext'
23571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572   (eval $ac_try) 2>&5
23573   ac_status=$?
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); }; }; then
23576   ac_hi=$ac_mid; break
23577 else
23578   echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23580
23581 ac_lo=`expr $ac_mid + 1`
23582                     if test $ac_lo -le $ac_mid; then
23583                       ac_lo= ac_hi=
23584                       break
23585                     fi
23586                     ac_mid=`expr 2 '*' $ac_mid + 1`
23587 fi
23588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23589   done
23590 else
23591   echo "$as_me: failed program was:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23593
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 #include <stddef.h>
23601 int
23602 main ()
23603 {
23604 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
23605 test_array [0] = 0
23606
23607   ;
23608   return 0;
23609 }
23610 _ACEOF
23611 rm -f conftest.$ac_objext
23612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23613   (eval $ac_compile) 2>conftest.er1
23614   ac_status=$?
23615   grep -v '^ *+' conftest.er1 >conftest.err
23616   rm -f conftest.er1
23617   cat conftest.err >&5
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); } &&
23620          { ac_try='test -z "$ac_c_werror_flag"
23621                          || test ! -s conftest.err'
23622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623   (eval $ac_try) 2>&5
23624   ac_status=$?
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); }; } &&
23627          { ac_try='test -s conftest.$ac_objext'
23628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629   (eval $ac_try) 2>&5
23630   ac_status=$?
23631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632   (exit $ac_status); }; }; then
23633   ac_hi=-1 ac_mid=-1
23634   while :; do
23635     cat >conftest.$ac_ext <<_ACEOF
23636 /* confdefs.h.  */
23637 _ACEOF
23638 cat confdefs.h >>conftest.$ac_ext
23639 cat >>conftest.$ac_ext <<_ACEOF
23640 /* end confdefs.h.  */
23641 #include <stddef.h>
23642 int
23643 main ()
23644 {
23645 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
23646 test_array [0] = 0
23647
23648   ;
23649   return 0;
23650 }
23651 _ACEOF
23652 rm -f conftest.$ac_objext
23653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23654   (eval $ac_compile) 2>conftest.er1
23655   ac_status=$?
23656   grep -v '^ *+' conftest.er1 >conftest.err
23657   rm -f conftest.er1
23658   cat conftest.err >&5
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); } &&
23661          { ac_try='test -z "$ac_c_werror_flag"
23662                          || test ! -s conftest.err'
23663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23664   (eval $ac_try) 2>&5
23665   ac_status=$?
23666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667   (exit $ac_status); }; } &&
23668          { ac_try='test -s conftest.$ac_objext'
23669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23670   (eval $ac_try) 2>&5
23671   ac_status=$?
23672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); }; }; then
23674   ac_lo=$ac_mid; break
23675 else
23676   echo "$as_me: failed program was:" >&5
23677 sed 's/^/| /' conftest.$ac_ext >&5
23678
23679 ac_hi=`expr '(' $ac_mid ')' - 1`
23680                        if test $ac_mid -le $ac_hi; then
23681                          ac_lo= ac_hi=
23682                          break
23683                        fi
23684                        ac_mid=`expr 2 '*' $ac_mid`
23685 fi
23686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23687   done
23688 else
23689   echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 ac_lo= ac_hi=
23693 fi
23694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23695 fi
23696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23697 # Binary search between lo and hi bounds.
23698 while test "x$ac_lo" != "x$ac_hi"; do
23699   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23700   cat >conftest.$ac_ext <<_ACEOF
23701 /* confdefs.h.  */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h.  */
23706 #include <stddef.h>
23707 int
23708 main ()
23709 {
23710 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
23711 test_array [0] = 0
23712
23713   ;
23714   return 0;
23715 }
23716 _ACEOF
23717 rm -f conftest.$ac_objext
23718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23719   (eval $ac_compile) 2>conftest.er1
23720   ac_status=$?
23721   grep -v '^ *+' conftest.er1 >conftest.err
23722   rm -f conftest.er1
23723   cat conftest.err >&5
23724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725   (exit $ac_status); } &&
23726          { ac_try='test -z "$ac_c_werror_flag"
23727                          || test ! -s conftest.err'
23728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729   (eval $ac_try) 2>&5
23730   ac_status=$?
23731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); }; } &&
23733          { ac_try='test -s conftest.$ac_objext'
23734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23735   (eval $ac_try) 2>&5
23736   ac_status=$?
23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738   (exit $ac_status); }; }; then
23739   ac_hi=$ac_mid
23740 else
23741   echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23743
23744 ac_lo=`expr '(' $ac_mid ')' + 1`
23745 fi
23746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23747 done
23748 case $ac_lo in
23749 ?*) res_lo=$ac_lo;;
23750 '') result=? ;;
23751 esac
23752 else
23753   if test "$cross_compiling" = yes; then
23754   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23755 See \`config.log' for more details." >&5
23756 echo "$as_me: error: cannot run test program while cross compiling
23757 See \`config.log' for more details." >&2;}
23758    { (exit 1); exit 1; }; }
23759 else
23760   cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766 #include <stddef.h>
23767 long longval () { return ~(size_t)0 % 10; }
23768 unsigned long ulongval () { return ~(size_t)0 % 10; }
23769 #include <stdio.h>
23770 #include <stdlib.h>
23771 int
23772 main ()
23773 {
23774
23775   FILE *f = fopen ("conftest.val", "w");
23776   if (! f)
23777     exit (1);
23778   if ((~(size_t)0 % 10) < 0)
23779     {
23780       long i = longval ();
23781       if (i != (~(size_t)0 % 10))
23782         exit (1);
23783       fprintf (f, "%ld\n", i);
23784     }
23785   else
23786     {
23787       unsigned long i = ulongval ();
23788       if (i != (~(size_t)0 % 10))
23789         exit (1);
23790       fprintf (f, "%lu\n", i);
23791     }
23792   exit (ferror (f) || fclose (f) != 0);
23793
23794   ;
23795   return 0;
23796 }
23797 _ACEOF
23798 rm -f conftest$ac_exeext
23799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23800   (eval $ac_link) 2>&5
23801   ac_status=$?
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805   (eval $ac_try) 2>&5
23806   ac_status=$?
23807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808   (exit $ac_status); }; }; then
23809   res_lo=`cat conftest.val`
23810 else
23811   echo "$as_me: program exited with status $ac_status" >&5
23812 echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815 ( exit $ac_status )
23816 result=?
23817 fi
23818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23819 fi
23820 fi
23821 rm -f conftest.val
23822     if test "$cross_compiling" = yes; then
23823   # Depending upon the size, compute the lo and hi bounds.
23824 cat >conftest.$ac_ext <<_ACEOF
23825 /* confdefs.h.  */
23826 _ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h.  */
23830 #include <stddef.h>
23831 int
23832 main ()
23833 {
23834 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
23835 test_array [0] = 0
23836
23837   ;
23838   return 0;
23839 }
23840 _ACEOF
23841 rm -f conftest.$ac_objext
23842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23843   (eval $ac_compile) 2>conftest.er1
23844   ac_status=$?
23845   grep -v '^ *+' conftest.er1 >conftest.err
23846   rm -f conftest.er1
23847   cat conftest.err >&5
23848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849   (exit $ac_status); } &&
23850          { ac_try='test -z "$ac_c_werror_flag"
23851                          || test ! -s conftest.err'
23852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853   (eval $ac_try) 2>&5
23854   ac_status=$?
23855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856   (exit $ac_status); }; } &&
23857          { ac_try='test -s conftest.$ac_objext'
23858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859   (eval $ac_try) 2>&5
23860   ac_status=$?
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); }; }; then
23863   ac_lo=0 ac_mid=0
23864   while :; do
23865     cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h.  */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h.  */
23871 #include <stddef.h>
23872 int
23873 main ()
23874 {
23875 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
23876 test_array [0] = 0
23877
23878   ;
23879   return 0;
23880 }
23881 _ACEOF
23882 rm -f conftest.$ac_objext
23883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23884   (eval $ac_compile) 2>conftest.er1
23885   ac_status=$?
23886   grep -v '^ *+' conftest.er1 >conftest.err
23887   rm -f conftest.er1
23888   cat conftest.err >&5
23889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890   (exit $ac_status); } &&
23891          { ac_try='test -z "$ac_c_werror_flag"
23892                          || test ! -s conftest.err'
23893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894   (eval $ac_try) 2>&5
23895   ac_status=$?
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); }; } &&
23898          { ac_try='test -s conftest.$ac_objext'
23899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900   (eval $ac_try) 2>&5
23901   ac_status=$?
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); }; }; then
23904   ac_hi=$ac_mid; break
23905 else
23906   echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23908
23909 ac_lo=`expr $ac_mid + 1`
23910                     if test $ac_lo -le $ac_mid; then
23911                       ac_lo= ac_hi=
23912                       break
23913                     fi
23914                     ac_mid=`expr 2 '*' $ac_mid + 1`
23915 fi
23916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23917   done
23918 else
23919   echo "$as_me: failed program was:" >&5
23920 sed 's/^/| /' conftest.$ac_ext >&5
23921
23922 cat >conftest.$ac_ext <<_ACEOF
23923 /* confdefs.h.  */
23924 _ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h.  */
23928 #include <stddef.h>
23929 int
23930 main ()
23931 {
23932 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
23933 test_array [0] = 0
23934
23935   ;
23936   return 0;
23937 }
23938 _ACEOF
23939 rm -f conftest.$ac_objext
23940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23941   (eval $ac_compile) 2>conftest.er1
23942   ac_status=$?
23943   grep -v '^ *+' conftest.er1 >conftest.err
23944   rm -f conftest.er1
23945   cat conftest.err >&5
23946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947   (exit $ac_status); } &&
23948          { ac_try='test -z "$ac_c_werror_flag"
23949                          || test ! -s conftest.err'
23950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951   (eval $ac_try) 2>&5
23952   ac_status=$?
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); }; } &&
23955          { ac_try='test -s conftest.$ac_objext'
23956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957   (eval $ac_try) 2>&5
23958   ac_status=$?
23959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960   (exit $ac_status); }; }; then
23961   ac_hi=-1 ac_mid=-1
23962   while :; do
23963     cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h.  */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h.  */
23969 #include <stddef.h>
23970 int
23971 main ()
23972 {
23973 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
23974 test_array [0] = 0
23975
23976   ;
23977   return 0;
23978 }
23979 _ACEOF
23980 rm -f conftest.$ac_objext
23981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23982   (eval $ac_compile) 2>conftest.er1
23983   ac_status=$?
23984   grep -v '^ *+' conftest.er1 >conftest.err
23985   rm -f conftest.er1
23986   cat conftest.err >&5
23987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988   (exit $ac_status); } &&
23989          { ac_try='test -z "$ac_c_werror_flag"
23990                          || test ! -s conftest.err'
23991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992   (eval $ac_try) 2>&5
23993   ac_status=$?
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); }; } &&
23996          { ac_try='test -s conftest.$ac_objext'
23997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998   (eval $ac_try) 2>&5
23999   ac_status=$?
24000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); }; }; then
24002   ac_lo=$ac_mid; break
24003 else
24004   echo "$as_me: failed program was:" >&5
24005 sed 's/^/| /' conftest.$ac_ext >&5
24006
24007 ac_hi=`expr '(' $ac_mid ')' - 1`
24008                        if test $ac_mid -le $ac_hi; then
24009                          ac_lo= ac_hi=
24010                          break
24011                        fi
24012                        ac_mid=`expr 2 '*' $ac_mid`
24013 fi
24014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24015   done
24016 else
24017   echo "$as_me: failed program was:" >&5
24018 sed 's/^/| /' conftest.$ac_ext >&5
24019
24020 ac_lo= ac_hi=
24021 fi
24022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24023 fi
24024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24025 # Binary search between lo and hi bounds.
24026 while test "x$ac_lo" != "x$ac_hi"; do
24027   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24028   cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h.  */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h.  */
24034 #include <stddef.h>
24035 int
24036 main ()
24037 {
24038 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
24039 test_array [0] = 0
24040
24041   ;
24042   return 0;
24043 }
24044 _ACEOF
24045 rm -f conftest.$ac_objext
24046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24047   (eval $ac_compile) 2>conftest.er1
24048   ac_status=$?
24049   grep -v '^ *+' conftest.er1 >conftest.err
24050   rm -f conftest.er1
24051   cat conftest.err >&5
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); } &&
24054          { ac_try='test -z "$ac_c_werror_flag"
24055                          || test ! -s conftest.err'
24056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057   (eval $ac_try) 2>&5
24058   ac_status=$?
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); }; } &&
24061          { ac_try='test -s conftest.$ac_objext'
24062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063   (eval $ac_try) 2>&5
24064   ac_status=$?
24065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066   (exit $ac_status); }; }; then
24067   ac_hi=$ac_mid
24068 else
24069   echo "$as_me: failed program was:" >&5
24070 sed 's/^/| /' conftest.$ac_ext >&5
24071
24072 ac_lo=`expr '(' $ac_mid ')' + 1`
24073 fi
24074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24075 done
24076 case $ac_lo in
24077 ?*) fits_in_uint=$ac_lo;;
24078 '') result=? ;;
24079 esac
24080 else
24081   if test "$cross_compiling" = yes; then
24082   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24083 See \`config.log' for more details." >&5
24084 echo "$as_me: error: cannot run test program while cross compiling
24085 See \`config.log' for more details." >&2;}
24086    { (exit 1); exit 1; }; }
24087 else
24088   cat >conftest.$ac_ext <<_ACEOF
24089 /* confdefs.h.  */
24090 _ACEOF
24091 cat confdefs.h >>conftest.$ac_ext
24092 cat >>conftest.$ac_ext <<_ACEOF
24093 /* end confdefs.h.  */
24094 #include <stddef.h>
24095 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
24096 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
24097 #include <stdio.h>
24098 #include <stdlib.h>
24099 int
24100 main ()
24101 {
24102
24103   FILE *f = fopen ("conftest.val", "w");
24104   if (! f)
24105     exit (1);
24106   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
24107     {
24108       long i = longval ();
24109       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
24110         exit (1);
24111       fprintf (f, "%ld\n", i);
24112     }
24113   else
24114     {
24115       unsigned long i = ulongval ();
24116       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
24117         exit (1);
24118       fprintf (f, "%lu\n", i);
24119     }
24120   exit (ferror (f) || fclose (f) != 0);
24121
24122   ;
24123   return 0;
24124 }
24125 _ACEOF
24126 rm -f conftest$ac_exeext
24127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24128   (eval $ac_link) 2>&5
24129   ac_status=$?
24130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24133   (eval $ac_try) 2>&5
24134   ac_status=$?
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); }; }; then
24137   fits_in_uint=`cat conftest.val`
24138 else
24139   echo "$as_me: program exited with status $ac_status" >&5
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24142
24143 ( exit $ac_status )
24144 result=?
24145 fi
24146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24147 fi
24148 fi
24149 rm -f conftest.val
24150     if test "$fits_in_uint" = 1; then
24151                   cat >conftest.$ac_ext <<_ACEOF
24152 /* confdefs.h.  */
24153 _ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h.  */
24157 #include <stddef.h>
24158         extern size_t foo;
24159         extern unsigned long foo;
24160
24161 int
24162 main ()
24163 {
24164
24165   ;
24166   return 0;
24167 }
24168 _ACEOF
24169 rm -f conftest.$ac_objext
24170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24171   (eval $ac_compile) 2>conftest.er1
24172   ac_status=$?
24173   grep -v '^ *+' conftest.er1 >conftest.err
24174   rm -f conftest.er1
24175   cat conftest.err >&5
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } &&
24178          { ac_try='test -z "$ac_c_werror_flag"
24179                          || test ! -s conftest.err'
24180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24181   (eval $ac_try) 2>&5
24182   ac_status=$?
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); }; } &&
24185          { ac_try='test -s conftest.$ac_objext'
24186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187   (eval $ac_try) 2>&5
24188   ac_status=$?
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); }; }; then
24191   fits_in_uint=0
24192 else
24193   echo "$as_me: failed program was:" >&5
24194 sed 's/^/| /' conftest.$ac_ext >&5
24195
24196 fi
24197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24198     fi
24199     if test -z "$result"; then
24200       if test "$fits_in_uint" = 1; then
24201         result="$res_hi$res_lo"U
24202       else
24203         result="$res_hi$res_lo"UL
24204       fi
24205     else
24206             result='~(size_t)0'
24207     fi
24208   fi
24209   echo "$as_me:$LINENO: result: $result" >&5
24210 echo "${ECHO_T}$result" >&6
24211   if test "$result" != yes; then
24212
24213 cat >>confdefs.h <<_ACEOF
24214 #define SIZE_MAX $result
24215 _ACEOF
24216
24217   fi
24218
24219
24220
24221
24222
24223 for ac_header in stdint.h
24224 do
24225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24227   echo "$as_me:$LINENO: checking for $ac_header" >&5
24228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24230   echo $ECHO_N "(cached) $ECHO_C" >&6
24231 fi
24232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24234 else
24235   # Is the header compilable?
24236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24238 cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244 $ac_includes_default
24245 #include <$ac_header>
24246 _ACEOF
24247 rm -f conftest.$ac_objext
24248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24249   (eval $ac_compile) 2>conftest.er1
24250   ac_status=$?
24251   grep -v '^ *+' conftest.er1 >conftest.err
24252   rm -f conftest.er1
24253   cat conftest.err >&5
24254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255   (exit $ac_status); } &&
24256          { ac_try='test -z "$ac_c_werror_flag"
24257                          || test ! -s conftest.err'
24258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259   (eval $ac_try) 2>&5
24260   ac_status=$?
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); }; } &&
24263          { ac_try='test -s conftest.$ac_objext'
24264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265   (eval $ac_try) 2>&5
24266   ac_status=$?
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); }; }; then
24269   ac_header_compiler=yes
24270 else
24271   echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.$ac_ext >&5
24273
24274 ac_header_compiler=no
24275 fi
24276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24278 echo "${ECHO_T}$ac_header_compiler" >&6
24279
24280 # Is the header present?
24281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24283 cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h.  */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h.  */
24289 #include <$ac_header>
24290 _ACEOF
24291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24293   ac_status=$?
24294   grep -v '^ *+' conftest.er1 >conftest.err
24295   rm -f conftest.er1
24296   cat conftest.err >&5
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); } >/dev/null; then
24299   if test -s conftest.err; then
24300     ac_cpp_err=$ac_c_preproc_warn_flag
24301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24302   else
24303     ac_cpp_err=
24304   fi
24305 else
24306   ac_cpp_err=yes
24307 fi
24308 if test -z "$ac_cpp_err"; then
24309   ac_header_preproc=yes
24310 else
24311   echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24313
24314   ac_header_preproc=no
24315 fi
24316 rm -f conftest.err conftest.$ac_ext
24317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24318 echo "${ECHO_T}$ac_header_preproc" >&6
24319
24320 # So?  What about this header?
24321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24322   yes:no: )
24323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24327     ac_header_preproc=yes
24328     ;;
24329   no:yes:* )
24330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24332     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24333 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24334     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24336     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24337 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24340     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24342     (
24343       cat <<\_ASBOX
24344 ## ------------------------------------------ ##
24345 ## Report this to the AC_PACKAGE_NAME lists.  ##
24346 ## ------------------------------------------ ##
24347 _ASBOX
24348     ) |
24349       sed "s/^/$as_me: WARNING:     /" >&2
24350     ;;
24351 esac
24352 echo "$as_me:$LINENO: checking for $ac_header" >&5
24353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24355   echo $ECHO_N "(cached) $ECHO_C" >&6
24356 else
24357   eval "$as_ac_Header=\$ac_header_preproc"
24358 fi
24359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24361
24362 fi
24363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24364   cat >>confdefs.h <<_ACEOF
24365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24366 _ACEOF
24367
24368 fi
24369
24370 done
24371
24372
24373
24374     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24375 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
24376 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24377   echo $ECHO_N "(cached) $ECHO_C" >&6
24378 else
24379   gt_save_CPPFLAGS="$CPPFLAGS"
24380      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24381      gt_save_LIBS="$LIBS"
24382      LIBS="$LIBS -framework CoreFoundation"
24383      cat >conftest.$ac_ext <<_ACEOF
24384 /* confdefs.h.  */
24385 _ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h.  */
24389 #include <CFPreferences.h>
24390 int
24391 main ()
24392 {
24393 CFPreferencesCopyAppValue(NULL, NULL)
24394   ;
24395   return 0;
24396 }
24397 _ACEOF
24398 rm -f conftest.$ac_objext conftest$ac_exeext
24399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24400   (eval $ac_link) 2>conftest.er1
24401   ac_status=$?
24402   grep -v '^ *+' conftest.er1 >conftest.err
24403   rm -f conftest.er1
24404   cat conftest.err >&5
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); } &&
24407          { ac_try='test -z "$ac_c_werror_flag"
24408                          || test ! -s conftest.err'
24409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); }; } &&
24414          { ac_try='test -s conftest$ac_exeext'
24415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416   (eval $ac_try) 2>&5
24417   ac_status=$?
24418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419   (exit $ac_status); }; }; then
24420   gt_cv_func_CFPreferencesCopyAppValue=yes
24421 else
24422   echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24424
24425 gt_cv_func_CFPreferencesCopyAppValue=no
24426 fi
24427 rm -f conftest.err conftest.$ac_objext \
24428       conftest$ac_exeext conftest.$ac_ext
24429      CPPFLAGS="$gt_save_CPPFLAGS"
24430      LIBS="$gt_save_LIBS"
24431 fi
24432 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24433 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
24434   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24435
24436 cat >>confdefs.h <<\_ACEOF
24437 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24438 _ACEOF
24439
24440   fi
24441     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24442 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
24443 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24444   echo $ECHO_N "(cached) $ECHO_C" >&6
24445 else
24446   gt_save_CPPFLAGS="$CPPFLAGS"
24447      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24448      gt_save_LIBS="$LIBS"
24449      LIBS="$LIBS -framework CoreFoundation"
24450      cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h.  */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h.  */
24456 #include <CFLocale.h>
24457 int
24458 main ()
24459 {
24460 CFLocaleCopyCurrent();
24461   ;
24462   return 0;
24463 }
24464 _ACEOF
24465 rm -f conftest.$ac_objext conftest$ac_exeext
24466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24467   (eval $ac_link) 2>conftest.er1
24468   ac_status=$?
24469   grep -v '^ *+' conftest.er1 >conftest.err
24470   rm -f conftest.er1
24471   cat conftest.err >&5
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); } &&
24474          { ac_try='test -z "$ac_c_werror_flag"
24475                          || test ! -s conftest.err'
24476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477   (eval $ac_try) 2>&5
24478   ac_status=$?
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); }; } &&
24481          { ac_try='test -s conftest$ac_exeext'
24482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483   (eval $ac_try) 2>&5
24484   ac_status=$?
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); }; }; then
24487   gt_cv_func_CFLocaleCopyCurrent=yes
24488 else
24489   echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24491
24492 gt_cv_func_CFLocaleCopyCurrent=no
24493 fi
24494 rm -f conftest.err conftest.$ac_objext \
24495       conftest$ac_exeext conftest.$ac_ext
24496      CPPFLAGS="$gt_save_CPPFLAGS"
24497      LIBS="$gt_save_LIBS"
24498 fi
24499 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24500 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
24501   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24502
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_CFLOCALECOPYCURRENT 1
24505 _ACEOF
24506
24507   fi
24508   INTL_MACOSX_LIBS=
24509   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24510     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24511   fi
24512
24513
24514
24515       if test "X$prefix" = "XNONE"; then
24516     acl_final_prefix="$ac_default_prefix"
24517   else
24518     acl_final_prefix="$prefix"
24519   fi
24520   if test "X$exec_prefix" = "XNONE"; then
24521     acl_final_exec_prefix='${prefix}'
24522   else
24523     acl_final_exec_prefix="$exec_prefix"
24524   fi
24525   acl_save_prefix="$prefix"
24526   prefix="$acl_final_prefix"
24527   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
24528   prefix="$acl_save_prefix"
24529
24530
24531 # Check whether --with-gnu-ld or --without-gnu-ld was given.
24532 if test "${with_gnu_ld+set}" = set; then
24533   withval="$with_gnu_ld"
24534   test "$withval" = no || with_gnu_ld=yes
24535 else
24536   with_gnu_ld=no
24537 fi;
24538 # Prepare PATH_SEPARATOR.
24539 # The user is always right.
24540 if test "${PATH_SEPARATOR+set}" != set; then
24541   echo "#! /bin/sh" >conf$$.sh
24542   echo  "exit 0"   >>conf$$.sh
24543   chmod +x conf$$.sh
24544   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24545     PATH_SEPARATOR=';'
24546   else
24547     PATH_SEPARATOR=:
24548   fi
24549   rm -f conf$$.sh
24550 fi
24551 ac_prog=ld
24552 if test "$GCC" = yes; then
24553   # Check if gcc -print-prog-name=ld gives a path.
24554   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
24555 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
24556   case $host in
24557   *-*-mingw*)
24558     # gcc leaves a trailing carriage return which upsets mingw
24559     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24560   *)
24561     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24562   esac
24563   case $ac_prog in
24564     # Accept absolute paths.
24565     [\\/]* | [A-Za-z]:[\\/]*)
24566       re_direlt='/[^/][^/]*/\.\./'
24567       # Canonicalize the path of ld
24568       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
24569       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24570         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
24571       done
24572       test -z "$LD" && LD="$ac_prog"
24573       ;;
24574   "")
24575     # If it fails, then pretend we aren't using GCC.
24576     ac_prog=ld
24577     ;;
24578   *)
24579     # If it is relative, then search for the first ld in PATH.
24580     with_gnu_ld=unknown
24581     ;;
24582   esac
24583 elif test "$with_gnu_ld" = yes; then
24584   echo "$as_me:$LINENO: checking for GNU ld" >&5
24585 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
24586 else
24587   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24588 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
24589 fi
24590 if test "${acl_cv_path_LD+set}" = set; then
24591   echo $ECHO_N "(cached) $ECHO_C" >&6
24592 else
24593   if test -z "$LD"; then
24594   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
24595   for ac_dir in $PATH; do
24596     test -z "$ac_dir" && ac_dir=.
24597     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24598       acl_cv_path_LD="$ac_dir/$ac_prog"
24599       # Check to see if the program is GNU ld.  I'd rather use --version,
24600       # but apparently some GNU ld's only accept -v.
24601       # Break only if it was the GNU/non-GNU ld that we prefer.
24602       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
24603       *GNU* | *'with BFD'*)
24604         test "$with_gnu_ld" != no && break ;;
24605       *)
24606         test "$with_gnu_ld" != yes && break ;;
24607       esac
24608     fi
24609   done
24610   IFS="$ac_save_ifs"
24611 else
24612   acl_cv_path_LD="$LD" # Let the user override the test with a path.
24613 fi
24614 fi
24615
24616 LD="$acl_cv_path_LD"
24617 if test -n "$LD"; then
24618   echo "$as_me:$LINENO: result: $LD" >&5
24619 echo "${ECHO_T}$LD" >&6
24620 else
24621   echo "$as_me:$LINENO: result: no" >&5
24622 echo "${ECHO_T}no" >&6
24623 fi
24624 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24625 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24626    { (exit 1); exit 1; }; }
24627 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24628 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
24629 if test "${acl_cv_prog_gnu_ld+set}" = set; then
24630   echo $ECHO_N "(cached) $ECHO_C" >&6
24631 else
24632   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
24633 case `$LD -v 2>&1 </dev/null` in
24634 *GNU* | *'with BFD'*)
24635   acl_cv_prog_gnu_ld=yes ;;
24636 *)
24637   acl_cv_prog_gnu_ld=no ;;
24638 esac
24639 fi
24640 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
24641 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
24642 with_gnu_ld=$acl_cv_prog_gnu_ld
24643
24644
24645
24646
24647                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
24648 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
24649 if test "${acl_cv_rpath+set}" = set; then
24650   echo $ECHO_N "(cached) $ECHO_C" >&6
24651 else
24652
24653     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
24654     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
24655     . ./conftest.sh
24656     rm -f ./conftest.sh
24657     acl_cv_rpath=done
24658
24659 fi
24660 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
24661 echo "${ECHO_T}$acl_cv_rpath" >&6
24662   wl="$acl_cv_wl"
24663   libext="$acl_cv_libext"
24664   shlibext="$acl_cv_shlibext"
24665   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
24666   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
24667   hardcode_direct="$acl_cv_hardcode_direct"
24668   hardcode_minus_L="$acl_cv_hardcode_minus_L"
24669     # Check whether --enable-rpath or --disable-rpath was given.
24670 if test "${enable_rpath+set}" = set; then
24671   enableval="$enable_rpath"
24672   :
24673 else
24674   enable_rpath=yes
24675 fi;
24676
24677
24678
24679
24680
24681
24682
24683     use_additional=yes
24684
24685   acl_save_prefix="$prefix"
24686   prefix="$acl_final_prefix"
24687   acl_save_exec_prefix="$exec_prefix"
24688   exec_prefix="$acl_final_exec_prefix"
24689
24690     eval additional_includedir=\"$includedir\"
24691     eval additional_libdir=\"$libdir\"
24692
24693   exec_prefix="$acl_save_exec_prefix"
24694   prefix="$acl_save_prefix"
24695
24696
24697 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24698 if test "${with_libiconv_prefix+set}" = set; then
24699   withval="$with_libiconv_prefix"
24700
24701     if test "X$withval" = "Xno"; then
24702       use_additional=no
24703     else
24704       if test "X$withval" = "X"; then
24705
24706   acl_save_prefix="$prefix"
24707   prefix="$acl_final_prefix"
24708   acl_save_exec_prefix="$exec_prefix"
24709   exec_prefix="$acl_final_exec_prefix"
24710
24711           eval additional_includedir=\"$includedir\"
24712           eval additional_libdir=\"$libdir\"
24713
24714   exec_prefix="$acl_save_exec_prefix"
24715   prefix="$acl_save_prefix"
24716
24717       else
24718         additional_includedir="$withval/include"
24719         additional_libdir="$withval/lib"
24720       fi
24721     fi
24722
24723 fi;
24724       LIBICONV=
24725   LTLIBICONV=
24726   INCICONV=
24727   rpathdirs=
24728   ltrpathdirs=
24729   names_already_handled=
24730   names_next_round='iconv '
24731   while test -n "$names_next_round"; do
24732     names_this_round="$names_next_round"
24733     names_next_round=
24734     for name in $names_this_round; do
24735       already_handled=
24736       for n in $names_already_handled; do
24737         if test "$n" = "$name"; then
24738           already_handled=yes
24739           break
24740         fi
24741       done
24742       if test -z "$already_handled"; then
24743         names_already_handled="$names_already_handled $name"
24744                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24745         eval value=\"\$HAVE_LIB$uppername\"
24746         if test -n "$value"; then
24747           if test "$value" = yes; then
24748             eval value=\"\$LIB$uppername\"
24749             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24750             eval value=\"\$LTLIB$uppername\"
24751             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24752           else
24753                                     :
24754           fi
24755         else
24756                               found_dir=
24757           found_la=
24758           found_so=
24759           found_a=
24760           if test $use_additional = yes; then
24761             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24762               found_dir="$additional_libdir"
24763               found_so="$additional_libdir/lib$name.$shlibext"
24764               if test -f "$additional_libdir/lib$name.la"; then
24765                 found_la="$additional_libdir/lib$name.la"
24766               fi
24767             else
24768               if test -f "$additional_libdir/lib$name.$libext"; then
24769                 found_dir="$additional_libdir"
24770                 found_a="$additional_libdir/lib$name.$libext"
24771                 if test -f "$additional_libdir/lib$name.la"; then
24772                   found_la="$additional_libdir/lib$name.la"
24773                 fi
24774               fi
24775             fi
24776           fi
24777           if test "X$found_dir" = "X"; then
24778             for x in $LDFLAGS $LTLIBICONV; do
24779
24780   acl_save_prefix="$prefix"
24781   prefix="$acl_final_prefix"
24782   acl_save_exec_prefix="$exec_prefix"
24783   exec_prefix="$acl_final_exec_prefix"
24784   eval x=\"$x\"
24785   exec_prefix="$acl_save_exec_prefix"
24786   prefix="$acl_save_prefix"
24787
24788               case "$x" in
24789                 -L*)
24790                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24791                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24792                     found_dir="$dir"
24793                     found_so="$dir/lib$name.$shlibext"
24794                     if test -f "$dir/lib$name.la"; then
24795                       found_la="$dir/lib$name.la"
24796                     fi
24797                   else
24798                     if test -f "$dir/lib$name.$libext"; then
24799                       found_dir="$dir"
24800                       found_a="$dir/lib$name.$libext"
24801                       if test -f "$dir/lib$name.la"; then
24802                         found_la="$dir/lib$name.la"
24803                       fi
24804                     fi
24805                   fi
24806                   ;;
24807               esac
24808               if test "X$found_dir" != "X"; then
24809                 break
24810               fi
24811             done
24812           fi
24813           if test "X$found_dir" != "X"; then
24814                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24815             if test "X$found_so" != "X"; then
24816                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24817                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24818               else
24819                                                                                 haveit=
24820                 for x in $ltrpathdirs; do
24821                   if test "X$x" = "X$found_dir"; then
24822                     haveit=yes
24823                     break
24824                   fi
24825                 done
24826                 if test -z "$haveit"; then
24827                   ltrpathdirs="$ltrpathdirs $found_dir"
24828                 fi
24829                                 if test "$hardcode_direct" = yes; then
24830                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24831                 else
24832                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24833                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24834                                                             haveit=
24835                     for x in $rpathdirs; do
24836                       if test "X$x" = "X$found_dir"; then
24837                         haveit=yes
24838                         break
24839                       fi
24840                     done
24841                     if test -z "$haveit"; then
24842                       rpathdirs="$rpathdirs $found_dir"
24843                     fi
24844                   else
24845                                                                                 haveit=
24846                     for x in $LDFLAGS $LIBICONV; do
24847
24848   acl_save_prefix="$prefix"
24849   prefix="$acl_final_prefix"
24850   acl_save_exec_prefix="$exec_prefix"
24851   exec_prefix="$acl_final_exec_prefix"
24852   eval x=\"$x\"
24853   exec_prefix="$acl_save_exec_prefix"
24854   prefix="$acl_save_prefix"
24855
24856                       if test "X$x" = "X-L$found_dir"; then
24857                         haveit=yes
24858                         break
24859                       fi
24860                     done
24861                     if test -z "$haveit"; then
24862                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24863                     fi
24864                     if test "$hardcode_minus_L" != no; then
24865                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24866                     else
24867                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24868                     fi
24869                   fi
24870                 fi
24871               fi
24872             else
24873               if test "X$found_a" != "X"; then
24874                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24875               else
24876                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24877               fi
24878             fi
24879                         additional_includedir=
24880             case "$found_dir" in
24881               */lib | */lib/)
24882                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24883                 additional_includedir="$basedir/include"
24884                 ;;
24885             esac
24886             if test "X$additional_includedir" != "X"; then
24887                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24888                 haveit=
24889                 if test "X$additional_includedir" = "X/usr/local/include"; then
24890                   if test -n "$GCC"; then
24891                     case $host_os in
24892                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24893                     esac
24894                   fi
24895                 fi
24896                 if test -z "$haveit"; then
24897                   for x in $CPPFLAGS $INCICONV; do
24898
24899   acl_save_prefix="$prefix"
24900   prefix="$acl_final_prefix"
24901   acl_save_exec_prefix="$exec_prefix"
24902   exec_prefix="$acl_final_exec_prefix"
24903   eval x=\"$x\"
24904   exec_prefix="$acl_save_exec_prefix"
24905   prefix="$acl_save_prefix"
24906
24907                     if test "X$x" = "X-I$additional_includedir"; then
24908                       haveit=yes
24909                       break
24910                     fi
24911                   done
24912                   if test -z "$haveit"; then
24913                     if test -d "$additional_includedir"; then
24914                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24915                     fi
24916                   fi
24917                 fi
24918               fi
24919             fi
24920                         if test -n "$found_la"; then
24921                                                         save_libdir="$libdir"
24922               case "$found_la" in
24923                 */* | *\\*) . "$found_la" ;;
24924                 *) . "./$found_la" ;;
24925               esac
24926               libdir="$save_libdir"
24927                             for dep in $dependency_libs; do
24928                 case "$dep" in
24929                   -L*)
24930                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24931                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
24932                       haveit=
24933                       if test "X$additional_libdir" = "X/usr/local/lib"; then
24934                         if test -n "$GCC"; then
24935                           case $host_os in
24936                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24937                           esac
24938                         fi
24939                       fi
24940                       if test -z "$haveit"; then
24941                         haveit=
24942                         for x in $LDFLAGS $LIBICONV; do
24943
24944   acl_save_prefix="$prefix"
24945   prefix="$acl_final_prefix"
24946   acl_save_exec_prefix="$exec_prefix"
24947   exec_prefix="$acl_final_exec_prefix"
24948   eval x=\"$x\"
24949   exec_prefix="$acl_save_exec_prefix"
24950   prefix="$acl_save_prefix"
24951
24952                           if test "X$x" = "X-L$additional_libdir"; then
24953                             haveit=yes
24954                             break
24955                           fi
24956                         done
24957                         if test -z "$haveit"; then
24958                           if test -d "$additional_libdir"; then
24959                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24960                           fi
24961                         fi
24962                         haveit=
24963                         for x in $LDFLAGS $LTLIBICONV; do
24964
24965   acl_save_prefix="$prefix"
24966   prefix="$acl_final_prefix"
24967   acl_save_exec_prefix="$exec_prefix"
24968   exec_prefix="$acl_final_exec_prefix"
24969   eval x=\"$x\"
24970   exec_prefix="$acl_save_exec_prefix"
24971   prefix="$acl_save_prefix"
24972
24973                           if test "X$x" = "X-L$additional_libdir"; then
24974                             haveit=yes
24975                             break
24976                           fi
24977                         done
24978                         if test -z "$haveit"; then
24979                           if test -d "$additional_libdir"; then
24980                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24981                           fi
24982                         fi
24983                       fi
24984                     fi
24985                     ;;
24986                   -R*)
24987                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24988                     if test "$enable_rpath" != no; then
24989                                                                   haveit=
24990                       for x in $rpathdirs; do
24991                         if test "X$x" = "X$dir"; then
24992                           haveit=yes
24993                           break
24994                         fi
24995                       done
24996                       if test -z "$haveit"; then
24997                         rpathdirs="$rpathdirs $dir"
24998                       fi
24999                                                                   haveit=
25000                       for x in $ltrpathdirs; do
25001                         if test "X$x" = "X$dir"; then
25002                           haveit=yes
25003                           break
25004                         fi
25005                       done
25006                       if test -z "$haveit"; then
25007                         ltrpathdirs="$ltrpathdirs $dir"
25008                       fi
25009                     fi
25010                     ;;
25011                   -l*)
25012                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25013                     ;;
25014                   *.la)
25015                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25016                     ;;
25017                   *)
25018                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25019                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25020                     ;;
25021                 esac
25022               done
25023             fi
25024           else
25025                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25026             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25027           fi
25028         fi
25029       fi
25030     done
25031   done
25032   if test "X$rpathdirs" != "X"; then
25033     if test -n "$hardcode_libdir_separator"; then
25034                         alldirs=
25035       for found_dir in $rpathdirs; do
25036         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25037       done
25038             acl_save_libdir="$libdir"
25039       libdir="$alldirs"
25040       eval flag=\"$hardcode_libdir_flag_spec\"
25041       libdir="$acl_save_libdir"
25042       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25043     else
25044             for found_dir in $rpathdirs; do
25045         acl_save_libdir="$libdir"
25046         libdir="$found_dir"
25047         eval flag=\"$hardcode_libdir_flag_spec\"
25048         libdir="$acl_save_libdir"
25049         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25050       done
25051     fi
25052   fi
25053   if test "X$ltrpathdirs" != "X"; then
25054             for found_dir in $ltrpathdirs; do
25055       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
25056     done
25057   fi
25058
25059
25060
25061
25062
25063
25064
25065
25066   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25067 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
25068 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25069   echo $ECHO_N "(cached) $ECHO_C" >&6
25070 else
25071   cat >conftest.$ac_ext <<_ACEOF
25072 /* confdefs.h.  */
25073 _ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h.  */
25077 $ac_includes_default
25078 int
25079 main ()
25080 {
25081 if ((ptrdiff_t *) 0)
25082   return 0;
25083 if (sizeof (ptrdiff_t))
25084   return 0;
25085   ;
25086   return 0;
25087 }
25088 _ACEOF
25089 rm -f conftest.$ac_objext
25090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25091   (eval $ac_compile) 2>conftest.er1
25092   ac_status=$?
25093   grep -v '^ *+' conftest.er1 >conftest.err
25094   rm -f conftest.er1
25095   cat conftest.err >&5
25096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097   (exit $ac_status); } &&
25098          { ac_try='test -z "$ac_c_werror_flag"
25099                          || test ! -s conftest.err'
25100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25101   (eval $ac_try) 2>&5
25102   ac_status=$?
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); }; } &&
25105          { ac_try='test -s conftest.$ac_objext'
25106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107   (eval $ac_try) 2>&5
25108   ac_status=$?
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); }; }; then
25111   ac_cv_type_ptrdiff_t=yes
25112 else
25113   echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25115
25116 ac_cv_type_ptrdiff_t=no
25117 fi
25118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25119 fi
25120 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25121 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
25122 if test $ac_cv_type_ptrdiff_t = yes; then
25123   :
25124 else
25125
25126 cat >>confdefs.h <<\_ACEOF
25127 #define ptrdiff_t long
25128 _ACEOF
25129
25130
25131 fi
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
25144 stdlib.h string.h unistd.h sys/param.h
25145 do
25146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25148   echo "$as_me:$LINENO: checking for $ac_header" >&5
25149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25151   echo $ECHO_N "(cached) $ECHO_C" >&6
25152 fi
25153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25155 else
25156   # Is the header compilable?
25157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25159 cat >conftest.$ac_ext <<_ACEOF
25160 /* confdefs.h.  */
25161 _ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h.  */
25165 $ac_includes_default
25166 #include <$ac_header>
25167 _ACEOF
25168 rm -f conftest.$ac_objext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25170   (eval $ac_compile) 2>conftest.er1
25171   ac_status=$?
25172   grep -v '^ *+' conftest.er1 >conftest.err
25173   rm -f conftest.er1
25174   cat conftest.err >&5
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } &&
25177          { ac_try='test -z "$ac_c_werror_flag"
25178                          || test ! -s conftest.err'
25179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180   (eval $ac_try) 2>&5
25181   ac_status=$?
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); }; } &&
25184          { ac_try='test -s conftest.$ac_objext'
25185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186   (eval $ac_try) 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); }; }; then
25190   ac_header_compiler=yes
25191 else
25192   echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25194
25195 ac_header_compiler=no
25196 fi
25197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25199 echo "${ECHO_T}$ac_header_compiler" >&6
25200
25201 # Is the header present?
25202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25204 cat >conftest.$ac_ext <<_ACEOF
25205 /* confdefs.h.  */
25206 _ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h.  */
25210 #include <$ac_header>
25211 _ACEOF
25212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25214   ac_status=$?
25215   grep -v '^ *+' conftest.er1 >conftest.err
25216   rm -f conftest.er1
25217   cat conftest.err >&5
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); } >/dev/null; then
25220   if test -s conftest.err; then
25221     ac_cpp_err=$ac_c_preproc_warn_flag
25222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25223   else
25224     ac_cpp_err=
25225   fi
25226 else
25227   ac_cpp_err=yes
25228 fi
25229 if test -z "$ac_cpp_err"; then
25230   ac_header_preproc=yes
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235   ac_header_preproc=no
25236 fi
25237 rm -f conftest.err conftest.$ac_ext
25238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25239 echo "${ECHO_T}$ac_header_preproc" >&6
25240
25241 # So?  What about this header?
25242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25243   yes:no: )
25244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25248     ac_header_preproc=yes
25249     ;;
25250   no:yes:* )
25251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25263     (
25264       cat <<\_ASBOX
25265 ## ------------------------------------------ ##
25266 ## Report this to the AC_PACKAGE_NAME lists.  ##
25267 ## ------------------------------------------ ##
25268 _ASBOX
25269     ) |
25270       sed "s/^/$as_me: WARNING:     /" >&2
25271     ;;
25272 esac
25273 echo "$as_me:$LINENO: checking for $ac_header" >&5
25274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25276   echo $ECHO_N "(cached) $ECHO_C" >&6
25277 else
25278   eval "$as_ac_Header=\$ac_header_preproc"
25279 fi
25280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25282
25283 fi
25284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25285   cat >>confdefs.h <<_ACEOF
25286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25287 _ACEOF
25288
25289 fi
25290
25291 done
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
25317 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
25318 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
25319 __fsetlocking
25320 do
25321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25322 echo "$as_me:$LINENO: checking for $ac_func" >&5
25323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25324 if eval "test \"\${$as_ac_var+set}\" = set"; then
25325   echo $ECHO_N "(cached) $ECHO_C" >&6
25326 else
25327   cat >conftest.$ac_ext <<_ACEOF
25328 /* confdefs.h.  */
25329 _ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h.  */
25333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25335 #define $ac_func innocuous_$ac_func
25336
25337 /* System header to define __stub macros and hopefully few prototypes,
25338     which can conflict with char $ac_func (); below.
25339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25340     <limits.h> exists even on freestanding compilers.  */
25341
25342 #ifdef __STDC__
25343 # include <limits.h>
25344 #else
25345 # include <assert.h>
25346 #endif
25347
25348 #undef $ac_func
25349
25350 /* Override any gcc2 internal prototype to avoid an error.  */
25351 #ifdef __cplusplus
25352 extern "C"
25353 {
25354 #endif
25355 /* We use char because int might match the return type of a gcc2
25356    builtin and then its argument prototype would still apply.  */
25357 char $ac_func ();
25358 /* The GNU C library defines this for functions which it implements
25359     to always fail with ENOSYS.  Some functions are actually named
25360     something starting with __ and the normal name is an alias.  */
25361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25362 choke me
25363 #else
25364 char (*f) () = $ac_func;
25365 #endif
25366 #ifdef __cplusplus
25367 }
25368 #endif
25369
25370 int
25371 main ()
25372 {
25373 return f != $ac_func;
25374   ;
25375   return 0;
25376 }
25377 _ACEOF
25378 rm -f conftest.$ac_objext conftest$ac_exeext
25379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25380   (eval $ac_link) 2>conftest.er1
25381   ac_status=$?
25382   grep -v '^ *+' conftest.er1 >conftest.err
25383   rm -f conftest.er1
25384   cat conftest.err >&5
25385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386   (exit $ac_status); } &&
25387          { ac_try='test -z "$ac_c_werror_flag"
25388                          || test ! -s conftest.err'
25389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390   (eval $ac_try) 2>&5
25391   ac_status=$?
25392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393   (exit $ac_status); }; } &&
25394          { ac_try='test -s conftest$ac_exeext'
25395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25396   (eval $ac_try) 2>&5
25397   ac_status=$?
25398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399   (exit $ac_status); }; }; then
25400   eval "$as_ac_var=yes"
25401 else
25402   echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.$ac_ext >&5
25404
25405 eval "$as_ac_var=no"
25406 fi
25407 rm -f conftest.err conftest.$ac_objext \
25408       conftest$ac_exeext conftest.$ac_ext
25409 fi
25410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25412 if test `eval echo '${'$as_ac_var'}'` = yes; then
25413   cat >>confdefs.h <<_ACEOF
25414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25415 _ACEOF
25416
25417 fi
25418 done
25419
25420
25421
25422   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
25423 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
25424 if test "${ac_cv_have_decl__snprintf+set}" = set; then
25425   echo $ECHO_N "(cached) $ECHO_C" >&6
25426 else
25427   cat >conftest.$ac_ext <<_ACEOF
25428 /* confdefs.h.  */
25429 _ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h.  */
25433 #include <stdio.h>
25434 int
25435 main ()
25436 {
25437
25438 #ifndef _snprintf
25439   char *p = (char *) _snprintf;
25440 #endif
25441
25442   ;
25443   return 0;
25444 }
25445 _ACEOF
25446 rm -f conftest.$ac_objext
25447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25448   (eval $ac_compile) 2>conftest.er1
25449   ac_status=$?
25450   grep -v '^ *+' conftest.er1 >conftest.err
25451   rm -f conftest.er1
25452   cat conftest.err >&5
25453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454   (exit $ac_status); } &&
25455          { ac_try='test -z "$ac_c_werror_flag"
25456                          || test ! -s conftest.err'
25457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458   (eval $ac_try) 2>&5
25459   ac_status=$?
25460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); }; } &&
25462          { ac_try='test -s conftest.$ac_objext'
25463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464   (eval $ac_try) 2>&5
25465   ac_status=$?
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); }; }; then
25468   ac_cv_have_decl__snprintf=yes
25469 else
25470   echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25472
25473 ac_cv_have_decl__snprintf=no
25474 fi
25475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25476 fi
25477 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
25478 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
25479   if test $ac_cv_have_decl__snprintf = yes; then
25480     gt_value=1
25481   else
25482     gt_value=0
25483   fi
25484
25485 cat >>confdefs.h <<_ACEOF
25486 #define HAVE_DECL__SNPRINTF $gt_value
25487 _ACEOF
25488
25489
25490
25491   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
25492 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
25493 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
25494   echo $ECHO_N "(cached) $ECHO_C" >&6
25495 else
25496   cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h.  */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h.  */
25502 #include <stdio.h>
25503 int
25504 main ()
25505 {
25506
25507 #ifndef _snwprintf
25508   char *p = (char *) _snwprintf;
25509 #endif
25510
25511   ;
25512   return 0;
25513 }
25514 _ACEOF
25515 rm -f conftest.$ac_objext
25516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25517   (eval $ac_compile) 2>conftest.er1
25518   ac_status=$?
25519   grep -v '^ *+' conftest.er1 >conftest.err
25520   rm -f conftest.er1
25521   cat conftest.err >&5
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); } &&
25524          { ac_try='test -z "$ac_c_werror_flag"
25525                          || test ! -s conftest.err'
25526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527   (eval $ac_try) 2>&5
25528   ac_status=$?
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); }; } &&
25531          { ac_try='test -s conftest.$ac_objext'
25532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533   (eval $ac_try) 2>&5
25534   ac_status=$?
25535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536   (exit $ac_status); }; }; then
25537   ac_cv_have_decl__snwprintf=yes
25538 else
25539   echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25541
25542 ac_cv_have_decl__snwprintf=no
25543 fi
25544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25545 fi
25546 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
25547 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
25548   if test $ac_cv_have_decl__snwprintf = yes; then
25549     gt_value=1
25550   else
25551     gt_value=0
25552   fi
25553
25554 cat >>confdefs.h <<_ACEOF
25555 #define HAVE_DECL__SNWPRINTF $gt_value
25556 _ACEOF
25557
25558
25559
25560
25561   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
25562 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
25563 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
25564   echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566   cat >conftest.$ac_ext <<_ACEOF
25567 /* confdefs.h.  */
25568 _ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h.  */
25572 #include <stdio.h>
25573 int
25574 main ()
25575 {
25576
25577 #ifndef feof_unlocked
25578   char *p = (char *) feof_unlocked;
25579 #endif
25580
25581   ;
25582   return 0;
25583 }
25584 _ACEOF
25585 rm -f conftest.$ac_objext
25586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25587   (eval $ac_compile) 2>conftest.er1
25588   ac_status=$?
25589   grep -v '^ *+' conftest.er1 >conftest.err
25590   rm -f conftest.er1
25591   cat conftest.err >&5
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); } &&
25594          { ac_try='test -z "$ac_c_werror_flag"
25595                          || test ! -s conftest.err'
25596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597   (eval $ac_try) 2>&5
25598   ac_status=$?
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); }; } &&
25601          { ac_try='test -s conftest.$ac_objext'
25602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603   (eval $ac_try) 2>&5
25604   ac_status=$?
25605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606   (exit $ac_status); }; }; then
25607   ac_cv_have_decl_feof_unlocked=yes
25608 else
25609   echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25611
25612 ac_cv_have_decl_feof_unlocked=no
25613 fi
25614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25615 fi
25616 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
25617 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
25618   if test $ac_cv_have_decl_feof_unlocked = yes; then
25619     gt_value=1
25620   else
25621     gt_value=0
25622   fi
25623
25624 cat >>confdefs.h <<_ACEOF
25625 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
25626 _ACEOF
25627
25628
25629
25630   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
25631 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
25632 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
25633   echo $ECHO_N "(cached) $ECHO_C" >&6
25634 else
25635   cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h.  */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h.  */
25641 #include <stdio.h>
25642 int
25643 main ()
25644 {
25645
25646 #ifndef fgets_unlocked
25647   char *p = (char *) fgets_unlocked;
25648 #endif
25649
25650   ;
25651   return 0;
25652 }
25653 _ACEOF
25654 rm -f conftest.$ac_objext
25655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25656   (eval $ac_compile) 2>conftest.er1
25657   ac_status=$?
25658   grep -v '^ *+' conftest.er1 >conftest.err
25659   rm -f conftest.er1
25660   cat conftest.err >&5
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); } &&
25663          { ac_try='test -z "$ac_c_werror_flag"
25664                          || test ! -s conftest.err'
25665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666   (eval $ac_try) 2>&5
25667   ac_status=$?
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); }; } &&
25670          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25676   ac_cv_have_decl_fgets_unlocked=yes
25677 else
25678   echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25680
25681 ac_cv_have_decl_fgets_unlocked=no
25682 fi
25683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25684 fi
25685 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
25686 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
25687   if test $ac_cv_have_decl_fgets_unlocked = yes; then
25688     gt_value=1
25689   else
25690     gt_value=0
25691   fi
25692
25693 cat >>confdefs.h <<_ACEOF
25694 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
25695 _ACEOF
25696
25697
25698
25699   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
25700 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
25701 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
25702   echo $ECHO_N "(cached) $ECHO_C" >&6
25703 else
25704   cat >conftest.$ac_ext <<_ACEOF
25705 /* confdefs.h.  */
25706 _ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h.  */
25710 #include <stdio.h>
25711 int
25712 main ()
25713 {
25714
25715 #ifndef getc_unlocked
25716   char *p = (char *) getc_unlocked;
25717 #endif
25718
25719   ;
25720   return 0;
25721 }
25722 _ACEOF
25723 rm -f conftest.$ac_objext
25724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25725   (eval $ac_compile) 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } &&
25732          { ac_try='test -z "$ac_c_werror_flag"
25733                          || test ! -s conftest.err'
25734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735   (eval $ac_try) 2>&5
25736   ac_status=$?
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); }; } &&
25739          { ac_try='test -s conftest.$ac_objext'
25740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741   (eval $ac_try) 2>&5
25742   ac_status=$?
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); }; }; then
25745   ac_cv_have_decl_getc_unlocked=yes
25746 else
25747   echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25749
25750 ac_cv_have_decl_getc_unlocked=no
25751 fi
25752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25753 fi
25754 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
25755 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
25756   if test $ac_cv_have_decl_getc_unlocked = yes; then
25757     gt_value=1
25758   else
25759     gt_value=0
25760   fi
25761
25762 cat >>confdefs.h <<_ACEOF
25763 #define HAVE_DECL_GETC_UNLOCKED $gt_value
25764 _ACEOF
25765
25766
25767
25768   case $gt_cv_func_printf_posix in
25769     *yes) HAVE_POSIX_PRINTF=1 ;;
25770     *) HAVE_POSIX_PRINTF=0 ;;
25771   esac
25772
25773   if test "$ac_cv_func_asprintf" = yes; then
25774     HAVE_ASPRINTF=1
25775   else
25776     HAVE_ASPRINTF=0
25777   fi
25778
25779   if test "$ac_cv_func_snprintf" = yes; then
25780     HAVE_SNPRINTF=1
25781   else
25782     HAVE_SNPRINTF=0
25783   fi
25784
25785   if test "$ac_cv_func_wprintf" = yes; then
25786     HAVE_WPRINTF=1
25787   else
25788     HAVE_WPRINTF=0
25789   fi
25790
25791
25792
25793
25794
25795
25796
25797           am_save_CPPFLAGS="$CPPFLAGS"
25798
25799   for element in $INCICONV; do
25800     haveit=
25801     for x in $CPPFLAGS; do
25802
25803   acl_save_prefix="$prefix"
25804   prefix="$acl_final_prefix"
25805   acl_save_exec_prefix="$exec_prefix"
25806   exec_prefix="$acl_final_exec_prefix"
25807   eval x=\"$x\"
25808   exec_prefix="$acl_save_exec_prefix"
25809   prefix="$acl_save_prefix"
25810
25811       if test "X$x" = "X$element"; then
25812         haveit=yes
25813         break
25814       fi
25815     done
25816     if test -z "$haveit"; then
25817       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25818     fi
25819   done
25820
25821
25822   echo "$as_me:$LINENO: checking for iconv" >&5
25823 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25824 if test "${am_cv_func_iconv+set}" = set; then
25825   echo $ECHO_N "(cached) $ECHO_C" >&6
25826 else
25827
25828     am_cv_func_iconv="no, consider installing GNU libiconv"
25829     am_cv_lib_iconv=no
25830     cat >conftest.$ac_ext <<_ACEOF
25831 /* confdefs.h.  */
25832 _ACEOF
25833 cat confdefs.h >>conftest.$ac_ext
25834 cat >>conftest.$ac_ext <<_ACEOF
25835 /* end confdefs.h.  */
25836 #include <stdlib.h>
25837 #include <iconv.h>
25838 int
25839 main ()
25840 {
25841 iconv_t cd = iconv_open("","");
25842        iconv(cd,NULL,NULL,NULL,NULL);
25843        iconv_close(cd);
25844   ;
25845   return 0;
25846 }
25847 _ACEOF
25848 rm -f conftest.$ac_objext conftest$ac_exeext
25849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25850   (eval $ac_link) 2>conftest.er1
25851   ac_status=$?
25852   grep -v '^ *+' conftest.er1 >conftest.err
25853   rm -f conftest.er1
25854   cat conftest.err >&5
25855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856   (exit $ac_status); } &&
25857          { ac_try='test -z "$ac_c_werror_flag"
25858                          || test ! -s conftest.err'
25859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860   (eval $ac_try) 2>&5
25861   ac_status=$?
25862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863   (exit $ac_status); }; } &&
25864          { ac_try='test -s conftest$ac_exeext'
25865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866   (eval $ac_try) 2>&5
25867   ac_status=$?
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); }; }; then
25870   am_cv_func_iconv=yes
25871 else
25872   echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25874
25875 fi
25876 rm -f conftest.err conftest.$ac_objext \
25877       conftest$ac_exeext conftest.$ac_ext
25878     if test "$am_cv_func_iconv" != yes; then
25879       am_save_LIBS="$LIBS"
25880       LIBS="$LIBS $LIBICONV"
25881       cat >conftest.$ac_ext <<_ACEOF
25882 /* confdefs.h.  */
25883 _ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h.  */
25887 #include <stdlib.h>
25888 #include <iconv.h>
25889 int
25890 main ()
25891 {
25892 iconv_t cd = iconv_open("","");
25893          iconv(cd,NULL,NULL,NULL,NULL);
25894          iconv_close(cd);
25895   ;
25896   return 0;
25897 }
25898 _ACEOF
25899 rm -f conftest.$ac_objext conftest$ac_exeext
25900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25901   (eval $ac_link) 2>conftest.er1
25902   ac_status=$?
25903   grep -v '^ *+' conftest.er1 >conftest.err
25904   rm -f conftest.er1
25905   cat conftest.err >&5
25906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907   (exit $ac_status); } &&
25908          { ac_try='test -z "$ac_c_werror_flag"
25909                          || test ! -s conftest.err'
25910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25911   (eval $ac_try) 2>&5
25912   ac_status=$?
25913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914   (exit $ac_status); }; } &&
25915          { ac_try='test -s conftest$ac_exeext'
25916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25917   (eval $ac_try) 2>&5
25918   ac_status=$?
25919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920   (exit $ac_status); }; }; then
25921   am_cv_lib_iconv=yes
25922         am_cv_func_iconv=yes
25923 else
25924   echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25926
25927 fi
25928 rm -f conftest.err conftest.$ac_objext \
25929       conftest$ac_exeext conftest.$ac_ext
25930       LIBS="$am_save_LIBS"
25931     fi
25932
25933 fi
25934 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25935 echo "${ECHO_T}$am_cv_func_iconv" >&6
25936   if test "$am_cv_func_iconv" = yes; then
25937
25938 cat >>confdefs.h <<\_ACEOF
25939 #define HAVE_ICONV 1
25940 _ACEOF
25941
25942   fi
25943   if test "$am_cv_lib_iconv" = yes; then
25944     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
25945 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
25946     echo "$as_me:$LINENO: result: $LIBICONV" >&5
25947 echo "${ECHO_T}$LIBICONV" >&6
25948   else
25949             CPPFLAGS="$am_save_CPPFLAGS"
25950     LIBICONV=
25951     LTLIBICONV=
25952   fi
25953
25954
25955
25956   if test "$am_cv_func_iconv" = yes; then
25957     echo "$as_me:$LINENO: checking for iconv declaration" >&5
25958 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25959     if test "${am_cv_proto_iconv+set}" = set; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962
25963       cat >conftest.$ac_ext <<_ACEOF
25964 /* confdefs.h.  */
25965 _ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h.  */
25969
25970 #include <stdlib.h>
25971 #include <iconv.h>
25972 extern
25973 #ifdef __cplusplus
25974 "C"
25975 #endif
25976 #if defined(__STDC__) || defined(__cplusplus)
25977 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25978 #else
25979 size_t iconv();
25980 #endif
25981
25982 int
25983 main ()
25984 {
25985
25986   ;
25987   return 0;
25988 }
25989 _ACEOF
25990 rm -f conftest.$ac_objext
25991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25992   (eval $ac_compile) 2>conftest.er1
25993   ac_status=$?
25994   grep -v '^ *+' conftest.er1 >conftest.err
25995   rm -f conftest.er1
25996   cat conftest.err >&5
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); } &&
25999          { ac_try='test -z "$ac_c_werror_flag"
26000                          || test ! -s conftest.err'
26001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26002   (eval $ac_try) 2>&5
26003   ac_status=$?
26004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005   (exit $ac_status); }; } &&
26006          { ac_try='test -s conftest.$ac_objext'
26007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008   (eval $ac_try) 2>&5
26009   ac_status=$?
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); }; }; then
26012   am_cv_proto_iconv_arg1=""
26013 else
26014   echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26016
26017 am_cv_proto_iconv_arg1="const"
26018 fi
26019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26020       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
26021 fi
26022
26023     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
26024     echo "$as_me:$LINENO: result: ${ac_t:-
26025          }$am_cv_proto_iconv" >&5
26026 echo "${ECHO_T}${ac_t:-
26027          }$am_cv_proto_iconv" >&6
26028
26029 cat >>confdefs.h <<_ACEOF
26030 #define ICONV_CONST $am_cv_proto_iconv_arg1
26031 _ACEOF
26032
26033   fi
26034
26035
26036   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
26037 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
26038 if test "${am_cv_langinfo_codeset+set}" = set; then
26039   echo $ECHO_N "(cached) $ECHO_C" >&6
26040 else
26041   cat >conftest.$ac_ext <<_ACEOF
26042 /* confdefs.h.  */
26043 _ACEOF
26044 cat confdefs.h >>conftest.$ac_ext
26045 cat >>conftest.$ac_ext <<_ACEOF
26046 /* end confdefs.h.  */
26047 #include <langinfo.h>
26048 int
26049 main ()
26050 {
26051 char* cs = nl_langinfo(CODESET);
26052   ;
26053   return 0;
26054 }
26055 _ACEOF
26056 rm -f conftest.$ac_objext conftest$ac_exeext
26057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26058   (eval $ac_link) 2>conftest.er1
26059   ac_status=$?
26060   grep -v '^ *+' conftest.er1 >conftest.err
26061   rm -f conftest.er1
26062   cat conftest.err >&5
26063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); } &&
26065          { ac_try='test -z "$ac_c_werror_flag"
26066                          || test ! -s conftest.err'
26067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068   (eval $ac_try) 2>&5
26069   ac_status=$?
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); }; } &&
26072          { ac_try='test -s conftest$ac_exeext'
26073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074   (eval $ac_try) 2>&5
26075   ac_status=$?
26076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077   (exit $ac_status); }; }; then
26078   am_cv_langinfo_codeset=yes
26079 else
26080   echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26082
26083 am_cv_langinfo_codeset=no
26084 fi
26085 rm -f conftest.err conftest.$ac_objext \
26086       conftest$ac_exeext conftest.$ac_ext
26087
26088 fi
26089 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
26090 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
26091   if test $am_cv_langinfo_codeset = yes; then
26092
26093 cat >>confdefs.h <<\_ACEOF
26094 #define HAVE_LANGINFO_CODESET 1
26095 _ACEOF
26096
26097   fi
26098
26099   if test $ac_cv_header_locale_h = yes; then
26100
26101   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26102 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26103 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
26104   echo $ECHO_N "(cached) $ECHO_C" >&6
26105 else
26106   cat >conftest.$ac_ext <<_ACEOF
26107 /* confdefs.h.  */
26108 _ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h.  */
26112 #include <locale.h>
26113 int
26114 main ()
26115 {
26116 return LC_MESSAGES
26117   ;
26118   return 0;
26119 }
26120 _ACEOF
26121 rm -f conftest.$ac_objext conftest$ac_exeext
26122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26123   (eval $ac_link) 2>conftest.er1
26124   ac_status=$?
26125   grep -v '^ *+' conftest.er1 >conftest.err
26126   rm -f conftest.er1
26127   cat conftest.err >&5
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); } &&
26130          { ac_try='test -z "$ac_c_werror_flag"
26131                          || test ! -s conftest.err'
26132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133   (eval $ac_try) 2>&5
26134   ac_status=$?
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); }; } &&
26137          { ac_try='test -s conftest$ac_exeext'
26138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139   (eval $ac_try) 2>&5
26140   ac_status=$?
26141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142   (exit $ac_status); }; }; then
26143   gt_cv_val_LC_MESSAGES=yes
26144 else
26145   echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26147
26148 gt_cv_val_LC_MESSAGES=no
26149 fi
26150 rm -f conftest.err conftest.$ac_objext \
26151       conftest$ac_exeext conftest.$ac_ext
26152 fi
26153 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
26154 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
26155   if test $gt_cv_val_LC_MESSAGES = yes; then
26156
26157 cat >>confdefs.h <<\_ACEOF
26158 #define HAVE_LC_MESSAGES 1
26159 _ACEOF
26160
26161   fi
26162
26163   fi
26164
26165   if test -n "$INTL_MACOSX_LIBS"; then
26166     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26167   fi
26168
26169                       for ac_prog in bison
26170 do
26171   # Extract the first word of "$ac_prog", so it can be a program name with args.
26172 set dummy $ac_prog; ac_word=$2
26173 echo "$as_me:$LINENO: checking for $ac_word" >&5
26174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26175 if test "${ac_cv_prog_INTLBISON+set}" = set; then
26176   echo $ECHO_N "(cached) $ECHO_C" >&6
26177 else
26178   if test -n "$INTLBISON"; then
26179   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
26180 else
26181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26182 for as_dir in $PATH
26183 do
26184   IFS=$as_save_IFS
26185   test -z "$as_dir" && as_dir=.
26186   for ac_exec_ext in '' $ac_executable_extensions; do
26187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26188     ac_cv_prog_INTLBISON="$ac_prog"
26189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26190     break 2
26191   fi
26192 done
26193 done
26194
26195 fi
26196 fi
26197 INTLBISON=$ac_cv_prog_INTLBISON
26198 if test -n "$INTLBISON"; then
26199   echo "$as_me:$LINENO: result: $INTLBISON" >&5
26200 echo "${ECHO_T}$INTLBISON" >&6
26201 else
26202   echo "$as_me:$LINENO: result: no" >&5
26203 echo "${ECHO_T}no" >&6
26204 fi
26205
26206   test -n "$INTLBISON" && break
26207 done
26208
26209   if test -z "$INTLBISON"; then
26210     ac_verc_fail=yes
26211   else
26212         echo "$as_me:$LINENO: checking version of bison" >&5
26213 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
26214     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
26215     case $ac_prog_version in
26216       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
26217       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
26218          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
26219       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
26220     esac
26221     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
26222 echo "${ECHO_T}$ac_prog_version" >&6
26223   fi
26224   if test $ac_verc_fail = yes; then
26225     INTLBISON=:
26226   fi
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26244 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
26245 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26246   echo $ECHO_N "(cached) $ECHO_C" >&6
26247 else
26248   gt_save_CPPFLAGS="$CPPFLAGS"
26249      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26250      gt_save_LIBS="$LIBS"
26251      LIBS="$LIBS -framework CoreFoundation"
26252      cat >conftest.$ac_ext <<_ACEOF
26253 /* confdefs.h.  */
26254 _ACEOF
26255 cat confdefs.h >>conftest.$ac_ext
26256 cat >>conftest.$ac_ext <<_ACEOF
26257 /* end confdefs.h.  */
26258 #include <CFPreferences.h>
26259 int
26260 main ()
26261 {
26262 CFPreferencesCopyAppValue(NULL, NULL)
26263   ;
26264   return 0;
26265 }
26266 _ACEOF
26267 rm -f conftest.$ac_objext conftest$ac_exeext
26268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26269   (eval $ac_link) 2>conftest.er1
26270   ac_status=$?
26271   grep -v '^ *+' conftest.er1 >conftest.err
26272   rm -f conftest.er1
26273   cat conftest.err >&5
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); } &&
26276          { ac_try='test -z "$ac_c_werror_flag"
26277                          || test ! -s conftest.err'
26278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26279   (eval $ac_try) 2>&5
26280   ac_status=$?
26281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282   (exit $ac_status); }; } &&
26283          { ac_try='test -s conftest$ac_exeext'
26284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285   (eval $ac_try) 2>&5
26286   ac_status=$?
26287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288   (exit $ac_status); }; }; then
26289   gt_cv_func_CFPreferencesCopyAppValue=yes
26290 else
26291   echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.$ac_ext >&5
26293
26294 gt_cv_func_CFPreferencesCopyAppValue=no
26295 fi
26296 rm -f conftest.err conftest.$ac_objext \
26297       conftest$ac_exeext conftest.$ac_ext
26298      CPPFLAGS="$gt_save_CPPFLAGS"
26299      LIBS="$gt_save_LIBS"
26300 fi
26301 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26302 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
26303   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26304
26305 cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26307 _ACEOF
26308
26309   fi
26310     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26311 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
26312 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26313   echo $ECHO_N "(cached) $ECHO_C" >&6
26314 else
26315   gt_save_CPPFLAGS="$CPPFLAGS"
26316      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26317      gt_save_LIBS="$LIBS"
26318      LIBS="$LIBS -framework CoreFoundation"
26319      cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h.  */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h.  */
26325 #include <CFLocale.h>
26326 int
26327 main ()
26328 {
26329 CFLocaleCopyCurrent();
26330   ;
26331   return 0;
26332 }
26333 _ACEOF
26334 rm -f conftest.$ac_objext conftest$ac_exeext
26335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26336   (eval $ac_link) 2>conftest.er1
26337   ac_status=$?
26338   grep -v '^ *+' conftest.er1 >conftest.err
26339   rm -f conftest.er1
26340   cat conftest.err >&5
26341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342   (exit $ac_status); } &&
26343          { ac_try='test -z "$ac_c_werror_flag"
26344                          || test ! -s conftest.err'
26345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346   (eval $ac_try) 2>&5
26347   ac_status=$?
26348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349   (exit $ac_status); }; } &&
26350          { ac_try='test -s conftest$ac_exeext'
26351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352   (eval $ac_try) 2>&5
26353   ac_status=$?
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); }; }; then
26356   gt_cv_func_CFLocaleCopyCurrent=yes
26357 else
26358   echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26360
26361 gt_cv_func_CFLocaleCopyCurrent=no
26362 fi
26363 rm -f conftest.err conftest.$ac_objext \
26364       conftest$ac_exeext conftest.$ac_ext
26365      CPPFLAGS="$gt_save_CPPFLAGS"
26366      LIBS="$gt_save_LIBS"
26367 fi
26368 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26369 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
26370   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26371
26372 cat >>confdefs.h <<\_ACEOF
26373 #define HAVE_CFLOCALECOPYCURRENT 1
26374 _ACEOF
26375
26376   fi
26377   INTL_MACOSX_LIBS=
26378   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26379     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26380   fi
26381
26382
26383
26384
26385   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
26386 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
26387     # Check whether --enable-nls or --disable-nls was given.
26388 if test "${enable_nls+set}" = set; then
26389   enableval="$enable_nls"
26390   USE_NLS=$enableval
26391 else
26392   USE_NLS=yes
26393 fi;
26394   echo "$as_me:$LINENO: result: $USE_NLS" >&5
26395 echo "${ECHO_T}$USE_NLS" >&6
26396
26397
26398
26399
26400     BUILD_INCLUDED_LIBINTL=no
26401     USE_INCLUDED_LIBINTL=no
26402
26403   LIBINTL=
26404   LTLIBINTL=
26405   POSUB=
26406
26407     if test "$USE_NLS" = "yes"; then
26408     gt_use_preinstalled_gnugettext=no
26409
26410       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
26411 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
26412
26413 # Check whether --with-included-gettext or --without-included-gettext was given.
26414 if test "${with_included_gettext+set}" = set; then
26415   withval="$with_included_gettext"
26416   nls_cv_force_use_gnu_gettext=$withval
26417 else
26418   nls_cv_force_use_gnu_gettext=no
26419 fi;
26420       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
26421 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
26422
26423       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
26424       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
26425
26426
26427
26428
26429
26430
26431         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26432 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
26433 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26434   echo $ECHO_N "(cached) $ECHO_C" >&6
26435 else
26436   cat >conftest.$ac_ext <<_ACEOF
26437 /* confdefs.h.  */
26438 _ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h.  */
26442 #include <libintl.h>
26443 extern int _nl_msg_cat_cntr;
26444 extern int *_nl_domain_bindings;
26445 int
26446 main ()
26447 {
26448 bindtextdomain ("", "");
26449 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
26450   ;
26451   return 0;
26452 }
26453 _ACEOF
26454 rm -f conftest.$ac_objext conftest$ac_exeext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26456   (eval $ac_link) 2>conftest.er1
26457   ac_status=$?
26458   grep -v '^ *+' conftest.er1 >conftest.err
26459   rm -f conftest.er1
26460   cat conftest.err >&5
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); } &&
26463          { ac_try='test -z "$ac_c_werror_flag"
26464                          || test ! -s conftest.err'
26465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466   (eval $ac_try) 2>&5
26467   ac_status=$?
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); }; } &&
26470          { ac_try='test -s conftest$ac_exeext'
26471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472   (eval $ac_try) 2>&5
26473   ac_status=$?
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); }; }; then
26476   gt_cv_func_gnugettext1_libc=yes
26477 else
26478   echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481 gt_cv_func_gnugettext1_libc=no
26482 fi
26483 rm -f conftest.err conftest.$ac_objext \
26484       conftest$ac_exeext conftest.$ac_ext
26485 fi
26486 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
26487 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
26488
26489         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
26490
26491
26492
26493     use_additional=yes
26494
26495   acl_save_prefix="$prefix"
26496   prefix="$acl_final_prefix"
26497   acl_save_exec_prefix="$exec_prefix"
26498   exec_prefix="$acl_final_exec_prefix"
26499
26500     eval additional_includedir=\"$includedir\"
26501     eval additional_libdir=\"$libdir\"
26502
26503   exec_prefix="$acl_save_exec_prefix"
26504   prefix="$acl_save_prefix"
26505
26506
26507 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
26508 if test "${with_libintl_prefix+set}" = set; then
26509   withval="$with_libintl_prefix"
26510
26511     if test "X$withval" = "Xno"; then
26512       use_additional=no
26513     else
26514       if test "X$withval" = "X"; then
26515
26516   acl_save_prefix="$prefix"
26517   prefix="$acl_final_prefix"
26518   acl_save_exec_prefix="$exec_prefix"
26519   exec_prefix="$acl_final_exec_prefix"
26520
26521           eval additional_includedir=\"$includedir\"
26522           eval additional_libdir=\"$libdir\"
26523
26524   exec_prefix="$acl_save_exec_prefix"
26525   prefix="$acl_save_prefix"
26526
26527       else
26528         additional_includedir="$withval/include"
26529         additional_libdir="$withval/lib"
26530       fi
26531     fi
26532
26533 fi;
26534       LIBINTL=
26535   LTLIBINTL=
26536   INCINTL=
26537   rpathdirs=
26538   ltrpathdirs=
26539   names_already_handled=
26540   names_next_round='intl '
26541   while test -n "$names_next_round"; do
26542     names_this_round="$names_next_round"
26543     names_next_round=
26544     for name in $names_this_round; do
26545       already_handled=
26546       for n in $names_already_handled; do
26547         if test "$n" = "$name"; then
26548           already_handled=yes
26549           break
26550         fi
26551       done
26552       if test -z "$already_handled"; then
26553         names_already_handled="$names_already_handled $name"
26554                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26555         eval value=\"\$HAVE_LIB$uppername\"
26556         if test -n "$value"; then
26557           if test "$value" = yes; then
26558             eval value=\"\$LIB$uppername\"
26559             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26560             eval value=\"\$LTLIB$uppername\"
26561             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26562           else
26563                                     :
26564           fi
26565         else
26566                               found_dir=
26567           found_la=
26568           found_so=
26569           found_a=
26570           if test $use_additional = yes; then
26571             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26572               found_dir="$additional_libdir"
26573               found_so="$additional_libdir/lib$name.$shlibext"
26574               if test -f "$additional_libdir/lib$name.la"; then
26575                 found_la="$additional_libdir/lib$name.la"
26576               fi
26577             else
26578               if test -f "$additional_libdir/lib$name.$libext"; then
26579                 found_dir="$additional_libdir"
26580                 found_a="$additional_libdir/lib$name.$libext"
26581                 if test -f "$additional_libdir/lib$name.la"; then
26582                   found_la="$additional_libdir/lib$name.la"
26583                 fi
26584               fi
26585             fi
26586           fi
26587           if test "X$found_dir" = "X"; then
26588             for x in $LDFLAGS $LTLIBINTL; do
26589
26590   acl_save_prefix="$prefix"
26591   prefix="$acl_final_prefix"
26592   acl_save_exec_prefix="$exec_prefix"
26593   exec_prefix="$acl_final_exec_prefix"
26594   eval x=\"$x\"
26595   exec_prefix="$acl_save_exec_prefix"
26596   prefix="$acl_save_prefix"
26597
26598               case "$x" in
26599                 -L*)
26600                   dir=`echo "X$x" | sed -e 's/^X-L//'`
26601                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26602                     found_dir="$dir"
26603                     found_so="$dir/lib$name.$shlibext"
26604                     if test -f "$dir/lib$name.la"; then
26605                       found_la="$dir/lib$name.la"
26606                     fi
26607                   else
26608                     if test -f "$dir/lib$name.$libext"; then
26609                       found_dir="$dir"
26610                       found_a="$dir/lib$name.$libext"
26611                       if test -f "$dir/lib$name.la"; then
26612                         found_la="$dir/lib$name.la"
26613                       fi
26614                     fi
26615                   fi
26616                   ;;
26617               esac
26618               if test "X$found_dir" != "X"; then
26619                 break
26620               fi
26621             done
26622           fi
26623           if test "X$found_dir" != "X"; then
26624                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26625             if test "X$found_so" != "X"; then
26626                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26627                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26628               else
26629                                                                                 haveit=
26630                 for x in $ltrpathdirs; do
26631                   if test "X$x" = "X$found_dir"; then
26632                     haveit=yes
26633                     break
26634                   fi
26635                 done
26636                 if test -z "$haveit"; then
26637                   ltrpathdirs="$ltrpathdirs $found_dir"
26638                 fi
26639                                 if test "$hardcode_direct" = yes; then
26640                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26641                 else
26642                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26643                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26644                                                             haveit=
26645                     for x in $rpathdirs; do
26646                       if test "X$x" = "X$found_dir"; then
26647                         haveit=yes
26648                         break
26649                       fi
26650                     done
26651                     if test -z "$haveit"; then
26652                       rpathdirs="$rpathdirs $found_dir"
26653                     fi
26654                   else
26655                                                                                 haveit=
26656                     for x in $LDFLAGS $LIBINTL; do
26657
26658   acl_save_prefix="$prefix"
26659   prefix="$acl_final_prefix"
26660   acl_save_exec_prefix="$exec_prefix"
26661   exec_prefix="$acl_final_exec_prefix"
26662   eval x=\"$x\"
26663   exec_prefix="$acl_save_exec_prefix"
26664   prefix="$acl_save_prefix"
26665
26666                       if test "X$x" = "X-L$found_dir"; then
26667                         haveit=yes
26668                         break
26669                       fi
26670                     done
26671                     if test -z "$haveit"; then
26672                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26673                     fi
26674                     if test "$hardcode_minus_L" != no; then
26675                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26676                     else
26677                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26678                     fi
26679                   fi
26680                 fi
26681               fi
26682             else
26683               if test "X$found_a" != "X"; then
26684                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
26685               else
26686                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26687               fi
26688             fi
26689                         additional_includedir=
26690             case "$found_dir" in
26691               */lib | */lib/)
26692                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26693                 additional_includedir="$basedir/include"
26694                 ;;
26695             esac
26696             if test "X$additional_includedir" != "X"; then
26697                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
26698                 haveit=
26699                 if test "X$additional_includedir" = "X/usr/local/include"; then
26700                   if test -n "$GCC"; then
26701                     case $host_os in
26702                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26703                     esac
26704                   fi
26705                 fi
26706                 if test -z "$haveit"; then
26707                   for x in $CPPFLAGS $INCINTL; do
26708
26709   acl_save_prefix="$prefix"
26710   prefix="$acl_final_prefix"
26711   acl_save_exec_prefix="$exec_prefix"
26712   exec_prefix="$acl_final_exec_prefix"
26713   eval x=\"$x\"
26714   exec_prefix="$acl_save_exec_prefix"
26715   prefix="$acl_save_prefix"
26716
26717                     if test "X$x" = "X-I$additional_includedir"; then
26718                       haveit=yes
26719                       break
26720                     fi
26721                   done
26722                   if test -z "$haveit"; then
26723                     if test -d "$additional_includedir"; then
26724                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26725                     fi
26726                   fi
26727                 fi
26728               fi
26729             fi
26730                         if test -n "$found_la"; then
26731                                                         save_libdir="$libdir"
26732               case "$found_la" in
26733                 */* | *\\*) . "$found_la" ;;
26734                 *) . "./$found_la" ;;
26735               esac
26736               libdir="$save_libdir"
26737                             for dep in $dependency_libs; do
26738                 case "$dep" in
26739                   -L*)
26740                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26741                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
26742                       haveit=
26743                       if test "X$additional_libdir" = "X/usr/local/lib"; then
26744                         if test -n "$GCC"; then
26745                           case $host_os in
26746                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26747                           esac
26748                         fi
26749                       fi
26750                       if test -z "$haveit"; then
26751                         haveit=
26752                         for x in $LDFLAGS $LIBINTL; do
26753
26754   acl_save_prefix="$prefix"
26755   prefix="$acl_final_prefix"
26756   acl_save_exec_prefix="$exec_prefix"
26757   exec_prefix="$acl_final_exec_prefix"
26758   eval x=\"$x\"
26759   exec_prefix="$acl_save_exec_prefix"
26760   prefix="$acl_save_prefix"
26761
26762                           if test "X$x" = "X-L$additional_libdir"; then
26763                             haveit=yes
26764                             break
26765                           fi
26766                         done
26767                         if test -z "$haveit"; then
26768                           if test -d "$additional_libdir"; then
26769                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26770                           fi
26771                         fi
26772                         haveit=
26773                         for x in $LDFLAGS $LTLIBINTL; do
26774
26775   acl_save_prefix="$prefix"
26776   prefix="$acl_final_prefix"
26777   acl_save_exec_prefix="$exec_prefix"
26778   exec_prefix="$acl_final_exec_prefix"
26779   eval x=\"$x\"
26780   exec_prefix="$acl_save_exec_prefix"
26781   prefix="$acl_save_prefix"
26782
26783                           if test "X$x" = "X-L$additional_libdir"; then
26784                             haveit=yes
26785                             break
26786                           fi
26787                         done
26788                         if test -z "$haveit"; then
26789                           if test -d "$additional_libdir"; then
26790                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26791                           fi
26792                         fi
26793                       fi
26794                     fi
26795                     ;;
26796                   -R*)
26797                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
26798                     if test "$enable_rpath" != no; then
26799                                                                   haveit=
26800                       for x in $rpathdirs; do
26801                         if test "X$x" = "X$dir"; then
26802                           haveit=yes
26803                           break
26804                         fi
26805                       done
26806                       if test -z "$haveit"; then
26807                         rpathdirs="$rpathdirs $dir"
26808                       fi
26809                                                                   haveit=
26810                       for x in $ltrpathdirs; do
26811                         if test "X$x" = "X$dir"; then
26812                           haveit=yes
26813                           break
26814                         fi
26815                       done
26816                       if test -z "$haveit"; then
26817                         ltrpathdirs="$ltrpathdirs $dir"
26818                       fi
26819                     fi
26820                     ;;
26821                   -l*)
26822                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26823                     ;;
26824                   *.la)
26825                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26826                     ;;
26827                   *)
26828                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
26829                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26830                     ;;
26831                 esac
26832               done
26833             fi
26834           else
26835                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26836             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26837           fi
26838         fi
26839       fi
26840     done
26841   done
26842   if test "X$rpathdirs" != "X"; then
26843     if test -n "$hardcode_libdir_separator"; then
26844                         alldirs=
26845       for found_dir in $rpathdirs; do
26846         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26847       done
26848             acl_save_libdir="$libdir"
26849       libdir="$alldirs"
26850       eval flag=\"$hardcode_libdir_flag_spec\"
26851       libdir="$acl_save_libdir"
26852       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26853     else
26854             for found_dir in $rpathdirs; do
26855         acl_save_libdir="$libdir"
26856         libdir="$found_dir"
26857         eval flag=\"$hardcode_libdir_flag_spec\"
26858         libdir="$acl_save_libdir"
26859         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26860       done
26861     fi
26862   fi
26863   if test "X$ltrpathdirs" != "X"; then
26864             for found_dir in $ltrpathdirs; do
26865       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26866     done
26867   fi
26868
26869           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26870 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
26871 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
26872   echo $ECHO_N "(cached) $ECHO_C" >&6
26873 else
26874   gt_save_CPPFLAGS="$CPPFLAGS"
26875             CPPFLAGS="$CPPFLAGS $INCINTL"
26876             gt_save_LIBS="$LIBS"
26877             LIBS="$LIBS $LIBINTL"
26878                         cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h.  */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h.  */
26884 #include <libintl.h>
26885 extern int _nl_msg_cat_cntr;
26886 extern
26887 #ifdef __cplusplus
26888 "C"
26889 #endif
26890 const char *_nl_expand_alias (const char *);
26891 int
26892 main ()
26893 {
26894 bindtextdomain ("", "");
26895 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26902   (eval $ac_link) 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } &&
26909          { ac_try='test -z "$ac_c_werror_flag"
26910                          || test ! -s conftest.err'
26911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26912   (eval $ac_try) 2>&5
26913   ac_status=$?
26914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915   (exit $ac_status); }; } &&
26916          { ac_try='test -s conftest$ac_exeext'
26917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918   (eval $ac_try) 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; }; then
26922   gt_cv_func_gnugettext1_libintl=yes
26923 else
26924   echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26926
26927 gt_cv_func_gnugettext1_libintl=no
26928 fi
26929 rm -f conftest.err conftest.$ac_objext \
26930       conftest$ac_exeext conftest.$ac_ext
26931                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
26932               LIBS="$LIBS $LIBICONV"
26933               cat >conftest.$ac_ext <<_ACEOF
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939 #include <libintl.h>
26940 extern int _nl_msg_cat_cntr;
26941 extern
26942 #ifdef __cplusplus
26943 "C"
26944 #endif
26945 const char *_nl_expand_alias (const char *);
26946 int
26947 main ()
26948 {
26949 bindtextdomain ("", "");
26950 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26951   ;
26952   return 0;
26953 }
26954 _ACEOF
26955 rm -f conftest.$ac_objext conftest$ac_exeext
26956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26957   (eval $ac_link) 2>conftest.er1
26958   ac_status=$?
26959   grep -v '^ *+' conftest.er1 >conftest.err
26960   rm -f conftest.er1
26961   cat conftest.err >&5
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); } &&
26964          { ac_try='test -z "$ac_c_werror_flag"
26965                          || test ! -s conftest.err'
26966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967   (eval $ac_try) 2>&5
26968   ac_status=$?
26969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970   (exit $ac_status); }; } &&
26971          { ac_try='test -s conftest$ac_exeext'
26972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973   (eval $ac_try) 2>&5
26974   ac_status=$?
26975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976   (exit $ac_status); }; }; then
26977   LIBINTL="$LIBINTL $LIBICONV"
26978                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
26979                 gt_cv_func_gnugettext1_libintl=yes
26980
26981 else
26982   echo "$as_me: failed program was:" >&5
26983 sed 's/^/| /' conftest.$ac_ext >&5
26984
26985 fi
26986 rm -f conftest.err conftest.$ac_objext \
26987       conftest$ac_exeext conftest.$ac_ext
26988             fi
26989             CPPFLAGS="$gt_save_CPPFLAGS"
26990             LIBS="$gt_save_LIBS"
26991 fi
26992 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
26993 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
26994         fi
26995
26996                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
26997            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
26998                 && test "$PACKAGE" != gettext-runtime \
26999                 && test "$PACKAGE" != gettext-tools; }; then
27000           gt_use_preinstalled_gnugettext=yes
27001         else
27002                     LIBINTL=
27003           LTLIBINTL=
27004           INCINTL=
27005         fi
27006
27007
27008         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
27009                               nls_cv_use_gnu_gettext=yes
27010         fi
27011       fi
27012
27013       if test "$nls_cv_use_gnu_gettext" = "yes"; then
27014                 BUILD_INCLUDED_LIBINTL=yes
27015         USE_INCLUDED_LIBINTL=yes
27016         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
27017         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
27018         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
27019       fi
27020
27021       CATOBJEXT=
27022       if test "$gt_use_preinstalled_gnugettext" = "yes" \
27023          || test "$nls_cv_use_gnu_gettext" = "yes"; then
27024                 CATOBJEXT=.gmo
27025       fi
27026
27027
27028     if test -n "$INTL_MACOSX_LIBS"; then
27029       if test "$gt_use_preinstalled_gnugettext" = "yes" \
27030          || test "$nls_cv_use_gnu_gettext" = "yes"; then
27031                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
27032         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
27033       fi
27034     fi
27035
27036     if test "$gt_use_preinstalled_gnugettext" = "yes" \
27037        || test "$nls_cv_use_gnu_gettext" = "yes"; then
27038
27039 cat >>confdefs.h <<\_ACEOF
27040 #define ENABLE_NLS 1
27041 _ACEOF
27042
27043     else
27044       USE_NLS=no
27045     fi
27046   fi
27047
27048   echo "$as_me:$LINENO: checking whether to use NLS" >&5
27049 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
27050   echo "$as_me:$LINENO: result: $USE_NLS" >&5
27051 echo "${ECHO_T}$USE_NLS" >&6
27052   if test "$USE_NLS" = "yes"; then
27053     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
27054 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
27055     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27056       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27057         gt_source="external libintl"
27058       else
27059         gt_source="libc"
27060       fi
27061     else
27062       gt_source="included intl directory"
27063     fi
27064     echo "$as_me:$LINENO: result: $gt_source" >&5
27065 echo "${ECHO_T}$gt_source" >&6
27066   fi
27067
27068   if test "$USE_NLS" = "yes"; then
27069
27070     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27071       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27072         echo "$as_me:$LINENO: checking how to link with libintl" >&5
27073 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
27074         echo "$as_me:$LINENO: result: $LIBINTL" >&5
27075 echo "${ECHO_T}$LIBINTL" >&6
27076
27077   for element in $INCINTL; do
27078     haveit=
27079     for x in $CPPFLAGS; do
27080
27081   acl_save_prefix="$prefix"
27082   prefix="$acl_final_prefix"
27083   acl_save_exec_prefix="$exec_prefix"
27084   exec_prefix="$acl_final_exec_prefix"
27085   eval x=\"$x\"
27086   exec_prefix="$acl_save_exec_prefix"
27087   prefix="$acl_save_prefix"
27088
27089       if test "X$x" = "X$element"; then
27090         haveit=yes
27091         break
27092       fi
27093     done
27094     if test -z "$haveit"; then
27095       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27096     fi
27097   done
27098
27099       fi
27100
27101
27102 cat >>confdefs.h <<\_ACEOF
27103 #define HAVE_GETTEXT 1
27104 _ACEOF
27105
27106
27107 cat >>confdefs.h <<\_ACEOF
27108 #define HAVE_DCGETTEXT 1
27109 _ACEOF
27110
27111     fi
27112
27113         POSUB=po
27114   fi
27115
27116
27117             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
27118       BUILD_INCLUDED_LIBINTL=yes
27119     fi
27120
27121
27122
27123
27124
27125         nls_cv_header_intl=
27126     nls_cv_header_libgt=
27127
27128         DATADIRNAME=share
27129
27130
27131         INSTOBJEXT=.mo
27132
27133
27134         GENCAT=gencat
27135
27136
27137         INTLOBJS=
27138     if test "$USE_INCLUDED_LIBINTL" = yes; then
27139       INTLOBJS="\$(GETTOBJS)"
27140     fi
27141
27142
27143         INTL_LIBTOOL_SUFFIX_PREFIX=
27144
27145
27146
27147     INTLLIBS="$LIBINTL"
27148
27149
27150
27151
27152
27153
27154
27155
27156 for ac_header in locale.h
27157 do
27158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27160   echo "$as_me:$LINENO: checking for $ac_header" >&5
27161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27163   echo $ECHO_N "(cached) $ECHO_C" >&6
27164 fi
27165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27167 else
27168   # Is the header compilable?
27169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27171 cat >conftest.$ac_ext <<_ACEOF
27172 /* confdefs.h.  */
27173 _ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h.  */
27177 $ac_includes_default
27178 #include <$ac_header>
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_header_compiler=yes
27203 else
27204   echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27206
27207 ac_header_compiler=no
27208 fi
27209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27211 echo "${ECHO_T}$ac_header_compiler" >&6
27212
27213 # Is the header present?
27214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27216 cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h.  */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h.  */
27222 #include <$ac_header>
27223 _ACEOF
27224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27226   ac_status=$?
27227   grep -v '^ *+' conftest.er1 >conftest.err
27228   rm -f conftest.er1
27229   cat conftest.err >&5
27230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231   (exit $ac_status); } >/dev/null; then
27232   if test -s conftest.err; then
27233     ac_cpp_err=$ac_c_preproc_warn_flag
27234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27235   else
27236     ac_cpp_err=
27237   fi
27238 else
27239   ac_cpp_err=yes
27240 fi
27241 if test -z "$ac_cpp_err"; then
27242   ac_header_preproc=yes
27243 else
27244   echo "$as_me: failed program was:" >&5
27245 sed 's/^/| /' conftest.$ac_ext >&5
27246
27247   ac_header_preproc=no
27248 fi
27249 rm -f conftest.err conftest.$ac_ext
27250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27251 echo "${ECHO_T}$ac_header_preproc" >&6
27252
27253 # So?  What about this header?
27254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27255   yes:no: )
27256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27260     ac_header_preproc=yes
27261     ;;
27262   no:yes:* )
27263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27265     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27266 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27267     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27269     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27270 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27273     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27275     (
27276       cat <<\_ASBOX
27277 ## ------------------------------------------ ##
27278 ## Report this to the AC_PACKAGE_NAME lists.  ##
27279 ## ------------------------------------------ ##
27280 _ASBOX
27281     ) |
27282       sed "s/^/$as_me: WARNING:     /" >&2
27283     ;;
27284 esac
27285 echo "$as_me:$LINENO: checking for $ac_header" >&5
27286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27288   echo $ECHO_N "(cached) $ECHO_C" >&6
27289 else
27290   eval "$as_ac_Header=\$ac_header_preproc"
27291 fi
27292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27294
27295 fi
27296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27297   cat >>confdefs.h <<_ACEOF
27298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27299 _ACEOF
27300
27301 fi
27302
27303 done
27304
27305
27306   ac_expanded=`(
27307     test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27308     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
27309     eval echo \""$datadir/locale"\"
27310   )`
27311
27312 cat >>confdefs.h <<_ACEOF
27313 #define SP_LOCALE_DIR "$ac_expanded"
27314 _ACEOF
27315
27316
27317 SP_MESSAGE_DOMAIN="sp$SP_LIBOSP_CUR"
27318
27319 cat >>confdefs.h <<_ACEOF
27320 #define SP_MESSAGE_DOMAIN "$SP_MESSAGE_DOMAIN"
27321 _ACEOF
27322
27323
27324
27325 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27326 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
27327 if test "${ac_cv_header_stdc+set}" = set; then
27328   echo $ECHO_N "(cached) $ECHO_C" >&6
27329 else
27330   cat >conftest.$ac_ext <<_ACEOF
27331 /* confdefs.h.  */
27332 _ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h.  */
27336 #include <stdlib.h>
27337 #include <stdarg.h>
27338 #include <string.h>
27339 #include <float.h>
27340
27341 int
27342 main ()
27343 {
27344
27345   ;
27346   return 0;
27347 }
27348 _ACEOF
27349 rm -f conftest.$ac_objext
27350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27351   (eval $ac_compile) 2>conftest.er1
27352   ac_status=$?
27353   grep -v '^ *+' conftest.er1 >conftest.err
27354   rm -f conftest.er1
27355   cat conftest.err >&5
27356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357   (exit $ac_status); } &&
27358          { ac_try='test -z "$ac_c_werror_flag"
27359                          || test ! -s conftest.err'
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); }; } &&
27365          { ac_try='test -s conftest.$ac_objext'
27366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367   (eval $ac_try) 2>&5
27368   ac_status=$?
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); }; }; then
27371   ac_cv_header_stdc=yes
27372 else
27373   echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376 ac_cv_header_stdc=no
27377 fi
27378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27379
27380 if test $ac_cv_header_stdc = yes; then
27381   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27382   cat >conftest.$ac_ext <<_ACEOF
27383 /* confdefs.h.  */
27384 _ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h.  */
27388 #include <string.h>
27389
27390 _ACEOF
27391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27392   $EGREP "memchr" >/dev/null 2>&1; then
27393   :
27394 else
27395   ac_cv_header_stdc=no
27396 fi
27397 rm -f conftest*
27398
27399 fi
27400
27401 if test $ac_cv_header_stdc = yes; then
27402   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27403   cat >conftest.$ac_ext <<_ACEOF
27404 /* confdefs.h.  */
27405 _ACEOF
27406 cat confdefs.h >>conftest.$ac_ext
27407 cat >>conftest.$ac_ext <<_ACEOF
27408 /* end confdefs.h.  */
27409 #include <stdlib.h>
27410
27411 _ACEOF
27412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27413   $EGREP "free" >/dev/null 2>&1; then
27414   :
27415 else
27416   ac_cv_header_stdc=no
27417 fi
27418 rm -f conftest*
27419
27420 fi
27421
27422 if test $ac_cv_header_stdc = yes; then
27423   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27424   if test "$cross_compiling" = yes; then
27425   :
27426 else
27427   cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433 #include <ctype.h>
27434 #if ((' ' & 0x0FF) == 0x020)
27435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27437 #else
27438 # define ISLOWER(c) \
27439                    (('a' <= (c) && (c) <= 'i') \
27440                      || ('j' <= (c) && (c) <= 'r') \
27441                      || ('s' <= (c) && (c) <= 'z'))
27442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27443 #endif
27444
27445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27446 int
27447 main ()
27448 {
27449   int i;
27450   for (i = 0; i < 256; i++)
27451     if (XOR (islower (i), ISLOWER (i))
27452         || toupper (i) != TOUPPER (i))
27453       exit(2);
27454   exit (0);
27455 }
27456 _ACEOF
27457 rm -f conftest$ac_exeext
27458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27459   (eval $ac_link) 2>&5
27460   ac_status=$?
27461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464   (eval $ac_try) 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); }; }; then
27468   :
27469 else
27470   echo "$as_me: program exited with status $ac_status" >&5
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27473
27474 ( exit $ac_status )
27475 ac_cv_header_stdc=no
27476 fi
27477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27478 fi
27479 fi
27480 fi
27481 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27482 echo "${ECHO_T}$ac_cv_header_stdc" >&6
27483 if test $ac_cv_header_stdc = yes; then
27484
27485 cat >>confdefs.h <<\_ACEOF
27486 #define STDC_HEADERS 1
27487 _ACEOF
27488
27489 fi
27490
27491
27492
27493
27494
27495 for ac_header in limits.h unistd.h io.h osfcn.h
27496 do
27497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27499   echo "$as_me:$LINENO: checking for $ac_header" >&5
27500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27502   echo $ECHO_N "(cached) $ECHO_C" >&6
27503 fi
27504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27506 else
27507   # Is the header compilable?
27508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27510 cat >conftest.$ac_ext <<_ACEOF
27511 /* confdefs.h.  */
27512 _ACEOF
27513 cat confdefs.h >>conftest.$ac_ext
27514 cat >>conftest.$ac_ext <<_ACEOF
27515 /* end confdefs.h.  */
27516 $ac_includes_default
27517 #include <$ac_header>
27518 _ACEOF
27519 rm -f conftest.$ac_objext
27520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27521   (eval $ac_compile) 2>conftest.er1
27522   ac_status=$?
27523   grep -v '^ *+' conftest.er1 >conftest.err
27524   rm -f conftest.er1
27525   cat conftest.err >&5
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); } &&
27528          { ac_try='test -z "$ac_c_werror_flag"
27529                          || test ! -s conftest.err'
27530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531   (eval $ac_try) 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; } &&
27535          { ac_try='test -s conftest.$ac_objext'
27536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537   (eval $ac_try) 2>&5
27538   ac_status=$?
27539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540   (exit $ac_status); }; }; then
27541   ac_header_compiler=yes
27542 else
27543   echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27545
27546 ac_header_compiler=no
27547 fi
27548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27550 echo "${ECHO_T}$ac_header_compiler" >&6
27551
27552 # Is the header present?
27553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27555 cat >conftest.$ac_ext <<_ACEOF
27556 /* confdefs.h.  */
27557 _ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h.  */
27561 #include <$ac_header>
27562 _ACEOF
27563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } >/dev/null; then
27571   if test -s conftest.err; then
27572     ac_cpp_err=$ac_c_preproc_warn_flag
27573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27574   else
27575     ac_cpp_err=
27576   fi
27577 else
27578   ac_cpp_err=yes
27579 fi
27580 if test -z "$ac_cpp_err"; then
27581   ac_header_preproc=yes
27582 else
27583   echo "$as_me: failed program was:" >&5
27584 sed 's/^/| /' conftest.$ac_ext >&5
27585
27586   ac_header_preproc=no
27587 fi
27588 rm -f conftest.err conftest.$ac_ext
27589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27590 echo "${ECHO_T}$ac_header_preproc" >&6
27591
27592 # So?  What about this header?
27593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27594   yes:no: )
27595     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27599     ac_header_preproc=yes
27600     ;;
27601   no:yes:* )
27602     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27604     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27605 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27606     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27608     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27609 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27612     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27614     (
27615       cat <<\_ASBOX
27616 ## ------------------------------------------ ##
27617 ## Report this to the AC_PACKAGE_NAME lists.  ##
27618 ## ------------------------------------------ ##
27619 _ASBOX
27620     ) |
27621       sed "s/^/$as_me: WARNING:     /" >&2
27622     ;;
27623 esac
27624 echo "$as_me:$LINENO: checking for $ac_header" >&5
27625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27627   echo $ECHO_N "(cached) $ECHO_C" >&6
27628 else
27629   eval "$as_ac_Header=\$ac_header_preproc"
27630 fi
27631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27633
27634 fi
27635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27636   cat >>confdefs.h <<_ACEOF
27637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27638 _ACEOF
27639
27640 fi
27641
27642 done
27643
27644 ac_ext=cc
27645 ac_cpp='$CXXCPP $CPPFLAGS'
27646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27649
27650
27651
27652
27653 for ac_header in new cassert
27654 do
27655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27657   echo "$as_me:$LINENO: checking for $ac_header" >&5
27658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27660   echo $ECHO_N "(cached) $ECHO_C" >&6
27661 fi
27662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27664 else
27665   # Is the header compilable?
27666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27668 cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674 $ac_includes_default
27675 #include <$ac_header>
27676 _ACEOF
27677 rm -f conftest.$ac_objext
27678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27679   (eval $ac_compile) 2>conftest.er1
27680   ac_status=$?
27681   grep -v '^ *+' conftest.er1 >conftest.err
27682   rm -f conftest.er1
27683   cat conftest.err >&5
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); } &&
27686          { ac_try='test -z "$ac_cxx_werror_flag"
27687                          || test ! -s conftest.err'
27688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27689   (eval $ac_try) 2>&5
27690   ac_status=$?
27691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); }; } &&
27693          { ac_try='test -s conftest.$ac_objext'
27694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27695   (eval $ac_try) 2>&5
27696   ac_status=$?
27697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698   (exit $ac_status); }; }; then
27699   ac_header_compiler=yes
27700 else
27701   echo "$as_me: failed program was:" >&5
27702 sed 's/^/| /' conftest.$ac_ext >&5
27703
27704 ac_header_compiler=no
27705 fi
27706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27708 echo "${ECHO_T}$ac_header_compiler" >&6
27709
27710 # Is the header present?
27711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27713 cat >conftest.$ac_ext <<_ACEOF
27714 /* confdefs.h.  */
27715 _ACEOF
27716 cat confdefs.h >>conftest.$ac_ext
27717 cat >>conftest.$ac_ext <<_ACEOF
27718 /* end confdefs.h.  */
27719 #include <$ac_header>
27720 _ACEOF
27721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27723   ac_status=$?
27724   grep -v '^ *+' conftest.er1 >conftest.err
27725   rm -f conftest.er1
27726   cat conftest.err >&5
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); } >/dev/null; then
27729   if test -s conftest.err; then
27730     ac_cpp_err=$ac_cxx_preproc_warn_flag
27731     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27732   else
27733     ac_cpp_err=
27734   fi
27735 else
27736   ac_cpp_err=yes
27737 fi
27738 if test -z "$ac_cpp_err"; then
27739   ac_header_preproc=yes
27740 else
27741   echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27743
27744   ac_header_preproc=no
27745 fi
27746 rm -f conftest.err conftest.$ac_ext
27747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27748 echo "${ECHO_T}$ac_header_preproc" >&6
27749
27750 # So?  What about this header?
27751 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27752   yes:no: )
27753     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27757     ac_header_preproc=yes
27758     ;;
27759   no:yes:* )
27760     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27762     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27763 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27764     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27766     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27767 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27770     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27772     (
27773       cat <<\_ASBOX
27774 ## ------------------------------------------ ##
27775 ## Report this to the AC_PACKAGE_NAME lists.  ##
27776 ## ------------------------------------------ ##
27777 _ASBOX
27778     ) |
27779       sed "s/^/$as_me: WARNING:     /" >&2
27780     ;;
27781 esac
27782 echo "$as_me:$LINENO: checking for $ac_header" >&5
27783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27785   echo $ECHO_N "(cached) $ECHO_C" >&6
27786 else
27787   eval "$as_ac_Header=\$ac_header_preproc"
27788 fi
27789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27791
27792 fi
27793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27794   cat >>confdefs.h <<_ACEOF
27795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27796 _ACEOF
27797
27798 fi
27799
27800 done
27801
27802
27803 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27804 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27805 if test "${ac_cv_c_bigendian+set}" = set; then
27806   echo $ECHO_N "(cached) $ECHO_C" >&6
27807 else
27808   # See if sys/param.h defines the BYTE_ORDER macro.
27809 cat >conftest.$ac_ext <<_ACEOF
27810 /* confdefs.h.  */
27811 _ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h.  */
27815 #include <sys/types.h>
27816 #include <sys/param.h>
27817
27818 int
27819 main ()
27820 {
27821 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27822  bogus endian macros
27823 #endif
27824
27825   ;
27826   return 0;
27827 }
27828 _ACEOF
27829 rm -f conftest.$ac_objext
27830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27831   (eval $ac_compile) 2>conftest.er1
27832   ac_status=$?
27833   grep -v '^ *+' conftest.er1 >conftest.err
27834   rm -f conftest.er1
27835   cat conftest.err >&5
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); } &&
27838          { ac_try='test -z "$ac_cxx_werror_flag"
27839                          || test ! -s conftest.err'
27840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27841   (eval $ac_try) 2>&5
27842   ac_status=$?
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); }; } &&
27845          { ac_try='test -s conftest.$ac_objext'
27846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27847   (eval $ac_try) 2>&5
27848   ac_status=$?
27849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850   (exit $ac_status); }; }; then
27851   # It does; now see whether it defined to BIG_ENDIAN or not.
27852 cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h.  */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h.  */
27858 #include <sys/types.h>
27859 #include <sys/param.h>
27860
27861 int
27862 main ()
27863 {
27864 #if BYTE_ORDER != BIG_ENDIAN
27865  not big endian
27866 #endif
27867
27868   ;
27869   return 0;
27870 }
27871 _ACEOF
27872 rm -f conftest.$ac_objext
27873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27874   (eval $ac_compile) 2>conftest.er1
27875   ac_status=$?
27876   grep -v '^ *+' conftest.er1 >conftest.err
27877   rm -f conftest.er1
27878   cat conftest.err >&5
27879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880   (exit $ac_status); } &&
27881          { ac_try='test -z "$ac_cxx_werror_flag"
27882                          || test ! -s conftest.err'
27883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27884   (eval $ac_try) 2>&5
27885   ac_status=$?
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); }; } &&
27888          { ac_try='test -s conftest.$ac_objext'
27889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890   (eval $ac_try) 2>&5
27891   ac_status=$?
27892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); }; }; then
27894   ac_cv_c_bigendian=yes
27895 else
27896   echo "$as_me: failed program was:" >&5
27897 sed 's/^/| /' conftest.$ac_ext >&5
27898
27899 ac_cv_c_bigendian=no
27900 fi
27901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27902 else
27903   echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27905
27906 # It does not; compile a test program.
27907 if test "$cross_compiling" = yes; then
27908   # try to guess the endianness by grepping values into an object file
27909   ac_cv_c_bigendian=unknown
27910   cat >conftest.$ac_ext <<_ACEOF
27911 /* confdefs.h.  */
27912 _ACEOF
27913 cat confdefs.h >>conftest.$ac_ext
27914 cat >>conftest.$ac_ext <<_ACEOF
27915 /* end confdefs.h.  */
27916 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27917 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27918 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27919 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27920 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27921 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27922 int
27923 main ()
27924 {
27925  _ascii (); _ebcdic ();
27926   ;
27927   return 0;
27928 }
27929 _ACEOF
27930 rm -f conftest.$ac_objext
27931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27932   (eval $ac_compile) 2>conftest.er1
27933   ac_status=$?
27934   grep -v '^ *+' conftest.er1 >conftest.err
27935   rm -f conftest.er1
27936   cat conftest.err >&5
27937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938   (exit $ac_status); } &&
27939          { ac_try='test -z "$ac_cxx_werror_flag"
27940                          || test ! -s conftest.err'
27941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27942   (eval $ac_try) 2>&5
27943   ac_status=$?
27944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945   (exit $ac_status); }; } &&
27946          { ac_try='test -s conftest.$ac_objext'
27947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948   (eval $ac_try) 2>&5
27949   ac_status=$?
27950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951   (exit $ac_status); }; }; then
27952   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
27953   ac_cv_c_bigendian=yes
27954 fi
27955 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27956   if test "$ac_cv_c_bigendian" = unknown; then
27957     ac_cv_c_bigendian=no
27958   else
27959     # finding both strings is unlikely to happen, but who knows?
27960     ac_cv_c_bigendian=unknown
27961   fi
27962 fi
27963 else
27964   echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27966
27967 fi
27968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27969 else
27970   cat >conftest.$ac_ext <<_ACEOF
27971 /* confdefs.h.  */
27972 _ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h.  */
27976 int
27977 main ()
27978 {
27979   /* Are we little or big endian?  From Harbison&Steele.  */
27980   union
27981   {
27982     long l;
27983     char c[sizeof (long)];
27984   } u;
27985   u.l = 1;
27986   exit (u.c[sizeof (long) - 1] == 1);
27987 }
27988 _ACEOF
27989 rm -f conftest$ac_exeext
27990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27991   (eval $ac_link) 2>&5
27992   ac_status=$?
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996   (eval $ac_try) 2>&5
27997   ac_status=$?
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); }; }; then
28000   ac_cv_c_bigendian=no
28001 else
28002   echo "$as_me: program exited with status $ac_status" >&5
28003 echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28005
28006 ( exit $ac_status )
28007 ac_cv_c_bigendian=yes
28008 fi
28009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28010 fi
28011 fi
28012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28013 fi
28014 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28015 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
28016 case $ac_cv_c_bigendian in
28017   yes)
28018
28019 cat >>confdefs.h <<\_ACEOF
28020 #define WORDS_BIGENDIAN 1
28021 _ACEOF
28022  ;;
28023   no)
28024      ;;
28025   *)
28026     { { echo "$as_me:$LINENO: error: unknown endianness
28027 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28028 echo "$as_me: error: unknown endianness
28029 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28030    { (exit 1); exit 1; }; } ;;
28031 esac
28032
28033 echo "$as_me:$LINENO: checking for size_t" >&5
28034 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28035 if test "${ac_cv_type_size_t+set}" = set; then
28036   echo $ECHO_N "(cached) $ECHO_C" >&6
28037 else
28038   cat >conftest.$ac_ext <<_ACEOF
28039 /* confdefs.h.  */
28040 _ACEOF
28041 cat confdefs.h >>conftest.$ac_ext
28042 cat >>conftest.$ac_ext <<_ACEOF
28043 /* end confdefs.h.  */
28044 $ac_includes_default
28045 int
28046 main ()
28047 {
28048 if ((size_t *) 0)
28049   return 0;
28050 if (sizeof (size_t))
28051   return 0;
28052   ;
28053   return 0;
28054 }
28055 _ACEOF
28056 rm -f conftest.$ac_objext
28057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28058   (eval $ac_compile) 2>conftest.er1
28059   ac_status=$?
28060   grep -v '^ *+' conftest.er1 >conftest.err
28061   rm -f conftest.er1
28062   cat conftest.err >&5
28063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064   (exit $ac_status); } &&
28065          { ac_try='test -z "$ac_cxx_werror_flag"
28066                          || test ! -s conftest.err'
28067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28068   (eval $ac_try) 2>&5
28069   ac_status=$?
28070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071   (exit $ac_status); }; } &&
28072          { ac_try='test -s conftest.$ac_objext'
28073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28074   (eval $ac_try) 2>&5
28075   ac_status=$?
28076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); }; }; then
28078   ac_cv_type_size_t=yes
28079 else
28080   echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28082
28083 ac_cv_type_size_t=no
28084 fi
28085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28086 fi
28087 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28088 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28089 if test $ac_cv_type_size_t = yes; then
28090   :
28091 else
28092
28093 cat >>confdefs.h <<_ACEOF
28094 #define size_t unsigned
28095 _ACEOF
28096
28097 fi
28098
28099
28100 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
28101 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
28102 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
28103   echo $ECHO_N "(cached) $ECHO_C" >&6
28104 else
28105   cat >conftest.$ac_ext <<_ACEOF
28106 /* confdefs.h.  */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h.  */
28111 $ac_includes_default
28112 int
28113 main ()
28114 {
28115 static struct stat ac_aggr;
28116 if (ac_aggr.st_blksize)
28117 return 0;
28118   ;
28119   return 0;
28120 }
28121 _ACEOF
28122 rm -f conftest.$ac_objext
28123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28124   (eval $ac_compile) 2>conftest.er1
28125   ac_status=$?
28126   grep -v '^ *+' conftest.er1 >conftest.err
28127   rm -f conftest.er1
28128   cat conftest.err >&5
28129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130   (exit $ac_status); } &&
28131          { ac_try='test -z "$ac_cxx_werror_flag"
28132                          || test ! -s conftest.err'
28133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134   (eval $ac_try) 2>&5
28135   ac_status=$?
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); }; } &&
28138          { ac_try='test -s conftest.$ac_objext'
28139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140   (eval $ac_try) 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; }; then
28144   ac_cv_member_struct_stat_st_blksize=yes
28145 else
28146   echo "$as_me: failed program was:" >&5
28147 sed 's/^/| /' conftest.$ac_ext >&5
28148
28149 cat >conftest.$ac_ext <<_ACEOF
28150 /* confdefs.h.  */
28151 _ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h.  */
28155 $ac_includes_default
28156 int
28157 main ()
28158 {
28159 static struct stat ac_aggr;
28160 if (sizeof ac_aggr.st_blksize)
28161 return 0;
28162   ;
28163   return 0;
28164 }
28165 _ACEOF
28166 rm -f conftest.$ac_objext
28167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28168   (eval $ac_compile) 2>conftest.er1
28169   ac_status=$?
28170   grep -v '^ *+' conftest.er1 >conftest.err
28171   rm -f conftest.er1
28172   cat conftest.err >&5
28173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); } &&
28175          { ac_try='test -z "$ac_cxx_werror_flag"
28176                          || test ! -s conftest.err'
28177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28178   (eval $ac_try) 2>&5
28179   ac_status=$?
28180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181   (exit $ac_status); }; } &&
28182          { ac_try='test -s conftest.$ac_objext'
28183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28184   (eval $ac_try) 2>&5
28185   ac_status=$?
28186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187   (exit $ac_status); }; }; then
28188   ac_cv_member_struct_stat_st_blksize=yes
28189 else
28190   echo "$as_me: failed program was:" >&5
28191 sed 's/^/| /' conftest.$ac_ext >&5
28192
28193 ac_cv_member_struct_stat_st_blksize=no
28194 fi
28195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28196 fi
28197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28198 fi
28199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
28200 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
28201 if test $ac_cv_member_struct_stat_st_blksize = yes; then
28202
28203 cat >>confdefs.h <<_ACEOF
28204 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
28205 _ACEOF
28206
28207
28208 cat >>confdefs.h <<\_ACEOF
28209 #define HAVE_ST_BLKSIZE 1
28210 _ACEOF
28211
28212 fi
28213
28214
28215 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
28216 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
28217 if test "${ac_cv_have_sig_atomic_t+set}" = set; then
28218   echo $ECHO_N "(cached) $ECHO_C" >&6
28219 else
28220   cat >conftest.$ac_ext <<_ACEOF
28221 /* confdefs.h.  */
28222 _ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h.  */
28226 #include <signal.h>
28227 int
28228 main ()
28229 {
28230 sig_atomic_t x;
28231   ;
28232   return 0;
28233 }
28234 _ACEOF
28235 rm -f conftest.$ac_objext conftest$ac_exeext
28236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28237   (eval $ac_link) 2>conftest.er1
28238   ac_status=$?
28239   grep -v '^ *+' conftest.er1 >conftest.err
28240   rm -f conftest.er1
28241   cat conftest.err >&5
28242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); } &&
28244          { ac_try='test -z "$ac_cxx_werror_flag"
28245                          || test ! -s conftest.err'
28246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28247   (eval $ac_try) 2>&5
28248   ac_status=$?
28249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250   (exit $ac_status); }; } &&
28251          { ac_try='test -s conftest$ac_exeext'
28252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253   (eval $ac_try) 2>&5
28254   ac_status=$?
28255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256   (exit $ac_status); }; }; then
28257   ac_cv_have_sig_atomic_t=yes
28258 else
28259   echo "$as_me: failed program was:" >&5
28260 sed 's/^/| /' conftest.$ac_ext >&5
28261
28262 ac_cv_have_sig_atomic_t=no
28263 fi
28264 rm -f conftest.err conftest.$ac_objext \
28265       conftest$ac_exeext conftest.$ac_ext
28266 fi
28267 echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
28268 echo "${ECHO_T}$ac_cv_have_sig_atomic_t" >&6
28269 if test "$ac_cv_have_sig_atomic_t" = "no"
28270 then
28271     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28272 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
28273 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28274   echo $ECHO_N "(cached) $ECHO_C" >&6
28275 else
28276   cat >conftest.$ac_ext <<_ACEOF
28277 /* confdefs.h.  */
28278 _ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h.  */
28282 $ac_includes_default
28283 int
28284 main ()
28285 {
28286 if ((sig_atomic_t *) 0)
28287   return 0;
28288 if (sizeof (sig_atomic_t))
28289   return 0;
28290   ;
28291   return 0;
28292 }
28293 _ACEOF
28294 rm -f conftest.$ac_objext
28295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28296   (eval $ac_compile) 2>conftest.er1
28297   ac_status=$?
28298   grep -v '^ *+' conftest.er1 >conftest.err
28299   rm -f conftest.er1
28300   cat conftest.err >&5
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); } &&
28303          { ac_try='test -z "$ac_cxx_werror_flag"
28304                          || test ! -s conftest.err'
28305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306   (eval $ac_try) 2>&5
28307   ac_status=$?
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); }; } &&
28310          { ac_try='test -s conftest.$ac_objext'
28311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312   (eval $ac_try) 2>&5
28313   ac_status=$?
28314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315   (exit $ac_status); }; }; then
28316   ac_cv_type_sig_atomic_t=yes
28317 else
28318   echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28320
28321 ac_cv_type_sig_atomic_t=no
28322 fi
28323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28324 fi
28325 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28326 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
28327 if test $ac_cv_type_sig_atomic_t = yes; then
28328   :
28329 else
28330
28331 cat >>confdefs.h <<_ACEOF
28332 #define sig_atomic_t int
28333 _ACEOF
28334
28335 fi
28336
28337 fi
28338 echo "$as_me:$LINENO: checking for size_t" >&5
28339 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28340 if test "${ac_cv_type_size_t+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 $ac_includes_default
28350 int
28351 main ()
28352 {
28353 if ((size_t *) 0)
28354   return 0;
28355 if (sizeof (size_t))
28356   return 0;
28357   ;
28358   return 0;
28359 }
28360 _ACEOF
28361 rm -f conftest.$ac_objext
28362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28363   (eval $ac_compile) 2>conftest.er1
28364   ac_status=$?
28365   grep -v '^ *+' conftest.er1 >conftest.err
28366   rm -f conftest.er1
28367   cat conftest.err >&5
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); } &&
28370          { ac_try='test -z "$ac_cxx_werror_flag"
28371                          || test ! -s conftest.err'
28372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373   (eval $ac_try) 2>&5
28374   ac_status=$?
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); }; } &&
28377          { ac_try='test -s conftest.$ac_objext'
28378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379   (eval $ac_try) 2>&5
28380   ac_status=$?
28381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382   (exit $ac_status); }; }; then
28383   ac_cv_type_size_t=yes
28384 else
28385   echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28387
28388 ac_cv_type_size_t=no
28389 fi
28390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28391 fi
28392 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28393 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28394
28395 echo "$as_me:$LINENO: checking size of size_t" >&5
28396 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
28397 if test "${ac_cv_sizeof_size_t+set}" = set; then
28398   echo $ECHO_N "(cached) $ECHO_C" >&6
28399 else
28400   if test "$ac_cv_type_size_t" = yes; then
28401   # The cast to unsigned long works around a bug in the HP C Compiler
28402   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28403   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28404   # This bug is HP SR number 8606223364.
28405   if test "$cross_compiling" = yes; then
28406   # Depending upon the size, compute the lo and hi bounds.
28407 cat >conftest.$ac_ext <<_ACEOF
28408 /* confdefs.h.  */
28409 _ACEOF
28410 cat confdefs.h >>conftest.$ac_ext
28411 cat >>conftest.$ac_ext <<_ACEOF
28412 /* end confdefs.h.  */
28413 $ac_includes_default
28414 int
28415 main ()
28416 {
28417 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
28418 test_array [0] = 0
28419
28420   ;
28421   return 0;
28422 }
28423 _ACEOF
28424 rm -f conftest.$ac_objext
28425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28426   (eval $ac_compile) 2>conftest.er1
28427   ac_status=$?
28428   grep -v '^ *+' conftest.er1 >conftest.err
28429   rm -f conftest.er1
28430   cat conftest.err >&5
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); } &&
28433          { ac_try='test -z "$ac_cxx_werror_flag"
28434                          || test ! -s conftest.err'
28435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436   (eval $ac_try) 2>&5
28437   ac_status=$?
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); }; } &&
28440          { ac_try='test -s conftest.$ac_objext'
28441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442   (eval $ac_try) 2>&5
28443   ac_status=$?
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); }; }; then
28446   ac_lo=0 ac_mid=0
28447   while :; do
28448     cat >conftest.$ac_ext <<_ACEOF
28449 /* confdefs.h.  */
28450 _ACEOF
28451 cat confdefs.h >>conftest.$ac_ext
28452 cat >>conftest.$ac_ext <<_ACEOF
28453 /* end confdefs.h.  */
28454 $ac_includes_default
28455 int
28456 main ()
28457 {
28458 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28459 test_array [0] = 0
28460
28461   ;
28462   return 0;
28463 }
28464 _ACEOF
28465 rm -f conftest.$ac_objext
28466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28467   (eval $ac_compile) 2>conftest.er1
28468   ac_status=$?
28469   grep -v '^ *+' conftest.er1 >conftest.err
28470   rm -f conftest.er1
28471   cat conftest.err >&5
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); } &&
28474          { ac_try='test -z "$ac_cxx_werror_flag"
28475                          || test ! -s conftest.err'
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); }; } &&
28481          { ac_try='test -s conftest.$ac_objext'
28482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483   (eval $ac_try) 2>&5
28484   ac_status=$?
28485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486   (exit $ac_status); }; }; then
28487   ac_hi=$ac_mid; break
28488 else
28489   echo "$as_me: failed program was:" >&5
28490 sed 's/^/| /' conftest.$ac_ext >&5
28491
28492 ac_lo=`expr $ac_mid + 1`
28493                     if test $ac_lo -le $ac_mid; then
28494                       ac_lo= ac_hi=
28495                       break
28496                     fi
28497                     ac_mid=`expr 2 '*' $ac_mid + 1`
28498 fi
28499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28500   done
28501 else
28502   echo "$as_me: failed program was:" >&5
28503 sed 's/^/| /' conftest.$ac_ext >&5
28504
28505 cat >conftest.$ac_ext <<_ACEOF
28506 /* confdefs.h.  */
28507 _ACEOF
28508 cat confdefs.h >>conftest.$ac_ext
28509 cat >>conftest.$ac_ext <<_ACEOF
28510 /* end confdefs.h.  */
28511 $ac_includes_default
28512 int
28513 main ()
28514 {
28515 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
28516 test_array [0] = 0
28517
28518   ;
28519   return 0;
28520 }
28521 _ACEOF
28522 rm -f conftest.$ac_objext
28523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28524   (eval $ac_compile) 2>conftest.er1
28525   ac_status=$?
28526   grep -v '^ *+' conftest.er1 >conftest.err
28527   rm -f conftest.er1
28528   cat conftest.err >&5
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); } &&
28531          { ac_try='test -z "$ac_cxx_werror_flag"
28532                          || test ! -s conftest.err'
28533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534   (eval $ac_try) 2>&5
28535   ac_status=$?
28536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537   (exit $ac_status); }; } &&
28538          { ac_try='test -s conftest.$ac_objext'
28539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540   (eval $ac_try) 2>&5
28541   ac_status=$?
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); }; }; then
28544   ac_hi=-1 ac_mid=-1
28545   while :; do
28546     cat >conftest.$ac_ext <<_ACEOF
28547 /* confdefs.h.  */
28548 _ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h.  */
28552 $ac_includes_default
28553 int
28554 main ()
28555 {
28556 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
28557 test_array [0] = 0
28558
28559   ;
28560   return 0;
28561 }
28562 _ACEOF
28563 rm -f conftest.$ac_objext
28564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28565   (eval $ac_compile) 2>conftest.er1
28566   ac_status=$?
28567   grep -v '^ *+' conftest.er1 >conftest.err
28568   rm -f conftest.er1
28569   cat conftest.err >&5
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); } &&
28572          { ac_try='test -z "$ac_cxx_werror_flag"
28573                          || test ! -s conftest.err'
28574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575   (eval $ac_try) 2>&5
28576   ac_status=$?
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); }; } &&
28579          { ac_try='test -s conftest.$ac_objext'
28580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581   (eval $ac_try) 2>&5
28582   ac_status=$?
28583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584   (exit $ac_status); }; }; then
28585   ac_lo=$ac_mid; break
28586 else
28587   echo "$as_me: failed program was:" >&5
28588 sed 's/^/| /' conftest.$ac_ext >&5
28589
28590 ac_hi=`expr '(' $ac_mid ')' - 1`
28591                        if test $ac_mid -le $ac_hi; then
28592                          ac_lo= ac_hi=
28593                          break
28594                        fi
28595                        ac_mid=`expr 2 '*' $ac_mid`
28596 fi
28597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28598   done
28599 else
28600   echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28602
28603 ac_lo= ac_hi=
28604 fi
28605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28606 fi
28607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28608 # Binary search between lo and hi bounds.
28609 while test "x$ac_lo" != "x$ac_hi"; do
28610   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28611   cat >conftest.$ac_ext <<_ACEOF
28612 /* confdefs.h.  */
28613 _ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h.  */
28617 $ac_includes_default
28618 int
28619 main ()
28620 {
28621 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28622 test_array [0] = 0
28623
28624   ;
28625   return 0;
28626 }
28627 _ACEOF
28628 rm -f conftest.$ac_objext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28630   (eval $ac_compile) 2>conftest.er1
28631   ac_status=$?
28632   grep -v '^ *+' conftest.er1 >conftest.err
28633   rm -f conftest.er1
28634   cat conftest.err >&5
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); } &&
28637          { ac_try='test -z "$ac_cxx_werror_flag"
28638                          || test ! -s conftest.err'
28639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640   (eval $ac_try) 2>&5
28641   ac_status=$?
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); }; } &&
28644          { ac_try='test -s conftest.$ac_objext'
28645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646   (eval $ac_try) 2>&5
28647   ac_status=$?
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); }; }; then
28650   ac_hi=$ac_mid
28651 else
28652   echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28654
28655 ac_lo=`expr '(' $ac_mid ')' + 1`
28656 fi
28657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28658 done
28659 case $ac_lo in
28660 ?*) ac_cv_sizeof_size_t=$ac_lo;;
28661 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28662 See \`config.log' for more details." >&5
28663 echo "$as_me: error: cannot compute sizeof (size_t), 77
28664 See \`config.log' for more details." >&2;}
28665    { (exit 1); exit 1; }; } ;;
28666 esac
28667 else
28668   if test "$cross_compiling" = yes; then
28669   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28670 See \`config.log' for more details." >&5
28671 echo "$as_me: error: cannot run test program while cross compiling
28672 See \`config.log' for more details." >&2;}
28673    { (exit 1); exit 1; }; }
28674 else
28675   cat >conftest.$ac_ext <<_ACEOF
28676 /* confdefs.h.  */
28677 _ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h.  */
28681 $ac_includes_default
28682 long longval () { return (long) (sizeof (size_t)); }
28683 unsigned long ulongval () { return (long) (sizeof (size_t)); }
28684 #include <stdio.h>
28685 #include <stdlib.h>
28686 int
28687 main ()
28688 {
28689
28690   FILE *f = fopen ("conftest.val", "w");
28691   if (! f)
28692     exit (1);
28693   if (((long) (sizeof (size_t))) < 0)
28694     {
28695       long i = longval ();
28696       if (i != ((long) (sizeof (size_t))))
28697         exit (1);
28698       fprintf (f, "%ld\n", i);
28699     }
28700   else
28701     {
28702       unsigned long i = ulongval ();
28703       if (i != ((long) (sizeof (size_t))))
28704         exit (1);
28705       fprintf (f, "%lu\n", i);
28706     }
28707   exit (ferror (f) || fclose (f) != 0);
28708
28709   ;
28710   return 0;
28711 }
28712 _ACEOF
28713 rm -f conftest$ac_exeext
28714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28715   (eval $ac_link) 2>&5
28716   ac_status=$?
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720   (eval $ac_try) 2>&5
28721   ac_status=$?
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); }; }; then
28724   ac_cv_sizeof_size_t=`cat conftest.val`
28725 else
28726   echo "$as_me: program exited with status $ac_status" >&5
28727 echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28729
28730 ( exit $ac_status )
28731 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28732 See \`config.log' for more details." >&5
28733 echo "$as_me: error: cannot compute sizeof (size_t), 77
28734 See \`config.log' for more details." >&2;}
28735    { (exit 1); exit 1; }; }
28736 fi
28737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28738 fi
28739 fi
28740 rm -f conftest.val
28741 else
28742   ac_cv_sizeof_size_t=0
28743 fi
28744 fi
28745 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28746 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
28747 cat >>confdefs.h <<_ACEOF
28748 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28749 _ACEOF
28750
28751
28752 echo "$as_me:$LINENO: checking for unsigned int" >&5
28753 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
28754 if test "${ac_cv_type_unsigned_int+set}" = set; then
28755   echo $ECHO_N "(cached) $ECHO_C" >&6
28756 else
28757   cat >conftest.$ac_ext <<_ACEOF
28758 /* confdefs.h.  */
28759 _ACEOF
28760 cat confdefs.h >>conftest.$ac_ext
28761 cat >>conftest.$ac_ext <<_ACEOF
28762 /* end confdefs.h.  */
28763 $ac_includes_default
28764 int
28765 main ()
28766 {
28767 if ((unsigned int *) 0)
28768   return 0;
28769 if (sizeof (unsigned int))
28770   return 0;
28771   ;
28772   return 0;
28773 }
28774 _ACEOF
28775 rm -f conftest.$ac_objext
28776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28777   (eval $ac_compile) 2>conftest.er1
28778   ac_status=$?
28779   grep -v '^ *+' conftest.er1 >conftest.err
28780   rm -f conftest.er1
28781   cat conftest.err >&5
28782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783   (exit $ac_status); } &&
28784          { ac_try='test -z "$ac_cxx_werror_flag"
28785                          || test ! -s conftest.err'
28786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787   (eval $ac_try) 2>&5
28788   ac_status=$?
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); }; } &&
28791          { ac_try='test -s conftest.$ac_objext'
28792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28793   (eval $ac_try) 2>&5
28794   ac_status=$?
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); }; }; then
28797   ac_cv_type_unsigned_int=yes
28798 else
28799   echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28801
28802 ac_cv_type_unsigned_int=no
28803 fi
28804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28805 fi
28806 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
28807 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
28808
28809 echo "$as_me:$LINENO: checking size of unsigned int" >&5
28810 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
28811 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
28812   echo $ECHO_N "(cached) $ECHO_C" >&6
28813 else
28814   if test "$ac_cv_type_unsigned_int" = yes; then
28815   # The cast to unsigned long works around a bug in the HP C Compiler
28816   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28817   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28818   # This bug is HP SR number 8606223364.
28819   if test "$cross_compiling" = yes; then
28820   # Depending upon the size, compute the lo and hi bounds.
28821 cat >conftest.$ac_ext <<_ACEOF
28822 /* confdefs.h.  */
28823 _ACEOF
28824 cat confdefs.h >>conftest.$ac_ext
28825 cat >>conftest.$ac_ext <<_ACEOF
28826 /* end confdefs.h.  */
28827 $ac_includes_default
28828 int
28829 main ()
28830 {
28831 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
28832 test_array [0] = 0
28833
28834   ;
28835   return 0;
28836 }
28837 _ACEOF
28838 rm -f conftest.$ac_objext
28839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28840   (eval $ac_compile) 2>conftest.er1
28841   ac_status=$?
28842   grep -v '^ *+' conftest.er1 >conftest.err
28843   rm -f conftest.er1
28844   cat conftest.err >&5
28845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846   (exit $ac_status); } &&
28847          { ac_try='test -z "$ac_cxx_werror_flag"
28848                          || test ! -s conftest.err'
28849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28850   (eval $ac_try) 2>&5
28851   ac_status=$?
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); }; } &&
28854          { ac_try='test -s conftest.$ac_objext'
28855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28856   (eval $ac_try) 2>&5
28857   ac_status=$?
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); }; }; then
28860   ac_lo=0 ac_mid=0
28861   while :; do
28862     cat >conftest.$ac_ext <<_ACEOF
28863 /* confdefs.h.  */
28864 _ACEOF
28865 cat confdefs.h >>conftest.$ac_ext
28866 cat >>conftest.$ac_ext <<_ACEOF
28867 /* end confdefs.h.  */
28868 $ac_includes_default
28869 int
28870 main ()
28871 {
28872 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
28873 test_array [0] = 0
28874
28875   ;
28876   return 0;
28877 }
28878 _ACEOF
28879 rm -f conftest.$ac_objext
28880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28881   (eval $ac_compile) 2>conftest.er1
28882   ac_status=$?
28883   grep -v '^ *+' conftest.er1 >conftest.err
28884   rm -f conftest.er1
28885   cat conftest.err >&5
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); } &&
28888          { ac_try='test -z "$ac_cxx_werror_flag"
28889                          || test ! -s conftest.err'
28890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28891   (eval $ac_try) 2>&5
28892   ac_status=$?
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); }; } &&
28895          { ac_try='test -s conftest.$ac_objext'
28896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28897   (eval $ac_try) 2>&5
28898   ac_status=$?
28899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); }; }; then
28901   ac_hi=$ac_mid; break
28902 else
28903   echo "$as_me: failed program was:" >&5
28904 sed 's/^/| /' conftest.$ac_ext >&5
28905
28906 ac_lo=`expr $ac_mid + 1`
28907                     if test $ac_lo -le $ac_mid; then
28908                       ac_lo= ac_hi=
28909                       break
28910                     fi
28911                     ac_mid=`expr 2 '*' $ac_mid + 1`
28912 fi
28913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28914   done
28915 else
28916   echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28918
28919 cat >conftest.$ac_ext <<_ACEOF
28920 /* confdefs.h.  */
28921 _ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h.  */
28925 $ac_includes_default
28926 int
28927 main ()
28928 {
28929 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
28930 test_array [0] = 0
28931
28932   ;
28933   return 0;
28934 }
28935 _ACEOF
28936 rm -f conftest.$ac_objext
28937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28938   (eval $ac_compile) 2>conftest.er1
28939   ac_status=$?
28940   grep -v '^ *+' conftest.er1 >conftest.err
28941   rm -f conftest.er1
28942   cat conftest.err >&5
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); } &&
28945          { ac_try='test -z "$ac_cxx_werror_flag"
28946                          || test ! -s conftest.err'
28947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948   (eval $ac_try) 2>&5
28949   ac_status=$?
28950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951   (exit $ac_status); }; } &&
28952          { ac_try='test -s conftest.$ac_objext'
28953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954   (eval $ac_try) 2>&5
28955   ac_status=$?
28956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957   (exit $ac_status); }; }; then
28958   ac_hi=-1 ac_mid=-1
28959   while :; do
28960     cat >conftest.$ac_ext <<_ACEOF
28961 /* confdefs.h.  */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h.  */
28966 $ac_includes_default
28967 int
28968 main ()
28969 {
28970 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
28971 test_array [0] = 0
28972
28973   ;
28974   return 0;
28975 }
28976 _ACEOF
28977 rm -f conftest.$ac_objext
28978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28979   (eval $ac_compile) 2>conftest.er1
28980   ac_status=$?
28981   grep -v '^ *+' conftest.er1 >conftest.err
28982   rm -f conftest.er1
28983   cat conftest.err >&5
28984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985   (exit $ac_status); } &&
28986          { ac_try='test -z "$ac_cxx_werror_flag"
28987                          || test ! -s conftest.err'
28988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989   (eval $ac_try) 2>&5
28990   ac_status=$?
28991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992   (exit $ac_status); }; } &&
28993          { ac_try='test -s conftest.$ac_objext'
28994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28995   (eval $ac_try) 2>&5
28996   ac_status=$?
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); }; }; then
28999   ac_lo=$ac_mid; break
29000 else
29001   echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29003
29004 ac_hi=`expr '(' $ac_mid ')' - 1`
29005                        if test $ac_mid -le $ac_hi; then
29006                          ac_lo= ac_hi=
29007                          break
29008                        fi
29009                        ac_mid=`expr 2 '*' $ac_mid`
29010 fi
29011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29012   done
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017 ac_lo= ac_hi=
29018 fi
29019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29020 fi
29021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29022 # Binary search between lo and hi bounds.
29023 while test "x$ac_lo" != "x$ac_hi"; do
29024   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29025   cat >conftest.$ac_ext <<_ACEOF
29026 /* confdefs.h.  */
29027 _ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h.  */
29031 $ac_includes_default
29032 int
29033 main ()
29034 {
29035 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
29036 test_array [0] = 0
29037
29038   ;
29039   return 0;
29040 }
29041 _ACEOF
29042 rm -f conftest.$ac_objext
29043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29044   (eval $ac_compile) 2>conftest.er1
29045   ac_status=$?
29046   grep -v '^ *+' conftest.er1 >conftest.err
29047   rm -f conftest.er1
29048   cat conftest.err >&5
29049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050   (exit $ac_status); } &&
29051          { ac_try='test -z "$ac_cxx_werror_flag"
29052                          || test ! -s conftest.err'
29053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054   (eval $ac_try) 2>&5
29055   ac_status=$?
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); }; } &&
29058          { ac_try='test -s conftest.$ac_objext'
29059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060   (eval $ac_try) 2>&5
29061   ac_status=$?
29062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063   (exit $ac_status); }; }; then
29064   ac_hi=$ac_mid
29065 else
29066   echo "$as_me: failed program was:" >&5
29067 sed 's/^/| /' conftest.$ac_ext >&5
29068
29069 ac_lo=`expr '(' $ac_mid ')' + 1`
29070 fi
29071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29072 done
29073 case $ac_lo in
29074 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
29075 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
29076 See \`config.log' for more details." >&5
29077 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
29078 See \`config.log' for more details." >&2;}
29079    { (exit 1); exit 1; }; } ;;
29080 esac
29081 else
29082   if test "$cross_compiling" = yes; then
29083   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29084 See \`config.log' for more details." >&5
29085 echo "$as_me: error: cannot run test program while cross compiling
29086 See \`config.log' for more details." >&2;}
29087    { (exit 1); exit 1; }; }
29088 else
29089   cat >conftest.$ac_ext <<_ACEOF
29090 /* confdefs.h.  */
29091 _ACEOF
29092 cat confdefs.h >>conftest.$ac_ext
29093 cat >>conftest.$ac_ext <<_ACEOF
29094 /* end confdefs.h.  */
29095 $ac_includes_default
29096 long longval () { return (long) (sizeof (unsigned int)); }
29097 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
29098 #include <stdio.h>
29099 #include <stdlib.h>
29100 int
29101 main ()
29102 {
29103
29104   FILE *f = fopen ("conftest.val", "w");
29105   if (! f)
29106     exit (1);
29107   if (((long) (sizeof (unsigned int))) < 0)
29108     {
29109       long i = longval ();
29110       if (i != ((long) (sizeof (unsigned int))))
29111         exit (1);
29112       fprintf (f, "%ld\n", i);
29113     }
29114   else
29115     {
29116       unsigned long i = ulongval ();
29117       if (i != ((long) (sizeof (unsigned int))))
29118         exit (1);
29119       fprintf (f, "%lu\n", i);
29120     }
29121   exit (ferror (f) || fclose (f) != 0);
29122
29123   ;
29124   return 0;
29125 }
29126 _ACEOF
29127 rm -f conftest$ac_exeext
29128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29129   (eval $ac_link) 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134   (eval $ac_try) 2>&5
29135   ac_status=$?
29136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); }; }; then
29138   ac_cv_sizeof_unsigned_int=`cat conftest.val`
29139 else
29140   echo "$as_me: program exited with status $ac_status" >&5
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144 ( exit $ac_status )
29145 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
29146 See \`config.log' for more details." >&5
29147 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
29148 See \`config.log' for more details." >&2;}
29149    { (exit 1); exit 1; }; }
29150 fi
29151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29152 fi
29153 fi
29154 rm -f conftest.val
29155 else
29156   ac_cv_sizeof_unsigned_int=0
29157 fi
29158 fi
29159 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
29160 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
29161 cat >>confdefs.h <<_ACEOF
29162 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
29163 _ACEOF
29164
29165
29166 echo "$as_me:$LINENO: checking for unsigned short" >&5
29167 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
29168 if test "${ac_cv_type_unsigned_short+set}" = set; then
29169   echo $ECHO_N "(cached) $ECHO_C" >&6
29170 else
29171   cat >conftest.$ac_ext <<_ACEOF
29172 /* confdefs.h.  */
29173 _ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h.  */
29177 $ac_includes_default
29178 int
29179 main ()
29180 {
29181 if ((unsigned short *) 0)
29182   return 0;
29183 if (sizeof (unsigned short))
29184   return 0;
29185   ;
29186   return 0;
29187 }
29188 _ACEOF
29189 rm -f conftest.$ac_objext
29190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29191   (eval $ac_compile) 2>conftest.er1
29192   ac_status=$?
29193   grep -v '^ *+' conftest.er1 >conftest.err
29194   rm -f conftest.er1
29195   cat conftest.err >&5
29196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197   (exit $ac_status); } &&
29198          { ac_try='test -z "$ac_cxx_werror_flag"
29199                          || test ! -s conftest.err'
29200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201   (eval $ac_try) 2>&5
29202   ac_status=$?
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); }; } &&
29205          { ac_try='test -s conftest.$ac_objext'
29206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207   (eval $ac_try) 2>&5
29208   ac_status=$?
29209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210   (exit $ac_status); }; }; then
29211   ac_cv_type_unsigned_short=yes
29212 else
29213   echo "$as_me: failed program was:" >&5
29214 sed 's/^/| /' conftest.$ac_ext >&5
29215
29216 ac_cv_type_unsigned_short=no
29217 fi
29218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29219 fi
29220 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
29221 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
29222
29223 echo "$as_me:$LINENO: checking size of unsigned short" >&5
29224 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
29225 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
29226   echo $ECHO_N "(cached) $ECHO_C" >&6
29227 else
29228   if test "$ac_cv_type_unsigned_short" = yes; then
29229   # The cast to unsigned long works around a bug in the HP C Compiler
29230   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29231   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29232   # This bug is HP SR number 8606223364.
29233   if test "$cross_compiling" = yes; then
29234   # Depending upon the size, compute the lo and hi bounds.
29235 cat >conftest.$ac_ext <<_ACEOF
29236 /* confdefs.h.  */
29237 _ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h.  */
29241 $ac_includes_default
29242 int
29243 main ()
29244 {
29245 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
29246 test_array [0] = 0
29247
29248   ;
29249   return 0;
29250 }
29251 _ACEOF
29252 rm -f conftest.$ac_objext
29253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29254   (eval $ac_compile) 2>conftest.er1
29255   ac_status=$?
29256   grep -v '^ *+' conftest.er1 >conftest.err
29257   rm -f conftest.er1
29258   cat conftest.err >&5
29259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260   (exit $ac_status); } &&
29261          { ac_try='test -z "$ac_cxx_werror_flag"
29262                          || test ! -s conftest.err'
29263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264   (eval $ac_try) 2>&5
29265   ac_status=$?
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); }; } &&
29268          { ac_try='test -s conftest.$ac_objext'
29269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270   (eval $ac_try) 2>&5
29271   ac_status=$?
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); }; }; then
29274   ac_lo=0 ac_mid=0
29275   while :; do
29276     cat >conftest.$ac_ext <<_ACEOF
29277 /* confdefs.h.  */
29278 _ACEOF
29279 cat confdefs.h >>conftest.$ac_ext
29280 cat >>conftest.$ac_ext <<_ACEOF
29281 /* end confdefs.h.  */
29282 $ac_includes_default
29283 int
29284 main ()
29285 {
29286 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
29287 test_array [0] = 0
29288
29289   ;
29290   return 0;
29291 }
29292 _ACEOF
29293 rm -f conftest.$ac_objext
29294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29295   (eval $ac_compile) 2>conftest.er1
29296   ac_status=$?
29297   grep -v '^ *+' conftest.er1 >conftest.err
29298   rm -f conftest.er1
29299   cat conftest.err >&5
29300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301   (exit $ac_status); } &&
29302          { ac_try='test -z "$ac_cxx_werror_flag"
29303                          || test ! -s conftest.err'
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); }; } &&
29309          { ac_try='test -s conftest.$ac_objext'
29310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311   (eval $ac_try) 2>&5
29312   ac_status=$?
29313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314   (exit $ac_status); }; }; then
29315   ac_hi=$ac_mid; break
29316 else
29317   echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29319
29320 ac_lo=`expr $ac_mid + 1`
29321                     if test $ac_lo -le $ac_mid; then
29322                       ac_lo= ac_hi=
29323                       break
29324                     fi
29325                     ac_mid=`expr 2 '*' $ac_mid + 1`
29326 fi
29327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29328   done
29329 else
29330   echo "$as_me: failed program was:" >&5
29331 sed 's/^/| /' conftest.$ac_ext >&5
29332
29333 cat >conftest.$ac_ext <<_ACEOF
29334 /* confdefs.h.  */
29335 _ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h.  */
29339 $ac_includes_default
29340 int
29341 main ()
29342 {
29343 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
29344 test_array [0] = 0
29345
29346   ;
29347   return 0;
29348 }
29349 _ACEOF
29350 rm -f conftest.$ac_objext
29351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29352   (eval $ac_compile) 2>conftest.er1
29353   ac_status=$?
29354   grep -v '^ *+' conftest.er1 >conftest.err
29355   rm -f conftest.er1
29356   cat conftest.err >&5
29357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358   (exit $ac_status); } &&
29359          { ac_try='test -z "$ac_cxx_werror_flag"
29360                          || test ! -s conftest.err'
29361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29362   (eval $ac_try) 2>&5
29363   ac_status=$?
29364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365   (exit $ac_status); }; } &&
29366          { ac_try='test -s conftest.$ac_objext'
29367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29368   (eval $ac_try) 2>&5
29369   ac_status=$?
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); }; }; then
29372   ac_hi=-1 ac_mid=-1
29373   while :; do
29374     cat >conftest.$ac_ext <<_ACEOF
29375 /* confdefs.h.  */
29376 _ACEOF
29377 cat confdefs.h >>conftest.$ac_ext
29378 cat >>conftest.$ac_ext <<_ACEOF
29379 /* end confdefs.h.  */
29380 $ac_includes_default
29381 int
29382 main ()
29383 {
29384 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
29385 test_array [0] = 0
29386
29387   ;
29388   return 0;
29389 }
29390 _ACEOF
29391 rm -f conftest.$ac_objext
29392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29393   (eval $ac_compile) 2>conftest.er1
29394   ac_status=$?
29395   grep -v '^ *+' conftest.er1 >conftest.err
29396   rm -f conftest.er1
29397   cat conftest.err >&5
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); } &&
29400          { ac_try='test -z "$ac_cxx_werror_flag"
29401                          || test ! -s conftest.err'
29402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29403   (eval $ac_try) 2>&5
29404   ac_status=$?
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); }; } &&
29407          { ac_try='test -s conftest.$ac_objext'
29408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409   (eval $ac_try) 2>&5
29410   ac_status=$?
29411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412   (exit $ac_status); }; }; then
29413   ac_lo=$ac_mid; break
29414 else
29415   echo "$as_me: failed program was:" >&5
29416 sed 's/^/| /' conftest.$ac_ext >&5
29417
29418 ac_hi=`expr '(' $ac_mid ')' - 1`
29419                        if test $ac_mid -le $ac_hi; then
29420                          ac_lo= ac_hi=
29421                          break
29422                        fi
29423                        ac_mid=`expr 2 '*' $ac_mid`
29424 fi
29425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29426   done
29427 else
29428   echo "$as_me: failed program was:" >&5
29429 sed 's/^/| /' conftest.$ac_ext >&5
29430
29431 ac_lo= ac_hi=
29432 fi
29433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29434 fi
29435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29436 # Binary search between lo and hi bounds.
29437 while test "x$ac_lo" != "x$ac_hi"; do
29438   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29439   cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445 $ac_includes_default
29446 int
29447 main ()
29448 {
29449 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
29450 test_array [0] = 0
29451
29452   ;
29453   return 0;
29454 }
29455 _ACEOF
29456 rm -f conftest.$ac_objext
29457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29458   (eval $ac_compile) 2>conftest.er1
29459   ac_status=$?
29460   grep -v '^ *+' conftest.er1 >conftest.err
29461   rm -f conftest.er1
29462   cat conftest.err >&5
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); } &&
29465          { ac_try='test -z "$ac_cxx_werror_flag"
29466                          || test ! -s conftest.err'
29467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468   (eval $ac_try) 2>&5
29469   ac_status=$?
29470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471   (exit $ac_status); }; } &&
29472          { ac_try='test -s conftest.$ac_objext'
29473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474   (eval $ac_try) 2>&5
29475   ac_status=$?
29476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477   (exit $ac_status); }; }; then
29478   ac_hi=$ac_mid
29479 else
29480   echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29482
29483 ac_lo=`expr '(' $ac_mid ')' + 1`
29484 fi
29485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29486 done
29487 case $ac_lo in
29488 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
29489 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
29490 See \`config.log' for more details." >&5
29491 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
29492 See \`config.log' for more details." >&2;}
29493    { (exit 1); exit 1; }; } ;;
29494 esac
29495 else
29496   if test "$cross_compiling" = yes; then
29497   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29498 See \`config.log' for more details." >&5
29499 echo "$as_me: error: cannot run test program while cross compiling
29500 See \`config.log' for more details." >&2;}
29501    { (exit 1); exit 1; }; }
29502 else
29503   cat >conftest.$ac_ext <<_ACEOF
29504 /* confdefs.h.  */
29505 _ACEOF
29506 cat confdefs.h >>conftest.$ac_ext
29507 cat >>conftest.$ac_ext <<_ACEOF
29508 /* end confdefs.h.  */
29509 $ac_includes_default
29510 long longval () { return (long) (sizeof (unsigned short)); }
29511 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
29512 #include <stdio.h>
29513 #include <stdlib.h>
29514 int
29515 main ()
29516 {
29517
29518   FILE *f = fopen ("conftest.val", "w");
29519   if (! f)
29520     exit (1);
29521   if (((long) (sizeof (unsigned short))) < 0)
29522     {
29523       long i = longval ();
29524       if (i != ((long) (sizeof (unsigned short))))
29525         exit (1);
29526       fprintf (f, "%ld\n", i);
29527     }
29528   else
29529     {
29530       unsigned long i = ulongval ();
29531       if (i != ((long) (sizeof (unsigned short))))
29532         exit (1);
29533       fprintf (f, "%lu\n", i);
29534     }
29535   exit (ferror (f) || fclose (f) != 0);
29536
29537   ;
29538   return 0;
29539 }
29540 _ACEOF
29541 rm -f conftest$ac_exeext
29542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29543   (eval $ac_link) 2>&5
29544   ac_status=$?
29545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29548   (eval $ac_try) 2>&5
29549   ac_status=$?
29550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551   (exit $ac_status); }; }; then
29552   ac_cv_sizeof_unsigned_short=`cat conftest.val`
29553 else
29554   echo "$as_me: program exited with status $ac_status" >&5
29555 echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29557
29558 ( exit $ac_status )
29559 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
29560 See \`config.log' for more details." >&5
29561 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
29562 See \`config.log' for more details." >&2;}
29563    { (exit 1); exit 1; }; }
29564 fi
29565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29566 fi
29567 fi
29568 rm -f conftest.val
29569 else
29570   ac_cv_sizeof_unsigned_short=0
29571 fi
29572 fi
29573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
29574 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
29575 cat >>confdefs.h <<_ACEOF
29576 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
29577 _ACEOF
29578
29579
29580 echo "$as_me:$LINENO: checking for wchar_t" >&5
29581 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
29582 if test "${ac_cv_type_wchar_t+set}" = set; then
29583   echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585   cat >conftest.$ac_ext <<_ACEOF
29586 /* confdefs.h.  */
29587 _ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h.  */
29591
29592   #include <stdio.h>
29593   #include <wchar.h>
29594
29595 int
29596 main ()
29597 {
29598 if ((wchar_t *) 0)
29599   return 0;
29600 if (sizeof (wchar_t))
29601   return 0;
29602   ;
29603   return 0;
29604 }
29605 _ACEOF
29606 rm -f conftest.$ac_objext
29607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29608   (eval $ac_compile) 2>conftest.er1
29609   ac_status=$?
29610   grep -v '^ *+' conftest.er1 >conftest.err
29611   rm -f conftest.er1
29612   cat conftest.err >&5
29613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614   (exit $ac_status); } &&
29615          { ac_try='test -z "$ac_cxx_werror_flag"
29616                          || test ! -s conftest.err'
29617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29618   (eval $ac_try) 2>&5
29619   ac_status=$?
29620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29621   (exit $ac_status); }; } &&
29622          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29628   ac_cv_type_wchar_t=yes
29629 else
29630   echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29632
29633 ac_cv_type_wchar_t=no
29634 fi
29635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29636 fi
29637 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
29638 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
29639
29640 echo "$as_me:$LINENO: checking size of wchar_t" >&5
29641 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
29642 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
29643   echo $ECHO_N "(cached) $ECHO_C" >&6
29644 else
29645   if test "$ac_cv_type_wchar_t" = yes; then
29646   # The cast to unsigned long works around a bug in the HP C Compiler
29647   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29648   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29649   # This bug is HP SR number 8606223364.
29650   if test "$cross_compiling" = yes; then
29651   # Depending upon the size, compute the lo and hi bounds.
29652 cat >conftest.$ac_ext <<_ACEOF
29653 /* confdefs.h.  */
29654 _ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h.  */
29658
29659   #include <stdio.h>
29660   #include <wchar.h>
29661
29662 int
29663 main ()
29664 {
29665 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
29666 test_array [0] = 0
29667
29668   ;
29669   return 0;
29670 }
29671 _ACEOF
29672 rm -f conftest.$ac_objext
29673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29674   (eval $ac_compile) 2>conftest.er1
29675   ac_status=$?
29676   grep -v '^ *+' conftest.er1 >conftest.err
29677   rm -f conftest.er1
29678   cat conftest.err >&5
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); } &&
29681          { ac_try='test -z "$ac_cxx_werror_flag"
29682                          || test ! -s conftest.err'
29683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684   (eval $ac_try) 2>&5
29685   ac_status=$?
29686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687   (exit $ac_status); }; } &&
29688          { ac_try='test -s conftest.$ac_objext'
29689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690   (eval $ac_try) 2>&5
29691   ac_status=$?
29692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693   (exit $ac_status); }; }; then
29694   ac_lo=0 ac_mid=0
29695   while :; do
29696     cat >conftest.$ac_ext <<_ACEOF
29697 /* confdefs.h.  */
29698 _ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h.  */
29702
29703   #include <stdio.h>
29704   #include <wchar.h>
29705
29706 int
29707 main ()
29708 {
29709 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
29710 test_array [0] = 0
29711
29712   ;
29713   return 0;
29714 }
29715 _ACEOF
29716 rm -f conftest.$ac_objext
29717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29718   (eval $ac_compile) 2>conftest.er1
29719   ac_status=$?
29720   grep -v '^ *+' conftest.er1 >conftest.err
29721   rm -f conftest.er1
29722   cat conftest.err >&5
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); } &&
29725          { ac_try='test -z "$ac_cxx_werror_flag"
29726                          || test ! -s conftest.err'
29727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728   (eval $ac_try) 2>&5
29729   ac_status=$?
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); }; } &&
29732          { ac_try='test -s conftest.$ac_objext'
29733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734   (eval $ac_try) 2>&5
29735   ac_status=$?
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); }; }; then
29738   ac_hi=$ac_mid; break
29739 else
29740   echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29742
29743 ac_lo=`expr $ac_mid + 1`
29744                     if test $ac_lo -le $ac_mid; then
29745                       ac_lo= ac_hi=
29746                       break
29747                     fi
29748                     ac_mid=`expr 2 '*' $ac_mid + 1`
29749 fi
29750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29751   done
29752 else
29753   echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29755
29756 cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762
29763   #include <stdio.h>
29764   #include <wchar.h>
29765
29766 int
29767 main ()
29768 {
29769 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
29770 test_array [0] = 0
29771
29772   ;
29773   return 0;
29774 }
29775 _ACEOF
29776 rm -f conftest.$ac_objext
29777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29778   (eval $ac_compile) 2>conftest.er1
29779   ac_status=$?
29780   grep -v '^ *+' conftest.er1 >conftest.err
29781   rm -f conftest.er1
29782   cat conftest.err >&5
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); } &&
29785          { ac_try='test -z "$ac_cxx_werror_flag"
29786                          || test ! -s conftest.err'
29787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788   (eval $ac_try) 2>&5
29789   ac_status=$?
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); }; } &&
29792          { ac_try='test -s conftest.$ac_objext'
29793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29794   (eval $ac_try) 2>&5
29795   ac_status=$?
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); }; }; then
29798   ac_hi=-1 ac_mid=-1
29799   while :; do
29800     cat >conftest.$ac_ext <<_ACEOF
29801 /* confdefs.h.  */
29802 _ACEOF
29803 cat confdefs.h >>conftest.$ac_ext
29804 cat >>conftest.$ac_ext <<_ACEOF
29805 /* end confdefs.h.  */
29806
29807   #include <stdio.h>
29808   #include <wchar.h>
29809
29810 int
29811 main ()
29812 {
29813 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
29814 test_array [0] = 0
29815
29816   ;
29817   return 0;
29818 }
29819 _ACEOF
29820 rm -f conftest.$ac_objext
29821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29822   (eval $ac_compile) 2>conftest.er1
29823   ac_status=$?
29824   grep -v '^ *+' conftest.er1 >conftest.err
29825   rm -f conftest.er1
29826   cat conftest.err >&5
29827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828   (exit $ac_status); } &&
29829          { ac_try='test -z "$ac_cxx_werror_flag"
29830                          || test ! -s conftest.err'
29831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832   (eval $ac_try) 2>&5
29833   ac_status=$?
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); }; } &&
29836          { ac_try='test -s conftest.$ac_objext'
29837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838   (eval $ac_try) 2>&5
29839   ac_status=$?
29840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841   (exit $ac_status); }; }; then
29842   ac_lo=$ac_mid; break
29843 else
29844   echo "$as_me: failed program was:" >&5
29845 sed 's/^/| /' conftest.$ac_ext >&5
29846
29847 ac_hi=`expr '(' $ac_mid ')' - 1`
29848                        if test $ac_mid -le $ac_hi; then
29849                          ac_lo= ac_hi=
29850                          break
29851                        fi
29852                        ac_mid=`expr 2 '*' $ac_mid`
29853 fi
29854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29855   done
29856 else
29857   echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29859
29860 ac_lo= ac_hi=
29861 fi
29862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29863 fi
29864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29865 # Binary search between lo and hi bounds.
29866 while test "x$ac_lo" != "x$ac_hi"; do
29867   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29868   cat >conftest.$ac_ext <<_ACEOF
29869 /* confdefs.h.  */
29870 _ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h.  */
29874
29875   #include <stdio.h>
29876   #include <wchar.h>
29877
29878 int
29879 main ()
29880 {
29881 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
29882 test_array [0] = 0
29883
29884   ;
29885   return 0;
29886 }
29887 _ACEOF
29888 rm -f conftest.$ac_objext
29889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29890   (eval $ac_compile) 2>conftest.er1
29891   ac_status=$?
29892   grep -v '^ *+' conftest.er1 >conftest.err
29893   rm -f conftest.er1
29894   cat conftest.err >&5
29895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896   (exit $ac_status); } &&
29897          { ac_try='test -z "$ac_cxx_werror_flag"
29898                          || test ! -s conftest.err'
29899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900   (eval $ac_try) 2>&5
29901   ac_status=$?
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); }; } &&
29904          { ac_try='test -s conftest.$ac_objext'
29905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29906   (eval $ac_try) 2>&5
29907   ac_status=$?
29908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909   (exit $ac_status); }; }; then
29910   ac_hi=$ac_mid
29911 else
29912   echo "$as_me: failed program was:" >&5
29913 sed 's/^/| /' conftest.$ac_ext >&5
29914
29915 ac_lo=`expr '(' $ac_mid ')' + 1`
29916 fi
29917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29918 done
29919 case $ac_lo in
29920 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
29921 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
29922 See \`config.log' for more details." >&5
29923 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
29924 See \`config.log' for more details." >&2;}
29925    { (exit 1); exit 1; }; } ;;
29926 esac
29927 else
29928   if test "$cross_compiling" = yes; then
29929   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29930 See \`config.log' for more details." >&5
29931 echo "$as_me: error: cannot run test program while cross compiling
29932 See \`config.log' for more details." >&2;}
29933    { (exit 1); exit 1; }; }
29934 else
29935   cat >conftest.$ac_ext <<_ACEOF
29936 /* confdefs.h.  */
29937 _ACEOF
29938 cat confdefs.h >>conftest.$ac_ext
29939 cat >>conftest.$ac_ext <<_ACEOF
29940 /* end confdefs.h.  */
29941
29942   #include <stdio.h>
29943   #include <wchar.h>
29944
29945 long longval () { return (long) (sizeof (wchar_t)); }
29946 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
29947 #include <stdio.h>
29948 #include <stdlib.h>
29949 int
29950 main ()
29951 {
29952
29953   FILE *f = fopen ("conftest.val", "w");
29954   if (! f)
29955     exit (1);
29956   if (((long) (sizeof (wchar_t))) < 0)
29957     {
29958       long i = longval ();
29959       if (i != ((long) (sizeof (wchar_t))))
29960         exit (1);
29961       fprintf (f, "%ld\n", i);
29962     }
29963   else
29964     {
29965       unsigned long i = ulongval ();
29966       if (i != ((long) (sizeof (wchar_t))))
29967         exit (1);
29968       fprintf (f, "%lu\n", i);
29969     }
29970   exit (ferror (f) || fclose (f) != 0);
29971
29972   ;
29973   return 0;
29974 }
29975 _ACEOF
29976 rm -f conftest$ac_exeext
29977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29978   (eval $ac_link) 2>&5
29979   ac_status=$?
29980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983   (eval $ac_try) 2>&5
29984   ac_status=$?
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); }; }; then
29987   ac_cv_sizeof_wchar_t=`cat conftest.val`
29988 else
29989   echo "$as_me: program exited with status $ac_status" >&5
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29992
29993 ( exit $ac_status )
29994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
29995 See \`config.log' for more details." >&5
29996 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
29997 See \`config.log' for more details." >&2;}
29998    { (exit 1); exit 1; }; }
29999 fi
30000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30001 fi
30002 fi
30003 rm -f conftest.val
30004 else
30005   ac_cv_sizeof_wchar_t=0
30006 fi
30007 fi
30008 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
30009 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
30010 cat >>confdefs.h <<_ACEOF
30011 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
30012 _ACEOF
30013
30014
30015 echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
30016 echo $ECHO_N "checking whether the compiler recognizes bool as a built-in type... $ECHO_C" >&6
30017 if test "${ac_cv_cxx_bool+set}" = set; then
30018   echo $ECHO_N "(cached) $ECHO_C" >&6
30019 else
30020
30021
30022  ac_ext=cc
30023 ac_cpp='$CXXCPP $CPPFLAGS'
30024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30027
30028  cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034
30035 int f(int  x){return 1;}
30036 int f(char x){return 1;}
30037 int f(bool x){return 1;}
30038
30039 int
30040 main ()
30041 {
30042 bool b = true; return f(b);
30043   ;
30044   return 0;
30045 }
30046 _ACEOF
30047 rm -f conftest.$ac_objext
30048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30049   (eval $ac_compile) 2>conftest.er1
30050   ac_status=$?
30051   grep -v '^ *+' conftest.er1 >conftest.err
30052   rm -f conftest.er1
30053   cat conftest.err >&5
30054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055   (exit $ac_status); } &&
30056          { ac_try='test -z "$ac_cxx_werror_flag"
30057                          || test ! -s conftest.err'
30058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30059   (eval $ac_try) 2>&5
30060   ac_status=$?
30061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062   (exit $ac_status); }; } &&
30063          { ac_try='test -s conftest.$ac_objext'
30064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065   (eval $ac_try) 2>&5
30066   ac_status=$?
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); }; }; then
30069   ac_cv_cxx_bool=yes
30070 else
30071   echo "$as_me: failed program was:" >&5
30072 sed 's/^/| /' conftest.$ac_ext >&5
30073
30074 ac_cv_cxx_bool=no
30075 fi
30076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30077  ac_ext=cc
30078 ac_cpp='$CXXCPP $CPPFLAGS'
30079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30082
30083
30084 fi
30085 echo "$as_me:$LINENO: result: $ac_cv_cxx_bool" >&5
30086 echo "${ECHO_T}$ac_cv_cxx_bool" >&6
30087 if test "$ac_cv_cxx_bool" = yes; then
30088
30089 cat >>confdefs.h <<\_ACEOF
30090 #define HAVE_BOOL
30091 _ACEOF
30092
30093 fi
30094
30095 if test "$ac_cv_cxx_bool" = yes; then
30096   echo "$as_me:$LINENO: checking for bool" >&5
30097 echo $ECHO_N "checking for bool... $ECHO_C" >&6
30098 if test "${ac_cv_type_bool+set}" = set; then
30099   echo $ECHO_N "(cached) $ECHO_C" >&6
30100 else
30101   cat >conftest.$ac_ext <<_ACEOF
30102 /* confdefs.h.  */
30103 _ACEOF
30104 cat confdefs.h >>conftest.$ac_ext
30105 cat >>conftest.$ac_ext <<_ACEOF
30106 /* end confdefs.h.  */
30107 $ac_includes_default
30108 int
30109 main ()
30110 {
30111 if ((bool *) 0)
30112   return 0;
30113 if (sizeof (bool))
30114   return 0;
30115   ;
30116   return 0;
30117 }
30118 _ACEOF
30119 rm -f conftest.$ac_objext
30120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30121   (eval $ac_compile) 2>conftest.er1
30122   ac_status=$?
30123   grep -v '^ *+' conftest.er1 >conftest.err
30124   rm -f conftest.er1
30125   cat conftest.err >&5
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); } &&
30128          { ac_try='test -z "$ac_cxx_werror_flag"
30129                          || test ! -s conftest.err'
30130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30131   (eval $ac_try) 2>&5
30132   ac_status=$?
30133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134   (exit $ac_status); }; } &&
30135          { ac_try='test -s conftest.$ac_objext'
30136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30137   (eval $ac_try) 2>&5
30138   ac_status=$?
30139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140   (exit $ac_status); }; }; then
30141   ac_cv_type_bool=yes
30142 else
30143   echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30145
30146 ac_cv_type_bool=no
30147 fi
30148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30149 fi
30150 echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
30151 echo "${ECHO_T}$ac_cv_type_bool" >&6
30152
30153 echo "$as_me:$LINENO: checking size of bool" >&5
30154 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
30155 if test "${ac_cv_sizeof_bool+set}" = set; then
30156   echo $ECHO_N "(cached) $ECHO_C" >&6
30157 else
30158   if test "$ac_cv_type_bool" = yes; then
30159   # The cast to unsigned long works around a bug in the HP C Compiler
30160   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30161   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30162   # This bug is HP SR number 8606223364.
30163   if test "$cross_compiling" = yes; then
30164   # Depending upon the size, compute the lo and hi bounds.
30165 cat >conftest.$ac_ext <<_ACEOF
30166 /* confdefs.h.  */
30167 _ACEOF
30168 cat confdefs.h >>conftest.$ac_ext
30169 cat >>conftest.$ac_ext <<_ACEOF
30170 /* end confdefs.h.  */
30171 $ac_includes_default
30172 int
30173 main ()
30174 {
30175 static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= 0)];
30176 test_array [0] = 0
30177
30178   ;
30179   return 0;
30180 }
30181 _ACEOF
30182 rm -f conftest.$ac_objext
30183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30184   (eval $ac_compile) 2>conftest.er1
30185   ac_status=$?
30186   grep -v '^ *+' conftest.er1 >conftest.err
30187   rm -f conftest.er1
30188   cat conftest.err >&5
30189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190   (exit $ac_status); } &&
30191          { ac_try='test -z "$ac_cxx_werror_flag"
30192                          || test ! -s conftest.err'
30193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30194   (eval $ac_try) 2>&5
30195   ac_status=$?
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); }; } &&
30198          { ac_try='test -s conftest.$ac_objext'
30199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200   (eval $ac_try) 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; }; then
30204   ac_lo=0 ac_mid=0
30205   while :; do
30206     cat >conftest.$ac_ext <<_ACEOF
30207 /* confdefs.h.  */
30208 _ACEOF
30209 cat confdefs.h >>conftest.$ac_ext
30210 cat >>conftest.$ac_ext <<_ACEOF
30211 /* end confdefs.h.  */
30212 $ac_includes_default
30213 int
30214 main ()
30215 {
30216 static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
30217 test_array [0] = 0
30218
30219   ;
30220   return 0;
30221 }
30222 _ACEOF
30223 rm -f conftest.$ac_objext
30224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30225   (eval $ac_compile) 2>conftest.er1
30226   ac_status=$?
30227   grep -v '^ *+' conftest.er1 >conftest.err
30228   rm -f conftest.er1
30229   cat conftest.err >&5
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); } &&
30232          { ac_try='test -z "$ac_cxx_werror_flag"
30233                          || test ! -s conftest.err'
30234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235   (eval $ac_try) 2>&5
30236   ac_status=$?
30237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238   (exit $ac_status); }; } &&
30239          { ac_try='test -s conftest.$ac_objext'
30240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30241   (eval $ac_try) 2>&5
30242   ac_status=$?
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); }; }; then
30245   ac_hi=$ac_mid; break
30246 else
30247   echo "$as_me: failed program was:" >&5
30248 sed 's/^/| /' conftest.$ac_ext >&5
30249
30250 ac_lo=`expr $ac_mid + 1`
30251                     if test $ac_lo -le $ac_mid; then
30252                       ac_lo= ac_hi=
30253                       break
30254                     fi
30255                     ac_mid=`expr 2 '*' $ac_mid + 1`
30256 fi
30257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30258   done
30259 else
30260   echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30262
30263 cat >conftest.$ac_ext <<_ACEOF
30264 /* confdefs.h.  */
30265 _ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h.  */
30269 $ac_includes_default
30270 int
30271 main ()
30272 {
30273 static int test_array [1 - 2 * !(((long) (sizeof (bool))) < 0)];
30274 test_array [0] = 0
30275
30276   ;
30277   return 0;
30278 }
30279 _ACEOF
30280 rm -f conftest.$ac_objext
30281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30282   (eval $ac_compile) 2>conftest.er1
30283   ac_status=$?
30284   grep -v '^ *+' conftest.er1 >conftest.err
30285   rm -f conftest.er1
30286   cat conftest.err >&5
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); } &&
30289          { ac_try='test -z "$ac_cxx_werror_flag"
30290                          || test ! -s conftest.err'
30291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30292   (eval $ac_try) 2>&5
30293   ac_status=$?
30294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295   (exit $ac_status); }; } &&
30296          { ac_try='test -s conftest.$ac_objext'
30297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298   (eval $ac_try) 2>&5
30299   ac_status=$?
30300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301   (exit $ac_status); }; }; then
30302   ac_hi=-1 ac_mid=-1
30303   while :; do
30304     cat >conftest.$ac_ext <<_ACEOF
30305 /* confdefs.h.  */
30306 _ACEOF
30307 cat confdefs.h >>conftest.$ac_ext
30308 cat >>conftest.$ac_ext <<_ACEOF
30309 /* end confdefs.h.  */
30310 $ac_includes_default
30311 int
30312 main ()
30313 {
30314 static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= $ac_mid)];
30315 test_array [0] = 0
30316
30317   ;
30318   return 0;
30319 }
30320 _ACEOF
30321 rm -f conftest.$ac_objext
30322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30323   (eval $ac_compile) 2>conftest.er1
30324   ac_status=$?
30325   grep -v '^ *+' conftest.er1 >conftest.err
30326   rm -f conftest.er1
30327   cat conftest.err >&5
30328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329   (exit $ac_status); } &&
30330          { ac_try='test -z "$ac_cxx_werror_flag"
30331                          || test ! -s conftest.err'
30332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30333   (eval $ac_try) 2>&5
30334   ac_status=$?
30335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336   (exit $ac_status); }; } &&
30337          { ac_try='test -s conftest.$ac_objext'
30338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30339   (eval $ac_try) 2>&5
30340   ac_status=$?
30341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342   (exit $ac_status); }; }; then
30343   ac_lo=$ac_mid; break
30344 else
30345   echo "$as_me: failed program was:" >&5
30346 sed 's/^/| /' conftest.$ac_ext >&5
30347
30348 ac_hi=`expr '(' $ac_mid ')' - 1`
30349                        if test $ac_mid -le $ac_hi; then
30350                          ac_lo= ac_hi=
30351                          break
30352                        fi
30353                        ac_mid=`expr 2 '*' $ac_mid`
30354 fi
30355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30356   done
30357 else
30358   echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30360
30361 ac_lo= ac_hi=
30362 fi
30363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30364 fi
30365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30366 # Binary search between lo and hi bounds.
30367 while test "x$ac_lo" != "x$ac_hi"; do
30368   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30369   cat >conftest.$ac_ext <<_ACEOF
30370 /* confdefs.h.  */
30371 _ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h.  */
30375 $ac_includes_default
30376 int
30377 main ()
30378 {
30379 static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
30380 test_array [0] = 0
30381
30382   ;
30383   return 0;
30384 }
30385 _ACEOF
30386 rm -f conftest.$ac_objext
30387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30388   (eval $ac_compile) 2>conftest.er1
30389   ac_status=$?
30390   grep -v '^ *+' conftest.er1 >conftest.err
30391   rm -f conftest.er1
30392   cat conftest.err >&5
30393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394   (exit $ac_status); } &&
30395          { ac_try='test -z "$ac_cxx_werror_flag"
30396                          || test ! -s conftest.err'
30397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30398   (eval $ac_try) 2>&5
30399   ac_status=$?
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); }; } &&
30402          { ac_try='test -s conftest.$ac_objext'
30403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30404   (eval $ac_try) 2>&5
30405   ac_status=$?
30406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407   (exit $ac_status); }; }; then
30408   ac_hi=$ac_mid
30409 else
30410   echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30412
30413 ac_lo=`expr '(' $ac_mid ')' + 1`
30414 fi
30415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30416 done
30417 case $ac_lo in
30418 ?*) ac_cv_sizeof_bool=$ac_lo;;
30419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
30420 See \`config.log' for more details." >&5
30421 echo "$as_me: error: cannot compute sizeof (bool), 77
30422 See \`config.log' for more details." >&2;}
30423    { (exit 1); exit 1; }; } ;;
30424 esac
30425 else
30426   if test "$cross_compiling" = yes; then
30427   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30428 See \`config.log' for more details." >&5
30429 echo "$as_me: error: cannot run test program while cross compiling
30430 See \`config.log' for more details." >&2;}
30431    { (exit 1); exit 1; }; }
30432 else
30433   cat >conftest.$ac_ext <<_ACEOF
30434 /* confdefs.h.  */
30435 _ACEOF
30436 cat confdefs.h >>conftest.$ac_ext
30437 cat >>conftest.$ac_ext <<_ACEOF
30438 /* end confdefs.h.  */
30439 $ac_includes_default
30440 long longval () { return (long) (sizeof (bool)); }
30441 unsigned long ulongval () { return (long) (sizeof (bool)); }
30442 #include <stdio.h>
30443 #include <stdlib.h>
30444 int
30445 main ()
30446 {
30447
30448   FILE *f = fopen ("conftest.val", "w");
30449   if (! f)
30450     exit (1);
30451   if (((long) (sizeof (bool))) < 0)
30452     {
30453       long i = longval ();
30454       if (i != ((long) (sizeof (bool))))
30455         exit (1);
30456       fprintf (f, "%ld\n", i);
30457     }
30458   else
30459     {
30460       unsigned long i = ulongval ();
30461       if (i != ((long) (sizeof (bool))))
30462         exit (1);
30463       fprintf (f, "%lu\n", i);
30464     }
30465   exit (ferror (f) || fclose (f) != 0);
30466
30467   ;
30468   return 0;
30469 }
30470 _ACEOF
30471 rm -f conftest$ac_exeext
30472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30473   (eval $ac_link) 2>&5
30474   ac_status=$?
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30478   (eval $ac_try) 2>&5
30479   ac_status=$?
30480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481   (exit $ac_status); }; }; then
30482   ac_cv_sizeof_bool=`cat conftest.val`
30483 else
30484   echo "$as_me: program exited with status $ac_status" >&5
30485 echo "$as_me: failed program was:" >&5
30486 sed 's/^/| /' conftest.$ac_ext >&5
30487
30488 ( exit $ac_status )
30489 { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
30490 See \`config.log' for more details." >&5
30491 echo "$as_me: error: cannot compute sizeof (bool), 77
30492 See \`config.log' for more details." >&2;}
30493    { (exit 1); exit 1; }; }
30494 fi
30495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30496 fi
30497 fi
30498 rm -f conftest.val
30499 else
30500   ac_cv_sizeof_bool=0
30501 fi
30502 fi
30503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5
30504 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
30505 cat >>confdefs.h <<_ACEOF
30506 #define SIZEOF_BOOL $ac_cv_sizeof_bool
30507 _ACEOF
30508
30509
30510 fi
30511 echo "$as_me:$LINENO: checking whether the compiler supports the mutable keyword" >&5
30512 echo $ECHO_N "checking whether the compiler supports the mutable keyword... $ECHO_C" >&6
30513 if test "${ac_cv_cxx_mutable+set}" = set; then
30514   echo $ECHO_N "(cached) $ECHO_C" >&6
30515 else
30516
30517
30518  ac_ext=cc
30519 ac_cpp='$CXXCPP $CPPFLAGS'
30520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30523
30524  cat >conftest.$ac_ext <<_ACEOF
30525 /* confdefs.h.  */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h.  */
30530
30531 class A { mutable int i;
30532           public:
30533           int f (int n) const { i = n; return i; }
30534         };
30535
30536 int
30537 main ()
30538 {
30539 A a; return a.f (1);
30540   ;
30541   return 0;
30542 }
30543 _ACEOF
30544 rm -f conftest.$ac_objext
30545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30546   (eval $ac_compile) 2>conftest.er1
30547   ac_status=$?
30548   grep -v '^ *+' conftest.er1 >conftest.err
30549   rm -f conftest.er1
30550   cat conftest.err >&5
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); } &&
30553          { ac_try='test -z "$ac_cxx_werror_flag"
30554                          || test ! -s conftest.err'
30555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556   (eval $ac_try) 2>&5
30557   ac_status=$?
30558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559   (exit $ac_status); }; } &&
30560          { ac_try='test -s conftest.$ac_objext'
30561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562   (eval $ac_try) 2>&5
30563   ac_status=$?
30564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565   (exit $ac_status); }; }; then
30566   ac_cv_cxx_mutable=yes
30567 else
30568   echo "$as_me: failed program was:" >&5
30569 sed 's/^/| /' conftest.$ac_ext >&5
30570
30571 ac_cv_cxx_mutable=no
30572 fi
30573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30574  ac_ext=cc
30575 ac_cpp='$CXXCPP $CPPFLAGS'
30576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30579
30580
30581 fi
30582 echo "$as_me:$LINENO: result: $ac_cv_cxx_mutable" >&5
30583 echo "${ECHO_T}$ac_cv_cxx_mutable" >&6
30584 if test "$ac_cv_cxx_mutable" = yes; then
30585
30586 cat >>confdefs.h <<\_ACEOF
30587 #define HAVE_MUTABLE
30588 _ACEOF
30589
30590 fi
30591
30592 echo "$as_me:$LINENO: checking whether the compiler recognizes typename" >&5
30593 echo $ECHO_N "checking whether the compiler recognizes typename... $ECHO_C" >&6
30594 if test "${ac_cv_cxx_typename+set}" = set; then
30595   echo $ECHO_N "(cached) $ECHO_C" >&6
30596 else
30597
30598
30599  ac_ext=cc
30600 ac_cpp='$CXXCPP $CPPFLAGS'
30601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30604
30605  cat >conftest.$ac_ext <<_ACEOF
30606 /* confdefs.h.  */
30607 _ACEOF
30608 cat confdefs.h >>conftest.$ac_ext
30609 cat >>conftest.$ac_ext <<_ACEOF
30610 /* end confdefs.h.  */
30611 template<typename T>class X {public:X(){}};
30612 int
30613 main ()
30614 {
30615 X<float> z; return 0;
30616   ;
30617   return 0;
30618 }
30619 _ACEOF
30620 rm -f conftest.$ac_objext
30621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30622   (eval $ac_compile) 2>conftest.er1
30623   ac_status=$?
30624   grep -v '^ *+' conftest.er1 >conftest.err
30625   rm -f conftest.er1
30626   cat conftest.err >&5
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); } &&
30629          { ac_try='test -z "$ac_cxx_werror_flag"
30630                          || test ! -s conftest.err'
30631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632   (eval $ac_try) 2>&5
30633   ac_status=$?
30634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635   (exit $ac_status); }; } &&
30636          { ac_try='test -s conftest.$ac_objext'
30637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30638   (eval $ac_try) 2>&5
30639   ac_status=$?
30640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641   (exit $ac_status); }; }; then
30642   ac_cv_cxx_typename=yes
30643 else
30644   echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30646
30647 ac_cv_cxx_typename=no
30648 fi
30649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30650  ac_ext=cc
30651 ac_cpp='$CXXCPP $CPPFLAGS'
30652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30655
30656
30657 fi
30658 echo "$as_me:$LINENO: result: $ac_cv_cxx_typename" >&5
30659 echo "${ECHO_T}$ac_cv_cxx_typename" >&6
30660 if test "$ac_cv_cxx_typename" = yes; then
30661
30662 cat >>confdefs.h <<\_ACEOF
30663 #define HAVE_TYPENAME
30664 _ACEOF
30665
30666 fi
30667
30668 echo "$as_me:$LINENO: checking whether the compiler accepts the new for scoping rules" >&5
30669 echo $ECHO_N "checking whether the compiler accepts the new for scoping rules... $ECHO_C" >&6
30670 if test "${ac_cv_cxx_new_for_scoping+set}" = set; then
30671   echo $ECHO_N "(cached) $ECHO_C" >&6
30672 else
30673
30674
30675  ac_ext=cc
30676 ac_cpp='$CXXCPP $CPPFLAGS'
30677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30680
30681  cat >conftest.$ac_ext <<_ACEOF
30682 /* confdefs.h.  */
30683 _ACEOF
30684 cat confdefs.h >>conftest.$ac_ext
30685 cat >>conftest.$ac_ext <<_ACEOF
30686 /* end confdefs.h.  */
30687
30688 int
30689 main ()
30690 {
30691
30692   int z = 0;
30693   for (int i = 0; i < 10; ++i)
30694     z = z + i;
30695   for (int i = 0; i < 10; ++i)
30696     z = z - i;
30697   return z;
30698   ;
30699   return 0;
30700 }
30701 _ACEOF
30702 rm -f conftest.$ac_objext
30703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30704   (eval $ac_compile) 2>conftest.er1
30705   ac_status=$?
30706   grep -v '^ *+' conftest.er1 >conftest.err
30707   rm -f conftest.er1
30708   cat conftest.err >&5
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); } &&
30711          { ac_try='test -z "$ac_cxx_werror_flag"
30712                          || test ! -s conftest.err'
30713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714   (eval $ac_try) 2>&5
30715   ac_status=$?
30716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717   (exit $ac_status); }; } &&
30718          { ac_try='test -s conftest.$ac_objext'
30719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30720   (eval $ac_try) 2>&5
30721   ac_status=$?
30722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723   (exit $ac_status); }; }; then
30724   ac_cv_cxx_new_for_scoping=yes
30725 else
30726   echo "$as_me: failed program was:" >&5
30727 sed 's/^/| /' conftest.$ac_ext >&5
30728
30729 ac_cv_cxx_new_for_scoping=no
30730 fi
30731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30732  ac_ext=cc
30733 ac_cpp='$CXXCPP $CPPFLAGS'
30734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30737
30738
30739 fi
30740 echo "$as_me:$LINENO: result: $ac_cv_cxx_new_for_scoping" >&5
30741 echo "${ECHO_T}$ac_cv_cxx_new_for_scoping" >&6
30742 if test "$ac_cv_cxx_new_for_scoping" = yes; then
30743
30744 cat >>confdefs.h <<\_ACEOF
30745 #define HAVE_NEW_FOR_SCOPING
30746 _ACEOF
30747
30748 fi
30749
30750 echo "$as_me:$LINENO: checking whether the compiler supports placement operator delete" >&5
30751 echo $ECHO_N "checking whether the compiler supports placement operator delete... $ECHO_C" >&6
30752 if test "${ac_cv_cxx_placement_operator_delete+set}" = set; then
30753   echo $ECHO_N "(cached) $ECHO_C" >&6
30754 else
30755
30756
30757  ac_ext=cc
30758 ac_cpp='$CXXCPP $CPPFLAGS'
30759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30762
30763  cat >conftest.$ac_ext <<_ACEOF
30764 /* confdefs.h.  */
30765 _ACEOF
30766 cat confdefs.h >>conftest.$ac_ext
30767 cat >>conftest.$ac_ext <<_ACEOF
30768 /* end confdefs.h.  */
30769 #include <stddef.h>
30770 int
30771 main ()
30772 {
30773 class Thing {
30774    public:
30775     Thing() { };
30776     void *operator new(size_t,bool) { };
30777     void operator delete(size_t,void*) { };
30778    };
30779   ;
30780   return 0;
30781 }
30782 _ACEOF
30783 rm -f conftest.$ac_objext
30784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30785   (eval $ac_compile) 2>conftest.er1
30786   ac_status=$?
30787   grep -v '^ *+' conftest.er1 >conftest.err
30788   rm -f conftest.er1
30789   cat conftest.err >&5
30790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791   (exit $ac_status); } &&
30792          { ac_try='test -z "$ac_cxx_werror_flag"
30793                          || test ! -s conftest.err'
30794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30795   (eval $ac_try) 2>&5
30796   ac_status=$?
30797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30798   (exit $ac_status); }; } &&
30799          { ac_try='test -s conftest.$ac_objext'
30800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30801   (eval $ac_try) 2>&5
30802   ac_status=$?
30803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804   (exit $ac_status); }; }; then
30805   ac_cv_cxx_placement_operator_delete=yes
30806 else
30807   echo "$as_me: failed program was:" >&5
30808 sed 's/^/| /' conftest.$ac_ext >&5
30809
30810 ac_cv_cxx_placement_operator_delete=no
30811 fi
30812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30813  ac_ext=cc
30814 ac_cpp='$CXXCPP $CPPFLAGS'
30815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30818
30819
30820 fi
30821 echo "$as_me:$LINENO: result: $ac_cv_cxx_placement_operator_delete" >&5
30822 echo "${ECHO_T}$ac_cv_cxx_placement_operator_delete" >&6
30823 if test "$ac_cv_cxx_placement_operator_delete" = yes; then
30824
30825 cat >>confdefs.h <<\_ACEOF
30826 #define HAVE_PLACEMENT_OPERATOR_DELETE
30827 _ACEOF
30828
30829 fi
30830
30831 echo "$as_me:$LINENO: checking whether the compiler supports dynamic_cast<>" >&5
30832 echo $ECHO_N "checking whether the compiler supports dynamic_cast<>... $ECHO_C" >&6
30833 if test "${ac_cv_cxx_dynamic_cast+set}" = set; then
30834   echo $ECHO_N "(cached) $ECHO_C" >&6
30835 else
30836
30837
30838  ac_ext=cc
30839 ac_cpp='$CXXCPP $CPPFLAGS'
30840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30843
30844  cat >conftest.$ac_ext <<_ACEOF
30845 /* confdefs.h.  */
30846 _ACEOF
30847 cat confdefs.h >>conftest.$ac_ext
30848 cat >>conftest.$ac_ext <<_ACEOF
30849 /* end confdefs.h.  */
30850 #include <typeinfo>
30851 class Base { public : Base () {} virtual void f () = 0;};
30852 class Derived : public Base { public : Derived () {} virtual void f () {} };
30853 int
30854 main ()
30855 {
30856
30857 Derived d; Base& b=d; return dynamic_cast<Derived*>(&b) ? 0 : 1;
30858   ;
30859   return 0;
30860 }
30861 _ACEOF
30862 rm -f conftest.$ac_objext
30863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30864   (eval $ac_compile) 2>conftest.er1
30865   ac_status=$?
30866   grep -v '^ *+' conftest.er1 >conftest.err
30867   rm -f conftest.er1
30868   cat conftest.err >&5
30869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870   (exit $ac_status); } &&
30871          { ac_try='test -z "$ac_cxx_werror_flag"
30872                          || test ! -s conftest.err'
30873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30874   (eval $ac_try) 2>&5
30875   ac_status=$?
30876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877   (exit $ac_status); }; } &&
30878          { ac_try='test -s conftest.$ac_objext'
30879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30880   (eval $ac_try) 2>&5
30881   ac_status=$?
30882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883   (exit $ac_status); }; }; then
30884   ac_cv_cxx_dynamic_cast=yes
30885 else
30886   echo "$as_me: failed program was:" >&5
30887 sed 's/^/| /' conftest.$ac_ext >&5
30888
30889 ac_cv_cxx_dynamic_cast=no
30890 fi
30891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30892  ac_ext=cc
30893 ac_cpp='$CXXCPP $CPPFLAGS'
30894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30897
30898
30899 fi
30900 echo "$as_me:$LINENO: result: $ac_cv_cxx_dynamic_cast" >&5
30901 echo "${ECHO_T}$ac_cv_cxx_dynamic_cast" >&6
30902 if test "$ac_cv_cxx_dynamic_cast" = yes; then
30903
30904 cat >>confdefs.h <<\_ACEOF
30905 #define HAVE_DYNAMIC_CAST
30906 _ACEOF
30907
30908 fi
30909
30910 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30911 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
30912 if test "${ac_cv_cxx_namespaces+set}" = set; then
30913   echo $ECHO_N "(cached) $ECHO_C" >&6
30914 else
30915
30916
30917  ac_ext=cc
30918 ac_cpp='$CXXCPP $CPPFLAGS'
30919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30922
30923  cat >conftest.$ac_ext <<_ACEOF
30924 /* confdefs.h.  */
30925 _ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h.  */
30929 namespace Outer { namespace Inner { int i = 0; }}
30930 int
30931 main ()
30932 {
30933 using namespace Outer::Inner; return i;
30934   ;
30935   return 0;
30936 }
30937 _ACEOF
30938 rm -f conftest.$ac_objext
30939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30940   (eval $ac_compile) 2>conftest.er1
30941   ac_status=$?
30942   grep -v '^ *+' conftest.er1 >conftest.err
30943   rm -f conftest.er1
30944   cat conftest.err >&5
30945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946   (exit $ac_status); } &&
30947          { ac_try='test -z "$ac_cxx_werror_flag"
30948                          || test ! -s conftest.err'
30949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30950   (eval $ac_try) 2>&5
30951   ac_status=$?
30952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953   (exit $ac_status); }; } &&
30954          { ac_try='test -s conftest.$ac_objext'
30955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30956   (eval $ac_try) 2>&5
30957   ac_status=$?
30958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959   (exit $ac_status); }; }; then
30960   ac_cv_cxx_namespaces=yes
30961 else
30962   echo "$as_me: failed program was:" >&5
30963 sed 's/^/| /' conftest.$ac_ext >&5
30964
30965 ac_cv_cxx_namespaces=no
30966 fi
30967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30968  ac_ext=cc
30969 ac_cpp='$CXXCPP $CPPFLAGS'
30970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30973
30974
30975 fi
30976 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30977 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
30978 if test "$ac_cv_cxx_namespaces" = yes; then
30979
30980 cat >>confdefs.h <<\_ACEOF
30981 #define HAVE_NAMESPACES
30982 _ACEOF
30983
30984 fi
30985
30986 echo "$as_me:$LINENO: checking whether the compiler supports explicit instantiations" >&5
30987 echo $ECHO_N "checking whether the compiler supports explicit instantiations... $ECHO_C" >&6
30988 if test "${ac_cv_cxx_explinst+set}" = set; then
30989   echo $ECHO_N "(cached) $ECHO_C" >&6
30990 else
30991
30992
30993  ac_ext=cc
30994 ac_cpp='$CXXCPP $CPPFLAGS'
30995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30998
30999  cat >conftest.$ac_ext <<_ACEOF
31000 /* confdefs.h.  */
31001 _ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h.  */
31005 template <class T> class A { T t; }; template class A<int>;
31006 int
31007 main ()
31008 {
31009
31010   ;
31011   return 0;
31012 }
31013 _ACEOF
31014 rm -f conftest.$ac_objext
31015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31016   (eval $ac_compile) 2>conftest.er1
31017   ac_status=$?
31018   grep -v '^ *+' conftest.er1 >conftest.err
31019   rm -f conftest.er1
31020   cat conftest.err >&5
31021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022   (exit $ac_status); } &&
31023          { ac_try='test -z "$ac_cxx_werror_flag"
31024                          || test ! -s conftest.err'
31025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31026   (eval $ac_try) 2>&5
31027   ac_status=$?
31028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029   (exit $ac_status); }; } &&
31030          { ac_try='test -s conftest.$ac_objext'
31031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032   (eval $ac_try) 2>&5
31033   ac_status=$?
31034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035   (exit $ac_status); }; }; then
31036   ac_cv_cxx_explinst=yes
31037 else
31038   echo "$as_me: failed program was:" >&5
31039 sed 's/^/| /' conftest.$ac_ext >&5
31040
31041 ac_cv_cxx_explinst=no
31042 fi
31043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31044  ac_ext=cc
31045 ac_cpp='$CXXCPP $CPPFLAGS'
31046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31049
31050
31051 fi
31052 echo "$as_me:$LINENO: result: $ac_cv_cxx_explinst" >&5
31053 echo "${ECHO_T}$ac_cv_cxx_explinst" >&6
31054 if test "$ac_cv_cxx_explinst" = yes; then
31055
31056 cat >>confdefs.h <<\_ACEOF
31057 #define HAVE_INSTANTIATIONS
31058 _ACEOF
31059
31060 fi
31061
31062 echo "$as_me:$LINENO: checking for placement operator new" >&5
31063 echo $ECHO_N "checking for placement operator new... $ECHO_C" >&6
31064 if test "${ac_cv_cxx_placement_operator_new+set}" = set; then
31065   echo $ECHO_N "(cached) $ECHO_C" >&6
31066 else
31067   cat >conftest.$ac_ext <<_ACEOF
31068 /* confdefs.h.  */
31069 _ACEOF
31070 cat confdefs.h >>conftest.$ac_ext
31071 cat >>conftest.$ac_ext <<_ACEOF
31072 /* end confdefs.h.  */
31073 #include <stddef.h>
31074 #ifdef HAVE_NEW
31075 #include <new>
31076 #else
31077 #include <new.h>
31078 #endif
31079 class A {
31080 public:
31081   A() {};
31082 };
31083 A* foo()
31084 {
31085   void *x;
31086   A *bar = new (x) A;
31087   return bar;
31088 };
31089 int
31090 main ()
31091 {
31092
31093   ;
31094   return 0;
31095 }
31096 _ACEOF
31097 rm -f conftest.$ac_objext
31098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31099   (eval $ac_compile) 2>conftest.er1
31100   ac_status=$?
31101   grep -v '^ *+' conftest.er1 >conftest.err
31102   rm -f conftest.er1
31103   cat conftest.err >&5
31104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); } &&
31106          { ac_try='test -z "$ac_cxx_werror_flag"
31107                          || test ! -s conftest.err'
31108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31109   (eval $ac_try) 2>&5
31110   ac_status=$?
31111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112   (exit $ac_status); }; } &&
31113          { ac_try='test -s conftest.$ac_objext'
31114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31115   (eval $ac_try) 2>&5
31116   ac_status=$?
31117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118   (exit $ac_status); }; }; then
31119   ac_cv_cxx_placement_operator_new=yes
31120 else
31121   echo "$as_me: failed program was:" >&5
31122 sed 's/^/| /' conftest.$ac_ext >&5
31123
31124 ac_cv_cxx_placement_operator_new=no
31125 fi
31126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31127
31128 fi
31129 echo "$as_me:$LINENO: result: $ac_cv_cxx_placement_operator_new" >&5
31130 echo "${ECHO_T}$ac_cv_cxx_placement_operator_new" >&6
31131 if test "$ac_cv_cxx_placement_operator_new" = yes; then
31132
31133 cat >>confdefs.h <<\_ACEOF
31134 #define HAVE_PLACEMENT_OPERATOR_NEW 1
31135 _ACEOF
31136
31137 fi
31138 echo "$as_me:$LINENO: checking whether the C++ compiler supports the std namespace" >&5
31139 echo $ECHO_N "checking whether the C++ compiler supports the std namespace... $ECHO_C" >&6
31140 if test "${ac_cv_cxx_namespace_std+set}" = set; then
31141   echo $ECHO_N "(cached) $ECHO_C" >&6
31142 else
31143   cat >conftest.$ac_ext <<_ACEOF
31144 /* confdefs.h.  */
31145 _ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h.  */
31149
31150 #ifdef HAVE_NEW
31151 #include <new>
31152 #else
31153 #include <new.h>
31154 #endif
31155 int
31156 main ()
31157 {
31158
31159 std::set_new_handler(0);
31160   ;
31161   return 0;
31162 }
31163 _ACEOF
31164 rm -f conftest.$ac_objext
31165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31166   (eval $ac_compile) 2>conftest.er1
31167   ac_status=$?
31168   grep -v '^ *+' conftest.er1 >conftest.err
31169   rm -f conftest.er1
31170   cat conftest.err >&5
31171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172   (exit $ac_status); } &&
31173          { ac_try='test -z "$ac_cxx_werror_flag"
31174                          || test ! -s conftest.err'
31175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31176   (eval $ac_try) 2>&5
31177   ac_status=$?
31178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179   (exit $ac_status); }; } &&
31180          { ac_try='test -s conftest.$ac_objext'
31181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31182   (eval $ac_try) 2>&5
31183   ac_status=$?
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); }; }; then
31186   ac_cv_cxx_namespace_std=yes
31187 else
31188   echo "$as_me: failed program was:" >&5
31189 sed 's/^/| /' conftest.$ac_ext >&5
31190
31191 ac_cv_cxx_namespace_std=no
31192 fi
31193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31194
31195 fi
31196 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespace_std" >&5
31197 echo "${ECHO_T}$ac_cv_cxx_namespace_std" >&6
31198 if test "$ac_cv_cxx_namespace_std" = yes; then
31199
31200 cat >>confdefs.h <<\_ACEOF
31201 #define HAVE_NAMESPACE_STD 1
31202 _ACEOF
31203
31204 fi
31205 if test "$GXX"; then
31206   echo "$as_me:$LINENO: checking whether GNU C++ supports automatic template instantiation" >&5
31207 echo $ECHO_N "checking whether GNU C++ supports automatic template instantiation... $ECHO_C" >&6
31208 if test "${ac_cv_c_gnu_automatic_templates+set}" = set; then
31209   echo $ECHO_N "(cached) $ECHO_C" >&6
31210 else
31211   cat >conftest.$ac_ext <<_ACEOF
31212 /* confdefs.h.  */
31213 _ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h.  */
31217
31218 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 8)
31219   yes
31220 #endif
31221
31222 _ACEOF
31223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31224   $EGREP "yes" >/dev/null 2>&1; then
31225   ac_cv_c_gnu_automatic_templates=yes
31226 else
31227   ac_cv_c_gnu_automatic_templates=no
31228 fi
31229 rm -f conftest*
31230
31231
31232 fi
31233 echo "$as_me:$LINENO: result: $ac_cv_c_gnu_automatic_templates" >&5
31234 echo "${ECHO_T}$ac_cv_c_gnu_automatic_templates" >&6
31235   if test "$ac_cv_c_gnu_automatic_templates" = yes; then
31236
31237 cat >>confdefs.h <<\_ACEOF
31238 #define SP_DEFINE_TEMPLATES 1
31239 _ACEOF
31240
31241   else
31242
31243 cat >>confdefs.h <<\_ACEOF
31244 #define SP_MANUAL_INST 1
31245 _ACEOF
31246
31247     CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
31248   fi
31249   echo "$as_me:$LINENO: checking whether GNU C++ links with libg++ if we include new.h" >&5
31250 echo $ECHO_N "checking whether GNU C++ links with libg++ if we include new.h... $ECHO_C" >&6
31251 if test "${ac_cv_cxx_gnu_avoid_new_h+set}" = set; then
31252   echo $ECHO_N "(cached) $ECHO_C" >&6
31253 else
31254   cat >conftest.$ac_ext <<_ACEOF
31255 /* confdefs.h.  */
31256 _ACEOF
31257 cat confdefs.h >>conftest.$ac_ext
31258 cat >>conftest.$ac_ext <<_ACEOF
31259 /* end confdefs.h.  */
31260
31261 #if (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
31262   yes
31263 #endif
31264
31265 _ACEOF
31266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31267   $EGREP "yes" >/dev/null 2>&1; then
31268   ac_cv_cxx_gnu_avoid_new_h=yes
31269 else
31270   ac_cv_cxx_gnu_avoid_new_h=no
31271 fi
31272 rm -f conftest*
31273
31274
31275 fi
31276 echo "$as_me:$LINENO: result: $ac_cv_cxx_gnu_avoid_new_h" >&5
31277 echo "${ECHO_T}$ac_cv_cxx_gnu_avoid_new_h" >&6
31278   if test "$ac_cv_cxx_gnu_avoid_new_h" = yes; then
31279
31280 cat >>confdefs.h <<\_ACEOF
31281 #define SP_NEW_H_MISSING 1
31282 _ACEOF
31283
31284     echo "$as_me:$LINENO: checking whether to declare set_new_handler extern \"C\"" >&5
31285 echo $ECHO_N "checking whether to declare set_new_handler extern \"C\"... $ECHO_C" >&6
31286 if test "${ac_cv_cxx_new_handler_extern_c+set}" = set; then
31287   echo $ECHO_N "(cached) $ECHO_C" >&6
31288 else
31289   cat >conftest.$ac_ext <<_ACEOF
31290 /* confdefs.h.  */
31291 _ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h.  */
31295
31296 typedef void (*new_handler)();
31297 new_handler set_new_handler(new_handler);
31298 int
31299 main ()
31300 {
31301
31302 set_new_handler(0);
31303   ;
31304   return 0;
31305 }
31306 _ACEOF
31307 rm -f conftest.$ac_objext conftest$ac_exeext
31308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31309   (eval $ac_link) 2>conftest.er1
31310   ac_status=$?
31311   grep -v '^ *+' conftest.er1 >conftest.err
31312   rm -f conftest.er1
31313   cat conftest.err >&5
31314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315   (exit $ac_status); } &&
31316          { ac_try='test -z "$ac_cxx_werror_flag"
31317                          || test ! -s conftest.err'
31318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319   (eval $ac_try) 2>&5
31320   ac_status=$?
31321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322   (exit $ac_status); }; } &&
31323          { ac_try='test -s conftest$ac_exeext'
31324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325   (eval $ac_try) 2>&5
31326   ac_status=$?
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); }; }; then
31329   ac_cv_cxx_new_handler_extern_c=no
31330 else
31331   echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31333
31334 ac_cv_cxx_new_handler_extern_c=yes
31335 fi
31336 rm -f conftest.err conftest.$ac_objext \
31337       conftest$ac_exeext conftest.$ac_ext
31338
31339 fi
31340 echo "$as_me:$LINENO: result: $ac_cv_cxx_new_handler_extern_c" >&5
31341 echo "${ECHO_T}$ac_cv_cxx_new_handler_extern_c" >&6
31342     if test "$ac_cv_cxx_new_handler_extern_c" = yes; then
31343
31344 cat >>confdefs.h <<\_ACEOF
31345 #define SP_SET_NEW_HANDLER_EXTERN_C 1
31346 _ACEOF
31347
31348     fi
31349   fi
31350 fi
31351 echo "$as_me:$LINENO: checking whether new_handler accepts size_t and returns int" >&5
31352 echo $ECHO_N "checking whether new_handler accepts size_t and returns int... $ECHO_C" >&6
31353 if test "${ac_cv_cxx_fancy_new_handler+set}" = set; then
31354   echo $ECHO_N "(cached) $ECHO_C" >&6
31355 else
31356   cat >conftest.$ac_ext <<_ACEOF
31357 /* confdefs.h.  */
31358 _ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h.  */
31362
31363 #include <stddef.h>
31364 #include <new.h>
31365 int oom(size_t) { }
31366 int
31367 main ()
31368 {
31369 set_new_handler(oom);
31370   ;
31371   return 0;
31372 }
31373 _ACEOF
31374 rm -f conftest.$ac_objext
31375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31376   (eval $ac_compile) 2>conftest.er1
31377   ac_status=$?
31378   grep -v '^ *+' conftest.er1 >conftest.err
31379   rm -f conftest.er1
31380   cat conftest.err >&5
31381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382   (exit $ac_status); } &&
31383          { ac_try='test -z "$ac_cxx_werror_flag"
31384                          || test ! -s conftest.err'
31385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386   (eval $ac_try) 2>&5
31387   ac_status=$?
31388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389   (exit $ac_status); }; } &&
31390          { ac_try='test -s conftest.$ac_objext'
31391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31392   (eval $ac_try) 2>&5
31393   ac_status=$?
31394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395   (exit $ac_status); }; }; then
31396   ac_cv_cxx_fancy_new_handler=yes
31397 else
31398   echo "$as_me: failed program was:" >&5
31399 sed 's/^/| /' conftest.$ac_ext >&5
31400
31401 ac_cv_cxx_fancy_new_handler=no
31402 fi
31403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31404
31405 fi
31406 echo "$as_me:$LINENO: result: $ac_cv_cxx_fancy_new_handler" >&5
31407 echo "${ECHO_T}$ac_cv_cxx_fancy_new_handler" >&6
31408 if test "$ac_cv_cxx_fancy_new_handler" = yes; then
31409
31410 cat >>confdefs.h <<\_ACEOF
31411 #define SP_FANCY_NEW_HANDLER 1
31412 _ACEOF
31413
31414 fi
31415
31416
31417
31418
31419
31420 for ac_func in memmove memcmp strerror strtoul
31421 do
31422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31423 echo "$as_me:$LINENO: checking for $ac_func" >&5
31424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31425 if eval "test \"\${$as_ac_var+set}\" = set"; then
31426   echo $ECHO_N "(cached) $ECHO_C" >&6
31427 else
31428   cat >conftest.$ac_ext <<_ACEOF
31429 /* confdefs.h.  */
31430 _ACEOF
31431 cat confdefs.h >>conftest.$ac_ext
31432 cat >>conftest.$ac_ext <<_ACEOF
31433 /* end confdefs.h.  */
31434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31435    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31436 #define $ac_func innocuous_$ac_func
31437
31438 /* System header to define __stub macros and hopefully few prototypes,
31439     which can conflict with char $ac_func (); below.
31440     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31441     <limits.h> exists even on freestanding compilers.  */
31442
31443 #ifdef __STDC__
31444 # include <limits.h>
31445 #else
31446 # include <assert.h>
31447 #endif
31448
31449 #undef $ac_func
31450
31451 /* Override any gcc2 internal prototype to avoid an error.  */
31452 #ifdef __cplusplus
31453 extern "C"
31454 {
31455 #endif
31456 /* We use char because int might match the return type of a gcc2
31457    builtin and then its argument prototype would still apply.  */
31458 char $ac_func ();
31459 /* The GNU C library defines this for functions which it implements
31460     to always fail with ENOSYS.  Some functions are actually named
31461     something starting with __ and the normal name is an alias.  */
31462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31463 choke me
31464 #else
31465 char (*f) () = $ac_func;
31466 #endif
31467 #ifdef __cplusplus
31468 }
31469 #endif
31470
31471 int
31472 main ()
31473 {
31474 return f != $ac_func;
31475   ;
31476   return 0;
31477 }
31478 _ACEOF
31479 rm -f conftest.$ac_objext conftest$ac_exeext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31481   (eval $ac_link) 2>conftest.er1
31482   ac_status=$?
31483   grep -v '^ *+' conftest.er1 >conftest.err
31484   rm -f conftest.er1
31485   cat conftest.err >&5
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); } &&
31488          { ac_try='test -z "$ac_cxx_werror_flag"
31489                          || test ! -s conftest.err'
31490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491   (eval $ac_try) 2>&5
31492   ac_status=$?
31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494   (exit $ac_status); }; } &&
31495          { ac_try='test -s conftest$ac_exeext'
31496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497   (eval $ac_try) 2>&5
31498   ac_status=$?
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); }; }; then
31501   eval "$as_ac_var=yes"
31502 else
31503   echo "$as_me: failed program was:" >&5
31504 sed 's/^/| /' conftest.$ac_ext >&5
31505
31506 eval "$as_ac_var=no"
31507 fi
31508 rm -f conftest.err conftest.$ac_objext \
31509       conftest$ac_exeext conftest.$ac_ext
31510 fi
31511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31513 if test `eval echo '${'$as_ac_var'}'` = yes; then
31514   cat >>confdefs.h <<_ACEOF
31515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31516 _ACEOF
31517
31518 else
31519   case $LIBOBJS in
31520     "$ac_func.$ac_objext"   | \
31521   *" $ac_func.$ac_objext"   | \
31522     "$ac_func.$ac_objext "* | \
31523   *" $ac_func.$ac_objext "* ) ;;
31524   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
31525 esac
31526
31527 fi
31528 done
31529
31530
31531
31532 for ac_func in setlocale
31533 do
31534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31535 echo "$as_me:$LINENO: checking for $ac_func" >&5
31536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31537 if eval "test \"\${$as_ac_var+set}\" = set"; then
31538   echo $ECHO_N "(cached) $ECHO_C" >&6
31539 else
31540   cat >conftest.$ac_ext <<_ACEOF
31541 /* confdefs.h.  */
31542 _ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h.  */
31546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31548 #define $ac_func innocuous_$ac_func
31549
31550 /* System header to define __stub macros and hopefully few prototypes,
31551     which can conflict with char $ac_func (); below.
31552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31553     <limits.h> exists even on freestanding compilers.  */
31554
31555 #ifdef __STDC__
31556 # include <limits.h>
31557 #else
31558 # include <assert.h>
31559 #endif
31560
31561 #undef $ac_func
31562
31563 /* Override any gcc2 internal prototype to avoid an error.  */
31564 #ifdef __cplusplus
31565 extern "C"
31566 {
31567 #endif
31568 /* We use char because int might match the return type of a gcc2
31569    builtin and then its argument prototype would still apply.  */
31570 char $ac_func ();
31571 /* The GNU C library defines this for functions which it implements
31572     to always fail with ENOSYS.  Some functions are actually named
31573     something starting with __ and the normal name is an alias.  */
31574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31575 choke me
31576 #else
31577 char (*f) () = $ac_func;
31578 #endif
31579 #ifdef __cplusplus
31580 }
31581 #endif
31582
31583 int
31584 main ()
31585 {
31586 return f != $ac_func;
31587   ;
31588   return 0;
31589 }
31590 _ACEOF
31591 rm -f conftest.$ac_objext conftest$ac_exeext
31592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31593   (eval $ac_link) 2>conftest.er1
31594   ac_status=$?
31595   grep -v '^ *+' conftest.er1 >conftest.err
31596   rm -f conftest.er1
31597   cat conftest.err >&5
31598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599   (exit $ac_status); } &&
31600          { ac_try='test -z "$ac_cxx_werror_flag"
31601                          || test ! -s conftest.err'
31602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31603   (eval $ac_try) 2>&5
31604   ac_status=$?
31605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606   (exit $ac_status); }; } &&
31607          { ac_try='test -s conftest$ac_exeext'
31608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31609   (eval $ac_try) 2>&5
31610   ac_status=$?
31611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612   (exit $ac_status); }; }; then
31613   eval "$as_ac_var=yes"
31614 else
31615   echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31617
31618 eval "$as_ac_var=no"
31619 fi
31620 rm -f conftest.err conftest.$ac_objext \
31621       conftest$ac_exeext conftest.$ac_ext
31622 fi
31623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31625 if test `eval echo '${'$as_ac_var'}'` = yes; then
31626   cat >>confdefs.h <<_ACEOF
31627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31628 _ACEOF
31629
31630 fi
31631 done
31632
31633
31634 echo "$as_me:$LINENO: checking for Windows and DOS and OS/2 style pathnames" >&5
31635 echo $ECHO_N "checking for Windows and DOS and OS/2 style pathnames... $ECHO_C" >&6
31636 if test "${acx_cv_pathname_style_dos+set}" = set; then
31637   echo $ECHO_N "(cached) $ECHO_C" >&6
31638 else
31639
31640
31641 acx_cv_pathname_style_dos="no"
31642 case ${host_os} in
31643   *djgpp | *mingw32 | *emx*) acx_cv_pathname_style_dos="yes" ;;
31644 esac
31645
31646 fi
31647
31648 echo "$as_me:$LINENO: result: $acx_cv_pathname_style_dos" >&5
31649 echo "${ECHO_T}$acx_cv_pathname_style_dos" >&6
31650 if test $acx_cv_pathname_style_dos = "yes"; then
31651   cat >>confdefs.h <<\_ACEOF
31652 #define HAVE_PATHNAME_STYLE_DOS 1
31653 _ACEOF
31654
31655   cat >>confdefs.h <<\_ACEOF
31656 #define PATH_SEPARATOR ';'
31657 _ACEOF
31658
31659 else
31660   cat >>confdefs.h <<\_ACEOF
31661 #define PATH_SEPARATOR ':'
31662 _ACEOF
31663
31664 fi
31665
31666
31667 echo "$as_me:$LINENO: checking whether to include support for http" >&5
31668 echo $ECHO_N "checking whether to include support for http... $ECHO_C" >&6
31669 # Check whether --enable-http or --disable-http was given.
31670 if test "${enable_http+set}" = set; then
31671   enableval="$enable_http"
31672   if test $enableval
31673     then
31674         echo "$as_me:$LINENO: result: yes" >&5
31675 echo "${ECHO_T}yes" >&6
31676
31677 cat >>confdefs.h <<\_ACEOF
31678 #define SP_HAVE_SOCKET 1
31679 _ACEOF
31680
31681         echo "$as_me:$LINENO: checking for main in -lnsl" >&5
31682 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
31683 if test "${ac_cv_lib_nsl_main+set}" = set; then
31684   echo $ECHO_N "(cached) $ECHO_C" >&6
31685 else
31686   ac_check_lib_save_LIBS=$LIBS
31687 LIBS="-lnsl  $LIBS"
31688 cat >conftest.$ac_ext <<_ACEOF
31689 /* confdefs.h.  */
31690 _ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h.  */
31694
31695
31696 int
31697 main ()
31698 {
31699 main ();
31700   ;
31701   return 0;
31702 }
31703 _ACEOF
31704 rm -f conftest.$ac_objext conftest$ac_exeext
31705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31706   (eval $ac_link) 2>conftest.er1
31707   ac_status=$?
31708   grep -v '^ *+' conftest.er1 >conftest.err
31709   rm -f conftest.er1
31710   cat conftest.err >&5
31711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712   (exit $ac_status); } &&
31713          { ac_try='test -z "$ac_cxx_werror_flag"
31714                          || test ! -s conftest.err'
31715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31716   (eval $ac_try) 2>&5
31717   ac_status=$?
31718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719   (exit $ac_status); }; } &&
31720          { ac_try='test -s conftest$ac_exeext'
31721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31722   (eval $ac_try) 2>&5
31723   ac_status=$?
31724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725   (exit $ac_status); }; }; then
31726   ac_cv_lib_nsl_main=yes
31727 else
31728   echo "$as_me: failed program was:" >&5
31729 sed 's/^/| /' conftest.$ac_ext >&5
31730
31731 ac_cv_lib_nsl_main=no
31732 fi
31733 rm -f conftest.err conftest.$ac_objext \
31734       conftest$ac_exeext conftest.$ac_ext
31735 LIBS=$ac_check_lib_save_LIBS
31736 fi
31737 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
31738 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
31739 if test $ac_cv_lib_nsl_main = yes; then
31740   LIBS="$LIBS -lnsl"
31741 fi
31742
31743         echo "$as_me:$LINENO: checking for main in -lsocket" >&5
31744 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
31745 if test "${ac_cv_lib_socket_main+set}" = set; then
31746   echo $ECHO_N "(cached) $ECHO_C" >&6
31747 else
31748   ac_check_lib_save_LIBS=$LIBS
31749 LIBS="-lsocket  $LIBS"
31750 cat >conftest.$ac_ext <<_ACEOF
31751 /* confdefs.h.  */
31752 _ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h.  */
31756
31757
31758 int
31759 main ()
31760 {
31761 main ();
31762   ;
31763   return 0;
31764 }
31765 _ACEOF
31766 rm -f conftest.$ac_objext conftest$ac_exeext
31767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31768   (eval $ac_link) 2>conftest.er1
31769   ac_status=$?
31770   grep -v '^ *+' conftest.er1 >conftest.err
31771   rm -f conftest.er1
31772   cat conftest.err >&5
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); } &&
31775          { ac_try='test -z "$ac_cxx_werror_flag"
31776                          || test ! -s conftest.err'
31777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31778   (eval $ac_try) 2>&5
31779   ac_status=$?
31780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781   (exit $ac_status); }; } &&
31782          { ac_try='test -s conftest$ac_exeext'
31783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31784   (eval $ac_try) 2>&5
31785   ac_status=$?
31786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787   (exit $ac_status); }; }; then
31788   ac_cv_lib_socket_main=yes
31789 else
31790   echo "$as_me: failed program was:" >&5
31791 sed 's/^/| /' conftest.$ac_ext >&5
31792
31793 ac_cv_lib_socket_main=no
31794 fi
31795 rm -f conftest.err conftest.$ac_objext \
31796       conftest$ac_exeext conftest.$ac_ext
31797 LIBS=$ac_check_lib_save_LIBS
31798 fi
31799 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
31800 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
31801 if test $ac_cv_lib_socket_main = yes; then
31802   LIBS="$LIBS -lsocket"
31803 fi
31804
31805         echo "$as_me:$LINENO: checking h_errno in netdb.h" >&5
31806 echo $ECHO_N "checking h_errno in netdb.h... $ECHO_C" >&6
31807         cat >conftest.$ac_ext <<_ACEOF
31808 /* confdefs.h.  */
31809 _ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h.  */
31813 #include <netdb.h>
31814
31815 _ACEOF
31816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31817   $EGREP "h_errno" >/dev/null 2>&1; then
31818   echo "$as_me:$LINENO: result: yes" >&5
31819 echo "${ECHO_T}yes" >&6
31820 else
31821
31822 cat >>confdefs.h <<\_ACEOF
31823 #define SP_DECLARE_H_ERRNO 1
31824 _ACEOF
31825
31826             echo "$as_me:$LINENO: result: no" >&5
31827 echo "${ECHO_T}no" >&6
31828 fi
31829 rm -f conftest*
31830
31831     else
31832         echo "$as_me:$LINENO: result: no" >&5
31833 echo "${ECHO_T}no" >&6
31834     fi
31835 else
31836   echo "$as_me:$LINENO: result: no" >&5
31837 echo "${ECHO_T}no" >&6
31838 fi;
31839 echo "$as_me:$LINENO: checking for default catalog" >&5
31840 echo $ECHO_N "checking for default catalog... $ECHO_C" >&6
31841 # Check whether --enable-default-catalog or --disable-default-catalog was given.
31842 if test "${enable_default_catalog+set}" = set; then
31843   enableval="$enable_default_catalog"
31844   if test $enableval
31845                then
31846                 echo "$as_me:$LINENO: result: $enableval" >&5
31847 echo "${ECHO_T}$enableval" >&6
31848
31849 cat >>confdefs.h <<_ACEOF
31850 #define SGML_CATALOG_FILES_DEFAULT "$enableval"
31851 _ACEOF
31852
31853                else
31854                 echo "$as_me:$LINENO: result: none" >&5
31855 echo "${ECHO_T}none" >&6
31856               fi
31857 else
31858   echo "$as_me:$LINENO: result: none" >&5
31859 echo "${ECHO_T}none" >&6
31860 fi;
31861 echo "$as_me:$LINENO: checking for default search path" >&5
31862 echo $ECHO_N "checking for default search path... $ECHO_C" >&6
31863 # Check whether --enable-default-search-path or --disable-default-search-path was given.
31864 if test "${enable_default_search_path+set}" = set; then
31865   enableval="$enable_default_search_path"
31866   if test $enableval
31867     then
31868         echo "$as_me:$LINENO: result: $enableval" >&5
31869 echo "${ECHO_T}$enableval" >&6
31870
31871 cat >>confdefs.h <<_ACEOF
31872 #define SGML_SEARCH_PATH_DEFAULT "$enableval"
31873 _ACEOF
31874
31875     else
31876         echo "$as_me:$LINENO: result: none" >&5
31877 echo "${ECHO_T}none" >&6
31878     fi
31879 else
31880   echo "$as_me:$LINENO: result: none" >&5
31881 echo "${ECHO_T}none" >&6
31882 fi;
31883 echo "$as_me:$LINENO: checking whether to include support for XML Formatted Messages" >&5
31884 echo $ECHO_N "checking whether to include support for XML Formatted Messages... $ECHO_C" >&6
31885 # Check whether --enable-xml-messages or --disable-xml-messages was given.
31886 if test "${enable_xml_messages+set}" = set; then
31887   enableval="$enable_xml_messages"
31888   if test $enableval
31889            then
31890               echo "$as_me:$LINENO: result: yes" >&5
31891 echo "${ECHO_T}yes" >&6
31892
31893 cat >>confdefs.h <<\_ACEOF
31894 #define SP_XML 1
31895 _ACEOF
31896
31897            else
31898                 echo "$as_me:$LINENO: result: no" >&5
31899 echo "${ECHO_T}no" >&6
31900          fi
31901 else
31902   echo "$as_me:$LINENO: result: no" >&5
31903 echo "${ECHO_T}no" >&6
31904 fi;
31905 DTDDECL=yes
31906 echo "$as_me:$LINENO: checking whether to include DTDDECL support" >&5
31907 echo $ECHO_N "checking whether to include DTDDECL support... $ECHO_C" >&6
31908 # Check whether --enable-dtddecl or --disable-dtddecl was given.
31909 if test "${enable_dtddecl+set}" = set; then
31910   enableval="$enable_dtddecl"
31911   if test "$enableval" = "no"
31912     then
31913         echo "$as_me:$LINENO: result: no" >&5
31914 echo "${ECHO_T}no" >&6
31915         DTDDECL=no
31916     else
31917         echo "$as_me:$LINENO: result: yes" >&5
31918 echo "${ECHO_T}yes" >&6
31919     fi
31920 else
31921   echo "$as_me:$LINENO: result: yes" >&5
31922 echo "${ECHO_T}yes" >&6
31923 fi;
31924 if test "$DTDDECL" = "yes"
31925 then
31926
31927 cat >>confdefs.h <<\_ACEOF
31928 #define SP_DTDDECL 1
31929 _ACEOF
31930
31931
31932
31933 if true; then
31934   DTDDECL_TRUE=
31935   DTDDECL_FALSE='#'
31936 else
31937   DTDDECL_TRUE='#'
31938   DTDDECL_FALSE=
31939 fi
31940
31941 else
31942
31943
31944 if false; then
31945   DTDDECL_TRUE=
31946   DTDDECL_FALSE='#'
31947 else
31948   DTDDECL_TRUE='#'
31949   DTDDECL_FALSE=
31950 fi
31951
31952 fi
31953
31954                                                                                                                                                                                               ac_config_files="$ac_config_files ${PACKAGE}-${VERSION}.spec:spec.in Makefile msggen.pl lib/Makefile nsgmls/Makefile spent/Makefile spam/Makefile sgmlnorm/Makefile sx/Makefile spcat/Makefile include/Makefile include/config.h.old generic/Makefile doc/Makefile pubtext/Makefile tests/Makefile unicode/Makefile intl/Makefile po/Makefile.in"
31955
31956
31957 BUILDDOCS=yes
31958 echo "$as_me:$LINENO: checking whether to build docs (man and html)" >&5
31959 echo $ECHO_N "checking whether to build docs (man and html)... $ECHO_C" >&6
31960 # Check whether --enable-doc-build or --disable-doc-build was given.
31961 if test "${enable_doc_build+set}" = set; then
31962   enableval="$enable_doc_build"
31963   if test "$enableval" = "no"
31964     then
31965         echo "$as_me:$LINENO: result: no" >&5
31966 echo "${ECHO_T}no" >&6
31967         BUILDDOCS=no
31968     else
31969         echo "$as_me:$LINENO: result: yes" >&5
31970 echo "${ECHO_T}yes" >&6
31971     fi
31972 else
31973   echo "$as_me:$LINENO: result: yes" >&5
31974 echo "${ECHO_T}yes" >&6
31975 fi;
31976
31977 if test "$BUILDDOCS" = "yes"
31978 then
31979     # Extract the first word of "xmlto", so it can be a program name with args.
31980 set dummy xmlto; ac_word=$2
31981 echo "$as_me:$LINENO: checking for $ac_word" >&5
31982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31983 if test "${ac_cv_path_XMLTO+set}" = set; then
31984   echo $ECHO_N "(cached) $ECHO_C" >&6
31985 else
31986   case $XMLTO in
31987   [\\/]* | ?:[\\/]*)
31988   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
31989   ;;
31990   *)
31991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31992 for as_dir in $PATH
31993 do
31994   IFS=$as_save_IFS
31995   test -z "$as_dir" && as_dir=.
31996   for ac_exec_ext in '' $ac_executable_extensions; do
31997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31998     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
31999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32000     break 2
32001   fi
32002 done
32003 done
32004
32005   ;;
32006 esac
32007 fi
32008 XMLTO=$ac_cv_path_XMLTO
32009
32010 if test -n "$XMLTO"; then
32011   echo "$as_me:$LINENO: result: $XMLTO" >&5
32012 echo "${ECHO_T}$XMLTO" >&6
32013 else
32014   echo "$as_me:$LINENO: result: no" >&5
32015 echo "${ECHO_T}no" >&6
32016 fi
32017
32018     if test -z "$XMLTO"
32019     then { { echo "$as_me:$LINENO: error: could not find xmlto; set XMLTO or consider --disable-doc-build" >&5
32020 echo "$as_me: error: could not find xmlto; set XMLTO or consider --disable-doc-build" >&2;}
32021    { (exit 1); exit 1; }; }
32022     fi
32023     DOCSRC=docsrc
32024
32025               ac_config_files="$ac_config_files docsrc/Makefile"
32026
32027 fi
32028
32029 BUILDFULLDOCS=no
32030 echo "$as_me:$LINENO: checking whether to build all docs (man, html, pdf, ps)" >&5
32031 echo $ECHO_N "checking whether to build all docs (man, html, pdf, ps)... $ECHO_C" >&6
32032 # Check whether --enable-full-doc-build or --disable-full-doc-build was given.
32033 if test "${enable_full_doc_build+set}" = set; then
32034   enableval="$enable_full_doc_build"
32035   if test "$enableval" = "yes"
32036     then
32037         echo "$as_me:$LINENO: result: yes" >&5
32038 echo "${ECHO_T}yes" >&6
32039         BUILDFULLDOCS=yes
32040     else
32041         echo "$as_me:$LINENO: result: no" >&5
32042 echo "${ECHO_T}no" >&6
32043     fi
32044 else
32045   echo "$as_me:$LINENO: result: no" >&5
32046 echo "${ECHO_T}no" >&6
32047 fi;
32048
32049 if test "$BUILDFULLDOCS" = "yes"
32050 then
32051     # Extract the first word of "pdf2ps", so it can be a program name with args.
32052 set dummy pdf2ps; ac_word=$2
32053 echo "$as_me:$LINENO: checking for $ac_word" >&5
32054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32055 if test "${ac_cv_path_PDF2PS+set}" = set; then
32056   echo $ECHO_N "(cached) $ECHO_C" >&6
32057 else
32058   case $PDF2PS in
32059   [\\/]* | ?:[\\/]*)
32060   ac_cv_path_PDF2PS="$PDF2PS" # Let the user override the test with a path.
32061   ;;
32062   *)
32063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32064 for as_dir in $PATH
32065 do
32066   IFS=$as_save_IFS
32067   test -z "$as_dir" && as_dir=.
32068   for ac_exec_ext in '' $ac_executable_extensions; do
32069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32070     ac_cv_path_PDF2PS="$as_dir/$ac_word$ac_exec_ext"
32071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32072     break 2
32073   fi
32074 done
32075 done
32076
32077   ;;
32078 esac
32079 fi
32080 PDF2PS=$ac_cv_path_PDF2PS
32081
32082 if test -n "$PDF2PS"; then
32083   echo "$as_me:$LINENO: result: $PDF2PS" >&5
32084 echo "${ECHO_T}$PDF2PS" >&6
32085 else
32086   echo "$as_me:$LINENO: result: no" >&5
32087 echo "${ECHO_T}no" >&6
32088 fi
32089
32090     if test -z "$PDF2PS"
32091     then { { echo "$as_me:$LINENO: error: could not find pdf2ps; set PDF2PS or consider --disable-doc-build" >&5
32092 echo "$as_me: error: could not find pdf2ps; set PDF2PS or consider --disable-doc-build" >&2;}
32093    { (exit 1); exit 1; }; }
32094     fi
32095     # Extract the first word of "openjade jade", so it can be a program name with args.
32096 set dummy openjade jade; ac_word=$2
32097 echo "$as_me:$LINENO: checking for $ac_word" >&5
32098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32099 if test "${ac_cv_path_JADE+set}" = set; then
32100   echo $ECHO_N "(cached) $ECHO_C" >&6
32101 else
32102   case $JADE in
32103   [\\/]* | ?:[\\/]*)
32104   ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
32105   ;;
32106   *)
32107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32108 for as_dir in $PATH
32109 do
32110   IFS=$as_save_IFS
32111   test -z "$as_dir" && as_dir=.
32112   for ac_exec_ext in '' $ac_executable_extensions; do
32113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32114     ac_cv_path_JADE="$as_dir/$ac_word$ac_exec_ext"
32115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32116     break 2
32117   fi
32118 done
32119 done
32120
32121   ;;
32122 esac
32123 fi
32124 JADE=$ac_cv_path_JADE
32125
32126 if test -n "$JADE"; then
32127   echo "$as_me:$LINENO: result: $JADE" >&5
32128 echo "${ECHO_T}$JADE" >&6
32129 else
32130   echo "$as_me:$LINENO: result: no" >&5
32131 echo "${ECHO_T}no" >&6
32132 fi
32133
32134     if test -z "$JADE"
32135     then
32136         { { echo "$as_me:$LINENO: error: could not find openjade or jade; set JADE or consider --disable-doc-build" >&5
32137 echo "$as_me: error: could not find openjade or jade; set JADE or consider --disable-doc-build" >&2;}
32138    { (exit 1); exit 1; }; }
32139     fi
32140     # Extract the first word of "jadetex", so it can be a program name with args.
32141 set dummy jadetex; ac_word=$2
32142 echo "$as_me:$LINENO: checking for $ac_word" >&5
32143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32144 if test "${ac_cv_path_JADETEX+set}" = set; then
32145   echo $ECHO_N "(cached) $ECHO_C" >&6
32146 else
32147   case $JADETEX in
32148   [\\/]* | ?:[\\/]*)
32149   ac_cv_path_JADETEX="$JADETEX" # Let the user override the test with a path.
32150   ;;
32151   *)
32152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32153 for as_dir in $PATH
32154 do
32155   IFS=$as_save_IFS
32156   test -z "$as_dir" && as_dir=.
32157   for ac_exec_ext in '' $ac_executable_extensions; do
32158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32159     ac_cv_path_JADETEX="$as_dir/$ac_word$ac_exec_ext"
32160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32161     break 2
32162   fi
32163 done
32164 done
32165
32166   ;;
32167 esac
32168 fi
32169 JADETEX=$ac_cv_path_JADETEX
32170
32171 if test -n "$JADETEX"; then
32172   echo "$as_me:$LINENO: result: $JADETEX" >&5
32173 echo "${ECHO_T}$JADETEX" >&6
32174 else
32175   echo "$as_me:$LINENO: result: no" >&5
32176 echo "${ECHO_T}no" >&6
32177 fi
32178
32179     if test -z "$JADETEX"
32180     then
32181         { { echo "$as_me:$LINENO: error: could not find jadetex; set JADETEX or consider --disable-doc-build" >&5
32182 echo "$as_me: error: could not find jadetex; set JADETEX or consider --disable-doc-build" >&2;}
32183    { (exit 1); exit 1; }; }
32184     fi
32185     # Extract the first word of "pdfjadetex", so it can be a program name with args.
32186 set dummy pdfjadetex; ac_word=$2
32187 echo "$as_me:$LINENO: checking for $ac_word" >&5
32188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32189 if test "${ac_cv_path_PDFJADETEX+set}" = set; then
32190   echo $ECHO_N "(cached) $ECHO_C" >&6
32191 else
32192   case $PDFJADETEX in
32193   [\\/]* | ?:[\\/]*)
32194   ac_cv_path_PDFJADETEX="$PDFJADETEX" # Let the user override the test with a path.
32195   ;;
32196   *)
32197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32198 for as_dir in $PATH
32199 do
32200   IFS=$as_save_IFS
32201   test -z "$as_dir" && as_dir=.
32202   for ac_exec_ext in '' $ac_executable_extensions; do
32203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32204     ac_cv_path_PDFJADETEX="$as_dir/$ac_word$ac_exec_ext"
32205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32206     break 2
32207   fi
32208 done
32209 done
32210
32211   ;;
32212 esac
32213 fi
32214 PDFJADETEX=$ac_cv_path_PDFJADETEX
32215
32216 if test -n "$PDFJADETEX"; then
32217   echo "$as_me:$LINENO: result: $PDFJADETEX" >&5
32218 echo "${ECHO_T}$PDFJADETEX" >&6
32219 else
32220   echo "$as_me:$LINENO: result: no" >&5
32221 echo "${ECHO_T}no" >&6
32222 fi
32223
32224     if test -z "$PDFJADETEX"
32225     then
32226         { { echo "$as_me:$LINENO: error: could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build" >&5
32227 echo "$as_me: error: could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build" >&2;}
32228    { (exit 1); exit 1; }; }
32229     fi
32230     EXTRADOCS="releasenotes.pdf releasenotes.ps"
32231
32232 fi
32233
32234 cat >confcache <<\_ACEOF
32235 # This file is a shell script that caches the results of configure
32236 # tests run on this system so they can be shared between configure
32237 # scripts and configure runs, see configure's option --config-cache.
32238 # It is not useful on other systems.  If it contains results you don't
32239 # want to keep, you may remove or edit it.
32240 #
32241 # config.status only pays attention to the cache file if you give it
32242 # the --recheck option to rerun configure.
32243 #
32244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32246 # following values.
32247
32248 _ACEOF
32249
32250 # The following way of writing the cache mishandles newlines in values,
32251 # but we know of no workaround that is simple, portable, and efficient.
32252 # So, don't put newlines in cache variables' values.
32253 # Ultrix sh set writes to stderr and can't be redirected directly,
32254 # and sets the high bit in the cache file unless we assign to the vars.
32255 {
32256   (set) 2>&1 |
32257     case `(ac_space=' '; set | grep ac_space) 2>&1` in
32258     *ac_space=\ *)
32259       # `set' does not quote correctly, so add quotes (double-quote
32260       # substitution turns \\\\ into \\, and sed turns \\ into \).
32261       sed -n \
32262         "s/'/'\\\\''/g;
32263           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32264       ;;
32265     *)
32266       # `set' quotes correctly as required by POSIX, so do not add quotes.
32267       sed -n \
32268         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32269       ;;
32270     esac;
32271 } |
32272   sed '
32273      t clear
32274      : clear
32275      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32276      t end
32277      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32278      : end' >>confcache
32279 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32280   if test -w $cache_file; then
32281     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32282     cat confcache >$cache_file
32283   else
32284     echo "not updating unwritable cache $cache_file"
32285   fi
32286 fi
32287 rm -f confcache
32288
32289 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32290 # Let make expand exec_prefix.
32291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32292
32293 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32295 # trailing colons and then remove the whole line if VPATH becomes empty
32296 # (actually we leave an empty line to preserve line numbers).
32297 if test "x$srcdir" = x.; then
32298   ac_vpsub='/^[  ]*VPATH[        ]*=/{
32299 s/:*\$(srcdir):*/:/;
32300 s/:*\${srcdir}:*/:/;
32301 s/:*@srcdir@:*/:/;
32302 s/^\([^=]*=[     ]*\):*/\1/;
32303 s/:*$//;
32304 s/^[^=]*=[       ]*$//;
32305 }'
32306 fi
32307
32308 DEFS=-DHAVE_CONFIG_H
32309
32310 ac_libobjs=
32311 ac_ltlibobjs=
32312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32313   # 1. Remove the extension, and $U if already installed.
32314   ac_i=`echo "$ac_i" |
32315          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
32316   # 2. Add them.
32317   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
32318   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
32319 done
32320 LIBOBJS=$ac_libobjs
32321
32322 LTLIBOBJS=$ac_ltlibobjs
32323
32324
32325 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32326   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32327 Usually this means the macro was only invoked conditionally." >&5
32328 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32329 Usually this means the macro was only invoked conditionally." >&2;}
32330    { (exit 1); exit 1; }; }
32331 fi
32332 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32333   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32334 Usually this means the macro was only invoked conditionally." >&5
32335 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32336 Usually this means the macro was only invoked conditionally." >&2;}
32337    { (exit 1); exit 1; }; }
32338 fi
32339 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32340   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32341 Usually this means the macro was only invoked conditionally." >&5
32342 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32343 Usually this means the macro was only invoked conditionally." >&2;}
32344    { (exit 1); exit 1; }; }
32345 fi
32346 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32347   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32348 Usually this means the macro was only invoked conditionally." >&5
32349 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32350 Usually this means the macro was only invoked conditionally." >&2;}
32351    { (exit 1); exit 1; }; }
32352 fi
32353 if test -z "${DTDDECL_TRUE}" && test -z "${DTDDECL_FALSE}"; then
32354   { { echo "$as_me:$LINENO: error: conditional \"DTDDECL\" was never defined.
32355 Usually this means the macro was only invoked conditionally." >&5
32356 echo "$as_me: error: conditional \"DTDDECL\" was never defined.
32357 Usually this means the macro was only invoked conditionally." >&2;}
32358    { (exit 1); exit 1; }; }
32359 fi
32360 if test -z "${DTDDECL_TRUE}" && test -z "${DTDDECL_FALSE}"; then
32361   { { echo "$as_me:$LINENO: error: conditional \"DTDDECL\" was never defined.
32362 Usually this means the macro was only invoked conditionally." >&5
32363 echo "$as_me: error: conditional \"DTDDECL\" was never defined.
32364 Usually this means the macro was only invoked conditionally." >&2;}
32365    { (exit 1); exit 1; }; }
32366 fi
32367
32368 : ${CONFIG_STATUS=./config.status}
32369 ac_clean_files_save=$ac_clean_files
32370 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32371 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32372 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32373 cat >$CONFIG_STATUS <<_ACEOF
32374 #! $SHELL
32375 # Generated by $as_me.
32376 # Run this file to recreate the current configuration.
32377 # Compiler output produced by configure, useful for debugging
32378 # configure, is in config.log if it exists.
32379
32380 debug=false
32381 ac_cs_recheck=false
32382 ac_cs_silent=false
32383 SHELL=\${CONFIG_SHELL-$SHELL}
32384 _ACEOF
32385
32386 cat >>$CONFIG_STATUS <<\_ACEOF
32387 ## --------------------- ##
32388 ## M4sh Initialization.  ##
32389 ## --------------------- ##
32390
32391 # Be Bourne compatible
32392 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32393   emulate sh
32394   NULLCMD=:
32395   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32396   # is contrary to our usage.  Disable this feature.
32397   alias -g '${1+"$@"}'='"$@"'
32398 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32399   set -o posix
32400 fi
32401 DUALCASE=1; export DUALCASE # for MKS sh
32402
32403 # Support unset when possible.
32404 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32405   as_unset=unset
32406 else
32407   as_unset=false
32408 fi
32409
32410
32411 # Work around bugs in pre-3.0 UWIN ksh.
32412 $as_unset ENV MAIL MAILPATH
32413 PS1='$ '
32414 PS2='> '
32415 PS4='+ '
32416
32417 # NLS nuisances.
32418 for as_var in \
32419   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32420   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32421   LC_TELEPHONE LC_TIME
32422 do
32423   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32424     eval $as_var=C; export $as_var
32425   else
32426     $as_unset $as_var
32427   fi
32428 done
32429
32430 # Required to use basename.
32431 if expr a : '\(a\)' >/dev/null 2>&1; then
32432   as_expr=expr
32433 else
32434   as_expr=false
32435 fi
32436
32437 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
32438   as_basename=basename
32439 else
32440   as_basename=false
32441 fi
32442
32443
32444 # Name of the executable.
32445 as_me=`$as_basename "$0" ||
32446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32447          X"$0" : 'X\(//\)$' \| \
32448          X"$0" : 'X\(/\)$' \| \
32449          .     : '\(.\)' 2>/dev/null ||
32450 echo X/"$0" |
32451     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
32452           /^X\/\(\/\/\)$/{ s//\1/; q; }
32453           /^X\/\(\/\).*/{ s//\1/; q; }
32454           s/.*/./; q'`
32455
32456
32457 # PATH needs CR, and LINENO needs CR and PATH.
32458 # Avoid depending upon Character Ranges.
32459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32462 as_cr_digits='0123456789'
32463 as_cr_alnum=$as_cr_Letters$as_cr_digits
32464
32465 # The user is always right.
32466 if test "${PATH_SEPARATOR+set}" != set; then
32467   echo "#! /bin/sh" >conf$$.sh
32468   echo  "exit 0"   >>conf$$.sh
32469   chmod +x conf$$.sh
32470   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32471     PATH_SEPARATOR=';'
32472   else
32473     PATH_SEPARATOR=:
32474   fi
32475   rm -f conf$$.sh
32476 fi
32477
32478
32479   as_lineno_1=$LINENO
32480   as_lineno_2=$LINENO
32481   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32482   test "x$as_lineno_1" != "x$as_lineno_2" &&
32483   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
32484   # Find who we are.  Look in the path if we contain no path at all
32485   # relative or not.
32486   case $0 in
32487     *[\\/]* ) as_myself=$0 ;;
32488     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32489 for as_dir in $PATH
32490 do
32491   IFS=$as_save_IFS
32492   test -z "$as_dir" && as_dir=.
32493   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32494 done
32495
32496        ;;
32497   esac
32498   # We did not find ourselves, most probably we were run as `sh COMMAND'
32499   # in which case we are not to be found in the path.
32500   if test "x$as_myself" = x; then
32501     as_myself=$0
32502   fi
32503   if test ! -f "$as_myself"; then
32504     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
32505 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
32506    { (exit 1); exit 1; }; }
32507   fi
32508   case $CONFIG_SHELL in
32509   '')
32510     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32511 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
32512 do
32513   IFS=$as_save_IFS
32514   test -z "$as_dir" && as_dir=.
32515   for as_base in sh bash ksh sh5; do
32516          case $as_dir in
32517          /*)
32518            if ("$as_dir/$as_base" -c '
32519   as_lineno_1=$LINENO
32520   as_lineno_2=$LINENO
32521   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32522   test "x$as_lineno_1" != "x$as_lineno_2" &&
32523   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
32524              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
32525              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
32526              CONFIG_SHELL=$as_dir/$as_base
32527              export CONFIG_SHELL
32528              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
32529            fi;;
32530          esac
32531        done
32532 done
32533 ;;
32534   esac
32535
32536   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32537   # uniformly replaced by the line number.  The first 'sed' inserts a
32538   # line-number line before each line; the second 'sed' does the real
32539   # work.  The second script uses 'N' to pair each line-number line
32540   # with the numbered line, and appends trailing '-' during
32541   # substitution so that $LINENO is not a special case at line end.
32542   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32543   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
32544   sed '=' <$as_myself |
32545     sed '
32546       N
32547       s,$,-,
32548       : loop
32549       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
32550       t loop
32551       s,-$,,
32552       s,^['$as_cr_digits']*\n,,
32553     ' >$as_me.lineno &&
32554   chmod +x $as_me.lineno ||
32555     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
32556 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
32557    { (exit 1); exit 1; }; }
32558
32559   # Don't try to exec as it changes $[0], causing all sort of problems
32560   # (the dirname of $[0] is not the place where we might find the
32561   # original and so on.  Autoconf is especially sensible to this).
32562   . ./$as_me.lineno
32563   # Exit status is that of the last command.
32564   exit
32565 }
32566
32567
32568 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
32569   *c*,-n*) ECHO_N= ECHO_C='
32570 ' ECHO_T='      ' ;;
32571   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
32572   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
32573 esac
32574
32575 if expr a : '\(a\)' >/dev/null 2>&1; then
32576   as_expr=expr
32577 else
32578   as_expr=false
32579 fi
32580
32581 rm -f conf$$ conf$$.exe conf$$.file
32582 echo >conf$$.file
32583 if ln -s conf$$.file conf$$ 2>/dev/null; then
32584   # We could just check for DJGPP; but this test a) works b) is more generic
32585   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32586   if test -f conf$$.exe; then
32587     # Don't use ln at all; we don't have any links
32588     as_ln_s='cp -p'
32589   else
32590     as_ln_s='ln -s'
32591   fi
32592 elif ln conf$$.file conf$$ 2>/dev/null; then
32593   as_ln_s=ln
32594 else
32595   as_ln_s='cp -p'
32596 fi
32597 rm -f conf$$ conf$$.exe conf$$.file
32598
32599 if mkdir -p . 2>/dev/null; then
32600   as_mkdir_p=:
32601 else
32602   test -d ./-p && rmdir ./-p
32603   as_mkdir_p=false
32604 fi
32605
32606 as_executable_p="test -f"
32607
32608 # Sed expression to map a string onto a valid CPP name.
32609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32610
32611 # Sed expression to map a string onto a valid variable name.
32612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32613
32614
32615 # IFS
32616 # We need space, tab and new line, in precisely that order.
32617 as_nl='
32618 '
32619 IFS="   $as_nl"
32620
32621 # CDPATH.
32622 $as_unset CDPATH
32623
32624 exec 6>&1
32625
32626 # Open the log real soon, to keep \$[0] and so on meaningful, and to
32627 # report actual input values of CONFIG_FILES etc. instead of their
32628 # values after options handling.  Logging --version etc. is OK.
32629 exec 5>>config.log
32630 {
32631   echo
32632   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32633 ## Running $as_me. ##
32634 _ASBOX
32635 } >&5
32636 cat >&5 <<_CSEOF
32637
32638 This file was extended by $as_me, which was
32639 generated by GNU Autoconf 2.59.  Invocation command line was
32640
32641   CONFIG_FILES    = $CONFIG_FILES
32642   CONFIG_HEADERS  = $CONFIG_HEADERS
32643   CONFIG_LINKS    = $CONFIG_LINKS
32644   CONFIG_COMMANDS = $CONFIG_COMMANDS
32645   $ $0 $@
32646
32647 _CSEOF
32648 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32649 echo >&5
32650 _ACEOF
32651
32652 # Files that config.status was made for.
32653 if test -n "$ac_config_files"; then
32654   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32655 fi
32656
32657 if test -n "$ac_config_headers"; then
32658   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32659 fi
32660
32661 if test -n "$ac_config_links"; then
32662   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32663 fi
32664
32665 if test -n "$ac_config_commands"; then
32666   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32667 fi
32668
32669 cat >>$CONFIG_STATUS <<\_ACEOF
32670
32671 ac_cs_usage="\
32672 \`$as_me' instantiates files from templates according to the
32673 current configuration.
32674
32675 Usage: $0 [OPTIONS] [FILE]...
32676
32677   -h, --help       print this help, then exit
32678   -V, --version    print version number, then exit
32679   -q, --quiet      do not print progress messages
32680   -d, --debug      don't remove temporary files
32681       --recheck    update $as_me by reconfiguring in the same conditions
32682   --file=FILE[:TEMPLATE]
32683                    instantiate the configuration file FILE
32684   --header=FILE[:TEMPLATE]
32685                    instantiate the configuration header FILE
32686
32687 Configuration files:
32688 $config_files
32689
32690 Configuration headers:
32691 $config_headers
32692
32693 Configuration commands:
32694 $config_commands
32695
32696 Report bugs to <bug-autoconf@gnu.org>."
32697 _ACEOF
32698
32699 cat >>$CONFIG_STATUS <<_ACEOF
32700 ac_cs_version="\\
32701 config.status
32702 configured by $0, generated by GNU Autoconf 2.59,
32703   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32704
32705 Copyright (C) 2003 Free Software Foundation, Inc.
32706 This config.status script is free software; the Free Software Foundation
32707 gives unlimited permission to copy, distribute and modify it."
32708 srcdir=$srcdir
32709 INSTALL="$INSTALL"
32710 _ACEOF
32711
32712 cat >>$CONFIG_STATUS <<\_ACEOF
32713 # If no file are specified by the user, then we need to provide default
32714 # value.  By we need to know if files were specified by the user.
32715 ac_need_defaults=:
32716 while test $# != 0
32717 do
32718   case $1 in
32719   --*=*)
32720     ac_option=`expr "x$1" : 'x\([^=]*\)='`
32721     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32722     ac_shift=:
32723     ;;
32724   -*)
32725     ac_option=$1
32726     ac_optarg=$2
32727     ac_shift=shift
32728     ;;
32729   *) # This is not an option, so the user has probably given explicit
32730      # arguments.
32731      ac_option=$1
32732      ac_need_defaults=false;;
32733   esac
32734
32735   case $ac_option in
32736   # Handling of the options.
32737 _ACEOF
32738 cat >>$CONFIG_STATUS <<\_ACEOF
32739   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32740     ac_cs_recheck=: ;;
32741   --version | --vers* | -V )
32742     echo "$ac_cs_version"; exit 0 ;;
32743   --he | --h)
32744     # Conflict between --help and --header
32745     { { echo "$as_me:$LINENO: error: ambiguous option: $1
32746 Try \`$0 --help' for more information." >&5
32747 echo "$as_me: error: ambiguous option: $1
32748 Try \`$0 --help' for more information." >&2;}
32749    { (exit 1); exit 1; }; };;
32750   --help | --hel | -h )
32751     echo "$ac_cs_usage"; exit 0 ;;
32752   --debug | --d* | -d )
32753     debug=: ;;
32754   --file | --fil | --fi | --f )
32755     $ac_shift
32756     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32757     ac_need_defaults=false;;
32758   --header | --heade | --head | --hea )
32759     $ac_shift
32760     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32761     ac_need_defaults=false;;
32762   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32763   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32764     ac_cs_silent=: ;;
32765
32766   # This is an error.
32767   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
32768 Try \`$0 --help' for more information." >&5
32769 echo "$as_me: error: unrecognized option: $1
32770 Try \`$0 --help' for more information." >&2;}
32771    { (exit 1); exit 1; }; } ;;
32772
32773   *) ac_config_targets="$ac_config_targets $1" ;;
32774
32775   esac
32776   shift
32777 done
32778
32779 ac_configure_extra_args=
32780
32781 if $ac_cs_silent; then
32782   exec 6>/dev/null
32783   ac_configure_extra_args="$ac_configure_extra_args --silent"
32784 fi
32785
32786 _ACEOF
32787 cat >>$CONFIG_STATUS <<_ACEOF
32788 if \$ac_cs_recheck; then
32789   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32790   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32791 fi
32792
32793 _ACEOF
32794
32795 cat >>$CONFIG_STATUS <<_ACEOF
32796 #
32797 # INIT-COMMANDS section.
32798 #
32799
32800 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32801 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32802     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32803     # from automake.
32804     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32805     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32806     LINGUAS="${LINGUAS-%UNSET%}"
32807
32808
32809 _ACEOF
32810
32811
32812
32813 cat >>$CONFIG_STATUS <<\_ACEOF
32814 for ac_config_target in $ac_config_targets
32815 do
32816   case "$ac_config_target" in
32817   # Handling of arguments.
32818   "${PACKAGE}-${VERSION}.spec" ) CONFIG_FILES="$CONFIG_FILES ${PACKAGE}-${VERSION}.spec:spec.in" ;;
32819   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32820   "msggen.pl" ) CONFIG_FILES="$CONFIG_FILES msggen.pl" ;;
32821   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
32822   "nsgmls/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsgmls/Makefile" ;;
32823   "spent/Makefile" ) CONFIG_FILES="$CONFIG_FILES spent/Makefile" ;;
32824   "spam/Makefile" ) CONFIG_FILES="$CONFIG_FILES spam/Makefile" ;;
32825   "sgmlnorm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgmlnorm/Makefile" ;;
32826   "sx/Makefile" ) CONFIG_FILES="$CONFIG_FILES sx/Makefile" ;;
32827   "spcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES spcat/Makefile" ;;
32828   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32829   "include/config.h.old" ) CONFIG_FILES="$CONFIG_FILES include/config.h.old" ;;
32830   "generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;;
32831   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32832   "pubtext/Makefile" ) CONFIG_FILES="$CONFIG_FILES pubtext/Makefile" ;;
32833   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
32834   "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
32835   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
32836   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32837   "docsrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES docsrc/Makefile" ;;
32838   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32839   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32840   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32841   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32842 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32843    { (exit 1); exit 1; }; };;
32844   esac
32845 done
32846
32847 # If the user did not use the arguments to specify the items to instantiate,
32848 # then the envvar interface is used.  Set only those that are not.
32849 # We use the long form for the default assignment because of an extremely
32850 # bizarre bug on SunOS 4.1.3.
32851 if $ac_need_defaults; then
32852   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32853   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32854   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32855 fi
32856
32857 # Have a temporary directory for convenience.  Make it in the build tree
32858 # simply because there is no reason to put it here, and in addition,
32859 # creating and moving files from /tmp can sometimes cause problems.
32860 # Create a temporary directory, and hook for its removal unless debugging.
32861 $debug ||
32862 {
32863   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32864   trap '{ (exit 1); exit 1; }' 1 2 13 15
32865 }
32866
32867 # Create a (secure) tmp directory for tmp files.
32868
32869 {
32870   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32871   test -n "$tmp" && test -d "$tmp"
32872 }  ||
32873 {
32874   tmp=./confstat$$-$RANDOM
32875   (umask 077 && mkdir $tmp)
32876 } ||
32877 {
32878    echo "$me: cannot create a temporary directory in ." >&2
32879    { (exit 1); exit 1; }
32880 }
32881
32882 _ACEOF
32883
32884 cat >>$CONFIG_STATUS <<_ACEOF
32885
32886 #
32887 # CONFIG_FILES section.
32888 #
32889
32890 # No need to generate the scripts if there are no CONFIG_FILES.
32891 # This happens for instance when ./config.status config.h
32892 if test -n "\$CONFIG_FILES"; then
32893   # Protect against being on the right side of a sed subst in config.status.
32894   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32895    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32896 s,@SHELL@,$SHELL,;t t
32897 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32898 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32899 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32900 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32901 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32902 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32903 s,@exec_prefix@,$exec_prefix,;t t
32904 s,@prefix@,$prefix,;t t
32905 s,@program_transform_name@,$program_transform_name,;t t
32906 s,@bindir@,$bindir,;t t
32907 s,@sbindir@,$sbindir,;t t
32908 s,@libexecdir@,$libexecdir,;t t
32909 s,@datadir@,$datadir,;t t
32910 s,@sysconfdir@,$sysconfdir,;t t
32911 s,@sharedstatedir@,$sharedstatedir,;t t
32912 s,@localstatedir@,$localstatedir,;t t
32913 s,@libdir@,$libdir,;t t
32914 s,@includedir@,$includedir,;t t
32915 s,@oldincludedir@,$oldincludedir,;t t
32916 s,@infodir@,$infodir,;t t
32917 s,@mandir@,$mandir,;t t
32918 s,@build_alias@,$build_alias,;t t
32919 s,@host_alias@,$host_alias,;t t
32920 s,@target_alias@,$target_alias,;t t
32921 s,@DEFS@,$DEFS,;t t
32922 s,@ECHO_C@,$ECHO_C,;t t
32923 s,@ECHO_N@,$ECHO_N,;t t
32924 s,@ECHO_T@,$ECHO_T,;t t
32925 s,@LIBS@,$LIBS,;t t
32926 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32927 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32928 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32929 s,@CYGPATH_W@,$CYGPATH_W,;t t
32930 s,@PACKAGE@,$PACKAGE,;t t
32931 s,@VERSION@,$VERSION,;t t
32932 s,@ACLOCAL@,$ACLOCAL,;t t
32933 s,@AUTOCONF@,$AUTOCONF,;t t
32934 s,@AUTOMAKE@,$AUTOMAKE,;t t
32935 s,@AUTOHEADER@,$AUTOHEADER,;t t
32936 s,@MAKEINFO@,$MAKEINFO,;t t
32937 s,@install_sh@,$install_sh,;t t
32938 s,@STRIP@,$STRIP,;t t
32939 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32940 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
32941 s,@mkdir_p@,$mkdir_p,;t t
32942 s,@AWK@,$AWK,;t t
32943 s,@SET_MAKE@,$SET_MAKE,;t t
32944 s,@am__leading_dot@,$am__leading_dot,;t t
32945 s,@AMTAR@,$AMTAR,;t t
32946 s,@am__tar@,$am__tar,;t t
32947 s,@am__untar@,$am__untar,;t t
32948 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
32949 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
32950 s,@MAINT@,$MAINT,;t t
32951 s,@SP_LIBOSP_CUR@,$SP_LIBOSP_CUR,;t t
32952 s,@SP_LIBOSP_REV@,$SP_LIBOSP_REV,;t t
32953 s,@SP_LIBOSP_AGE@,$SP_LIBOSP_AGE,;t t
32954 s,@CC@,$CC,;t t
32955 s,@CFLAGS@,$CFLAGS,;t t
32956 s,@LDFLAGS@,$LDFLAGS,;t t
32957 s,@CPPFLAGS@,$CPPFLAGS,;t t
32958 s,@ac_ct_CC@,$ac_ct_CC,;t t
32959 s,@EXEEXT@,$EXEEXT,;t t
32960 s,@OBJEXT@,$OBJEXT,;t t
32961 s,@DEPDIR@,$DEPDIR,;t t
32962 s,@am__include@,$am__include,;t t
32963 s,@am__quote@,$am__quote,;t t
32964 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
32965 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
32966 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
32967 s,@CCDEPMODE@,$CCDEPMODE,;t t
32968 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
32969 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
32970 s,@CPP@,$CPP,;t t
32971 s,@CXX@,$CXX,;t t
32972 s,@CXXFLAGS@,$CXXFLAGS,;t t
32973 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32974 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
32975 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
32976 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
32977 s,@CXXCPP@,$CXXCPP,;t t
32978 s,@LN_S@,$LN_S,;t t
32979 s,@PERL@,$PERL,;t t
32980 s,@build@,$build,;t t
32981 s,@build_cpu@,$build_cpu,;t t
32982 s,@build_vendor@,$build_vendor,;t t
32983 s,@build_os@,$build_os,;t t
32984 s,@host@,$host,;t t
32985 s,@host_cpu@,$host_cpu,;t t
32986 s,@host_vendor@,$host_vendor,;t t
32987 s,@host_os@,$host_os,;t t
32988 s,@EGREP@,$EGREP,;t t
32989 s,@ECHO@,$ECHO,;t t
32990 s,@AR@,$AR,;t t
32991 s,@ac_ct_AR@,$ac_ct_AR,;t t
32992 s,@RANLIB@,$RANLIB,;t t
32993 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32994 s,@F77@,$F77,;t t
32995 s,@FFLAGS@,$FFLAGS,;t t
32996 s,@ac_ct_F77@,$ac_ct_F77,;t t
32997 s,@LIBTOOL@,$LIBTOOL,;t t
32998 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
32999 s,@USE_NLS@,$USE_NLS,;t t
33000 s,@MSGFMT@,$MSGFMT,;t t
33001 s,@GMSGFMT@,$GMSGFMT,;t t
33002 s,@XGETTEXT@,$XGETTEXT,;t t
33003 s,@MSGMERGE@,$MSGMERGE,;t t
33004 s,@GLIBC2@,$GLIBC2,;t t
33005 s,@ALLOCA@,$ALLOCA,;t t
33006 s,@GLIBC21@,$GLIBC21,;t t
33007 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
33008 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
33009 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
33010 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
33011 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
33012 s,@LIBICONV@,$LIBICONV,;t t
33013 s,@LTLIBICONV@,$LTLIBICONV,;t t
33014 s,@INTLBISON@,$INTLBISON,;t t
33015 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
33016 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
33017 s,@CATOBJEXT@,$CATOBJEXT,;t t
33018 s,@DATADIRNAME@,$DATADIRNAME,;t t
33019 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
33020 s,@GENCAT@,$GENCAT,;t t
33021 s,@INTLOBJS@,$INTLOBJS,;t t
33022 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
33023 s,@INTLLIBS@,$INTLLIBS,;t t
33024 s,@LIBINTL@,$LIBINTL,;t t
33025 s,@LTLIBINTL@,$LTLIBINTL,;t t
33026 s,@POSUB@,$POSUB,;t t
33027 s,@SP_MESSAGE_DOMAIN@,$SP_MESSAGE_DOMAIN,;t t
33028 s,@LIBOBJS@,$LIBOBJS,;t t
33029 s,@DTDDECL_TRUE@,$DTDDECL_TRUE,;t t
33030 s,@DTDDECL_FALSE@,$DTDDECL_FALSE,;t t
33031 s,@XMLTO@,$XMLTO,;t t
33032 s,@DOCSRC@,$DOCSRC,;t t
33033 s,@PDF2PS@,$PDF2PS,;t t
33034 s,@JADE@,$JADE,;t t
33035 s,@JADETEX@,$JADETEX,;t t
33036 s,@PDFJADETEX@,$PDFJADETEX,;t t
33037 s,@EXTRADOCS@,$EXTRADOCS,;t t
33038 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
33039 CEOF
33040
33041 _ACEOF
33042
33043   cat >>$CONFIG_STATUS <<\_ACEOF
33044   # Split the substitutions into bite-sized pieces for seds with
33045   # small command number limits, like on Digital OSF/1 and HP-UX.
33046   ac_max_sed_lines=48
33047   ac_sed_frag=1 # Number of current file.
33048   ac_beg=1 # First line for current file.
33049   ac_end=$ac_max_sed_lines # Line after last line for current file.
33050   ac_more_lines=:
33051   ac_sed_cmds=
33052   while $ac_more_lines; do
33053     if test $ac_beg -gt 1; then
33054       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33055     else
33056       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33057     fi
33058     if test ! -s $tmp/subs.frag; then
33059       ac_more_lines=false
33060     else
33061       # The purpose of the label and of the branching condition is to
33062       # speed up the sed processing (if there are no `@' at all, there
33063       # is no need to browse any of the substitutions).
33064       # These are the two extra sed commands mentioned above.
33065       (echo ':t
33066   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
33067       if test -z "$ac_sed_cmds"; then
33068         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
33069       else
33070         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
33071       fi
33072       ac_sed_frag=`expr $ac_sed_frag + 1`
33073       ac_beg=$ac_end
33074       ac_end=`expr $ac_end + $ac_max_sed_lines`
33075     fi
33076   done
33077   if test -z "$ac_sed_cmds"; then
33078     ac_sed_cmds=cat
33079   fi
33080 fi # test -n "$CONFIG_FILES"
33081
33082 _ACEOF
33083 cat >>$CONFIG_STATUS <<\_ACEOF
33084 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
33085   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33086   case $ac_file in
33087   - | *:- | *:-:* ) # input from stdin
33088         cat >$tmp/stdin
33089         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33090         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33091   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33092         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33093   * )   ac_file_in=$ac_file.in ;;
33094   esac
33095
33096   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
33097   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33099          X"$ac_file" : 'X\(//\)[^/]' \| \
33100          X"$ac_file" : 'X\(//\)$' \| \
33101          X"$ac_file" : 'X\(/\)' \| \
33102          .     : '\(.\)' 2>/dev/null ||
33103 echo X"$ac_file" |
33104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33106           /^X\(\/\/\)$/{ s//\1/; q; }
33107           /^X\(\/\).*/{ s//\1/; q; }
33108           s/.*/./; q'`
33109   { if $as_mkdir_p; then
33110     mkdir -p "$ac_dir"
33111   else
33112     as_dir="$ac_dir"
33113     as_dirs=
33114     while test ! -d "$as_dir"; do
33115       as_dirs="$as_dir $as_dirs"
33116       as_dir=`(dirname "$as_dir") 2>/dev/null ||
33117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33118          X"$as_dir" : 'X\(//\)[^/]' \| \
33119          X"$as_dir" : 'X\(//\)$' \| \
33120          X"$as_dir" : 'X\(/\)' \| \
33121          .     : '\(.\)' 2>/dev/null ||
33122 echo X"$as_dir" |
33123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33124           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33125           /^X\(\/\/\)$/{ s//\1/; q; }
33126           /^X\(\/\).*/{ s//\1/; q; }
33127           s/.*/./; q'`
33128     done
33129     test ! -n "$as_dirs" || mkdir $as_dirs
33130   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33132    { (exit 1); exit 1; }; }; }
33133
33134   ac_builddir=.
33135
33136 if test "$ac_dir" != .; then
33137   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33138   # A "../" for each directory in $ac_dir_suffix.
33139   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33140 else
33141   ac_dir_suffix= ac_top_builddir=
33142 fi
33143
33144 case $srcdir in
33145   .)  # No --srcdir option.  We are building in place.
33146     ac_srcdir=.
33147     if test -z "$ac_top_builddir"; then
33148        ac_top_srcdir=.
33149     else
33150        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33151     fi ;;
33152   [\\/]* | ?:[\\/]* )  # Absolute path.
33153     ac_srcdir=$srcdir$ac_dir_suffix;
33154     ac_top_srcdir=$srcdir ;;
33155   *) # Relative path.
33156     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33157     ac_top_srcdir=$ac_top_builddir$srcdir ;;
33158 esac
33159
33160 # Do not use `cd foo && pwd` to compute absolute paths, because
33161 # the directories may not exist.
33162 case `pwd` in
33163 .) ac_abs_builddir="$ac_dir";;
33164 *)
33165   case "$ac_dir" in
33166   .) ac_abs_builddir=`pwd`;;
33167   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33168   *) ac_abs_builddir=`pwd`/"$ac_dir";;
33169   esac;;
33170 esac
33171 case $ac_abs_builddir in
33172 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33173 *)
33174   case ${ac_top_builddir}. in
33175   .) ac_abs_top_builddir=$ac_abs_builddir;;
33176   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33177   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33178   esac;;
33179 esac
33180 case $ac_abs_builddir in
33181 .) ac_abs_srcdir=$ac_srcdir;;
33182 *)
33183   case $ac_srcdir in
33184   .) ac_abs_srcdir=$ac_abs_builddir;;
33185   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33186   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33187   esac;;
33188 esac
33189 case $ac_abs_builddir in
33190 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33191 *)
33192   case $ac_top_srcdir in
33193   .) ac_abs_top_srcdir=$ac_abs_builddir;;
33194   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33195   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33196   esac;;
33197 esac
33198
33199
33200   case $INSTALL in
33201   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33202   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
33203   esac
33204
33205   if test x"$ac_file" != x-; then
33206     { echo "$as_me:$LINENO: creating $ac_file" >&5
33207 echo "$as_me: creating $ac_file" >&6;}
33208     rm -f "$ac_file"
33209   fi
33210   # Let's still pretend it is `configure' which instantiates (i.e., don't
33211   # use $as_me), people would be surprised to read:
33212   #    /* config.h.  Generated by config.status.  */
33213   if test x"$ac_file" = x-; then
33214     configure_input=
33215   else
33216     configure_input="$ac_file.  "
33217   fi
33218   configure_input=$configure_input"Generated from `echo $ac_file_in |
33219                                      sed 's,.*/,,'` by configure."
33220
33221   # First look for the input files in the build tree, otherwise in the
33222   # src tree.
33223   ac_file_inputs=`IFS=:
33224     for f in $ac_file_in; do
33225       case $f in
33226       -) echo $tmp/stdin ;;
33227       [\\/$]*)
33228          # Absolute (can't be DOS-style, as IFS=:)
33229          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33230 echo "$as_me: error: cannot find input file: $f" >&2;}
33231    { (exit 1); exit 1; }; }
33232          echo "$f";;
33233       *) # Relative
33234          if test -f "$f"; then
33235            # Build tree
33236            echo "$f"
33237          elif test -f "$srcdir/$f"; then
33238            # Source tree
33239            echo "$srcdir/$f"
33240          else
33241            # /dev/null tree
33242            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33243 echo "$as_me: error: cannot find input file: $f" >&2;}
33244    { (exit 1); exit 1; }; }
33245          fi;;
33246       esac
33247     done` || { (exit 1); exit 1; }
33248 _ACEOF
33249 cat >>$CONFIG_STATUS <<_ACEOF
33250   sed "$ac_vpsub
33251 $extrasub
33252 _ACEOF
33253 cat >>$CONFIG_STATUS <<\_ACEOF
33254 :t
33255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33256 s,@configure_input@,$configure_input,;t t
33257 s,@srcdir@,$ac_srcdir,;t t
33258 s,@abs_srcdir@,$ac_abs_srcdir,;t t
33259 s,@top_srcdir@,$ac_top_srcdir,;t t
33260 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
33261 s,@builddir@,$ac_builddir,;t t
33262 s,@abs_builddir@,$ac_abs_builddir,;t t
33263 s,@top_builddir@,$ac_top_builddir,;t t
33264 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
33265 s,@INSTALL@,$ac_INSTALL,;t t
33266 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
33267   rm -f $tmp/stdin
33268   if test x"$ac_file" != x-; then
33269     mv $tmp/out $ac_file
33270   else
33271     cat $tmp/out
33272     rm -f $tmp/out
33273   fi
33274
33275 done
33276 _ACEOF
33277 cat >>$CONFIG_STATUS <<\_ACEOF
33278
33279 #
33280 # CONFIG_HEADER section.
33281 #
33282
33283 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
33284 # NAME is the cpp macro being defined and VALUE is the value it is being given.
33285 #
33286 # ac_d sets the value in "#define NAME VALUE" lines.
33287 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
33288 ac_dB='[         ].*$,\1#\2'
33289 ac_dC=' '
33290 ac_dD=',;t'
33291 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
33292 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
33293 ac_uB='$,\1#\2define\3'
33294 ac_uC=' '
33295 ac_uD=',;t'
33296
33297 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
33298   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33299   case $ac_file in
33300   - | *:- | *:-:* ) # input from stdin
33301         cat >$tmp/stdin
33302         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33304   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33305         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33306   * )   ac_file_in=$ac_file.in ;;
33307   esac
33308
33309   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
33310 echo "$as_me: creating $ac_file" >&6;}
33311
33312   # First look for the input files in the build tree, otherwise in the
33313   # src tree.
33314   ac_file_inputs=`IFS=:
33315     for f in $ac_file_in; do
33316       case $f in
33317       -) echo $tmp/stdin ;;
33318       [\\/$]*)
33319          # Absolute (can't be DOS-style, as IFS=:)
33320          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33321 echo "$as_me: error: cannot find input file: $f" >&2;}
33322    { (exit 1); exit 1; }; }
33323          # Do quote $f, to prevent DOS paths from being IFS'd.
33324          echo "$f";;
33325       *) # Relative
33326          if test -f "$f"; then
33327            # Build tree
33328            echo "$f"
33329          elif test -f "$srcdir/$f"; then
33330            # Source tree
33331            echo "$srcdir/$f"
33332          else
33333            # /dev/null tree
33334            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33335 echo "$as_me: error: cannot find input file: $f" >&2;}
33336    { (exit 1); exit 1; }; }
33337          fi;;
33338       esac
33339     done` || { (exit 1); exit 1; }
33340   # Remove the trailing spaces.
33341   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
33342
33343 _ACEOF
33344
33345 # Transform confdefs.h into two sed scripts, `conftest.defines' and
33346 # `conftest.undefs', that substitutes the proper values into
33347 # config.h.in to produce config.h.  The first handles `#define'
33348 # templates, and the second `#undef' templates.
33349 # And first: Protect against being on the right side of a sed subst in
33350 # config.status.  Protect against being in an unquoted here document
33351 # in config.status.
33352 rm -f conftest.defines conftest.undefs
33353 # Using a here document instead of a string reduces the quoting nightmare.
33354 # Putting comments in sed scripts is not portable.
33355 #
33356 # `end' is used to avoid that the second main sed command (meant for
33357 # 0-ary CPP macros) applies to n-ary macro definitions.
33358 # See the Autoconf documentation for `clear'.
33359 cat >confdef2sed.sed <<\_ACEOF
33360 s/[\\&,]/\\&/g
33361 s,[\\$`],\\&,g
33362 t clear
33363 : clear
33364 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33365 t end
33366 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33367 : end
33368 _ACEOF
33369 # If some macros were called several times there might be several times
33370 # the same #defines, which is useless.  Nevertheless, we may not want to
33371 # sort them, since we want the *last* AC-DEFINE to be honored.
33372 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
33373 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
33374 rm -f confdef2sed.sed
33375
33376 # This sed command replaces #undef with comments.  This is necessary, for
33377 # example, in the case of _POSIX_SOURCE, which is predefined and required
33378 # on some systems where configure will not decide to define it.
33379 cat >>conftest.undefs <<\_ACEOF
33380 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33381 _ACEOF
33382
33383 # Break up conftest.defines because some shells have a limit on the size
33384 # of here documents, and old seds have small limits too (100 cmds).
33385 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
33386 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33387 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
33388 echo '  :' >>$CONFIG_STATUS
33389 rm -f conftest.tail
33390 while grep . conftest.defines >/dev/null
33391 do
33392   # Write a limited-size here document to $tmp/defines.sed.
33393   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
33394   # Speed up: don't consider the non `#define' lines.
33395   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
33396   # Work around the forget-to-reset-the-flag bug.
33397   echo 't clr' >>$CONFIG_STATUS
33398   echo ': clr' >>$CONFIG_STATUS
33399   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
33400   echo 'CEOF
33401   sed -f $tmp/defines.sed $tmp/in >$tmp/out
33402   rm -f $tmp/in
33403   mv $tmp/out $tmp/in
33404 ' >>$CONFIG_STATUS
33405   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
33406   rm -f conftest.defines
33407   mv conftest.tail conftest.defines
33408 done
33409 rm -f conftest.defines
33410 echo '  fi # grep' >>$CONFIG_STATUS
33411 echo >>$CONFIG_STATUS
33412
33413 # Break up conftest.undefs because some shells have a limit on the size
33414 # of here documents, and old seds have small limits too (100 cmds).
33415 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
33416 rm -f conftest.tail
33417 while grep . conftest.undefs >/dev/null
33418 do
33419   # Write a limited-size here document to $tmp/undefs.sed.
33420   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
33421   # Speed up: don't consider the non `#undef'
33422   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
33423   # Work around the forget-to-reset-the-flag bug.
33424   echo 't clr' >>$CONFIG_STATUS
33425   echo ': clr' >>$CONFIG_STATUS
33426   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
33427   echo 'CEOF
33428   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
33429   rm -f $tmp/in
33430   mv $tmp/out $tmp/in
33431 ' >>$CONFIG_STATUS
33432   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
33433   rm -f conftest.undefs
33434   mv conftest.tail conftest.undefs
33435 done
33436 rm -f conftest.undefs
33437
33438 cat >>$CONFIG_STATUS <<\_ACEOF
33439   # Let's still pretend it is `configure' which instantiates (i.e., don't
33440   # use $as_me), people would be surprised to read:
33441   #    /* config.h.  Generated by config.status.  */
33442   if test x"$ac_file" = x-; then
33443     echo "/* Generated by configure.  */" >$tmp/config.h
33444   else
33445     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
33446   fi
33447   cat $tmp/in >>$tmp/config.h
33448   rm -f $tmp/in
33449   if test x"$ac_file" != x-; then
33450     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33451       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33452 echo "$as_me: $ac_file is unchanged" >&6;}
33453     else
33454       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33456          X"$ac_file" : 'X\(//\)[^/]' \| \
33457          X"$ac_file" : 'X\(//\)$' \| \
33458          X"$ac_file" : 'X\(/\)' \| \
33459          .     : '\(.\)' 2>/dev/null ||
33460 echo X"$ac_file" |
33461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33463           /^X\(\/\/\)$/{ s//\1/; q; }
33464           /^X\(\/\).*/{ s//\1/; q; }
33465           s/.*/./; q'`
33466       { if $as_mkdir_p; then
33467     mkdir -p "$ac_dir"
33468   else
33469     as_dir="$ac_dir"
33470     as_dirs=
33471     while test ! -d "$as_dir"; do
33472       as_dirs="$as_dir $as_dirs"
33473       as_dir=`(dirname "$as_dir") 2>/dev/null ||
33474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33475          X"$as_dir" : 'X\(//\)[^/]' \| \
33476          X"$as_dir" : 'X\(//\)$' \| \
33477          X"$as_dir" : 'X\(/\)' \| \
33478          .     : '\(.\)' 2>/dev/null ||
33479 echo X"$as_dir" |
33480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33481           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33482           /^X\(\/\/\)$/{ s//\1/; q; }
33483           /^X\(\/\).*/{ s//\1/; q; }
33484           s/.*/./; q'`
33485     done
33486     test ! -n "$as_dirs" || mkdir $as_dirs
33487   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33489    { (exit 1); exit 1; }; }; }
33490
33491       rm -f $ac_file
33492       mv $tmp/config.h $ac_file
33493     fi
33494   else
33495     cat $tmp/config.h
33496     rm -f $tmp/config.h
33497   fi
33498 # Compute $ac_file's index in $config_headers.
33499 _am_stamp_count=1
33500 for _am_header in $config_headers :; do
33501   case $_am_header in
33502     $ac_file | $ac_file:* )
33503       break ;;
33504     * )
33505       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33506   esac
33507 done
33508 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
33509 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33510          X$ac_file : 'X\(//\)[^/]' \| \
33511          X$ac_file : 'X\(//\)$' \| \
33512          X$ac_file : 'X\(/\)' \| \
33513          .     : '\(.\)' 2>/dev/null ||
33514 echo X$ac_file |
33515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33517           /^X\(\/\/\)$/{ s//\1/; q; }
33518           /^X\(\/\).*/{ s//\1/; q; }
33519           s/.*/./; q'`/stamp-h$_am_stamp_count
33520 done
33521 _ACEOF
33522 cat >>$CONFIG_STATUS <<\_ACEOF
33523
33524 #
33525 # CONFIG_COMMANDS section.
33526 #
33527 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
33528   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
33529   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
33530   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
33531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33532          X"$ac_dest" : 'X\(//\)[^/]' \| \
33533          X"$ac_dest" : 'X\(//\)$' \| \
33534          X"$ac_dest" : 'X\(/\)' \| \
33535          .     : '\(.\)' 2>/dev/null ||
33536 echo X"$ac_dest" |
33537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33538           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33539           /^X\(\/\/\)$/{ s//\1/; q; }
33540           /^X\(\/\).*/{ s//\1/; q; }
33541           s/.*/./; q'`
33542   { if $as_mkdir_p; then
33543     mkdir -p "$ac_dir"
33544   else
33545     as_dir="$ac_dir"
33546     as_dirs=
33547     while test ! -d "$as_dir"; do
33548       as_dirs="$as_dir $as_dirs"
33549       as_dir=`(dirname "$as_dir") 2>/dev/null ||
33550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33551          X"$as_dir" : 'X\(//\)[^/]' \| \
33552          X"$as_dir" : 'X\(//\)$' \| \
33553          X"$as_dir" : 'X\(/\)' \| \
33554          .     : '\(.\)' 2>/dev/null ||
33555 echo X"$as_dir" |
33556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33557           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33558           /^X\(\/\/\)$/{ s//\1/; q; }
33559           /^X\(\/\).*/{ s//\1/; q; }
33560           s/.*/./; q'`
33561     done
33562     test ! -n "$as_dirs" || mkdir $as_dirs
33563   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33565    { (exit 1); exit 1; }; }; }
33566
33567   ac_builddir=.
33568
33569 if test "$ac_dir" != .; then
33570   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33571   # A "../" for each directory in $ac_dir_suffix.
33572   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33573 else
33574   ac_dir_suffix= ac_top_builddir=
33575 fi
33576
33577 case $srcdir in
33578   .)  # No --srcdir option.  We are building in place.
33579     ac_srcdir=.
33580     if test -z "$ac_top_builddir"; then
33581        ac_top_srcdir=.
33582     else
33583        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33584     fi ;;
33585   [\\/]* | ?:[\\/]* )  # Absolute path.
33586     ac_srcdir=$srcdir$ac_dir_suffix;
33587     ac_top_srcdir=$srcdir ;;
33588   *) # Relative path.
33589     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33590     ac_top_srcdir=$ac_top_builddir$srcdir ;;
33591 esac
33592
33593 # Do not use `cd foo && pwd` to compute absolute paths, because
33594 # the directories may not exist.
33595 case `pwd` in
33596 .) ac_abs_builddir="$ac_dir";;
33597 *)
33598   case "$ac_dir" in
33599   .) ac_abs_builddir=`pwd`;;
33600   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33601   *) ac_abs_builddir=`pwd`/"$ac_dir";;
33602   esac;;
33603 esac
33604 case $ac_abs_builddir in
33605 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33606 *)
33607   case ${ac_top_builddir}. in
33608   .) ac_abs_top_builddir=$ac_abs_builddir;;
33609   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33610   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33611   esac;;
33612 esac
33613 case $ac_abs_builddir in
33614 .) ac_abs_srcdir=$ac_srcdir;;
33615 *)
33616   case $ac_srcdir in
33617   .) ac_abs_srcdir=$ac_abs_builddir;;
33618   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33619   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33620   esac;;
33621 esac
33622 case $ac_abs_builddir in
33623 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33624 *)
33625   case $ac_top_srcdir in
33626   .) ac_abs_top_srcdir=$ac_abs_builddir;;
33627   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33628   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33629   esac;;
33630 esac
33631
33632
33633   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
33634 echo "$as_me: executing $ac_dest commands" >&6;}
33635   case $ac_dest in
33636     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33637   # Strip MF so we end up with the name of the file.
33638   mf=`echo "$mf" | sed -e 's/:.*$//'`
33639   # Check whether this is an Automake generated Makefile or not.
33640   # We used to match only the files named `Makefile.in', but
33641   # some people rename them; so instead we look at the file content.
33642   # Grep'ing the first line is not enough: some people post-process
33643   # each Makefile.in and add a new line on top of each file to say so.
33644   # So let's grep whole file.
33645   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33646     dirpart=`(dirname "$mf") 2>/dev/null ||
33647 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33648          X"$mf" : 'X\(//\)[^/]' \| \
33649          X"$mf" : 'X\(//\)$' \| \
33650          X"$mf" : 'X\(/\)' \| \
33651          .     : '\(.\)' 2>/dev/null ||
33652 echo X"$mf" |
33653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33655           /^X\(\/\/\)$/{ s//\1/; q; }
33656           /^X\(\/\).*/{ s//\1/; q; }
33657           s/.*/./; q'`
33658   else
33659     continue
33660   fi
33661   # Extract the definition of DEPDIR, am__include, and am__quote
33662   # from the Makefile without running `make'.
33663   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33664   test -z "$DEPDIR" && continue
33665   am__include=`sed -n 's/^am__include = //p' < "$mf"`
33666   test -z "am__include" && continue
33667   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33668   # When using ansi2knr, U may be empty or an underscore; expand it
33669   U=`sed -n 's/^U = //p' < "$mf"`
33670   # Find all dependency output files, they are included files with
33671   # $(DEPDIR) in their names.  We invoke sed twice because it is the
33672   # simplest approach to changing $(DEPDIR) to its actual value in the
33673   # expansion.
33674   for file in `sed -n "
33675     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33676        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33677     # Make sure the directory exists.
33678     test -f "$dirpart/$file" && continue
33679     fdir=`(dirname "$file") 2>/dev/null ||
33680 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33681          X"$file" : 'X\(//\)[^/]' \| \
33682          X"$file" : 'X\(//\)$' \| \
33683          X"$file" : 'X\(/\)' \| \
33684          .     : '\(.\)' 2>/dev/null ||
33685 echo X"$file" |
33686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33687           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33688           /^X\(\/\/\)$/{ s//\1/; q; }
33689           /^X\(\/\).*/{ s//\1/; q; }
33690           s/.*/./; q'`
33691     { if $as_mkdir_p; then
33692     mkdir -p $dirpart/$fdir
33693   else
33694     as_dir=$dirpart/$fdir
33695     as_dirs=
33696     while test ! -d "$as_dir"; do
33697       as_dirs="$as_dir $as_dirs"
33698       as_dir=`(dirname "$as_dir") 2>/dev/null ||
33699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33700          X"$as_dir" : 'X\(//\)[^/]' \| \
33701          X"$as_dir" : 'X\(//\)$' \| \
33702          X"$as_dir" : 'X\(/\)' \| \
33703          .     : '\(.\)' 2>/dev/null ||
33704 echo X"$as_dir" |
33705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33706           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33707           /^X\(\/\/\)$/{ s//\1/; q; }
33708           /^X\(\/\).*/{ s//\1/; q; }
33709           s/.*/./; q'`
33710     done
33711     test ! -n "$as_dirs" || mkdir $as_dirs
33712   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
33713 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
33714    { (exit 1); exit 1; }; }; }
33715
33716     # echo "creating $dirpart/$file"
33717     echo '# dummy' > "$dirpart/$file"
33718   done
33719 done
33720  ;;
33721     default-1 )
33722     for ac_file in $CONFIG_FILES; do
33723       # Support "outfile[:infile[:infile...]]"
33724       case "$ac_file" in
33725         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33726       esac
33727       # PO directories have a Makefile.in generated from Makefile.in.in.
33728       case "$ac_file" in */Makefile.in)
33729         # Adjust a relative srcdir.
33730         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33731         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33732         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33733         # In autoconf-2.13 it is called $ac_given_srcdir.
33734         # In autoconf-2.50 it is called $srcdir.
33735         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33736         case "$ac_given_srcdir" in
33737           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33738           /*) top_srcdir="$ac_given_srcdir" ;;
33739           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33740         esac
33741         # Treat a directory as a PO directory if and only if it has a
33742         # POTFILES.in file. This allows packages to have multiple PO
33743         # directories under different names or in different locations.
33744         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33745           rm -f "$ac_dir/POTFILES"
33746           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33747           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33748           POMAKEFILEDEPS="POTFILES.in"
33749           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33750           # on $ac_dir but don't depend on user-specified configuration
33751           # parameters.
33752           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33753             # The LINGUAS file contains the set of available languages.
33754             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33755               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33756             fi
33757             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33758             # Hide the ALL_LINGUAS assigment from automake.
33759             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33760             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33761           else
33762             # The set of available languages was given in configure.in.
33763             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33764           fi
33765           # Compute POFILES
33766           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33767           # Compute UPDATEPOFILES
33768           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33769           # Compute DUMMYPOFILES
33770           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33771           # Compute GMOFILES
33772           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33773           case "$ac_given_srcdir" in
33774             .) srcdirpre= ;;
33775             *) srcdirpre='$(srcdir)/' ;;
33776           esac
33777           POFILES=
33778           UPDATEPOFILES=
33779           DUMMYPOFILES=
33780           GMOFILES=
33781           for lang in $ALL_LINGUAS; do
33782             POFILES="$POFILES $srcdirpre$lang.po"
33783             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33784             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33785             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33786           done
33787           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33788           # environment variable.
33789           INST_LINGUAS=
33790           if test -n "$ALL_LINGUAS"; then
33791             for presentlang in $ALL_LINGUAS; do
33792               useit=no
33793               if test "%UNSET%" != "$LINGUAS"; then
33794                 desiredlanguages="$LINGUAS"
33795               else
33796                 desiredlanguages="$ALL_LINGUAS"
33797               fi
33798               for desiredlang in $desiredlanguages; do
33799                 # Use the presentlang catalog if desiredlang is
33800                 #   a. equal to presentlang, or
33801                 #   b. a variant of presentlang (because in this case,
33802                 #      presentlang can be used as a fallback for messages
33803                 #      which are not translated in the desiredlang catalog).
33804                 case "$desiredlang" in
33805                   "$presentlang"*) useit=yes;;
33806                 esac
33807               done
33808               if test $useit = yes; then
33809                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33810               fi
33811             done
33812           fi
33813           CATALOGS=
33814           if test -n "$INST_LINGUAS"; then
33815             for lang in $INST_LINGUAS; do
33816               CATALOGS="$CATALOGS $lang.gmo"
33817             done
33818           fi
33819           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33820           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33821           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33822             if test -f "$f"; then
33823               case "$f" in
33824                 *.orig | *.bak | *~) ;;
33825                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33826               esac
33827             fi
33828           done
33829         fi
33830         ;;
33831       esac
33832     done ;;
33833   esac
33834 done
33835 _ACEOF
33836
33837 cat >>$CONFIG_STATUS <<\_ACEOF
33838
33839 { (exit 0); exit 0; }
33840 _ACEOF
33841 chmod +x $CONFIG_STATUS
33842 ac_clean_files=$ac_clean_files_save
33843
33844
33845 # configure is writing to config.log, and then calls config.status.
33846 # config.status does its own redirection, appending to config.log.
33847 # Unfortunately, on DOS this fails, as config.log is still kept open
33848 # by configure, so config.status won't be able to write to it; its
33849 # output is simply discarded.  So we exec the FD to /dev/null,
33850 # effectively closing config.log, so it can be properly (re)opened and
33851 # appended to by config.status.  When coming back to configure, we
33852 # need to make the FD available again.
33853 if test "$no_create" != yes; then
33854   ac_cs_success=:
33855   ac_config_status_args=
33856   test "$silent" = yes &&
33857     ac_config_status_args="$ac_config_status_args --quiet"
33858   exec 5>/dev/null
33859   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33860   exec 5>>config.log
33861   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33862   # would make configure fail if this is the last instruction.
33863   $ac_cs_success || { (exit 1); exit 1; }
33864 fi
33865