bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / tomcat-connectors-1.2.32-src / native / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 1054607 2011-01-03 13:13:49Z rjung .
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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="common/jk_worker.h"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 TEST RM GREP ECHO SED CP MKDIR CFLAGS PERL APXS APACHE_CONFIG_VARS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL int32_value int32_t_fmt uint32_t_fmt uint32_t_hex_fmt int64_value int64_t_fmt uint64_t_fmt uint64_t_hex_fmt pid_t_fmt pthread_t_fmt pthread_t_value apache_include APACHE_DIR JK_JNI_WORKER APXSCFLAGS APXSCPPFLAGS APXSLDFLAGS JAVA_HOME OS WEBSERVER MAKE_DYNAMIC_APACHE_TRUE MAKE_DYNAMIC_APACHE_FALSE APACHE20_OEXT LIB_JK_TYPE INSTALL_TYPE LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 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   --target=TARGET   configure for building compilers for TARGET [HOST]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --disable-dependency-tracking  speeds up one-time build
1029   --enable-dependency-tracking   do not reject slow dependency extractors
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037   --enable-netscape=DIR   Build Netscape/iPlanet/SunONE nsapi redirector
1038                           plugin
1039   --enable-jni            DEPRECATED: Build jni_connect.so and enable
1040                           jni_worker
1041   --enable-EAPI           Enable EAPI support (mod_ssl, Apache 1.3)
1042   --enable-maintainer-mode
1043                           Turn on debugging and compile time warnings
1044   --enable-prefork        Turn on prefork web server mode (single-threaded)
1045   --disable-trace         Exclude trace log code from compilation
1046   --enable-api-compatibility
1047                           Only use httpd API functions available in all
1048                           production releases. This improves binary
1049                           compatibility of module builds with httpd releases
1050                           older than the release against we build (only
1051                           between minor versions).
1052   --enable-flock          Turn on flock for shared locking if present
1053
1054 Optional Packages:
1055   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057   --with-apxs[=FILE]      Build shared Apache module.
1058                           FILE is the optional pathname to the apxs tool;
1059                           defaults to finding apxs in your PATH.
1060   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061   --with-pic              try to use only PIC/non-PIC objects [default=use
1062                           both]
1063   --with-tags[=TAGS]
1064                           include additional configurations [automatic]
1065   --with-apache=DIR       Build static Apache module. DIR is the pathname to
1066                           the Apache source directory.
1067   --with-java-home=DIR    DEPRECATED: Where is your JDK root directory
1068   --with-java-platform=VAL
1069                           DEPRECATED: Force the Java platform (value is 1 for
1070                           1.1.x or 2 for 1.2.x or greater)
1071   --with-os-type=SUBDIR   DEPRECATED: Where is your JDK os-type subdirectory
1072
1073 Some influential environment variables:
1074   CC          C compiler command
1075   CFLAGS      C compiler flags
1076   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1077               nonstandard directory <lib dir>
1078   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079               headers in a nonstandard directory <include dir>
1080   CPP         C preprocessor
1081   CXX         C++ compiler command
1082   CXXFLAGS    C++ compiler flags
1083   CXXCPP      C++ preprocessor
1084   F77         Fortran 77 compiler command
1085   FFLAGS      Fortran 77 compiler flags
1086
1087 Use these variables to override the choices made by `configure' or to help
1088 it to find libraries and programs with nonstandard names/locations.
1089
1090 _ACEOF
1091 fi
1092
1093 if test "$ac_init_help" = "recursive"; then
1094   # If there are subdirs, report their specific --help.
1095   ac_popdir=`pwd`
1096   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097     test -d $ac_dir || continue
1098     ac_builddir=.
1099
1100 if test "$ac_dir" != .; then
1101   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102   # A "../" for each directory in $ac_dir_suffix.
1103   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104 else
1105   ac_dir_suffix= ac_top_builddir=
1106 fi
1107
1108 case $srcdir in
1109   .)  # No --srcdir option.  We are building in place.
1110     ac_srcdir=.
1111     if test -z "$ac_top_builddir"; then
1112        ac_top_srcdir=.
1113     else
1114        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115     fi ;;
1116   [\\/]* | ?:[\\/]* )  # Absolute path.
1117     ac_srcdir=$srcdir$ac_dir_suffix;
1118     ac_top_srcdir=$srcdir ;;
1119   *) # Relative path.
1120     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122 esac
1123
1124 # Do not use `cd foo && pwd` to compute absolute paths, because
1125 # the directories may not exist.
1126 case `pwd` in
1127 .) ac_abs_builddir="$ac_dir";;
1128 *)
1129   case "$ac_dir" in
1130   .) ac_abs_builddir=`pwd`;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *)
1138   case ${ac_top_builddir}. in
1139   .) ac_abs_top_builddir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1142   esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_srcdir=$ac_srcdir;;
1146 *)
1147   case $ac_srcdir in
1148   .) ac_abs_srcdir=$ac_abs_builddir;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1151   esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *)
1156   case $ac_top_srcdir in
1157   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160   esac;;
1161 esac
1162
1163     cd $ac_dir
1164     # Check for guested configure; otherwise get Cygnus style configure.
1165     if test -f $ac_srcdir/configure.gnu; then
1166       echo
1167       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1168     elif test -f $ac_srcdir/configure; then
1169       echo
1170       $SHELL $ac_srcdir/configure  --help=recursive
1171     elif test -f $ac_srcdir/configure.ac ||
1172            test -f $ac_srcdir/configure.in; then
1173       echo
1174       $ac_configure --help
1175     else
1176       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1177     fi
1178     cd $ac_popdir
1179   done
1180 fi
1181
1182 test -n "$ac_init_help" && exit 0
1183 if $ac_init_version; then
1184   cat <<\_ACEOF
1185
1186 Copyright (C) 2003 Free Software Foundation, Inc.
1187 This configure script is free software; the Free Software Foundation
1188 gives unlimited permission to copy, distribute and modify it.
1189 _ACEOF
1190   exit 0
1191 fi
1192 exec 5>config.log
1193 cat >&5 <<_ACEOF
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1196
1197 It was created by $as_me, which was
1198 generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200   $ $0 $@
1201
1202 _ACEOF
1203 {
1204 cat <<_ASUNAME
1205 ## --------- ##
1206 ## Platform. ##
1207 ## --------- ##
1208
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226 _ASUNAME
1227
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 for as_dir in $PATH
1230 do
1231   IFS=$as_save_IFS
1232   test -z "$as_dir" && as_dir=.
1233   echo "PATH: $as_dir"
1234 done
1235
1236 } >&5
1237
1238 cat >&5 <<_ACEOF
1239
1240
1241 ## ----------- ##
1242 ## Core tests. ##
1243 ## ----------- ##
1244
1245 _ACEOF
1246
1247
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_configure_args=
1254 ac_configure_args0=
1255 ac_configure_args1=
1256 ac_sep=
1257 ac_must_keep_next=false
1258 for ac_pass in 1 2
1259 do
1260   for ac_arg
1261   do
1262     case $ac_arg in
1263     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265     | -silent | --silent | --silen | --sile | --sil)
1266       continue ;;
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     esac
1270     case $ac_pass in
1271     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272     2)
1273       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274       if test $ac_must_keep_next = true; then
1275         ac_must_keep_next=false # Got value, back to normal.
1276       else
1277         case $ac_arg in
1278           *=* | --config-cache | -C | -disable-* | --disable-* \
1279           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281           | -with-* | --with-* | -without-* | --without-* | --x)
1282             case "$ac_configure_args0 " in
1283               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284             esac
1285             ;;
1286           -* ) ac_must_keep_next=true ;;
1287         esac
1288       fi
1289       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290       # Get rid of the leading space.
1291       ac_sep=" "
1292       ;;
1293     esac
1294   done
1295 done
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log.  We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305   # Save into config.log some information that might help in debugging.
1306   {
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1313 _ASBOX
1314     echo
1315     # The following way of writing the cache mishandles newlines in values,
1316 {
1317   (set) 2>&1 |
1318     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319     *ac_space=\ *)
1320       sed -n \
1321         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323       ;;
1324     *)
1325       sed -n \
1326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327       ;;
1328     esac;
1329 }
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1336 _ASBOX
1337     echo
1338     for ac_var in $ac_subst_vars
1339     do
1340       eval ac_val=$`echo $ac_var`
1341       echo "$ac_var='"'"'$ac_val'"'"'"
1342     done | sort
1343     echo
1344
1345     if test -n "$ac_subst_files"; then
1346       cat <<\_ASBOX
1347 ## ------------- ##
1348 ## Output files. ##
1349 ## ------------- ##
1350 _ASBOX
1351       echo
1352       for ac_var in $ac_subst_files
1353       do
1354         eval ac_val=$`echo $ac_var`
1355         echo "$ac_var='"'"'$ac_val'"'"'"
1356       done | sort
1357       echo
1358     fi
1359
1360     if test -s confdefs.h; then
1361       cat <<\_ASBOX
1362 ## ----------- ##
1363 ## confdefs.h. ##
1364 ## ----------- ##
1365 _ASBOX
1366       echo
1367       sed "/^$/d" confdefs.h | sort
1368       echo
1369     fi
1370     test "$ac_signal" != 0 &&
1371       echo "$as_me: caught signal $ac_signal"
1372     echo "$as_me: exit $exit_status"
1373   } >&5
1374   rm -f core *.core &&
1375   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376     exit $exit_status
1377      ' 0
1378 for ac_signal in 1 2 13 15; do
1379   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 done
1381 ac_signal=0
1382
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 echo >confdefs.h
1387
1388 # Predefined preprocessor variables.
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 _ACEOF
1413
1414
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418   if test "x$prefix" != xNONE; then
1419     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420   else
1421     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422   fi
1423 fi
1424 for ac_site_file in $CONFIG_SITE; do
1425   if test -r "$ac_site_file"; then
1426     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428     sed 's/^/| /' "$ac_site_file" >&5
1429     . "$ac_site_file"
1430   fi
1431 done
1432
1433 if test -r "$cache_file"; then
1434   # Some versions of bash will fail to source /dev/null (special
1435   # files actually), so we avoid doing that.
1436   if test -f "$cache_file"; then
1437     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1439     case $cache_file in
1440       [\\/]* | ?:[\\/]* ) . $cache_file;;
1441       *)                      . ./$cache_file;;
1442     esac
1443   fi
1444 else
1445   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1447   >$cache_file
1448 fi
1449
1450 # Check that the precious variables saved in the cache have kept the same
1451 # value.
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456   eval ac_new_set=\$ac_env_${ac_var}_set
1457   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458   eval ac_new_val="\$ac_env_${ac_var}_value"
1459   case $ac_old_set,$ac_new_set in
1460     set,)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,set)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,);;
1469     *)
1470       if test "x$ac_old_val" != "x$ac_new_val"; then
1471         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474 echo "$as_me:   former value:  $ac_old_val" >&2;}
1475         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476 echo "$as_me:   current value: $ac_new_val" >&2;}
1477         ac_cache_corrupted=:
1478       fi;;
1479   esac
1480   # Pass precious variables to config.status.
1481   if test "$ac_new_set" = set; then
1482     case $ac_new_val in
1483     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485     *) ac_arg=$ac_var=$ac_new_val ;;
1486     esac
1487     case " $ac_configure_args " in
1488       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490     esac
1491   fi
1492 done
1493 if $ac_cache_corrupted; then
1494   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498    { (exit 1); exit 1; }; }
1499 fi
1500
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525           ac_config_headers="$ac_config_headers common/config.h"
1526
1527 ac_aux_dir=
1528 for ac_dir in scripts/build/unix $srcdir/scripts/build/unix; do
1529   if test -f $ac_dir/install-sh; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/install-sh -c"
1532     break
1533   elif test -f $ac_dir/install.sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install.sh -c"
1536     break
1537   elif test -f $ac_dir/shtool; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/shtool install -c"
1540     break
1541   fi
1542 done
1543 if test -z "$ac_aux_dir"; then
1544   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/build/unix $srcdir/scripts/build/unix" >&5
1545 echo "$as_me: error: cannot find install-sh or install.sh in scripts/build/unix $srcdir/scripts/build/unix" >&2;}
1546    { (exit 1); exit 1; }; }
1547 fi
1548 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1549 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1550 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1551
1552 # Make sure we can run config.sub.
1553 $ac_config_sub sun4 >/dev/null 2>&1 ||
1554   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556    { (exit 1); exit 1; }; }
1557
1558 echo "$as_me:$LINENO: checking build system type" >&5
1559 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560 if test "${ac_cv_build+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   ac_cv_build_alias=$build_alias
1564 test -z "$ac_cv_build_alias" &&
1565   ac_cv_build_alias=`$ac_config_guess`
1566 test -z "$ac_cv_build_alias" &&
1567   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569    { (exit 1); exit 1; }; }
1570 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 fi
1576 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577 echo "${ECHO_T}$ac_cv_build" >&6
1578 build=$ac_cv_build
1579 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
1583
1584 echo "$as_me:$LINENO: checking host system type" >&5
1585 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1586 if test "${ac_cv_host+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_host_alias=$host_alias
1590 test -z "$ac_cv_host_alias" &&
1591   ac_cv_host_alias=$ac_cv_build_alias
1592 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1593   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1595    { (exit 1); exit 1; }; }
1596
1597 fi
1598 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1599 echo "${ECHO_T}$ac_cv_host" >&6
1600 host=$ac_cv_host
1601 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606 echo "$as_me:$LINENO: checking target system type" >&5
1607 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1608 if test "${ac_cv_target+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   ac_cv_target_alias=$target_alias
1612 test "x$ac_cv_target_alias" = "x" &&
1613   ac_cv_target_alias=$ac_cv_host_alias
1614 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1615   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1617    { (exit 1); exit 1; }; }
1618
1619 fi
1620 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1621 echo "${ECHO_T}$ac_cv_target" >&6
1622 target=$ac_cv_target
1623 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628 # The aliases save the names the user supplied, while $host etc.
1629 # will get canonicalized.
1630 test -n "$target_alias" &&
1631   test "$program_prefix$program_suffix$program_transform_name" = \
1632     NONENONEs,x,x, &&
1633   program_prefix=${target_alias}-
1634
1635 PACKAGE=mod_jk
1636 VERSION=1.2.32
1637
1638 am__api_version="1.9"
1639 # Find a good install program.  We prefer a C program (faster),
1640 # so one script is as good as another.  But avoid the broken or
1641 # incompatible versions:
1642 # SysV /etc/install, /usr/sbin/install
1643 # SunOS /usr/etc/install
1644 # IRIX /sbin/install
1645 # AIX /bin/install
1646 # AmigaOS /C/install, which installs bootblocks on floppy discs
1647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1650 # OS/2's system install, which has a completely different semantic
1651 # ./install, which can be erroneously created by make from ./install.sh.
1652 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1653 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1654 if test -z "$INSTALL"; then
1655 if test "${ac_cv_path_install+set}" = set; then
1656   echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661   IFS=$as_save_IFS
1662   test -z "$as_dir" && as_dir=.
1663   # Account for people who put trailing slashes in PATH elements.
1664 case $as_dir/ in
1665   ./ | .// | /cC/* | \
1666   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1667   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1668   /usr/ucb/* ) ;;
1669   *)
1670     # OSF1 and SCO ODT 3.0 have their own names for install.
1671     # Don't use installbsd from OSF since it installs stuff as root
1672     # by default.
1673     for ac_prog in ginstall scoinst install; do
1674       for ac_exec_ext in '' $ac_executable_extensions; do
1675         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1676           if test $ac_prog = install &&
1677             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1678             # AIX install.  It has an incompatible calling convention.
1679             :
1680           elif test $ac_prog = install &&
1681             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1682             # program-specific install script used by HP pwplus--don't use.
1683             :
1684           else
1685             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1686             break 3
1687           fi
1688         fi
1689       done
1690     done
1691     ;;
1692 esac
1693 done
1694
1695
1696 fi
1697   if test "${ac_cv_path_install+set}" = set; then
1698     INSTALL=$ac_cv_path_install
1699   else
1700     # As a last resort, use the slow shell script.  We don't cache a
1701     # path for INSTALL within a source directory, because that will
1702     # break other packages using the cache if that directory is
1703     # removed, or if the path is relative.
1704     INSTALL=$ac_install_sh
1705   fi
1706 fi
1707 echo "$as_me:$LINENO: result: $INSTALL" >&5
1708 echo "${ECHO_T}$INSTALL" >&6
1709
1710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1711 # It thinks the first close brace ends the variable substitution.
1712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1713
1714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1715
1716 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1717
1718 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1719 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1720 # Just in case
1721 sleep 1
1722 echo timestamp > conftest.file
1723 # Do `set' in a subshell so we don't clobber the current shell's
1724 # arguments.  Must try -L first in case configure is actually a
1725 # symlink; some systems play weird games with the mod time of symlinks
1726 # (eg FreeBSD returns the mod time of the symlink's containing
1727 # directory).
1728 if (
1729    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1730    if test "$*" = "X"; then
1731       # -L didn't work.
1732       set X `ls -t $srcdir/configure conftest.file`
1733    fi
1734    rm -f conftest.file
1735    if test "$*" != "X $srcdir/configure conftest.file" \
1736       && test "$*" != "X conftest.file $srcdir/configure"; then
1737
1738       # If neither matched, then we have a broken ls.  This can happen
1739       # if, for instance, CONFIG_SHELL is bash and it inherits a
1740       # broken ls alias from the environment.  This has actually
1741       # happened.  Such a system could not be considered "sane".
1742       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1743 alias in your environment" >&5
1744 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1745 alias in your environment" >&2;}
1746    { (exit 1); exit 1; }; }
1747    fi
1748
1749    test "$2" = conftest.file
1750    )
1751 then
1752    # Ok.
1753    :
1754 else
1755    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1756 Check your system clock" >&5
1757 echo "$as_me: error: newly created file is older than distributed files!
1758 Check your system clock" >&2;}
1759    { (exit 1); exit 1; }; }
1760 fi
1761 echo "$as_me:$LINENO: result: yes" >&5
1762 echo "${ECHO_T}yes" >&6
1763 test "$program_prefix" != NONE &&
1764   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1765 # Use a double $ so make ignores it.
1766 test "$program_suffix" != NONE &&
1767   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1768 # Double any \ or $.  echo might interpret backslashes.
1769 # By default was `s,x,x', remove it if useless.
1770 cat <<\_ACEOF >conftest.sed
1771 s/[\\$]/&&/g;s/;s,x,x,$//
1772 _ACEOF
1773 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1774 rm conftest.sed
1775
1776 # expand $ac_aux_dir to an absolute path
1777 am_aux_dir=`cd $ac_aux_dir && pwd`
1778
1779 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1780 # Use eval to expand $SHELL
1781 if eval "$MISSING --run true"; then
1782   am_missing_run="$MISSING --run "
1783 else
1784   am_missing_run=
1785   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1786 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1787 fi
1788
1789 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1790   # We used to keeping the `.' as first argument, in order to
1791   # allow $(mkdir_p) to be used without argument.  As in
1792   #   $(mkdir_p) $(somedir)
1793   # where $(somedir) is conditionally defined.  However this is wrong
1794   # for two reasons:
1795   #  1. if the package is installed by a user who cannot write `.'
1796   #     make install will fail,
1797   #  2. the above comment should most certainly read
1798   #     $(mkdir_p) $(DESTDIR)$(somedir)
1799   #     so it does not work when $(somedir) is undefined and
1800   #     $(DESTDIR) is not.
1801   #  To support the latter case, we have to write
1802   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1803   #  so the `.' trick is pointless.
1804   mkdir_p='mkdir -p --'
1805 else
1806   # On NextStep and OpenStep, the `mkdir' command does not
1807   # recognize any option.  It will interpret all options as
1808   # directories to create, and then abort because `.' already
1809   # exists.
1810   for d in ./-p ./--version;
1811   do
1812     test -d $d && rmdir $d
1813   done
1814   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1815   if test -f "$ac_aux_dir/mkinstalldirs"; then
1816     mkdir_p='$(mkinstalldirs)'
1817   else
1818     mkdir_p='$(install_sh) -d'
1819   fi
1820 fi
1821
1822 for ac_prog in gawk mawk nawk awk
1823 do
1824   # Extract the first word of "$ac_prog", so it can be a program name with args.
1825 set dummy $ac_prog; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_AWK+set}" = set; then
1829   echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831   if test -n "$AWK"; then
1832   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837   IFS=$as_save_IFS
1838   test -z "$as_dir" && as_dir=.
1839   for ac_exec_ext in '' $ac_executable_extensions; do
1840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841     ac_cv_prog_AWK="$ac_prog"
1842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843     break 2
1844   fi
1845 done
1846 done
1847
1848 fi
1849 fi
1850 AWK=$ac_cv_prog_AWK
1851 if test -n "$AWK"; then
1852   echo "$as_me:$LINENO: result: $AWK" >&5
1853 echo "${ECHO_T}$AWK" >&6
1854 else
1855   echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1857 fi
1858
1859   test -n "$AWK" && break
1860 done
1861
1862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1863 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1864 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1865 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1866   echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868   cat >conftest.make <<\_ACEOF
1869 all:
1870         @echo 'ac_maketemp="$(MAKE)"'
1871 _ACEOF
1872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1873 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1874 if test -n "$ac_maketemp"; then
1875   eval ac_cv_prog_make_${ac_make}_set=yes
1876 else
1877   eval ac_cv_prog_make_${ac_make}_set=no
1878 fi
1879 rm -f conftest.make
1880 fi
1881 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1882   echo "$as_me:$LINENO: result: yes" >&5
1883 echo "${ECHO_T}yes" >&6
1884   SET_MAKE=
1885 else
1886   echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888   SET_MAKE="MAKE=${MAKE-make}"
1889 fi
1890
1891 rm -rf .tst 2>/dev/null
1892 mkdir .tst 2>/dev/null
1893 if test -d .tst; then
1894   am__leading_dot=.
1895 else
1896   am__leading_dot=_
1897 fi
1898 rmdir .tst 2>/dev/null
1899
1900 # test to see if srcdir already configured
1901 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1902    test -f $srcdir/config.status; then
1903   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1904 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908 # test whether we have cygpath
1909 if test -z "$CYGPATH_W"; then
1910   if (cygpath --version) >/dev/null 2>/dev/null; then
1911     CYGPATH_W='cygpath -w'
1912   else
1913     CYGPATH_W=echo
1914   fi
1915 fi
1916
1917
1918 # Define the identity of the package.
1919  PACKAGE=${PACKAGE}
1920  VERSION=${VERSION}
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE "$PACKAGE"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define VERSION "$VERSION"
1930 _ACEOF
1931
1932 # Some tools Automake needs.
1933
1934 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1935
1936
1937 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1938
1939
1940 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1941
1942
1943 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1944
1945
1946 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1947
1948 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1949
1950 # Installed binaries are usually stripped using `strip' when the user
1951 # run `make install-strip'.  However `strip' might not be the right
1952 # tool to use in cross-compilation environments, therefore Automake
1953 # will honor the `STRIP' environment variable to overrule this program.
1954 if test "$cross_compiling" != no; then
1955   if test -n "$ac_tool_prefix"; then
1956   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}strip; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_STRIP+set}" = set; then
1961   echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963   if test -n "$STRIP"; then
1964   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1968 do
1969   IFS=$as_save_IFS
1970   test -z "$as_dir" && as_dir=.
1971   for ac_exec_ext in '' $ac_executable_extensions; do
1972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975     break 2
1976   fi
1977 done
1978 done
1979
1980 fi
1981 fi
1982 STRIP=$ac_cv_prog_STRIP
1983 if test -n "$STRIP"; then
1984   echo "$as_me:$LINENO: result: $STRIP" >&5
1985 echo "${ECHO_T}$STRIP" >&6
1986 else
1987   echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1989 fi
1990
1991 fi
1992 if test -z "$ac_cv_prog_STRIP"; then
1993   ac_ct_STRIP=$STRIP
1994   # Extract the first word of "strip", so it can be a program name with args.
1995 set dummy strip; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$ac_ct_STRIP"; then
2002   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     ac_cv_prog_ac_ct_STRIP="strip"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017
2018   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2019 fi
2020 fi
2021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2022 if test -n "$ac_ct_STRIP"; then
2023   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2024 echo "${ECHO_T}$ac_ct_STRIP" >&6
2025 else
2026   echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030   STRIP=$ac_ct_STRIP
2031 else
2032   STRIP="$ac_cv_prog_STRIP"
2033 fi
2034
2035 fi
2036 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2037
2038 # We need awk for the "check" target.  The system "awk" is bad on
2039 # some platforms.
2040 # Always define AMTAR for backward compatibility.
2041
2042 AMTAR=${AMTAR-"${am_missing_run}tar"}
2043
2044 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061   rm -f config.nice
2062   cat >config.nice<<EOF
2063 #! /bin/sh
2064 #
2065 # Created by configure
2066
2067 EOF
2068   if test -n "$CC"; then
2069     echo "CC=\"$CC\"; export CC" >> config.nice
2070   fi
2071   if test -n "$CFLAGS"; then
2072     echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2073   fi
2074   if test -n "$CPPFLAGS"; then
2075     echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2076   fi
2077   if test -n "$LDFLAGS"; then
2078     echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2079   fi
2080   if test -n "$LTFLAGS"; then
2081     echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
2082   fi
2083   if test -n "$LIBS"; then
2084     echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2085   fi
2086   if test -n "$INCLUDES"; then
2087     echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2088   fi
2089   if test -n "$NOTEST_CFLAGS"; then
2090     echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2091   fi
2092   if test -n "$NOTEST_CPPFLAGS"; then
2093     echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2094   fi
2095   if test -n "$NOTEST_LDFLAGS"; then
2096     echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2097   fi
2098   if test -n "$NOTEST_LIBS"; then
2099     echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2100   fi
2101
2102   # Retrieve command-line arguments.
2103   eval "set x $0 $ac_configure_args"
2104   shift
2105
2106   for arg
2107   do
2108
2109 jk_last=
2110 jk_cur="$arg"
2111 while test "x${jk_cur}" != "x${jk_last}";
2112 do
2113   jk_last="${jk_cur}"
2114   jk_cur=`eval "echo ${jk_cur}"`
2115 done
2116 arg="${jk_cur}"
2117
2118     echo "\"$arg\" \\" >> config.nice
2119   done
2120   echo '"$@"' >> config.nice
2121   chmod +x config.nice
2122
2123
2124 # Extract the first word of "test", so it can be a program name with args.
2125 set dummy test; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_path_TEST+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   case $TEST in
2132   [\\/]* | ?:[\\/]*)
2133   ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
2134   ;;
2135   *)
2136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149
2150   test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="$PATH"
2151   ;;
2152 esac
2153 fi
2154 TEST=$ac_cv_path_TEST
2155
2156 if test -n "$TEST"; then
2157   echo "$as_me:$LINENO: result: $TEST" >&5
2158 echo "${ECHO_T}$TEST" >&6
2159 else
2160   echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2162 fi
2163
2164
2165 # Extract the first word of "rm", so it can be a program name with args.
2166 set dummy rm; ac_word=$2
2167 echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169 if test "${ac_cv_path_RM+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   case $RM in
2173   [\\/]* | ?:[\\/]*)
2174   ac_cv_path_RM="$RM" # Let the user override the test with a path.
2175   ;;
2176   *)
2177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190
2191   test -z "$ac_cv_path_RM" && ac_cv_path_RM="$PATH"
2192   ;;
2193 esac
2194 fi
2195 RM=$ac_cv_path_RM
2196
2197 if test -n "$RM"; then
2198   echo "$as_me:$LINENO: result: $RM" >&5
2199 echo "${ECHO_T}$RM" >&6
2200 else
2201   echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2203 fi
2204
2205
2206 # Extract the first word of "grep", so it can be a program name with args.
2207 set dummy grep; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_path_GREP+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   case $GREP in
2214   [\\/]* | ?:[\\/]*)
2215   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2216   ;;
2217   *)
2218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221   IFS=$as_save_IFS
2222   test -z "$as_dir" && as_dir=.
2223   for ac_exec_ext in '' $ac_executable_extensions; do
2224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2225     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
2226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227     break 2
2228   fi
2229 done
2230 done
2231
2232   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="$PATH"
2233   ;;
2234 esac
2235 fi
2236 GREP=$ac_cv_path_GREP
2237
2238 if test -n "$GREP"; then
2239   echo "$as_me:$LINENO: result: $GREP" >&5
2240 echo "${ECHO_T}$GREP" >&6
2241 else
2242   echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2244 fi
2245
2246
2247 # Extract the first word of "echo", so it can be a program name with args.
2248 set dummy echo; ac_word=$2
2249 echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251 if test "${ac_cv_path_ECHO+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   case $ECHO in
2255   [\\/]* | ?:[\\/]*)
2256   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
2257   ;;
2258   *)
2259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272
2273   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
2274   ;;
2275 esac
2276 fi
2277 ECHO=$ac_cv_path_ECHO
2278
2279 if test -n "$ECHO"; then
2280   echo "$as_me:$LINENO: result: $ECHO" >&5
2281 echo "${ECHO_T}$ECHO" >&6
2282 else
2283   echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2285 fi
2286
2287
2288 # Extract the first word of "sed", so it can be a program name with args.
2289 set dummy sed; ac_word=$2
2290 echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2292 if test "${ac_cv_path_SED+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   case $SED in
2296   [\\/]* | ?:[\\/]*)
2297   ac_cv_path_SED="$SED" # Let the user override the test with a path.
2298   ;;
2299   *)
2300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303   IFS=$as_save_IFS
2304   test -z "$as_dir" && as_dir=.
2305   for ac_exec_ext in '' $ac_executable_extensions; do
2306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309     break 2
2310   fi
2311 done
2312 done
2313
2314   test -z "$ac_cv_path_SED" && ac_cv_path_SED="$PATH"
2315   ;;
2316 esac
2317 fi
2318 SED=$ac_cv_path_SED
2319
2320 if test -n "$SED"; then
2321   echo "$as_me:$LINENO: result: $SED" >&5
2322 echo "${ECHO_T}$SED" >&6
2323 else
2324   echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2326 fi
2327
2328
2329 # Extract the first word of "cp", so it can be a program name with args.
2330 set dummy cp; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_path_CP+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   case $CP in
2337   [\\/]* | ?:[\\/]*)
2338   ac_cv_path_CP="$CP" # Let the user override the test with a path.
2339   ;;
2340   *)
2341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   for ac_exec_ext in '' $ac_executable_extensions; do
2347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354
2355   test -z "$ac_cv_path_CP" && ac_cv_path_CP="$PATH"
2356   ;;
2357 esac
2358 fi
2359 CP=$ac_cv_path_CP
2360
2361 if test -n "$CP"; then
2362   echo "$as_me:$LINENO: result: $CP" >&5
2363 echo "${ECHO_T}$CP" >&6
2364 else
2365   echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2367 fi
2368
2369
2370 # Extract the first word of "mkdir", so it can be a program name with args.
2371 set dummy mkdir; ac_word=$2
2372 echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2374 if test "${ac_cv_path_MKDIR+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   case $MKDIR in
2378   [\\/]* | ?:[\\/]*)
2379   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
2380   ;;
2381   *)
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_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
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   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$PATH"
2397   ;;
2398 esac
2399 fi
2400 MKDIR=$ac_cv_path_MKDIR
2401
2402 if test -n "$MKDIR"; then
2403   echo "$as_me:$LINENO: result: $MKDIR" >&5
2404 echo "${ECHO_T}$MKDIR" >&6
2405 else
2406   echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2408 fi
2409
2410
2411 CFLAGS="${CFLAGS} -DHAVE_CONFIG_H"
2412
2413
2414 APACHE_CONFIG_VARS=`pwd`/scripts/build/config_vars.mk
2415 WEBSERVER=""
2416 apache_dir=""
2417 apache_include=""
2418 APXS="apxs"
2419
2420 # Check whether --with-apxs or --without-apxs was given.
2421 if test "${with_apxs+set}" = set; then
2422   withval="$with_apxs"
2423
2424     case "${withval}" in
2425         y | yes | true) find_apxs=true ;;
2426         n | no | false) find_apxs= ;;
2427         *) find_apxs=${withval} ;;
2428     esac
2429
2430     if ${TEST} ${find_apxs} ; then
2431         echo "$as_me:$LINENO: result: need to check for Perl first, apxs depends on it..." >&5
2432 echo "${ECHO_T}need to check for Perl first, apxs depends on it..." >&6
2433         # Extract the first word of "perl", so it can be a program name with args.
2434 set dummy perl; ac_word=$2
2435 echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437 if test "${ac_cv_path_PERL+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   case $PERL in
2441   [\\/]* | ?:[\\/]*)
2442   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2443   ;;
2444   *)
2445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458
2459   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$PATH"
2460   ;;
2461 esac
2462 fi
2463 PERL=$ac_cv_path_PERL
2464
2465 if test -n "$PERL"; then
2466   echo "$as_me:$LINENO: result: $PERL" >&5
2467 echo "${ECHO_T}$PERL" >&6
2468 else
2469   echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2471 fi
2472
2473         if ${TEST} ${find_apxs} = true ; then
2474             # Extract the first word of "apxs", so it can be a program name with args.
2475 set dummy apxs; ac_word=$2
2476 echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_path_APXS+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   case $APXS in
2482   [\\/]* | ?:[\\/]*)
2483   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
2484   ;;
2485   *)
2486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
2494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499
2500   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="$PATH"
2501   ;;
2502 esac
2503 fi
2504 APXS=$ac_cv_path_APXS
2505
2506 if test -n "$APXS"; then
2507   echo "$as_me:$LINENO: result: $APXS" >&5
2508 echo "${ECHO_T}$APXS" >&6
2509 else
2510   echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2512 fi
2513         else
2514             APXS=${find_apxs}
2515         fi
2516
2517         if ${TEST} -n "${APXS}" ; then
2518                         if ${TEST} ! -x "${APXS}" ; then
2519                 { { echo "$as_me:$LINENO: error: Invalid location for apxs: '${APXS}'" >&5
2520 echo "$as_me: error: Invalid location for apxs: '${APXS}'" >&2;}
2521    { (exit 1); exit 1; }; }
2522             fi
2523
2524             ${APXS} -q PREFIX >/dev/null 2>/dev/null || apxs_support=false
2525
2526             if ${TEST} "${apxs_support}" = "false" ; then
2527                 echo "$as_me:$LINENO: result: could not find ${APXS}" >&5
2528 echo "${ECHO_T}could not find ${APXS}" >&6
2529                 { { echo "$as_me:$LINENO: error: You must specify a valid --with-apxs path" >&5
2530 echo "$as_me: error: You must specify a valid --with-apxs path" >&2;}
2531    { (exit 1); exit 1; }; }
2532             fi
2533
2534                         apache_dir=`$APXS -q PREFIX`
2535             apache_include="-I`$APXS -q INCLUDEDIR`"
2536
2537                         APA=`${GREP} STANDARD20 ${APXS}`
2538             if ${TEST} -z "$APA" ; then
2539                 WEBSERVER="apache-1.3"
2540                 APXSCC="`$APXS -q CC`"
2541                 APXSCFLAGS="`$APXS -q CFLAGS` -DJK_PREFORK"
2542                 APXSCPPFLAGS=""
2543                 APXSLDFLAGS="`$APXS -q LDFLAGS_SHLIB`"
2544             else
2545                 WEBSERVER="apache-2.0"
2546                 APRINCLUDEDIR=""
2547                 INCTEMP="`$APXS -q APR_INCLUDEDIR` `$APXS -q APU_INCLUDEDIR`"
2548                 for INC in ${INCTEMP}; do
2549                     APRINCLUDEDIR="${APRINCLUDEDIR} -I${INC}"
2550                 done
2551                 echo "$as_me:$LINENO: result: APRINCLUDEDIR is $APRINCLUDEDIR" >&5
2552 echo "${ECHO_T}APRINCLUDEDIR is $APRINCLUDEDIR" >&6
2553                 APXSCC="`$APXS -q CC`"
2554                 APXSCFLAGS="`${APXS} -q CFLAGS` `${APXS} -q EXTRA_CFLAGS` -DHAVE_APR ${APRINCLUDEDIR}"
2555                 APXSCPPFLAGS="`${APXS} -q EXTRA_CPPFLAGS`"
2556                 APXSLDFLAGS="`$APXS -q LDFLAGS`"
2557                 APACHE_CONFIG_VARS="`${APXS} -q exp_installbuilddir`/config_vars.mk"
2558                 LIBTOOL=`$APXS -q LIBTOOL`
2559             fi
2560             echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
2561 echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6
2562             if ${TEST} -z "${CC}" ; then
2563                 CC="${APXSCC}"
2564             else
2565                 if ${TEST} "${CC}" != "$APXSCC" ; then
2566                     WARN_CC=1
2567                 fi
2568             fi
2569
2570
2571         fi
2572     fi
2573
2574 else
2575
2576     echo "$as_me:$LINENO: result: no apxs given" >&5
2577 echo "${ECHO_T}no apxs given" >&6
2578
2579 fi;
2580
2581
2582
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 if test -n "$ac_tool_prefix"; then
2589   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2591 echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   if test -n "$CC"; then
2597   ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604   for ac_exec_ext in '' $ac_executable_extensions; do
2605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611 done
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617   echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6
2619 else
2620   echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2622 fi
2623
2624 fi
2625 if test -z "$ac_cv_prog_CC"; then
2626   ac_ct_CC=$CC
2627   # Extract the first word of "gcc", so it can be a program name with args.
2628 set dummy gcc; ac_word=$2
2629 echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632   echo $ECHO_N "(cached) $ECHO_C" >&6
2633 else
2634   if test -n "$ac_ct_CC"; then
2635   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642   for ac_exec_ext in '' $ac_executable_extensions; do
2643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644     ac_cv_prog_ac_ct_CC="gcc"
2645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2646     break 2
2647   fi
2648 done
2649 done
2650
2651 fi
2652 fi
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6
2657 else
2658   echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6
2660 fi
2661
2662   CC=$ac_ct_CC
2663 else
2664   CC="$ac_cv_prog_CC"
2665 fi
2666
2667 if test -z "$CC"; then
2668   if test -n "$ac_tool_prefix"; then
2669   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2670 set dummy ${ac_tool_prefix}cc; ac_word=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_CC+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   if test -n "$CC"; then
2677   ac_cv_prog_CC="$CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684   for ac_exec_ext in '' $ac_executable_extensions; do
2685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686     ac_cv_prog_CC="${ac_tool_prefix}cc"
2687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691 done
2692
2693 fi
2694 fi
2695 CC=$ac_cv_prog_CC
2696 if test -n "$CC"; then
2697   echo "$as_me:$LINENO: result: $CC" >&5
2698 echo "${ECHO_T}$CC" >&6
2699 else
2700   echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2702 fi
2703
2704 fi
2705 if test -z "$ac_cv_prog_CC"; then
2706   ac_ct_CC=$CC
2707   # Extract the first word of "cc", so it can be a program name with args.
2708 set dummy cc; ac_word=$2
2709 echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   if test -n "$ac_ct_CC"; then
2715   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722   for ac_exec_ext in '' $ac_executable_extensions; do
2723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2724     ac_cv_prog_ac_ct_CC="cc"
2725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726     break 2
2727   fi
2728 done
2729 done
2730
2731 fi
2732 fi
2733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2734 if test -n "$ac_ct_CC"; then
2735   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2736 echo "${ECHO_T}$ac_ct_CC" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740 fi
2741
2742   CC=$ac_ct_CC
2743 else
2744   CC="$ac_cv_prog_CC"
2745 fi
2746
2747 fi
2748 if test -z "$CC"; then
2749   # Extract the first word of "cc", so it can be a program name with args.
2750 set dummy cc; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   if test -n "$CC"; then
2757   ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759   ac_prog_rejected=no
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765   for ac_exec_ext in '' $ac_executable_extensions; do
2766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2768        ac_prog_rejected=yes
2769        continue
2770      fi
2771     ac_cv_prog_CC="cc"
2772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773     break 2
2774   fi
2775 done
2776 done
2777
2778 if test $ac_prog_rejected = yes; then
2779   # We found a bogon in the path, so make sure we never use it.
2780   set dummy $ac_cv_prog_CC
2781   shift
2782   if test $# != 0; then
2783     # We chose a different compiler from the bogus one.
2784     # However, it has the same basename, so the bogon will be chosen
2785     # first if we set CC to just the basename; use the full file name.
2786     shift
2787     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2788   fi
2789 fi
2790 fi
2791 fi
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794   echo "$as_me:$LINENO: result: $CC" >&5
2795 echo "${ECHO_T}$CC" >&6
2796 else
2797   echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2799 fi
2800
2801 fi
2802 if test -z "$CC"; then
2803   if test -n "$ac_tool_prefix"; then
2804   for ac_prog in cl
2805   do
2806     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811   echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813   if test -n "$CC"; then
2814   ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821   for ac_exec_ext in '' $ac_executable_extensions; do
2822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828 done
2829
2830 fi
2831 fi
2832 CC=$ac_cv_prog_CC
2833 if test -n "$CC"; then
2834   echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6
2836 else
2837   echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2839 fi
2840
2841     test -n "$CC" && break
2842   done
2843 fi
2844 if test -z "$CC"; then
2845   ac_ct_CC=$CC
2846   for ac_prog in cl
2847 do
2848   # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   if test -n "$ac_ct_CC"; then
2856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863   for ac_exec_ext in '' $ac_executable_extensions; do
2864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865     ac_cv_prog_ac_ct_CC="$ac_prog"
2866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870 done
2871
2872 fi
2873 fi
2874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875 if test -n "$ac_ct_CC"; then
2876   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877 echo "${ECHO_T}$ac_ct_CC" >&6
2878 else
2879   echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2881 fi
2882
2883   test -n "$ac_ct_CC" && break
2884 done
2885
2886   CC=$ac_ct_CC
2887 fi
2888
2889 fi
2890
2891
2892 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&2;}
2896    { (exit 1); exit 1; }; }
2897
2898 # Provide some information about the compiler.
2899 echo "$as_me:$LINENO:" \
2900      "checking for C compiler version" >&5
2901 ac_compiler=`set X $ac_compile; echo $2`
2902 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2903   (eval $ac_compiler --version </dev/null >&5) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }
2907 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2908   (eval $ac_compiler -v </dev/null >&5) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2913   (eval $ac_compiler -V </dev/null >&5) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }
2917
2918 cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924
2925 int
2926 main ()
2927 {
2928
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 ac_clean_files_save=$ac_clean_files
2934 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2935 # Try to create an executable without -o first, disregard a.out.
2936 # It will help us diagnose broken compilers, and finding out an intuition
2937 # of exeext.
2938 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2939 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2940 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2941 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2942   (eval $ac_link_default) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; then
2946   # Find the output, starting from the most likely.  This scheme is
2947 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2948 # resort.
2949
2950 # Be careful to initialize this variable, since it used to be cached.
2951 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2952 ac_cv_exeext=
2953 # b.out is created by i960 compilers.
2954 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2955 do
2956   test -f "$ac_file" || continue
2957   case $ac_file in
2958     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2959         ;;
2960     conftest.$ac_ext )
2961         # This is the source file.
2962         ;;
2963     [ab].out )
2964         # We found the default executable, but exeext='' is most
2965         # certainly right.
2966         break;;
2967     *.* )
2968         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969         # FIXME: I believe we export ac_cv_exeext for Libtool,
2970         # but it would be cool to find out if it's true.  Does anybody
2971         # maintain Libtool? --akim.
2972         export ac_cv_exeext
2973         break;;
2974     * )
2975         break;;
2976   esac
2977 done
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: C compiler cannot create executables
2985 See \`config.log' for more details." >&2;}
2986    { (exit 77); exit 77; }; }
2987 fi
2988
2989 ac_exeext=$ac_cv_exeext
2990 echo "$as_me:$LINENO: result: $ac_file" >&5
2991 echo "${ECHO_T}$ac_file" >&6
2992
2993 # Check the compiler produces executables we can run.  If not, either
2994 # the compiler is broken, or we cross compile.
2995 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2996 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2997 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2998 # If not cross compiling, check that we can run a simple program.
2999 if test "$cross_compiling" != yes; then
3000   if { ac_try='./$ac_file'
3001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002   (eval $ac_try) 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }; }; then
3006     cross_compiling=no
3007   else
3008     if test "$cross_compiling" = maybe; then
3009         cross_compiling=yes
3010     else
3011         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: cannot run C compiled programs.
3015 If you meant to cross compile, use \`--host'.
3016 See \`config.log' for more details." >&2;}
3017    { (exit 1); exit 1; }; }
3018     fi
3019   fi
3020 fi
3021 echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6
3023
3024 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3025 ac_clean_files=$ac_clean_files_save
3026 # Check the compiler produces executables we can run.  If not, either
3027 # the compiler is broken, or we cross compile.
3028 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3029 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3030 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3031 echo "${ECHO_T}$cross_compiling" >&6
3032
3033 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3034 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3036   (eval $ac_link) 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; then
3040   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3042 # work properly (i.e., refer to `conftest.exe'), while it won't with
3043 # `rm'.
3044 for ac_file in conftest.exe conftest conftest.*; do
3045   test -f "$ac_file" || continue
3046   case $ac_file in
3047     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3048     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049           export ac_cv_exeext
3050           break;;
3051     * ) break;;
3052   esac
3053 done
3054 else
3055   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3058 See \`config.log' for more details." >&2;}
3059    { (exit 1); exit 1; }; }
3060 fi
3061
3062 rm -f conftest$ac_cv_exeext
3063 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3064 echo "${ECHO_T}$ac_cv_exeext" >&6
3065
3066 rm -f conftest.$ac_ext
3067 EXEEXT=$ac_cv_exeext
3068 ac_exeext=$EXEEXT
3069 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3070 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3071 if test "${ac_cv_objext+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080
3081 int
3082 main ()
3083 {
3084
3085   ;
3086   return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.o conftest.obj
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091   (eval $ac_compile) 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }; then
3095   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3096   case $ac_file in
3097     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3098     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3099        break;;
3100   esac
3101 done
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3107 See \`config.log' for more details." >&5
3108 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3109 See \`config.log' for more details." >&2;}
3110    { (exit 1); exit 1; }; }
3111 fi
3112
3113 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3114 fi
3115 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3116 echo "${ECHO_T}$ac_cv_objext" >&6
3117 OBJEXT=$ac_cv_objext
3118 ac_objext=$OBJEXT
3119 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3120 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3121 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130
3131 int
3132 main ()
3133 {
3134 #ifndef __GNUC__
3135        choke me
3136 #endif
3137
3138   ;
3139   return 0;
3140 }
3141 _ACEOF
3142 rm -f conftest.$ac_objext
3143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144   (eval $ac_compile) 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } &&
3151          { ac_try='test -z "$ac_c_werror_flag"
3152                          || test ! -s conftest.err'
3153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154   (eval $ac_try) 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; } &&
3158          { ac_try='test -s conftest.$ac_objext'
3159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160   (eval $ac_try) 2>&5
3161   ac_status=$?
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); }; }; then
3164   ac_compiler_gnu=yes
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 ac_compiler_gnu=no
3170 fi
3171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3173
3174 fi
3175 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3176 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3177 GCC=`test $ac_compiler_gnu = yes && echo yes`
3178 ac_test_CFLAGS=${CFLAGS+set}
3179 ac_save_CFLAGS=$CFLAGS
3180 CFLAGS="-g"
3181 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3182 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3183 if test "${ac_cv_prog_cc_g+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192
3193 int
3194 main ()
3195 {
3196
3197   ;
3198   return 0;
3199 }
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3203   (eval $ac_compile) 2>conftest.er1
3204   ac_status=$?
3205   grep -v '^ *+' conftest.er1 >conftest.err
3206   rm -f conftest.er1
3207   cat conftest.err >&5
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } &&
3210          { ac_try='test -z "$ac_c_werror_flag"
3211                          || test ! -s conftest.err'
3212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213   (eval $ac_try) 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }; } &&
3217          { ac_try='test -s conftest.$ac_objext'
3218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219   (eval $ac_try) 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }; }; then
3223   ac_cv_prog_cc_g=yes
3224 else
3225   echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 ac_cv_prog_cc_g=no
3229 fi
3230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3234 if test "$ac_test_CFLAGS" = set; then
3235   CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237   if test "$GCC" = yes; then
3238     CFLAGS="-g -O2"
3239   else
3240     CFLAGS="-g"
3241   fi
3242 else
3243   if test "$GCC" = yes; then
3244     CFLAGS="-O2"
3245   else
3246     CFLAGS=
3247   fi
3248 fi
3249 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3250 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3251 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_cv_prog_cc_stdc=no
3255 ac_save_CC=$CC
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #include <stdarg.h>
3263 #include <stdio.h>
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270      char **p;
3271      int i;
3272 {
3273   return p[i];
3274 }
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3276 {
3277   char *s;
3278   va_list v;
3279   va_start (v,p);
3280   s = g (p, va_arg (v,int));
3281   va_end (v);
3282   return s;
3283 }
3284
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3286    function prototypes and stuff, but not '\xHH' hex character constants.
3287    These don't provoke an error unfortunately, instead are silently treated
3288    as 'x'.  The following induces an error, until -std1 is added to get
3289    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3290    array size at least.  It's necessary to write '\x00'==0 to get something
3291    that's true only with -std1.  */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
3294 int test (int i, double x);
3295 struct s1 {int (*f) (int a);};
3296 struct s2 {int (*f) (double a);};
3297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3298 int argc;
3299 char **argv;
3300 int
3301 main ()
3302 {
3303 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3304   ;
3305   return 0;
3306 }
3307 _ACEOF
3308 # Don't try gcc -ansi; that turns off useful extensions and
3309 # breaks some systems' header files.
3310 # AIX                   -qlanglvl=ansi
3311 # Ultrix and OSF/1      -std1
3312 # HP-UX 10.20 and later -Ae
3313 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3314 # SVR4                  -Xc -D__EXTENSIONS__
3315 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 do
3317   CC="$ac_save_CC $ac_arg"
3318   rm -f conftest.$ac_objext
3319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320   (eval $ac_compile) 2>conftest.er1
3321   ac_status=$?
3322   grep -v '^ *+' conftest.er1 >conftest.err
3323   rm -f conftest.er1
3324   cat conftest.err >&5
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); } &&
3327          { ac_try='test -z "$ac_c_werror_flag"
3328                          || test ! -s conftest.err'
3329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330   (eval $ac_try) 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; } &&
3334          { ac_try='test -s conftest.$ac_objext'
3335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336   (eval $ac_try) 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; }; then
3340   ac_cv_prog_cc_stdc=$ac_arg
3341 break
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 fi
3347 rm -f conftest.err conftest.$ac_objext
3348 done
3349 rm -f conftest.$ac_ext conftest.$ac_objext
3350 CC=$ac_save_CC
3351
3352 fi
3353
3354 case "x$ac_cv_prog_cc_stdc" in
3355   x|xno)
3356     echo "$as_me:$LINENO: result: none needed" >&5
3357 echo "${ECHO_T}none needed" >&6 ;;
3358   *)
3359     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3361     CC="$CC $ac_cv_prog_cc_stdc" ;;
3362 esac
3363
3364 # Some people use a C++ compiler to compile C.  Since we use `exit',
3365 # in C++ we need to declare it.  In case someone uses the same compiler
3366 # for both compiling C and C++ we need to have the C++ compiler decide
3367 # the declaration of exit, since it's the most demanding environment.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #ifndef __cplusplus
3370   choke me
3371 #endif
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375   (eval $ac_compile) 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } &&
3382          { ac_try='test -z "$ac_c_werror_flag"
3383                          || test ! -s conftest.err'
3384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385   (eval $ac_try) 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; } &&
3389          { ac_try='test -s conftest.$ac_objext'
3390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391   (eval $ac_try) 2>&5
3392   ac_status=$?
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); }; }; then
3395   for ac_declaration in \
3396    '' \
3397    'extern "C" void std::exit (int) throw (); using std::exit;' \
3398    'extern "C" void std::exit (int); using std::exit;' \
3399    'extern "C" void exit (int) throw ();' \
3400    'extern "C" void exit (int);' \
3401    'void exit (int);'
3402 do
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 $ac_declaration
3410 #include <stdlib.h>
3411 int
3412 main ()
3413 {
3414 exit (42);
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.$ac_objext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421   (eval $ac_compile) 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } &&
3428          { ac_try='test -z "$ac_c_werror_flag"
3429                          || test ! -s conftest.err'
3430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431   (eval $ac_try) 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; } &&
3435          { ac_try='test -s conftest.$ac_objext'
3436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437   (eval $ac_try) 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); }; }; then
3441   :
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446 continue
3447 fi
3448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3449   cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h.  */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h.  */
3455 $ac_declaration
3456 int
3457 main ()
3458 {
3459 exit (42);
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466   (eval $ac_compile) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } &&
3473          { ac_try='test -z "$ac_c_werror_flag"
3474                          || test ! -s conftest.err'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   break
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 fi
3492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493 done
3494 rm -f conftest*
3495 if test -n "$ac_declaration"; then
3496   echo '#ifdef __cplusplus' >>confdefs.h
3497   echo $ac_declaration      >>confdefs.h
3498   echo '#endif'             >>confdefs.h
3499 fi
3500
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 fi
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_ext=c
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 DEPDIR="${am__leading_dot}deps"
3513
3514           ac_config_commands="$ac_config_commands depfiles"
3515
3516
3517 am_make=${MAKE-make}
3518 cat > confinc << 'END'
3519 am__doit:
3520         @echo done
3521 .PHONY: am__doit
3522 END
3523 # If we don't find an include directive, just comment out the code.
3524 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3525 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3526 am__include="#"
3527 am__quote=
3528 _am_result=none
3529 # First try GNU make style include.
3530 echo "include confinc" > confmf
3531 # We grep out `Entering directory' and `Leaving directory'
3532 # messages which can occur if `w' ends up in MAKEFLAGS.
3533 # In particular we don't look at `^make:' because GNU make might
3534 # be invoked under some other name (usually "gmake"), in which
3535 # case it prints its new name instead of `make'.
3536 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3537    am__include=include
3538    am__quote=
3539    _am_result=GNU
3540 fi
3541 # Now try BSD make style include.
3542 if test "$am__include" = "#"; then
3543    echo '.include "confinc"' > confmf
3544    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3545       am__include=.include
3546       am__quote="\""
3547       _am_result=BSD
3548    fi
3549 fi
3550
3551
3552 echo "$as_me:$LINENO: result: $_am_result" >&5
3553 echo "${ECHO_T}$_am_result" >&6
3554 rm -f confinc confmf
3555
3556 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3557 if test "${enable_dependency_tracking+set}" = set; then
3558   enableval="$enable_dependency_tracking"
3559
3560 fi;
3561 if test "x$enable_dependency_tracking" != xno; then
3562   am_depcomp="$ac_aux_dir/depcomp"
3563   AMDEPBACKSLASH='\'
3564 fi
3565
3566
3567 if test "x$enable_dependency_tracking" != xno; then
3568   AMDEP_TRUE=
3569   AMDEP_FALSE='#'
3570 else
3571   AMDEP_TRUE='#'
3572   AMDEP_FALSE=
3573 fi
3574
3575
3576
3577
3578 depcc="$CC"   am_compiler_list=
3579
3580 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3581 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3582 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3586   # We make a subdir and do the tests there.  Otherwise we can end up
3587   # making bogus files that we don't know about and never remove.  For
3588   # instance it was reported that on HP-UX the gcc test will end up
3589   # making a dummy file named `D' -- because `-MD' means `put the output
3590   # in D'.
3591   mkdir conftest.dir
3592   # Copy depcomp to subdir because otherwise we won't find it if we're
3593   # using a relative directory.
3594   cp "$am_depcomp" conftest.dir
3595   cd conftest.dir
3596   # We will build objects and dependencies in a subdirectory because
3597   # it helps to detect inapplicable dependency modes.  For instance
3598   # both Tru64's cc and ICC support -MD to output dependencies as a
3599   # side effect of compilation, but ICC will put the dependencies in
3600   # the current directory while Tru64 will put them in the object
3601   # directory.
3602   mkdir sub
3603
3604   am_cv_CC_dependencies_compiler_type=none
3605   if test "$am_compiler_list" = ""; then
3606      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3607   fi
3608   for depmode in $am_compiler_list; do
3609     # Setup a source with many dependencies, because some compilers
3610     # like to wrap large dependency lists on column 80 (with \), and
3611     # we should not choose a depcomp mode which is confused by this.
3612     #
3613     # We need to recreate these files for each test, as the compiler may
3614     # overwrite some of them when testing with obscure command lines.
3615     # This happens at least with the AIX C compiler.
3616     : > sub/conftest.c
3617     for i in 1 2 3 4 5 6; do
3618       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3619       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3620       # Solaris 8's {/usr,}/bin/sh.
3621       touch sub/conftst$i.h
3622     done
3623     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3624
3625     case $depmode in
3626     nosideeffect)
3627       # after this tag, mechanisms are not by side-effect, so they'll
3628       # only be used when explicitly requested
3629       if test "x$enable_dependency_tracking" = xyes; then
3630         continue
3631       else
3632         break
3633       fi
3634       ;;
3635     none) break ;;
3636     esac
3637     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3638     # mode.  It turns out that the SunPro C++ compiler does not properly
3639     # handle `-M -o', and we need to detect this.
3640     if depmode=$depmode \
3641        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3642        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3643        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3644          >/dev/null 2>conftest.err &&
3645        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3646        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3647        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3648       # icc doesn't choke on unknown options, it will just issue warnings
3649       # or remarks (even with -Werror).  So we grep stderr for any message
3650       # that says an option was ignored or not supported.
3651       # When given -MP, icc 7.0 and 7.1 complain thusly:
3652       #   icc: Command line warning: ignoring option '-M'; no argument required
3653       # The diagnosis changed in icc 8.0:
3654       #   icc: Command line remark: option '-MP' not supported
3655       if (grep 'ignoring option' conftest.err ||
3656           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3657         am_cv_CC_dependencies_compiler_type=$depmode
3658         break
3659       fi
3660     fi
3661   done
3662
3663   cd ..
3664   rm -rf conftest.dir
3665 else
3666   am_cv_CC_dependencies_compiler_type=none
3667 fi
3668
3669 fi
3670 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3671 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3672 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3673
3674
3675
3676 if
3677   test "x$enable_dependency_tracking" != xno \
3678   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3679   am__fastdepCC_TRUE=
3680   am__fastdepCC_FALSE='#'
3681 else
3682   am__fastdepCC_TRUE='#'
3683   am__fastdepCC_FALSE=
3684 fi
3685
3686
3687 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3688 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3689 if test "${lt_cv_path_SED+set}" = set; then
3690   echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692   # Loop through the user's path and test for sed and gsed.
3693 # Then use that list of sed's as ones to test for truncation.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699   for lt_ac_prog in sed gsed; do
3700     for ac_exec_ext in '' $ac_executable_extensions; do
3701       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3702         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3703       fi
3704     done
3705   done
3706 done
3707 lt_ac_max=0
3708 lt_ac_count=0
3709 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3710 # along with /bin/sed that truncates output.
3711 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3712   test ! -f $lt_ac_sed && break
3713   cat /dev/null > conftest.in
3714   lt_ac_count=0
3715   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3716   # Check for GNU sed and select it if it is found.
3717   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3718     lt_cv_path_SED=$lt_ac_sed
3719     break
3720   fi
3721   while true; do
3722     cat conftest.in conftest.in >conftest.tmp
3723     mv conftest.tmp conftest.in
3724     cp conftest.in conftest.nl
3725     echo >>conftest.nl
3726     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3727     cmp -s conftest.out conftest.nl || break
3728     # 10000 chars as input seems more than enough
3729     test $lt_ac_count -gt 10 && break
3730     lt_ac_count=`expr $lt_ac_count + 1`
3731     if test $lt_ac_count -gt $lt_ac_max; then
3732       lt_ac_max=$lt_ac_count
3733       lt_cv_path_SED=$lt_ac_sed
3734     fi
3735   done
3736 done
3737 SED=$lt_cv_path_SED
3738
3739 fi
3740
3741 echo "$as_me:$LINENO: result: $SED" >&5
3742 echo "${ECHO_T}$SED" >&6
3743
3744 echo "$as_me:$LINENO: checking for egrep" >&5
3745 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3746 if test "${ac_cv_prog_egrep+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3750     then ac_cv_prog_egrep='grep -E'
3751     else ac_cv_prog_egrep='egrep'
3752     fi
3753 fi
3754 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3755 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3756  EGREP=$ac_cv_prog_egrep
3757
3758
3759
3760 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3761 if test "${with_gnu_ld+set}" = set; then
3762   withval="$with_gnu_ld"
3763   test "$withval" = no || with_gnu_ld=yes
3764 else
3765   with_gnu_ld=no
3766 fi;
3767 ac_prog=ld
3768 if test "$GCC" = yes; then
3769   # Check if gcc -print-prog-name=ld gives a path.
3770   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3771 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3772   case $host in
3773   *-*-mingw*)
3774     # gcc leaves a trailing carriage return which upsets mingw
3775     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3776   *)
3777     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3778   esac
3779   case $ac_prog in
3780     # Accept absolute paths.
3781     [\\/]* | ?:[\\/]*)
3782       re_direlt='/[^/][^/]*/\.\./'
3783       # Canonicalize the pathname of ld
3784       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3785       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3786         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3787       done
3788       test -z "$LD" && LD="$ac_prog"
3789       ;;
3790   "")
3791     # If it fails, then pretend we aren't using GCC.
3792     ac_prog=ld
3793     ;;
3794   *)
3795     # If it is relative, then search for the first ld in PATH.
3796     with_gnu_ld=unknown
3797     ;;
3798   esac
3799 elif test "$with_gnu_ld" = yes; then
3800   echo "$as_me:$LINENO: checking for GNU ld" >&5
3801 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3802 else
3803   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3804 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3805 fi
3806 if test "${lt_cv_path_LD+set}" = set; then
3807   echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809   if test -z "$LD"; then
3810   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3811   for ac_dir in $PATH; do
3812     IFS="$lt_save_ifs"
3813     test -z "$ac_dir" && ac_dir=.
3814     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3815       lt_cv_path_LD="$ac_dir/$ac_prog"
3816       # Check to see if the program is GNU ld.  I'd rather use --version,
3817       # but apparently some GNU ld's only accept -v.
3818       # Break only if it was the GNU/non-GNU ld that we prefer.
3819       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3820       *GNU* | *'with BFD'*)
3821         test "$with_gnu_ld" != no && break
3822         ;;
3823       *)
3824         test "$with_gnu_ld" != yes && break
3825         ;;
3826       esac
3827     fi
3828   done
3829   IFS="$lt_save_ifs"
3830 else
3831   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3832 fi
3833 fi
3834
3835 LD="$lt_cv_path_LD"
3836 if test -n "$LD"; then
3837   echo "$as_me:$LINENO: result: $LD" >&5
3838 echo "${ECHO_T}$LD" >&6
3839 else
3840   echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 fi
3843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3845    { (exit 1); exit 1; }; }
3846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3852 case `$LD -v 2>&1 </dev/null` in
3853 *GNU* | *'with BFD'*)
3854   lt_cv_prog_gnu_ld=yes
3855   ;;
3856 *)
3857   lt_cv_prog_gnu_ld=no
3858   ;;
3859 esac
3860 fi
3861 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3862 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3863 with_gnu_ld=$lt_cv_prog_gnu_ld
3864
3865
3866
3867 SAVE_LIBTOOL="$LIBTOOL"
3868
3869
3870
3871
3872 # Check whether --enable-shared or --disable-shared was given.
3873 if test "${enable_shared+set}" = set; then
3874   enableval="$enable_shared"
3875   p=${PACKAGE-default}
3876     case $enableval in
3877     yes) enable_shared=yes ;;
3878     no) enable_shared=no ;;
3879     *)
3880       enable_shared=no
3881       # Look at the argument we got.  We use all the common list separators.
3882       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3883       for pkg in $enableval; do
3884         IFS="$lt_save_ifs"
3885         if test "X$pkg" = "X$p"; then
3886           enable_shared=yes
3887         fi
3888       done
3889       IFS="$lt_save_ifs"
3890       ;;
3891     esac
3892 else
3893   enable_shared=yes
3894 fi;
3895
3896 # Check whether --enable-static or --disable-static was given.
3897 if test "${enable_static+set}" = set; then
3898   enableval="$enable_static"
3899   p=${PACKAGE-default}
3900     case $enableval in
3901     yes) enable_static=yes ;;
3902     no) enable_static=no ;;
3903     *)
3904      enable_static=no
3905       # Look at the argument we got.  We use all the common list separators.
3906       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3907       for pkg in $enableval; do
3908         IFS="$lt_save_ifs"
3909         if test "X$pkg" = "X$p"; then
3910           enable_static=yes
3911         fi
3912       done
3913       IFS="$lt_save_ifs"
3914       ;;
3915     esac
3916 else
3917   enable_static=yes
3918 fi;
3919
3920 # Check whether --enable-fast-install or --disable-fast-install was given.
3921 if test "${enable_fast_install+set}" = set; then
3922   enableval="$enable_fast_install"
3923   p=${PACKAGE-default}
3924     case $enableval in
3925     yes) enable_fast_install=yes ;;
3926     no) enable_fast_install=no ;;
3927     *)
3928       enable_fast_install=no
3929       # Look at the argument we got.  We use all the common list separators.
3930       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3931       for pkg in $enableval; do
3932         IFS="$lt_save_ifs"
3933         if test "X$pkg" = "X$p"; then
3934           enable_fast_install=yes
3935         fi
3936       done
3937       IFS="$lt_save_ifs"
3938       ;;
3939     esac
3940 else
3941   enable_fast_install=yes
3942 fi;
3943
3944 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3945 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3946 if test "${lt_cv_ld_reload_flag+set}" = set; then
3947   echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949   lt_cv_ld_reload_flag='-r'
3950 fi
3951 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3952 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3953 reload_flag=$lt_cv_ld_reload_flag
3954 case $reload_flag in
3955 "" | " "*) ;;
3956 *) reload_flag=" $reload_flag" ;;
3957 esac
3958 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3959
3960 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3961 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3962 if test "${lt_cv_path_NM+set}" = set; then
3963   echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965   if test -n "$NM"; then
3966   # Let the user override the test.
3967   lt_cv_path_NM="$NM"
3968 else
3969   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3970   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3971     IFS="$lt_save_ifs"
3972     test -z "$ac_dir" && ac_dir=.
3973     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3974     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3975       # Check to see if the nm accepts a BSD-compat flag.
3976       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3977       #   nm: unknown option "B" ignored
3978       # Tru64's nm complains that /dev/null is an invalid object file
3979       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3980       */dev/null* | *'Invalid file or object type'*)
3981         lt_cv_path_NM="$tmp_nm -B"
3982         break
3983         ;;
3984       *)
3985         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3986         */dev/null*)
3987           lt_cv_path_NM="$tmp_nm -p"
3988           break
3989           ;;
3990         *)
3991           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3992           continue # so that we can try to find one that supports BSD flags
3993           ;;
3994         esac
3995       esac
3996     fi
3997   done
3998   IFS="$lt_save_ifs"
3999   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4000 fi
4001 fi
4002 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4003 echo "${ECHO_T}$lt_cv_path_NM" >&6
4004 NM="$lt_cv_path_NM"
4005
4006 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4007 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4008 LN_S=$as_ln_s
4009 if test "$LN_S" = "ln -s"; then
4010   echo "$as_me:$LINENO: result: yes" >&5
4011 echo "${ECHO_T}yes" >&6
4012 else
4013   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4014 echo "${ECHO_T}no, using $LN_S" >&6
4015 fi
4016
4017 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4018 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4019 if test "${lt_cv_deplibs_check_method+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   lt_cv_file_magic_cmd='$MAGIC_CMD'
4023 lt_cv_file_magic_test_file=
4024 lt_cv_deplibs_check_method='unknown'
4025 # Need to set the preceding variable on all platforms that support
4026 # interlibrary dependencies.
4027 # 'none' -- dependencies not supported.
4028 # `unknown' -- same as none, but documents that we really don't know.
4029 # 'pass_all' -- all dependencies passed with no checks.
4030 # 'test_compile' -- check by making test program.
4031 # 'file_magic [[regex]]' -- check by looking for files in library path
4032 # which responds to the $file_magic_cmd with a given extended regex.
4033 # If you have `file' or equivalent on your system and you're not sure
4034 # whether `pass_all' will *always* work, you probably want this one.
4035
4036 case $host_os in
4037 aix4* | aix5*)
4038   lt_cv_deplibs_check_method=pass_all
4039   ;;
4040
4041 beos*)
4042   lt_cv_deplibs_check_method=pass_all
4043   ;;
4044
4045 bsdi4*)
4046   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4047   lt_cv_file_magic_cmd='/usr/bin/file -L'
4048   lt_cv_file_magic_test_file=/shlib/libc.so
4049   ;;
4050
4051 cygwin*)
4052   # func_win32_libid is a shell function defined in ltmain.sh
4053   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4054   lt_cv_file_magic_cmd='func_win32_libid'
4055   ;;
4056
4057 mingw* | pw32*)
4058   # Base MSYS/MinGW do not provide the 'file' command needed by
4059   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4060   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4061   lt_cv_file_magic_cmd='$OBJDUMP -f'
4062   ;;
4063
4064 darwin* | rhapsody*)
4065   lt_cv_deplibs_check_method=pass_all
4066   ;;
4067
4068 freebsd* | kfreebsd*-gnu)
4069   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4070     case $host_cpu in
4071     i*86 )
4072       # Not sure whether the presence of OpenBSD here was a mistake.
4073       # Let's accept both of them until this is cleared up.
4074       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4075       lt_cv_file_magic_cmd=/usr/bin/file
4076       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4077       ;;
4078     esac
4079   else
4080     lt_cv_deplibs_check_method=pass_all
4081   fi
4082   ;;
4083
4084 gnu*)
4085   lt_cv_deplibs_check_method=pass_all
4086   ;;
4087
4088 hpux10.20* | hpux11*)
4089   lt_cv_file_magic_cmd=/usr/bin/file
4090   case "$host_cpu" in
4091   ia64*)
4092     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4093     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4094     ;;
4095   hppa*64*)
4096     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]'
4097     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4098     ;;
4099   *)
4100     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4101     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4102     ;;
4103   esac
4104   ;;
4105
4106 irix5* | irix6* | nonstopux*)
4107   case $LD in
4108   *-32|*"-32 ") libmagic=32-bit;;
4109   *-n32|*"-n32 ") libmagic=N32;;
4110   *-64|*"-64 ") libmagic=64-bit;;
4111   *) libmagic=never-match;;
4112   esac
4113   lt_cv_deplibs_check_method=pass_all
4114   ;;
4115
4116 # This must be Linux ELF.
4117 linux*)
4118   case $host_cpu in
4119   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4120     lt_cv_deplibs_check_method=pass_all ;;
4121   *)
4122     # glibc up to 2.1.1 does not perform some relocations on ARM
4123     # this will be overridden with pass_all, but let us keep it just in case
4124     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4125   esac
4126   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4127   lt_cv_deplibs_check_method=pass_all
4128   ;;
4129
4130 netbsd*)
4131   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4132     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4133   else
4134     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4135   fi
4136   ;;
4137
4138 newos6*)
4139   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4140   lt_cv_file_magic_cmd=/usr/bin/file
4141   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4142   ;;
4143
4144 nto-qnx*)
4145   lt_cv_deplibs_check_method=unknown
4146   ;;
4147
4148 openbsd*)
4149   lt_cv_file_magic_cmd=/usr/bin/file
4150   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4151   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4152     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4153   else
4154     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4155   fi
4156   ;;
4157
4158 osf3* | osf4* | osf5*)
4159   lt_cv_deplibs_check_method=pass_all
4160   ;;
4161
4162 sco3.2v5*)
4163   lt_cv_deplibs_check_method=pass_all
4164   ;;
4165
4166 solaris*)
4167   lt_cv_deplibs_check_method=pass_all
4168   ;;
4169
4170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4171   case $host_vendor in
4172   motorola)
4173     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]'
4174     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4175     ;;
4176   ncr)
4177     lt_cv_deplibs_check_method=pass_all
4178     ;;
4179   sequent)
4180     lt_cv_file_magic_cmd='/bin/file'
4181     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4182     ;;
4183   sni)
4184     lt_cv_file_magic_cmd='/bin/file'
4185     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4186     lt_cv_file_magic_test_file=/lib/libc.so
4187     ;;
4188   siemens)
4189     lt_cv_deplibs_check_method=pass_all
4190     ;;
4191   esac
4192   ;;
4193
4194 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4195   lt_cv_deplibs_check_method=pass_all
4196   ;;
4197 esac
4198
4199 fi
4200 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4201 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4202 file_magic_cmd=$lt_cv_file_magic_cmd
4203 deplibs_check_method=$lt_cv_deplibs_check_method
4204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4205
4206
4207
4208
4209 # If no C compiler was specified, use CC.
4210 LTCC=${LTCC-"$CC"}
4211
4212 # Allow CC to be a program name with arguments.
4213 compiler=$CC
4214
4215
4216 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4217 if test "${enable_libtool_lock+set}" = set; then
4218   enableval="$enable_libtool_lock"
4219
4220 fi;
4221 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4222
4223 # Some flags need to be propagated to the compiler or linker for good
4224 # libtool support.
4225 case $host in
4226 ia64-*-hpux*)
4227   # Find out which ABI we are using.
4228   echo 'int i;' > conftest.$ac_ext
4229   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230   (eval $ac_compile) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; then
4234     case `/usr/bin/file conftest.$ac_objext` in
4235     *ELF-32*)
4236       HPUX_IA64_MODE="32"
4237       ;;
4238     *ELF-64*)
4239       HPUX_IA64_MODE="64"
4240       ;;
4241     esac
4242   fi
4243   rm -rf conftest*
4244   ;;
4245 *-*-irix6*)
4246   # Find out which ABI we are using.
4247   echo '#line 4247 "configure"' > conftest.$ac_ext
4248   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249   (eval $ac_compile) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; then
4253    if test "$lt_cv_prog_gnu_ld" = yes; then
4254     case `/usr/bin/file conftest.$ac_objext` in
4255     *32-bit*)
4256       LD="${LD-ld} -melf32bsmip"
4257       ;;
4258     *N32*)
4259       LD="${LD-ld} -melf32bmipn32"
4260       ;;
4261     *64-bit*)
4262       LD="${LD-ld} -melf64bmip"
4263       ;;
4264     esac
4265    else
4266     case `/usr/bin/file conftest.$ac_objext` in
4267     *32-bit*)
4268       LD="${LD-ld} -32"
4269       ;;
4270     *N32*)
4271       LD="${LD-ld} -n32"
4272       ;;
4273     *64-bit*)
4274       LD="${LD-ld} -64"
4275       ;;
4276     esac
4277    fi
4278   fi
4279   rm -rf conftest*
4280   ;;
4281
4282 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4283   # Find out which ABI we are using.
4284   echo 'int i;' > conftest.$ac_ext
4285   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286   (eval $ac_compile) 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; then
4290     case "`/usr/bin/file conftest.o`" in
4291     *32-bit*)
4292       case $host in
4293         x86_64-*linux*)
4294           LD="${LD-ld} -m elf_i386"
4295           ;;
4296         ppc64-*linux*|powerpc64-*linux*)
4297           LD="${LD-ld} -m elf32ppclinux"
4298           ;;
4299         s390x-*linux*)
4300           LD="${LD-ld} -m elf_s390"
4301           ;;
4302         sparc64-*linux*)
4303           LD="${LD-ld} -m elf32_sparc"
4304           ;;
4305       esac
4306       ;;
4307     *64-bit*)
4308       case $host in
4309         x86_64-*linux*)
4310           LD="${LD-ld} -m elf_x86_64"
4311           ;;
4312         ppc*-*linux*|powerpc*-*linux*)
4313           LD="${LD-ld} -m elf64ppc"
4314           ;;
4315         s390*-*linux*)
4316           LD="${LD-ld} -m elf64_s390"
4317           ;;
4318         sparc*-*linux*)
4319           LD="${LD-ld} -m elf64_sparc"
4320           ;;
4321       esac
4322       ;;
4323     esac
4324   fi
4325   rm -rf conftest*
4326   ;;
4327
4328 *-*-sco3.2v5*)
4329   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4330   SAVE_CFLAGS="$CFLAGS"
4331   CFLAGS="$CFLAGS -belf"
4332   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4333 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4334 if test "${lt_cv_cc_needs_belf+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343      cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349
4350 int
4351 main ()
4352 {
4353
4354   ;
4355   return 0;
4356 }
4357 _ACEOF
4358 rm -f conftest.$ac_objext conftest$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360   (eval $ac_link) 2>conftest.er1
4361   ac_status=$?
4362   grep -v '^ *+' conftest.er1 >conftest.err
4363   rm -f conftest.er1
4364   cat conftest.err >&5
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); } &&
4367          { ac_try='test -z "$ac_c_werror_flag"
4368                          || test ! -s conftest.err'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; } &&
4374          { ac_try='test -s conftest$ac_exeext'
4375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376   (eval $ac_try) 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); }; }; then
4380   lt_cv_cc_needs_belf=yes
4381 else
4382   echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 lt_cv_cc_needs_belf=no
4386 fi
4387 rm -f conftest.err conftest.$ac_objext \
4388       conftest$ac_exeext conftest.$ac_ext
4389      ac_ext=c
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394
4395 fi
4396 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4397 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4398   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4399     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4400     CFLAGS="$SAVE_CFLAGS"
4401   fi
4402   ;;
4403
4404 esac
4405
4406 need_locks="$enable_libtool_lock"
4407
4408
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4415 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4416 # On Suns, sometimes $CPP names a directory.
4417 if test -n "$CPP" && test -d "$CPP"; then
4418   CPP=
4419 fi
4420 if test -z "$CPP"; then
4421   if test "${ac_cv_prog_CPP+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424       # Double quotes because CPP needs to be expanded
4425     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4426     do
4427       ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4429 do
4430   # Use a header file that comes with gcc, so configuring glibc
4431   # with a fresh cross-compiler works.
4432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433   # <limits.h> exists even on freestanding compilers.
4434   # On the NeXT, cc -E runs the code through the compiler's parser,
4435   # not just through cpp. "Syntax error" is here to catch this case.
4436   cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #ifdef __STDC__
4443 # include <limits.h>
4444 #else
4445 # include <assert.h>
4446 #endif
4447                      Syntax error
4448 _ACEOF
4449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } >/dev/null; then
4457   if test -s conftest.err; then
4458     ac_cpp_err=$ac_c_preproc_warn_flag
4459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4460   else
4461     ac_cpp_err=
4462   fi
4463 else
4464   ac_cpp_err=yes
4465 fi
4466 if test -z "$ac_cpp_err"; then
4467   :
4468 else
4469   echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472   # Broken: fails on valid input.
4473 continue
4474 fi
4475 rm -f conftest.err conftest.$ac_ext
4476
4477   # OK, works on sane cases.  Now check whether non-existent headers
4478   # can be detected and how.
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 #include <ac_nonexistent.h>
4486 _ACEOF
4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } >/dev/null; then
4495   if test -s conftest.err; then
4496     ac_cpp_err=$ac_c_preproc_warn_flag
4497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4498   else
4499     ac_cpp_err=
4500   fi
4501 else
4502   ac_cpp_err=yes
4503 fi
4504 if test -z "$ac_cpp_err"; then
4505   # Broken: success on invalid input.
4506 continue
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511   # Passes both tests.
4512 ac_preproc_ok=:
4513 break
4514 fi
4515 rm -f conftest.err conftest.$ac_ext
4516
4517 done
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.err conftest.$ac_ext
4520 if $ac_preproc_ok; then
4521   break
4522 fi
4523
4524     done
4525     ac_cv_prog_CPP=$CPP
4526
4527 fi
4528   CPP=$ac_cv_prog_CPP
4529 else
4530   ac_cv_prog_CPP=$CPP
4531 fi
4532 echo "$as_me:$LINENO: result: $CPP" >&5
4533 echo "${ECHO_T}$CPP" >&6
4534 ac_preproc_ok=false
4535 for ac_c_preproc_warn_flag in '' yes
4536 do
4537   # Use a header file that comes with gcc, so configuring glibc
4538   # with a fresh cross-compiler works.
4539   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4540   # <limits.h> exists even on freestanding compilers.
4541   # On the NeXT, cc -E runs the code through the compiler's parser,
4542   # not just through cpp. "Syntax error" is here to catch this case.
4543   cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h.  */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h.  */
4549 #ifdef __STDC__
4550 # include <limits.h>
4551 #else
4552 # include <assert.h>
4553 #endif
4554                      Syntax error
4555 _ACEOF
4556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4557   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4558   ac_status=$?
4559   grep -v '^ *+' conftest.er1 >conftest.err
4560   rm -f conftest.er1
4561   cat conftest.err >&5
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } >/dev/null; then
4564   if test -s conftest.err; then
4565     ac_cpp_err=$ac_c_preproc_warn_flag
4566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4567   else
4568     ac_cpp_err=
4569   fi
4570 else
4571   ac_cpp_err=yes
4572 fi
4573 if test -z "$ac_cpp_err"; then
4574   :
4575 else
4576   echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579   # Broken: fails on valid input.
4580 continue
4581 fi
4582 rm -f conftest.err conftest.$ac_ext
4583
4584   # OK, works on sane cases.  Now check whether non-existent headers
4585   # can be detected and how.
4586   cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592 #include <ac_nonexistent.h>
4593 _ACEOF
4594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4596   ac_status=$?
4597   grep -v '^ *+' conftest.er1 >conftest.err
4598   rm -f conftest.er1
4599   cat conftest.err >&5
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } >/dev/null; then
4602   if test -s conftest.err; then
4603     ac_cpp_err=$ac_c_preproc_warn_flag
4604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4605   else
4606     ac_cpp_err=
4607   fi
4608 else
4609   ac_cpp_err=yes
4610 fi
4611 if test -z "$ac_cpp_err"; then
4612   # Broken: success on invalid input.
4613 continue
4614 else
4615   echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618   # Passes both tests.
4619 ac_preproc_ok=:
4620 break
4621 fi
4622 rm -f conftest.err conftest.$ac_ext
4623
4624 done
4625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4626 rm -f conftest.err conftest.$ac_ext
4627 if $ac_preproc_ok; then
4628   :
4629 else
4630   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4631 See \`config.log' for more details." >&5
4632 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4633 See \`config.log' for more details." >&2;}
4634    { (exit 1); exit 1; }; }
4635 fi
4636
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642
4643
4644 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4645 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4646 if test "${ac_cv_header_stdc+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h.  */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h.  */
4655 #include <stdlib.h>
4656 #include <stdarg.h>
4657 #include <string.h>
4658 #include <float.h>
4659
4660 int
4661 main ()
4662 {
4663
4664   ;
4665   return 0;
4666 }
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670   (eval $ac_compile) 2>conftest.er1
4671   ac_status=$?
4672   grep -v '^ *+' conftest.er1 >conftest.err
4673   rm -f conftest.er1
4674   cat conftest.err >&5
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); } &&
4677          { ac_try='test -z "$ac_c_werror_flag"
4678                          || test ! -s conftest.err'
4679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680   (eval $ac_try) 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; } &&
4684          { ac_try='test -s conftest.$ac_objext'
4685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686   (eval $ac_try) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); }; }; then
4690   ac_cv_header_stdc=yes
4691 else
4692   echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ac_cv_header_stdc=no
4696 fi
4697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4698
4699 if test $ac_cv_header_stdc = yes; then
4700   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4701   cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 #include <string.h>
4708
4709 _ACEOF
4710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4711   $EGREP "memchr" >/dev/null 2>&1; then
4712   :
4713 else
4714   ac_cv_header_stdc=no
4715 fi
4716 rm -f conftest*
4717
4718 fi
4719
4720 if test $ac_cv_header_stdc = yes; then
4721   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4722   cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 #include <stdlib.h>
4729
4730 _ACEOF
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732   $EGREP "free" >/dev/null 2>&1; then
4733   :
4734 else
4735   ac_cv_header_stdc=no
4736 fi
4737 rm -f conftest*
4738
4739 fi
4740
4741 if test $ac_cv_header_stdc = yes; then
4742   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4743   if test "$cross_compiling" = yes; then
4744   :
4745 else
4746   cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752 #include <ctype.h>
4753 #if ((' ' & 0x0FF) == 0x020)
4754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4756 #else
4757 # define ISLOWER(c) \
4758                    (('a' <= (c) && (c) <= 'i') \
4759                      || ('j' <= (c) && (c) <= 'r') \
4760                      || ('s' <= (c) && (c) <= 'z'))
4761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4762 #endif
4763
4764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4765 int
4766 main ()
4767 {
4768   int i;
4769   for (i = 0; i < 256; i++)
4770     if (XOR (islower (i), ISLOWER (i))
4771         || toupper (i) != TOUPPER (i))
4772       exit(2);
4773   exit (0);
4774 }
4775 _ACEOF
4776 rm -f conftest$ac_exeext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778   (eval $ac_link) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; }; then
4787   :
4788 else
4789   echo "$as_me: program exited with status $ac_status" >&5
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793 ( exit $ac_status )
4794 ac_cv_header_stdc=no
4795 fi
4796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 fi
4799 fi
4800 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4801 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4802 if test $ac_cv_header_stdc = yes; then
4803
4804 cat >>confdefs.h <<\_ACEOF
4805 #define STDC_HEADERS 1
4806 _ACEOF
4807
4808 fi
4809
4810 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4821                   inttypes.h stdint.h unistd.h
4822 do
4823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4824 echo "$as_me:$LINENO: checking for $ac_header" >&5
4825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h.  */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h.  */
4835 $ac_includes_default
4836
4837 #include <$ac_header>
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841   (eval $ac_compile) 2>conftest.er1
4842   ac_status=$?
4843   grep -v '^ *+' conftest.er1 >conftest.err
4844   rm -f conftest.er1
4845   cat conftest.err >&5
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); } &&
4848          { ac_try='test -z "$ac_c_werror_flag"
4849                          || test ! -s conftest.err'
4850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851   (eval $ac_try) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }; } &&
4855          { ac_try='test -s conftest.$ac_objext'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; }; then
4861   eval "$as_ac_Header=yes"
4862 else
4863   echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 eval "$as_ac_Header=no"
4867 fi
4868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4869 fi
4870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4873   cat >>confdefs.h <<_ACEOF
4874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4875 _ACEOF
4876
4877 fi
4878
4879 done
4880
4881
4882
4883 for ac_header in dlfcn.h
4884 do
4885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4887   echo "$as_me:$LINENO: checking for $ac_header" >&5
4888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 fi
4892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4894 else
4895   # Is the header compilable?
4896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904 $ac_includes_default
4905 #include <$ac_header>
4906 _ACEOF
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909   (eval $ac_compile) 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } &&
4916          { ac_try='test -z "$ac_c_werror_flag"
4917                          || test ! -s conftest.err'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; } &&
4923          { ac_try='test -s conftest.$ac_objext'
4924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925   (eval $ac_try) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; }; then
4929   ac_header_compiler=yes
4930 else
4931   echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 ac_header_compiler=no
4935 fi
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4938 echo "${ECHO_T}$ac_header_compiler" >&6
4939
4940 # Is the header present?
4941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 #include <$ac_header>
4950 _ACEOF
4951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4953   ac_status=$?
4954   grep -v '^ *+' conftest.er1 >conftest.err
4955   rm -f conftest.er1
4956   cat conftest.err >&5
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); } >/dev/null; then
4959   if test -s conftest.err; then
4960     ac_cpp_err=$ac_c_preproc_warn_flag
4961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4962   else
4963     ac_cpp_err=
4964   fi
4965 else
4966   ac_cpp_err=yes
4967 fi
4968 if test -z "$ac_cpp_err"; then
4969   ac_header_preproc=yes
4970 else
4971   echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4973
4974   ac_header_preproc=no
4975 fi
4976 rm -f conftest.err conftest.$ac_ext
4977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4978 echo "${ECHO_T}$ac_header_preproc" >&6
4979
4980 # So?  What about this header?
4981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4982   yes:no: )
4983     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4987     ac_header_preproc=yes
4988     ;;
4989   no:yes:* )
4990     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4992     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4993 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4994     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4996     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4997 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5000     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5002     (
5003       cat <<\_ASBOX
5004 ## ------------------------------------------ ##
5005 ## Report this to the AC_PACKAGE_NAME lists.  ##
5006 ## ------------------------------------------ ##
5007 _ASBOX
5008     ) |
5009       sed "s/^/$as_me: WARNING:     /" >&2
5010     ;;
5011 esac
5012 echo "$as_me:$LINENO: checking for $ac_header" >&5
5013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5015   echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017   eval "$as_ac_Header=\$ac_header_preproc"
5018 fi
5019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5021
5022 fi
5023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5024   cat >>confdefs.h <<_ACEOF
5025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5026 _ACEOF
5027
5028 fi
5029
5030 done
5031
5032 ac_ext=cc
5033 ac_cpp='$CXXCPP $CPPFLAGS'
5034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5037 if test -n "$ac_tool_prefix"; then
5038   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5039   do
5040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5042 echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5044 if test "${ac_cv_prog_CXX+set}" = set; then
5045   echo $ECHO_N "(cached) $ECHO_C" >&6
5046 else
5047   if test -n "$CXX"; then
5048   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055   for ac_exec_ext in '' $ac_executable_extensions; do
5056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059     break 2
5060   fi
5061 done
5062 done
5063
5064 fi
5065 fi
5066 CXX=$ac_cv_prog_CXX
5067 if test -n "$CXX"; then
5068   echo "$as_me:$LINENO: result: $CXX" >&5
5069 echo "${ECHO_T}$CXX" >&6
5070 else
5071   echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6
5073 fi
5074
5075     test -n "$CXX" && break
5076   done
5077 fi
5078 if test -z "$CXX"; then
5079   ac_ct_CXX=$CXX
5080   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5081 do
5082   # Extract the first word of "$ac_prog", so it can be a program name with args.
5083 set dummy $ac_prog; ac_word=$2
5084 echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   if test -n "$ac_ct_CXX"; then
5090   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097   for ac_exec_ext in '' $ac_executable_extensions; do
5098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099     ac_cv_prog_ac_ct_CXX="$ac_prog"
5100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104 done
5105
5106 fi
5107 fi
5108 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5109 if test -n "$ac_ct_CXX"; then
5110   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5111 echo "${ECHO_T}$ac_ct_CXX" >&6
5112 else
5113   echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5115 fi
5116
5117   test -n "$ac_ct_CXX" && break
5118 done
5119 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5120
5121   CXX=$ac_ct_CXX
5122 fi
5123
5124
5125 # Provide some information about the compiler.
5126 echo "$as_me:$LINENO:" \
5127      "checking for C++ compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5130   (eval $ac_compiler --version </dev/null >&5) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }
5134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5135   (eval $ac_compiler -v </dev/null >&5) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }
5139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5140   (eval $ac_compiler -V </dev/null >&5) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); }
5144
5145 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5146 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5147 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h.  */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h.  */
5156
5157 int
5158 main ()
5159 {
5160 #ifndef __GNUC__
5161        choke me
5162 #endif
5163
5164   ;
5165   return 0;
5166 }
5167 _ACEOF
5168 rm -f conftest.$ac_objext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170   (eval $ac_compile) 2>conftest.er1
5171   ac_status=$?
5172   grep -v '^ *+' conftest.er1 >conftest.err
5173   rm -f conftest.er1
5174   cat conftest.err >&5
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } &&
5177          { ac_try='test -z "$ac_cxx_werror_flag"
5178                          || test ! -s conftest.err'
5179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180   (eval $ac_try) 2>&5
5181   ac_status=$?
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); }; } &&
5184          { ac_try='test -s conftest.$ac_objext'
5185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186   (eval $ac_try) 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); }; }; then
5190   ac_compiler_gnu=yes
5191 else
5192   echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195 ac_compiler_gnu=no
5196 fi
5197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5199
5200 fi
5201 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5202 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5203 GXX=`test $ac_compiler_gnu = yes && echo yes`
5204 ac_test_CXXFLAGS=${CXXFLAGS+set}
5205 ac_save_CXXFLAGS=$CXXFLAGS
5206 CXXFLAGS="-g"
5207 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5208 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5209 if test "${ac_cv_prog_cxx_g+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212   cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h.  */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h.  */
5218
5219 int
5220 main ()
5221 {
5222
5223   ;
5224   return 0;
5225 }
5226 _ACEOF
5227 rm -f conftest.$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229   (eval $ac_compile) 2>conftest.er1
5230   ac_status=$?
5231   grep -v '^ *+' conftest.er1 >conftest.err
5232   rm -f conftest.er1
5233   cat conftest.err >&5
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } &&
5236          { ac_try='test -z "$ac_cxx_werror_flag"
5237                          || test ! -s conftest.err'
5238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239   (eval $ac_try) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }; } &&
5243          { ac_try='test -s conftest.$ac_objext'
5244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245   (eval $ac_try) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; }; then
5249   ac_cv_prog_cxx_g=yes
5250 else
5251   echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 ac_cv_prog_cxx_g=no
5255 fi
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5257 fi
5258 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5259 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5260 if test "$ac_test_CXXFLAGS" = set; then
5261   CXXFLAGS=$ac_save_CXXFLAGS
5262 elif test $ac_cv_prog_cxx_g = yes; then
5263   if test "$GXX" = yes; then
5264     CXXFLAGS="-g -O2"
5265   else
5266     CXXFLAGS="-g"
5267   fi
5268 else
5269   if test "$GXX" = yes; then
5270     CXXFLAGS="-O2"
5271   else
5272     CXXFLAGS=
5273   fi
5274 fi
5275 for ac_declaration in \
5276    '' \
5277    'extern "C" void std::exit (int) throw (); using std::exit;' \
5278    'extern "C" void std::exit (int); using std::exit;' \
5279    'extern "C" void exit (int) throw ();' \
5280    'extern "C" void exit (int);' \
5281    'void exit (int);'
5282 do
5283   cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 $ac_declaration
5290 #include <stdlib.h>
5291 int
5292 main ()
5293 {
5294 exit (42);
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5301   (eval $ac_compile) 2>conftest.er1
5302   ac_status=$?
5303   grep -v '^ *+' conftest.er1 >conftest.err
5304   rm -f conftest.er1
5305   cat conftest.err >&5
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); } &&
5308          { ac_try='test -z "$ac_cxx_werror_flag"
5309                          || test ! -s conftest.err'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; } &&
5315          { ac_try='test -s conftest.$ac_objext'
5316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317   (eval $ac_try) 2>&5
5318   ac_status=$?
5319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320   (exit $ac_status); }; }; then
5321   :
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 continue
5327 fi
5328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329   cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 $ac_declaration
5336 int
5337 main ()
5338 {
5339 exit (42);
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346   (eval $ac_compile) 2>conftest.er1
5347   ac_status=$?
5348   grep -v '^ *+' conftest.er1 >conftest.err
5349   rm -f conftest.er1
5350   cat conftest.err >&5
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); } &&
5353          { ac_try='test -z "$ac_cxx_werror_flag"
5354                          || test ! -s conftest.err'
5355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356   (eval $ac_try) 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); }; } &&
5360          { ac_try='test -s conftest.$ac_objext'
5361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362   (eval $ac_try) 2>&5
5363   ac_status=$?
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); }; }; then
5366   break
5367 else
5368   echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5370
5371 fi
5372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5373 done
5374 rm -f conftest*
5375 if test -n "$ac_declaration"; then
5376   echo '#ifdef __cplusplus' >>confdefs.h
5377   echo $ac_declaration      >>confdefs.h
5378   echo '#endif'             >>confdefs.h
5379 fi
5380
5381 ac_ext=cc
5382 ac_cpp='$CXXCPP $CPPFLAGS'
5383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5386
5387 depcc="$CXX"  am_compiler_list=
5388
5389 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5390 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5391 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5395   # We make a subdir and do the tests there.  Otherwise we can end up
5396   # making bogus files that we don't know about and never remove.  For
5397   # instance it was reported that on HP-UX the gcc test will end up
5398   # making a dummy file named `D' -- because `-MD' means `put the output
5399   # in D'.
5400   mkdir conftest.dir
5401   # Copy depcomp to subdir because otherwise we won't find it if we're
5402   # using a relative directory.
5403   cp "$am_depcomp" conftest.dir
5404   cd conftest.dir
5405   # We will build objects and dependencies in a subdirectory because
5406   # it helps to detect inapplicable dependency modes.  For instance
5407   # both Tru64's cc and ICC support -MD to output dependencies as a
5408   # side effect of compilation, but ICC will put the dependencies in
5409   # the current directory while Tru64 will put them in the object
5410   # directory.
5411   mkdir sub
5412
5413   am_cv_CXX_dependencies_compiler_type=none
5414   if test "$am_compiler_list" = ""; then
5415      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5416   fi
5417   for depmode in $am_compiler_list; do
5418     # Setup a source with many dependencies, because some compilers
5419     # like to wrap large dependency lists on column 80 (with \), and
5420     # we should not choose a depcomp mode which is confused by this.
5421     #
5422     # We need to recreate these files for each test, as the compiler may
5423     # overwrite some of them when testing with obscure command lines.
5424     # This happens at least with the AIX C compiler.
5425     : > sub/conftest.c
5426     for i in 1 2 3 4 5 6; do
5427       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5428       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5429       # Solaris 8's {/usr,}/bin/sh.
5430       touch sub/conftst$i.h
5431     done
5432     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5433
5434     case $depmode in
5435     nosideeffect)
5436       # after this tag, mechanisms are not by side-effect, so they'll
5437       # only be used when explicitly requested
5438       if test "x$enable_dependency_tracking" = xyes; then
5439         continue
5440       else
5441         break
5442       fi
5443       ;;
5444     none) break ;;
5445     esac
5446     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5447     # mode.  It turns out that the SunPro C++ compiler does not properly
5448     # handle `-M -o', and we need to detect this.
5449     if depmode=$depmode \
5450        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5451        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5452        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5453          >/dev/null 2>conftest.err &&
5454        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5455        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5456        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5457       # icc doesn't choke on unknown options, it will just issue warnings
5458       # or remarks (even with -Werror).  So we grep stderr for any message
5459       # that says an option was ignored or not supported.
5460       # When given -MP, icc 7.0 and 7.1 complain thusly:
5461       #   icc: Command line warning: ignoring option '-M'; no argument required
5462       # The diagnosis changed in icc 8.0:
5463       #   icc: Command line remark: option '-MP' not supported
5464       if (grep 'ignoring option' conftest.err ||
5465           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5466         am_cv_CXX_dependencies_compiler_type=$depmode
5467         break
5468       fi
5469     fi
5470   done
5471
5472   cd ..
5473   rm -rf conftest.dir
5474 else
5475   am_cv_CXX_dependencies_compiler_type=none
5476 fi
5477
5478 fi
5479 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5480 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5481 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5482
5483
5484
5485 if
5486   test "x$enable_dependency_tracking" != xno \
5487   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5488   am__fastdepCXX_TRUE=
5489   am__fastdepCXX_FALSE='#'
5490 else
5491   am__fastdepCXX_TRUE='#'
5492   am__fastdepCXX_FALSE=
5493 fi
5494
5495
5496 ac_ext=cc
5497 ac_cpp='$CXXCPP $CPPFLAGS'
5498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5501 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5502 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5503 if test -z "$CXXCPP"; then
5504   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507       # Double quotes because CXXCPP needs to be expanded
5508     for CXXCPP in "$CXX -E" "/lib/cpp"
5509     do
5510       ac_preproc_ok=false
5511 for ac_cxx_preproc_warn_flag in '' yes
5512 do
5513   # Use a header file that comes with gcc, so configuring glibc
5514   # with a fresh cross-compiler works.
5515   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516   # <limits.h> exists even on freestanding compilers.
5517   # On the NeXT, cc -E runs the code through the compiler's parser,
5518   # not just through cpp. "Syntax error" is here to catch this case.
5519   cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525 #ifdef __STDC__
5526 # include <limits.h>
5527 #else
5528 # include <assert.h>
5529 #endif
5530                      Syntax error
5531 _ACEOF
5532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } >/dev/null; then
5540   if test -s conftest.err; then
5541     ac_cpp_err=$ac_cxx_preproc_warn_flag
5542     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5543   else
5544     ac_cpp_err=
5545   fi
5546 else
5547   ac_cpp_err=yes
5548 fi
5549 if test -z "$ac_cpp_err"; then
5550   :
5551 else
5552   echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555   # Broken: fails on valid input.
5556 continue
5557 fi
5558 rm -f conftest.err conftest.$ac_ext
5559
5560   # OK, works on sane cases.  Now check whether non-existent headers
5561   # can be detected and how.
5562   cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568 #include <ac_nonexistent.h>
5569 _ACEOF
5570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5572   ac_status=$?
5573   grep -v '^ *+' conftest.er1 >conftest.err
5574   rm -f conftest.er1
5575   cat conftest.err >&5
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } >/dev/null; then
5578   if test -s conftest.err; then
5579     ac_cpp_err=$ac_cxx_preproc_warn_flag
5580     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5581   else
5582     ac_cpp_err=
5583   fi
5584 else
5585   ac_cpp_err=yes
5586 fi
5587 if test -z "$ac_cpp_err"; then
5588   # Broken: success on invalid input.
5589 continue
5590 else
5591   echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594   # Passes both tests.
5595 ac_preproc_ok=:
5596 break
5597 fi
5598 rm -f conftest.err conftest.$ac_ext
5599
5600 done
5601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5602 rm -f conftest.err conftest.$ac_ext
5603 if $ac_preproc_ok; then
5604   break
5605 fi
5606
5607     done
5608     ac_cv_prog_CXXCPP=$CXXCPP
5609
5610 fi
5611   CXXCPP=$ac_cv_prog_CXXCPP
5612 else
5613   ac_cv_prog_CXXCPP=$CXXCPP
5614 fi
5615 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5616 echo "${ECHO_T}$CXXCPP" >&6
5617 ac_preproc_ok=false
5618 for ac_cxx_preproc_warn_flag in '' yes
5619 do
5620   # Use a header file that comes with gcc, so configuring glibc
5621   # with a fresh cross-compiler works.
5622   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5623   # <limits.h> exists even on freestanding compilers.
5624   # On the NeXT, cc -E runs the code through the compiler's parser,
5625   # not just through cpp. "Syntax error" is here to catch this case.
5626   cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h.  */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h.  */
5632 #ifdef __STDC__
5633 # include <limits.h>
5634 #else
5635 # include <assert.h>
5636 #endif
5637                      Syntax error
5638 _ACEOF
5639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5641   ac_status=$?
5642   grep -v '^ *+' conftest.er1 >conftest.err
5643   rm -f conftest.er1
5644   cat conftest.err >&5
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } >/dev/null; then
5647   if test -s conftest.err; then
5648     ac_cpp_err=$ac_cxx_preproc_warn_flag
5649     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5650   else
5651     ac_cpp_err=
5652   fi
5653 else
5654   ac_cpp_err=yes
5655 fi
5656 if test -z "$ac_cpp_err"; then
5657   :
5658 else
5659   echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5661
5662   # Broken: fails on valid input.
5663 continue
5664 fi
5665 rm -f conftest.err conftest.$ac_ext
5666
5667   # OK, works on sane cases.  Now check whether non-existent headers
5668   # can be detected and how.
5669   cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h.  */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h.  */
5675 #include <ac_nonexistent.h>
5676 _ACEOF
5677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5679   ac_status=$?
5680   grep -v '^ *+' conftest.er1 >conftest.err
5681   rm -f conftest.er1
5682   cat conftest.err >&5
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); } >/dev/null; then
5685   if test -s conftest.err; then
5686     ac_cpp_err=$ac_cxx_preproc_warn_flag
5687     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5688   else
5689     ac_cpp_err=
5690   fi
5691 else
5692   ac_cpp_err=yes
5693 fi
5694 if test -z "$ac_cpp_err"; then
5695   # Broken: success on invalid input.
5696 continue
5697 else
5698   echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701   # Passes both tests.
5702 ac_preproc_ok=:
5703 break
5704 fi
5705 rm -f conftest.err conftest.$ac_ext
5706
5707 done
5708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5709 rm -f conftest.err conftest.$ac_ext
5710 if $ac_preproc_ok; then
5711   :
5712 else
5713   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5714 See \`config.log' for more details." >&5
5715 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5716 See \`config.log' for more details." >&2;}
5717    { (exit 1); exit 1; }; }
5718 fi
5719
5720 ac_ext=cc
5721 ac_cpp='$CXXCPP $CPPFLAGS'
5722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5725
5726
5727 ac_ext=f
5728 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5729 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5731 if test -n "$ac_tool_prefix"; then
5732   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5733   do
5734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5736 echo "$as_me:$LINENO: checking for $ac_word" >&5
5737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738 if test "${ac_cv_prog_F77+set}" = set; then
5739   echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741   if test -n "$F77"; then
5742   ac_cv_prog_F77="$F77" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747   IFS=$as_save_IFS
5748   test -z "$as_dir" && as_dir=.
5749   for ac_exec_ext in '' $ac_executable_extensions; do
5750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753     break 2
5754   fi
5755 done
5756 done
5757
5758 fi
5759 fi
5760 F77=$ac_cv_prog_F77
5761 if test -n "$F77"; then
5762   echo "$as_me:$LINENO: result: $F77" >&5
5763 echo "${ECHO_T}$F77" >&6
5764 else
5765   echo "$as_me:$LINENO: result: no" >&5
5766 echo "${ECHO_T}no" >&6
5767 fi
5768
5769     test -n "$F77" && break
5770   done
5771 fi
5772 if test -z "$F77"; then
5773   ac_ct_F77=$F77
5774   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5775 do
5776   # Extract the first word of "$ac_prog", so it can be a program name with args.
5777 set dummy $ac_prog; ac_word=$2
5778 echo "$as_me:$LINENO: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5781   echo $ECHO_N "(cached) $ECHO_C" >&6
5782 else
5783   if test -n "$ac_ct_F77"; then
5784   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789   IFS=$as_save_IFS
5790   test -z "$as_dir" && as_dir=.
5791   for ac_exec_ext in '' $ac_executable_extensions; do
5792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793     ac_cv_prog_ac_ct_F77="$ac_prog"
5794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795     break 2
5796   fi
5797 done
5798 done
5799
5800 fi
5801 fi
5802 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5803 if test -n "$ac_ct_F77"; then
5804   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5805 echo "${ECHO_T}$ac_ct_F77" >&6
5806 else
5807   echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6
5809 fi
5810
5811   test -n "$ac_ct_F77" && break
5812 done
5813
5814   F77=$ac_ct_F77
5815 fi
5816
5817
5818 # Provide some information about the compiler.
5819 echo "$as_me:5819:" \
5820      "checking for Fortran 77 compiler version" >&5
5821 ac_compiler=`set X $ac_compile; echo $2`
5822 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5823   (eval $ac_compiler --version </dev/null >&5) 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }
5827 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5828   (eval $ac_compiler -v </dev/null >&5) 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }
5832 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5833   (eval $ac_compiler -V </dev/null >&5) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }
5837 rm -f a.out
5838
5839 # If we don't use `.F' as extension, the preprocessor is not run on the
5840 # input file.  (Note that this only needs to work for GNU compilers.)
5841 ac_save_ext=$ac_ext
5842 ac_ext=F
5843 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5844 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5845 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   cat >conftest.$ac_ext <<_ACEOF
5849       program main
5850 #ifndef __GNUC__
5851        choke me
5852 #endif
5853
5854       end
5855 _ACEOF
5856 rm -f conftest.$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858   (eval $ac_compile) 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -z "$ac_f77_werror_flag"
5866                          || test ! -s conftest.err'
5867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868   (eval $ac_try) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; } &&
5872          { ac_try='test -s conftest.$ac_objext'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; }; then
5878   ac_compiler_gnu=yes
5879 else
5880   echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883 ac_compiler_gnu=no
5884 fi
5885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5886 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5887
5888 fi
5889 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5890 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5891 ac_ext=$ac_save_ext
5892 ac_test_FFLAGS=${FFLAGS+set}
5893 ac_save_FFLAGS=$FFLAGS
5894 FFLAGS=
5895 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5896 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5897 if test "${ac_cv_prog_f77_g+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   FFLAGS=-g
5901 cat >conftest.$ac_ext <<_ACEOF
5902       program main
5903
5904       end
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908   (eval $ac_compile) 2>conftest.er1
5909   ac_status=$?
5910   grep -v '^ *+' conftest.er1 >conftest.err
5911   rm -f conftest.er1
5912   cat conftest.err >&5
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } &&
5915          { ac_try='test -z "$ac_f77_werror_flag"
5916                          || test ! -s conftest.err'
5917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918   (eval $ac_try) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; } &&
5922          { ac_try='test -s conftest.$ac_objext'
5923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924   (eval $ac_try) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; }; then
5928   ac_cv_prog_f77_g=yes
5929 else
5930   echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933 ac_cv_prog_f77_g=no
5934 fi
5935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5936
5937 fi
5938 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5939 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5940 if test "$ac_test_FFLAGS" = set; then
5941   FFLAGS=$ac_save_FFLAGS
5942 elif test $ac_cv_prog_f77_g = yes; then
5943   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5944     FFLAGS="-g -O2"
5945   else
5946     FFLAGS="-g"
5947   fi
5948 else
5949   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5950     FFLAGS="-O2"
5951   else
5952     FFLAGS=
5953   fi
5954 fi
5955
5956 G77=`test $ac_compiler_gnu = yes && echo yes`
5957 ac_ext=c
5958 ac_cpp='$CPP $CPPFLAGS'
5959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5962
5963
5964
5965 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5966
5967 # find the maximum length of command line arguments
5968 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5969 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5970 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973     i=0
5974   teststring="ABCD"
5975
5976   case $build_os in
5977   msdosdjgpp*)
5978     # On DJGPP, this test can blow up pretty badly due to problems in libc
5979     # (any single argument exceeding 2000 bytes causes a buffer overrun
5980     # during glob expansion).  Even if it were fixed, the result of this
5981     # check would be larger than it should be.
5982     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5983     ;;
5984
5985   gnu*)
5986     # Under GNU Hurd, this test is not required because there is
5987     # no limit to the length of command line arguments.
5988     # Libtool will interpret -1 as no limit whatsoever
5989     lt_cv_sys_max_cmd_len=-1;
5990     ;;
5991
5992   cygwin* | mingw*)
5993     # On Win9x/ME, this test blows up -- it succeeds, but takes
5994     # about 5 minutes as the teststring grows exponentially.
5995     # Worse, since 9x/ME are not pre-emptively multitasking,
5996     # you end up with a "frozen" computer, even though with patience
5997     # the test eventually succeeds (with a max line length of 256k).
5998     # Instead, let's just punt: use the minimum linelength reported by
5999     # all of the supported platforms: 8192 (on NT/2K/XP).
6000     lt_cv_sys_max_cmd_len=8192;
6001     ;;
6002
6003   amigaos*)
6004     # On AmigaOS with pdksh, this test takes hours, literally.
6005     # So we just punt and use a minimum line length of 8192.
6006     lt_cv_sys_max_cmd_len=8192;
6007     ;;
6008
6009  *)
6010     # If test is not a shell built-in, we'll probably end up computing a
6011     # maximum length that is only half of the actual maximum length, but
6012     # we can't tell.
6013     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6014                = "XX$teststring") >/dev/null 2>&1 &&
6015             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6016             lt_cv_sys_max_cmd_len=$new_result &&
6017             test $i != 17 # 1/2 MB should be enough
6018     do
6019       i=`expr $i + 1`
6020       teststring=$teststring$teststring
6021     done
6022     teststring=
6023     # Add a significant safety factor because C++ compilers can tack on massive
6024     # amounts of additional arguments before passing them to the linker.
6025     # It appears as though 1/2 is a usable value.
6026     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6027     ;;
6028   esac
6029
6030 fi
6031
6032 if test -n $lt_cv_sys_max_cmd_len ; then
6033   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6034 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6035 else
6036   echo "$as_me:$LINENO: result: none" >&5
6037 echo "${ECHO_T}none" >&6
6038 fi
6039
6040
6041
6042
6043 # Check for command to grab the raw symbol name followed by C symbol from nm.
6044 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6045 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6046 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049
6050 # These are sane defaults that work on at least a few old systems.
6051 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6052
6053 # Character class describing NM global symbol codes.
6054 symcode='[BCDEGRST]'
6055
6056 # Regexp to match symbols that can be accessed directly from C.
6057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058
6059 # Transform the above into a raw symbol and a C symbol.
6060 symxfrm='\1 \2\3 \3'
6061
6062 # Transform an extracted symbol line into a proper C declaration
6063 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6064
6065 # Transform an extracted symbol line into symbol name and symbol address
6066 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'"
6067
6068 # Define system-specific variables.
6069 case $host_os in
6070 aix*)
6071   symcode='[BCDT]'
6072   ;;
6073 cygwin* | mingw* | pw32*)
6074   symcode='[ABCDGISTW]'
6075   ;;
6076 hpux*) # Its linker distinguishes data from code symbols
6077   if test "$host_cpu" = ia64; then
6078     symcode='[ABCDEGRST]'
6079   fi
6080   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6081   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'"
6082   ;;
6083 irix* | nonstopux*)
6084   symcode='[BCDEGRST]'
6085   ;;
6086 osf*)
6087   symcode='[BCDEGQRST]'
6088   ;;
6089 solaris* | sysv5*)
6090   symcode='[BDRT]'
6091   ;;
6092 sysv4)
6093   symcode='[DFNSTU]'
6094   ;;
6095 esac
6096
6097 # Handle CRLF in mingw tool chain
6098 opt_cr=
6099 case $build_os in
6100 mingw*)
6101   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6102   ;;
6103 esac
6104
6105 # If we're using GNU nm, then use its standard symbol codes.
6106 case `$NM -V 2>&1` in
6107 *GNU* | *'with BFD'*)
6108   symcode='[ABCDGIRSTW]' ;;
6109 esac
6110
6111 # Try without a prefix undercore, then with it.
6112 for ac_symprfx in "" "_"; do
6113
6114   # Write the raw and C identifiers.
6115   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6116
6117   # Check to see that the pipe works correctly.
6118   pipe_works=no
6119
6120   rm -f conftest*
6121   cat > conftest.$ac_ext <<EOF
6122 #ifdef __cplusplus
6123 extern "C" {
6124 #endif
6125 char nm_test_var;
6126 void nm_test_func(){}
6127 #ifdef __cplusplus
6128 }
6129 #endif
6130 int main(){nm_test_var='a';nm_test_func();return(0);}
6131 EOF
6132
6133   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134   (eval $ac_compile) 2>&5
6135   ac_status=$?
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); }; then
6138     # Now try to grab the symbols.
6139     nlist=conftest.nm
6140     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6141   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } && test -s "$nlist"; then
6145       # Try sorting and uniquifying the output.
6146       if sort "$nlist" | uniq > "$nlist"T; then
6147         mv -f "$nlist"T "$nlist"
6148       else
6149         rm -f "$nlist"T
6150       fi
6151
6152       # Make sure that we snagged all the symbols we need.
6153       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6154         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6155           cat <<EOF > conftest.$ac_ext
6156 #ifdef __cplusplus
6157 extern "C" {
6158 #endif
6159
6160 EOF
6161           # Now generate the symbol file.
6162           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6163
6164           cat <<EOF >> conftest.$ac_ext
6165 #if defined (__STDC__) && __STDC__
6166 # define lt_ptr_t void *
6167 #else
6168 # define lt_ptr_t char *
6169 # define const
6170 #endif
6171
6172 /* The mapping between symbol names and symbols. */
6173 const struct {
6174   const char *name;
6175   lt_ptr_t address;
6176 }
6177 lt_preloaded_symbols[] =
6178 {
6179 EOF
6180           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6181           cat <<\EOF >> conftest.$ac_ext
6182   {0, (lt_ptr_t) 0}
6183 };
6184
6185 #ifdef __cplusplus
6186 }
6187 #endif
6188 EOF
6189           # Now try linking the two files.
6190           mv conftest.$ac_objext conftstm.$ac_objext
6191           lt_save_LIBS="$LIBS"
6192           lt_save_CFLAGS="$CFLAGS"
6193           LIBS="conftstm.$ac_objext"
6194           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6195           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6196   (eval $ac_link) 2>&5
6197   ac_status=$?
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6200             pipe_works=yes
6201           fi
6202           LIBS="$lt_save_LIBS"
6203           CFLAGS="$lt_save_CFLAGS"
6204         else
6205           echo "cannot find nm_test_func in $nlist" >&5
6206         fi
6207       else
6208         echo "cannot find nm_test_var in $nlist" >&5
6209       fi
6210     else
6211       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6212     fi
6213   else
6214     echo "$progname: failed program was:" >&5
6215     cat conftest.$ac_ext >&5
6216   fi
6217   rm -f conftest* conftst*
6218
6219   # Do not use the global_symbol_pipe unless it works.
6220   if test "$pipe_works" = yes; then
6221     break
6222   else
6223     lt_cv_sys_global_symbol_pipe=
6224   fi
6225 done
6226
6227 fi
6228
6229 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6230   lt_cv_sys_global_symbol_to_cdecl=
6231 fi
6232 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6233   echo "$as_me:$LINENO: result: failed" >&5
6234 echo "${ECHO_T}failed" >&6
6235 else
6236   echo "$as_me:$LINENO: result: ok" >&5
6237 echo "${ECHO_T}ok" >&6
6238 fi
6239
6240 echo "$as_me:$LINENO: checking for objdir" >&5
6241 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6242 if test "${lt_cv_objdir+set}" = set; then
6243   echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245   rm -f .libs 2>/dev/null
6246 mkdir .libs 2>/dev/null
6247 if test -d .libs; then
6248   lt_cv_objdir=.libs
6249 else
6250   # MS-DOS does not allow filenames that begin with a dot.
6251   lt_cv_objdir=_libs
6252 fi
6253 rmdir .libs 2>/dev/null
6254 fi
6255 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6256 echo "${ECHO_T}$lt_cv_objdir" >&6
6257 objdir=$lt_cv_objdir
6258
6259
6260
6261
6262
6263 case $host_os in
6264 aix3*)
6265   # AIX sometimes has problems with the GCC collect2 program.  For some
6266   # reason, if we set the COLLECT_NAMES environment variable, the problems
6267   # vanish in a puff of smoke.
6268   if test "X${COLLECT_NAMES+set}" != Xset; then
6269     COLLECT_NAMES=
6270     export COLLECT_NAMES
6271   fi
6272   ;;
6273 esac
6274
6275 # Sed substitution that helps us do robust quoting.  It backslashifies
6276 # metacharacters that are still active within double-quoted strings.
6277 Xsed='sed -e s/^X//'
6278 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6279
6280 # Same as above, but do not quote variable references.
6281 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6282
6283 # Sed substitution to delay expansion of an escaped shell variable in a
6284 # double_quote_subst'ed string.
6285 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6286
6287 # Sed substitution to avoid accidental globbing in evaled expressions
6288 no_glob_subst='s/\*/\\\*/g'
6289
6290 # Constants:
6291 rm="rm -f"
6292
6293 # Global variables:
6294 default_ofile=libtool
6295 can_build_shared=yes
6296
6297 # All known linkers require a `.a' archive for static linking (except M$VC,
6298 # which needs '.lib').
6299 libext=a
6300 ltmain="$ac_aux_dir/ltmain.sh"
6301 ofile="$default_ofile"
6302 with_gnu_ld="$lt_cv_prog_gnu_ld"
6303
6304 if test -n "$ac_tool_prefix"; then
6305   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}ar; ac_word=$2
6307 echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309 if test "${ac_cv_prog_AR+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   if test -n "$AR"; then
6313   ac_cv_prog_AR="$AR" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320   for ac_exec_ext in '' $ac_executable_extensions; do
6321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322     ac_cv_prog_AR="${ac_tool_prefix}ar"
6323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324     break 2
6325   fi
6326 done
6327 done
6328
6329 fi
6330 fi
6331 AR=$ac_cv_prog_AR
6332 if test -n "$AR"; then
6333   echo "$as_me:$LINENO: result: $AR" >&5
6334 echo "${ECHO_T}$AR" >&6
6335 else
6336   echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6338 fi
6339
6340 fi
6341 if test -z "$ac_cv_prog_AR"; then
6342   ac_ct_AR=$AR
6343   # Extract the first word of "ar", so it can be a program name with args.
6344 set dummy ar; ac_word=$2
6345 echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   if test -n "$ac_ct_AR"; then
6351   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6355 do
6356   IFS=$as_save_IFS
6357   test -z "$as_dir" && as_dir=.
6358   for ac_exec_ext in '' $ac_executable_extensions; do
6359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360     ac_cv_prog_ac_ct_AR="ar"
6361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362     break 2
6363   fi
6364 done
6365 done
6366
6367   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6368 fi
6369 fi
6370 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6371 if test -n "$ac_ct_AR"; then
6372   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6373 echo "${ECHO_T}$ac_ct_AR" >&6
6374 else
6375   echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6377 fi
6378
6379   AR=$ac_ct_AR
6380 else
6381   AR="$ac_cv_prog_AR"
6382 fi
6383
6384 if test -n "$ac_tool_prefix"; then
6385   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6387 echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6389 if test "${ac_cv_prog_RANLIB+set}" = set; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   if test -n "$RANLIB"; then
6393   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400   for ac_exec_ext in '' $ac_executable_extensions; do
6401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407 done
6408
6409 fi
6410 fi
6411 RANLIB=$ac_cv_prog_RANLIB
6412 if test -n "$RANLIB"; then
6413   echo "$as_me:$LINENO: result: $RANLIB" >&5
6414 echo "${ECHO_T}$RANLIB" >&6
6415 else
6416   echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6
6418 fi
6419
6420 fi
6421 if test -z "$ac_cv_prog_RANLIB"; then
6422   ac_ct_RANLIB=$RANLIB
6423   # Extract the first word of "ranlib", so it can be a program name with args.
6424 set dummy ranlib; ac_word=$2
6425 echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6428   echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430   if test -n "$ac_ct_RANLIB"; then
6431   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438   for ac_exec_ext in '' $ac_executable_extensions; do
6439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440     ac_cv_prog_ac_ct_RANLIB="ranlib"
6441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445 done
6446
6447   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6448 fi
6449 fi
6450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6451 if test -n "$ac_ct_RANLIB"; then
6452   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6453 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6454 else
6455   echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6
6457 fi
6458
6459   RANLIB=$ac_ct_RANLIB
6460 else
6461   RANLIB="$ac_cv_prog_RANLIB"
6462 fi
6463
6464 if test -n "$ac_tool_prefix"; then
6465   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6466 set dummy ${ac_tool_prefix}strip; ac_word=$2
6467 echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6469 if test "${ac_cv_prog_STRIP+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   if test -n "$STRIP"; then
6473   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488
6489 fi
6490 fi
6491 STRIP=$ac_cv_prog_STRIP
6492 if test -n "$STRIP"; then
6493   echo "$as_me:$LINENO: result: $STRIP" >&5
6494 echo "${ECHO_T}$STRIP" >&6
6495 else
6496   echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6
6498 fi
6499
6500 fi
6501 if test -z "$ac_cv_prog_STRIP"; then
6502   ac_ct_STRIP=$STRIP
6503   # Extract the first word of "strip", so it can be a program name with args.
6504 set dummy strip; ac_word=$2
6505 echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510   if test -n "$ac_ct_STRIP"; then
6511   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518   for ac_exec_ext in '' $ac_executable_extensions; do
6519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520     ac_cv_prog_ac_ct_STRIP="strip"
6521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525 done
6526
6527   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6528 fi
6529 fi
6530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6531 if test -n "$ac_ct_STRIP"; then
6532   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6533 echo "${ECHO_T}$ac_ct_STRIP" >&6
6534 else
6535   echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6
6537 fi
6538
6539   STRIP=$ac_ct_STRIP
6540 else
6541   STRIP="$ac_cv_prog_STRIP"
6542 fi
6543
6544
6545 old_CC="$CC"
6546 old_CFLAGS="$CFLAGS"
6547
6548 # Set sane defaults for various variables
6549 test -z "$AR" && AR=ar
6550 test -z "$AR_FLAGS" && AR_FLAGS=cru
6551 test -z "$AS" && AS=as
6552 test -z "$CC" && CC=cc
6553 test -z "$LTCC" && LTCC=$CC
6554 test -z "$DLLTOOL" && DLLTOOL=dlltool
6555 test -z "$LD" && LD=ld
6556 test -z "$LN_S" && LN_S="ln -s"
6557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6558 test -z "$NM" && NM=nm
6559 test -z "$SED" && SED=sed
6560 test -z "$OBJDUMP" && OBJDUMP=objdump
6561 test -z "$RANLIB" && RANLIB=:
6562 test -z "$STRIP" && STRIP=:
6563 test -z "$ac_objext" && ac_objext=o
6564
6565 # Determine commands to create old-style static archives.
6566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6567 old_postinstall_cmds='chmod 644 $oldlib'
6568 old_postuninstall_cmds=
6569
6570 if test -n "$RANLIB"; then
6571   case $host_os in
6572   openbsd*)
6573     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6574     ;;
6575   *)
6576     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6577     ;;
6578   esac
6579   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6580 fi
6581
6582 # Only perform the check for file, if the check method requires it
6583 case $deplibs_check_method in
6584 file_magic*)
6585   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6586     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6587 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6588 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   case $MAGIC_CMD in
6592 [\\/*] |  ?:[\\/]*)
6593   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6594   ;;
6595 *)
6596   lt_save_MAGIC_CMD="$MAGIC_CMD"
6597   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6598   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6599   for ac_dir in $ac_dummy; do
6600     IFS="$lt_save_ifs"
6601     test -z "$ac_dir" && ac_dir=.
6602     if test -f $ac_dir/${ac_tool_prefix}file; then
6603       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6604       if test -n "$file_magic_test_file"; then
6605         case $deplibs_check_method in
6606         "file_magic "*)
6607           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6608           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6609           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6610             $EGREP "$file_magic_regex" > /dev/null; then
6611             :
6612           else
6613             cat <<EOF 1>&2
6614
6615 *** Warning: the command libtool uses to detect shared libraries,
6616 *** $file_magic_cmd, produces output that libtool cannot recognize.
6617 *** The result is that libtool may fail to recognize shared libraries
6618 *** as such.  This will affect the creation of libtool libraries that
6619 *** depend on shared libraries, but programs linked with such libtool
6620 *** libraries will work regardless of this problem.  Nevertheless, you
6621 *** may want to report the problem to your system manager and/or to
6622 *** bug-libtool@gnu.org
6623
6624 EOF
6625           fi ;;
6626         esac
6627       fi
6628       break
6629     fi
6630   done
6631   IFS="$lt_save_ifs"
6632   MAGIC_CMD="$lt_save_MAGIC_CMD"
6633   ;;
6634 esac
6635 fi
6636
6637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6638 if test -n "$MAGIC_CMD"; then
6639   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6640 echo "${ECHO_T}$MAGIC_CMD" >&6
6641 else
6642   echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6
6644 fi
6645
6646 if test -z "$lt_cv_path_MAGIC_CMD"; then
6647   if test -n "$ac_tool_prefix"; then
6648     echo "$as_me:$LINENO: checking for file" >&5
6649 echo $ECHO_N "checking for file... $ECHO_C" >&6
6650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   case $MAGIC_CMD in
6654 [\\/*] |  ?:[\\/]*)
6655   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6656   ;;
6657 *)
6658   lt_save_MAGIC_CMD="$MAGIC_CMD"
6659   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6660   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6661   for ac_dir in $ac_dummy; do
6662     IFS="$lt_save_ifs"
6663     test -z "$ac_dir" && ac_dir=.
6664     if test -f $ac_dir/file; then
6665       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6666       if test -n "$file_magic_test_file"; then
6667         case $deplibs_check_method in
6668         "file_magic "*)
6669           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6670           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6671           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6672             $EGREP "$file_magic_regex" > /dev/null; then
6673             :
6674           else
6675             cat <<EOF 1>&2
6676
6677 *** Warning: the command libtool uses to detect shared libraries,
6678 *** $file_magic_cmd, produces output that libtool cannot recognize.
6679 *** The result is that libtool may fail to recognize shared libraries
6680 *** as such.  This will affect the creation of libtool libraries that
6681 *** depend on shared libraries, but programs linked with such libtool
6682 *** libraries will work regardless of this problem.  Nevertheless, you
6683 *** may want to report the problem to your system manager and/or to
6684 *** bug-libtool@gnu.org
6685
6686 EOF
6687           fi ;;
6688         esac
6689       fi
6690       break
6691     fi
6692   done
6693   IFS="$lt_save_ifs"
6694   MAGIC_CMD="$lt_save_MAGIC_CMD"
6695   ;;
6696 esac
6697 fi
6698
6699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6700 if test -n "$MAGIC_CMD"; then
6701   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6702 echo "${ECHO_T}$MAGIC_CMD" >&6
6703 else
6704   echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6
6706 fi
6707
6708   else
6709     MAGIC_CMD=:
6710   fi
6711 fi
6712
6713   fi
6714   ;;
6715 esac
6716
6717 enable_dlopen=yes
6718 enable_win32_dll=no
6719
6720 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6721 if test "${enable_libtool_lock+set}" = set; then
6722   enableval="$enable_libtool_lock"
6723
6724 fi;
6725 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6726
6727
6728 # Check whether --with-pic or --without-pic was given.
6729 if test "${with_pic+set}" = set; then
6730   withval="$with_pic"
6731   pic_mode="$withval"
6732 else
6733   pic_mode=default
6734 fi;
6735 test -z "$pic_mode" && pic_mode=default
6736
6737 # Use C for the default configuration in the libtool script
6738 tagname=
6739 lt_save_CC="$CC"
6740 ac_ext=c
6741 ac_cpp='$CPP $CPPFLAGS'
6742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745
6746
6747 # Source file extension for C test sources.
6748 ac_ext=c
6749
6750 # Object file extension for compiled C test sources.
6751 objext=o
6752 objext=$objext
6753
6754 # Code to be used in simple compile tests
6755 lt_simple_compile_test_code="int some_variable = 0;\n"
6756
6757 # Code to be used in simple link tests
6758 lt_simple_link_test_code='int main(){return(0);}\n'
6759
6760
6761 # If no C compiler was specified, use CC.
6762 LTCC=${LTCC-"$CC"}
6763
6764 # Allow CC to be a program name with arguments.
6765 compiler=$CC
6766
6767
6768 #
6769 # Check for any special shared library compilation flags.
6770 #
6771 lt_prog_cc_shlib=
6772 if test "$GCC" = no; then
6773   case $host_os in
6774   sco3.2v5*)
6775     lt_prog_cc_shlib='-belf'
6776     ;;
6777   esac
6778 fi
6779 if test -n "$lt_prog_cc_shlib"; then
6780   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6781 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6782   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6783   else
6784     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6785 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6786     lt_cv_prog_cc_can_build_shared=no
6787   fi
6788 fi
6789
6790
6791 #
6792 # Check to make sure the static flag actually works.
6793 #
6794 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6795 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6796 if test "${lt_prog_compiler_static_works+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   lt_prog_compiler_static_works=no
6800    save_LDFLAGS="$LDFLAGS"
6801    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6802    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6803    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6804      # The compiler can only warn and ignore the option if not recognized
6805      # So say no if there are warnings
6806      if test -s conftest.err; then
6807        # Append any errors to the config.log.
6808        cat conftest.err 1>&5
6809      else
6810        lt_prog_compiler_static_works=yes
6811      fi
6812    fi
6813    $rm conftest*
6814    LDFLAGS="$save_LDFLAGS"
6815
6816 fi
6817 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6818 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6819
6820 if test x"$lt_prog_compiler_static_works" = xyes; then
6821     :
6822 else
6823     lt_prog_compiler_static=
6824 fi
6825
6826
6827
6828
6829 lt_prog_compiler_no_builtin_flag=
6830
6831 if test "$GCC" = yes; then
6832   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6833
6834
6835 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   lt_cv_prog_compiler_rtti_exceptions=no
6841   ac_outfile=conftest.$ac_objext
6842    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6843    lt_compiler_flag="-fno-rtti -fno-exceptions"
6844    # Insert the option either (1) after the last *FLAGS variable, or
6845    # (2) before a word containing "conftest.", or (3) at the end.
6846    # Note that $ac_compile itself does not contain backslashes and begins
6847    # with a dollar sign (not a hyphen), so the echo should work correctly.
6848    # The option is referenced via a variable to avoid confusing sed.
6849    lt_compile=`echo "$ac_compile" | $SED \
6850    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6852    -e 's:$: $lt_compiler_flag:'`
6853    (eval echo "\"\$as_me:6853: $lt_compile\"" >&5)
6854    (eval "$lt_compile" 2>conftest.err)
6855    ac_status=$?
6856    cat conftest.err >&5
6857    echo "$as_me:6857: \$? = $ac_status" >&5
6858    if (exit $ac_status) && test -s "$ac_outfile"; then
6859      # The compiler can only warn and ignore the option if not recognized
6860      # So say no if there are warnings
6861      if test ! -s conftest.err; then
6862        lt_cv_prog_compiler_rtti_exceptions=yes
6863      fi
6864    fi
6865    $rm conftest*
6866
6867 fi
6868 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6869 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6870
6871 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6872     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6873 else
6874     :
6875 fi
6876
6877 fi
6878
6879 lt_prog_compiler_wl=
6880 lt_prog_compiler_pic=
6881 lt_prog_compiler_static=
6882
6883 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6884 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6885
6886   if test "$GCC" = yes; then
6887     lt_prog_compiler_wl='-Wl,'
6888     lt_prog_compiler_static='-static'
6889
6890     case $host_os in
6891       aix*)
6892       # All AIX code is PIC.
6893       if test "$host_cpu" = ia64; then
6894         # AIX 5 now supports IA64 processor
6895         lt_prog_compiler_static='-Bstatic'
6896       fi
6897       ;;
6898
6899     amigaos*)
6900       # FIXME: we need at least 68020 code to build shared libraries, but
6901       # adding the `-m68020' flag to GCC prevents building anything better,
6902       # like `-m68040'.
6903       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6904       ;;
6905
6906     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6907       # PIC is the default for these OSes.
6908       ;;
6909
6910     mingw* | pw32* | os2*)
6911       # This hack is so that the source file can tell whether it is being
6912       # built for inclusion in a dll (and should export symbols for example).
6913       lt_prog_compiler_pic='-DDLL_EXPORT'
6914       ;;
6915
6916     darwin* | rhapsody*)
6917       # PIC is the default on this platform
6918       # Common symbols not allowed in MH_DYLIB files
6919       lt_prog_compiler_pic='-fno-common'
6920       ;;
6921
6922     msdosdjgpp*)
6923       # Just because we use GCC doesn't mean we suddenly get shared libraries
6924       # on systems that don't support them.
6925       lt_prog_compiler_can_build_shared=no
6926       enable_shared=no
6927       ;;
6928
6929     sysv4*MP*)
6930       if test -d /usr/nec; then
6931         lt_prog_compiler_pic=-Kconform_pic
6932       fi
6933       ;;
6934
6935     hpux*)
6936       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6937       # not for PA HP-UX.
6938       case "$host_cpu" in
6939       hppa*64*|ia64*)
6940         # +Z the default
6941         ;;
6942       *)
6943         lt_prog_compiler_pic='-fPIC'
6944         ;;
6945       esac
6946       ;;
6947
6948     *)
6949       lt_prog_compiler_pic='-fPIC'
6950       ;;
6951     esac
6952   else
6953     # PORTME Check for flag to pass linker flags through the system compiler.
6954     case $host_os in
6955     aix*)
6956       lt_prog_compiler_wl='-Wl,'
6957       if test "$host_cpu" = ia64; then
6958         # AIX 5 now supports IA64 processor
6959         lt_prog_compiler_static='-Bstatic'
6960       else
6961         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6962       fi
6963       ;;
6964
6965     mingw* | pw32* | os2*)
6966       # This hack is so that the source file can tell whether it is being
6967       # built for inclusion in a dll (and should export symbols for example).
6968       lt_prog_compiler_pic='-DDLL_EXPORT'
6969       ;;
6970
6971     hpux9* | hpux10* | hpux11*)
6972       lt_prog_compiler_wl='-Wl,'
6973       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6974       # not for PA HP-UX.
6975       case "$host_cpu" in
6976       hppa*64*|ia64*)
6977         # +Z the default
6978         ;;
6979       *)
6980         lt_prog_compiler_pic='+Z'
6981         ;;
6982       esac
6983       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6984       lt_prog_compiler_static='${wl}-a ${wl}archive'
6985       ;;
6986
6987     irix5* | irix6* | nonstopux*)
6988       lt_prog_compiler_wl='-Wl,'
6989       # PIC (with -KPIC) is the default.
6990       lt_prog_compiler_static='-non_shared'
6991       ;;
6992
6993     newsos6)
6994       lt_prog_compiler_pic='-KPIC'
6995       lt_prog_compiler_static='-Bstatic'
6996       ;;
6997
6998     linux*)
6999       case $CC in
7000       icc* | ecc*)
7001         lt_prog_compiler_wl='-Wl,'
7002         lt_prog_compiler_pic='-KPIC'
7003         lt_prog_compiler_static='-static'
7004         ;;
7005       ccc*)
7006         lt_prog_compiler_wl='-Wl,'
7007         # All Alpha code is PIC.
7008         lt_prog_compiler_static='-non_shared'
7009         ;;
7010       esac
7011       ;;
7012
7013     osf3* | osf4* | osf5*)
7014       lt_prog_compiler_wl='-Wl,'
7015       # All OSF/1 code is PIC.
7016       lt_prog_compiler_static='-non_shared'
7017       ;;
7018
7019     sco3.2v5*)
7020       lt_prog_compiler_pic='-Kpic'
7021       lt_prog_compiler_static='-dn'
7022       ;;
7023
7024     solaris*)
7025       lt_prog_compiler_wl='-Wl,'
7026       lt_prog_compiler_pic='-KPIC'
7027       lt_prog_compiler_static='-Bstatic'
7028       ;;
7029
7030     sunos4*)
7031       lt_prog_compiler_wl='-Qoption ld '
7032       lt_prog_compiler_pic='-PIC'
7033       lt_prog_compiler_static='-Bstatic'
7034       ;;
7035
7036     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7037       lt_prog_compiler_wl='-Wl,'
7038       lt_prog_compiler_pic='-KPIC'
7039       lt_prog_compiler_static='-Bstatic'
7040       ;;
7041
7042     sysv4*MP*)
7043       if test -d /usr/nec ;then
7044         lt_prog_compiler_pic='-Kconform_pic'
7045         lt_prog_compiler_static='-Bstatic'
7046       fi
7047       ;;
7048
7049     uts4*)
7050       lt_prog_compiler_pic='-pic'
7051       lt_prog_compiler_static='-Bstatic'
7052       ;;
7053
7054     *)
7055       lt_prog_compiler_can_build_shared=no
7056       ;;
7057     esac
7058   fi
7059
7060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7061 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7062
7063 #
7064 # Check to make sure the PIC flag actually works.
7065 #
7066 if test -n "$lt_prog_compiler_pic"; then
7067
7068 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7069 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7070 if test "${lt_prog_compiler_pic_works+set}" = set; then
7071   echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073   lt_prog_compiler_pic_works=no
7074   ac_outfile=conftest.$ac_objext
7075    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7076    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7077    # Insert the option either (1) after the last *FLAGS variable, or
7078    # (2) before a word containing "conftest.", or (3) at the end.
7079    # Note that $ac_compile itself does not contain backslashes and begins
7080    # with a dollar sign (not a hyphen), so the echo should work correctly.
7081    # The option is referenced via a variable to avoid confusing sed.
7082    lt_compile=`echo "$ac_compile" | $SED \
7083    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7085    -e 's:$: $lt_compiler_flag:'`
7086    (eval echo "\"\$as_me:7086: $lt_compile\"" >&5)
7087    (eval "$lt_compile" 2>conftest.err)
7088    ac_status=$?
7089    cat conftest.err >&5
7090    echo "$as_me:7090: \$? = $ac_status" >&5
7091    if (exit $ac_status) && test -s "$ac_outfile"; then
7092      # The compiler can only warn and ignore the option if not recognized
7093      # So say no if there are warnings
7094      if test ! -s conftest.err; then
7095        lt_prog_compiler_pic_works=yes
7096      fi
7097    fi
7098    $rm conftest*
7099
7100 fi
7101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7102 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7103
7104 if test x"$lt_prog_compiler_pic_works" = xyes; then
7105     case $lt_prog_compiler_pic in
7106      "" | " "*) ;;
7107      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7108      esac
7109 else
7110     lt_prog_compiler_pic=
7111      lt_prog_compiler_can_build_shared=no
7112 fi
7113
7114 fi
7115 case "$host_os" in
7116   # For platforms which do not support PIC, -DPIC is meaningless:
7117   *djgpp*)
7118     lt_prog_compiler_pic=
7119     ;;
7120   *)
7121     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7122     ;;
7123 esac
7124
7125 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7126 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7127 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   lt_cv_prog_compiler_c_o=no
7131    $rm -r conftest 2>/dev/null
7132    mkdir conftest
7133    cd conftest
7134    mkdir out
7135    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7136
7137    lt_compiler_flag="-o out/conftest2.$ac_objext"
7138    # Insert the option either (1) after the last *FLAGS variable, or
7139    # (2) before a word containing "conftest.", or (3) at the end.
7140    # Note that $ac_compile itself does not contain backslashes and begins
7141    # with a dollar sign (not a hyphen), so the echo should work correctly.
7142    lt_compile=`echo "$ac_compile" | $SED \
7143    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7145    -e 's:$: $lt_compiler_flag:'`
7146    (eval echo "\"\$as_me:7146: $lt_compile\"" >&5)
7147    (eval "$lt_compile" 2>out/conftest.err)
7148    ac_status=$?
7149    cat out/conftest.err >&5
7150    echo "$as_me:7150: \$? = $ac_status" >&5
7151    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7152    then
7153      # The compiler can only warn and ignore the option if not recognized
7154      # So say no if there are warnings
7155      if test ! -s out/conftest.err; then
7156        lt_cv_prog_compiler_c_o=yes
7157      fi
7158    fi
7159    chmod u+w .
7160    $rm conftest*
7161    # SGI C++ compiler will create directory out/ii_files/ for
7162    # template instantiation
7163    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7164    $rm out/* && rmdir out
7165    cd ..
7166    rmdir conftest
7167    $rm conftest*
7168
7169 fi
7170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7171 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7172
7173
7174 hard_links="nottested"
7175 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7176   # do not overwrite the value of need_locks provided by the user
7177   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7178 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7179   hard_links=yes
7180   $rm conftest*
7181   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7182   touch conftest.a
7183   ln conftest.a conftest.b 2>&5 || hard_links=no
7184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7185   echo "$as_me:$LINENO: result: $hard_links" >&5
7186 echo "${ECHO_T}$hard_links" >&6
7187   if test "$hard_links" = no; then
7188     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7189 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7190     need_locks=warn
7191   fi
7192 else
7193   need_locks=no
7194 fi
7195
7196 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7197 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7198
7199   runpath_var=
7200   allow_undefined_flag=
7201   enable_shared_with_static_runtimes=no
7202   archive_cmds=
7203   archive_expsym_cmds=
7204   old_archive_From_new_cmds=
7205   old_archive_from_expsyms_cmds=
7206   export_dynamic_flag_spec=
7207   whole_archive_flag_spec=
7208   thread_safe_flag_spec=
7209   hardcode_libdir_flag_spec=
7210   hardcode_libdir_flag_spec_ld=
7211   hardcode_libdir_separator=
7212   hardcode_direct=no
7213   hardcode_minus_L=no
7214   hardcode_shlibpath_var=unsupported
7215   link_all_deplibs=unknown
7216   hardcode_automatic=no
7217   module_cmds=
7218   module_expsym_cmds=
7219   always_export_symbols=no
7220   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7221   # include_expsyms should be a list of space-separated symbols to be *always*
7222   # included in the symbol list
7223   include_expsyms=
7224   # exclude_expsyms can be an extended regexp of symbols to exclude
7225   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7226   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7227   # as well as any symbol that contains `d'.
7228   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7229   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7230   # platforms (ab)use it in PIC code, but their linkers get confused if
7231   # the symbol is explicitly referenced.  Since portable code cannot
7232   # rely on this symbol name, it's probably fine to never include it in
7233   # preloaded symbol tables.
7234   extract_expsyms_cmds=
7235
7236   case $host_os in
7237   cygwin* | mingw* | pw32*)
7238     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7239     # When not using gcc, we currently assume that we are using
7240     # Microsoft Visual C++.
7241     if test "$GCC" != yes; then
7242       with_gnu_ld=no
7243     fi
7244     ;;
7245   openbsd*)
7246     with_gnu_ld=no
7247     ;;
7248   esac
7249
7250   ld_shlibs=yes
7251   if test "$with_gnu_ld" = yes; then
7252     # If archive_cmds runs LD, not CC, wlarc should be empty
7253     wlarc='${wl}'
7254
7255     # See if GNU ld supports shared libraries.
7256     case $host_os in
7257     aix3* | aix4* | aix5*)
7258       # On AIX/PPC, the GNU linker is very broken
7259       if test "$host_cpu" != ia64; then
7260         ld_shlibs=no
7261         cat <<EOF 1>&2
7262
7263 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7264 *** to be unable to reliably create shared libraries on AIX.
7265 *** Therefore, libtool is disabling shared libraries support.  If you
7266 *** really care for shared libraries, you may want to modify your PATH
7267 *** so that a non-GNU linker is found, and then restart.
7268
7269 EOF
7270       fi
7271       ;;
7272
7273     amigaos*)
7274       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)'
7275       hardcode_libdir_flag_spec='-L$libdir'
7276       hardcode_minus_L=yes
7277
7278       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7279       # that the semantics of dynamic libraries on AmigaOS, at least up
7280       # to version 4, is to share data among multiple programs linked
7281       # with the same dynamic library.  Since this doesn't match the
7282       # behavior of shared libraries on other platforms, we can't use
7283       # them.
7284       ld_shlibs=no
7285       ;;
7286
7287     beos*)
7288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7289         allow_undefined_flag=unsupported
7290         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7291         # support --undefined.  This deserves some investigation.  FIXME
7292         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7293       else
7294         ld_shlibs=no
7295       fi
7296       ;;
7297
7298     cygwin* | mingw* | pw32*)
7299       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7300       # as there is no search path for DLLs.
7301       hardcode_libdir_flag_spec='-L$libdir'
7302       allow_undefined_flag=unsupported
7303       always_export_symbols=no
7304       enable_shared_with_static_runtimes=yes
7305       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7306
7307       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7308         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7309         # If the export-symbols file already is a .def file (1st line
7310         # is EXPORTS), use it as is; otherwise, prepend...
7311         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7312           cp $export_symbols $output_objdir/$soname.def;
7313         else
7314           echo EXPORTS > $output_objdir/$soname.def;
7315           cat $export_symbols >> $output_objdir/$soname.def;
7316         fi~
7317         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7318       else
7319         ld_shlibs=no
7320       fi
7321       ;;
7322
7323     netbsd*)
7324       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7325         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7326         wlarc=
7327       else
7328         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7329         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7330       fi
7331       ;;
7332
7333     solaris* | sysv5*)
7334       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7335         ld_shlibs=no
7336         cat <<EOF 1>&2
7337
7338 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7339 *** create shared libraries on Solaris systems.  Therefore, libtool
7340 *** is disabling shared libraries support.  We urge you to upgrade GNU
7341 *** binutils to release 2.9.1 or newer.  Another option is to modify
7342 *** your PATH or compiler configuration so that the native linker is
7343 *** used, and then restart.
7344
7345 EOF
7346       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7347         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7348         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7349       else
7350         ld_shlibs=no
7351       fi
7352       ;;
7353
7354     sunos4*)
7355       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7356       wlarc=
7357       hardcode_direct=yes
7358       hardcode_shlibpath_var=no
7359       ;;
7360
7361   linux*)
7362     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7363         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7364         archive_cmds="$tmp_archive_cmds"
7365       supports_anon_versioning=no
7366       case `$LD -v 2>/dev/null` in
7367         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7368         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7369         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7370         *\ 2.11.*) ;; # other 2.11 versions
7371         *) supports_anon_versioning=yes ;;
7372       esac
7373       if test $supports_anon_versioning = yes; then
7374         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7375 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7376 $echo "local: *; };" >> $output_objdir/$libname.ver~
7377         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7378       else
7379         archive_expsym_cmds="$tmp_archive_cmds"
7380       fi
7381     else
7382       ld_shlibs=no
7383     fi
7384     ;;
7385
7386     *)
7387       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7388         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7389         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7390       else
7391         ld_shlibs=no
7392       fi
7393       ;;
7394     esac
7395
7396     if test "$ld_shlibs" = yes; then
7397       runpath_var=LD_RUN_PATH
7398       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7399       export_dynamic_flag_spec='${wl}--export-dynamic'
7400       # ancient GNU ld didn't support --whole-archive et. al.
7401       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7402         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7403       else
7404         whole_archive_flag_spec=
7405       fi
7406     fi
7407   else
7408     # PORTME fill in a description of your system's linker (not GNU ld)
7409     case $host_os in
7410     aix3*)
7411       allow_undefined_flag=unsupported
7412       always_export_symbols=yes
7413       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'
7414       # Note: this linker hardcodes the directories in LIBPATH if there
7415       # are no directories specified by -L.
7416       hardcode_minus_L=yes
7417       if test "$GCC" = yes && test -z "$link_static_flag"; then
7418         # Neither direct hardcoding nor static linking is supported with a
7419         # broken collect2.
7420         hardcode_direct=unsupported
7421       fi
7422       ;;
7423
7424     aix4* | aix5*)
7425       if test "$host_cpu" = ia64; then
7426         # On IA64, the linker does run time linking by default, so we don't
7427         # have to do anything special.
7428         aix_use_runtimelinking=no
7429         exp_sym_flag='-Bexport'
7430         no_entry_flag=""
7431       else
7432         # If we're using GNU nm, then we don't want the "-C" option.
7433         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7434         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7435           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'
7436         else
7437           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'
7438         fi
7439         aix_use_runtimelinking=no
7440
7441         # Test if we are trying to use run time linking or normal
7442         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7443         # need to do runtime linking.
7444         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7445           for ld_flag in $LDFLAGS; do
7446           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7447             aix_use_runtimelinking=yes
7448             break
7449           fi
7450           done
7451         esac
7452
7453         exp_sym_flag='-bexport'
7454         no_entry_flag='-bnoentry'
7455       fi
7456
7457       # When large executables or shared objects are built, AIX ld can
7458       # have problems creating the table of contents.  If linking a library
7459       # or program results in "error TOC overflow" add -mminimal-toc to
7460       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7461       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7462
7463       archive_cmds=''
7464       hardcode_direct=yes
7465       hardcode_libdir_separator=':'
7466       link_all_deplibs=yes
7467
7468       if test "$GCC" = yes; then
7469         case $host_os in aix4.012|aix4.012.*)
7470         # We only want to do this on AIX 4.2 and lower, the check
7471         # below for broken collect2 doesn't work under 4.3+
7472           collect2name=`${CC} -print-prog-name=collect2`
7473           if test -f "$collect2name" && \
7474            strings "$collect2name" | grep resolve_lib_name >/dev/null
7475           then
7476           # We have reworked collect2
7477           hardcode_direct=yes
7478           else
7479           # We have old collect2
7480           hardcode_direct=unsupported
7481           # It fails to find uninstalled libraries when the uninstalled
7482           # path is not listed in the libpath.  Setting hardcode_minus_L
7483           # to unsupported forces relinking
7484           hardcode_minus_L=yes
7485           hardcode_libdir_flag_spec='-L$libdir'
7486           hardcode_libdir_separator=
7487           fi
7488         esac
7489         shared_flag='-shared'
7490       else
7491         # not using gcc
7492         if test "$host_cpu" = ia64; then
7493         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7494         # chokes on -Wl,-G. The following line is correct:
7495           shared_flag='-G'
7496         else
7497         if test "$aix_use_runtimelinking" = yes; then
7498             shared_flag='${wl}-G'
7499           else
7500             shared_flag='${wl}-bM:SRE'
7501         fi
7502         fi
7503       fi
7504
7505       # It seems that -bexpall does not export symbols beginning with
7506       # underscore (_), so it is better to generate a list of symbols to export.
7507       always_export_symbols=yes
7508       if test "$aix_use_runtimelinking" = yes; then
7509         # Warning - without using the other runtime loading flags (-brtl),
7510         # -berok will link without error, but may produce a broken library.
7511         allow_undefined_flag='-berok'
7512        # Determine the default libpath from the value encoded in an empty executable.
7513        cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519
7520 int
7521 main ()
7522 {
7523
7524   ;
7525   return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530   (eval $ac_link) 2>conftest.er1
7531   ac_status=$?
7532   grep -v '^ *+' conftest.er1 >conftest.err
7533   rm -f conftest.er1
7534   cat conftest.err >&5
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } &&
7537          { ac_try='test -z "$ac_c_werror_flag"
7538                          || test ! -s conftest.err'
7539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540   (eval $ac_try) 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); }; } &&
7544          { ac_try='test -s conftest$ac_exeext'
7545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546   (eval $ac_try) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); }; }; then
7550
7551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7552 }'`
7553 # Check for a 64-bit object if we didn't find anything.
7554 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; }
7555 }'`; fi
7556 else
7557   echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 fi
7561 rm -f conftest.err conftest.$ac_objext \
7562       conftest$ac_exeext conftest.$ac_ext
7563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7564
7565        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7566         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"
7567        else
7568         if test "$host_cpu" = ia64; then
7569           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7570           allow_undefined_flag="-z nodefs"
7571           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"
7572         else
7573          # Determine the default libpath from the value encoded in an empty executable.
7574          cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h.  */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h.  */
7580
7581 int
7582 main ()
7583 {
7584
7585   ;
7586   return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext conftest$ac_exeext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7591   (eval $ac_link) 2>conftest.er1
7592   ac_status=$?
7593   grep -v '^ *+' conftest.er1 >conftest.err
7594   rm -f conftest.er1
7595   cat conftest.err >&5
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } &&
7598          { ac_try='test -z "$ac_c_werror_flag"
7599                          || test ! -s conftest.err'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; } &&
7605          { ac_try='test -s conftest$ac_exeext'
7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607   (eval $ac_try) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; }; then
7611
7612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7613 }'`
7614 # Check for a 64-bit object if we didn't find anything.
7615 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; }
7616 }'`; fi
7617 else
7618   echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7620
7621 fi
7622 rm -f conftest.err conftest.$ac_objext \
7623       conftest$ac_exeext conftest.$ac_ext
7624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7625
7626          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7627           # Warning - without using the other run time loading flags,
7628           # -berok will link without error, but may produce a broken library.
7629           no_undefined_flag=' ${wl}-bernotok'
7630           allow_undefined_flag=' ${wl}-berok'
7631           # -bexpall does not export symbols beginning with underscore (_)
7632           always_export_symbols=yes
7633           # Exported symbols can be pulled into shared objects from archives
7634           whole_archive_flag_spec=' '
7635           archive_cmds_need_lc=yes
7636           # This is similar to how AIX traditionally builds it's shared libraries.
7637           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'
7638         fi
7639       fi
7640       ;;
7641
7642     amigaos*)
7643       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)'
7644       hardcode_libdir_flag_spec='-L$libdir'
7645       hardcode_minus_L=yes
7646       # see comment about different semantics on the GNU ld section
7647       ld_shlibs=no
7648       ;;
7649
7650     bsdi4*)
7651       export_dynamic_flag_spec=-rdynamic
7652       ;;
7653
7654     cygwin* | mingw* | pw32*)
7655       # When not using gcc, we currently assume that we are using
7656       # Microsoft Visual C++.
7657       # hardcode_libdir_flag_spec is actually meaningless, as there is
7658       # no search path for DLLs.
7659       hardcode_libdir_flag_spec=' '
7660       allow_undefined_flag=unsupported
7661       # Tell ltmain to make .lib files, not .a files.
7662       libext=lib
7663       # Tell ltmain to make .dll files, not .so files.
7664       shrext_cmds=".dll"
7665       # FIXME: Setting linknames here is a bad hack.
7666       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7667       # The linker will automatically build a .lib file if we build a DLL.
7668       old_archive_From_new_cmds='true'
7669       # FIXME: Should let the user specify the lib program.
7670       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7671       fix_srcfile_path='`cygpath -w "$srcfile"`'
7672       enable_shared_with_static_runtimes=yes
7673       ;;
7674
7675     darwin* | rhapsody*)
7676     if test "$GXX" = yes ; then
7677       archive_cmds_need_lc=no
7678       case "$host_os" in
7679       rhapsody* | darwin1.[012])
7680         allow_undefined_flag='-undefined suppress'
7681         ;;
7682       *) # Darwin 1.3 on
7683       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7684         allow_undefined_flag='-flat_namespace -undefined suppress'
7685       else
7686         case ${MACOSX_DEPLOYMENT_TARGET} in
7687           10.[012])
7688             allow_undefined_flag='-flat_namespace -undefined suppress'
7689             ;;
7690           10.*)
7691             allow_undefined_flag='-undefined dynamic_lookup'
7692             ;;
7693         esac
7694       fi
7695         ;;
7696       esac
7697         lt_int_apple_cc_single_mod=no
7698         output_verbose_link_cmd='echo'
7699         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7700           lt_int_apple_cc_single_mod=yes
7701         fi
7702         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7703           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7704         else
7705         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7706       fi
7707       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7708       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7709         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7710           archive_expsym_cmds='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}'
7711         else
7712           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7713         fi
7714           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}'
7715       hardcode_direct=no
7716       hardcode_automatic=yes
7717       hardcode_shlibpath_var=unsupported
7718       whole_archive_flag_spec='-all_load $convenience'
7719       link_all_deplibs=yes
7720     else
7721       ld_shlibs=no
7722     fi
7723       ;;
7724
7725     dgux*)
7726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7727       hardcode_libdir_flag_spec='-L$libdir'
7728       hardcode_shlibpath_var=no
7729       ;;
7730
7731     freebsd1*)
7732       ld_shlibs=no
7733       ;;
7734
7735     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7736     # support.  Future versions do this automatically, but an explicit c++rt0.o
7737     # does not break anything, and helps significantly (at the cost of a little
7738     # extra space).
7739     freebsd2.2*)
7740       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7741       hardcode_libdir_flag_spec='-R$libdir'
7742       hardcode_direct=yes
7743       hardcode_shlibpath_var=no
7744       ;;
7745
7746     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7747     freebsd2*)
7748       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7749       hardcode_direct=yes
7750       hardcode_minus_L=yes
7751       hardcode_shlibpath_var=no
7752       ;;
7753
7754     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7755     freebsd* | kfreebsd*-gnu)
7756       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7757       hardcode_libdir_flag_spec='-R$libdir'
7758       hardcode_direct=yes
7759       hardcode_shlibpath_var=no
7760       ;;
7761
7762     hpux9*)
7763       if test "$GCC" = yes; then
7764         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'
7765       else
7766         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'
7767       fi
7768       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7769       hardcode_libdir_separator=:
7770       hardcode_direct=yes
7771
7772       # hardcode_minus_L: Not really in the search PATH,
7773       # but as the default location of the library.
7774       hardcode_minus_L=yes
7775       export_dynamic_flag_spec='${wl}-E'
7776       ;;
7777
7778     hpux10* | hpux11*)
7779       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7780         case "$host_cpu" in
7781         hppa*64*|ia64*)
7782           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7783           ;;
7784         *)
7785           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7786           ;;
7787         esac
7788       else
7789         case "$host_cpu" in
7790         hppa*64*|ia64*)
7791           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7792           ;;
7793         *)
7794           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7795           ;;
7796         esac
7797       fi
7798       if test "$with_gnu_ld" = no; then
7799         case "$host_cpu" in
7800         hppa*64*)
7801           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7802           hardcode_libdir_flag_spec_ld='+b $libdir'
7803           hardcode_libdir_separator=:
7804           hardcode_direct=no
7805           hardcode_shlibpath_var=no
7806           ;;
7807         ia64*)
7808           hardcode_libdir_flag_spec='-L$libdir'
7809           hardcode_direct=no
7810           hardcode_shlibpath_var=no
7811
7812           # hardcode_minus_L: Not really in the search PATH,
7813           # but as the default location of the library.
7814           hardcode_minus_L=yes
7815           ;;
7816         *)
7817           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7818           hardcode_libdir_separator=:
7819           hardcode_direct=yes
7820           export_dynamic_flag_spec='${wl}-E'
7821
7822           # hardcode_minus_L: Not really in the search PATH,
7823           # but as the default location of the library.
7824           hardcode_minus_L=yes
7825           ;;
7826         esac
7827       fi
7828       ;;
7829
7830     irix5* | irix6* | nonstopux*)
7831       if test "$GCC" = yes; then
7832         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'
7833       else
7834         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'
7835         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7836       fi
7837       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7838       hardcode_libdir_separator=:
7839       link_all_deplibs=yes
7840       ;;
7841
7842     netbsd*)
7843       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7844         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7845       else
7846         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7847       fi
7848       hardcode_libdir_flag_spec='-R$libdir'
7849       hardcode_direct=yes
7850       hardcode_shlibpath_var=no
7851       ;;
7852
7853     newsos6)
7854       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7855       hardcode_direct=yes
7856       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7857       hardcode_libdir_separator=:
7858       hardcode_shlibpath_var=no
7859       ;;
7860
7861     openbsd*)
7862       hardcode_direct=yes
7863       hardcode_shlibpath_var=no
7864       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7865         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7866         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7867         export_dynamic_flag_spec='${wl}-E'
7868       else
7869        case $host_os in
7870          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7871            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7872            hardcode_libdir_flag_spec='-R$libdir'
7873            ;;
7874          *)
7875            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7876            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7877            ;;
7878        esac
7879       fi
7880       ;;
7881
7882     os2*)
7883       hardcode_libdir_flag_spec='-L$libdir'
7884       hardcode_minus_L=yes
7885       allow_undefined_flag=unsupported
7886       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'
7887       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7888       ;;
7889
7890     osf3*)
7891       if test "$GCC" = yes; then
7892         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7893         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'
7894       else
7895         allow_undefined_flag=' -expect_unresolved \*'
7896         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'
7897       fi
7898       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7899       hardcode_libdir_separator=:
7900       ;;
7901
7902     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7903       if test "$GCC" = yes; then
7904         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7905         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'
7906         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7907       else
7908         allow_undefined_flag=' -expect_unresolved \*'
7909         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'
7910         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7911         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7912
7913         # Both c and cxx compiler support -rpath directly
7914         hardcode_libdir_flag_spec='-rpath $libdir'
7915       fi
7916       hardcode_libdir_separator=:
7917       ;;
7918
7919     sco3.2v5*)
7920       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7921       hardcode_shlibpath_var=no
7922       export_dynamic_flag_spec='${wl}-Bexport'
7923       runpath_var=LD_RUN_PATH
7924       hardcode_runpath_var=yes
7925       ;;
7926
7927     solaris*)
7928       no_undefined_flag=' -z text'
7929       if test "$GCC" = yes; then
7930         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7931         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7932           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7933       else
7934         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7935         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7936         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7937       fi
7938       hardcode_libdir_flag_spec='-R$libdir'
7939       hardcode_shlibpath_var=no
7940       case $host_os in
7941       solaris2.[0-5] | solaris2.[0-5].*) ;;
7942       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7943         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7944       esac
7945       link_all_deplibs=yes
7946       ;;
7947
7948     sunos4*)
7949       if test "x$host_vendor" = xsequent; then
7950         # Use $CC to link under sequent, because it throws in some extra .o
7951         # files that make .init and .fini sections work.
7952         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7953       else
7954         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7955       fi
7956       hardcode_libdir_flag_spec='-L$libdir'
7957       hardcode_direct=yes
7958       hardcode_minus_L=yes
7959       hardcode_shlibpath_var=no
7960       ;;
7961
7962     sysv4)
7963       case $host_vendor in
7964         sni)
7965           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7966           hardcode_direct=yes # is this really true???
7967         ;;
7968         siemens)
7969           ## LD is ld it makes a PLAMLIB
7970           ## CC just makes a GrossModule.
7971           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7972           reload_cmds='$CC -r -o $output$reload_objs'
7973           hardcode_direct=no
7974         ;;
7975         motorola)
7976           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7978         ;;
7979       esac
7980       runpath_var='LD_RUN_PATH'
7981       hardcode_shlibpath_var=no
7982       ;;
7983
7984     sysv4.3*)
7985       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7986       hardcode_shlibpath_var=no
7987       export_dynamic_flag_spec='-Bexport'
7988       ;;
7989
7990     sysv4*MP*)
7991       if test -d /usr/nec; then
7992         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7993         hardcode_shlibpath_var=no
7994         runpath_var=LD_RUN_PATH
7995         hardcode_runpath_var=yes
7996         ld_shlibs=yes
7997       fi
7998       ;;
7999
8000     sysv4.2uw2*)
8001       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8002       hardcode_direct=yes
8003       hardcode_minus_L=no
8004       hardcode_shlibpath_var=no
8005       hardcode_runpath_var=yes
8006       runpath_var=LD_RUN_PATH
8007       ;;
8008
8009    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8010       no_undefined_flag='${wl}-z ${wl}text'
8011       if test "$GCC" = yes; then
8012         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8013       else
8014         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8015       fi
8016       runpath_var='LD_RUN_PATH'
8017       hardcode_shlibpath_var=no
8018       ;;
8019
8020     sysv5*)
8021       no_undefined_flag=' -z text'
8022       # $CC -shared without GNU ld will not create a library from C++
8023       # object files and a static libstdc++, better avoid it by now
8024       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8026                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8027       hardcode_libdir_flag_spec=
8028       hardcode_shlibpath_var=no
8029       runpath_var='LD_RUN_PATH'
8030       ;;
8031
8032     uts4*)
8033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034       hardcode_libdir_flag_spec='-L$libdir'
8035       hardcode_shlibpath_var=no
8036       ;;
8037
8038     *)
8039       ld_shlibs=no
8040       ;;
8041     esac
8042   fi
8043
8044 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8045 echo "${ECHO_T}$ld_shlibs" >&6
8046 test "$ld_shlibs" = no && can_build_shared=no
8047
8048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8049 if test "$GCC" = yes; then
8050   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8051 fi
8052
8053 #
8054 # Do we need to explicitly link libc?
8055 #
8056 case "x$archive_cmds_need_lc" in
8057 x|xyes)
8058   # Assume -lc should be added
8059   archive_cmds_need_lc=yes
8060
8061   if test "$enable_shared" = yes && test "$GCC" = yes; then
8062     case $archive_cmds in
8063     *'~'*)
8064       # FIXME: we may have to deal with multi-command sequences.
8065       ;;
8066     '$CC '*)
8067       # Test whether the compiler implicitly links with -lc since on some
8068       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8069       # to ld, don't add -lc before -lgcc.
8070       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8072       $rm conftest*
8073       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8074
8075       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076   (eval $ac_compile) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } 2>conftest.err; then
8080         soname=conftest
8081         lib=conftest
8082         libobjs=conftest.$ac_objext
8083         deplibs=
8084         wl=$lt_prog_compiler_wl
8085         compiler_flags=-v
8086         linker_flags=-v
8087         verstring=
8088         output_objdir=.
8089         libname=conftest
8090         lt_save_allow_undefined_flag=$allow_undefined_flag
8091         allow_undefined_flag=
8092         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8093   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }
8097         then
8098           archive_cmds_need_lc=no
8099         else
8100           archive_cmds_need_lc=yes
8101         fi
8102         allow_undefined_flag=$lt_save_allow_undefined_flag
8103       else
8104         cat conftest.err 1>&5
8105       fi
8106       $rm conftest*
8107       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8108 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8109       ;;
8110     esac
8111   fi
8112   ;;
8113 esac
8114
8115 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8116 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8117 library_names_spec=
8118 libname_spec='lib$name'
8119 soname_spec=
8120 shrext_cmds=".so"
8121 postinstall_cmds=
8122 postuninstall_cmds=
8123 finish_cmds=
8124 finish_eval=
8125 shlibpath_var=
8126 shlibpath_overrides_runpath=unknown
8127 version_type=none
8128 dynamic_linker="$host_os ld.so"
8129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8130 if test "$GCC" = yes; then
8131   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8132   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8133     # if the path contains ";" then we assume it to be the separator
8134     # otherwise default to the standard path separator (i.e. ":") - it is
8135     # assumed that no part of a normal pathname contains ";" but that should
8136     # okay in the real world where ";" in dirpaths is itself problematic.
8137     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8138   else
8139     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8140   fi
8141 else
8142   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8143 fi
8144 need_lib_prefix=unknown
8145 hardcode_into_libs=no
8146
8147 # when you set need_version to no, make sure it does not cause -set_version
8148 # flags to be left without arguments
8149 need_version=unknown
8150
8151 case $host_os in
8152 aix3*)
8153   version_type=linux
8154   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8155   shlibpath_var=LIBPATH
8156
8157   # AIX 3 has no versioning support, so we append a major version to the name.
8158   soname_spec='${libname}${release}${shared_ext}$major'
8159   ;;
8160
8161 aix4* | aix5*)
8162   version_type=linux
8163   need_lib_prefix=no
8164   need_version=no
8165   hardcode_into_libs=yes
8166   if test "$host_cpu" = ia64; then
8167     # AIX 5 supports IA64
8168     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8169     shlibpath_var=LD_LIBRARY_PATH
8170   else
8171     # With GCC up to 2.95.x, collect2 would create an import file
8172     # for dependence libraries.  The import file would start with
8173     # the line `#! .'.  This would cause the generated library to
8174     # depend on `.', always an invalid library.  This was fixed in
8175     # development snapshots of GCC prior to 3.0.
8176     case $host_os in
8177       aix4 | aix4.[01] | aix4.[01].*)
8178       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8179            echo ' yes '
8180            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8181         :
8182       else
8183         can_build_shared=no
8184       fi
8185       ;;
8186     esac
8187     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8188     # soname into executable. Probably we can add versioning support to
8189     # collect2, so additional links can be useful in future.
8190     if test "$aix_use_runtimelinking" = yes; then
8191       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8192       # instead of lib<name>.a to let people know that these are not
8193       # typical AIX shared libraries.
8194       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8195     else
8196       # We preserve .a as extension for shared libraries through AIX4.2
8197       # and later when we are not doing run time linking.
8198       library_names_spec='${libname}${release}.a $libname.a'
8199       soname_spec='${libname}${release}${shared_ext}$major'
8200     fi
8201     shlibpath_var=LIBPATH
8202   fi
8203   ;;
8204
8205 amigaos*)
8206   library_names_spec='$libname.ixlibrary $libname.a'
8207   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8208   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'
8209   ;;
8210
8211 beos*)
8212   library_names_spec='${libname}${shared_ext}'
8213   dynamic_linker="$host_os ld.so"
8214   shlibpath_var=LIBRARY_PATH
8215   ;;
8216
8217 bsdi4*)
8218   version_type=linux
8219   need_version=no
8220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221   soname_spec='${libname}${release}${shared_ext}$major'
8222   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8223   shlibpath_var=LD_LIBRARY_PATH
8224   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8225   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8226   # the default ld.so.conf also contains /usr/contrib/lib and
8227   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8228   # libtool to hard-code these into programs
8229   ;;
8230
8231 cygwin* | mingw* | pw32*)
8232   version_type=windows
8233   shrext_cmds=".dll"
8234   need_version=no
8235   need_lib_prefix=no
8236
8237   case $GCC,$host_os in
8238   yes,cygwin* | yes,mingw* | yes,pw32*)
8239     library_names_spec='$libname.dll.a'
8240     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8241     postinstall_cmds='base_file=`basename \${file}`~
8242       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8243       dldir=$destdir/`dirname \$dlpath`~
8244       test -d \$dldir || mkdir -p \$dldir~
8245       $install_prog $dir/$dlname \$dldir/$dlname'
8246     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8247       dlpath=$dir/\$dldll~
8248        $rm \$dlpath'
8249     shlibpath_overrides_runpath=yes
8250
8251     case $host_os in
8252     cygwin*)
8253       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8254       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8255       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8256       ;;
8257     mingw*)
8258       # MinGW DLLs use traditional 'lib' prefix
8259       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8260       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8261       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8262         # It is most probably a Windows format PATH printed by
8263         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8264         # path with ; separators, and with drive letters. We can handle the
8265         # drive letters (cygwin fileutils understands them), so leave them,
8266         # especially as we might pass files found there to a mingw objdump,
8267         # which wouldn't understand a cygwinified path. Ahh.
8268         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8269       else
8270         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8271       fi
8272       ;;
8273     pw32*)
8274       # pw32 DLLs use 'pw' prefix rather than 'lib'
8275       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8276       ;;
8277     esac
8278     ;;
8279
8280   *)
8281     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8282     ;;
8283   esac
8284   dynamic_linker='Win32 ld.exe'
8285   # FIXME: first we should search . and the directory the executable is in
8286   shlibpath_var=PATH
8287   ;;
8288
8289 darwin* | rhapsody*)
8290   dynamic_linker="$host_os dyld"
8291   version_type=darwin
8292   need_lib_prefix=no
8293   need_version=no
8294   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8295   soname_spec='${libname}${release}${major}$shared_ext'
8296   shlibpath_overrides_runpath=yes
8297   shlibpath_var=DYLD_LIBRARY_PATH
8298   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8299   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8300   if test "$GCC" = yes; then
8301     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"`
8302   else
8303     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8304   fi
8305   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8306   ;;
8307
8308 dgux*)
8309   version_type=linux
8310   need_lib_prefix=no
8311   need_version=no
8312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8313   soname_spec='${libname}${release}${shared_ext}$major'
8314   shlibpath_var=LD_LIBRARY_PATH
8315   ;;
8316
8317 freebsd1*)
8318   dynamic_linker=no
8319   ;;
8320
8321 kfreebsd*-gnu)
8322   version_type=linux
8323   need_lib_prefix=no
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   shlibpath_var=LD_LIBRARY_PATH
8328   shlibpath_overrides_runpath=no
8329   hardcode_into_libs=yes
8330   dynamic_linker='GNU ld.so'
8331   ;;
8332
8333 freebsd*)
8334   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8335   version_type=freebsd-$objformat
8336   case $version_type in
8337     freebsd-elf*)
8338       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8339       need_version=no
8340       need_lib_prefix=no
8341       ;;
8342     freebsd-*)
8343       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8344       need_version=yes
8345       ;;
8346   esac
8347   shlibpath_var=LD_LIBRARY_PATH
8348   case $host_os in
8349   freebsd2*)
8350     shlibpath_overrides_runpath=yes
8351     ;;
8352   freebsd3.01* | freebsdelf3.01*)
8353     shlibpath_overrides_runpath=yes
8354     hardcode_into_libs=yes
8355     ;;
8356   *) # from 3.2 on
8357     shlibpath_overrides_runpath=no
8358     hardcode_into_libs=yes
8359     ;;
8360   esac
8361   ;;
8362
8363 gnu*)
8364   version_type=linux
8365   need_lib_prefix=no
8366   need_version=no
8367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8368   soname_spec='${libname}${release}${shared_ext}$major'
8369   shlibpath_var=LD_LIBRARY_PATH
8370   hardcode_into_libs=yes
8371   ;;
8372
8373 hpux9* | hpux10* | hpux11*)
8374   # Give a soname corresponding to the major version so that dld.sl refuses to
8375   # link against other versions.
8376   version_type=sunos
8377   need_lib_prefix=no
8378   need_version=no
8379   case "$host_cpu" in
8380   ia64*)
8381     shrext_cmds='.so'
8382     hardcode_into_libs=yes
8383     dynamic_linker="$host_os dld.so"
8384     shlibpath_var=LD_LIBRARY_PATH
8385     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8386     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387     soname_spec='${libname}${release}${shared_ext}$major'
8388     if test "X$HPUX_IA64_MODE" = X32; then
8389       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8390     else
8391       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8392     fi
8393     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8394     ;;
8395    hppa*64*)
8396      shrext_cmds='.sl'
8397      hardcode_into_libs=yes
8398      dynamic_linker="$host_os dld.sl"
8399      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8400      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8401      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402      soname_spec='${libname}${release}${shared_ext}$major'
8403      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8404      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8405      ;;
8406    *)
8407     shrext_cmds='.sl'
8408     dynamic_linker="$host_os dld.sl"
8409     shlibpath_var=SHLIB_PATH
8410     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412     soname_spec='${libname}${release}${shared_ext}$major'
8413     ;;
8414   esac
8415   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8416   postinstall_cmds='chmod 555 $lib'
8417   ;;
8418
8419 irix5* | irix6* | nonstopux*)
8420   case $host_os in
8421     nonstopux*) version_type=nonstopux ;;
8422     *)
8423         if test "$lt_cv_prog_gnu_ld" = yes; then
8424                 version_type=linux
8425         else
8426                 version_type=irix
8427         fi ;;
8428   esac
8429   need_lib_prefix=no
8430   need_version=no
8431   soname_spec='${libname}${release}${shared_ext}$major'
8432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8433   case $host_os in
8434   irix5* | nonstopux*)
8435     libsuff= shlibsuff=
8436     ;;
8437   *)
8438     case $LD in # libtool.m4 will add one of these switches to LD
8439     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8440       libsuff= shlibsuff= libmagic=32-bit;;
8441     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8442       libsuff=32 shlibsuff=N32 libmagic=N32;;
8443     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8444       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8445     *) libsuff= shlibsuff= libmagic=never-match;;
8446     esac
8447     ;;
8448   esac
8449   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8450   shlibpath_overrides_runpath=no
8451   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8452   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8453   hardcode_into_libs=yes
8454   ;;
8455
8456 # No shared lib support for Linux oldld, aout, or coff.
8457 linux*oldld* | linux*aout* | linux*coff*)
8458   dynamic_linker=no
8459   ;;
8460
8461 # This must be Linux ELF.
8462 linux*)
8463   version_type=linux
8464   need_lib_prefix=no
8465   need_version=no
8466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8467   soname_spec='${libname}${release}${shared_ext}$major'
8468   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8469   shlibpath_var=LD_LIBRARY_PATH
8470   shlibpath_overrides_runpath=no
8471   # This implies no fast_install, which is unacceptable.
8472   # Some rework will be needed to allow for fast_install
8473   # before this can be enabled.
8474   hardcode_into_libs=yes
8475
8476   # find out which ABI we are using
8477   libsuff=
8478   case "$host_cpu" in
8479   x86_64*|s390x*|powerpc64*)
8480     echo '#line 8480 "configure"' > conftest.$ac_ext
8481     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8482   (eval $ac_compile) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; then
8486       case `/usr/bin/file conftest.$ac_objext` in
8487       *64-bit*)
8488         libsuff=64
8489         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8490         ;;
8491       esac
8492     fi
8493     rm -rf conftest*
8494     ;;
8495   esac
8496
8497   # Append ld.so.conf contents to the search path
8498   if test -f /etc/ld.so.conf; then
8499     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8500     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8501   fi
8502
8503   # We used to test for /lib/ld.so.1 and disable shared libraries on
8504   # powerpc, because MkLinux only supported shared libraries with the
8505   # GNU dynamic linker.  Since this was broken with cross compilers,
8506   # most powerpc-linux boxes support dynamic linking these days and
8507   # people can always --disable-shared, the test was removed, and we
8508   # assume the GNU/Linux dynamic linker is in use.
8509   dynamic_linker='GNU/Linux ld.so'
8510   ;;
8511
8512 knetbsd*-gnu)
8513   version_type=linux
8514   need_lib_prefix=no
8515   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
8519   shlibpath_overrides_runpath=no
8520   hardcode_into_libs=yes
8521   dynamic_linker='GNU ld.so'
8522   ;;
8523
8524 netbsd*)
8525   version_type=sunos
8526   need_lib_prefix=no
8527   need_version=no
8528   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8530     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8531     dynamic_linker='NetBSD (a.out) ld.so'
8532   else
8533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8534     soname_spec='${libname}${release}${shared_ext}$major'
8535     dynamic_linker='NetBSD ld.elf_so'
8536   fi
8537   shlibpath_var=LD_LIBRARY_PATH
8538   shlibpath_overrides_runpath=yes
8539   hardcode_into_libs=yes
8540   ;;
8541
8542 newsos6)
8543   version_type=linux
8544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8545   shlibpath_var=LD_LIBRARY_PATH
8546   shlibpath_overrides_runpath=yes
8547   ;;
8548
8549 nto-qnx*)
8550   version_type=linux
8551   need_lib_prefix=no
8552   need_version=no
8553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8554   soname_spec='${libname}${release}${shared_ext}$major'
8555   shlibpath_var=LD_LIBRARY_PATH
8556   shlibpath_overrides_runpath=yes
8557   ;;
8558
8559 openbsd*)
8560   version_type=sunos
8561   need_lib_prefix=no
8562   need_version=yes
8563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8564   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8565   shlibpath_var=LD_LIBRARY_PATH
8566   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8567     case $host_os in
8568       openbsd2.[89] | openbsd2.[89].*)
8569         shlibpath_overrides_runpath=no
8570         ;;
8571       *)
8572         shlibpath_overrides_runpath=yes
8573         ;;
8574       esac
8575   else
8576     shlibpath_overrides_runpath=yes
8577   fi
8578   ;;
8579
8580 os2*)
8581   libname_spec='$name'
8582   shrext_cmds=".dll"
8583   need_lib_prefix=no
8584   library_names_spec='$libname${shared_ext} $libname.a'
8585   dynamic_linker='OS/2 ld.exe'
8586   shlibpath_var=LIBPATH
8587   ;;
8588
8589 osf3* | osf4* | osf5*)
8590   version_type=osf
8591   need_lib_prefix=no
8592   need_version=no
8593   soname_spec='${libname}${release}${shared_ext}$major'
8594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595   shlibpath_var=LD_LIBRARY_PATH
8596   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8597   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8598   ;;
8599
8600 sco3.2v5*)
8601   version_type=osf
8602   soname_spec='${libname}${release}${shared_ext}$major'
8603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604   shlibpath_var=LD_LIBRARY_PATH
8605   ;;
8606
8607 solaris*)
8608   version_type=linux
8609   need_lib_prefix=no
8610   need_version=no
8611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612   soname_spec='${libname}${release}${shared_ext}$major'
8613   shlibpath_var=LD_LIBRARY_PATH
8614   shlibpath_overrides_runpath=yes
8615   hardcode_into_libs=yes
8616   # ldd complains unless libraries are executable
8617   postinstall_cmds='chmod +x $lib'
8618   ;;
8619
8620 sunos4*)
8621   version_type=sunos
8622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8623   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8624   shlibpath_var=LD_LIBRARY_PATH
8625   shlibpath_overrides_runpath=yes
8626   if test "$with_gnu_ld" = yes; then
8627     need_lib_prefix=no
8628   fi
8629   need_version=yes
8630   ;;
8631
8632 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8633   version_type=linux
8634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635   soname_spec='${libname}${release}${shared_ext}$major'
8636   shlibpath_var=LD_LIBRARY_PATH
8637   case $host_vendor in
8638     sni)
8639       shlibpath_overrides_runpath=no
8640       need_lib_prefix=no
8641       export_dynamic_flag_spec='${wl}-Blargedynsym'
8642       runpath_var=LD_RUN_PATH
8643       ;;
8644     siemens)
8645       need_lib_prefix=no
8646       ;;
8647     motorola)
8648       need_lib_prefix=no
8649       need_version=no
8650       shlibpath_overrides_runpath=no
8651       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8652       ;;
8653   esac
8654   ;;
8655
8656 sysv4*MP*)
8657   if test -d /usr/nec ;then
8658     version_type=linux
8659     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8660     soname_spec='$libname${shared_ext}.$major'
8661     shlibpath_var=LD_LIBRARY_PATH
8662   fi
8663   ;;
8664
8665 uts4*)
8666   version_type=linux
8667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8668   soname_spec='${libname}${release}${shared_ext}$major'
8669   shlibpath_var=LD_LIBRARY_PATH
8670   ;;
8671
8672 *)
8673   dynamic_linker=no
8674   ;;
8675 esac
8676 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8677 echo "${ECHO_T}$dynamic_linker" >&6
8678 test "$dynamic_linker" = no && can_build_shared=no
8679
8680 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8681 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8682 hardcode_action=
8683 if test -n "$hardcode_libdir_flag_spec" || \
8684    test -n "$runpath_var " || \
8685    test "X$hardcode_automatic"="Xyes" ; then
8686
8687   # We can hardcode non-existant directories.
8688   if test "$hardcode_direct" != no &&
8689      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8690      # have to relink, otherwise we might link with an installed library
8691      # when we should be linking with a yet-to-be-installed one
8692      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8693      test "$hardcode_minus_L" != no; then
8694     # Linking always hardcodes the temporary library directory.
8695     hardcode_action=relink
8696   else
8697     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8698     hardcode_action=immediate
8699   fi
8700 else
8701   # We cannot hardcode anything, or else we can only hardcode existing
8702   # directories.
8703   hardcode_action=unsupported
8704 fi
8705 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8706 echo "${ECHO_T}$hardcode_action" >&6
8707
8708 if test "$hardcode_action" = relink; then
8709   # Fast installation is not supported
8710   enable_fast_install=no
8711 elif test "$shlibpath_overrides_runpath" = yes ||
8712      test "$enable_shared" = no; then
8713   # Fast installation is not necessary
8714   enable_fast_install=needless
8715 fi
8716
8717 striplib=
8718 old_striplib=
8719 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8720 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8721 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8722   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8723   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8724   echo "$as_me:$LINENO: result: yes" >&5
8725 echo "${ECHO_T}yes" >&6
8726 else
8727 # FIXME - insert some real tests, host_os isn't really good enough
8728   case $host_os in
8729    darwin*)
8730        if test -n "$STRIP" ; then
8731          striplib="$STRIP -x"
8732          echo "$as_me:$LINENO: result: yes" >&5
8733 echo "${ECHO_T}yes" >&6
8734        else
8735   echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6
8737 fi
8738        ;;
8739    *)
8740   echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6
8742     ;;
8743   esac
8744 fi
8745
8746 if test "x$enable_dlopen" != xyes; then
8747   enable_dlopen=unknown
8748   enable_dlopen_self=unknown
8749   enable_dlopen_self_static=unknown
8750 else
8751   lt_cv_dlopen=no
8752   lt_cv_dlopen_libs=
8753
8754   case $host_os in
8755   beos*)
8756     lt_cv_dlopen="load_add_on"
8757     lt_cv_dlopen_libs=
8758     lt_cv_dlopen_self=yes
8759     ;;
8760
8761   mingw* | pw32*)
8762     lt_cv_dlopen="LoadLibrary"
8763     lt_cv_dlopen_libs=
8764    ;;
8765
8766   cygwin*)
8767     lt_cv_dlopen="dlopen"
8768     lt_cv_dlopen_libs=
8769    ;;
8770
8771   darwin*)
8772   # if libdl is installed we need to link against it
8773     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8774 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8775 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8776   echo $ECHO_N "(cached) $ECHO_C" >&6
8777 else
8778   ac_check_lib_save_LIBS=$LIBS
8779 LIBS="-ldl  $LIBS"
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786
8787 /* Override any gcc2 internal prototype to avoid an error.  */
8788 #ifdef __cplusplus
8789 extern "C"
8790 #endif
8791 /* We use char because int might match the return type of a gcc2
8792    builtin and then its argument prototype would still apply.  */
8793 char dlopen ();
8794 int
8795 main ()
8796 {
8797 dlopen ();
8798   ;
8799   return 0;
8800 }
8801 _ACEOF
8802 rm -f conftest.$ac_objext conftest$ac_exeext
8803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8804   (eval $ac_link) 2>conftest.er1
8805   ac_status=$?
8806   grep -v '^ *+' conftest.er1 >conftest.err
8807   rm -f conftest.er1
8808   cat conftest.err >&5
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); } &&
8811          { ac_try='test -z "$ac_c_werror_flag"
8812                          || test ! -s conftest.err'
8813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814   (eval $ac_try) 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); }; } &&
8818          { ac_try='test -s conftest$ac_exeext'
8819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820   (eval $ac_try) 2>&5
8821   ac_status=$?
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); }; }; then
8824   ac_cv_lib_dl_dlopen=yes
8825 else
8826   echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829 ac_cv_lib_dl_dlopen=no
8830 fi
8831 rm -f conftest.err conftest.$ac_objext \
8832       conftest$ac_exeext conftest.$ac_ext
8833 LIBS=$ac_check_lib_save_LIBS
8834 fi
8835 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8836 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8837 if test $ac_cv_lib_dl_dlopen = yes; then
8838   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8839 else
8840
8841     lt_cv_dlopen="dyld"
8842     lt_cv_dlopen_libs=
8843     lt_cv_dlopen_self=yes
8844
8845 fi
8846
8847    ;;
8848
8849   *)
8850     echo "$as_me:$LINENO: checking for shl_load" >&5
8851 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8852 if test "${ac_cv_func_shl_load+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h.  */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h.  */
8861 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8863 #define shl_load innocuous_shl_load
8864
8865 /* System header to define __stub macros and hopefully few prototypes,
8866     which can conflict with char shl_load (); below.
8867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8868     <limits.h> exists even on freestanding compilers.  */
8869
8870 #ifdef __STDC__
8871 # include <limits.h>
8872 #else
8873 # include <assert.h>
8874 #endif
8875
8876 #undef shl_load
8877
8878 /* Override any gcc2 internal prototype to avoid an error.  */
8879 #ifdef __cplusplus
8880 extern "C"
8881 {
8882 #endif
8883 /* We use char because int might match the return type of a gcc2
8884    builtin and then its argument prototype would still apply.  */
8885 char shl_load ();
8886 /* The GNU C library defines this for functions which it implements
8887     to always fail with ENOSYS.  Some functions are actually named
8888     something starting with __ and the normal name is an alias.  */
8889 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8890 choke me
8891 #else
8892 char (*f) () = shl_load;
8893 #endif
8894 #ifdef __cplusplus
8895 }
8896 #endif
8897
8898 int
8899 main ()
8900 {
8901 return f != shl_load;
8902   ;
8903   return 0;
8904 }
8905 _ACEOF
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908   (eval $ac_link) 2>conftest.er1
8909   ac_status=$?
8910   grep -v '^ *+' conftest.er1 >conftest.err
8911   rm -f conftest.er1
8912   cat conftest.err >&5
8913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } &&
8915          { ac_try='test -z "$ac_c_werror_flag"
8916                          || test ! -s conftest.err'
8917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918   (eval $ac_try) 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); }; } &&
8922          { ac_try='test -s conftest$ac_exeext'
8923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924   (eval $ac_try) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; }; then
8928   ac_cv_func_shl_load=yes
8929 else
8930   echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ac_cv_func_shl_load=no
8934 fi
8935 rm -f conftest.err conftest.$ac_objext \
8936       conftest$ac_exeext conftest.$ac_ext
8937 fi
8938 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8939 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8940 if test $ac_cv_func_shl_load = yes; then
8941   lt_cv_dlopen="shl_load"
8942 else
8943   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8944 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8945 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8946   echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948   ac_check_lib_save_LIBS=$LIBS
8949 LIBS="-ldld  $LIBS"
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956
8957 /* Override any gcc2 internal prototype to avoid an error.  */
8958 #ifdef __cplusplus
8959 extern "C"
8960 #endif
8961 /* We use char because int might match the return type of a gcc2
8962    builtin and then its argument prototype would still apply.  */
8963 char shl_load ();
8964 int
8965 main ()
8966 {
8967 shl_load ();
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974   (eval $ac_link) 2>conftest.er1
8975   ac_status=$?
8976   grep -v '^ *+' conftest.er1 >conftest.err
8977   rm -f conftest.er1
8978   cat conftest.err >&5
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } &&
8981          { ac_try='test -z "$ac_c_werror_flag"
8982                          || test ! -s conftest.err'
8983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984   (eval $ac_try) 2>&5
8985   ac_status=$?
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); }; } &&
8988          { ac_try='test -s conftest$ac_exeext'
8989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990   (eval $ac_try) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }; }; then
8994   ac_cv_lib_dld_shl_load=yes
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 ac_cv_lib_dld_shl_load=no
9000 fi
9001 rm -f conftest.err conftest.$ac_objext \
9002       conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9004 fi
9005 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9006 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9007 if test $ac_cv_lib_dld_shl_load = yes; then
9008   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9009 else
9010   echo "$as_me:$LINENO: checking for dlopen" >&5
9011 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9012 if test "${ac_cv_func_dlopen+set}" = set; then
9013   echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015   cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h.  */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h.  */
9021 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9023 #define dlopen innocuous_dlopen
9024
9025 /* System header to define __stub macros and hopefully few prototypes,
9026     which can conflict with char dlopen (); below.
9027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028     <limits.h> exists even on freestanding compilers.  */
9029
9030 #ifdef __STDC__
9031 # include <limits.h>
9032 #else
9033 # include <assert.h>
9034 #endif
9035
9036 #undef dlopen
9037
9038 /* Override any gcc2 internal prototype to avoid an error.  */
9039 #ifdef __cplusplus
9040 extern "C"
9041 {
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044    builtin and then its argument prototype would still apply.  */
9045 char dlopen ();
9046 /* The GNU C library defines this for functions which it implements
9047     to always fail with ENOSYS.  Some functions are actually named
9048     something starting with __ and the normal name is an alias.  */
9049 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9050 choke me
9051 #else
9052 char (*f) () = dlopen;
9053 #endif
9054 #ifdef __cplusplus
9055 }
9056 #endif
9057
9058 int
9059 main ()
9060 {
9061 return f != dlopen;
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068   (eval $ac_link) 2>conftest.er1
9069   ac_status=$?
9070   grep -v '^ *+' conftest.er1 >conftest.err
9071   rm -f conftest.er1
9072   cat conftest.err >&5
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); } &&
9075          { ac_try='test -z "$ac_c_werror_flag"
9076                          || test ! -s conftest.err'
9077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078   (eval $ac_try) 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; } &&
9082          { ac_try='test -s conftest$ac_exeext'
9083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084   (eval $ac_try) 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); }; }; then
9088   ac_cv_func_dlopen=yes
9089 else
9090   echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093 ac_cv_func_dlopen=no
9094 fi
9095 rm -f conftest.err conftest.$ac_objext \
9096       conftest$ac_exeext conftest.$ac_ext
9097 fi
9098 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9099 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9100 if test $ac_cv_func_dlopen = yes; then
9101   lt_cv_dlopen="dlopen"
9102 else
9103   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9104 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9105 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   ac_check_lib_save_LIBS=$LIBS
9109 LIBS="-ldl  $LIBS"
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h.  */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h.  */
9116
9117 /* Override any gcc2 internal prototype to avoid an error.  */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 /* We use char because int might match the return type of a gcc2
9122    builtin and then its argument prototype would still apply.  */
9123 char dlopen ();
9124 int
9125 main ()
9126 {
9127 dlopen ();
9128   ;
9129   return 0;
9130 }
9131 _ACEOF
9132 rm -f conftest.$ac_objext conftest$ac_exeext
9133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134   (eval $ac_link) 2>conftest.er1
9135   ac_status=$?
9136   grep -v '^ *+' conftest.er1 >conftest.err
9137   rm -f conftest.er1
9138   cat conftest.err >&5
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); } &&
9141          { ac_try='test -z "$ac_c_werror_flag"
9142                          || test ! -s conftest.err'
9143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144   (eval $ac_try) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); }; } &&
9148          { ac_try='test -s conftest$ac_exeext'
9149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150   (eval $ac_try) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); }; }; then
9154   ac_cv_lib_dl_dlopen=yes
9155 else
9156   echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159 ac_cv_lib_dl_dlopen=no
9160 fi
9161 rm -f conftest.err conftest.$ac_objext \
9162       conftest$ac_exeext conftest.$ac_ext
9163 LIBS=$ac_check_lib_save_LIBS
9164 fi
9165 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9166 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9167 if test $ac_cv_lib_dl_dlopen = yes; then
9168   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9169 else
9170   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9171 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9172 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9173   echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175   ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-lsvld  $LIBS"
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h.  */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h.  */
9183
9184 /* Override any gcc2 internal prototype to avoid an error.  */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 /* We use char because int might match the return type of a gcc2
9189    builtin and then its argument prototype would still apply.  */
9190 char dlopen ();
9191 int
9192 main ()
9193 {
9194 dlopen ();
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201   (eval $ac_link) 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -z "$ac_c_werror_flag"
9209                          || test ! -s conftest.err'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; } &&
9215          { ac_try='test -s conftest$ac_exeext'
9216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217   (eval $ac_try) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); }; }; then
9221   ac_cv_lib_svld_dlopen=yes
9222 else
9223   echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 ac_cv_lib_svld_dlopen=no
9227 fi
9228 rm -f conftest.err conftest.$ac_objext \
9229       conftest$ac_exeext conftest.$ac_ext
9230 LIBS=$ac_check_lib_save_LIBS
9231 fi
9232 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9233 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9234 if test $ac_cv_lib_svld_dlopen = yes; then
9235   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9236 else
9237   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9238 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9239 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   ac_check_lib_save_LIBS=$LIBS
9243 LIBS="-ldld  $LIBS"
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h.  */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h.  */
9250
9251 /* Override any gcc2 internal prototype to avoid an error.  */
9252 #ifdef __cplusplus
9253 extern "C"
9254 #endif
9255 /* We use char because int might match the return type of a gcc2
9256    builtin and then its argument prototype would still apply.  */
9257 char dld_link ();
9258 int
9259 main ()
9260 {
9261 dld_link ();
9262   ;
9263   return 0;
9264 }
9265 _ACEOF
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268   (eval $ac_link) 2>conftest.er1
9269   ac_status=$?
9270   grep -v '^ *+' conftest.er1 >conftest.err
9271   rm -f conftest.er1
9272   cat conftest.err >&5
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); } &&
9275          { ac_try='test -z "$ac_c_werror_flag"
9276                          || test ! -s conftest.err'
9277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278   (eval $ac_try) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); }; } &&
9282          { ac_try='test -s conftest$ac_exeext'
9283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284   (eval $ac_try) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; }; then
9288   ac_cv_lib_dld_dld_link=yes
9289 else
9290   echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 ac_cv_lib_dld_dld_link=no
9294 fi
9295 rm -f conftest.err conftest.$ac_objext \
9296       conftest$ac_exeext conftest.$ac_ext
9297 LIBS=$ac_check_lib_save_LIBS
9298 fi
9299 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9300 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9301 if test $ac_cv_lib_dld_dld_link = yes; then
9302   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9303 fi
9304
9305
9306 fi
9307
9308
9309 fi
9310
9311
9312 fi
9313
9314
9315 fi
9316
9317
9318 fi
9319
9320     ;;
9321   esac
9322
9323   if test "x$lt_cv_dlopen" != xno; then
9324     enable_dlopen=yes
9325   else
9326     enable_dlopen=no
9327   fi
9328
9329   case $lt_cv_dlopen in
9330   dlopen)
9331     save_CPPFLAGS="$CPPFLAGS"
9332     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9333
9334     save_LDFLAGS="$LDFLAGS"
9335     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9336
9337     save_LIBS="$LIBS"
9338     LIBS="$lt_cv_dlopen_libs $LIBS"
9339
9340     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9341 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9342 if test "${lt_cv_dlopen_self+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345           if test "$cross_compiling" = yes; then :
9346   lt_cv_dlopen_self=cross
9347 else
9348   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9349   lt_status=$lt_dlunknown
9350   cat > conftest.$ac_ext <<EOF
9351 #line 9351 "configure"
9352 #include "confdefs.h"
9353
9354 #if HAVE_DLFCN_H
9355 #include <dlfcn.h>
9356 #endif
9357
9358 #include <stdio.h>
9359
9360 #ifdef RTLD_GLOBAL
9361 #  define LT_DLGLOBAL           RTLD_GLOBAL
9362 #else
9363 #  ifdef DL_GLOBAL
9364 #    define LT_DLGLOBAL         DL_GLOBAL
9365 #  else
9366 #    define LT_DLGLOBAL         0
9367 #  endif
9368 #endif
9369
9370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9371    find out it does not work in some platform. */
9372 #ifndef LT_DLLAZY_OR_NOW
9373 #  ifdef RTLD_LAZY
9374 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9375 #  else
9376 #    ifdef DL_LAZY
9377 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9378 #    else
9379 #      ifdef RTLD_NOW
9380 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9381 #      else
9382 #        ifdef DL_NOW
9383 #          define LT_DLLAZY_OR_NOW      DL_NOW
9384 #        else
9385 #          define LT_DLLAZY_OR_NOW      0
9386 #        endif
9387 #      endif
9388 #    endif
9389 #  endif
9390 #endif
9391
9392 #ifdef __cplusplus
9393 extern "C" void exit (int);
9394 #endif
9395
9396 void fnord() { int i=42;}
9397 int main ()
9398 {
9399   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9400   int status = $lt_dlunknown;
9401
9402   if (self)
9403     {
9404       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9405       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9406       /* dlclose (self); */
9407     }
9408
9409     exit (status);
9410 }
9411 EOF
9412   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413   (eval $ac_link) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9417     (./conftest; exit; ) 2>/dev/null
9418     lt_status=$?
9419     case x$lt_status in
9420       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9421       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9422       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9423     esac
9424   else :
9425     # compilation failed
9426     lt_cv_dlopen_self=no
9427   fi
9428 fi
9429 rm -fr conftest*
9430
9431
9432 fi
9433 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9434 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9435
9436     if test "x$lt_cv_dlopen_self" = xyes; then
9437       LDFLAGS="$LDFLAGS $link_static_flag"
9438       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9439 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9440 if test "${lt_cv_dlopen_self_static+set}" = set; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443           if test "$cross_compiling" = yes; then :
9444   lt_cv_dlopen_self_static=cross
9445 else
9446   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9447   lt_status=$lt_dlunknown
9448   cat > conftest.$ac_ext <<EOF
9449 #line 9449 "configure"
9450 #include "confdefs.h"
9451
9452 #if HAVE_DLFCN_H
9453 #include <dlfcn.h>
9454 #endif
9455
9456 #include <stdio.h>
9457
9458 #ifdef RTLD_GLOBAL
9459 #  define LT_DLGLOBAL           RTLD_GLOBAL
9460 #else
9461 #  ifdef DL_GLOBAL
9462 #    define LT_DLGLOBAL         DL_GLOBAL
9463 #  else
9464 #    define LT_DLGLOBAL         0
9465 #  endif
9466 #endif
9467
9468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9469    find out it does not work in some platform. */
9470 #ifndef LT_DLLAZY_OR_NOW
9471 #  ifdef RTLD_LAZY
9472 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9473 #  else
9474 #    ifdef DL_LAZY
9475 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9476 #    else
9477 #      ifdef RTLD_NOW
9478 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9479 #      else
9480 #        ifdef DL_NOW
9481 #          define LT_DLLAZY_OR_NOW      DL_NOW
9482 #        else
9483 #          define LT_DLLAZY_OR_NOW      0
9484 #        endif
9485 #      endif
9486 #    endif
9487 #  endif
9488 #endif
9489
9490 #ifdef __cplusplus
9491 extern "C" void exit (int);
9492 #endif
9493
9494 void fnord() { int i=42;}
9495 int main ()
9496 {
9497   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9498   int status = $lt_dlunknown;
9499
9500   if (self)
9501     {
9502       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9503       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9504       /* dlclose (self); */
9505     }
9506
9507     exit (status);
9508 }
9509 EOF
9510   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511   (eval $ac_link) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9515     (./conftest; exit; ) 2>/dev/null
9516     lt_status=$?
9517     case x$lt_status in
9518       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9519       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9520       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9521     esac
9522   else :
9523     # compilation failed
9524     lt_cv_dlopen_self_static=no
9525   fi
9526 fi
9527 rm -fr conftest*
9528
9529
9530 fi
9531 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9532 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9533     fi
9534
9535     CPPFLAGS="$save_CPPFLAGS"
9536     LDFLAGS="$save_LDFLAGS"
9537     LIBS="$save_LIBS"
9538     ;;
9539   esac
9540
9541   case $lt_cv_dlopen_self in
9542   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9543   *) enable_dlopen_self=unknown ;;
9544   esac
9545
9546   case $lt_cv_dlopen_self_static in
9547   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9548   *) enable_dlopen_self_static=unknown ;;
9549   esac
9550 fi
9551
9552
9553 # Report which librarie types wil actually be built
9554 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9555 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9556 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9557 echo "${ECHO_T}$can_build_shared" >&6
9558
9559 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9560 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9561 test "$can_build_shared" = "no" && enable_shared=no
9562
9563 # On AIX, shared libraries and static libraries use the same namespace, and
9564 # are all built from PIC.
9565 case "$host_os" in
9566 aix3*)
9567   test "$enable_shared" = yes && enable_static=no
9568   if test -n "$RANLIB"; then
9569     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9570     postinstall_cmds='$RANLIB $lib'
9571   fi
9572   ;;
9573
9574 aix4* | aix5*)
9575   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9576     test "$enable_shared" = yes && enable_static=no
9577   fi
9578   ;;
9579   darwin* | rhapsody*)
9580   if test "$GCC" = yes; then
9581     archive_cmds_need_lc=no
9582     case "$host_os" in
9583     rhapsody* | darwin1.[012])
9584       allow_undefined_flag='-undefined suppress'
9585       ;;
9586     *) # Darwin 1.3 on
9587       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9588         allow_undefined_flag='-flat_namespace -undefined suppress'
9589       else
9590         case ${MACOSX_DEPLOYMENT_TARGET} in
9591           10.[012])
9592             allow_undefined_flag='-flat_namespace -undefined suppress'
9593             ;;
9594           10.*)
9595             allow_undefined_flag='-undefined dynamic_lookup'
9596             ;;
9597         esac
9598       fi
9599       ;;
9600     esac
9601     output_verbose_link_cmd='echo'
9602     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9603     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9604     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9605     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}'
9606     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}'
9607     hardcode_direct=no
9608     hardcode_automatic=yes
9609     hardcode_shlibpath_var=unsupported
9610     whole_archive_flag_spec='-all_load $convenience'
9611     link_all_deplibs=yes
9612   else
9613     ld_shlibs=no
9614   fi
9615     ;;
9616 esac
9617 echo "$as_me:$LINENO: result: $enable_shared" >&5
9618 echo "${ECHO_T}$enable_shared" >&6
9619
9620 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9621 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9622 # Make sure either enable_shared or enable_static is yes.
9623 test "$enable_shared" = yes || enable_static=yes
9624 echo "$as_me:$LINENO: result: $enable_static" >&5
9625 echo "${ECHO_T}$enable_static" >&6
9626
9627 # The else clause should only fire when bootstrapping the
9628 # libtool distribution, otherwise you forgot to ship ltmain.sh
9629 # with your package, and you will get complaints that there are
9630 # no rules to generate ltmain.sh.
9631 if test -f "$ltmain"; then
9632   # See if we are running on zsh, and set the options which allow our commands through
9633   # without removal of \ escapes.
9634   if test -n "${ZSH_VERSION+set}" ; then
9635     setopt NO_GLOB_SUBST
9636   fi
9637   # Now quote all the things that may contain metacharacters while being
9638   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9639   # variables and quote the copies for generation of the libtool script.
9640   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9641     SED SHELL STRIP \
9642     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9643     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9644     deplibs_check_method reload_flag reload_cmds need_locks \
9645     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9646     lt_cv_sys_global_symbol_to_c_name_address \
9647     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9648     old_postinstall_cmds old_postuninstall_cmds \
9649     compiler \
9650     CC \
9651     LD \
9652     lt_prog_compiler_wl \
9653     lt_prog_compiler_pic \
9654     lt_prog_compiler_static \
9655     lt_prog_compiler_no_builtin_flag \
9656     export_dynamic_flag_spec \
9657     thread_safe_flag_spec \
9658     whole_archive_flag_spec \
9659     enable_shared_with_static_runtimes \
9660     old_archive_cmds \
9661     old_archive_from_new_cmds \
9662     predep_objects \
9663     postdep_objects \
9664     predeps \
9665     postdeps \
9666     compiler_lib_search_path \
9667     archive_cmds \
9668     archive_expsym_cmds \
9669     postinstall_cmds \
9670     postuninstall_cmds \
9671     old_archive_from_expsyms_cmds \
9672     allow_undefined_flag \
9673     no_undefined_flag \
9674     export_symbols_cmds \
9675     hardcode_libdir_flag_spec \
9676     hardcode_libdir_flag_spec_ld \
9677     hardcode_libdir_separator \
9678     hardcode_automatic \
9679     module_cmds \
9680     module_expsym_cmds \
9681     lt_cv_prog_compiler_c_o \
9682     exclude_expsyms \
9683     include_expsyms; do
9684
9685     case $var in
9686     old_archive_cmds | \
9687     old_archive_from_new_cmds | \
9688     archive_cmds | \
9689     archive_expsym_cmds | \
9690     module_cmds | \
9691     module_expsym_cmds | \
9692     old_archive_from_expsyms_cmds | \
9693     export_symbols_cmds | \
9694     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9695     postinstall_cmds | postuninstall_cmds | \
9696     old_postinstall_cmds | old_postuninstall_cmds | \
9697     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9698       # Double-quote double-evaled strings.
9699       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9700       ;;
9701     *)
9702       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9703       ;;
9704     esac
9705   done
9706
9707   case $lt_echo in
9708   *'\$0 --fallback-echo"')
9709     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9710     ;;
9711   esac
9712
9713 cfgfile="${ofile}T"
9714   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9715   $rm -f "$cfgfile"
9716   { echo "$as_me:$LINENO: creating $ofile" >&5
9717 echo "$as_me: creating $ofile" >&6;}
9718
9719   cat <<__EOF__ >> "$cfgfile"
9720 #! $SHELL
9721
9722 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9723 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9724 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9725 #
9726 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9727 # Free Software Foundation, Inc.
9728 #
9729 # This file is part of GNU Libtool:
9730 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9731 #
9732 # This program is free software; you can redistribute it and/or modify
9733 # it under the terms of the GNU General Public License as published by
9734 # the Free Software Foundation; either version 2 of the License, or
9735 # (at your option) any later version.
9736 #
9737 # This program is distributed in the hope that it will be useful, but
9738 # WITHOUT ANY WARRANTY; without even the implied warranty of
9739 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9740 # General Public License for more details.
9741 #
9742 # You should have received a copy of the GNU General Public License
9743 # along with this program; if not, write to the Free Software
9744 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9745 #
9746 # As a special exception to the GNU General Public License, if you
9747 # distribute this file as part of a program that contains a
9748 # configuration script generated by Autoconf, you may include it under
9749 # the same distribution terms that you use for the rest of that program.
9750
9751 # A sed program that does not truncate output.
9752 SED=$lt_SED
9753
9754 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9755 Xsed="$SED -e s/^X//"
9756
9757 # The HP-UX ksh and POSIX shell print the target directory to stdout
9758 # if CDPATH is set.
9759 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9760
9761 # The names of the tagged configurations supported by this script.
9762 available_tags=
9763
9764 # ### BEGIN LIBTOOL CONFIG
9765
9766 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9767
9768 # Shell to use when invoking shell scripts.
9769 SHELL=$lt_SHELL
9770
9771 # Whether or not to build shared libraries.
9772 build_libtool_libs=$enable_shared
9773
9774 # Whether or not to build static libraries.
9775 build_old_libs=$enable_static
9776
9777 # Whether or not to add -lc for building shared libraries.
9778 build_libtool_need_lc=$archive_cmds_need_lc
9779
9780 # Whether or not to disallow shared libs when runtime libs are static
9781 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9782
9783 # Whether or not to optimize for fast installation.
9784 fast_install=$enable_fast_install
9785
9786 # The host system.
9787 host_alias=$host_alias
9788 host=$host
9789
9790 # An echo program that does not interpret backslashes.
9791 echo=$lt_echo
9792
9793 # The archiver.
9794 AR=$lt_AR
9795 AR_FLAGS=$lt_AR_FLAGS
9796
9797 # A C compiler.
9798 LTCC=$lt_LTCC
9799
9800 # A language-specific compiler.
9801 CC=$lt_compiler
9802
9803 # Is the compiler the GNU C compiler?
9804 with_gcc=$GCC
9805
9806 # An ERE matcher.
9807 EGREP=$lt_EGREP
9808
9809 # The linker used to build libraries.
9810 LD=$lt_LD
9811
9812 # Whether we need hard or soft links.
9813 LN_S=$lt_LN_S
9814
9815 # A BSD-compatible nm program.
9816 NM=$lt_NM
9817
9818 # A symbol stripping program
9819 STRIP=$lt_STRIP
9820
9821 # Used to examine libraries when file_magic_cmd begins "file"
9822 MAGIC_CMD=$MAGIC_CMD
9823
9824 # Used on cygwin: DLL creation program.
9825 DLLTOOL="$DLLTOOL"
9826
9827 # Used on cygwin: object dumper.
9828 OBJDUMP="$OBJDUMP"
9829
9830 # Used on cygwin: assembler.
9831 AS="$AS"
9832
9833 # The name of the directory that contains temporary libtool files.
9834 objdir=$objdir
9835
9836 # How to create reloadable object files.
9837 reload_flag=$lt_reload_flag
9838 reload_cmds=$lt_reload_cmds
9839
9840 # How to pass a linker flag through the compiler.
9841 wl=$lt_lt_prog_compiler_wl
9842
9843 # Object file suffix (normally "o").
9844 objext="$ac_objext"
9845
9846 # Old archive suffix (normally "a").
9847 libext="$libext"
9848
9849 # Shared library suffix (normally ".so").
9850 shrext_cmds='$shrext_cmds'
9851
9852 # Executable file suffix (normally "").
9853 exeext="$exeext"
9854
9855 # Additional compiler flags for building library objects.
9856 pic_flag=$lt_lt_prog_compiler_pic
9857 pic_mode=$pic_mode
9858
9859 # What is the maximum length of a command?
9860 max_cmd_len=$lt_cv_sys_max_cmd_len
9861
9862 # Does compiler simultaneously support -c and -o options?
9863 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9864
9865 # Must we lock files when doing compilation ?
9866 need_locks=$lt_need_locks
9867
9868 # Do we need the lib prefix for modules?
9869 need_lib_prefix=$need_lib_prefix
9870
9871 # Do we need a version for libraries?
9872 need_version=$need_version
9873
9874 # Whether dlopen is supported.
9875 dlopen_support=$enable_dlopen
9876
9877 # Whether dlopen of programs is supported.
9878 dlopen_self=$enable_dlopen_self
9879
9880 # Whether dlopen of statically linked programs is supported.
9881 dlopen_self_static=$enable_dlopen_self_static
9882
9883 # Compiler flag to prevent dynamic linking.
9884 link_static_flag=$lt_lt_prog_compiler_static
9885
9886 # Compiler flag to turn off builtin functions.
9887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9888
9889 # Compiler flag to allow reflexive dlopens.
9890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9891
9892 # Compiler flag to generate shared objects directly from archives.
9893 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9894
9895 # Compiler flag to generate thread-safe objects.
9896 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9897
9898 # Library versioning type.
9899 version_type=$version_type
9900
9901 # Format of library name prefix.
9902 libname_spec=$lt_libname_spec
9903
9904 # List of archive names.  First name is the real one, the rest are links.
9905 # The last name is the one that the linker finds with -lNAME.
9906 library_names_spec=$lt_library_names_spec
9907
9908 # The coded name of the library, if different from the real name.
9909 soname_spec=$lt_soname_spec
9910
9911 # Commands used to build and install an old-style archive.
9912 RANLIB=$lt_RANLIB
9913 old_archive_cmds=$lt_old_archive_cmds
9914 old_postinstall_cmds=$lt_old_postinstall_cmds
9915 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9916
9917 # Create an old-style archive from a shared archive.
9918 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9919
9920 # Create a temporary old-style archive to link instead of a shared archive.
9921 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9922
9923 # Commands used to build and install a shared archive.
9924 archive_cmds=$lt_archive_cmds
9925 archive_expsym_cmds=$lt_archive_expsym_cmds
9926 postinstall_cmds=$lt_postinstall_cmds
9927 postuninstall_cmds=$lt_postuninstall_cmds
9928
9929 # Commands used to build a loadable module (assumed same as above if empty)
9930 module_cmds=$lt_module_cmds
9931 module_expsym_cmds=$lt_module_expsym_cmds
9932
9933 # Commands to strip libraries.
9934 old_striplib=$lt_old_striplib
9935 striplib=$lt_striplib
9936
9937 # Dependencies to place before the objects being linked to create a
9938 # shared library.
9939 predep_objects=$lt_predep_objects
9940
9941 # Dependencies to place after the objects being linked to create a
9942 # shared library.
9943 postdep_objects=$lt_postdep_objects
9944
9945 # Dependencies to place before the objects being linked to create a
9946 # shared library.
9947 predeps=$lt_predeps
9948
9949 # Dependencies to place after the objects being linked to create a
9950 # shared library.
9951 postdeps=$lt_postdeps
9952
9953 # The library search path used internally by the compiler when linking
9954 # a shared library.
9955 compiler_lib_search_path=$lt_compiler_lib_search_path
9956
9957 # Method to check whether dependent libraries are shared objects.
9958 deplibs_check_method=$lt_deplibs_check_method
9959
9960 # Command to use when deplibs_check_method == file_magic.
9961 file_magic_cmd=$lt_file_magic_cmd
9962
9963 # Flag that allows shared libraries with undefined symbols to be built.
9964 allow_undefined_flag=$lt_allow_undefined_flag
9965
9966 # Flag that forces no undefined symbols.
9967 no_undefined_flag=$lt_no_undefined_flag
9968
9969 # Commands used to finish a libtool library installation in a directory.
9970 finish_cmds=$lt_finish_cmds
9971
9972 # Same as above, but a single script fragment to be evaled but not shown.
9973 finish_eval=$lt_finish_eval
9974
9975 # Take the output of nm and produce a listing of raw symbols and C names.
9976 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9977
9978 # Transform the output of nm in a proper C declaration
9979 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9980
9981 # Transform the output of nm in a C name address pair
9982 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9983
9984 # This is the shared library runtime path variable.
9985 runpath_var=$runpath_var
9986
9987 # This is the shared library path variable.
9988 shlibpath_var=$shlibpath_var
9989
9990 # Is shlibpath searched before the hard-coded library search path?
9991 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9992
9993 # How to hardcode a shared library path into an executable.
9994 hardcode_action=$hardcode_action
9995
9996 # Whether we should hardcode library paths into libraries.
9997 hardcode_into_libs=$hardcode_into_libs
9998
9999 # Flag to hardcode \$libdir into a binary during linking.
10000 # This must work even if \$libdir does not exist.
10001 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10002
10003 # If ld is used when linking, flag to hardcode \$libdir into
10004 # a binary during linking. This must work even if \$libdir does
10005 # not exist.
10006 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10007
10008 # Whether we need a single -rpath flag with a separated argument.
10009 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10010
10011 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10012 # resulting binary.
10013 hardcode_direct=$hardcode_direct
10014
10015 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10016 # resulting binary.
10017 hardcode_minus_L=$hardcode_minus_L
10018
10019 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10020 # the resulting binary.
10021 hardcode_shlibpath_var=$hardcode_shlibpath_var
10022
10023 # Set to yes if building a shared library automatically hardcodes DIR into the library
10024 # and all subsequent libraries and executables linked against it.
10025 hardcode_automatic=$hardcode_automatic
10026
10027 # Variables whose values should be saved in libtool wrapper scripts and
10028 # restored at relink time.
10029 variables_saved_for_relink="$variables_saved_for_relink"
10030
10031 # Whether libtool must link a program against all its dependency libraries.
10032 link_all_deplibs=$link_all_deplibs
10033
10034 # Compile-time system search path for libraries
10035 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10036
10037 # Run-time system search path for libraries
10038 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10039
10040 # Fix the shell variable \$srcfile for the compiler.
10041 fix_srcfile_path="$fix_srcfile_path"
10042
10043 # Set to yes if exported symbols are required.
10044 always_export_symbols=$always_export_symbols
10045
10046 # The commands to list exported symbols.
10047 export_symbols_cmds=$lt_export_symbols_cmds
10048
10049 # The commands to extract the exported symbol list from a shared archive.
10050 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10051
10052 # Symbols that should not be listed in the preloaded symbols.
10053 exclude_expsyms=$lt_exclude_expsyms
10054
10055 # Symbols that must always be exported.
10056 include_expsyms=$lt_include_expsyms
10057
10058 # ### END LIBTOOL CONFIG
10059
10060 __EOF__
10061
10062
10063   case $host_os in
10064   aix3*)
10065     cat <<\EOF >> "$cfgfile"
10066
10067 # AIX sometimes has problems with the GCC collect2 program.  For some
10068 # reason, if we set the COLLECT_NAMES environment variable, the problems
10069 # vanish in a puff of smoke.
10070 if test "X${COLLECT_NAMES+set}" != Xset; then
10071   COLLECT_NAMES=
10072   export COLLECT_NAMES
10073 fi
10074 EOF
10075     ;;
10076   esac
10077
10078   # We use sed instead of cat because bash on DJGPP gets confused if
10079   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10080   # text mode, it properly converts lines to CR/LF.  This bash problem
10081   # is reportedly fixed, but why not run on old versions too?
10082   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10083
10084   mv -f "$cfgfile" "$ofile" || \
10085     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10086   chmod +x "$ofile"
10087
10088 else
10089   # If there is no Makefile yet, we rely on a make rule to execute
10090   # `config.status --recheck' to rerun these tests and create the
10091   # libtool script then.
10092   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10093   if test -f "$ltmain_in"; then
10094     test -f Makefile && make "$ltmain"
10095   fi
10096 fi
10097
10098
10099 ac_ext=c
10100 ac_cpp='$CPP $CPPFLAGS'
10101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10104
10105 CC="$lt_save_CC"
10106
10107
10108 # Check whether --with-tags or --without-tags was given.
10109 if test "${with_tags+set}" = set; then
10110   withval="$with_tags"
10111   tagnames="$withval"
10112 fi;
10113
10114 if test -f "$ltmain" && test -n "$tagnames"; then
10115   if test ! -f "${ofile}"; then
10116     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10117 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10118   fi
10119
10120   if test -z "$LTCC"; then
10121     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10122     if test -z "$LTCC"; then
10123       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10124 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10125     else
10126       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10127 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10128     fi
10129   fi
10130
10131   # Extract list of available tagged configurations in $ofile.
10132   # Note that this assumes the entire list is on one line.
10133   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10134
10135   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10136   for tagname in $tagnames; do
10137     IFS="$lt_save_ifs"
10138     # Check whether tagname contains only valid characters
10139     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10140     "") ;;
10141     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10142 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10143    { (exit 1); exit 1; }; }
10144         ;;
10145     esac
10146
10147     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10148     then
10149       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10150 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10151    { (exit 1); exit 1; }; }
10152     fi
10153
10154     # Update the list of available tags.
10155     if test -n "$tagname"; then
10156       echo appending configuration tag \"$tagname\" to $ofile
10157
10158       case $tagname in
10159       CXX)
10160         if test -n "$CXX" && test "X$CXX" != "Xno"; then
10161           ac_ext=cc
10162 ac_cpp='$CXXCPP $CPPFLAGS'
10163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10166
10167
10168
10169
10170 archive_cmds_need_lc_CXX=no
10171 allow_undefined_flag_CXX=
10172 always_export_symbols_CXX=no
10173 archive_expsym_cmds_CXX=
10174 export_dynamic_flag_spec_CXX=
10175 hardcode_direct_CXX=no
10176 hardcode_libdir_flag_spec_CXX=
10177 hardcode_libdir_flag_spec_ld_CXX=
10178 hardcode_libdir_separator_CXX=
10179 hardcode_minus_L_CXX=no
10180 hardcode_automatic_CXX=no
10181 module_cmds_CXX=
10182 module_expsym_cmds_CXX=
10183 link_all_deplibs_CXX=unknown
10184 old_archive_cmds_CXX=$old_archive_cmds
10185 no_undefined_flag_CXX=
10186 whole_archive_flag_spec_CXX=
10187 enable_shared_with_static_runtimes_CXX=no
10188
10189 # Dependencies to place before and after the object being linked:
10190 predep_objects_CXX=
10191 postdep_objects_CXX=
10192 predeps_CXX=
10193 postdeps_CXX=
10194 compiler_lib_search_path_CXX=
10195
10196 # Source file extension for C++ test sources.
10197 ac_ext=cc
10198
10199 # Object file extension for compiled C++ test sources.
10200 objext=o
10201 objext_CXX=$objext
10202
10203 # Code to be used in simple compile tests
10204 lt_simple_compile_test_code="int some_variable = 0;\n"
10205
10206 # Code to be used in simple link tests
10207 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10208
10209 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10210
10211 # If no C compiler was specified, use CC.
10212 LTCC=${LTCC-"$CC"}
10213
10214 # Allow CC to be a program name with arguments.
10215 compiler=$CC
10216
10217
10218 # Allow CC to be a program name with arguments.
10219 lt_save_CC=$CC
10220 lt_save_LD=$LD
10221 lt_save_GCC=$GCC
10222 GCC=$GXX
10223 lt_save_with_gnu_ld=$with_gnu_ld
10224 lt_save_path_LD=$lt_cv_path_LD
10225 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10226   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10227 else
10228   unset lt_cv_prog_gnu_ld
10229 fi
10230 if test -n "${lt_cv_path_LDCXX+set}"; then
10231   lt_cv_path_LD=$lt_cv_path_LDCXX
10232 else
10233   unset lt_cv_path_LD
10234 fi
10235 test -z "${LDCXX+set}" || LD=$LDCXX
10236 CC=${CXX-"c++"}
10237 compiler=$CC
10238 compiler_CXX=$CC
10239 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10240
10241 # We don't want -fno-exception wen compiling C++ code, so set the
10242 # no_builtin_flag separately
10243 if test "$GXX" = yes; then
10244   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10245 else
10246   lt_prog_compiler_no_builtin_flag_CXX=
10247 fi
10248
10249 if test "$GXX" = yes; then
10250   # Set up default GNU C++ configuration
10251
10252
10253 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10254 if test "${with_gnu_ld+set}" = set; then
10255   withval="$with_gnu_ld"
10256   test "$withval" = no || with_gnu_ld=yes
10257 else
10258   with_gnu_ld=no
10259 fi;
10260 ac_prog=ld
10261 if test "$GCC" = yes; then
10262   # Check if gcc -print-prog-name=ld gives a path.
10263   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10264 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10265   case $host in
10266   *-*-mingw*)
10267     # gcc leaves a trailing carriage return which upsets mingw
10268     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10269   *)
10270     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10271   esac
10272   case $ac_prog in
10273     # Accept absolute paths.
10274     [\\/]* | ?:[\\/]*)
10275       re_direlt='/[^/][^/]*/\.\./'
10276       # Canonicalize the pathname of ld
10277       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10278       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10279         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10280       done
10281       test -z "$LD" && LD="$ac_prog"
10282       ;;
10283   "")
10284     # If it fails, then pretend we aren't using GCC.
10285     ac_prog=ld
10286     ;;
10287   *)
10288     # If it is relative, then search for the first ld in PATH.
10289     with_gnu_ld=unknown
10290     ;;
10291   esac
10292 elif test "$with_gnu_ld" = yes; then
10293   echo "$as_me:$LINENO: checking for GNU ld" >&5
10294 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10295 else
10296   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10297 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10298 fi
10299 if test "${lt_cv_path_LD+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   if test -z "$LD"; then
10303   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10304   for ac_dir in $PATH; do
10305     IFS="$lt_save_ifs"
10306     test -z "$ac_dir" && ac_dir=.
10307     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10308       lt_cv_path_LD="$ac_dir/$ac_prog"
10309       # Check to see if the program is GNU ld.  I'd rather use --version,
10310       # but apparently some GNU ld's only accept -v.
10311       # Break only if it was the GNU/non-GNU ld that we prefer.
10312       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10313       *GNU* | *'with BFD'*)
10314         test "$with_gnu_ld" != no && break
10315         ;;
10316       *)
10317         test "$with_gnu_ld" != yes && break
10318         ;;
10319       esac
10320     fi
10321   done
10322   IFS="$lt_save_ifs"
10323 else
10324   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10325 fi
10326 fi
10327
10328 LD="$lt_cv_path_LD"
10329 if test -n "$LD"; then
10330   echo "$as_me:$LINENO: result: $LD" >&5
10331 echo "${ECHO_T}$LD" >&6
10332 else
10333   echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10335 fi
10336 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10337 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10338    { (exit 1); exit 1; }; }
10339 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10340 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10341 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10345 case `$LD -v 2>&1 </dev/null` in
10346 *GNU* | *'with BFD'*)
10347   lt_cv_prog_gnu_ld=yes
10348   ;;
10349 *)
10350   lt_cv_prog_gnu_ld=no
10351   ;;
10352 esac
10353 fi
10354 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10355 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10356 with_gnu_ld=$lt_cv_prog_gnu_ld
10357
10358
10359
10360   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10361   # archiving commands below assume that GNU ld is being used.
10362   if test "$with_gnu_ld" = yes; then
10363     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10364     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'
10365
10366     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10367     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10368
10369     # If archive_cmds runs LD, not CC, wlarc should be empty
10370     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10371     #     investigate it a little bit more. (MM)
10372     wlarc='${wl}'
10373
10374     # ancient GNU ld didn't support --whole-archive et. al.
10375     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10376         grep 'no-whole-archive' > /dev/null; then
10377       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10378     else
10379       whole_archive_flag_spec_CXX=
10380     fi
10381   else
10382     with_gnu_ld=no
10383     wlarc=
10384
10385     # A generic and very simple default shared library creation
10386     # command for GNU C++ for the case where it uses the native
10387     # linker, instead of GNU ld.  If possible, this setting should
10388     # overridden to take advantage of the native linker features on
10389     # the platform it is being used on.
10390     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10391   fi
10392
10393   # Commands to make compiler produce verbose output that lists
10394   # what "hidden" libraries, object files and flags are used when
10395   # linking a shared library.
10396   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10397
10398 else
10399   GXX=no
10400   with_gnu_ld=no
10401   wlarc=
10402 fi
10403
10404 # PORTME: fill in a description of your system's C++ link characteristics
10405 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10406 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10407 ld_shlibs_CXX=yes
10408 case $host_os in
10409   aix3*)
10410     # FIXME: insert proper C++ library support
10411     ld_shlibs_CXX=no
10412     ;;
10413   aix4* | aix5*)
10414     if test "$host_cpu" = ia64; then
10415       # On IA64, the linker does run time linking by default, so we don't
10416       # have to do anything special.
10417       aix_use_runtimelinking=no
10418       exp_sym_flag='-Bexport'
10419       no_entry_flag=""
10420     else
10421       aix_use_runtimelinking=no
10422
10423       # Test if we are trying to use run time linking or normal
10424       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10425       # need to do runtime linking.
10426       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10427         for ld_flag in $LDFLAGS; do
10428           case $ld_flag in
10429           *-brtl*)
10430             aix_use_runtimelinking=yes
10431             break
10432             ;;
10433           esac
10434         done
10435       esac
10436
10437       exp_sym_flag='-bexport'
10438       no_entry_flag='-bnoentry'
10439     fi
10440
10441     # When large executables or shared objects are built, AIX ld can
10442     # have problems creating the table of contents.  If linking a library
10443     # or program results in "error TOC overflow" add -mminimal-toc to
10444     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10445     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10446
10447     archive_cmds_CXX=''
10448     hardcode_direct_CXX=yes
10449     hardcode_libdir_separator_CXX=':'
10450     link_all_deplibs_CXX=yes
10451
10452     if test "$GXX" = yes; then
10453       case $host_os in aix4.012|aix4.012.*)
10454       # We only want to do this on AIX 4.2 and lower, the check
10455       # below for broken collect2 doesn't work under 4.3+
10456         collect2name=`${CC} -print-prog-name=collect2`
10457         if test -f "$collect2name" && \
10458            strings "$collect2name" | grep resolve_lib_name >/dev/null
10459         then
10460           # We have reworked collect2
10461           hardcode_direct_CXX=yes
10462         else
10463           # We have old collect2
10464           hardcode_direct_CXX=unsupported
10465           # It fails to find uninstalled libraries when the uninstalled
10466           # path is not listed in the libpath.  Setting hardcode_minus_L
10467           # to unsupported forces relinking
10468           hardcode_minus_L_CXX=yes
10469           hardcode_libdir_flag_spec_CXX='-L$libdir'
10470           hardcode_libdir_separator_CXX=
10471         fi
10472       esac
10473       shared_flag='-shared'
10474     else
10475       # not using gcc
10476       if test "$host_cpu" = ia64; then
10477         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10478         # chokes on -Wl,-G. The following line is correct:
10479         shared_flag='-G'
10480       else
10481         if test "$aix_use_runtimelinking" = yes; then
10482           shared_flag='${wl}-G'
10483         else
10484           shared_flag='${wl}-bM:SRE'
10485         fi
10486       fi
10487     fi
10488
10489     # It seems that -bexpall does not export symbols beginning with
10490     # underscore (_), so it is better to generate a list of symbols to export.
10491     always_export_symbols_CXX=yes
10492     if test "$aix_use_runtimelinking" = yes; then
10493       # Warning - without using the other runtime loading flags (-brtl),
10494       # -berok will link without error, but may produce a broken library.
10495       allow_undefined_flag_CXX='-berok'
10496       # Determine the default libpath from the value encoded in an empty executable.
10497       cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h.  */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h.  */
10503
10504 int
10505 main ()
10506 {
10507
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514   (eval $ac_link) 2>conftest.er1
10515   ac_status=$?
10516   grep -v '^ *+' conftest.er1 >conftest.err
10517   rm -f conftest.er1
10518   cat conftest.err >&5
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); } &&
10521          { ac_try='test -z "$ac_cxx_werror_flag"
10522                          || test ! -s conftest.err'
10523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524   (eval $ac_try) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; } &&
10528          { ac_try='test -s conftest$ac_exeext'
10529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530   (eval $ac_try) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; }; then
10534
10535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10536 }'`
10537 # Check for a 64-bit object if we didn't find anything.
10538 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; }
10539 }'`; fi
10540 else
10541   echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10543
10544 fi
10545 rm -f conftest.err conftest.$ac_objext \
10546       conftest$ac_exeext conftest.$ac_ext
10547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10548
10549       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10550
10551       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"
10552      else
10553       if test "$host_cpu" = ia64; then
10554         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10555         allow_undefined_flag_CXX="-z nodefs"
10556         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"
10557       else
10558         # Determine the default libpath from the value encoded in an empty executable.
10559         cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h.  */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h.  */
10565
10566 int
10567 main ()
10568 {
10569
10570   ;
10571   return 0;
10572 }
10573 _ACEOF
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576   (eval $ac_link) 2>conftest.er1
10577   ac_status=$?
10578   grep -v '^ *+' conftest.er1 >conftest.err
10579   rm -f conftest.er1
10580   cat conftest.err >&5
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); } &&
10583          { ac_try='test -z "$ac_cxx_werror_flag"
10584                          || test ! -s conftest.err'
10585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586   (eval $ac_try) 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; } &&
10590          { ac_try='test -s conftest$ac_exeext'
10591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592   (eval $ac_try) 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); }; }; then
10596
10597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10598 }'`
10599 # Check for a 64-bit object if we didn't find anything.
10600 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; }
10601 }'`; fi
10602 else
10603   echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606 fi
10607 rm -f conftest.err conftest.$ac_objext \
10608       conftest$ac_exeext conftest.$ac_ext
10609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10610
10611         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10612         # Warning - without using the other run time loading flags,
10613         # -berok will link without error, but may produce a broken library.
10614         no_undefined_flag_CXX=' ${wl}-bernotok'
10615         allow_undefined_flag_CXX=' ${wl}-berok'
10616         # -bexpall does not export symbols beginning with underscore (_)
10617         always_export_symbols_CXX=yes
10618         # Exported symbols can be pulled into shared objects from archives
10619         whole_archive_flag_spec_CXX=' '
10620         archive_cmds_need_lc_CXX=yes
10621         # This is similar to how AIX traditionally builds it's shared libraries.
10622         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'
10623       fi
10624     fi
10625     ;;
10626   chorus*)
10627     case $cc_basename in
10628       *)
10629         # FIXME: insert proper C++ library support
10630         ld_shlibs_CXX=no
10631         ;;
10632     esac
10633     ;;
10634
10635   cygwin* | mingw* | pw32*)
10636     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10637     # as there is no search path for DLLs.
10638     hardcode_libdir_flag_spec_CXX='-L$libdir'
10639     allow_undefined_flag_CXX=unsupported
10640     always_export_symbols_CXX=no
10641     enable_shared_with_static_runtimes_CXX=yes
10642
10643     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10644       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'
10645       # If the export-symbols file already is a .def file (1st line
10646       # is EXPORTS), use it as is; otherwise, prepend...
10647       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10648         cp $export_symbols $output_objdir/$soname.def;
10649       else
10650         echo EXPORTS > $output_objdir/$soname.def;
10651         cat $export_symbols >> $output_objdir/$soname.def;
10652       fi~
10653       $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'
10654     else
10655       ld_shlibs_CXX=no
10656     fi
10657   ;;
10658
10659   darwin* | rhapsody*)
10660   if test "$GXX" = yes; then
10661     archive_cmds_need_lc_CXX=no
10662     case "$host_os" in
10663     rhapsody* | darwin1.[012])
10664       allow_undefined_flag_CXX='-undefined suppress'
10665       ;;
10666     *) # Darwin 1.3 on
10667       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10668         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10669       else
10670         case ${MACOSX_DEPLOYMENT_TARGET} in
10671           10.[012])
10672             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10673             ;;
10674           10.*)
10675             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10676             ;;
10677         esac
10678       fi
10679       ;;
10680     esac
10681     lt_int_apple_cc_single_mod=no
10682     output_verbose_link_cmd='echo'
10683     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10684       lt_int_apple_cc_single_mod=yes
10685     fi
10686     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10687       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10688     else
10689       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10690     fi
10691     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10692
10693     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10694     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10695       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}'
10696     else
10697       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10698     fi
10699     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}'
10700     hardcode_direct_CXX=no
10701     hardcode_automatic_CXX=yes
10702     hardcode_shlibpath_var_CXX=unsupported
10703     whole_archive_flag_spec_CXX='-all_load $convenience'
10704     link_all_deplibs_CXX=yes
10705   else
10706     ld_shlibs_CXX=no
10707   fi
10708     ;;
10709
10710   dgux*)
10711     case $cc_basename in
10712       ec++)
10713         # FIXME: insert proper C++ library support
10714         ld_shlibs_CXX=no
10715         ;;
10716       ghcx)
10717         # Green Hills C++ Compiler
10718         # FIXME: insert proper C++ library support
10719         ld_shlibs_CXX=no
10720         ;;
10721       *)
10722         # FIXME: insert proper C++ library support
10723         ld_shlibs_CXX=no
10724         ;;
10725     esac
10726     ;;
10727   freebsd12*)
10728     # C++ shared libraries reported to be fairly broken before switch to ELF
10729     ld_shlibs_CXX=no
10730     ;;
10731   freebsd-elf*)
10732     archive_cmds_need_lc_CXX=no
10733     ;;
10734   freebsd* | kfreebsd*-gnu)
10735     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10736     # conventions
10737     ld_shlibs_CXX=yes
10738     ;;
10739   gnu*)
10740     ;;
10741   hpux9*)
10742     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10743     hardcode_libdir_separator_CXX=:
10744     export_dynamic_flag_spec_CXX='${wl}-E'
10745     hardcode_direct_CXX=yes
10746     hardcode_minus_L_CXX=yes # Not in the search PATH,
10747                                 # but as the default
10748                                 # location of the library.
10749
10750     case $cc_basename in
10751     CC)
10752       # FIXME: insert proper C++ library support
10753       ld_shlibs_CXX=no
10754       ;;
10755     aCC)
10756       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'
10757       # Commands to make compiler produce verbose output that lists
10758       # what "hidden" libraries, object files and flags are used when
10759       # linking a shared library.
10760       #
10761       # There doesn't appear to be a way to prevent this compiler from
10762       # explicitly linking system object files so we need to strip them
10763       # from the output so that they don't get included in the library
10764       # dependencies.
10765       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'
10766       ;;
10767     *)
10768       if test "$GXX" = yes; then
10769         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'
10770       else
10771         # FIXME: insert proper C++ library support
10772         ld_shlibs_CXX=no
10773       fi
10774       ;;
10775     esac
10776     ;;
10777   hpux10*|hpux11*)
10778     if test $with_gnu_ld = no; then
10779       case "$host_cpu" in
10780       hppa*64*)
10781         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10782         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10783         hardcode_libdir_separator_CXX=:
10784         ;;
10785       ia64*)
10786         hardcode_libdir_flag_spec_CXX='-L$libdir'
10787         ;;
10788       *)
10789         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10790         hardcode_libdir_separator_CXX=:
10791         export_dynamic_flag_spec_CXX='${wl}-E'
10792         ;;
10793       esac
10794     fi
10795     case "$host_cpu" in
10796     hppa*64*)
10797       hardcode_direct_CXX=no
10798       hardcode_shlibpath_var_CXX=no
10799       ;;
10800     ia64*)
10801       hardcode_direct_CXX=no
10802       hardcode_shlibpath_var_CXX=no
10803       hardcode_minus_L_CXX=yes # Not in the search PATH,
10804                                               # but as the default
10805                                               # location of the library.
10806       ;;
10807     *)
10808       hardcode_direct_CXX=yes
10809       hardcode_minus_L_CXX=yes # Not in the search PATH,
10810                                               # but as the default
10811                                               # location of the library.
10812       ;;
10813     esac
10814
10815     case $cc_basename in
10816       CC)
10817         # FIXME: insert proper C++ library support
10818         ld_shlibs_CXX=no
10819         ;;
10820       aCC)
10821         case "$host_cpu" in
10822         hppa*64*|ia64*)
10823           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10824           ;;
10825         *)
10826           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10827           ;;
10828         esac
10829         # Commands to make compiler produce verbose output that lists
10830         # what "hidden" libraries, object files and flags are used when
10831         # linking a shared library.
10832         #
10833         # There doesn't appear to be a way to prevent this compiler from
10834         # explicitly linking system object files so we need to strip them
10835         # from the output so that they don't get included in the library
10836         # dependencies.
10837         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'
10838         ;;
10839       *)
10840         if test "$GXX" = yes; then
10841           if test $with_gnu_ld = no; then
10842             case "$host_cpu" in
10843             ia64*|hppa*64*)
10844               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10845               ;;
10846             *)
10847               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'
10848               ;;
10849             esac
10850           fi
10851         else
10852           # FIXME: insert proper C++ library support
10853           ld_shlibs_CXX=no
10854         fi
10855         ;;
10856     esac
10857     ;;
10858   irix5* | irix6*)
10859     case $cc_basename in
10860       CC)
10861         # SGI C++
10862         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 ${objdir}/so_locations -o $lib'
10863
10864         # Archives containing C++ object files must be created using
10865         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10866         # necessary to make sure instantiated templates are included
10867         # in the archive.
10868         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10869         ;;
10870       *)
10871         if test "$GXX" = yes; then
10872           if test "$with_gnu_ld" = no; then
10873             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}${objdir}/so_locations -o $lib'
10874           else
10875             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'
10876           fi
10877         fi
10878         link_all_deplibs_CXX=yes
10879         ;;
10880     esac
10881     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10882     hardcode_libdir_separator_CXX=:
10883     ;;
10884   linux*)
10885     case $cc_basename in
10886       KCC)
10887         # Kuck and Associates, Inc. (KAI) C++ Compiler
10888
10889         # KCC will only create a shared library if the output file
10890         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10891         # to its proper name (with version) after linking.
10892         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'
10893         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'
10894         # Commands to make compiler produce verbose output that lists
10895         # what "hidden" libraries, object files and flags are used when
10896         # linking a shared library.
10897         #
10898         # There doesn't appear to be a way to prevent this compiler from
10899         # explicitly linking system object files so we need to strip them
10900         # from the output so that they don't get included in the library
10901         # dependencies.
10902         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'
10903
10904         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10905         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10906
10907         # Archives containing C++ object files must be created using
10908         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10909         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10910         ;;
10911       icpc)
10912         # Intel C++
10913         with_gnu_ld=yes
10914         archive_cmds_need_lc_CXX=no
10915         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10916         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'
10917         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10918         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10919         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10920         ;;
10921       cxx)
10922         # Compaq C++
10923         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10924         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'
10925
10926         runpath_var=LD_RUN_PATH
10927         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10928         hardcode_libdir_separator_CXX=:
10929
10930         # Commands to make compiler produce verbose output that lists
10931         # what "hidden" libraries, object files and flags are used when
10932         # linking a shared library.
10933         #
10934         # There doesn't appear to be a way to prevent this compiler from
10935         # explicitly linking system object files so we need to strip them
10936         # from the output so that they don't get included in the library
10937         # dependencies.
10938         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'
10939         ;;
10940     esac
10941     ;;
10942   lynxos*)
10943     # FIXME: insert proper C++ library support
10944     ld_shlibs_CXX=no
10945     ;;
10946   m88k*)
10947     # FIXME: insert proper C++ library support
10948     ld_shlibs_CXX=no
10949     ;;
10950   mvs*)
10951     case $cc_basename in
10952       cxx)
10953         # FIXME: insert proper C++ library support
10954         ld_shlibs_CXX=no
10955         ;;
10956       *)
10957         # FIXME: insert proper C++ library support
10958         ld_shlibs_CXX=no
10959         ;;
10960     esac
10961     ;;
10962   netbsd*)
10963     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10964       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10965       wlarc=
10966       hardcode_libdir_flag_spec_CXX='-R$libdir'
10967       hardcode_direct_CXX=yes
10968       hardcode_shlibpath_var_CXX=no
10969     fi
10970     # Workaround some broken pre-1.5 toolchains
10971     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10972     ;;
10973   osf3*)
10974     case $cc_basename in
10975       KCC)
10976         # Kuck and Associates, Inc. (KAI) C++ Compiler
10977
10978         # KCC will only create a shared library if the output file
10979         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10980         # to its proper name (with version) after linking.
10981         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'
10982
10983         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10984         hardcode_libdir_separator_CXX=:
10985
10986         # Archives containing C++ object files must be created using
10987         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10988         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10989
10990         ;;
10991       RCC)
10992         # Rational C++ 2.4.1
10993         # FIXME: insert proper C++ library support
10994         ld_shlibs_CXX=no
10995         ;;
10996       cxx)
10997         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10998         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 ${objdir}/so_locations -o $lib'
10999
11000         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11001         hardcode_libdir_separator_CXX=:
11002
11003         # Commands to make compiler produce verbose output that lists
11004         # what "hidden" libraries, object files and flags are used when
11005         # linking a shared library.
11006         #
11007         # There doesn't appear to be a way to prevent this compiler from
11008         # explicitly linking system object files so we need to strip them
11009         # from the output so that they don't get included in the library
11010         # dependencies.
11011         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'
11012         ;;
11013       *)
11014         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11015           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11016           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}${objdir}/so_locations -o $lib'
11017
11018           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11019           hardcode_libdir_separator_CXX=:
11020
11021           # Commands to make compiler produce verbose output that lists
11022           # what "hidden" libraries, object files and flags are used when
11023           # linking a shared library.
11024           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11025
11026         else
11027           # FIXME: insert proper C++ library support
11028           ld_shlibs_CXX=no
11029         fi
11030         ;;
11031     esac
11032     ;;
11033   osf4* | osf5*)
11034     case $cc_basename in
11035       KCC)
11036         # Kuck and Associates, Inc. (KAI) C++ Compiler
11037
11038         # KCC will only create a shared library if the output file
11039         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11040         # to its proper name (with version) after linking.
11041         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'
11042
11043         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11044         hardcode_libdir_separator_CXX=:
11045
11046         # Archives containing C++ object files must be created using
11047         # the KAI C++ compiler.
11048         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11049         ;;
11050       RCC)
11051         # Rational C++ 2.4.1
11052         # FIXME: insert proper C++ library support
11053         ld_shlibs_CXX=no
11054         ;;
11055       cxx)
11056         allow_undefined_flag_CXX=' -expect_unresolved \*'
11057         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 ${objdir}/so_locations -o $lib'
11058         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11059           echo "-hidden">> $lib.exp~
11060           $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 $objdir/so_locations -o $lib~
11061           $rm $lib.exp'
11062
11063         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11064         hardcode_libdir_separator_CXX=:
11065
11066         # Commands to make compiler produce verbose output that lists
11067         # what "hidden" libraries, object files and flags are used when
11068         # linking a shared library.
11069         #
11070         # There doesn't appear to be a way to prevent this compiler from
11071         # explicitly linking system object files so we need to strip them
11072         # from the output so that they don't get included in the library
11073         # dependencies.
11074         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'
11075         ;;
11076       *)
11077         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11078           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11079          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}${objdir}/so_locations -o $lib'
11080
11081           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11082           hardcode_libdir_separator_CXX=:
11083
11084           # Commands to make compiler produce verbose output that lists
11085           # what "hidden" libraries, object files and flags are used when
11086           # linking a shared library.
11087           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11088
11089         else
11090           # FIXME: insert proper C++ library support
11091           ld_shlibs_CXX=no
11092         fi
11093         ;;
11094     esac
11095     ;;
11096   psos*)
11097     # FIXME: insert proper C++ library support
11098     ld_shlibs_CXX=no
11099     ;;
11100   sco*)
11101     archive_cmds_need_lc_CXX=no
11102     case $cc_basename in
11103       CC)
11104         # FIXME: insert proper C++ library support
11105         ld_shlibs_CXX=no
11106         ;;
11107       *)
11108         # FIXME: insert proper C++ library support
11109         ld_shlibs_CXX=no
11110         ;;
11111     esac
11112     ;;
11113   sunos4*)
11114     case $cc_basename in
11115       CC)
11116         # Sun C++ 4.x
11117         # FIXME: insert proper C++ library support
11118         ld_shlibs_CXX=no
11119         ;;
11120       lcc)
11121         # Lucid
11122         # FIXME: insert proper C++ library support
11123         ld_shlibs_CXX=no
11124         ;;
11125       *)
11126         # FIXME: insert proper C++ library support
11127         ld_shlibs_CXX=no
11128         ;;
11129     esac
11130     ;;
11131   solaris*)
11132     case $cc_basename in
11133       CC)
11134         # Sun C++ 4.2, 5.x and Centerline C++
11135         no_undefined_flag_CXX=' -zdefs'
11136         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11137         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11138         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11139
11140         hardcode_libdir_flag_spec_CXX='-R$libdir'
11141         hardcode_shlibpath_var_CXX=no
11142         case $host_os in
11143           solaris2.0-5 | solaris2.0-5.*) ;;
11144           *)
11145             # The C++ compiler is used as linker so we must use $wl
11146             # flag to pass the commands to the underlying system
11147             # linker.
11148             # Supported since Solaris 2.6 (maybe 2.5.1?)
11149             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11150             ;;
11151         esac
11152         link_all_deplibs_CXX=yes
11153
11154         # Commands to make compiler produce verbose output that lists
11155         # what "hidden" libraries, object files and flags are used when
11156         # linking a shared library.
11157         #
11158         # There doesn't appear to be a way to prevent this compiler from
11159         # explicitly linking system object files so we need to strip them
11160         # from the output so that they don't get included in the library
11161         # dependencies.
11162         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11163
11164         # Archives containing C++ object files must be created using
11165         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11166         # necessary to make sure instantiated templates are included
11167         # in the archive.
11168         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11169         ;;
11170       gcx)
11171         # Green Hills C++ Compiler
11172         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11173
11174         # The C++ compiler must be used to create the archive.
11175         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11176         ;;
11177       *)
11178         # GNU C++ compiler with Solaris linker
11179         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11180           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11181           if $CC --version | grep -v '^2\.7' > /dev/null; then
11182             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11183             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11184                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11185
11186             # Commands to make compiler produce verbose output that lists
11187             # what "hidden" libraries, object files and flags are used when
11188             # linking a shared library.
11189             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11190           else
11191             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11192             # platform.
11193             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11194             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11195                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11196
11197             # Commands to make compiler produce verbose output that lists
11198             # what "hidden" libraries, object files and flags are used when
11199             # linking a shared library.
11200             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11201           fi
11202
11203           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11204         fi
11205         ;;
11206     esac
11207     ;;
11208   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11209     archive_cmds_need_lc_CXX=no
11210     ;;
11211   tandem*)
11212     case $cc_basename in
11213       NCC)
11214         # NonStop-UX NCC 3.20
11215         # FIXME: insert proper C++ library support
11216         ld_shlibs_CXX=no
11217         ;;
11218       *)
11219         # FIXME: insert proper C++ library support
11220         ld_shlibs_CXX=no
11221         ;;
11222     esac
11223     ;;
11224   vxworks*)
11225     # FIXME: insert proper C++ library support
11226     ld_shlibs_CXX=no
11227     ;;
11228   *)
11229     # FIXME: insert proper C++ library support
11230     ld_shlibs_CXX=no
11231     ;;
11232 esac
11233 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11234 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11235 test "$ld_shlibs_CXX" = no && can_build_shared=no
11236
11237 GCC_CXX="$GXX"
11238 LD_CXX="$LD"
11239
11240
11241 cat > conftest.$ac_ext <<EOF
11242 class Foo
11243 {
11244 public:
11245   Foo (void) { a = 0; }
11246 private:
11247   int a;
11248 };
11249 EOF
11250
11251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11252   (eval $ac_compile) 2>&5
11253   ac_status=$?
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); }; then
11256   # Parse the compiler output and extract the necessary
11257   # objects, libraries and library flags.
11258
11259   # Sentinel used to keep track of whether or not we are before
11260   # the conftest object file.
11261   pre_test_object_deps_done=no
11262
11263   # The `*' in the case matches for architectures that use `case' in
11264   # $output_verbose_cmd can trigger glob expansion during the loop
11265   # eval without this substitution.
11266   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11267
11268   for p in `eval $output_verbose_link_cmd`; do
11269     case $p in
11270
11271     -L* | -R* | -l*)
11272        # Some compilers place space between "-{L,R}" and the path.
11273        # Remove the space.
11274        if test $p = "-L" \
11275           || test $p = "-R"; then
11276          prev=$p
11277          continue
11278        else
11279          prev=
11280        fi
11281
11282        if test "$pre_test_object_deps_done" = no; then
11283          case $p in
11284          -L* | -R*)
11285            # Internal compiler library paths should come after those
11286            # provided the user.  The postdeps already come after the
11287            # user supplied libs so there is no need to process them.
11288            if test -z "$compiler_lib_search_path_CXX"; then
11289              compiler_lib_search_path_CXX="${prev}${p}"
11290            else
11291              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11292            fi
11293            ;;
11294          # The "-l" case would never come before the object being
11295          # linked, so don't bother handling this case.
11296          esac
11297        else
11298          if test -z "$postdeps_CXX"; then
11299            postdeps_CXX="${prev}${p}"
11300          else
11301            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11302          fi
11303        fi
11304        ;;
11305
11306     *.$objext)
11307        # This assumes that the test object file only shows up
11308        # once in the compiler output.
11309        if test "$p" = "conftest.$objext"; then
11310          pre_test_object_deps_done=yes
11311          continue
11312        fi
11313
11314        if test "$pre_test_object_deps_done" = no; then
11315          if test -z "$predep_objects_CXX"; then
11316            predep_objects_CXX="$p"
11317          else
11318            predep_objects_CXX="$predep_objects_CXX $p"
11319          fi
11320        else
11321          if test -z "$postdep_objects_CXX"; then
11322            postdep_objects_CXX="$p"
11323          else
11324            postdep_objects_CXX="$postdep_objects_CXX $p"
11325          fi
11326        fi
11327        ;;
11328
11329     *) ;; # Ignore the rest.
11330
11331     esac
11332   done
11333
11334   # Clean up.
11335   rm -f a.out a.exe
11336 else
11337   echo "libtool.m4: error: problem compiling CXX test program"
11338 fi
11339
11340 $rm -f confest.$objext
11341
11342 case " $postdeps_CXX " in
11343 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11344 esac
11345
11346 lt_prog_compiler_wl_CXX=
11347 lt_prog_compiler_pic_CXX=
11348 lt_prog_compiler_static_CXX=
11349
11350 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11351 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11352
11353   # C++ specific cases for pic, static, wl, etc.
11354   if test "$GXX" = yes; then
11355     lt_prog_compiler_wl_CXX='-Wl,'
11356     lt_prog_compiler_static_CXX='-static'
11357
11358     case $host_os in
11359     aix*)
11360       # All AIX code is PIC.
11361       if test "$host_cpu" = ia64; then
11362         # AIX 5 now supports IA64 processor
11363         lt_prog_compiler_static_CXX='-Bstatic'
11364       fi
11365       ;;
11366     amigaos*)
11367       # FIXME: we need at least 68020 code to build shared libraries, but
11368       # adding the `-m68020' flag to GCC prevents building anything better,
11369       # like `-m68040'.
11370       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11371       ;;
11372     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11373       # PIC is the default for these OSes.
11374       ;;
11375     mingw* | os2* | pw32*)
11376       # This hack is so that the source file can tell whether it is being
11377       # built for inclusion in a dll (and should export symbols for example).
11378       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11379       ;;
11380     darwin* | rhapsody*)
11381       # PIC is the default on this platform
11382       # Common symbols not allowed in MH_DYLIB files
11383       lt_prog_compiler_pic_CXX='-fno-common'
11384       ;;
11385     *djgpp*)
11386       # DJGPP does not support shared libraries at all
11387       lt_prog_compiler_pic_CXX=
11388       ;;
11389     sysv4*MP*)
11390       if test -d /usr/nec; then
11391         lt_prog_compiler_pic_CXX=-Kconform_pic
11392       fi
11393       ;;
11394     hpux*)
11395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11396       # not for PA HP-UX.
11397       case "$host_cpu" in
11398       hppa*64*|ia64*)
11399         ;;
11400       *)
11401         lt_prog_compiler_pic_CXX='-fPIC'
11402         ;;
11403       esac
11404       ;;
11405     *)
11406       lt_prog_compiler_pic_CXX='-fPIC'
11407       ;;
11408     esac
11409   else
11410     case $host_os in
11411       aix4* | aix5*)
11412         # All AIX code is PIC.
11413         if test "$host_cpu" = ia64; then
11414           # AIX 5 now supports IA64 processor
11415           lt_prog_compiler_static_CXX='-Bstatic'
11416         else
11417           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11418         fi
11419         ;;
11420       chorus*)
11421         case $cc_basename in
11422         cxch68)
11423           # Green Hills C++ Compiler
11424           # _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"
11425           ;;
11426         esac
11427         ;;
11428       dgux*)
11429         case $cc_basename in
11430           ec++)
11431             lt_prog_compiler_pic_CXX='-KPIC'
11432             ;;
11433           ghcx)
11434             # Green Hills C++ Compiler
11435             lt_prog_compiler_pic_CXX='-pic'
11436             ;;
11437           *)
11438             ;;
11439         esac
11440         ;;
11441       freebsd* | kfreebsd*-gnu)
11442         # FreeBSD uses GNU C++
11443         ;;
11444       hpux9* | hpux10* | hpux11*)
11445         case $cc_basename in
11446           CC)
11447             lt_prog_compiler_wl_CXX='-Wl,'
11448             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11449             if test "$host_cpu" != ia64; then
11450               lt_prog_compiler_pic_CXX='+Z'
11451             fi
11452             ;;
11453           aCC)
11454             lt_prog_compiler_wl_CXX='-Wl,'
11455             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11456             case "$host_cpu" in
11457             hppa*64*|ia64*)
11458               # +Z the default
11459               ;;
11460             *)
11461               lt_prog_compiler_pic_CXX='+Z'
11462               ;;
11463             esac
11464             ;;
11465           *)
11466             ;;
11467         esac
11468         ;;
11469       irix5* | irix6* | nonstopux*)
11470         case $cc_basename in
11471           CC)
11472             lt_prog_compiler_wl_CXX='-Wl,'
11473             lt_prog_compiler_static_CXX='-non_shared'
11474             # CC pic flag -KPIC is the default.
11475             ;;
11476           *)
11477             ;;
11478         esac
11479         ;;
11480       linux*)
11481         case $cc_basename in
11482           KCC)
11483             # KAI C++ Compiler
11484             lt_prog_compiler_wl_CXX='--backend -Wl,'
11485             lt_prog_compiler_pic_CXX='-fPIC'
11486             ;;
11487           icpc)
11488             # Intel C++
11489             lt_prog_compiler_wl_CXX='-Wl,'
11490             lt_prog_compiler_pic_CXX='-KPIC'
11491             lt_prog_compiler_static_CXX='-static'
11492             ;;
11493           cxx)
11494             # Compaq C++
11495             # Make sure the PIC flag is empty.  It appears that all Alpha
11496             # Linux and Compaq Tru64 Unix objects are PIC.
11497             lt_prog_compiler_pic_CXX=
11498             lt_prog_compiler_static_CXX='-non_shared'
11499             ;;
11500           *)
11501             ;;
11502         esac
11503         ;;
11504       lynxos*)
11505         ;;
11506       m88k*)
11507         ;;
11508       mvs*)
11509         case $cc_basename in
11510           cxx)
11511             lt_prog_compiler_pic_CXX='-W c,exportall'
11512             ;;
11513           *)
11514             ;;
11515         esac
11516         ;;
11517       netbsd*)
11518         ;;
11519       osf3* | osf4* | osf5*)
11520         case $cc_basename in
11521           KCC)
11522             lt_prog_compiler_wl_CXX='--backend -Wl,'
11523             ;;
11524           RCC)
11525             # Rational C++ 2.4.1
11526             lt_prog_compiler_pic_CXX='-pic'
11527             ;;
11528           cxx)
11529             # Digital/Compaq C++
11530             lt_prog_compiler_wl_CXX='-Wl,'
11531             # Make sure the PIC flag is empty.  It appears that all Alpha
11532             # Linux and Compaq Tru64 Unix objects are PIC.
11533             lt_prog_compiler_pic_CXX=
11534             lt_prog_compiler_static_CXX='-non_shared'
11535             ;;
11536           *)
11537             ;;
11538         esac
11539         ;;
11540       psos*)
11541         ;;
11542       sco*)
11543         case $cc_basename in
11544           CC)
11545             lt_prog_compiler_pic_CXX='-fPIC'
11546             ;;
11547           *)
11548             ;;
11549         esac
11550         ;;
11551       solaris*)
11552         case $cc_basename in
11553           CC)
11554             # Sun C++ 4.2, 5.x and Centerline C++
11555             lt_prog_compiler_pic_CXX='-KPIC'
11556             lt_prog_compiler_static_CXX='-Bstatic'
11557             lt_prog_compiler_wl_CXX='-Qoption ld '
11558             ;;
11559           gcx)
11560             # Green Hills C++ Compiler
11561             lt_prog_compiler_pic_CXX='-PIC'
11562             ;;
11563           *)
11564             ;;
11565         esac
11566         ;;
11567       sunos4*)
11568         case $cc_basename in
11569           CC)
11570             # Sun C++ 4.x
11571             lt_prog_compiler_pic_CXX='-pic'
11572             lt_prog_compiler_static_CXX='-Bstatic'
11573             ;;
11574           lcc)
11575             # Lucid
11576             lt_prog_compiler_pic_CXX='-pic'
11577             ;;
11578           *)
11579             ;;
11580         esac
11581         ;;
11582       tandem*)
11583         case $cc_basename in
11584           NCC)
11585             # NonStop-UX NCC 3.20
11586             lt_prog_compiler_pic_CXX='-KPIC'
11587             ;;
11588           *)
11589             ;;
11590         esac
11591         ;;
11592       unixware*)
11593         ;;
11594       vxworks*)
11595         ;;
11596       *)
11597         lt_prog_compiler_can_build_shared_CXX=no
11598         ;;
11599     esac
11600   fi
11601
11602 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11603 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11604
11605 #
11606 # Check to make sure the PIC flag actually works.
11607 #
11608 if test -n "$lt_prog_compiler_pic_CXX"; then
11609
11610 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11611 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11612 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   lt_prog_compiler_pic_works_CXX=no
11616   ac_outfile=conftest.$ac_objext
11617    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11618    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11619    # Insert the option either (1) after the last *FLAGS variable, or
11620    # (2) before a word containing "conftest.", or (3) at the end.
11621    # Note that $ac_compile itself does not contain backslashes and begins
11622    # with a dollar sign (not a hyphen), so the echo should work correctly.
11623    # The option is referenced via a variable to avoid confusing sed.
11624    lt_compile=`echo "$ac_compile" | $SED \
11625    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11627    -e 's:$: $lt_compiler_flag:'`
11628    (eval echo "\"\$as_me:11628: $lt_compile\"" >&5)
11629    (eval "$lt_compile" 2>conftest.err)
11630    ac_status=$?
11631    cat conftest.err >&5
11632    echo "$as_me:11632: \$? = $ac_status" >&5
11633    if (exit $ac_status) && test -s "$ac_outfile"; then
11634      # The compiler can only warn and ignore the option if not recognized
11635      # So say no if there are warnings
11636      if test ! -s conftest.err; then
11637        lt_prog_compiler_pic_works_CXX=yes
11638      fi
11639    fi
11640    $rm conftest*
11641
11642 fi
11643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11644 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11645
11646 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11647     case $lt_prog_compiler_pic_CXX in
11648      "" | " "*) ;;
11649      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11650      esac
11651 else
11652     lt_prog_compiler_pic_CXX=
11653      lt_prog_compiler_can_build_shared_CXX=no
11654 fi
11655
11656 fi
11657 case "$host_os" in
11658   # For platforms which do not support PIC, -DPIC is meaningless:
11659   *djgpp*)
11660     lt_prog_compiler_pic_CXX=
11661     ;;
11662   *)
11663     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11664     ;;
11665 esac
11666
11667 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11668 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11669 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   lt_cv_prog_compiler_c_o_CXX=no
11673    $rm -r conftest 2>/dev/null
11674    mkdir conftest
11675    cd conftest
11676    mkdir out
11677    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11678
11679    lt_compiler_flag="-o out/conftest2.$ac_objext"
11680    # Insert the option either (1) after the last *FLAGS variable, or
11681    # (2) before a word containing "conftest.", or (3) at the end.
11682    # Note that $ac_compile itself does not contain backslashes and begins
11683    # with a dollar sign (not a hyphen), so the echo should work correctly.
11684    lt_compile=`echo "$ac_compile" | $SED \
11685    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11686    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11687    -e 's:$: $lt_compiler_flag:'`
11688    (eval echo "\"\$as_me:11688: $lt_compile\"" >&5)
11689    (eval "$lt_compile" 2>out/conftest.err)
11690    ac_status=$?
11691    cat out/conftest.err >&5
11692    echo "$as_me:11692: \$? = $ac_status" >&5
11693    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11694    then
11695      # The compiler can only warn and ignore the option if not recognized
11696      # So say no if there are warnings
11697      if test ! -s out/conftest.err; then
11698        lt_cv_prog_compiler_c_o_CXX=yes
11699      fi
11700    fi
11701    chmod u+w .
11702    $rm conftest*
11703    # SGI C++ compiler will create directory out/ii_files/ for
11704    # template instantiation
11705    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11706    $rm out/* && rmdir out
11707    cd ..
11708    rmdir conftest
11709    $rm conftest*
11710
11711 fi
11712 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11713 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11714
11715
11716 hard_links="nottested"
11717 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11718   # do not overwrite the value of need_locks provided by the user
11719   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11720 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11721   hard_links=yes
11722   $rm conftest*
11723   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11724   touch conftest.a
11725   ln conftest.a conftest.b 2>&5 || hard_links=no
11726   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11727   echo "$as_me:$LINENO: result: $hard_links" >&5
11728 echo "${ECHO_T}$hard_links" >&6
11729   if test "$hard_links" = no; then
11730     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11731 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11732     need_locks=warn
11733   fi
11734 else
11735   need_locks=no
11736 fi
11737
11738 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11739 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11740
11741   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11742   case $host_os in
11743   aix4* | aix5*)
11744     # If we're using GNU nm, then we don't want the "-C" option.
11745     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11746     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11747       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'
11748     else
11749       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'
11750     fi
11751     ;;
11752   pw32*)
11753     export_symbols_cmds_CXX="$ltdll_cmds"
11754   ;;
11755   cygwin* | mingw*)
11756     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11757   ;;
11758   *)
11759     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11760   ;;
11761   esac
11762
11763 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11764 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11765 test "$ld_shlibs_CXX" = no && can_build_shared=no
11766
11767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11768 if test "$GCC" = yes; then
11769   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11770 fi
11771
11772 #
11773 # Do we need to explicitly link libc?
11774 #
11775 case "x$archive_cmds_need_lc_CXX" in
11776 x|xyes)
11777   # Assume -lc should be added
11778   archive_cmds_need_lc_CXX=yes
11779
11780   if test "$enable_shared" = yes && test "$GCC" = yes; then
11781     case $archive_cmds_CXX in
11782     *'~'*)
11783       # FIXME: we may have to deal with multi-command sequences.
11784       ;;
11785     '$CC '*)
11786       # Test whether the compiler implicitly links with -lc since on some
11787       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11788       # to ld, don't add -lc before -lgcc.
11789       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11790 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11791       $rm conftest*
11792       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11793
11794       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795   (eval $ac_compile) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } 2>conftest.err; then
11799         soname=conftest
11800         lib=conftest
11801         libobjs=conftest.$ac_objext
11802         deplibs=
11803         wl=$lt_prog_compiler_wl_CXX
11804         compiler_flags=-v
11805         linker_flags=-v
11806         verstring=
11807         output_objdir=.
11808         libname=conftest
11809         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11810         allow_undefined_flag_CXX=
11811         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11812   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }
11816         then
11817           archive_cmds_need_lc_CXX=no
11818         else
11819           archive_cmds_need_lc_CXX=yes
11820         fi
11821         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11822       else
11823         cat conftest.err 1>&5
11824       fi
11825       $rm conftest*
11826       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11827 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11828       ;;
11829     esac
11830   fi
11831   ;;
11832 esac
11833
11834 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11835 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11836 library_names_spec=
11837 libname_spec='lib$name'
11838 soname_spec=
11839 shrext_cmds=".so"
11840 postinstall_cmds=
11841 postuninstall_cmds=
11842 finish_cmds=
11843 finish_eval=
11844 shlibpath_var=
11845 shlibpath_overrides_runpath=unknown
11846 version_type=none
11847 dynamic_linker="$host_os ld.so"
11848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11849 if test "$GCC" = yes; then
11850   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11851   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11852     # if the path contains ";" then we assume it to be the separator
11853     # otherwise default to the standard path separator (i.e. ":") - it is
11854     # assumed that no part of a normal pathname contains ";" but that should
11855     # okay in the real world where ";" in dirpaths is itself problematic.
11856     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11857   else
11858     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11859   fi
11860 else
11861   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11862 fi
11863 need_lib_prefix=unknown
11864 hardcode_into_libs=no
11865
11866 # when you set need_version to no, make sure it does not cause -set_version
11867 # flags to be left without arguments
11868 need_version=unknown
11869
11870 case $host_os in
11871 aix3*)
11872   version_type=linux
11873   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11874   shlibpath_var=LIBPATH
11875
11876   # AIX 3 has no versioning support, so we append a major version to the name.
11877   soname_spec='${libname}${release}${shared_ext}$major'
11878   ;;
11879
11880 aix4* | aix5*)
11881   version_type=linux
11882   need_lib_prefix=no
11883   need_version=no
11884   hardcode_into_libs=yes
11885   if test "$host_cpu" = ia64; then
11886     # AIX 5 supports IA64
11887     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11888     shlibpath_var=LD_LIBRARY_PATH
11889   else
11890     # With GCC up to 2.95.x, collect2 would create an import file
11891     # for dependence libraries.  The import file would start with
11892     # the line `#! .'.  This would cause the generated library to
11893     # depend on `.', always an invalid library.  This was fixed in
11894     # development snapshots of GCC prior to 3.0.
11895     case $host_os in
11896       aix4 | aix4.[01] | aix4.[01].*)
11897       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11898            echo ' yes '
11899            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11900         :
11901       else
11902         can_build_shared=no
11903       fi
11904       ;;
11905     esac
11906     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11907     # soname into executable. Probably we can add versioning support to
11908     # collect2, so additional links can be useful in future.
11909     if test "$aix_use_runtimelinking" = yes; then
11910       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11911       # instead of lib<name>.a to let people know that these are not
11912       # typical AIX shared libraries.
11913       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914     else
11915       # We preserve .a as extension for shared libraries through AIX4.2
11916       # and later when we are not doing run time linking.
11917       library_names_spec='${libname}${release}.a $libname.a'
11918       soname_spec='${libname}${release}${shared_ext}$major'
11919     fi
11920     shlibpath_var=LIBPATH
11921   fi
11922   ;;
11923
11924 amigaos*)
11925   library_names_spec='$libname.ixlibrary $libname.a'
11926   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11927   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'
11928   ;;
11929
11930 beos*)
11931   library_names_spec='${libname}${shared_ext}'
11932   dynamic_linker="$host_os ld.so"
11933   shlibpath_var=LIBRARY_PATH
11934   ;;
11935
11936 bsdi4*)
11937   version_type=linux
11938   need_version=no
11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940   soname_spec='${libname}${release}${shared_ext}$major'
11941   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11942   shlibpath_var=LD_LIBRARY_PATH
11943   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11944   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11945   # the default ld.so.conf also contains /usr/contrib/lib and
11946   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11947   # libtool to hard-code these into programs
11948   ;;
11949
11950 cygwin* | mingw* | pw32*)
11951   version_type=windows
11952   shrext_cmds=".dll"
11953   need_version=no
11954   need_lib_prefix=no
11955
11956   case $GCC,$host_os in
11957   yes,cygwin* | yes,mingw* | yes,pw32*)
11958     library_names_spec='$libname.dll.a'
11959     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11960     postinstall_cmds='base_file=`basename \${file}`~
11961       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11962       dldir=$destdir/`dirname \$dlpath`~
11963       test -d \$dldir || mkdir -p \$dldir~
11964       $install_prog $dir/$dlname \$dldir/$dlname'
11965     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11966       dlpath=$dir/\$dldll~
11967        $rm \$dlpath'
11968     shlibpath_overrides_runpath=yes
11969
11970     case $host_os in
11971     cygwin*)
11972       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11973       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11974       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11975       ;;
11976     mingw*)
11977       # MinGW DLLs use traditional 'lib' prefix
11978       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11979       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11980       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11981         # It is most probably a Windows format PATH printed by
11982         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11983         # path with ; separators, and with drive letters. We can handle the
11984         # drive letters (cygwin fileutils understands them), so leave them,
11985         # especially as we might pass files found there to a mingw objdump,
11986         # which wouldn't understand a cygwinified path. Ahh.
11987         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11988       else
11989         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11990       fi
11991       ;;
11992     pw32*)
11993       # pw32 DLLs use 'pw' prefix rather than 'lib'
11994       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11995       ;;
11996     esac
11997     ;;
11998
11999   *)
12000     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12001     ;;
12002   esac
12003   dynamic_linker='Win32 ld.exe'
12004   # FIXME: first we should search . and the directory the executable is in
12005   shlibpath_var=PATH
12006   ;;
12007
12008 darwin* | rhapsody*)
12009   dynamic_linker="$host_os dyld"
12010   version_type=darwin
12011   need_lib_prefix=no
12012   need_version=no
12013   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12014   soname_spec='${libname}${release}${major}$shared_ext'
12015   shlibpath_overrides_runpath=yes
12016   shlibpath_var=DYLD_LIBRARY_PATH
12017   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12018   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12019   if test "$GCC" = yes; then
12020     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"`
12021   else
12022     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12023   fi
12024   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12025   ;;
12026
12027 dgux*)
12028   version_type=linux
12029   need_lib_prefix=no
12030   need_version=no
12031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12032   soname_spec='${libname}${release}${shared_ext}$major'
12033   shlibpath_var=LD_LIBRARY_PATH
12034   ;;
12035
12036 freebsd1*)
12037   dynamic_linker=no
12038   ;;
12039
12040 kfreebsd*-gnu)
12041   version_type=linux
12042   need_lib_prefix=no
12043   need_version=no
12044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12045   soname_spec='${libname}${release}${shared_ext}$major'
12046   shlibpath_var=LD_LIBRARY_PATH
12047   shlibpath_overrides_runpath=no
12048   hardcode_into_libs=yes
12049   dynamic_linker='GNU ld.so'
12050   ;;
12051
12052 freebsd*)
12053   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12054   version_type=freebsd-$objformat
12055   case $version_type in
12056     freebsd-elf*)
12057       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12058       need_version=no
12059       need_lib_prefix=no
12060       ;;
12061     freebsd-*)
12062       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12063       need_version=yes
12064       ;;
12065   esac
12066   shlibpath_var=LD_LIBRARY_PATH
12067   case $host_os in
12068   freebsd2*)
12069     shlibpath_overrides_runpath=yes
12070     ;;
12071   freebsd3.01* | freebsdelf3.01*)
12072     shlibpath_overrides_runpath=yes
12073     hardcode_into_libs=yes
12074     ;;
12075   *) # from 3.2 on
12076     shlibpath_overrides_runpath=no
12077     hardcode_into_libs=yes
12078     ;;
12079   esac
12080   ;;
12081
12082 gnu*)
12083   version_type=linux
12084   need_lib_prefix=no
12085   need_version=no
12086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12087   soname_spec='${libname}${release}${shared_ext}$major'
12088   shlibpath_var=LD_LIBRARY_PATH
12089   hardcode_into_libs=yes
12090   ;;
12091
12092 hpux9* | hpux10* | hpux11*)
12093   # Give a soname corresponding to the major version so that dld.sl refuses to
12094   # link against other versions.
12095   version_type=sunos
12096   need_lib_prefix=no
12097   need_version=no
12098   case "$host_cpu" in
12099   ia64*)
12100     shrext_cmds='.so'
12101     hardcode_into_libs=yes
12102     dynamic_linker="$host_os dld.so"
12103     shlibpath_var=LD_LIBRARY_PATH
12104     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12106     soname_spec='${libname}${release}${shared_ext}$major'
12107     if test "X$HPUX_IA64_MODE" = X32; then
12108       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12109     else
12110       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12111     fi
12112     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12113     ;;
12114    hppa*64*)
12115      shrext_cmds='.sl'
12116      hardcode_into_libs=yes
12117      dynamic_linker="$host_os dld.sl"
12118      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12119      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12120      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12121      soname_spec='${libname}${release}${shared_ext}$major'
12122      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12123      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12124      ;;
12125    *)
12126     shrext_cmds='.sl'
12127     dynamic_linker="$host_os dld.sl"
12128     shlibpath_var=SHLIB_PATH
12129     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12131     soname_spec='${libname}${release}${shared_ext}$major'
12132     ;;
12133   esac
12134   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12135   postinstall_cmds='chmod 555 $lib'
12136   ;;
12137
12138 irix5* | irix6* | nonstopux*)
12139   case $host_os in
12140     nonstopux*) version_type=nonstopux ;;
12141     *)
12142         if test "$lt_cv_prog_gnu_ld" = yes; then
12143                 version_type=linux
12144         else
12145                 version_type=irix
12146         fi ;;
12147   esac
12148   need_lib_prefix=no
12149   need_version=no
12150   soname_spec='${libname}${release}${shared_ext}$major'
12151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12152   case $host_os in
12153   irix5* | nonstopux*)
12154     libsuff= shlibsuff=
12155     ;;
12156   *)
12157     case $LD in # libtool.m4 will add one of these switches to LD
12158     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12159       libsuff= shlibsuff= libmagic=32-bit;;
12160     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12161       libsuff=32 shlibsuff=N32 libmagic=N32;;
12162     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12163       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12164     *) libsuff= shlibsuff= libmagic=never-match;;
12165     esac
12166     ;;
12167   esac
12168   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12169   shlibpath_overrides_runpath=no
12170   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12171   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12172   hardcode_into_libs=yes
12173   ;;
12174
12175 # No shared lib support for Linux oldld, aout, or coff.
12176 linux*oldld* | linux*aout* | linux*coff*)
12177   dynamic_linker=no
12178   ;;
12179
12180 # This must be Linux ELF.
12181 linux*)
12182   version_type=linux
12183   need_lib_prefix=no
12184   need_version=no
12185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186   soname_spec='${libname}${release}${shared_ext}$major'
12187   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12188   shlibpath_var=LD_LIBRARY_PATH
12189   shlibpath_overrides_runpath=no
12190   # This implies no fast_install, which is unacceptable.
12191   # Some rework will be needed to allow for fast_install
12192   # before this can be enabled.
12193   hardcode_into_libs=yes
12194
12195   # find out which ABI we are using
12196   libsuff=
12197   case "$host_cpu" in
12198   x86_64*|s390x*|powerpc64*)
12199     echo '#line 12199 "configure"' > conftest.$ac_ext
12200     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201   (eval $ac_compile) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; then
12205       case `/usr/bin/file conftest.$ac_objext` in
12206       *64-bit*)
12207         libsuff=64
12208         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12209         ;;
12210       esac
12211     fi
12212     rm -rf conftest*
12213     ;;
12214   esac
12215
12216   # Append ld.so.conf contents to the search path
12217   if test -f /etc/ld.so.conf; then
12218     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12219     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12220   fi
12221
12222   # We used to test for /lib/ld.so.1 and disable shared libraries on
12223   # powerpc, because MkLinux only supported shared libraries with the
12224   # GNU dynamic linker.  Since this was broken with cross compilers,
12225   # most powerpc-linux boxes support dynamic linking these days and
12226   # people can always --disable-shared, the test was removed, and we
12227   # assume the GNU/Linux dynamic linker is in use.
12228   dynamic_linker='GNU/Linux ld.so'
12229   ;;
12230
12231 knetbsd*-gnu)
12232   version_type=linux
12233   need_lib_prefix=no
12234   need_version=no
12235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12236   soname_spec='${libname}${release}${shared_ext}$major'
12237   shlibpath_var=LD_LIBRARY_PATH
12238   shlibpath_overrides_runpath=no
12239   hardcode_into_libs=yes
12240   dynamic_linker='GNU ld.so'
12241   ;;
12242
12243 netbsd*)
12244   version_type=sunos
12245   need_lib_prefix=no
12246   need_version=no
12247   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12249     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12250     dynamic_linker='NetBSD (a.out) ld.so'
12251   else
12252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12253     soname_spec='${libname}${release}${shared_ext}$major'
12254     dynamic_linker='NetBSD ld.elf_so'
12255   fi
12256   shlibpath_var=LD_LIBRARY_PATH
12257   shlibpath_overrides_runpath=yes
12258   hardcode_into_libs=yes
12259   ;;
12260
12261 newsos6)
12262   version_type=linux
12263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264   shlibpath_var=LD_LIBRARY_PATH
12265   shlibpath_overrides_runpath=yes
12266   ;;
12267
12268 nto-qnx*)
12269   version_type=linux
12270   need_lib_prefix=no
12271   need_version=no
12272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273   soname_spec='${libname}${release}${shared_ext}$major'
12274   shlibpath_var=LD_LIBRARY_PATH
12275   shlibpath_overrides_runpath=yes
12276   ;;
12277
12278 openbsd*)
12279   version_type=sunos
12280   need_lib_prefix=no
12281   need_version=yes
12282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12283   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12284   shlibpath_var=LD_LIBRARY_PATH
12285   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12286     case $host_os in
12287       openbsd2.[89] | openbsd2.[89].*)
12288         shlibpath_overrides_runpath=no
12289         ;;
12290       *)
12291         shlibpath_overrides_runpath=yes
12292         ;;
12293       esac
12294   else
12295     shlibpath_overrides_runpath=yes
12296   fi
12297   ;;
12298
12299 os2*)
12300   libname_spec='$name'
12301   shrext_cmds=".dll"
12302   need_lib_prefix=no
12303   library_names_spec='$libname${shared_ext} $libname.a'
12304   dynamic_linker='OS/2 ld.exe'
12305   shlibpath_var=LIBPATH
12306   ;;
12307
12308 osf3* | osf4* | osf5*)
12309   version_type=osf
12310   need_lib_prefix=no
12311   need_version=no
12312   soname_spec='${libname}${release}${shared_ext}$major'
12313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314   shlibpath_var=LD_LIBRARY_PATH
12315   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12316   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12317   ;;
12318
12319 sco3.2v5*)
12320   version_type=osf
12321   soname_spec='${libname}${release}${shared_ext}$major'
12322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323   shlibpath_var=LD_LIBRARY_PATH
12324   ;;
12325
12326 solaris*)
12327   version_type=linux
12328   need_lib_prefix=no
12329   need_version=no
12330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12331   soname_spec='${libname}${release}${shared_ext}$major'
12332   shlibpath_var=LD_LIBRARY_PATH
12333   shlibpath_overrides_runpath=yes
12334   hardcode_into_libs=yes
12335   # ldd complains unless libraries are executable
12336   postinstall_cmds='chmod +x $lib'
12337   ;;
12338
12339 sunos4*)
12340   version_type=sunos
12341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12342   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12343   shlibpath_var=LD_LIBRARY_PATH
12344   shlibpath_overrides_runpath=yes
12345   if test "$with_gnu_ld" = yes; then
12346     need_lib_prefix=no
12347   fi
12348   need_version=yes
12349   ;;
12350
12351 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12352   version_type=linux
12353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354   soname_spec='${libname}${release}${shared_ext}$major'
12355   shlibpath_var=LD_LIBRARY_PATH
12356   case $host_vendor in
12357     sni)
12358       shlibpath_overrides_runpath=no
12359       need_lib_prefix=no
12360       export_dynamic_flag_spec='${wl}-Blargedynsym'
12361       runpath_var=LD_RUN_PATH
12362       ;;
12363     siemens)
12364       need_lib_prefix=no
12365       ;;
12366     motorola)
12367       need_lib_prefix=no
12368       need_version=no
12369       shlibpath_overrides_runpath=no
12370       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12371       ;;
12372   esac
12373   ;;
12374
12375 sysv4*MP*)
12376   if test -d /usr/nec ;then
12377     version_type=linux
12378     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12379     soname_spec='$libname${shared_ext}.$major'
12380     shlibpath_var=LD_LIBRARY_PATH
12381   fi
12382   ;;
12383
12384 uts4*)
12385   version_type=linux
12386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12387   soname_spec='${libname}${release}${shared_ext}$major'
12388   shlibpath_var=LD_LIBRARY_PATH
12389   ;;
12390
12391 *)
12392   dynamic_linker=no
12393   ;;
12394 esac
12395 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12396 echo "${ECHO_T}$dynamic_linker" >&6
12397 test "$dynamic_linker" = no && can_build_shared=no
12398
12399 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12400 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12401 hardcode_action_CXX=
12402 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12403    test -n "$runpath_var CXX" || \
12404    test "X$hardcode_automatic_CXX"="Xyes" ; then
12405
12406   # We can hardcode non-existant directories.
12407   if test "$hardcode_direct_CXX" != no &&
12408      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12409      # have to relink, otherwise we might link with an installed library
12410      # when we should be linking with a yet-to-be-installed one
12411      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12412      test "$hardcode_minus_L_CXX" != no; then
12413     # Linking always hardcodes the temporary library directory.
12414     hardcode_action_CXX=relink
12415   else
12416     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12417     hardcode_action_CXX=immediate
12418   fi
12419 else
12420   # We cannot hardcode anything, or else we can only hardcode existing
12421   # directories.
12422   hardcode_action_CXX=unsupported
12423 fi
12424 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12425 echo "${ECHO_T}$hardcode_action_CXX" >&6
12426
12427 if test "$hardcode_action_CXX" = relink; then
12428   # Fast installation is not supported
12429   enable_fast_install=no
12430 elif test "$shlibpath_overrides_runpath" = yes ||
12431      test "$enable_shared" = no; then
12432   # Fast installation is not necessary
12433   enable_fast_install=needless
12434 fi
12435
12436 striplib=
12437 old_striplib=
12438 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12439 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12440 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12441   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12442   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12443   echo "$as_me:$LINENO: result: yes" >&5
12444 echo "${ECHO_T}yes" >&6
12445 else
12446 # FIXME - insert some real tests, host_os isn't really good enough
12447   case $host_os in
12448    darwin*)
12449        if test -n "$STRIP" ; then
12450          striplib="$STRIP -x"
12451          echo "$as_me:$LINENO: result: yes" >&5
12452 echo "${ECHO_T}yes" >&6
12453        else
12454   echo "$as_me:$LINENO: result: no" >&5
12455 echo "${ECHO_T}no" >&6
12456 fi
12457        ;;
12458    *)
12459   echo "$as_me:$LINENO: result: no" >&5
12460 echo "${ECHO_T}no" >&6
12461     ;;
12462   esac
12463 fi
12464
12465 if test "x$enable_dlopen" != xyes; then
12466   enable_dlopen=unknown
12467   enable_dlopen_self=unknown
12468   enable_dlopen_self_static=unknown
12469 else
12470   lt_cv_dlopen=no
12471   lt_cv_dlopen_libs=
12472
12473   case $host_os in
12474   beos*)
12475     lt_cv_dlopen="load_add_on"
12476     lt_cv_dlopen_libs=
12477     lt_cv_dlopen_self=yes
12478     ;;
12479
12480   mingw* | pw32*)
12481     lt_cv_dlopen="LoadLibrary"
12482     lt_cv_dlopen_libs=
12483    ;;
12484
12485   cygwin*)
12486     lt_cv_dlopen="dlopen"
12487     lt_cv_dlopen_libs=
12488    ;;
12489
12490   darwin*)
12491   # if libdl is installed we need to link against it
12492     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12493 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12494 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   ac_check_lib_save_LIBS=$LIBS
12498 LIBS="-ldl  $LIBS"
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505
12506 /* Override any gcc2 internal prototype to avoid an error.  */
12507 #ifdef __cplusplus
12508 extern "C"
12509 #endif
12510 /* We use char because int might match the return type of a gcc2
12511    builtin and then its argument prototype would still apply.  */
12512 char dlopen ();
12513 int
12514 main ()
12515 {
12516 dlopen ();
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_cxx_werror_flag"
12531                          || test ! -s conftest.err'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   ac_cv_lib_dl_dlopen=yes
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 ac_cv_lib_dl_dlopen=no
12549 fi
12550 rm -f conftest.err conftest.$ac_objext \
12551       conftest$ac_exeext conftest.$ac_ext
12552 LIBS=$ac_check_lib_save_LIBS
12553 fi
12554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12556 if test $ac_cv_lib_dl_dlopen = yes; then
12557   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12558 else
12559
12560     lt_cv_dlopen="dyld"
12561     lt_cv_dlopen_libs=
12562     lt_cv_dlopen_self=yes
12563
12564 fi
12565
12566    ;;
12567
12568   *)
12569     echo "$as_me:$LINENO: checking for shl_load" >&5
12570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12571 if test "${ac_cv_func_shl_load+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574   cat >conftest.$ac_ext <<_ACEOF
12575 /* confdefs.h.  */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h.  */
12580 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12582 #define shl_load innocuous_shl_load
12583
12584 /* System header to define __stub macros and hopefully few prototypes,
12585     which can conflict with char shl_load (); below.
12586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12587     <limits.h> exists even on freestanding compilers.  */
12588
12589 #ifdef __STDC__
12590 # include <limits.h>
12591 #else
12592 # include <assert.h>
12593 #endif
12594
12595 #undef shl_load
12596
12597 /* Override any gcc2 internal prototype to avoid an error.  */
12598 #ifdef __cplusplus
12599 extern "C"
12600 {
12601 #endif
12602 /* We use char because int might match the return type of a gcc2
12603    builtin and then its argument prototype would still apply.  */
12604 char shl_load ();
12605 /* The GNU C library defines this for functions which it implements
12606     to always fail with ENOSYS.  Some functions are actually named
12607     something starting with __ and the normal name is an alias.  */
12608 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12609 choke me
12610 #else
12611 char (*f) () = shl_load;
12612 #endif
12613 #ifdef __cplusplus
12614 }
12615 #endif
12616
12617 int
12618 main ()
12619 {
12620 return f != shl_load;
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627   (eval $ac_link) 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } &&
12634          { ac_try='test -z "$ac_cxx_werror_flag"
12635                          || test ! -s conftest.err'
12636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637   (eval $ac_try) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; } &&
12641          { ac_try='test -s conftest$ac_exeext'
12642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643   (eval $ac_try) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   ac_cv_func_shl_load=yes
12648 else
12649   echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12651
12652 ac_cv_func_shl_load=no
12653 fi
12654 rm -f conftest.err conftest.$ac_objext \
12655       conftest$ac_exeext conftest.$ac_ext
12656 fi
12657 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12658 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12659 if test $ac_cv_func_shl_load = yes; then
12660   lt_cv_dlopen="shl_load"
12661 else
12662   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12663 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12664 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   ac_check_lib_save_LIBS=$LIBS
12668 LIBS="-ldld  $LIBS"
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675
12676 /* Override any gcc2 internal prototype to avoid an error.  */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 /* We use char because int might match the return type of a gcc2
12681    builtin and then its argument prototype would still apply.  */
12682 char shl_load ();
12683 int
12684 main ()
12685 {
12686 shl_load ();
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693   (eval $ac_link) 2>conftest.er1
12694   ac_status=$?
12695   grep -v '^ *+' conftest.er1 >conftest.err
12696   rm -f conftest.er1
12697   cat conftest.err >&5
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } &&
12700          { ac_try='test -z "$ac_cxx_werror_flag"
12701                          || test ! -s conftest.err'
12702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703   (eval $ac_try) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }; } &&
12707          { ac_try='test -s conftest$ac_exeext'
12708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709   (eval $ac_try) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ac_cv_lib_dld_shl_load=yes
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ac_cv_lib_dld_shl_load=no
12719 fi
12720 rm -f conftest.err conftest.$ac_objext \
12721       conftest$ac_exeext conftest.$ac_ext
12722 LIBS=$ac_check_lib_save_LIBS
12723 fi
12724 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12725 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12726 if test $ac_cv_lib_dld_shl_load = yes; then
12727   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12728 else
12729   echo "$as_me:$LINENO: checking for dlopen" >&5
12730 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12731 if test "${ac_cv_func_dlopen+set}" = set; then
12732   echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734   cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12742 #define dlopen innocuous_dlopen
12743
12744 /* System header to define __stub macros and hopefully few prototypes,
12745     which can conflict with char dlopen (); below.
12746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12747     <limits.h> exists even on freestanding compilers.  */
12748
12749 #ifdef __STDC__
12750 # include <limits.h>
12751 #else
12752 # include <assert.h>
12753 #endif
12754
12755 #undef dlopen
12756
12757 /* Override any gcc2 internal prototype to avoid an error.  */
12758 #ifdef __cplusplus
12759 extern "C"
12760 {
12761 #endif
12762 /* We use char because int might match the return type of a gcc2
12763    builtin and then its argument prototype would still apply.  */
12764 char dlopen ();
12765 /* The GNU C library defines this for functions which it implements
12766     to always fail with ENOSYS.  Some functions are actually named
12767     something starting with __ and the normal name is an alias.  */
12768 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12769 choke me
12770 #else
12771 char (*f) () = dlopen;
12772 #endif
12773 #ifdef __cplusplus
12774 }
12775 #endif
12776
12777 int
12778 main ()
12779 {
12780 return f != dlopen;
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12787   (eval $ac_link) 2>conftest.er1
12788   ac_status=$?
12789   grep -v '^ *+' conftest.er1 >conftest.err
12790   rm -f conftest.er1
12791   cat conftest.err >&5
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } &&
12794          { ac_try='test -z "$ac_cxx_werror_flag"
12795                          || test ! -s conftest.err'
12796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797   (eval $ac_try) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; } &&
12801          { ac_try='test -s conftest$ac_exeext'
12802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803   (eval $ac_try) 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); }; }; then
12807   ac_cv_func_dlopen=yes
12808 else
12809   echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 ac_cv_func_dlopen=no
12813 fi
12814 rm -f conftest.err conftest.$ac_objext \
12815       conftest$ac_exeext conftest.$ac_ext
12816 fi
12817 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12818 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12819 if test $ac_cv_func_dlopen = yes; then
12820   lt_cv_dlopen="dlopen"
12821 else
12822   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12823 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12825   echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827   ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-ldl  $LIBS"
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12835
12836 /* Override any gcc2 internal prototype to avoid an error.  */
12837 #ifdef __cplusplus
12838 extern "C"
12839 #endif
12840 /* We use char because int might match the return type of a gcc2
12841    builtin and then its argument prototype would still apply.  */
12842 char dlopen ();
12843 int
12844 main ()
12845 {
12846 dlopen ();
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 rm -f conftest.$ac_objext conftest$ac_exeext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853   (eval $ac_link) 2>conftest.er1
12854   ac_status=$?
12855   grep -v '^ *+' conftest.er1 >conftest.err
12856   rm -f conftest.er1
12857   cat conftest.err >&5
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } &&
12860          { ac_try='test -z "$ac_cxx_werror_flag"
12861                          || test ! -s conftest.err'
12862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863   (eval $ac_try) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; } &&
12867          { ac_try='test -s conftest$ac_exeext'
12868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869   (eval $ac_try) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; }; then
12873   ac_cv_lib_dl_dlopen=yes
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 ac_cv_lib_dl_dlopen=no
12879 fi
12880 rm -f conftest.err conftest.$ac_objext \
12881       conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12883 fi
12884 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12886 if test $ac_cv_lib_dl_dlopen = yes; then
12887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12888 else
12889   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12890 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12891 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12892   echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894   ac_check_lib_save_LIBS=$LIBS
12895 LIBS="-lsvld  $LIBS"
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902
12903 /* Override any gcc2 internal prototype to avoid an error.  */
12904 #ifdef __cplusplus
12905 extern "C"
12906 #endif
12907 /* We use char because int might match the return type of a gcc2
12908    builtin and then its argument prototype would still apply.  */
12909 char dlopen ();
12910 int
12911 main ()
12912 {
12913 dlopen ();
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920   (eval $ac_link) 2>conftest.er1
12921   ac_status=$?
12922   grep -v '^ *+' conftest.er1 >conftest.err
12923   rm -f conftest.er1
12924   cat conftest.err >&5
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } &&
12927          { ac_try='test -z "$ac_cxx_werror_flag"
12928                          || test ! -s conftest.err'
12929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930   (eval $ac_try) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; } &&
12934          { ac_try='test -s conftest$ac_exeext'
12935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936   (eval $ac_try) 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; }; then
12940   ac_cv_lib_svld_dlopen=yes
12941 else
12942   echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 ac_cv_lib_svld_dlopen=no
12946 fi
12947 rm -f conftest.err conftest.$ac_objext \
12948       conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12950 fi
12951 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12952 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12953 if test $ac_cv_lib_svld_dlopen = yes; then
12954   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12955 else
12956   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12957 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12958 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   ac_check_lib_save_LIBS=$LIBS
12962 LIBS="-ldld  $LIBS"
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h.  */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h.  */
12969
12970 /* Override any gcc2 internal prototype to avoid an error.  */
12971 #ifdef __cplusplus
12972 extern "C"
12973 #endif
12974 /* We use char because int might match the return type of a gcc2
12975    builtin and then its argument prototype would still apply.  */
12976 char dld_link ();
12977 int
12978 main ()
12979 {
12980 dld_link ();
12981   ;
12982   return 0;
12983 }
12984 _ACEOF
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12987   (eval $ac_link) 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_cxx_werror_flag"
12995                          || test ! -s conftest.err'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; } &&
13001          { ac_try='test -s conftest$ac_exeext'
13002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003   (eval $ac_try) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007   ac_cv_lib_dld_dld_link=yes
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 ac_cv_lib_dld_dld_link=no
13013 fi
13014 rm -f conftest.err conftest.$ac_objext \
13015       conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13017 fi
13018 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13019 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13020 if test $ac_cv_lib_dld_dld_link = yes; then
13021   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13022 fi
13023
13024
13025 fi
13026
13027
13028 fi
13029
13030
13031 fi
13032
13033
13034 fi
13035
13036
13037 fi
13038
13039     ;;
13040   esac
13041
13042   if test "x$lt_cv_dlopen" != xno; then
13043     enable_dlopen=yes
13044   else
13045     enable_dlopen=no
13046   fi
13047
13048   case $lt_cv_dlopen in
13049   dlopen)
13050     save_CPPFLAGS="$CPPFLAGS"
13051     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13052
13053     save_LDFLAGS="$LDFLAGS"
13054     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13055
13056     save_LIBS="$LIBS"
13057     LIBS="$lt_cv_dlopen_libs $LIBS"
13058
13059     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13060 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13061 if test "${lt_cv_dlopen_self+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064           if test "$cross_compiling" = yes; then :
13065   lt_cv_dlopen_self=cross
13066 else
13067   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13068   lt_status=$lt_dlunknown
13069   cat > conftest.$ac_ext <<EOF
13070 #line 13070 "configure"
13071 #include "confdefs.h"
13072
13073 #if HAVE_DLFCN_H
13074 #include <dlfcn.h>
13075 #endif
13076
13077 #include <stdio.h>
13078
13079 #ifdef RTLD_GLOBAL
13080 #  define LT_DLGLOBAL           RTLD_GLOBAL
13081 #else
13082 #  ifdef DL_GLOBAL
13083 #    define LT_DLGLOBAL         DL_GLOBAL
13084 #  else
13085 #    define LT_DLGLOBAL         0
13086 #  endif
13087 #endif
13088
13089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13090    find out it does not work in some platform. */
13091 #ifndef LT_DLLAZY_OR_NOW
13092 #  ifdef RTLD_LAZY
13093 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13094 #  else
13095 #    ifdef DL_LAZY
13096 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13097 #    else
13098 #      ifdef RTLD_NOW
13099 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13100 #      else
13101 #        ifdef DL_NOW
13102 #          define LT_DLLAZY_OR_NOW      DL_NOW
13103 #        else
13104 #          define LT_DLLAZY_OR_NOW      0
13105 #        endif
13106 #      endif
13107 #    endif
13108 #  endif
13109 #endif
13110
13111 #ifdef __cplusplus
13112 extern "C" void exit (int);
13113 #endif
13114
13115 void fnord() { int i=42;}
13116 int main ()
13117 {
13118   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13119   int status = $lt_dlunknown;
13120
13121   if (self)
13122     {
13123       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13124       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13125       /* dlclose (self); */
13126     }
13127
13128     exit (status);
13129 }
13130 EOF
13131   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132   (eval $ac_link) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13136     (./conftest; exit; ) 2>/dev/null
13137     lt_status=$?
13138     case x$lt_status in
13139       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13140       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13141       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13142     esac
13143   else :
13144     # compilation failed
13145     lt_cv_dlopen_self=no
13146   fi
13147 fi
13148 rm -fr conftest*
13149
13150
13151 fi
13152 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13153 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13154
13155     if test "x$lt_cv_dlopen_self" = xyes; then
13156       LDFLAGS="$LDFLAGS $link_static_flag"
13157       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13158 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13159 if test "${lt_cv_dlopen_self_static+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162           if test "$cross_compiling" = yes; then :
13163   lt_cv_dlopen_self_static=cross
13164 else
13165   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13166   lt_status=$lt_dlunknown
13167   cat > conftest.$ac_ext <<EOF
13168 #line 13168 "configure"
13169 #include "confdefs.h"
13170
13171 #if HAVE_DLFCN_H
13172 #include <dlfcn.h>
13173 #endif
13174
13175 #include <stdio.h>
13176
13177 #ifdef RTLD_GLOBAL
13178 #  define LT_DLGLOBAL           RTLD_GLOBAL
13179 #else
13180 #  ifdef DL_GLOBAL
13181 #    define LT_DLGLOBAL         DL_GLOBAL
13182 #  else
13183 #    define LT_DLGLOBAL         0
13184 #  endif
13185 #endif
13186
13187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13188    find out it does not work in some platform. */
13189 #ifndef LT_DLLAZY_OR_NOW
13190 #  ifdef RTLD_LAZY
13191 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13192 #  else
13193 #    ifdef DL_LAZY
13194 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13195 #    else
13196 #      ifdef RTLD_NOW
13197 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13198 #      else
13199 #        ifdef DL_NOW
13200 #          define LT_DLLAZY_OR_NOW      DL_NOW
13201 #        else
13202 #          define LT_DLLAZY_OR_NOW      0
13203 #        endif
13204 #      endif
13205 #    endif
13206 #  endif
13207 #endif
13208
13209 #ifdef __cplusplus
13210 extern "C" void exit (int);
13211 #endif
13212
13213 void fnord() { int i=42;}
13214 int main ()
13215 {
13216   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13217   int status = $lt_dlunknown;
13218
13219   if (self)
13220     {
13221       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13222       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13223       /* dlclose (self); */
13224     }
13225
13226     exit (status);
13227 }
13228 EOF
13229   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13230   (eval $ac_link) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13234     (./conftest; exit; ) 2>/dev/null
13235     lt_status=$?
13236     case x$lt_status in
13237       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13238       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13239       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13240     esac
13241   else :
13242     # compilation failed
13243     lt_cv_dlopen_self_static=no
13244   fi
13245 fi
13246 rm -fr conftest*
13247
13248
13249 fi
13250 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13251 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13252     fi
13253
13254     CPPFLAGS="$save_CPPFLAGS"
13255     LDFLAGS="$save_LDFLAGS"
13256     LIBS="$save_LIBS"
13257     ;;
13258   esac
13259
13260   case $lt_cv_dlopen_self in
13261   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13262   *) enable_dlopen_self=unknown ;;
13263   esac
13264
13265   case $lt_cv_dlopen_self_static in
13266   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13267   *) enable_dlopen_self_static=unknown ;;
13268   esac
13269 fi
13270
13271
13272 # The else clause should only fire when bootstrapping the
13273 # libtool distribution, otherwise you forgot to ship ltmain.sh
13274 # with your package, and you will get complaints that there are
13275 # no rules to generate ltmain.sh.
13276 if test -f "$ltmain"; then
13277   # See if we are running on zsh, and set the options which allow our commands through
13278   # without removal of \ escapes.
13279   if test -n "${ZSH_VERSION+set}" ; then
13280     setopt NO_GLOB_SUBST
13281   fi
13282   # Now quote all the things that may contain metacharacters while being
13283   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13284   # variables and quote the copies for generation of the libtool script.
13285   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13286     SED SHELL STRIP \
13287     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13288     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13289     deplibs_check_method reload_flag reload_cmds need_locks \
13290     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13291     lt_cv_sys_global_symbol_to_c_name_address \
13292     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13293     old_postinstall_cmds old_postuninstall_cmds \
13294     compiler_CXX \
13295     CC_CXX \
13296     LD_CXX \
13297     lt_prog_compiler_wl_CXX \
13298     lt_prog_compiler_pic_CXX \
13299     lt_prog_compiler_static_CXX \
13300     lt_prog_compiler_no_builtin_flag_CXX \
13301     export_dynamic_flag_spec_CXX \
13302     thread_safe_flag_spec_CXX \
13303     whole_archive_flag_spec_CXX \
13304     enable_shared_with_static_runtimes_CXX \
13305     old_archive_cmds_CXX \
13306     old_archive_from_new_cmds_CXX \
13307     predep_objects_CXX \
13308     postdep_objects_CXX \
13309     predeps_CXX \
13310     postdeps_CXX \
13311     compiler_lib_search_path_CXX \
13312     archive_cmds_CXX \
13313     archive_expsym_cmds_CXX \
13314     postinstall_cmds_CXX \
13315     postuninstall_cmds_CXX \
13316     old_archive_from_expsyms_cmds_CXX \
13317     allow_undefined_flag_CXX \
13318     no_undefined_flag_CXX \
13319     export_symbols_cmds_CXX \
13320     hardcode_libdir_flag_spec_CXX \
13321     hardcode_libdir_flag_spec_ld_CXX \
13322     hardcode_libdir_separator_CXX \
13323     hardcode_automatic_CXX \
13324     module_cmds_CXX \
13325     module_expsym_cmds_CXX \
13326     lt_cv_prog_compiler_c_o_CXX \
13327     exclude_expsyms_CXX \
13328     include_expsyms_CXX; do
13329
13330     case $var in
13331     old_archive_cmds_CXX | \
13332     old_archive_from_new_cmds_CXX | \
13333     archive_cmds_CXX | \
13334     archive_expsym_cmds_CXX | \
13335     module_cmds_CXX | \
13336     module_expsym_cmds_CXX | \
13337     old_archive_from_expsyms_cmds_CXX | \
13338     export_symbols_cmds_CXX | \
13339     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13340     postinstall_cmds | postuninstall_cmds | \
13341     old_postinstall_cmds | old_postuninstall_cmds | \
13342     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13343       # Double-quote double-evaled strings.
13344       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13345       ;;
13346     *)
13347       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13348       ;;
13349     esac
13350   done
13351
13352   case $lt_echo in
13353   *'\$0 --fallback-echo"')
13354     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13355     ;;
13356   esac
13357
13358 cfgfile="$ofile"
13359
13360   cat <<__EOF__ >> "$cfgfile"
13361 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13362
13363 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13364
13365 # Shell to use when invoking shell scripts.
13366 SHELL=$lt_SHELL
13367
13368 # Whether or not to build shared libraries.
13369 build_libtool_libs=$enable_shared
13370
13371 # Whether or not to build static libraries.
13372 build_old_libs=$enable_static
13373
13374 # Whether or not to add -lc for building shared libraries.
13375 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13376
13377 # Whether or not to disallow shared libs when runtime libs are static
13378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13379
13380 # Whether or not to optimize for fast installation.
13381 fast_install=$enable_fast_install
13382
13383 # The host system.
13384 host_alias=$host_alias
13385 host=$host
13386
13387 # An echo program that does not interpret backslashes.
13388 echo=$lt_echo
13389
13390 # The archiver.
13391 AR=$lt_AR
13392 AR_FLAGS=$lt_AR_FLAGS
13393
13394 # A C compiler.
13395 LTCC=$lt_LTCC
13396
13397 # A language-specific compiler.
13398 CC=$lt_compiler_CXX
13399
13400 # Is the compiler the GNU C compiler?
13401 with_gcc=$GCC_CXX
13402
13403 # An ERE matcher.
13404 EGREP=$lt_EGREP
13405
13406 # The linker used to build libraries.
13407 LD=$lt_LD_CXX
13408
13409 # Whether we need hard or soft links.
13410 LN_S=$lt_LN_S
13411
13412 # A BSD-compatible nm program.
13413 NM=$lt_NM
13414
13415 # A symbol stripping program
13416 STRIP=$lt_STRIP
13417
13418 # Used to examine libraries when file_magic_cmd begins "file"
13419 MAGIC_CMD=$MAGIC_CMD
13420
13421 # Used on cygwin: DLL creation program.
13422 DLLTOOL="$DLLTOOL"
13423
13424 # Used on cygwin: object dumper.
13425 OBJDUMP="$OBJDUMP"
13426
13427 # Used on cygwin: assembler.
13428 AS="$AS"
13429
13430 # The name of the directory that contains temporary libtool files.
13431 objdir=$objdir
13432
13433 # How to create reloadable object files.
13434 reload_flag=$lt_reload_flag
13435 reload_cmds=$lt_reload_cmds
13436
13437 # How to pass a linker flag through the compiler.
13438 wl=$lt_lt_prog_compiler_wl_CXX
13439
13440 # Object file suffix (normally "o").
13441 objext="$ac_objext"
13442
13443 # Old archive suffix (normally "a").
13444 libext="$libext"
13445
13446 # Shared library suffix (normally ".so").
13447 shrext_cmds='$shrext_cmds'
13448
13449 # Executable file suffix (normally "").
13450 exeext="$exeext"
13451
13452 # Additional compiler flags for building library objects.
13453 pic_flag=$lt_lt_prog_compiler_pic_CXX
13454 pic_mode=$pic_mode
13455
13456 # What is the maximum length of a command?
13457 max_cmd_len=$lt_cv_sys_max_cmd_len
13458
13459 # Does compiler simultaneously support -c and -o options?
13460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13461
13462 # Must we lock files when doing compilation ?
13463 need_locks=$lt_need_locks
13464
13465 # Do we need the lib prefix for modules?
13466 need_lib_prefix=$need_lib_prefix
13467
13468 # Do we need a version for libraries?
13469 need_version=$need_version
13470
13471 # Whether dlopen is supported.
13472 dlopen_support=$enable_dlopen
13473
13474 # Whether dlopen of programs is supported.
13475 dlopen_self=$enable_dlopen_self
13476
13477 # Whether dlopen of statically linked programs is supported.
13478 dlopen_self_static=$enable_dlopen_self_static
13479
13480 # Compiler flag to prevent dynamic linking.
13481 link_static_flag=$lt_lt_prog_compiler_static_CXX
13482
13483 # Compiler flag to turn off builtin functions.
13484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13485
13486 # Compiler flag to allow reflexive dlopens.
13487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13488
13489 # Compiler flag to generate shared objects directly from archives.
13490 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13491
13492 # Compiler flag to generate thread-safe objects.
13493 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13494
13495 # Library versioning type.
13496 version_type=$version_type
13497
13498 # Format of library name prefix.
13499 libname_spec=$lt_libname_spec
13500
13501 # List of archive names.  First name is the real one, the rest are links.
13502 # The last name is the one that the linker finds with -lNAME.
13503 library_names_spec=$lt_library_names_spec
13504
13505 # The coded name of the library, if different from the real name.
13506 soname_spec=$lt_soname_spec
13507
13508 # Commands used to build and install an old-style archive.
13509 RANLIB=$lt_RANLIB
13510 old_archive_cmds=$lt_old_archive_cmds_CXX
13511 old_postinstall_cmds=$lt_old_postinstall_cmds
13512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13513
13514 # Create an old-style archive from a shared archive.
13515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13516
13517 # Create a temporary old-style archive to link instead of a shared archive.
13518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13519
13520 # Commands used to build and install a shared archive.
13521 archive_cmds=$lt_archive_cmds_CXX
13522 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13523 postinstall_cmds=$lt_postinstall_cmds
13524 postuninstall_cmds=$lt_postuninstall_cmds
13525
13526 # Commands used to build a loadable module (assumed same as above if empty)
13527 module_cmds=$lt_module_cmds_CXX
13528 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13529
13530 # Commands to strip libraries.
13531 old_striplib=$lt_old_striplib
13532 striplib=$lt_striplib
13533
13534 # Dependencies to place before the objects being linked to create a
13535 # shared library.
13536 predep_objects=$lt_predep_objects_CXX
13537
13538 # Dependencies to place after the objects being linked to create a
13539 # shared library.
13540 postdep_objects=$lt_postdep_objects_CXX
13541
13542 # Dependencies to place before the objects being linked to create a
13543 # shared library.
13544 predeps=$lt_predeps_CXX
13545
13546 # Dependencies to place after the objects being linked to create a
13547 # shared library.
13548 postdeps=$lt_postdeps_CXX
13549
13550 # The library search path used internally by the compiler when linking
13551 # a shared library.
13552 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13553
13554 # Method to check whether dependent libraries are shared objects.
13555 deplibs_check_method=$lt_deplibs_check_method
13556
13557 # Command to use when deplibs_check_method == file_magic.
13558 file_magic_cmd=$lt_file_magic_cmd
13559
13560 # Flag that allows shared libraries with undefined symbols to be built.
13561 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13562
13563 # Flag that forces no undefined symbols.
13564 no_undefined_flag=$lt_no_undefined_flag_CXX
13565
13566 # Commands used to finish a libtool library installation in a directory.
13567 finish_cmds=$lt_finish_cmds
13568
13569 # Same as above, but a single script fragment to be evaled but not shown.
13570 finish_eval=$lt_finish_eval
13571
13572 # Take the output of nm and produce a listing of raw symbols and C names.
13573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13574
13575 # Transform the output of nm in a proper C declaration
13576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13577
13578 # Transform the output of nm in a C name address pair
13579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13580
13581 # This is the shared library runtime path variable.
13582 runpath_var=$runpath_var
13583
13584 # This is the shared library path variable.
13585 shlibpath_var=$shlibpath_var
13586
13587 # Is shlibpath searched before the hard-coded library search path?
13588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13589
13590 # How to hardcode a shared library path into an executable.
13591 hardcode_action=$hardcode_action_CXX
13592
13593 # Whether we should hardcode library paths into libraries.
13594 hardcode_into_libs=$hardcode_into_libs
13595
13596 # Flag to hardcode \$libdir into a binary during linking.
13597 # This must work even if \$libdir does not exist.
13598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13599
13600 # If ld is used when linking, flag to hardcode \$libdir into
13601 # a binary during linking. This must work even if \$libdir does
13602 # not exist.
13603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13604
13605 # Whether we need a single -rpath flag with a separated argument.
13606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13607
13608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13609 # resulting binary.
13610 hardcode_direct=$hardcode_direct_CXX
13611
13612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13613 # resulting binary.
13614 hardcode_minus_L=$hardcode_minus_L_CXX
13615
13616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13617 # the resulting binary.
13618 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13619
13620 # Set to yes if building a shared library automatically hardcodes DIR into the library
13621 # and all subsequent libraries and executables linked against it.
13622 hardcode_automatic=$hardcode_automatic_CXX
13623
13624 # Variables whose values should be saved in libtool wrapper scripts and
13625 # restored at relink time.
13626 variables_saved_for_relink="$variables_saved_for_relink"
13627
13628 # Whether libtool must link a program against all its dependency libraries.
13629 link_all_deplibs=$link_all_deplibs_CXX
13630
13631 # Compile-time system search path for libraries
13632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13633
13634 # Run-time system search path for libraries
13635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13636
13637 # Fix the shell variable \$srcfile for the compiler.
13638 fix_srcfile_path="$fix_srcfile_path_CXX"
13639
13640 # Set to yes if exported symbols are required.
13641 always_export_symbols=$always_export_symbols_CXX
13642
13643 # The commands to list exported symbols.
13644 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13645
13646 # The commands to extract the exported symbol list from a shared archive.
13647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13648
13649 # Symbols that should not be listed in the preloaded symbols.
13650 exclude_expsyms=$lt_exclude_expsyms_CXX
13651
13652 # Symbols that must always be exported.
13653 include_expsyms=$lt_include_expsyms_CXX
13654
13655 # ### END LIBTOOL TAG CONFIG: $tagname
13656
13657 __EOF__
13658
13659
13660 else
13661   # If there is no Makefile yet, we rely on a make rule to execute
13662   # `config.status --recheck' to rerun these tests and create the
13663   # libtool script then.
13664   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13665   if test -f "$ltmain_in"; then
13666     test -f Makefile && make "$ltmain"
13667   fi
13668 fi
13669
13670
13671 ac_ext=c
13672 ac_cpp='$CPP $CPPFLAGS'
13673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13676
13677 CC=$lt_save_CC
13678 LDCXX=$LD
13679 LD=$lt_save_LD
13680 GCC=$lt_save_GCC
13681 with_gnu_ldcxx=$with_gnu_ld
13682 with_gnu_ld=$lt_save_with_gnu_ld
13683 lt_cv_path_LDCXX=$lt_cv_path_LD
13684 lt_cv_path_LD=$lt_save_path_LD
13685 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13686 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13687
13688         else
13689           tagname=""
13690         fi
13691         ;;
13692
13693       F77)
13694         if test -n "$F77" && test "X$F77" != "Xno"; then
13695
13696 ac_ext=f
13697 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13698 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13699 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13700
13701
13702 archive_cmds_need_lc_F77=no
13703 allow_undefined_flag_F77=
13704 always_export_symbols_F77=no
13705 archive_expsym_cmds_F77=
13706 export_dynamic_flag_spec_F77=
13707 hardcode_direct_F77=no
13708 hardcode_libdir_flag_spec_F77=
13709 hardcode_libdir_flag_spec_ld_F77=
13710 hardcode_libdir_separator_F77=
13711 hardcode_minus_L_F77=no
13712 hardcode_automatic_F77=no
13713 module_cmds_F77=
13714 module_expsym_cmds_F77=
13715 link_all_deplibs_F77=unknown
13716 old_archive_cmds_F77=$old_archive_cmds
13717 no_undefined_flag_F77=
13718 whole_archive_flag_spec_F77=
13719 enable_shared_with_static_runtimes_F77=no
13720
13721 # Source file extension for f77 test sources.
13722 ac_ext=f
13723
13724 # Object file extension for compiled f77 test sources.
13725 objext=o
13726 objext_F77=$objext
13727
13728 # Code to be used in simple compile tests
13729 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13730
13731 # Code to be used in simple link tests
13732 lt_simple_link_test_code="      program t\n      end\n"
13733
13734 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13735
13736 # If no C compiler was specified, use CC.
13737 LTCC=${LTCC-"$CC"}
13738
13739 # Allow CC to be a program name with arguments.
13740 compiler=$CC
13741
13742
13743 # Allow CC to be a program name with arguments.
13744 lt_save_CC="$CC"
13745 CC=${F77-"f77"}
13746 compiler=$CC
13747 compiler_F77=$CC
13748 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13749
13750 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13751 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13752 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13753 echo "${ECHO_T}$can_build_shared" >&6
13754
13755 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13756 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13757 test "$can_build_shared" = "no" && enable_shared=no
13758
13759 # On AIX, shared libraries and static libraries use the same namespace, and
13760 # are all built from PIC.
13761 case "$host_os" in
13762 aix3*)
13763   test "$enable_shared" = yes && enable_static=no
13764   if test -n "$RANLIB"; then
13765     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13766     postinstall_cmds='$RANLIB $lib'
13767   fi
13768   ;;
13769 aix4* | aix5*)
13770   test "$enable_shared" = yes && enable_static=no
13771   ;;
13772 esac
13773 echo "$as_me:$LINENO: result: $enable_shared" >&5
13774 echo "${ECHO_T}$enable_shared" >&6
13775
13776 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13777 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13778 # Make sure either enable_shared or enable_static is yes.
13779 test "$enable_shared" = yes || enable_static=yes
13780 echo "$as_me:$LINENO: result: $enable_static" >&5
13781 echo "${ECHO_T}$enable_static" >&6
13782
13783 test "$ld_shlibs_F77" = no && can_build_shared=no
13784
13785 GCC_F77="$G77"
13786 LD_F77="$LD"
13787
13788 lt_prog_compiler_wl_F77=
13789 lt_prog_compiler_pic_F77=
13790 lt_prog_compiler_static_F77=
13791
13792 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13793 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13794
13795   if test "$GCC" = yes; then
13796     lt_prog_compiler_wl_F77='-Wl,'
13797     lt_prog_compiler_static_F77='-static'
13798
13799     case $host_os in
13800       aix*)
13801       # All AIX code is PIC.
13802       if test "$host_cpu" = ia64; then
13803         # AIX 5 now supports IA64 processor
13804         lt_prog_compiler_static_F77='-Bstatic'
13805       fi
13806       ;;
13807
13808     amigaos*)
13809       # FIXME: we need at least 68020 code to build shared libraries, but
13810       # adding the `-m68020' flag to GCC prevents building anything better,
13811       # like `-m68040'.
13812       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13813       ;;
13814
13815     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13816       # PIC is the default for these OSes.
13817       ;;
13818
13819     mingw* | pw32* | os2*)
13820       # This hack is so that the source file can tell whether it is being
13821       # built for inclusion in a dll (and should export symbols for example).
13822       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13823       ;;
13824
13825     darwin* | rhapsody*)
13826       # PIC is the default on this platform
13827       # Common symbols not allowed in MH_DYLIB files
13828       lt_prog_compiler_pic_F77='-fno-common'
13829       ;;
13830
13831     msdosdjgpp*)
13832       # Just because we use GCC doesn't mean we suddenly get shared libraries
13833       # on systems that don't support them.
13834       lt_prog_compiler_can_build_shared_F77=no
13835       enable_shared=no
13836       ;;
13837
13838     sysv4*MP*)
13839       if test -d /usr/nec; then
13840         lt_prog_compiler_pic_F77=-Kconform_pic
13841       fi
13842       ;;
13843
13844     hpux*)
13845       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13846       # not for PA HP-UX.
13847       case "$host_cpu" in
13848       hppa*64*|ia64*)
13849         # +Z the default
13850         ;;
13851       *)
13852         lt_prog_compiler_pic_F77='-fPIC'
13853         ;;
13854       esac
13855       ;;
13856
13857     *)
13858       lt_prog_compiler_pic_F77='-fPIC'
13859       ;;
13860     esac
13861   else
13862     # PORTME Check for flag to pass linker flags through the system compiler.
13863     case $host_os in
13864     aix*)
13865       lt_prog_compiler_wl_F77='-Wl,'
13866       if test "$host_cpu" = ia64; then
13867         # AIX 5 now supports IA64 processor
13868         lt_prog_compiler_static_F77='-Bstatic'
13869       else
13870         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13871       fi
13872       ;;
13873
13874     mingw* | pw32* | os2*)
13875       # This hack is so that the source file can tell whether it is being
13876       # built for inclusion in a dll (and should export symbols for example).
13877       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13878       ;;
13879
13880     hpux9* | hpux10* | hpux11*)
13881       lt_prog_compiler_wl_F77='-Wl,'
13882       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13883       # not for PA HP-UX.
13884       case "$host_cpu" in
13885       hppa*64*|ia64*)
13886         # +Z the default
13887         ;;
13888       *)
13889         lt_prog_compiler_pic_F77='+Z'
13890         ;;
13891       esac
13892       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13893       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13894       ;;
13895
13896     irix5* | irix6* | nonstopux*)
13897       lt_prog_compiler_wl_F77='-Wl,'
13898       # PIC (with -KPIC) is the default.
13899       lt_prog_compiler_static_F77='-non_shared'
13900       ;;
13901
13902     newsos6)
13903       lt_prog_compiler_pic_F77='-KPIC'
13904       lt_prog_compiler_static_F77='-Bstatic'
13905       ;;
13906
13907     linux*)
13908       case $CC in
13909       icc* | ecc*)
13910         lt_prog_compiler_wl_F77='-Wl,'
13911         lt_prog_compiler_pic_F77='-KPIC'
13912         lt_prog_compiler_static_F77='-static'
13913         ;;
13914       ccc*)
13915         lt_prog_compiler_wl_F77='-Wl,'
13916         # All Alpha code is PIC.
13917         lt_prog_compiler_static_F77='-non_shared'
13918         ;;
13919       esac
13920       ;;
13921
13922     osf3* | osf4* | osf5*)
13923       lt_prog_compiler_wl_F77='-Wl,'
13924       # All OSF/1 code is PIC.
13925       lt_prog_compiler_static_F77='-non_shared'
13926       ;;
13927
13928     sco3.2v5*)
13929       lt_prog_compiler_pic_F77='-Kpic'
13930       lt_prog_compiler_static_F77='-dn'
13931       ;;
13932
13933     solaris*)
13934       lt_prog_compiler_wl_F77='-Wl,'
13935       lt_prog_compiler_pic_F77='-KPIC'
13936       lt_prog_compiler_static_F77='-Bstatic'
13937       ;;
13938
13939     sunos4*)
13940       lt_prog_compiler_wl_F77='-Qoption ld '
13941       lt_prog_compiler_pic_F77='-PIC'
13942       lt_prog_compiler_static_F77='-Bstatic'
13943       ;;
13944
13945     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13946       lt_prog_compiler_wl_F77='-Wl,'
13947       lt_prog_compiler_pic_F77='-KPIC'
13948       lt_prog_compiler_static_F77='-Bstatic'
13949       ;;
13950
13951     sysv4*MP*)
13952       if test -d /usr/nec ;then
13953         lt_prog_compiler_pic_F77='-Kconform_pic'
13954         lt_prog_compiler_static_F77='-Bstatic'
13955       fi
13956       ;;
13957
13958     uts4*)
13959       lt_prog_compiler_pic_F77='-pic'
13960       lt_prog_compiler_static_F77='-Bstatic'
13961       ;;
13962
13963     *)
13964       lt_prog_compiler_can_build_shared_F77=no
13965       ;;
13966     esac
13967   fi
13968
13969 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13970 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13971
13972 #
13973 # Check to make sure the PIC flag actually works.
13974 #
13975 if test -n "$lt_prog_compiler_pic_F77"; then
13976
13977 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13979 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13980   echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982   lt_prog_compiler_pic_works_F77=no
13983   ac_outfile=conftest.$ac_objext
13984    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13985    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13986    # Insert the option either (1) after the last *FLAGS variable, or
13987    # (2) before a word containing "conftest.", or (3) at the end.
13988    # Note that $ac_compile itself does not contain backslashes and begins
13989    # with a dollar sign (not a hyphen), so the echo should work correctly.
13990    # The option is referenced via a variable to avoid confusing sed.
13991    lt_compile=`echo "$ac_compile" | $SED \
13992    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13994    -e 's:$: $lt_compiler_flag:'`
13995    (eval echo "\"\$as_me:13995: $lt_compile\"" >&5)
13996    (eval "$lt_compile" 2>conftest.err)
13997    ac_status=$?
13998    cat conftest.err >&5
13999    echo "$as_me:13999: \$? = $ac_status" >&5
14000    if (exit $ac_status) && test -s "$ac_outfile"; then
14001      # The compiler can only warn and ignore the option if not recognized
14002      # So say no if there are warnings
14003      if test ! -s conftest.err; then
14004        lt_prog_compiler_pic_works_F77=yes
14005      fi
14006    fi
14007    $rm conftest*
14008
14009 fi
14010 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14011 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14012
14013 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14014     case $lt_prog_compiler_pic_F77 in
14015      "" | " "*) ;;
14016      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14017      esac
14018 else
14019     lt_prog_compiler_pic_F77=
14020      lt_prog_compiler_can_build_shared_F77=no
14021 fi
14022
14023 fi
14024 case "$host_os" in
14025   # For platforms which do not support PIC, -DPIC is meaningless:
14026   *djgpp*)
14027     lt_prog_compiler_pic_F77=
14028     ;;
14029   *)
14030     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14031     ;;
14032 esac
14033
14034 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14035 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14036 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14037   echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039   lt_cv_prog_compiler_c_o_F77=no
14040    $rm -r conftest 2>/dev/null
14041    mkdir conftest
14042    cd conftest
14043    mkdir out
14044    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14045
14046    lt_compiler_flag="-o out/conftest2.$ac_objext"
14047    # Insert the option either (1) after the last *FLAGS variable, or
14048    # (2) before a word containing "conftest.", or (3) at the end.
14049    # Note that $ac_compile itself does not contain backslashes and begins
14050    # with a dollar sign (not a hyphen), so the echo should work correctly.
14051    lt_compile=`echo "$ac_compile" | $SED \
14052    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14053    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14054    -e 's:$: $lt_compiler_flag:'`
14055    (eval echo "\"\$as_me:14055: $lt_compile\"" >&5)
14056    (eval "$lt_compile" 2>out/conftest.err)
14057    ac_status=$?
14058    cat out/conftest.err >&5
14059    echo "$as_me:14059: \$? = $ac_status" >&5
14060    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14061    then
14062      # The compiler can only warn and ignore the option if not recognized
14063      # So say no if there are warnings
14064      if test ! -s out/conftest.err; then
14065        lt_cv_prog_compiler_c_o_F77=yes
14066      fi
14067    fi
14068    chmod u+w .
14069    $rm conftest*
14070    # SGI C++ compiler will create directory out/ii_files/ for
14071    # template instantiation
14072    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14073    $rm out/* && rmdir out
14074    cd ..
14075    rmdir conftest
14076    $rm conftest*
14077
14078 fi
14079 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14080 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14081
14082
14083 hard_links="nottested"
14084 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14085   # do not overwrite the value of need_locks provided by the user
14086   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14087 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14088   hard_links=yes
14089   $rm conftest*
14090   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14091   touch conftest.a
14092   ln conftest.a conftest.b 2>&5 || hard_links=no
14093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14094   echo "$as_me:$LINENO: result: $hard_links" >&5
14095 echo "${ECHO_T}$hard_links" >&6
14096   if test "$hard_links" = no; then
14097     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14098 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14099     need_locks=warn
14100   fi
14101 else
14102   need_locks=no
14103 fi
14104
14105 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14106 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14107
14108   runpath_var=
14109   allow_undefined_flag_F77=
14110   enable_shared_with_static_runtimes_F77=no
14111   archive_cmds_F77=
14112   archive_expsym_cmds_F77=
14113   old_archive_From_new_cmds_F77=
14114   old_archive_from_expsyms_cmds_F77=
14115   export_dynamic_flag_spec_F77=
14116   whole_archive_flag_spec_F77=
14117   thread_safe_flag_spec_F77=
14118   hardcode_libdir_flag_spec_F77=
14119   hardcode_libdir_flag_spec_ld_F77=
14120   hardcode_libdir_separator_F77=
14121   hardcode_direct_F77=no
14122   hardcode_minus_L_F77=no
14123   hardcode_shlibpath_var_F77=unsupported
14124   link_all_deplibs_F77=unknown
14125   hardcode_automatic_F77=no
14126   module_cmds_F77=
14127   module_expsym_cmds_F77=
14128   always_export_symbols_F77=no
14129   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14130   # include_expsyms should be a list of space-separated symbols to be *always*
14131   # included in the symbol list
14132   include_expsyms_F77=
14133   # exclude_expsyms can be an extended regexp of symbols to exclude
14134   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14135   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14136   # as well as any symbol that contains `d'.
14137   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14138   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14139   # platforms (ab)use it in PIC code, but their linkers get confused if
14140   # the symbol is explicitly referenced.  Since portable code cannot
14141   # rely on this symbol name, it's probably fine to never include it in
14142   # preloaded symbol tables.
14143   extract_expsyms_cmds=
14144
14145   case $host_os in
14146   cygwin* | mingw* | pw32*)
14147     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14148     # When not using gcc, we currently assume that we are using
14149     # Microsoft Visual C++.
14150     if test "$GCC" != yes; then
14151       with_gnu_ld=no
14152     fi
14153     ;;
14154   openbsd*)
14155     with_gnu_ld=no
14156     ;;
14157   esac
14158
14159   ld_shlibs_F77=yes
14160   if test "$with_gnu_ld" = yes; then
14161     # If archive_cmds runs LD, not CC, wlarc should be empty
14162     wlarc='${wl}'
14163
14164     # See if GNU ld supports shared libraries.
14165     case $host_os in
14166     aix3* | aix4* | aix5*)
14167       # On AIX/PPC, the GNU linker is very broken
14168       if test "$host_cpu" != ia64; then
14169         ld_shlibs_F77=no
14170         cat <<EOF 1>&2
14171
14172 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14173 *** to be unable to reliably create shared libraries on AIX.
14174 *** Therefore, libtool is disabling shared libraries support.  If you
14175 *** really care for shared libraries, you may want to modify your PATH
14176 *** so that a non-GNU linker is found, and then restart.
14177
14178 EOF
14179       fi
14180       ;;
14181
14182     amigaos*)
14183       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)'
14184       hardcode_libdir_flag_spec_F77='-L$libdir'
14185       hardcode_minus_L_F77=yes
14186
14187       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14188       # that the semantics of dynamic libraries on AmigaOS, at least up
14189       # to version 4, is to share data among multiple programs linked
14190       # with the same dynamic library.  Since this doesn't match the
14191       # behavior of shared libraries on other platforms, we can't use
14192       # them.
14193       ld_shlibs_F77=no
14194       ;;
14195
14196     beos*)
14197       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14198         allow_undefined_flag_F77=unsupported
14199         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14200         # support --undefined.  This deserves some investigation.  FIXME
14201         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14202       else
14203         ld_shlibs_F77=no
14204       fi
14205       ;;
14206
14207     cygwin* | mingw* | pw32*)
14208       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14209       # as there is no search path for DLLs.
14210       hardcode_libdir_flag_spec_F77='-L$libdir'
14211       allow_undefined_flag_F77=unsupported
14212       always_export_symbols_F77=no
14213       enable_shared_with_static_runtimes_F77=yes
14214       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14215
14216       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14217         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14218         # If the export-symbols file already is a .def file (1st line
14219         # is EXPORTS), use it as is; otherwise, prepend...
14220         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14221           cp $export_symbols $output_objdir/$soname.def;
14222         else
14223           echo EXPORTS > $output_objdir/$soname.def;
14224           cat $export_symbols >> $output_objdir/$soname.def;
14225         fi~
14226         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14227       else
14228         ld_shlibs=no
14229       fi
14230       ;;
14231
14232     netbsd*)
14233       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14234         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14235         wlarc=
14236       else
14237         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14239       fi
14240       ;;
14241
14242     solaris* | sysv5*)
14243       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14244         ld_shlibs_F77=no
14245         cat <<EOF 1>&2
14246
14247 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14248 *** create shared libraries on Solaris systems.  Therefore, libtool
14249 *** is disabling shared libraries support.  We urge you to upgrade GNU
14250 *** binutils to release 2.9.1 or newer.  Another option is to modify
14251 *** your PATH or compiler configuration so that the native linker is
14252 *** used, and then restart.
14253
14254 EOF
14255       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14256         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14257         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14258       else
14259         ld_shlibs_F77=no
14260       fi
14261       ;;
14262
14263     sunos4*)
14264       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14265       wlarc=
14266       hardcode_direct_F77=yes
14267       hardcode_shlibpath_var_F77=no
14268       ;;
14269
14270   linux*)
14271     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14272         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14273         archive_cmds_F77="$tmp_archive_cmds"
14274       supports_anon_versioning=no
14275       case `$LD -v 2>/dev/null` in
14276         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14277         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14278         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14279         *\ 2.11.*) ;; # other 2.11 versions
14280         *) supports_anon_versioning=yes ;;
14281       esac
14282       if test $supports_anon_versioning = yes; then
14283         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14284 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14285 $echo "local: *; };" >> $output_objdir/$libname.ver~
14286         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14287       else
14288         archive_expsym_cmds_F77="$tmp_archive_cmds"
14289       fi
14290     else
14291       ld_shlibs_F77=no
14292     fi
14293     ;;
14294
14295     *)
14296       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14297         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14298         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14299       else
14300         ld_shlibs_F77=no
14301       fi
14302       ;;
14303     esac
14304
14305     if test "$ld_shlibs_F77" = yes; then
14306       runpath_var=LD_RUN_PATH
14307       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14308       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14309       # ancient GNU ld didn't support --whole-archive et. al.
14310       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14311         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14312       else
14313         whole_archive_flag_spec_F77=
14314       fi
14315     fi
14316   else
14317     # PORTME fill in a description of your system's linker (not GNU ld)
14318     case $host_os in
14319     aix3*)
14320       allow_undefined_flag_F77=unsupported
14321       always_export_symbols_F77=yes
14322       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'
14323       # Note: this linker hardcodes the directories in LIBPATH if there
14324       # are no directories specified by -L.
14325       hardcode_minus_L_F77=yes
14326       if test "$GCC" = yes && test -z "$link_static_flag"; then
14327         # Neither direct hardcoding nor static linking is supported with a
14328         # broken collect2.
14329         hardcode_direct_F77=unsupported
14330       fi
14331       ;;
14332
14333     aix4* | aix5*)
14334       if test "$host_cpu" = ia64; then
14335         # On IA64, the linker does run time linking by default, so we don't
14336         # have to do anything special.
14337         aix_use_runtimelinking=no
14338         exp_sym_flag='-Bexport'
14339         no_entry_flag=""
14340       else
14341         # If we're using GNU nm, then we don't want the "-C" option.
14342         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14343         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14344           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'
14345         else
14346           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'
14347         fi
14348         aix_use_runtimelinking=no
14349
14350         # Test if we are trying to use run time linking or normal
14351         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14352         # need to do runtime linking.
14353         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14354           for ld_flag in $LDFLAGS; do
14355           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14356             aix_use_runtimelinking=yes
14357             break
14358           fi
14359           done
14360         esac
14361
14362         exp_sym_flag='-bexport'
14363         no_entry_flag='-bnoentry'
14364       fi
14365
14366       # When large executables or shared objects are built, AIX ld can
14367       # have problems creating the table of contents.  If linking a library
14368       # or program results in "error TOC overflow" add -mminimal-toc to
14369       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14370       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14371
14372       archive_cmds_F77=''
14373       hardcode_direct_F77=yes
14374       hardcode_libdir_separator_F77=':'
14375       link_all_deplibs_F77=yes
14376
14377       if test "$GCC" = yes; then
14378         case $host_os in aix4.012|aix4.012.*)
14379         # We only want to do this on AIX 4.2 and lower, the check
14380         # below for broken collect2 doesn't work under 4.3+
14381           collect2name=`${CC} -print-prog-name=collect2`
14382           if test -f "$collect2name" && \
14383            strings "$collect2name" | grep resolve_lib_name >/dev/null
14384           then
14385           # We have reworked collect2
14386           hardcode_direct_F77=yes
14387           else
14388           # We have old collect2
14389           hardcode_direct_F77=unsupported
14390           # It fails to find uninstalled libraries when the uninstalled
14391           # path is not listed in the libpath.  Setting hardcode_minus_L
14392           # to unsupported forces relinking
14393           hardcode_minus_L_F77=yes
14394           hardcode_libdir_flag_spec_F77='-L$libdir'
14395           hardcode_libdir_separator_F77=
14396           fi
14397         esac
14398         shared_flag='-shared'
14399       else
14400         # not using gcc
14401         if test "$host_cpu" = ia64; then
14402         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14403         # chokes on -Wl,-G. The following line is correct:
14404           shared_flag='-G'
14405         else
14406         if test "$aix_use_runtimelinking" = yes; then
14407             shared_flag='${wl}-G'
14408           else
14409             shared_flag='${wl}-bM:SRE'
14410         fi
14411         fi
14412       fi
14413
14414       # It seems that -bexpall does not export symbols beginning with
14415       # underscore (_), so it is better to generate a list of symbols to export.
14416       always_export_symbols_F77=yes
14417       if test "$aix_use_runtimelinking" = yes; then
14418         # Warning - without using the other runtime loading flags (-brtl),
14419         # -berok will link without error, but may produce a broken library.
14420         allow_undefined_flag_F77='-berok'
14421        # Determine the default libpath from the value encoded in an empty executable.
14422        cat >conftest.$ac_ext <<_ACEOF
14423       program main
14424
14425       end
14426 _ACEOF
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14429   (eval $ac_link) 2>conftest.er1
14430   ac_status=$?
14431   grep -v '^ *+' conftest.er1 >conftest.err
14432   rm -f conftest.er1
14433   cat conftest.err >&5
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); } &&
14436          { ac_try='test -z "$ac_f77_werror_flag"
14437                          || test ! -s conftest.err'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; } &&
14443          { ac_try='test -s conftest$ac_exeext'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449
14450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14451 }'`
14452 # Check for a 64-bit object if we didn't find anything.
14453 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; }
14454 }'`; fi
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459 fi
14460 rm -f conftest.err conftest.$ac_objext \
14461       conftest$ac_exeext conftest.$ac_ext
14462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14463
14464        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14465         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"
14466        else
14467         if test "$host_cpu" = ia64; then
14468           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14469           allow_undefined_flag_F77="-z nodefs"
14470           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"
14471         else
14472          # Determine the default libpath from the value encoded in an empty executable.
14473          cat >conftest.$ac_ext <<_ACEOF
14474       program main
14475
14476       end
14477 _ACEOF
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480   (eval $ac_link) 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_f77_werror_flag"
14488                          || test ! -s conftest.err'
14489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490   (eval $ac_try) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; } &&
14494          { ac_try='test -s conftest$ac_exeext'
14495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496   (eval $ac_try) 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500
14501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14502 }'`
14503 # Check for a 64-bit object if we didn't find anything.
14504 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; }
14505 }'`; fi
14506 else
14507   echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14509
14510 fi
14511 rm -f conftest.err conftest.$ac_objext \
14512       conftest$ac_exeext conftest.$ac_ext
14513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14514
14515          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14516           # Warning - without using the other run time loading flags,
14517           # -berok will link without error, but may produce a broken library.
14518           no_undefined_flag_F77=' ${wl}-bernotok'
14519           allow_undefined_flag_F77=' ${wl}-berok'
14520           # -bexpall does not export symbols beginning with underscore (_)
14521           always_export_symbols_F77=yes
14522           # Exported symbols can be pulled into shared objects from archives
14523           whole_archive_flag_spec_F77=' '
14524           archive_cmds_need_lc_F77=yes
14525           # This is similar to how AIX traditionally builds it's shared libraries.
14526           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'
14527         fi
14528       fi
14529       ;;
14530
14531     amigaos*)
14532       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)'
14533       hardcode_libdir_flag_spec_F77='-L$libdir'
14534       hardcode_minus_L_F77=yes
14535       # see comment about different semantics on the GNU ld section
14536       ld_shlibs_F77=no
14537       ;;
14538
14539     bsdi4*)
14540       export_dynamic_flag_spec_F77=-rdynamic
14541       ;;
14542
14543     cygwin* | mingw* | pw32*)
14544       # When not using gcc, we currently assume that we are using
14545       # Microsoft Visual C++.
14546       # hardcode_libdir_flag_spec is actually meaningless, as there is
14547       # no search path for DLLs.
14548       hardcode_libdir_flag_spec_F77=' '
14549       allow_undefined_flag_F77=unsupported
14550       # Tell ltmain to make .lib files, not .a files.
14551       libext=lib
14552       # Tell ltmain to make .dll files, not .so files.
14553       shrext_cmds=".dll"
14554       # FIXME: Setting linknames here is a bad hack.
14555       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14556       # The linker will automatically build a .lib file if we build a DLL.
14557       old_archive_From_new_cmds_F77='true'
14558       # FIXME: Should let the user specify the lib program.
14559       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14560       fix_srcfile_path='`cygpath -w "$srcfile"`'
14561       enable_shared_with_static_runtimes_F77=yes
14562       ;;
14563
14564     darwin* | rhapsody*)
14565     if test "$GXX" = yes ; then
14566       archive_cmds_need_lc_F77=no
14567       case "$host_os" in
14568       rhapsody* | darwin1.[012])
14569         allow_undefined_flag_F77='-undefined suppress'
14570         ;;
14571       *) # Darwin 1.3 on
14572       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14573         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14574       else
14575         case ${MACOSX_DEPLOYMENT_TARGET} in
14576           10.[012])
14577             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14578             ;;
14579           10.*)
14580             allow_undefined_flag_F77='-undefined dynamic_lookup'
14581             ;;
14582         esac
14583       fi
14584         ;;
14585       esac
14586         lt_int_apple_cc_single_mod=no
14587         output_verbose_link_cmd='echo'
14588         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14589           lt_int_apple_cc_single_mod=yes
14590         fi
14591         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14592           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14593         else
14594         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
14595       fi
14596       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14597       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14598         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14599           archive_expsym_cmds_F77='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}'
14600         else
14601           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
14602         fi
14603           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}'
14604       hardcode_direct_F77=no
14605       hardcode_automatic_F77=yes
14606       hardcode_shlibpath_var_F77=unsupported
14607       whole_archive_flag_spec_F77='-all_load $convenience'
14608       link_all_deplibs_F77=yes
14609     else
14610       ld_shlibs_F77=no
14611     fi
14612       ;;
14613
14614     dgux*)
14615       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14616       hardcode_libdir_flag_spec_F77='-L$libdir'
14617       hardcode_shlibpath_var_F77=no
14618       ;;
14619
14620     freebsd1*)
14621       ld_shlibs_F77=no
14622       ;;
14623
14624     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14625     # support.  Future versions do this automatically, but an explicit c++rt0.o
14626     # does not break anything, and helps significantly (at the cost of a little
14627     # extra space).
14628     freebsd2.2*)
14629       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14630       hardcode_libdir_flag_spec_F77='-R$libdir'
14631       hardcode_direct_F77=yes
14632       hardcode_shlibpath_var_F77=no
14633       ;;
14634
14635     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14636     freebsd2*)
14637       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14638       hardcode_direct_F77=yes
14639       hardcode_minus_L_F77=yes
14640       hardcode_shlibpath_var_F77=no
14641       ;;
14642
14643     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14644     freebsd* | kfreebsd*-gnu)
14645       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14646       hardcode_libdir_flag_spec_F77='-R$libdir'
14647       hardcode_direct_F77=yes
14648       hardcode_shlibpath_var_F77=no
14649       ;;
14650
14651     hpux9*)
14652       if test "$GCC" = yes; then
14653         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'
14654       else
14655         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'
14656       fi
14657       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14658       hardcode_libdir_separator_F77=:
14659       hardcode_direct_F77=yes
14660
14661       # hardcode_minus_L: Not really in the search PATH,
14662       # but as the default location of the library.
14663       hardcode_minus_L_F77=yes
14664       export_dynamic_flag_spec_F77='${wl}-E'
14665       ;;
14666
14667     hpux10* | hpux11*)
14668       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14669         case "$host_cpu" in
14670         hppa*64*|ia64*)
14671           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14672           ;;
14673         *)
14674           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14675           ;;
14676         esac
14677       else
14678         case "$host_cpu" in
14679         hppa*64*|ia64*)
14680           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14681           ;;
14682         *)
14683           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14684           ;;
14685         esac
14686       fi
14687       if test "$with_gnu_ld" = no; then
14688         case "$host_cpu" in
14689         hppa*64*)
14690           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14691           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14692           hardcode_libdir_separator_F77=:
14693           hardcode_direct_F77=no
14694           hardcode_shlibpath_var_F77=no
14695           ;;
14696         ia64*)
14697           hardcode_libdir_flag_spec_F77='-L$libdir'
14698           hardcode_direct_F77=no
14699           hardcode_shlibpath_var_F77=no
14700
14701           # hardcode_minus_L: Not really in the search PATH,
14702           # but as the default location of the library.
14703           hardcode_minus_L_F77=yes
14704           ;;
14705         *)
14706           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14707           hardcode_libdir_separator_F77=:
14708           hardcode_direct_F77=yes
14709           export_dynamic_flag_spec_F77='${wl}-E'
14710
14711           # hardcode_minus_L: Not really in the search PATH,
14712           # but as the default location of the library.
14713           hardcode_minus_L_F77=yes
14714           ;;
14715         esac
14716       fi
14717       ;;
14718
14719     irix5* | irix6* | nonstopux*)
14720       if test "$GCC" = yes; then
14721         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'
14722       else
14723         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'
14724         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14725       fi
14726       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14727       hardcode_libdir_separator_F77=:
14728       link_all_deplibs_F77=yes
14729       ;;
14730
14731     netbsd*)
14732       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14733         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14734       else
14735         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14736       fi
14737       hardcode_libdir_flag_spec_F77='-R$libdir'
14738       hardcode_direct_F77=yes
14739       hardcode_shlibpath_var_F77=no
14740       ;;
14741
14742     newsos6)
14743       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14744       hardcode_direct_F77=yes
14745       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14746       hardcode_libdir_separator_F77=:
14747       hardcode_shlibpath_var_F77=no
14748       ;;
14749
14750     openbsd*)
14751       hardcode_direct_F77=yes
14752       hardcode_shlibpath_var_F77=no
14753       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14754         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14755         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14756         export_dynamic_flag_spec_F77='${wl}-E'
14757       else
14758        case $host_os in
14759          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14760            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14761            hardcode_libdir_flag_spec_F77='-R$libdir'
14762            ;;
14763          *)
14764            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14765            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14766            ;;
14767        esac
14768       fi
14769       ;;
14770
14771     os2*)
14772       hardcode_libdir_flag_spec_F77='-L$libdir'
14773       hardcode_minus_L_F77=yes
14774       allow_undefined_flag_F77=unsupported
14775       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'
14776       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14777       ;;
14778
14779     osf3*)
14780       if test "$GCC" = yes; then
14781         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14782         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'
14783       else
14784         allow_undefined_flag_F77=' -expect_unresolved \*'
14785         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'
14786       fi
14787       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14788       hardcode_libdir_separator_F77=:
14789       ;;
14790
14791     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14792       if test "$GCC" = yes; then
14793         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14794         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'
14795         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14796       else
14797         allow_undefined_flag_F77=' -expect_unresolved \*'
14798         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'
14799         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~
14800         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14801
14802         # Both c and cxx compiler support -rpath directly
14803         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14804       fi
14805       hardcode_libdir_separator_F77=:
14806       ;;
14807
14808     sco3.2v5*)
14809       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14810       hardcode_shlibpath_var_F77=no
14811       export_dynamic_flag_spec_F77='${wl}-Bexport'
14812       runpath_var=LD_RUN_PATH
14813       hardcode_runpath_var=yes
14814       ;;
14815
14816     solaris*)
14817       no_undefined_flag_F77=' -z text'
14818       if test "$GCC" = yes; then
14819         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14820         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14821           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14822       else
14823         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14825         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14826       fi
14827       hardcode_libdir_flag_spec_F77='-R$libdir'
14828       hardcode_shlibpath_var_F77=no
14829       case $host_os in
14830       solaris2.[0-5] | solaris2.[0-5].*) ;;
14831       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14832         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14833       esac
14834       link_all_deplibs_F77=yes
14835       ;;
14836
14837     sunos4*)
14838       if test "x$host_vendor" = xsequent; then
14839         # Use $CC to link under sequent, because it throws in some extra .o
14840         # files that make .init and .fini sections work.
14841         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14842       else
14843         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14844       fi
14845       hardcode_libdir_flag_spec_F77='-L$libdir'
14846       hardcode_direct_F77=yes
14847       hardcode_minus_L_F77=yes
14848       hardcode_shlibpath_var_F77=no
14849       ;;
14850
14851     sysv4)
14852       case $host_vendor in
14853         sni)
14854           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14855           hardcode_direct_F77=yes # is this really true???
14856         ;;
14857         siemens)
14858           ## LD is ld it makes a PLAMLIB
14859           ## CC just makes a GrossModule.
14860           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14861           reload_cmds_F77='$CC -r -o $output$reload_objs'
14862           hardcode_direct_F77=no
14863         ;;
14864         motorola)
14865           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14866           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14867         ;;
14868       esac
14869       runpath_var='LD_RUN_PATH'
14870       hardcode_shlibpath_var_F77=no
14871       ;;
14872
14873     sysv4.3*)
14874       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14875       hardcode_shlibpath_var_F77=no
14876       export_dynamic_flag_spec_F77='-Bexport'
14877       ;;
14878
14879     sysv4*MP*)
14880       if test -d /usr/nec; then
14881         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882         hardcode_shlibpath_var_F77=no
14883         runpath_var=LD_RUN_PATH
14884         hardcode_runpath_var=yes
14885         ld_shlibs_F77=yes
14886       fi
14887       ;;
14888
14889     sysv4.2uw2*)
14890       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14891       hardcode_direct_F77=yes
14892       hardcode_minus_L_F77=no
14893       hardcode_shlibpath_var_F77=no
14894       hardcode_runpath_var=yes
14895       runpath_var=LD_RUN_PATH
14896       ;;
14897
14898    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14899       no_undefined_flag_F77='${wl}-z ${wl}text'
14900       if test "$GCC" = yes; then
14901         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14902       else
14903         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14904       fi
14905       runpath_var='LD_RUN_PATH'
14906       hardcode_shlibpath_var_F77=no
14907       ;;
14908
14909     sysv5*)
14910       no_undefined_flag_F77=' -z text'
14911       # $CC -shared without GNU ld will not create a library from C++
14912       # object files and a static libstdc++, better avoid it by now
14913       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14914       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14915                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14916       hardcode_libdir_flag_spec_F77=
14917       hardcode_shlibpath_var_F77=no
14918       runpath_var='LD_RUN_PATH'
14919       ;;
14920
14921     uts4*)
14922       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14923       hardcode_libdir_flag_spec_F77='-L$libdir'
14924       hardcode_shlibpath_var_F77=no
14925       ;;
14926
14927     *)
14928       ld_shlibs_F77=no
14929       ;;
14930     esac
14931   fi
14932
14933 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14934 echo "${ECHO_T}$ld_shlibs_F77" >&6
14935 test "$ld_shlibs_F77" = no && can_build_shared=no
14936
14937 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14938 if test "$GCC" = yes; then
14939   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14940 fi
14941
14942 #
14943 # Do we need to explicitly link libc?
14944 #
14945 case "x$archive_cmds_need_lc_F77" in
14946 x|xyes)
14947   # Assume -lc should be added
14948   archive_cmds_need_lc_F77=yes
14949
14950   if test "$enable_shared" = yes && test "$GCC" = yes; then
14951     case $archive_cmds_F77 in
14952     *'~'*)
14953       # FIXME: we may have to deal with multi-command sequences.
14954       ;;
14955     '$CC '*)
14956       # Test whether the compiler implicitly links with -lc since on some
14957       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14958       # to ld, don't add -lc before -lgcc.
14959       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14960 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14961       $rm conftest*
14962       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14963
14964       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965   (eval $ac_compile) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } 2>conftest.err; then
14969         soname=conftest
14970         lib=conftest
14971         libobjs=conftest.$ac_objext
14972         deplibs=
14973         wl=$lt_prog_compiler_wl_F77
14974         compiler_flags=-v
14975         linker_flags=-v
14976         verstring=
14977         output_objdir=.
14978         libname=conftest
14979         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14980         allow_undefined_flag_F77=
14981         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14982   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }
14986         then
14987           archive_cmds_need_lc_F77=no
14988         else
14989           archive_cmds_need_lc_F77=yes
14990         fi
14991         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14992       else
14993         cat conftest.err 1>&5
14994       fi
14995       $rm conftest*
14996       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14997 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14998       ;;
14999     esac
15000   fi
15001   ;;
15002 esac
15003
15004 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15005 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15006 library_names_spec=
15007 libname_spec='lib$name'
15008 soname_spec=
15009 shrext_cmds=".so"
15010 postinstall_cmds=
15011 postuninstall_cmds=
15012 finish_cmds=
15013 finish_eval=
15014 shlibpath_var=
15015 shlibpath_overrides_runpath=unknown
15016 version_type=none
15017 dynamic_linker="$host_os ld.so"
15018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15019 if test "$GCC" = yes; then
15020   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15021   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15022     # if the path contains ";" then we assume it to be the separator
15023     # otherwise default to the standard path separator (i.e. ":") - it is
15024     # assumed that no part of a normal pathname contains ";" but that should
15025     # okay in the real world where ";" in dirpaths is itself problematic.
15026     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15027   else
15028     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15029   fi
15030 else
15031   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15032 fi
15033 need_lib_prefix=unknown
15034 hardcode_into_libs=no
15035
15036 # when you set need_version to no, make sure it does not cause -set_version
15037 # flags to be left without arguments
15038 need_version=unknown
15039
15040 case $host_os in
15041 aix3*)
15042   version_type=linux
15043   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15044   shlibpath_var=LIBPATH
15045
15046   # AIX 3 has no versioning support, so we append a major version to the name.
15047   soname_spec='${libname}${release}${shared_ext}$major'
15048   ;;
15049
15050 aix4* | aix5*)
15051   version_type=linux
15052   need_lib_prefix=no
15053   need_version=no
15054   hardcode_into_libs=yes
15055   if test "$host_cpu" = ia64; then
15056     # AIX 5 supports IA64
15057     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15058     shlibpath_var=LD_LIBRARY_PATH
15059   else
15060     # With GCC up to 2.95.x, collect2 would create an import file
15061     # for dependence libraries.  The import file would start with
15062     # the line `#! .'.  This would cause the generated library to
15063     # depend on `.', always an invalid library.  This was fixed in
15064     # development snapshots of GCC prior to 3.0.
15065     case $host_os in
15066       aix4 | aix4.[01] | aix4.[01].*)
15067       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15068            echo ' yes '
15069            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15070         :
15071       else
15072         can_build_shared=no
15073       fi
15074       ;;
15075     esac
15076     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15077     # soname into executable. Probably we can add versioning support to
15078     # collect2, so additional links can be useful in future.
15079     if test "$aix_use_runtimelinking" = yes; then
15080       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15081       # instead of lib<name>.a to let people know that these are not
15082       # typical AIX shared libraries.
15083       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15084     else
15085       # We preserve .a as extension for shared libraries through AIX4.2
15086       # and later when we are not doing run time linking.
15087       library_names_spec='${libname}${release}.a $libname.a'
15088       soname_spec='${libname}${release}${shared_ext}$major'
15089     fi
15090     shlibpath_var=LIBPATH
15091   fi
15092   ;;
15093
15094 amigaos*)
15095   library_names_spec='$libname.ixlibrary $libname.a'
15096   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15097   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'
15098   ;;
15099
15100 beos*)
15101   library_names_spec='${libname}${shared_ext}'
15102   dynamic_linker="$host_os ld.so"
15103   shlibpath_var=LIBRARY_PATH
15104   ;;
15105
15106 bsdi4*)
15107   version_type=linux
15108   need_version=no
15109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110   soname_spec='${libname}${release}${shared_ext}$major'
15111   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15112   shlibpath_var=LD_LIBRARY_PATH
15113   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15114   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15115   # the default ld.so.conf also contains /usr/contrib/lib and
15116   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15117   # libtool to hard-code these into programs
15118   ;;
15119
15120 cygwin* | mingw* | pw32*)
15121   version_type=windows
15122   shrext_cmds=".dll"
15123   need_version=no
15124   need_lib_prefix=no
15125
15126   case $GCC,$host_os in
15127   yes,cygwin* | yes,mingw* | yes,pw32*)
15128     library_names_spec='$libname.dll.a'
15129     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15130     postinstall_cmds='base_file=`basename \${file}`~
15131       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15132       dldir=$destdir/`dirname \$dlpath`~
15133       test -d \$dldir || mkdir -p \$dldir~
15134       $install_prog $dir/$dlname \$dldir/$dlname'
15135     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15136       dlpath=$dir/\$dldll~
15137        $rm \$dlpath'
15138     shlibpath_overrides_runpath=yes
15139
15140     case $host_os in
15141     cygwin*)
15142       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15143       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15144       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15145       ;;
15146     mingw*)
15147       # MinGW DLLs use traditional 'lib' prefix
15148       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15149       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15150       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15151         # It is most probably a Windows format PATH printed by
15152         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15153         # path with ; separators, and with drive letters. We can handle the
15154         # drive letters (cygwin fileutils understands them), so leave them,
15155         # especially as we might pass files found there to a mingw objdump,
15156         # which wouldn't understand a cygwinified path. Ahh.
15157         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15158       else
15159         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15160       fi
15161       ;;
15162     pw32*)
15163       # pw32 DLLs use 'pw' prefix rather than 'lib'
15164       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15165       ;;
15166     esac
15167     ;;
15168
15169   *)
15170     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15171     ;;
15172   esac
15173   dynamic_linker='Win32 ld.exe'
15174   # FIXME: first we should search . and the directory the executable is in
15175   shlibpath_var=PATH
15176   ;;
15177
15178 darwin* | rhapsody*)
15179   dynamic_linker="$host_os dyld"
15180   version_type=darwin
15181   need_lib_prefix=no
15182   need_version=no
15183   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15184   soname_spec='${libname}${release}${major}$shared_ext'
15185   shlibpath_overrides_runpath=yes
15186   shlibpath_var=DYLD_LIBRARY_PATH
15187   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15188   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15189   if test "$GCC" = yes; then
15190     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"`
15191   else
15192     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15193   fi
15194   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15195   ;;
15196
15197 dgux*)
15198   version_type=linux
15199   need_lib_prefix=no
15200   need_version=no
15201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15202   soname_spec='${libname}${release}${shared_ext}$major'
15203   shlibpath_var=LD_LIBRARY_PATH
15204   ;;
15205
15206 freebsd1*)
15207   dynamic_linker=no
15208   ;;
15209
15210 kfreebsd*-gnu)
15211   version_type=linux
15212   need_lib_prefix=no
15213   need_version=no
15214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   shlibpath_var=LD_LIBRARY_PATH
15217   shlibpath_overrides_runpath=no
15218   hardcode_into_libs=yes
15219   dynamic_linker='GNU ld.so'
15220   ;;
15221
15222 freebsd*)
15223   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15224   version_type=freebsd-$objformat
15225   case $version_type in
15226     freebsd-elf*)
15227       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15228       need_version=no
15229       need_lib_prefix=no
15230       ;;
15231     freebsd-*)
15232       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15233       need_version=yes
15234       ;;
15235   esac
15236   shlibpath_var=LD_LIBRARY_PATH
15237   case $host_os in
15238   freebsd2*)
15239     shlibpath_overrides_runpath=yes
15240     ;;
15241   freebsd3.01* | freebsdelf3.01*)
15242     shlibpath_overrides_runpath=yes
15243     hardcode_into_libs=yes
15244     ;;
15245   *) # from 3.2 on
15246     shlibpath_overrides_runpath=no
15247     hardcode_into_libs=yes
15248     ;;
15249   esac
15250   ;;
15251
15252 gnu*)
15253   version_type=linux
15254   need_lib_prefix=no
15255   need_version=no
15256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15257   soname_spec='${libname}${release}${shared_ext}$major'
15258   shlibpath_var=LD_LIBRARY_PATH
15259   hardcode_into_libs=yes
15260   ;;
15261
15262 hpux9* | hpux10* | hpux11*)
15263   # Give a soname corresponding to the major version so that dld.sl refuses to
15264   # link against other versions.
15265   version_type=sunos
15266   need_lib_prefix=no
15267   need_version=no
15268   case "$host_cpu" in
15269   ia64*)
15270     shrext_cmds='.so'
15271     hardcode_into_libs=yes
15272     dynamic_linker="$host_os dld.so"
15273     shlibpath_var=LD_LIBRARY_PATH
15274     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276     soname_spec='${libname}${release}${shared_ext}$major'
15277     if test "X$HPUX_IA64_MODE" = X32; then
15278       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15279     else
15280       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15281     fi
15282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15283     ;;
15284    hppa*64*)
15285      shrext_cmds='.sl'
15286      hardcode_into_libs=yes
15287      dynamic_linker="$host_os dld.sl"
15288      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15289      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15290      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291      soname_spec='${libname}${release}${shared_ext}$major'
15292      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15293      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15294      ;;
15295    *)
15296     shrext_cmds='.sl'
15297     dynamic_linker="$host_os dld.sl"
15298     shlibpath_var=SHLIB_PATH
15299     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15301     soname_spec='${libname}${release}${shared_ext}$major'
15302     ;;
15303   esac
15304   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15305   postinstall_cmds='chmod 555 $lib'
15306   ;;
15307
15308 irix5* | irix6* | nonstopux*)
15309   case $host_os in
15310     nonstopux*) version_type=nonstopux ;;
15311     *)
15312         if test "$lt_cv_prog_gnu_ld" = yes; then
15313                 version_type=linux
15314         else
15315                 version_type=irix
15316         fi ;;
15317   esac
15318   need_lib_prefix=no
15319   need_version=no
15320   soname_spec='${libname}${release}${shared_ext}$major'
15321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15322   case $host_os in
15323   irix5* | nonstopux*)
15324     libsuff= shlibsuff=
15325     ;;
15326   *)
15327     case $LD in # libtool.m4 will add one of these switches to LD
15328     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15329       libsuff= shlibsuff= libmagic=32-bit;;
15330     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15331       libsuff=32 shlibsuff=N32 libmagic=N32;;
15332     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15333       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15334     *) libsuff= shlibsuff= libmagic=never-match;;
15335     esac
15336     ;;
15337   esac
15338   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15339   shlibpath_overrides_runpath=no
15340   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15341   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15342   hardcode_into_libs=yes
15343   ;;
15344
15345 # No shared lib support for Linux oldld, aout, or coff.
15346 linux*oldld* | linux*aout* | linux*coff*)
15347   dynamic_linker=no
15348   ;;
15349
15350 # This must be Linux ELF.
15351 linux*)
15352   version_type=linux
15353   need_lib_prefix=no
15354   need_version=no
15355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15356   soname_spec='${libname}${release}${shared_ext}$major'
15357   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15358   shlibpath_var=LD_LIBRARY_PATH
15359   shlibpath_overrides_runpath=no
15360   # This implies no fast_install, which is unacceptable.
15361   # Some rework will be needed to allow for fast_install
15362   # before this can be enabled.
15363   hardcode_into_libs=yes
15364
15365   # find out which ABI we are using
15366   libsuff=
15367   case "$host_cpu" in
15368   x86_64*|s390x*|powerpc64*)
15369     echo '#line 15369 "configure"' > conftest.$ac_ext
15370     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371   (eval $ac_compile) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; then
15375       case `/usr/bin/file conftest.$ac_objext` in
15376       *64-bit*)
15377         libsuff=64
15378         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15379         ;;
15380       esac
15381     fi
15382     rm -rf conftest*
15383     ;;
15384   esac
15385
15386   # Append ld.so.conf contents to the search path
15387   if test -f /etc/ld.so.conf; then
15388     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15389     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15390   fi
15391
15392   # We used to test for /lib/ld.so.1 and disable shared libraries on
15393   # powerpc, because MkLinux only supported shared libraries with the
15394   # GNU dynamic linker.  Since this was broken with cross compilers,
15395   # most powerpc-linux boxes support dynamic linking these days and
15396   # people can always --disable-shared, the test was removed, and we
15397   # assume the GNU/Linux dynamic linker is in use.
15398   dynamic_linker='GNU/Linux ld.so'
15399   ;;
15400
15401 knetbsd*-gnu)
15402   version_type=linux
15403   need_lib_prefix=no
15404   need_version=no
15405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406   soname_spec='${libname}${release}${shared_ext}$major'
15407   shlibpath_var=LD_LIBRARY_PATH
15408   shlibpath_overrides_runpath=no
15409   hardcode_into_libs=yes
15410   dynamic_linker='GNU ld.so'
15411   ;;
15412
15413 netbsd*)
15414   version_type=sunos
15415   need_lib_prefix=no
15416   need_version=no
15417   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15419     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15420     dynamic_linker='NetBSD (a.out) ld.so'
15421   else
15422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15423     soname_spec='${libname}${release}${shared_ext}$major'
15424     dynamic_linker='NetBSD ld.elf_so'
15425   fi
15426   shlibpath_var=LD_LIBRARY_PATH
15427   shlibpath_overrides_runpath=yes
15428   hardcode_into_libs=yes
15429   ;;
15430
15431 newsos6)
15432   version_type=linux
15433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434   shlibpath_var=LD_LIBRARY_PATH
15435   shlibpath_overrides_runpath=yes
15436   ;;
15437
15438 nto-qnx*)
15439   version_type=linux
15440   need_lib_prefix=no
15441   need_version=no
15442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443   soname_spec='${libname}${release}${shared_ext}$major'
15444   shlibpath_var=LD_LIBRARY_PATH
15445   shlibpath_overrides_runpath=yes
15446   ;;
15447
15448 openbsd*)
15449   version_type=sunos
15450   need_lib_prefix=no
15451   need_version=yes
15452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15453   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15454   shlibpath_var=LD_LIBRARY_PATH
15455   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15456     case $host_os in
15457       openbsd2.[89] | openbsd2.[89].*)
15458         shlibpath_overrides_runpath=no
15459         ;;
15460       *)
15461         shlibpath_overrides_runpath=yes
15462         ;;
15463       esac
15464   else
15465     shlibpath_overrides_runpath=yes
15466   fi
15467   ;;
15468
15469 os2*)
15470   libname_spec='$name'
15471   shrext_cmds=".dll"
15472   need_lib_prefix=no
15473   library_names_spec='$libname${shared_ext} $libname.a'
15474   dynamic_linker='OS/2 ld.exe'
15475   shlibpath_var=LIBPATH
15476   ;;
15477
15478 osf3* | osf4* | osf5*)
15479   version_type=osf
15480   need_lib_prefix=no
15481   need_version=no
15482   soname_spec='${libname}${release}${shared_ext}$major'
15483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15484   shlibpath_var=LD_LIBRARY_PATH
15485   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15486   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15487   ;;
15488
15489 sco3.2v5*)
15490   version_type=osf
15491   soname_spec='${libname}${release}${shared_ext}$major'
15492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493   shlibpath_var=LD_LIBRARY_PATH
15494   ;;
15495
15496 solaris*)
15497   version_type=linux
15498   need_lib_prefix=no
15499   need_version=no
15500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501   soname_spec='${libname}${release}${shared_ext}$major'
15502   shlibpath_var=LD_LIBRARY_PATH
15503   shlibpath_overrides_runpath=yes
15504   hardcode_into_libs=yes
15505   # ldd complains unless libraries are executable
15506   postinstall_cmds='chmod +x $lib'
15507   ;;
15508
15509 sunos4*)
15510   version_type=sunos
15511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15512   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15513   shlibpath_var=LD_LIBRARY_PATH
15514   shlibpath_overrides_runpath=yes
15515   if test "$with_gnu_ld" = yes; then
15516     need_lib_prefix=no
15517   fi
15518   need_version=yes
15519   ;;
15520
15521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15522   version_type=linux
15523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15524   soname_spec='${libname}${release}${shared_ext}$major'
15525   shlibpath_var=LD_LIBRARY_PATH
15526   case $host_vendor in
15527     sni)
15528       shlibpath_overrides_runpath=no
15529       need_lib_prefix=no
15530       export_dynamic_flag_spec='${wl}-Blargedynsym'
15531       runpath_var=LD_RUN_PATH
15532       ;;
15533     siemens)
15534       need_lib_prefix=no
15535       ;;
15536     motorola)
15537       need_lib_prefix=no
15538       need_version=no
15539       shlibpath_overrides_runpath=no
15540       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15541       ;;
15542   esac
15543   ;;
15544
15545 sysv4*MP*)
15546   if test -d /usr/nec ;then
15547     version_type=linux
15548     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15549     soname_spec='$libname${shared_ext}.$major'
15550     shlibpath_var=LD_LIBRARY_PATH
15551   fi
15552   ;;
15553
15554 uts4*)
15555   version_type=linux
15556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557   soname_spec='${libname}${release}${shared_ext}$major'
15558   shlibpath_var=LD_LIBRARY_PATH
15559   ;;
15560
15561 *)
15562   dynamic_linker=no
15563   ;;
15564 esac
15565 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15566 echo "${ECHO_T}$dynamic_linker" >&6
15567 test "$dynamic_linker" = no && can_build_shared=no
15568
15569 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15570 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15571 hardcode_action_F77=
15572 if test -n "$hardcode_libdir_flag_spec_F77" || \
15573    test -n "$runpath_var F77" || \
15574    test "X$hardcode_automatic_F77"="Xyes" ; then
15575
15576   # We can hardcode non-existant directories.
15577   if test "$hardcode_direct_F77" != no &&
15578      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15579      # have to relink, otherwise we might link with an installed library
15580      # when we should be linking with a yet-to-be-installed one
15581      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15582      test "$hardcode_minus_L_F77" != no; then
15583     # Linking always hardcodes the temporary library directory.
15584     hardcode_action_F77=relink
15585   else
15586     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15587     hardcode_action_F77=immediate
15588   fi
15589 else
15590   # We cannot hardcode anything, or else we can only hardcode existing
15591   # directories.
15592   hardcode_action_F77=unsupported
15593 fi
15594 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15595 echo "${ECHO_T}$hardcode_action_F77" >&6
15596
15597 if test "$hardcode_action_F77" = relink; then
15598   # Fast installation is not supported
15599   enable_fast_install=no
15600 elif test "$shlibpath_overrides_runpath" = yes ||
15601      test "$enable_shared" = no; then
15602   # Fast installation is not necessary
15603   enable_fast_install=needless
15604 fi
15605
15606 striplib=
15607 old_striplib=
15608 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15609 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15610 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15611   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15612   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15613   echo "$as_me:$LINENO: result: yes" >&5
15614 echo "${ECHO_T}yes" >&6
15615 else
15616 # FIXME - insert some real tests, host_os isn't really good enough
15617   case $host_os in
15618    darwin*)
15619        if test -n "$STRIP" ; then
15620          striplib="$STRIP -x"
15621          echo "$as_me:$LINENO: result: yes" >&5
15622 echo "${ECHO_T}yes" >&6
15623        else
15624   echo "$as_me:$LINENO: result: no" >&5
15625 echo "${ECHO_T}no" >&6
15626 fi
15627        ;;
15628    *)
15629   echo "$as_me:$LINENO: result: no" >&5
15630 echo "${ECHO_T}no" >&6
15631     ;;
15632   esac
15633 fi
15634
15635
15636
15637 # The else clause should only fire when bootstrapping the
15638 # libtool distribution, otherwise you forgot to ship ltmain.sh
15639 # with your package, and you will get complaints that there are
15640 # no rules to generate ltmain.sh.
15641 if test -f "$ltmain"; then
15642   # See if we are running on zsh, and set the options which allow our commands through
15643   # without removal of \ escapes.
15644   if test -n "${ZSH_VERSION+set}" ; then
15645     setopt NO_GLOB_SUBST
15646   fi
15647   # Now quote all the things that may contain metacharacters while being
15648   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15649   # variables and quote the copies for generation of the libtool script.
15650   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15651     SED SHELL STRIP \
15652     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15653     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15654     deplibs_check_method reload_flag reload_cmds need_locks \
15655     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15656     lt_cv_sys_global_symbol_to_c_name_address \
15657     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15658     old_postinstall_cmds old_postuninstall_cmds \
15659     compiler_F77 \
15660     CC_F77 \
15661     LD_F77 \
15662     lt_prog_compiler_wl_F77 \
15663     lt_prog_compiler_pic_F77 \
15664     lt_prog_compiler_static_F77 \
15665     lt_prog_compiler_no_builtin_flag_F77 \
15666     export_dynamic_flag_spec_F77 \
15667     thread_safe_flag_spec_F77 \
15668     whole_archive_flag_spec_F77 \
15669     enable_shared_with_static_runtimes_F77 \
15670     old_archive_cmds_F77 \
15671     old_archive_from_new_cmds_F77 \
15672     predep_objects_F77 \
15673     postdep_objects_F77 \
15674     predeps_F77 \
15675     postdeps_F77 \
15676     compiler_lib_search_path_F77 \
15677     archive_cmds_F77 \
15678     archive_expsym_cmds_F77 \
15679     postinstall_cmds_F77 \
15680     postuninstall_cmds_F77 \
15681     old_archive_from_expsyms_cmds_F77 \
15682     allow_undefined_flag_F77 \
15683     no_undefined_flag_F77 \
15684     export_symbols_cmds_F77 \
15685     hardcode_libdir_flag_spec_F77 \
15686     hardcode_libdir_flag_spec_ld_F77 \
15687     hardcode_libdir_separator_F77 \
15688     hardcode_automatic_F77 \
15689     module_cmds_F77 \
15690     module_expsym_cmds_F77 \
15691     lt_cv_prog_compiler_c_o_F77 \
15692     exclude_expsyms_F77 \
15693     include_expsyms_F77; do
15694
15695     case $var in
15696     old_archive_cmds_F77 | \
15697     old_archive_from_new_cmds_F77 | \
15698     archive_cmds_F77 | \
15699     archive_expsym_cmds_F77 | \
15700     module_cmds_F77 | \
15701     module_expsym_cmds_F77 | \
15702     old_archive_from_expsyms_cmds_F77 | \
15703     export_symbols_cmds_F77 | \
15704     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15705     postinstall_cmds | postuninstall_cmds | \
15706     old_postinstall_cmds | old_postuninstall_cmds | \
15707     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15708       # Double-quote double-evaled strings.
15709       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15710       ;;
15711     *)
15712       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15713       ;;
15714     esac
15715   done
15716
15717   case $lt_echo in
15718   *'\$0 --fallback-echo"')
15719     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15720     ;;
15721   esac
15722
15723 cfgfile="$ofile"
15724
15725   cat <<__EOF__ >> "$cfgfile"
15726 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15727
15728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15729
15730 # Shell to use when invoking shell scripts.
15731 SHELL=$lt_SHELL
15732
15733 # Whether or not to build shared libraries.
15734 build_libtool_libs=$enable_shared
15735
15736 # Whether or not to build static libraries.
15737 build_old_libs=$enable_static
15738
15739 # Whether or not to add -lc for building shared libraries.
15740 build_libtool_need_lc=$archive_cmds_need_lc_F77
15741
15742 # Whether or not to disallow shared libs when runtime libs are static
15743 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15744
15745 # Whether or not to optimize for fast installation.
15746 fast_install=$enable_fast_install
15747
15748 # The host system.
15749 host_alias=$host_alias
15750 host=$host
15751
15752 # An echo program that does not interpret backslashes.
15753 echo=$lt_echo
15754
15755 # The archiver.
15756 AR=$lt_AR
15757 AR_FLAGS=$lt_AR_FLAGS
15758
15759 # A C compiler.
15760 LTCC=$lt_LTCC
15761
15762 # A language-specific compiler.
15763 CC=$lt_compiler_F77
15764
15765 # Is the compiler the GNU C compiler?
15766 with_gcc=$GCC_F77
15767
15768 # An ERE matcher.
15769 EGREP=$lt_EGREP
15770
15771 # The linker used to build libraries.
15772 LD=$lt_LD_F77
15773
15774 # Whether we need hard or soft links.
15775 LN_S=$lt_LN_S
15776
15777 # A BSD-compatible nm program.
15778 NM=$lt_NM
15779
15780 # A symbol stripping program
15781 STRIP=$lt_STRIP
15782
15783 # Used to examine libraries when file_magic_cmd begins "file"
15784 MAGIC_CMD=$MAGIC_CMD
15785
15786 # Used on cygwin: DLL creation program.
15787 DLLTOOL="$DLLTOOL"
15788
15789 # Used on cygwin: object dumper.
15790 OBJDUMP="$OBJDUMP"
15791
15792 # Used on cygwin: assembler.
15793 AS="$AS"
15794
15795 # The name of the directory that contains temporary libtool files.
15796 objdir=$objdir
15797
15798 # How to create reloadable object files.
15799 reload_flag=$lt_reload_flag
15800 reload_cmds=$lt_reload_cmds
15801
15802 # How to pass a linker flag through the compiler.
15803 wl=$lt_lt_prog_compiler_wl_F77
15804
15805 # Object file suffix (normally "o").
15806 objext="$ac_objext"
15807
15808 # Old archive suffix (normally "a").
15809 libext="$libext"
15810
15811 # Shared library suffix (normally ".so").
15812 shrext_cmds='$shrext_cmds'
15813
15814 # Executable file suffix (normally "").
15815 exeext="$exeext"
15816
15817 # Additional compiler flags for building library objects.
15818 pic_flag=$lt_lt_prog_compiler_pic_F77
15819 pic_mode=$pic_mode
15820
15821 # What is the maximum length of a command?
15822 max_cmd_len=$lt_cv_sys_max_cmd_len
15823
15824 # Does compiler simultaneously support -c and -o options?
15825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15826
15827 # Must we lock files when doing compilation ?
15828 need_locks=$lt_need_locks
15829
15830 # Do we need the lib prefix for modules?
15831 need_lib_prefix=$need_lib_prefix
15832
15833 # Do we need a version for libraries?
15834 need_version=$need_version
15835
15836 # Whether dlopen is supported.
15837 dlopen_support=$enable_dlopen
15838
15839 # Whether dlopen of programs is supported.
15840 dlopen_self=$enable_dlopen_self
15841
15842 # Whether dlopen of statically linked programs is supported.
15843 dlopen_self_static=$enable_dlopen_self_static
15844
15845 # Compiler flag to prevent dynamic linking.
15846 link_static_flag=$lt_lt_prog_compiler_static_F77
15847
15848 # Compiler flag to turn off builtin functions.
15849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15850
15851 # Compiler flag to allow reflexive dlopens.
15852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15853
15854 # Compiler flag to generate shared objects directly from archives.
15855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15856
15857 # Compiler flag to generate thread-safe objects.
15858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15859
15860 # Library versioning type.
15861 version_type=$version_type
15862
15863 # Format of library name prefix.
15864 libname_spec=$lt_libname_spec
15865
15866 # List of archive names.  First name is the real one, the rest are links.
15867 # The last name is the one that the linker finds with -lNAME.
15868 library_names_spec=$lt_library_names_spec
15869
15870 # The coded name of the library, if different from the real name.
15871 soname_spec=$lt_soname_spec
15872
15873 # Commands used to build and install an old-style archive.
15874 RANLIB=$lt_RANLIB
15875 old_archive_cmds=$lt_old_archive_cmds_F77
15876 old_postinstall_cmds=$lt_old_postinstall_cmds
15877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15878
15879 # Create an old-style archive from a shared archive.
15880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15881
15882 # Create a temporary old-style archive to link instead of a shared archive.
15883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15884
15885 # Commands used to build and install a shared archive.
15886 archive_cmds=$lt_archive_cmds_F77
15887 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15888 postinstall_cmds=$lt_postinstall_cmds
15889 postuninstall_cmds=$lt_postuninstall_cmds
15890
15891 # Commands used to build a loadable module (assumed same as above if empty)
15892 module_cmds=$lt_module_cmds_F77
15893 module_expsym_cmds=$lt_module_expsym_cmds_F77
15894
15895 # Commands to strip libraries.
15896 old_striplib=$lt_old_striplib
15897 striplib=$lt_striplib
15898
15899 # Dependencies to place before the objects being linked to create a
15900 # shared library.
15901 predep_objects=$lt_predep_objects_F77
15902
15903 # Dependencies to place after the objects being linked to create a
15904 # shared library.
15905 postdep_objects=$lt_postdep_objects_F77
15906
15907 # Dependencies to place before the objects being linked to create a
15908 # shared library.
15909 predeps=$lt_predeps_F77
15910
15911 # Dependencies to place after the objects being linked to create a
15912 # shared library.
15913 postdeps=$lt_postdeps_F77
15914
15915 # The library search path used internally by the compiler when linking
15916 # a shared library.
15917 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15918
15919 # Method to check whether dependent libraries are shared objects.
15920 deplibs_check_method=$lt_deplibs_check_method
15921
15922 # Command to use when deplibs_check_method == file_magic.
15923 file_magic_cmd=$lt_file_magic_cmd
15924
15925 # Flag that allows shared libraries with undefined symbols to be built.
15926 allow_undefined_flag=$lt_allow_undefined_flag_F77
15927
15928 # Flag that forces no undefined symbols.
15929 no_undefined_flag=$lt_no_undefined_flag_F77
15930
15931 # Commands used to finish a libtool library installation in a directory.
15932 finish_cmds=$lt_finish_cmds
15933
15934 # Same as above, but a single script fragment to be evaled but not shown.
15935 finish_eval=$lt_finish_eval
15936
15937 # Take the output of nm and produce a listing of raw symbols and C names.
15938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15939
15940 # Transform the output of nm in a proper C declaration
15941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15942
15943 # Transform the output of nm in a C name address pair
15944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15945
15946 # This is the shared library runtime path variable.
15947 runpath_var=$runpath_var
15948
15949 # This is the shared library path variable.
15950 shlibpath_var=$shlibpath_var
15951
15952 # Is shlibpath searched before the hard-coded library search path?
15953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15954
15955 # How to hardcode a shared library path into an executable.
15956 hardcode_action=$hardcode_action_F77
15957
15958 # Whether we should hardcode library paths into libraries.
15959 hardcode_into_libs=$hardcode_into_libs
15960
15961 # Flag to hardcode \$libdir into a binary during linking.
15962 # This must work even if \$libdir does not exist.
15963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15964
15965 # If ld is used when linking, flag to hardcode \$libdir into
15966 # a binary during linking. This must work even if \$libdir does
15967 # not exist.
15968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15969
15970 # Whether we need a single -rpath flag with a separated argument.
15971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15972
15973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15974 # resulting binary.
15975 hardcode_direct=$hardcode_direct_F77
15976
15977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15978 # resulting binary.
15979 hardcode_minus_L=$hardcode_minus_L_F77
15980
15981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15982 # the resulting binary.
15983 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15984
15985 # Set to yes if building a shared library automatically hardcodes DIR into the library
15986 # and all subsequent libraries and executables linked against it.
15987 hardcode_automatic=$hardcode_automatic_F77
15988
15989 # Variables whose values should be saved in libtool wrapper scripts and
15990 # restored at relink time.
15991 variables_saved_for_relink="$variables_saved_for_relink"
15992
15993 # Whether libtool must link a program against all its dependency libraries.
15994 link_all_deplibs=$link_all_deplibs_F77
15995
15996 # Compile-time system search path for libraries
15997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15998
15999 # Run-time system search path for libraries
16000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16001
16002 # Fix the shell variable \$srcfile for the compiler.
16003 fix_srcfile_path="$fix_srcfile_path_F77"
16004
16005 # Set to yes if exported symbols are required.
16006 always_export_symbols=$always_export_symbols_F77
16007
16008 # The commands to list exported symbols.
16009 export_symbols_cmds=$lt_export_symbols_cmds_F77
16010
16011 # The commands to extract the exported symbol list from a shared archive.
16012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16013
16014 # Symbols that should not be listed in the preloaded symbols.
16015 exclude_expsyms=$lt_exclude_expsyms_F77
16016
16017 # Symbols that must always be exported.
16018 include_expsyms=$lt_include_expsyms_F77
16019
16020 # ### END LIBTOOL TAG CONFIG: $tagname
16021
16022 __EOF__
16023
16024
16025 else
16026   # If there is no Makefile yet, we rely on a make rule to execute
16027   # `config.status --recheck' to rerun these tests and create the
16028   # libtool script then.
16029   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16030   if test -f "$ltmain_in"; then
16031     test -f Makefile && make "$ltmain"
16032   fi
16033 fi
16034
16035
16036 ac_ext=c
16037 ac_cpp='$CPP $CPPFLAGS'
16038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16041
16042 CC="$lt_save_CC"
16043
16044         else
16045           tagname=""
16046         fi
16047         ;;
16048
16049       GCJ)
16050         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16051
16052
16053
16054 # Source file extension for Java test sources.
16055 ac_ext=java
16056
16057 # Object file extension for compiled Java test sources.
16058 objext=o
16059 objext_GCJ=$objext
16060
16061 # Code to be used in simple compile tests
16062 lt_simple_compile_test_code="class foo {}\n"
16063
16064 # Code to be used in simple link tests
16065 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16066
16067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16068
16069 # If no C compiler was specified, use CC.
16070 LTCC=${LTCC-"$CC"}
16071
16072 # Allow CC to be a program name with arguments.
16073 compiler=$CC
16074
16075
16076 # Allow CC to be a program name with arguments.
16077 lt_save_CC="$CC"
16078 CC=${GCJ-"gcj"}
16079 compiler=$CC
16080 compiler_GCJ=$CC
16081
16082 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16083 archive_cmds_need_lc_GCJ=no
16084
16085
16086 lt_prog_compiler_no_builtin_flag_GCJ=
16087
16088 if test "$GCC" = yes; then
16089   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16090
16091
16092 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16093 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16094 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16095   echo $ECHO_N "(cached) $ECHO_C" >&6
16096 else
16097   lt_cv_prog_compiler_rtti_exceptions=no
16098   ac_outfile=conftest.$ac_objext
16099    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16100    lt_compiler_flag="-fno-rtti -fno-exceptions"
16101    # Insert the option either (1) after the last *FLAGS variable, or
16102    # (2) before a word containing "conftest.", or (3) at the end.
16103    # Note that $ac_compile itself does not contain backslashes and begins
16104    # with a dollar sign (not a hyphen), so the echo should work correctly.
16105    # The option is referenced via a variable to avoid confusing sed.
16106    lt_compile=`echo "$ac_compile" | $SED \
16107    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16109    -e 's:$: $lt_compiler_flag:'`
16110    (eval echo "\"\$as_me:16110: $lt_compile\"" >&5)
16111    (eval "$lt_compile" 2>conftest.err)
16112    ac_status=$?
16113    cat conftest.err >&5
16114    echo "$as_me:16114: \$? = $ac_status" >&5
16115    if (exit $ac_status) && test -s "$ac_outfile"; then
16116      # The compiler can only warn and ignore the option if not recognized
16117      # So say no if there are warnings
16118      if test ! -s conftest.err; then
16119        lt_cv_prog_compiler_rtti_exceptions=yes
16120      fi
16121    fi
16122    $rm conftest*
16123
16124 fi
16125 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16126 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16127
16128 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16129     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16130 else
16131     :
16132 fi
16133
16134 fi
16135
16136 lt_prog_compiler_wl_GCJ=
16137 lt_prog_compiler_pic_GCJ=
16138 lt_prog_compiler_static_GCJ=
16139
16140 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16142
16143   if test "$GCC" = yes; then
16144     lt_prog_compiler_wl_GCJ='-Wl,'
16145     lt_prog_compiler_static_GCJ='-static'
16146
16147     case $host_os in
16148       aix*)
16149       # All AIX code is PIC.
16150       if test "$host_cpu" = ia64; then
16151         # AIX 5 now supports IA64 processor
16152         lt_prog_compiler_static_GCJ='-Bstatic'
16153       fi
16154       ;;
16155
16156     amigaos*)
16157       # FIXME: we need at least 68020 code to build shared libraries, but
16158       # adding the `-m68020' flag to GCC prevents building anything better,
16159       # like `-m68040'.
16160       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16161       ;;
16162
16163     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16164       # PIC is the default for these OSes.
16165       ;;
16166
16167     mingw* | pw32* | os2*)
16168       # This hack is so that the source file can tell whether it is being
16169       # built for inclusion in a dll (and should export symbols for example).
16170       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16171       ;;
16172
16173     darwin* | rhapsody*)
16174       # PIC is the default on this platform
16175       # Common symbols not allowed in MH_DYLIB files
16176       lt_prog_compiler_pic_GCJ='-fno-common'
16177       ;;
16178
16179     msdosdjgpp*)
16180       # Just because we use GCC doesn't mean we suddenly get shared libraries
16181       # on systems that don't support them.
16182       lt_prog_compiler_can_build_shared_GCJ=no
16183       enable_shared=no
16184       ;;
16185
16186     sysv4*MP*)
16187       if test -d /usr/nec; then
16188         lt_prog_compiler_pic_GCJ=-Kconform_pic
16189       fi
16190       ;;
16191
16192     hpux*)
16193       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16194       # not for PA HP-UX.
16195       case "$host_cpu" in
16196       hppa*64*|ia64*)
16197         # +Z the default
16198         ;;
16199       *)
16200         lt_prog_compiler_pic_GCJ='-fPIC'
16201         ;;
16202       esac
16203       ;;
16204
16205     *)
16206       lt_prog_compiler_pic_GCJ='-fPIC'
16207       ;;
16208     esac
16209   else
16210     # PORTME Check for flag to pass linker flags through the system compiler.
16211     case $host_os in
16212     aix*)
16213       lt_prog_compiler_wl_GCJ='-Wl,'
16214       if test "$host_cpu" = ia64; then
16215         # AIX 5 now supports IA64 processor
16216         lt_prog_compiler_static_GCJ='-Bstatic'
16217       else
16218         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16219       fi
16220       ;;
16221
16222     mingw* | pw32* | os2*)
16223       # This hack is so that the source file can tell whether it is being
16224       # built for inclusion in a dll (and should export symbols for example).
16225       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16226       ;;
16227
16228     hpux9* | hpux10* | hpux11*)
16229       lt_prog_compiler_wl_GCJ='-Wl,'
16230       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16231       # not for PA HP-UX.
16232       case "$host_cpu" in
16233       hppa*64*|ia64*)
16234         # +Z the default
16235         ;;
16236       *)
16237         lt_prog_compiler_pic_GCJ='+Z'
16238         ;;
16239       esac
16240       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16241       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16242       ;;
16243
16244     irix5* | irix6* | nonstopux*)
16245       lt_prog_compiler_wl_GCJ='-Wl,'
16246       # PIC (with -KPIC) is the default.
16247       lt_prog_compiler_static_GCJ='-non_shared'
16248       ;;
16249
16250     newsos6)
16251       lt_prog_compiler_pic_GCJ='-KPIC'
16252       lt_prog_compiler_static_GCJ='-Bstatic'
16253       ;;
16254
16255     linux*)
16256       case $CC in
16257       icc* | ecc*)
16258         lt_prog_compiler_wl_GCJ='-Wl,'
16259         lt_prog_compiler_pic_GCJ='-KPIC'
16260         lt_prog_compiler_static_GCJ='-static'
16261         ;;
16262       ccc*)
16263         lt_prog_compiler_wl_GCJ='-Wl,'
16264         # All Alpha code is PIC.
16265         lt_prog_compiler_static_GCJ='-non_shared'
16266         ;;
16267       esac
16268       ;;
16269
16270     osf3* | osf4* | osf5*)
16271       lt_prog_compiler_wl_GCJ='-Wl,'
16272       # All OSF/1 code is PIC.
16273       lt_prog_compiler_static_GCJ='-non_shared'
16274       ;;
16275
16276     sco3.2v5*)
16277       lt_prog_compiler_pic_GCJ='-Kpic'
16278       lt_prog_compiler_static_GCJ='-dn'
16279       ;;
16280
16281     solaris*)
16282       lt_prog_compiler_wl_GCJ='-Wl,'
16283       lt_prog_compiler_pic_GCJ='-KPIC'
16284       lt_prog_compiler_static_GCJ='-Bstatic'
16285       ;;
16286
16287     sunos4*)
16288       lt_prog_compiler_wl_GCJ='-Qoption ld '
16289       lt_prog_compiler_pic_GCJ='-PIC'
16290       lt_prog_compiler_static_GCJ='-Bstatic'
16291       ;;
16292
16293     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16294       lt_prog_compiler_wl_GCJ='-Wl,'
16295       lt_prog_compiler_pic_GCJ='-KPIC'
16296       lt_prog_compiler_static_GCJ='-Bstatic'
16297       ;;
16298
16299     sysv4*MP*)
16300       if test -d /usr/nec ;then
16301         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16302         lt_prog_compiler_static_GCJ='-Bstatic'
16303       fi
16304       ;;
16305
16306     uts4*)
16307       lt_prog_compiler_pic_GCJ='-pic'
16308       lt_prog_compiler_static_GCJ='-Bstatic'
16309       ;;
16310
16311     *)
16312       lt_prog_compiler_can_build_shared_GCJ=no
16313       ;;
16314     esac
16315   fi
16316
16317 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16318 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16319
16320 #
16321 # Check to make sure the PIC flag actually works.
16322 #
16323 if test -n "$lt_prog_compiler_pic_GCJ"; then
16324
16325 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16326 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16327 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16328   echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330   lt_prog_compiler_pic_works_GCJ=no
16331   ac_outfile=conftest.$ac_objext
16332    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16333    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16334    # Insert the option either (1) after the last *FLAGS variable, or
16335    # (2) before a word containing "conftest.", or (3) at the end.
16336    # Note that $ac_compile itself does not contain backslashes and begins
16337    # with a dollar sign (not a hyphen), so the echo should work correctly.
16338    # The option is referenced via a variable to avoid confusing sed.
16339    lt_compile=`echo "$ac_compile" | $SED \
16340    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16341    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16342    -e 's:$: $lt_compiler_flag:'`
16343    (eval echo "\"\$as_me:16343: $lt_compile\"" >&5)
16344    (eval "$lt_compile" 2>conftest.err)
16345    ac_status=$?
16346    cat conftest.err >&5
16347    echo "$as_me:16347: \$? = $ac_status" >&5
16348    if (exit $ac_status) && test -s "$ac_outfile"; then
16349      # The compiler can only warn and ignore the option if not recognized
16350      # So say no if there are warnings
16351      if test ! -s conftest.err; then
16352        lt_prog_compiler_pic_works_GCJ=yes
16353      fi
16354    fi
16355    $rm conftest*
16356
16357 fi
16358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16359 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16360
16361 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16362     case $lt_prog_compiler_pic_GCJ in
16363      "" | " "*) ;;
16364      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16365      esac
16366 else
16367     lt_prog_compiler_pic_GCJ=
16368      lt_prog_compiler_can_build_shared_GCJ=no
16369 fi
16370
16371 fi
16372 case "$host_os" in
16373   # For platforms which do not support PIC, -DPIC is meaningless:
16374   *djgpp*)
16375     lt_prog_compiler_pic_GCJ=
16376     ;;
16377   *)
16378     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16379     ;;
16380 esac
16381
16382 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16383 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16384 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16385   echo $ECHO_N "(cached) $ECHO_C" >&6
16386 else
16387   lt_cv_prog_compiler_c_o_GCJ=no
16388    $rm -r conftest 2>/dev/null
16389    mkdir conftest
16390    cd conftest
16391    mkdir out
16392    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16393
16394    lt_compiler_flag="-o out/conftest2.$ac_objext"
16395    # Insert the option either (1) after the last *FLAGS variable, or
16396    # (2) before a word containing "conftest.", or (3) at the end.
16397    # Note that $ac_compile itself does not contain backslashes and begins
16398    # with a dollar sign (not a hyphen), so the echo should work correctly.
16399    lt_compile=`echo "$ac_compile" | $SED \
16400    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16401    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16402    -e 's:$: $lt_compiler_flag:'`
16403    (eval echo "\"\$as_me:16403: $lt_compile\"" >&5)
16404    (eval "$lt_compile" 2>out/conftest.err)
16405    ac_status=$?
16406    cat out/conftest.err >&5
16407    echo "$as_me:16407: \$? = $ac_status" >&5
16408    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16409    then
16410      # The compiler can only warn and ignore the option if not recognized
16411      # So say no if there are warnings
16412      if test ! -s out/conftest.err; then
16413        lt_cv_prog_compiler_c_o_GCJ=yes
16414      fi
16415    fi
16416    chmod u+w .
16417    $rm conftest*
16418    # SGI C++ compiler will create directory out/ii_files/ for
16419    # template instantiation
16420    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16421    $rm out/* && rmdir out
16422    cd ..
16423    rmdir conftest
16424    $rm conftest*
16425
16426 fi
16427 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16428 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16429
16430
16431 hard_links="nottested"
16432 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16433   # do not overwrite the value of need_locks provided by the user
16434   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16435 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16436   hard_links=yes
16437   $rm conftest*
16438   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16439   touch conftest.a
16440   ln conftest.a conftest.b 2>&5 || hard_links=no
16441   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16442   echo "$as_me:$LINENO: result: $hard_links" >&5
16443 echo "${ECHO_T}$hard_links" >&6
16444   if test "$hard_links" = no; then
16445     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16446 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16447     need_locks=warn
16448   fi
16449 else
16450   need_locks=no
16451 fi
16452
16453 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16454 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16455
16456   runpath_var=
16457   allow_undefined_flag_GCJ=
16458   enable_shared_with_static_runtimes_GCJ=no
16459   archive_cmds_GCJ=
16460   archive_expsym_cmds_GCJ=
16461   old_archive_From_new_cmds_GCJ=
16462   old_archive_from_expsyms_cmds_GCJ=
16463   export_dynamic_flag_spec_GCJ=
16464   whole_archive_flag_spec_GCJ=
16465   thread_safe_flag_spec_GCJ=
16466   hardcode_libdir_flag_spec_GCJ=
16467   hardcode_libdir_flag_spec_ld_GCJ=
16468   hardcode_libdir_separator_GCJ=
16469   hardcode_direct_GCJ=no
16470   hardcode_minus_L_GCJ=no
16471   hardcode_shlibpath_var_GCJ=unsupported
16472   link_all_deplibs_GCJ=unknown
16473   hardcode_automatic_GCJ=no
16474   module_cmds_GCJ=
16475   module_expsym_cmds_GCJ=
16476   always_export_symbols_GCJ=no
16477   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16478   # include_expsyms should be a list of space-separated symbols to be *always*
16479   # included in the symbol list
16480   include_expsyms_GCJ=
16481   # exclude_expsyms can be an extended regexp of symbols to exclude
16482   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16483   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16484   # as well as any symbol that contains `d'.
16485   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16486   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16487   # platforms (ab)use it in PIC code, but their linkers get confused if
16488   # the symbol is explicitly referenced.  Since portable code cannot
16489   # rely on this symbol name, it's probably fine to never include it in
16490   # preloaded symbol tables.
16491   extract_expsyms_cmds=
16492
16493   case $host_os in
16494   cygwin* | mingw* | pw32*)
16495     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16496     # When not using gcc, we currently assume that we are using
16497     # Microsoft Visual C++.
16498     if test "$GCC" != yes; then
16499       with_gnu_ld=no
16500     fi
16501     ;;
16502   openbsd*)
16503     with_gnu_ld=no
16504     ;;
16505   esac
16506
16507   ld_shlibs_GCJ=yes
16508   if test "$with_gnu_ld" = yes; then
16509     # If archive_cmds runs LD, not CC, wlarc should be empty
16510     wlarc='${wl}'
16511
16512     # See if GNU ld supports shared libraries.
16513     case $host_os in
16514     aix3* | aix4* | aix5*)
16515       # On AIX/PPC, the GNU linker is very broken
16516       if test "$host_cpu" != ia64; then
16517         ld_shlibs_GCJ=no
16518         cat <<EOF 1>&2
16519
16520 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16521 *** to be unable to reliably create shared libraries on AIX.
16522 *** Therefore, libtool is disabling shared libraries support.  If you
16523 *** really care for shared libraries, you may want to modify your PATH
16524 *** so that a non-GNU linker is found, and then restart.
16525
16526 EOF
16527       fi
16528       ;;
16529
16530     amigaos*)
16531       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)'
16532       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16533       hardcode_minus_L_GCJ=yes
16534
16535       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16536       # that the semantics of dynamic libraries on AmigaOS, at least up
16537       # to version 4, is to share data among multiple programs linked
16538       # with the same dynamic library.  Since this doesn't match the
16539       # behavior of shared libraries on other platforms, we can't use
16540       # them.
16541       ld_shlibs_GCJ=no
16542       ;;
16543
16544     beos*)
16545       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16546         allow_undefined_flag_GCJ=unsupported
16547         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16548         # support --undefined.  This deserves some investigation.  FIXME
16549         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16550       else
16551         ld_shlibs_GCJ=no
16552       fi
16553       ;;
16554
16555     cygwin* | mingw* | pw32*)
16556       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16557       # as there is no search path for DLLs.
16558       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16559       allow_undefined_flag_GCJ=unsupported
16560       always_export_symbols_GCJ=no
16561       enable_shared_with_static_runtimes_GCJ=yes
16562       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16563
16564       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16565         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16566         # If the export-symbols file already is a .def file (1st line
16567         # is EXPORTS), use it as is; otherwise, prepend...
16568         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16569           cp $export_symbols $output_objdir/$soname.def;
16570         else
16571           echo EXPORTS > $output_objdir/$soname.def;
16572           cat $export_symbols >> $output_objdir/$soname.def;
16573         fi~
16574         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16575       else
16576         ld_shlibs=no
16577       fi
16578       ;;
16579
16580     netbsd*)
16581       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16582         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16583         wlarc=
16584       else
16585         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16586         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16587       fi
16588       ;;
16589
16590     solaris* | sysv5*)
16591       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16592         ld_shlibs_GCJ=no
16593         cat <<EOF 1>&2
16594
16595 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16596 *** create shared libraries on Solaris systems.  Therefore, libtool
16597 *** is disabling shared libraries support.  We urge you to upgrade GNU
16598 *** binutils to release 2.9.1 or newer.  Another option is to modify
16599 *** your PATH or compiler configuration so that the native linker is
16600 *** used, and then restart.
16601
16602 EOF
16603       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16604         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16605         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16606       else
16607         ld_shlibs_GCJ=no
16608       fi
16609       ;;
16610
16611     sunos4*)
16612       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16613       wlarc=
16614       hardcode_direct_GCJ=yes
16615       hardcode_shlibpath_var_GCJ=no
16616       ;;
16617
16618   linux*)
16619     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16620         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16621         archive_cmds_GCJ="$tmp_archive_cmds"
16622       supports_anon_versioning=no
16623       case `$LD -v 2>/dev/null` in
16624         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16625         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16626         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16627         *\ 2.11.*) ;; # other 2.11 versions
16628         *) supports_anon_versioning=yes ;;
16629       esac
16630       if test $supports_anon_versioning = yes; then
16631         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16633 $echo "local: *; };" >> $output_objdir/$libname.ver~
16634         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16635       else
16636         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16637       fi
16638     else
16639       ld_shlibs_GCJ=no
16640     fi
16641     ;;
16642
16643     *)
16644       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16645         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16646         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16647       else
16648         ld_shlibs_GCJ=no
16649       fi
16650       ;;
16651     esac
16652
16653     if test "$ld_shlibs_GCJ" = yes; then
16654       runpath_var=LD_RUN_PATH
16655       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16656       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16657       # ancient GNU ld didn't support --whole-archive et. al.
16658       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16659         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16660       else
16661         whole_archive_flag_spec_GCJ=
16662       fi
16663     fi
16664   else
16665     # PORTME fill in a description of your system's linker (not GNU ld)
16666     case $host_os in
16667     aix3*)
16668       allow_undefined_flag_GCJ=unsupported
16669       always_export_symbols_GCJ=yes
16670       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'
16671       # Note: this linker hardcodes the directories in LIBPATH if there
16672       # are no directories specified by -L.
16673       hardcode_minus_L_GCJ=yes
16674       if test "$GCC" = yes && test -z "$link_static_flag"; then
16675         # Neither direct hardcoding nor static linking is supported with a
16676         # broken collect2.
16677         hardcode_direct_GCJ=unsupported
16678       fi
16679       ;;
16680
16681     aix4* | aix5*)
16682       if test "$host_cpu" = ia64; then
16683         # On IA64, the linker does run time linking by default, so we don't
16684         # have to do anything special.
16685         aix_use_runtimelinking=no
16686         exp_sym_flag='-Bexport'
16687         no_entry_flag=""
16688       else
16689         # If we're using GNU nm, then we don't want the "-C" option.
16690         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16691         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16692           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'
16693         else
16694           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'
16695         fi
16696         aix_use_runtimelinking=no
16697
16698         # Test if we are trying to use run time linking or normal
16699         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16700         # need to do runtime linking.
16701         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16702           for ld_flag in $LDFLAGS; do
16703           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16704             aix_use_runtimelinking=yes
16705             break
16706           fi
16707           done
16708         esac
16709
16710         exp_sym_flag='-bexport'
16711         no_entry_flag='-bnoentry'
16712       fi
16713
16714       # When large executables or shared objects are built, AIX ld can
16715       # have problems creating the table of contents.  If linking a library
16716       # or program results in "error TOC overflow" add -mminimal-toc to
16717       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16718       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16719
16720       archive_cmds_GCJ=''
16721       hardcode_direct_GCJ=yes
16722       hardcode_libdir_separator_GCJ=':'
16723       link_all_deplibs_GCJ=yes
16724
16725       if test "$GCC" = yes; then
16726         case $host_os in aix4.012|aix4.012.*)
16727         # We only want to do this on AIX 4.2 and lower, the check
16728         # below for broken collect2 doesn't work under 4.3+
16729           collect2name=`${CC} -print-prog-name=collect2`
16730           if test -f "$collect2name" && \
16731            strings "$collect2name" | grep resolve_lib_name >/dev/null
16732           then
16733           # We have reworked collect2
16734           hardcode_direct_GCJ=yes
16735           else
16736           # We have old collect2
16737           hardcode_direct_GCJ=unsupported
16738           # It fails to find uninstalled libraries when the uninstalled
16739           # path is not listed in the libpath.  Setting hardcode_minus_L
16740           # to unsupported forces relinking
16741           hardcode_minus_L_GCJ=yes
16742           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16743           hardcode_libdir_separator_GCJ=
16744           fi
16745         esac
16746         shared_flag='-shared'
16747       else
16748         # not using gcc
16749         if test "$host_cpu" = ia64; then
16750         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16751         # chokes on -Wl,-G. The following line is correct:
16752           shared_flag='-G'
16753         else
16754         if test "$aix_use_runtimelinking" = yes; then
16755             shared_flag='${wl}-G'
16756           else
16757             shared_flag='${wl}-bM:SRE'
16758         fi
16759         fi
16760       fi
16761
16762       # It seems that -bexpall does not export symbols beginning with
16763       # underscore (_), so it is better to generate a list of symbols to export.
16764       always_export_symbols_GCJ=yes
16765       if test "$aix_use_runtimelinking" = yes; then
16766         # Warning - without using the other runtime loading flags (-brtl),
16767         # -berok will link without error, but may produce a broken library.
16768         allow_undefined_flag_GCJ='-berok'
16769        # Determine the default libpath from the value encoded in an empty executable.
16770        cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776
16777 int
16778 main ()
16779 {
16780
16781   ;
16782   return 0;
16783 }
16784 _ACEOF
16785 rm -f conftest.$ac_objext conftest$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787   (eval $ac_link) 2>conftest.er1
16788   ac_status=$?
16789   grep -v '^ *+' conftest.er1 >conftest.err
16790   rm -f conftest.er1
16791   cat conftest.err >&5
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); } &&
16794          { ac_try='test -z "$ac_c_werror_flag"
16795                          || test ! -s conftest.err'
16796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797   (eval $ac_try) 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; } &&
16801          { ac_try='test -s conftest$ac_exeext'
16802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803   (eval $ac_try) 2>&5
16804   ac_status=$?
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); }; }; then
16807
16808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16809 }'`
16810 # Check for a 64-bit object if we didn't find anything.
16811 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; }
16812 }'`; fi
16813 else
16814   echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16816
16817 fi
16818 rm -f conftest.err conftest.$ac_objext \
16819       conftest$ac_exeext conftest.$ac_ext
16820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16821
16822        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16823         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"
16824        else
16825         if test "$host_cpu" = ia64; then
16826           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16827           allow_undefined_flag_GCJ="-z nodefs"
16828           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"
16829         else
16830          # Determine the default libpath from the value encoded in an empty executable.
16831          cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h.  */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h.  */
16837
16838 int
16839 main ()
16840 {
16841
16842   ;
16843   return 0;
16844 }
16845 _ACEOF
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16848   (eval $ac_link) 2>conftest.er1
16849   ac_status=$?
16850   grep -v '^ *+' conftest.er1 >conftest.err
16851   rm -f conftest.er1
16852   cat conftest.err >&5
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); } &&
16855          { ac_try='test -z "$ac_c_werror_flag"
16856                          || test ! -s conftest.err'
16857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858   (eval $ac_try) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; } &&
16862          { ac_try='test -s conftest$ac_exeext'
16863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864   (eval $ac_try) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); }; }; then
16868
16869 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16870 }'`
16871 # Check for a 64-bit object if we didn't find anything.
16872 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; }
16873 }'`; fi
16874 else
16875   echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16877
16878 fi
16879 rm -f conftest.err conftest.$ac_objext \
16880       conftest$ac_exeext conftest.$ac_ext
16881 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16882
16883          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16884           # Warning - without using the other run time loading flags,
16885           # -berok will link without error, but may produce a broken library.
16886           no_undefined_flag_GCJ=' ${wl}-bernotok'
16887           allow_undefined_flag_GCJ=' ${wl}-berok'
16888           # -bexpall does not export symbols beginning with underscore (_)
16889           always_export_symbols_GCJ=yes
16890           # Exported symbols can be pulled into shared objects from archives
16891           whole_archive_flag_spec_GCJ=' '
16892           archive_cmds_need_lc_GCJ=yes
16893           # This is similar to how AIX traditionally builds it's shared libraries.
16894           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'
16895         fi
16896       fi
16897       ;;
16898
16899     amigaos*)
16900       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)'
16901       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16902       hardcode_minus_L_GCJ=yes
16903       # see comment about different semantics on the GNU ld section
16904       ld_shlibs_GCJ=no
16905       ;;
16906
16907     bsdi4*)
16908       export_dynamic_flag_spec_GCJ=-rdynamic
16909       ;;
16910
16911     cygwin* | mingw* | pw32*)
16912       # When not using gcc, we currently assume that we are using
16913       # Microsoft Visual C++.
16914       # hardcode_libdir_flag_spec is actually meaningless, as there is
16915       # no search path for DLLs.
16916       hardcode_libdir_flag_spec_GCJ=' '
16917       allow_undefined_flag_GCJ=unsupported
16918       # Tell ltmain to make .lib files, not .a files.
16919       libext=lib
16920       # Tell ltmain to make .dll files, not .so files.
16921       shrext_cmds=".dll"
16922       # FIXME: Setting linknames here is a bad hack.
16923       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16924       # The linker will automatically build a .lib file if we build a DLL.
16925       old_archive_From_new_cmds_GCJ='true'
16926       # FIXME: Should let the user specify the lib program.
16927       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16928       fix_srcfile_path='`cygpath -w "$srcfile"`'
16929       enable_shared_with_static_runtimes_GCJ=yes
16930       ;;
16931
16932     darwin* | rhapsody*)
16933     if test "$GXX" = yes ; then
16934       archive_cmds_need_lc_GCJ=no
16935       case "$host_os" in
16936       rhapsody* | darwin1.[012])
16937         allow_undefined_flag_GCJ='-undefined suppress'
16938         ;;
16939       *) # Darwin 1.3 on
16940       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16941         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16942       else
16943         case ${MACOSX_DEPLOYMENT_TARGET} in
16944           10.[012])
16945             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16946             ;;
16947           10.*)
16948             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16949             ;;
16950         esac
16951       fi
16952         ;;
16953       esac
16954         lt_int_apple_cc_single_mod=no
16955         output_verbose_link_cmd='echo'
16956         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16957           lt_int_apple_cc_single_mod=yes
16958         fi
16959         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16960           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16961         else
16962         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16963       fi
16964       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16965       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16966         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16967           archive_expsym_cmds_GCJ='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}'
16968         else
16969           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16970         fi
16971           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}'
16972       hardcode_direct_GCJ=no
16973       hardcode_automatic_GCJ=yes
16974       hardcode_shlibpath_var_GCJ=unsupported
16975       whole_archive_flag_spec_GCJ='-all_load $convenience'
16976       link_all_deplibs_GCJ=yes
16977     else
16978       ld_shlibs_GCJ=no
16979     fi
16980       ;;
16981
16982     dgux*)
16983       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985       hardcode_shlibpath_var_GCJ=no
16986       ;;
16987
16988     freebsd1*)
16989       ld_shlibs_GCJ=no
16990       ;;
16991
16992     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16993     # support.  Future versions do this automatically, but an explicit c++rt0.o
16994     # does not break anything, and helps significantly (at the cost of a little
16995     # extra space).
16996     freebsd2.2*)
16997       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16998       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16999       hardcode_direct_GCJ=yes
17000       hardcode_shlibpath_var_GCJ=no
17001       ;;
17002
17003     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17004     freebsd2*)
17005       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17006       hardcode_direct_GCJ=yes
17007       hardcode_minus_L_GCJ=yes
17008       hardcode_shlibpath_var_GCJ=no
17009       ;;
17010
17011     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17012     freebsd* | kfreebsd*-gnu)
17013       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17014       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17015       hardcode_direct_GCJ=yes
17016       hardcode_shlibpath_var_GCJ=no
17017       ;;
17018
17019     hpux9*)
17020       if test "$GCC" = yes; then
17021         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'
17022       else
17023         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'
17024       fi
17025       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17026       hardcode_libdir_separator_GCJ=:
17027       hardcode_direct_GCJ=yes
17028
17029       # hardcode_minus_L: Not really in the search PATH,
17030       # but as the default location of the library.
17031       hardcode_minus_L_GCJ=yes
17032       export_dynamic_flag_spec_GCJ='${wl}-E'
17033       ;;
17034
17035     hpux10* | hpux11*)
17036       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17037         case "$host_cpu" in
17038         hppa*64*|ia64*)
17039           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17040           ;;
17041         *)
17042           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17043           ;;
17044         esac
17045       else
17046         case "$host_cpu" in
17047         hppa*64*|ia64*)
17048           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17049           ;;
17050         *)
17051           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17052           ;;
17053         esac
17054       fi
17055       if test "$with_gnu_ld" = no; then
17056         case "$host_cpu" in
17057         hppa*64*)
17058           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17059           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17060           hardcode_libdir_separator_GCJ=:
17061           hardcode_direct_GCJ=no
17062           hardcode_shlibpath_var_GCJ=no
17063           ;;
17064         ia64*)
17065           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066           hardcode_direct_GCJ=no
17067           hardcode_shlibpath_var_GCJ=no
17068
17069           # hardcode_minus_L: Not really in the search PATH,
17070           # but as the default location of the library.
17071           hardcode_minus_L_GCJ=yes
17072           ;;
17073         *)
17074           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17075           hardcode_libdir_separator_GCJ=:
17076           hardcode_direct_GCJ=yes
17077           export_dynamic_flag_spec_GCJ='${wl}-E'
17078
17079           # hardcode_minus_L: Not really in the search PATH,
17080           # but as the default location of the library.
17081           hardcode_minus_L_GCJ=yes
17082           ;;
17083         esac
17084       fi
17085       ;;
17086
17087     irix5* | irix6* | nonstopux*)
17088       if test "$GCC" = yes; then
17089         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'
17090       else
17091         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'
17092         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17093       fi
17094       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17095       hardcode_libdir_separator_GCJ=:
17096       link_all_deplibs_GCJ=yes
17097       ;;
17098
17099     netbsd*)
17100       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17101         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17102       else
17103         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17104       fi
17105       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17106       hardcode_direct_GCJ=yes
17107       hardcode_shlibpath_var_GCJ=no
17108       ;;
17109
17110     newsos6)
17111       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17112       hardcode_direct_GCJ=yes
17113       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17114       hardcode_libdir_separator_GCJ=:
17115       hardcode_shlibpath_var_GCJ=no
17116       ;;
17117
17118     openbsd*)
17119       hardcode_direct_GCJ=yes
17120       hardcode_shlibpath_var_GCJ=no
17121       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17122         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17123         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17124         export_dynamic_flag_spec_GCJ='${wl}-E'
17125       else
17126        case $host_os in
17127          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17128            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17130            ;;
17131          *)
17132            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17133            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17134            ;;
17135        esac
17136       fi
17137       ;;
17138
17139     os2*)
17140       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141       hardcode_minus_L_GCJ=yes
17142       allow_undefined_flag_GCJ=unsupported
17143       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'
17144       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17145       ;;
17146
17147     osf3*)
17148       if test "$GCC" = yes; then
17149         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17150         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'
17151       else
17152         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17153         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'
17154       fi
17155       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17156       hardcode_libdir_separator_GCJ=:
17157       ;;
17158
17159     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17160       if test "$GCC" = yes; then
17161         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17162         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'
17163         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17164       else
17165         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17166         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'
17167         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~
17168         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17169
17170         # Both c and cxx compiler support -rpath directly
17171         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17172       fi
17173       hardcode_libdir_separator_GCJ=:
17174       ;;
17175
17176     sco3.2v5*)
17177       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178       hardcode_shlibpath_var_GCJ=no
17179       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17180       runpath_var=LD_RUN_PATH
17181       hardcode_runpath_var=yes
17182       ;;
17183
17184     solaris*)
17185       no_undefined_flag_GCJ=' -z text'
17186       if test "$GCC" = yes; then
17187         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17188         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17189           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17190       else
17191         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17192         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17193         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17194       fi
17195       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17196       hardcode_shlibpath_var_GCJ=no
17197       case $host_os in
17198       solaris2.[0-5] | solaris2.[0-5].*) ;;
17199       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17200         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17201       esac
17202       link_all_deplibs_GCJ=yes
17203       ;;
17204
17205     sunos4*)
17206       if test "x$host_vendor" = xsequent; then
17207         # Use $CC to link under sequent, because it throws in some extra .o
17208         # files that make .init and .fini sections work.
17209         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17210       else
17211         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17212       fi
17213       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17214       hardcode_direct_GCJ=yes
17215       hardcode_minus_L_GCJ=yes
17216       hardcode_shlibpath_var_GCJ=no
17217       ;;
17218
17219     sysv4)
17220       case $host_vendor in
17221         sni)
17222           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223           hardcode_direct_GCJ=yes # is this really true???
17224         ;;
17225         siemens)
17226           ## LD is ld it makes a PLAMLIB
17227           ## CC just makes a GrossModule.
17228           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17229           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17230           hardcode_direct_GCJ=no
17231         ;;
17232         motorola)
17233           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17234           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17235         ;;
17236       esac
17237       runpath_var='LD_RUN_PATH'
17238       hardcode_shlibpath_var_GCJ=no
17239       ;;
17240
17241     sysv4.3*)
17242       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243       hardcode_shlibpath_var_GCJ=no
17244       export_dynamic_flag_spec_GCJ='-Bexport'
17245       ;;
17246
17247     sysv4*MP*)
17248       if test -d /usr/nec; then
17249         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250         hardcode_shlibpath_var_GCJ=no
17251         runpath_var=LD_RUN_PATH
17252         hardcode_runpath_var=yes
17253         ld_shlibs_GCJ=yes
17254       fi
17255       ;;
17256
17257     sysv4.2uw2*)
17258       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17259       hardcode_direct_GCJ=yes
17260       hardcode_minus_L_GCJ=no
17261       hardcode_shlibpath_var_GCJ=no
17262       hardcode_runpath_var=yes
17263       runpath_var=LD_RUN_PATH
17264       ;;
17265
17266    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17267       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17268       if test "$GCC" = yes; then
17269         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17270       else
17271         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17272       fi
17273       runpath_var='LD_RUN_PATH'
17274       hardcode_shlibpath_var_GCJ=no
17275       ;;
17276
17277     sysv5*)
17278       no_undefined_flag_GCJ=' -z text'
17279       # $CC -shared without GNU ld will not create a library from C++
17280       # object files and a static libstdc++, better avoid it by now
17281       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17282       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17283                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17284       hardcode_libdir_flag_spec_GCJ=
17285       hardcode_shlibpath_var_GCJ=no
17286       runpath_var='LD_RUN_PATH'
17287       ;;
17288
17289     uts4*)
17290       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17291       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292       hardcode_shlibpath_var_GCJ=no
17293       ;;
17294
17295     *)
17296       ld_shlibs_GCJ=no
17297       ;;
17298     esac
17299   fi
17300
17301 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17302 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17303 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17304
17305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17306 if test "$GCC" = yes; then
17307   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17308 fi
17309
17310 #
17311 # Do we need to explicitly link libc?
17312 #
17313 case "x$archive_cmds_need_lc_GCJ" in
17314 x|xyes)
17315   # Assume -lc should be added
17316   archive_cmds_need_lc_GCJ=yes
17317
17318   if test "$enable_shared" = yes && test "$GCC" = yes; then
17319     case $archive_cmds_GCJ in
17320     *'~'*)
17321       # FIXME: we may have to deal with multi-command sequences.
17322       ;;
17323     '$CC '*)
17324       # Test whether the compiler implicitly links with -lc since on some
17325       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17326       # to ld, don't add -lc before -lgcc.
17327       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17328 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17329       $rm conftest*
17330       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17331
17332       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17333   (eval $ac_compile) 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } 2>conftest.err; then
17337         soname=conftest
17338         lib=conftest
17339         libobjs=conftest.$ac_objext
17340         deplibs=
17341         wl=$lt_prog_compiler_wl_GCJ
17342         compiler_flags=-v
17343         linker_flags=-v
17344         verstring=
17345         output_objdir=.
17346         libname=conftest
17347         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17348         allow_undefined_flag_GCJ=
17349         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17350   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }
17354         then
17355           archive_cmds_need_lc_GCJ=no
17356         else
17357           archive_cmds_need_lc_GCJ=yes
17358         fi
17359         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17360       else
17361         cat conftest.err 1>&5
17362       fi
17363       $rm conftest*
17364       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17365 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17366       ;;
17367     esac
17368   fi
17369   ;;
17370 esac
17371
17372 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17374 library_names_spec=
17375 libname_spec='lib$name'
17376 soname_spec=
17377 shrext_cmds=".so"
17378 postinstall_cmds=
17379 postuninstall_cmds=
17380 finish_cmds=
17381 finish_eval=
17382 shlibpath_var=
17383 shlibpath_overrides_runpath=unknown
17384 version_type=none
17385 dynamic_linker="$host_os ld.so"
17386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17387 if test "$GCC" = yes; then
17388   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17389   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17390     # if the path contains ";" then we assume it to be the separator
17391     # otherwise default to the standard path separator (i.e. ":") - it is
17392     # assumed that no part of a normal pathname contains ";" but that should
17393     # okay in the real world where ";" in dirpaths is itself problematic.
17394     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17395   else
17396     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17397   fi
17398 else
17399   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17400 fi
17401 need_lib_prefix=unknown
17402 hardcode_into_libs=no
17403
17404 # when you set need_version to no, make sure it does not cause -set_version
17405 # flags to be left without arguments
17406 need_version=unknown
17407
17408 case $host_os in
17409 aix3*)
17410   version_type=linux
17411   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17412   shlibpath_var=LIBPATH
17413
17414   # AIX 3 has no versioning support, so we append a major version to the name.
17415   soname_spec='${libname}${release}${shared_ext}$major'
17416   ;;
17417
17418 aix4* | aix5*)
17419   version_type=linux
17420   need_lib_prefix=no
17421   need_version=no
17422   hardcode_into_libs=yes
17423   if test "$host_cpu" = ia64; then
17424     # AIX 5 supports IA64
17425     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17426     shlibpath_var=LD_LIBRARY_PATH
17427   else
17428     # With GCC up to 2.95.x, collect2 would create an import file
17429     # for dependence libraries.  The import file would start with
17430     # the line `#! .'.  This would cause the generated library to
17431     # depend on `.', always an invalid library.  This was fixed in
17432     # development snapshots of GCC prior to 3.0.
17433     case $host_os in
17434       aix4 | aix4.[01] | aix4.[01].*)
17435       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17436            echo ' yes '
17437            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17438         :
17439       else
17440         can_build_shared=no
17441       fi
17442       ;;
17443     esac
17444     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17445     # soname into executable. Probably we can add versioning support to
17446     # collect2, so additional links can be useful in future.
17447     if test "$aix_use_runtimelinking" = yes; then
17448       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17449       # instead of lib<name>.a to let people know that these are not
17450       # typical AIX shared libraries.
17451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452     else
17453       # We preserve .a as extension for shared libraries through AIX4.2
17454       # and later when we are not doing run time linking.
17455       library_names_spec='${libname}${release}.a $libname.a'
17456       soname_spec='${libname}${release}${shared_ext}$major'
17457     fi
17458     shlibpath_var=LIBPATH
17459   fi
17460   ;;
17461
17462 amigaos*)
17463   library_names_spec='$libname.ixlibrary $libname.a'
17464   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17465   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'
17466   ;;
17467
17468 beos*)
17469   library_names_spec='${libname}${shared_ext}'
17470   dynamic_linker="$host_os ld.so"
17471   shlibpath_var=LIBRARY_PATH
17472   ;;
17473
17474 bsdi4*)
17475   version_type=linux
17476   need_version=no
17477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478   soname_spec='${libname}${release}${shared_ext}$major'
17479   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17480   shlibpath_var=LD_LIBRARY_PATH
17481   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17482   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17483   # the default ld.so.conf also contains /usr/contrib/lib and
17484   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17485   # libtool to hard-code these into programs
17486   ;;
17487
17488 cygwin* | mingw* | pw32*)
17489   version_type=windows
17490   shrext_cmds=".dll"
17491   need_version=no
17492   need_lib_prefix=no
17493
17494   case $GCC,$host_os in
17495   yes,cygwin* | yes,mingw* | yes,pw32*)
17496     library_names_spec='$libname.dll.a'
17497     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17498     postinstall_cmds='base_file=`basename \${file}`~
17499       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17500       dldir=$destdir/`dirname \$dlpath`~
17501       test -d \$dldir || mkdir -p \$dldir~
17502       $install_prog $dir/$dlname \$dldir/$dlname'
17503     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17504       dlpath=$dir/\$dldll~
17505        $rm \$dlpath'
17506     shlibpath_overrides_runpath=yes
17507
17508     case $host_os in
17509     cygwin*)
17510       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17511       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17512       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17513       ;;
17514     mingw*)
17515       # MinGW DLLs use traditional 'lib' prefix
17516       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17517       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17518       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17519         # It is most probably a Windows format PATH printed by
17520         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17521         # path with ; separators, and with drive letters. We can handle the
17522         # drive letters (cygwin fileutils understands them), so leave them,
17523         # especially as we might pass files found there to a mingw objdump,
17524         # which wouldn't understand a cygwinified path. Ahh.
17525         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17526       else
17527         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17528       fi
17529       ;;
17530     pw32*)
17531       # pw32 DLLs use 'pw' prefix rather than 'lib'
17532       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17533       ;;
17534     esac
17535     ;;
17536
17537   *)
17538     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17539     ;;
17540   esac
17541   dynamic_linker='Win32 ld.exe'
17542   # FIXME: first we should search . and the directory the executable is in
17543   shlibpath_var=PATH
17544   ;;
17545
17546 darwin* | rhapsody*)
17547   dynamic_linker="$host_os dyld"
17548   version_type=darwin
17549   need_lib_prefix=no
17550   need_version=no
17551   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17552   soname_spec='${libname}${release}${major}$shared_ext'
17553   shlibpath_overrides_runpath=yes
17554   shlibpath_var=DYLD_LIBRARY_PATH
17555   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17556   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17557   if test "$GCC" = yes; then
17558     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"`
17559   else
17560     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17561   fi
17562   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17563   ;;
17564
17565 dgux*)
17566   version_type=linux
17567   need_lib_prefix=no
17568   need_version=no
17569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17570   soname_spec='${libname}${release}${shared_ext}$major'
17571   shlibpath_var=LD_LIBRARY_PATH
17572   ;;
17573
17574 freebsd1*)
17575   dynamic_linker=no
17576   ;;
17577
17578 kfreebsd*-gnu)
17579   version_type=linux
17580   need_lib_prefix=no
17581   need_version=no
17582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17583   soname_spec='${libname}${release}${shared_ext}$major'
17584   shlibpath_var=LD_LIBRARY_PATH
17585   shlibpath_overrides_runpath=no
17586   hardcode_into_libs=yes
17587   dynamic_linker='GNU ld.so'
17588   ;;
17589
17590 freebsd*)
17591   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17592   version_type=freebsd-$objformat
17593   case $version_type in
17594     freebsd-elf*)
17595       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17596       need_version=no
17597       need_lib_prefix=no
17598       ;;
17599     freebsd-*)
17600       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17601       need_version=yes
17602       ;;
17603   esac
17604   shlibpath_var=LD_LIBRARY_PATH
17605   case $host_os in
17606   freebsd2*)
17607     shlibpath_overrides_runpath=yes
17608     ;;
17609   freebsd3.01* | freebsdelf3.01*)
17610     shlibpath_overrides_runpath=yes
17611     hardcode_into_libs=yes
17612     ;;
17613   *) # from 3.2 on
17614     shlibpath_overrides_runpath=no
17615     hardcode_into_libs=yes
17616     ;;
17617   esac
17618   ;;
17619
17620 gnu*)
17621   version_type=linux
17622   need_lib_prefix=no
17623   need_version=no
17624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17625   soname_spec='${libname}${release}${shared_ext}$major'
17626   shlibpath_var=LD_LIBRARY_PATH
17627   hardcode_into_libs=yes
17628   ;;
17629
17630 hpux9* | hpux10* | hpux11*)
17631   # Give a soname corresponding to the major version so that dld.sl refuses to
17632   # link against other versions.
17633   version_type=sunos
17634   need_lib_prefix=no
17635   need_version=no
17636   case "$host_cpu" in
17637   ia64*)
17638     shrext_cmds='.so'
17639     hardcode_into_libs=yes
17640     dynamic_linker="$host_os dld.so"
17641     shlibpath_var=LD_LIBRARY_PATH
17642     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17643     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644     soname_spec='${libname}${release}${shared_ext}$major'
17645     if test "X$HPUX_IA64_MODE" = X32; then
17646       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17647     else
17648       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17649     fi
17650     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17651     ;;
17652    hppa*64*)
17653      shrext_cmds='.sl'
17654      hardcode_into_libs=yes
17655      dynamic_linker="$host_os dld.sl"
17656      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17657      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17658      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659      soname_spec='${libname}${release}${shared_ext}$major'
17660      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17661      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17662      ;;
17663    *)
17664     shrext_cmds='.sl'
17665     dynamic_linker="$host_os dld.sl"
17666     shlibpath_var=SHLIB_PATH
17667     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669     soname_spec='${libname}${release}${shared_ext}$major'
17670     ;;
17671   esac
17672   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17673   postinstall_cmds='chmod 555 $lib'
17674   ;;
17675
17676 irix5* | irix6* | nonstopux*)
17677   case $host_os in
17678     nonstopux*) version_type=nonstopux ;;
17679     *)
17680         if test "$lt_cv_prog_gnu_ld" = yes; then
17681                 version_type=linux
17682         else
17683                 version_type=irix
17684         fi ;;
17685   esac
17686   need_lib_prefix=no
17687   need_version=no
17688   soname_spec='${libname}${release}${shared_ext}$major'
17689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17690   case $host_os in
17691   irix5* | nonstopux*)
17692     libsuff= shlibsuff=
17693     ;;
17694   *)
17695     case $LD in # libtool.m4 will add one of these switches to LD
17696     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17697       libsuff= shlibsuff= libmagic=32-bit;;
17698     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17699       libsuff=32 shlibsuff=N32 libmagic=N32;;
17700     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17701       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17702     *) libsuff= shlibsuff= libmagic=never-match;;
17703     esac
17704     ;;
17705   esac
17706   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17707   shlibpath_overrides_runpath=no
17708   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17709   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17710   hardcode_into_libs=yes
17711   ;;
17712
17713 # No shared lib support for Linux oldld, aout, or coff.
17714 linux*oldld* | linux*aout* | linux*coff*)
17715   dynamic_linker=no
17716   ;;
17717
17718 # This must be Linux ELF.
17719 linux*)
17720   version_type=linux
17721   need_lib_prefix=no
17722   need_version=no
17723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724   soname_spec='${libname}${release}${shared_ext}$major'
17725   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17726   shlibpath_var=LD_LIBRARY_PATH
17727   shlibpath_overrides_runpath=no
17728   # This implies no fast_install, which is unacceptable.
17729   # Some rework will be needed to allow for fast_install
17730   # before this can be enabled.
17731   hardcode_into_libs=yes
17732
17733   # find out which ABI we are using
17734   libsuff=
17735   case "$host_cpu" in
17736   x86_64*|s390x*|powerpc64*)
17737     echo '#line 17737 "configure"' > conftest.$ac_ext
17738     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17739   (eval $ac_compile) 2>&5
17740   ac_status=$?
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); }; then
17743       case `/usr/bin/file conftest.$ac_objext` in
17744       *64-bit*)
17745         libsuff=64
17746         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17747         ;;
17748       esac
17749     fi
17750     rm -rf conftest*
17751     ;;
17752   esac
17753
17754   # Append ld.so.conf contents to the search path
17755   if test -f /etc/ld.so.conf; then
17756     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17757     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17758   fi
17759
17760   # We used to test for /lib/ld.so.1 and disable shared libraries on
17761   # powerpc, because MkLinux only supported shared libraries with the
17762   # GNU dynamic linker.  Since this was broken with cross compilers,
17763   # most powerpc-linux boxes support dynamic linking these days and
17764   # people can always --disable-shared, the test was removed, and we
17765   # assume the GNU/Linux dynamic linker is in use.
17766   dynamic_linker='GNU/Linux ld.so'
17767   ;;
17768
17769 knetbsd*-gnu)
17770   version_type=linux
17771   need_lib_prefix=no
17772   need_version=no
17773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17774   soname_spec='${libname}${release}${shared_ext}$major'
17775   shlibpath_var=LD_LIBRARY_PATH
17776   shlibpath_overrides_runpath=no
17777   hardcode_into_libs=yes
17778   dynamic_linker='GNU ld.so'
17779   ;;
17780
17781 netbsd*)
17782   version_type=sunos
17783   need_lib_prefix=no
17784   need_version=no
17785   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17787     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17788     dynamic_linker='NetBSD (a.out) ld.so'
17789   else
17790     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17791     soname_spec='${libname}${release}${shared_ext}$major'
17792     dynamic_linker='NetBSD ld.elf_so'
17793   fi
17794   shlibpath_var=LD_LIBRARY_PATH
17795   shlibpath_overrides_runpath=yes
17796   hardcode_into_libs=yes
17797   ;;
17798
17799 newsos6)
17800   version_type=linux
17801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802   shlibpath_var=LD_LIBRARY_PATH
17803   shlibpath_overrides_runpath=yes
17804   ;;
17805
17806 nto-qnx*)
17807   version_type=linux
17808   need_lib_prefix=no
17809   need_version=no
17810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811   soname_spec='${libname}${release}${shared_ext}$major'
17812   shlibpath_var=LD_LIBRARY_PATH
17813   shlibpath_overrides_runpath=yes
17814   ;;
17815
17816 openbsd*)
17817   version_type=sunos
17818   need_lib_prefix=no
17819   need_version=yes
17820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17821   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17822   shlibpath_var=LD_LIBRARY_PATH
17823   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17824     case $host_os in
17825       openbsd2.[89] | openbsd2.[89].*)
17826         shlibpath_overrides_runpath=no
17827         ;;
17828       *)
17829         shlibpath_overrides_runpath=yes
17830         ;;
17831       esac
17832   else
17833     shlibpath_overrides_runpath=yes
17834   fi
17835   ;;
17836
17837 os2*)
17838   libname_spec='$name'
17839   shrext_cmds=".dll"
17840   need_lib_prefix=no
17841   library_names_spec='$libname${shared_ext} $libname.a'
17842   dynamic_linker='OS/2 ld.exe'
17843   shlibpath_var=LIBPATH
17844   ;;
17845
17846 osf3* | osf4* | osf5*)
17847   version_type=osf
17848   need_lib_prefix=no
17849   need_version=no
17850   soname_spec='${libname}${release}${shared_ext}$major'
17851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17852   shlibpath_var=LD_LIBRARY_PATH
17853   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17854   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17855   ;;
17856
17857 sco3.2v5*)
17858   version_type=osf
17859   soname_spec='${libname}${release}${shared_ext}$major'
17860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17861   shlibpath_var=LD_LIBRARY_PATH
17862   ;;
17863
17864 solaris*)
17865   version_type=linux
17866   need_lib_prefix=no
17867   need_version=no
17868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869   soname_spec='${libname}${release}${shared_ext}$major'
17870   shlibpath_var=LD_LIBRARY_PATH
17871   shlibpath_overrides_runpath=yes
17872   hardcode_into_libs=yes
17873   # ldd complains unless libraries are executable
17874   postinstall_cmds='chmod +x $lib'
17875   ;;
17876
17877 sunos4*)
17878   version_type=sunos
17879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17880   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17881   shlibpath_var=LD_LIBRARY_PATH
17882   shlibpath_overrides_runpath=yes
17883   if test "$with_gnu_ld" = yes; then
17884     need_lib_prefix=no
17885   fi
17886   need_version=yes
17887   ;;
17888
17889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17890   version_type=linux
17891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17892   soname_spec='${libname}${release}${shared_ext}$major'
17893   shlibpath_var=LD_LIBRARY_PATH
17894   case $host_vendor in
17895     sni)
17896       shlibpath_overrides_runpath=no
17897       need_lib_prefix=no
17898       export_dynamic_flag_spec='${wl}-Blargedynsym'
17899       runpath_var=LD_RUN_PATH
17900       ;;
17901     siemens)
17902       need_lib_prefix=no
17903       ;;
17904     motorola)
17905       need_lib_prefix=no
17906       need_version=no
17907       shlibpath_overrides_runpath=no
17908       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17909       ;;
17910   esac
17911   ;;
17912
17913 sysv4*MP*)
17914   if test -d /usr/nec ;then
17915     version_type=linux
17916     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17917     soname_spec='$libname${shared_ext}.$major'
17918     shlibpath_var=LD_LIBRARY_PATH
17919   fi
17920   ;;
17921
17922 uts4*)
17923   version_type=linux
17924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17925   soname_spec='${libname}${release}${shared_ext}$major'
17926   shlibpath_var=LD_LIBRARY_PATH
17927   ;;
17928
17929 *)
17930   dynamic_linker=no
17931   ;;
17932 esac
17933 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17934 echo "${ECHO_T}$dynamic_linker" >&6
17935 test "$dynamic_linker" = no && can_build_shared=no
17936
17937 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17938 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17939 hardcode_action_GCJ=
17940 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17941    test -n "$runpath_var GCJ" || \
17942    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17943
17944   # We can hardcode non-existant directories.
17945   if test "$hardcode_direct_GCJ" != no &&
17946      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17947      # have to relink, otherwise we might link with an installed library
17948      # when we should be linking with a yet-to-be-installed one
17949      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17950      test "$hardcode_minus_L_GCJ" != no; then
17951     # Linking always hardcodes the temporary library directory.
17952     hardcode_action_GCJ=relink
17953   else
17954     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17955     hardcode_action_GCJ=immediate
17956   fi
17957 else
17958   # We cannot hardcode anything, or else we can only hardcode existing
17959   # directories.
17960   hardcode_action_GCJ=unsupported
17961 fi
17962 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17963 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17964
17965 if test "$hardcode_action_GCJ" = relink; then
17966   # Fast installation is not supported
17967   enable_fast_install=no
17968 elif test "$shlibpath_overrides_runpath" = yes ||
17969      test "$enable_shared" = no; then
17970   # Fast installation is not necessary
17971   enable_fast_install=needless
17972 fi
17973
17974 striplib=
17975 old_striplib=
17976 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17977 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17978 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17979   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17980   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17981   echo "$as_me:$LINENO: result: yes" >&5
17982 echo "${ECHO_T}yes" >&6
17983 else
17984 # FIXME - insert some real tests, host_os isn't really good enough
17985   case $host_os in
17986    darwin*)
17987        if test -n "$STRIP" ; then
17988          striplib="$STRIP -x"
17989          echo "$as_me:$LINENO: result: yes" >&5
17990 echo "${ECHO_T}yes" >&6
17991        else
17992   echo "$as_me:$LINENO: result: no" >&5
17993 echo "${ECHO_T}no" >&6
17994 fi
17995        ;;
17996    *)
17997   echo "$as_me:$LINENO: result: no" >&5
17998 echo "${ECHO_T}no" >&6
17999     ;;
18000   esac
18001 fi
18002
18003 if test "x$enable_dlopen" != xyes; then
18004   enable_dlopen=unknown
18005   enable_dlopen_self=unknown
18006   enable_dlopen_self_static=unknown
18007 else
18008   lt_cv_dlopen=no
18009   lt_cv_dlopen_libs=
18010
18011   case $host_os in
18012   beos*)
18013     lt_cv_dlopen="load_add_on"
18014     lt_cv_dlopen_libs=
18015     lt_cv_dlopen_self=yes
18016     ;;
18017
18018   mingw* | pw32*)
18019     lt_cv_dlopen="LoadLibrary"
18020     lt_cv_dlopen_libs=
18021    ;;
18022
18023   cygwin*)
18024     lt_cv_dlopen="dlopen"
18025     lt_cv_dlopen_libs=
18026    ;;
18027
18028   darwin*)
18029   # if libdl is installed we need to link against it
18030     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18031 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18032 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18033   echo $ECHO_N "(cached) $ECHO_C" >&6
18034 else
18035   ac_check_lib_save_LIBS=$LIBS
18036 LIBS="-ldl  $LIBS"
18037 cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h.  */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h.  */
18043
18044 /* Override any gcc2 internal prototype to avoid an error.  */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 /* We use char because int might match the return type of a gcc2
18049    builtin and then its argument prototype would still apply.  */
18050 char dlopen ();
18051 int
18052 main ()
18053 {
18054 dlopen ();
18055   ;
18056   return 0;
18057 }
18058 _ACEOF
18059 rm -f conftest.$ac_objext conftest$ac_exeext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18061   (eval $ac_link) 2>conftest.er1
18062   ac_status=$?
18063   grep -v '^ *+' conftest.er1 >conftest.err
18064   rm -f conftest.er1
18065   cat conftest.err >&5
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } &&
18068          { ac_try='test -z "$ac_c_werror_flag"
18069                          || test ! -s conftest.err'
18070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071   (eval $ac_try) 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); }; } &&
18075          { ac_try='test -s conftest$ac_exeext'
18076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077   (eval $ac_try) 2>&5
18078   ac_status=$?
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); }; }; then
18081   ac_cv_lib_dl_dlopen=yes
18082 else
18083   echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18085
18086 ac_cv_lib_dl_dlopen=no
18087 fi
18088 rm -f conftest.err conftest.$ac_objext \
18089       conftest$ac_exeext conftest.$ac_ext
18090 LIBS=$ac_check_lib_save_LIBS
18091 fi
18092 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18093 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18094 if test $ac_cv_lib_dl_dlopen = yes; then
18095   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18096 else
18097
18098     lt_cv_dlopen="dyld"
18099     lt_cv_dlopen_libs=
18100     lt_cv_dlopen_self=yes
18101
18102 fi
18103
18104    ;;
18105
18106   *)
18107     echo "$as_me:$LINENO: checking for shl_load" >&5
18108 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18109 if test "${ac_cv_func_shl_load+set}" = set; then
18110   echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112   cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h.  */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h.  */
18118 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18120 #define shl_load innocuous_shl_load
18121
18122 /* System header to define __stub macros and hopefully few prototypes,
18123     which can conflict with char shl_load (); below.
18124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18125     <limits.h> exists even on freestanding compilers.  */
18126
18127 #ifdef __STDC__
18128 # include <limits.h>
18129 #else
18130 # include <assert.h>
18131 #endif
18132
18133 #undef shl_load
18134
18135 /* Override any gcc2 internal prototype to avoid an error.  */
18136 #ifdef __cplusplus
18137 extern "C"
18138 {
18139 #endif
18140 /* We use char because int might match the return type of a gcc2
18141    builtin and then its argument prototype would still apply.  */
18142 char shl_load ();
18143 /* The GNU C library defines this for functions which it implements
18144     to always fail with ENOSYS.  Some functions are actually named
18145     something starting with __ and the normal name is an alias.  */
18146 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18147 choke me
18148 #else
18149 char (*f) () = shl_load;
18150 #endif
18151 #ifdef __cplusplus
18152 }
18153 #endif
18154
18155 int
18156 main ()
18157 {
18158 return f != shl_load;
18159   ;
18160   return 0;
18161 }
18162 _ACEOF
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18165   (eval $ac_link) 2>conftest.er1
18166   ac_status=$?
18167   grep -v '^ *+' conftest.er1 >conftest.err
18168   rm -f conftest.er1
18169   cat conftest.err >&5
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); } &&
18172          { ac_try='test -z "$ac_c_werror_flag"
18173                          || test ! -s conftest.err'
18174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175   (eval $ac_try) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; } &&
18179          { ac_try='test -s conftest$ac_exeext'
18180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181   (eval $ac_try) 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; }; then
18185   ac_cv_func_shl_load=yes
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 ac_cv_func_shl_load=no
18191 fi
18192 rm -f conftest.err conftest.$ac_objext \
18193       conftest$ac_exeext conftest.$ac_ext
18194 fi
18195 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18196 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18197 if test $ac_cv_func_shl_load = yes; then
18198   lt_cv_dlopen="shl_load"
18199 else
18200   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18201 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18202 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18203   echo $ECHO_N "(cached) $ECHO_C" >&6
18204 else
18205   ac_check_lib_save_LIBS=$LIBS
18206 LIBS="-ldld  $LIBS"
18207 cat >conftest.$ac_ext <<_ACEOF
18208 /* confdefs.h.  */
18209 _ACEOF
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h.  */
18213
18214 /* Override any gcc2 internal prototype to avoid an error.  */
18215 #ifdef __cplusplus
18216 extern "C"
18217 #endif
18218 /* We use char because int might match the return type of a gcc2
18219    builtin and then its argument prototype would still apply.  */
18220 char shl_load ();
18221 int
18222 main ()
18223 {
18224 shl_load ();
18225   ;
18226   return 0;
18227 }
18228 _ACEOF
18229 rm -f conftest.$ac_objext conftest$ac_exeext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18231   (eval $ac_link) 2>conftest.er1
18232   ac_status=$?
18233   grep -v '^ *+' conftest.er1 >conftest.err
18234   rm -f conftest.er1
18235   cat conftest.err >&5
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); } &&
18238          { ac_try='test -z "$ac_c_werror_flag"
18239                          || test ! -s conftest.err'
18240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241   (eval $ac_try) 2>&5
18242   ac_status=$?
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); }; } &&
18245          { ac_try='test -s conftest$ac_exeext'
18246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247   (eval $ac_try) 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; }; then
18251   ac_cv_lib_dld_shl_load=yes
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 ac_cv_lib_dld_shl_load=no
18257 fi
18258 rm -f conftest.err conftest.$ac_objext \
18259       conftest$ac_exeext conftest.$ac_ext
18260 LIBS=$ac_check_lib_save_LIBS
18261 fi
18262 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18263 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18264 if test $ac_cv_lib_dld_shl_load = yes; then
18265   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18266 else
18267   echo "$as_me:$LINENO: checking for dlopen" >&5
18268 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18269 if test "${ac_cv_func_dlopen+set}" = set; then
18270   echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272   cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18280 #define dlopen innocuous_dlopen
18281
18282 /* System header to define __stub macros and hopefully few prototypes,
18283     which can conflict with char dlopen (); below.
18284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18285     <limits.h> exists even on freestanding compilers.  */
18286
18287 #ifdef __STDC__
18288 # include <limits.h>
18289 #else
18290 # include <assert.h>
18291 #endif
18292
18293 #undef dlopen
18294
18295 /* Override any gcc2 internal prototype to avoid an error.  */
18296 #ifdef __cplusplus
18297 extern "C"
18298 {
18299 #endif
18300 /* We use char because int might match the return type of a gcc2
18301    builtin and then its argument prototype would still apply.  */
18302 char dlopen ();
18303 /* The GNU C library defines this for functions which it implements
18304     to always fail with ENOSYS.  Some functions are actually named
18305     something starting with __ and the normal name is an alias.  */
18306 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18307 choke me
18308 #else
18309 char (*f) () = dlopen;
18310 #endif
18311 #ifdef __cplusplus
18312 }
18313 #endif
18314
18315 int
18316 main ()
18317 {
18318 return f != dlopen;
18319   ;
18320   return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18325   (eval $ac_link) 2>conftest.er1
18326   ac_status=$?
18327   grep -v '^ *+' conftest.er1 >conftest.err
18328   rm -f conftest.er1
18329   cat conftest.err >&5
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); } &&
18332          { ac_try='test -z "$ac_c_werror_flag"
18333                          || test ! -s conftest.err'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; } &&
18339          { ac_try='test -s conftest$ac_exeext'
18340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341   (eval $ac_try) 2>&5
18342   ac_status=$?
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); }; }; then
18345   ac_cv_func_dlopen=yes
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 ac_cv_func_dlopen=no
18351 fi
18352 rm -f conftest.err conftest.$ac_objext \
18353       conftest$ac_exeext conftest.$ac_ext
18354 fi
18355 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18356 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18357 if test $ac_cv_func_dlopen = yes; then
18358   lt_cv_dlopen="dlopen"
18359 else
18360   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18361 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18362 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   ac_check_lib_save_LIBS=$LIBS
18366 LIBS="-ldl  $LIBS"
18367 cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h.  */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h.  */
18373
18374 /* Override any gcc2 internal prototype to avoid an error.  */
18375 #ifdef __cplusplus
18376 extern "C"
18377 #endif
18378 /* We use char because int might match the return type of a gcc2
18379    builtin and then its argument prototype would still apply.  */
18380 char dlopen ();
18381 int
18382 main ()
18383 {
18384 dlopen ();
18385   ;
18386   return 0;
18387 }
18388 _ACEOF
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18391   (eval $ac_link) 2>conftest.er1
18392   ac_status=$?
18393   grep -v '^ *+' conftest.er1 >conftest.err
18394   rm -f conftest.er1
18395   cat conftest.err >&5
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); } &&
18398          { ac_try='test -z "$ac_c_werror_flag"
18399                          || test ! -s conftest.err'
18400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401   (eval $ac_try) 2>&5
18402   ac_status=$?
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); }; } &&
18405          { ac_try='test -s conftest$ac_exeext'
18406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407   (eval $ac_try) 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; }; then
18411   ac_cv_lib_dl_dlopen=yes
18412 else
18413   echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416 ac_cv_lib_dl_dlopen=no
18417 fi
18418 rm -f conftest.err conftest.$ac_objext \
18419       conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18421 fi
18422 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18423 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18424 if test $ac_cv_lib_dl_dlopen = yes; then
18425   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18426 else
18427   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18428 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18429 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18430   echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432   ac_check_lib_save_LIBS=$LIBS
18433 LIBS="-lsvld  $LIBS"
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h.  */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h.  */
18440
18441 /* Override any gcc2 internal prototype to avoid an error.  */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 /* We use char because int might match the return type of a gcc2
18446    builtin and then its argument prototype would still apply.  */
18447 char dlopen ();
18448 int
18449 main ()
18450 {
18451 dlopen ();
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext conftest$ac_exeext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18458   (eval $ac_link) 2>conftest.er1
18459   ac_status=$?
18460   grep -v '^ *+' conftest.er1 >conftest.err
18461   rm -f conftest.er1
18462   cat conftest.err >&5
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); } &&
18465          { ac_try='test -z "$ac_c_werror_flag"
18466                          || test ! -s conftest.err'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; } &&
18472          { ac_try='test -s conftest$ac_exeext'
18473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474   (eval $ac_try) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; }; then
18478   ac_cv_lib_svld_dlopen=yes
18479 else
18480   echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18482
18483 ac_cv_lib_svld_dlopen=no
18484 fi
18485 rm -f conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 LIBS=$ac_check_lib_save_LIBS
18488 fi
18489 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18490 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18491 if test $ac_cv_lib_svld_dlopen = yes; then
18492   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18493 else
18494   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18495 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18496 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499   ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-ldld  $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 dld_link ();
18515 int
18516 main ()
18517 {
18518 dld_link ();
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_dld_dld_link=yes
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
18557 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18558 if test $ac_cv_lib_dld_dld_link = yes; then
18559   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18560 fi
18561
18562
18563 fi
18564
18565
18566 fi
18567
18568
18569 fi
18570
18571
18572 fi
18573
18574
18575 fi
18576
18577     ;;
18578   esac
18579
18580   if test "x$lt_cv_dlopen" != xno; then
18581     enable_dlopen=yes
18582   else
18583     enable_dlopen=no
18584   fi
18585
18586   case $lt_cv_dlopen in
18587   dlopen)
18588     save_CPPFLAGS="$CPPFLAGS"
18589     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18590
18591     save_LDFLAGS="$LDFLAGS"
18592     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18593
18594     save_LIBS="$LIBS"
18595     LIBS="$lt_cv_dlopen_libs $LIBS"
18596
18597     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18598 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18599 if test "${lt_cv_dlopen_self+set}" = set; then
18600   echo $ECHO_N "(cached) $ECHO_C" >&6
18601 else
18602           if test "$cross_compiling" = yes; then :
18603   lt_cv_dlopen_self=cross
18604 else
18605   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18606   lt_status=$lt_dlunknown
18607   cat > conftest.$ac_ext <<EOF
18608 #line 18608 "configure"
18609 #include "confdefs.h"
18610
18611 #if HAVE_DLFCN_H
18612 #include <dlfcn.h>
18613 #endif
18614
18615 #include <stdio.h>
18616
18617 #ifdef RTLD_GLOBAL
18618 #  define LT_DLGLOBAL           RTLD_GLOBAL
18619 #else
18620 #  ifdef DL_GLOBAL
18621 #    define LT_DLGLOBAL         DL_GLOBAL
18622 #  else
18623 #    define LT_DLGLOBAL         0
18624 #  endif
18625 #endif
18626
18627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18628    find out it does not work in some platform. */
18629 #ifndef LT_DLLAZY_OR_NOW
18630 #  ifdef RTLD_LAZY
18631 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18632 #  else
18633 #    ifdef DL_LAZY
18634 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18635 #    else
18636 #      ifdef RTLD_NOW
18637 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18638 #      else
18639 #        ifdef DL_NOW
18640 #          define LT_DLLAZY_OR_NOW      DL_NOW
18641 #        else
18642 #          define LT_DLLAZY_OR_NOW      0
18643 #        endif
18644 #      endif
18645 #    endif
18646 #  endif
18647 #endif
18648
18649 #ifdef __cplusplus
18650 extern "C" void exit (int);
18651 #endif
18652
18653 void fnord() { int i=42;}
18654 int main ()
18655 {
18656   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18657   int status = $lt_dlunknown;
18658
18659   if (self)
18660     {
18661       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18662       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18663       /* dlclose (self); */
18664     }
18665
18666     exit (status);
18667 }
18668 EOF
18669   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18670   (eval $ac_link) 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18674     (./conftest; exit; ) 2>/dev/null
18675     lt_status=$?
18676     case x$lt_status in
18677       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18678       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18679       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18680     esac
18681   else :
18682     # compilation failed
18683     lt_cv_dlopen_self=no
18684   fi
18685 fi
18686 rm -fr conftest*
18687
18688
18689 fi
18690 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18691 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18692
18693     if test "x$lt_cv_dlopen_self" = xyes; then
18694       LDFLAGS="$LDFLAGS $link_static_flag"
18695       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18696 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18697 if test "${lt_cv_dlopen_self_static+set}" = set; then
18698   echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700           if test "$cross_compiling" = yes; then :
18701   lt_cv_dlopen_self_static=cross
18702 else
18703   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18704   lt_status=$lt_dlunknown
18705   cat > conftest.$ac_ext <<EOF
18706 #line 18706 "configure"
18707 #include "confdefs.h"
18708
18709 #if HAVE_DLFCN_H
18710 #include <dlfcn.h>
18711 #endif
18712
18713 #include <stdio.h>
18714
18715 #ifdef RTLD_GLOBAL
18716 #  define LT_DLGLOBAL           RTLD_GLOBAL
18717 #else
18718 #  ifdef DL_GLOBAL
18719 #    define LT_DLGLOBAL         DL_GLOBAL
18720 #  else
18721 #    define LT_DLGLOBAL         0
18722 #  endif
18723 #endif
18724
18725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18726    find out it does not work in some platform. */
18727 #ifndef LT_DLLAZY_OR_NOW
18728 #  ifdef RTLD_LAZY
18729 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18730 #  else
18731 #    ifdef DL_LAZY
18732 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18733 #    else
18734 #      ifdef RTLD_NOW
18735 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18736 #      else
18737 #        ifdef DL_NOW
18738 #          define LT_DLLAZY_OR_NOW      DL_NOW
18739 #        else
18740 #          define LT_DLLAZY_OR_NOW      0
18741 #        endif
18742 #      endif
18743 #    endif
18744 #  endif
18745 #endif
18746
18747 #ifdef __cplusplus
18748 extern "C" void exit (int);
18749 #endif
18750
18751 void fnord() { int i=42;}
18752 int main ()
18753 {
18754   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18755   int status = $lt_dlunknown;
18756
18757   if (self)
18758     {
18759       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18760       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18761       /* dlclose (self); */
18762     }
18763
18764     exit (status);
18765 }
18766 EOF
18767   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18768   (eval $ac_link) 2>&5
18769   ac_status=$?
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18772     (./conftest; exit; ) 2>/dev/null
18773     lt_status=$?
18774     case x$lt_status in
18775       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18776       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18777       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18778     esac
18779   else :
18780     # compilation failed
18781     lt_cv_dlopen_self_static=no
18782   fi
18783 fi
18784 rm -fr conftest*
18785
18786
18787 fi
18788 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18789 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18790     fi
18791
18792     CPPFLAGS="$save_CPPFLAGS"
18793     LDFLAGS="$save_LDFLAGS"
18794     LIBS="$save_LIBS"
18795     ;;
18796   esac
18797
18798   case $lt_cv_dlopen_self in
18799   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18800   *) enable_dlopen_self=unknown ;;
18801   esac
18802
18803   case $lt_cv_dlopen_self_static in
18804   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18805   *) enable_dlopen_self_static=unknown ;;
18806   esac
18807 fi
18808
18809
18810 # The else clause should only fire when bootstrapping the
18811 # libtool distribution, otherwise you forgot to ship ltmain.sh
18812 # with your package, and you will get complaints that there are
18813 # no rules to generate ltmain.sh.
18814 if test -f "$ltmain"; then
18815   # See if we are running on zsh, and set the options which allow our commands through
18816   # without removal of \ escapes.
18817   if test -n "${ZSH_VERSION+set}" ; then
18818     setopt NO_GLOB_SUBST
18819   fi
18820   # Now quote all the things that may contain metacharacters while being
18821   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18822   # variables and quote the copies for generation of the libtool script.
18823   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18824     SED SHELL STRIP \
18825     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18826     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18827     deplibs_check_method reload_flag reload_cmds need_locks \
18828     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18829     lt_cv_sys_global_symbol_to_c_name_address \
18830     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18831     old_postinstall_cmds old_postuninstall_cmds \
18832     compiler_GCJ \
18833     CC_GCJ \
18834     LD_GCJ \
18835     lt_prog_compiler_wl_GCJ \
18836     lt_prog_compiler_pic_GCJ \
18837     lt_prog_compiler_static_GCJ \
18838     lt_prog_compiler_no_builtin_flag_GCJ \
18839     export_dynamic_flag_spec_GCJ \
18840     thread_safe_flag_spec_GCJ \
18841     whole_archive_flag_spec_GCJ \
18842     enable_shared_with_static_runtimes_GCJ \
18843     old_archive_cmds_GCJ \
18844     old_archive_from_new_cmds_GCJ \
18845     predep_objects_GCJ \
18846     postdep_objects_GCJ \
18847     predeps_GCJ \
18848     postdeps_GCJ \
18849     compiler_lib_search_path_GCJ \
18850     archive_cmds_GCJ \
18851     archive_expsym_cmds_GCJ \
18852     postinstall_cmds_GCJ \
18853     postuninstall_cmds_GCJ \
18854     old_archive_from_expsyms_cmds_GCJ \
18855     allow_undefined_flag_GCJ \
18856     no_undefined_flag_GCJ \
18857     export_symbols_cmds_GCJ \
18858     hardcode_libdir_flag_spec_GCJ \
18859     hardcode_libdir_flag_spec_ld_GCJ \
18860     hardcode_libdir_separator_GCJ \
18861     hardcode_automatic_GCJ \
18862     module_cmds_GCJ \
18863     module_expsym_cmds_GCJ \
18864     lt_cv_prog_compiler_c_o_GCJ \
18865     exclude_expsyms_GCJ \
18866     include_expsyms_GCJ; do
18867
18868     case $var in
18869     old_archive_cmds_GCJ | \
18870     old_archive_from_new_cmds_GCJ | \
18871     archive_cmds_GCJ | \
18872     archive_expsym_cmds_GCJ | \
18873     module_cmds_GCJ | \
18874     module_expsym_cmds_GCJ | \
18875     old_archive_from_expsyms_cmds_GCJ | \
18876     export_symbols_cmds_GCJ | \
18877     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18878     postinstall_cmds | postuninstall_cmds | \
18879     old_postinstall_cmds | old_postuninstall_cmds | \
18880     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18881       # Double-quote double-evaled strings.
18882       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18883       ;;
18884     *)
18885       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18886       ;;
18887     esac
18888   done
18889
18890   case $lt_echo in
18891   *'\$0 --fallback-echo"')
18892     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18893     ;;
18894   esac
18895
18896 cfgfile="$ofile"
18897
18898   cat <<__EOF__ >> "$cfgfile"
18899 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18900
18901 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18902
18903 # Shell to use when invoking shell scripts.
18904 SHELL=$lt_SHELL
18905
18906 # Whether or not to build shared libraries.
18907 build_libtool_libs=$enable_shared
18908
18909 # Whether or not to build static libraries.
18910 build_old_libs=$enable_static
18911
18912 # Whether or not to add -lc for building shared libraries.
18913 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18914
18915 # Whether or not to disallow shared libs when runtime libs are static
18916 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18917
18918 # Whether or not to optimize for fast installation.
18919 fast_install=$enable_fast_install
18920
18921 # The host system.
18922 host_alias=$host_alias
18923 host=$host
18924
18925 # An echo program that does not interpret backslashes.
18926 echo=$lt_echo
18927
18928 # The archiver.
18929 AR=$lt_AR
18930 AR_FLAGS=$lt_AR_FLAGS
18931
18932 # A C compiler.
18933 LTCC=$lt_LTCC
18934
18935 # A language-specific compiler.
18936 CC=$lt_compiler_GCJ
18937
18938 # Is the compiler the GNU C compiler?
18939 with_gcc=$GCC_GCJ
18940
18941 # An ERE matcher.
18942 EGREP=$lt_EGREP
18943
18944 # The linker used to build libraries.
18945 LD=$lt_LD_GCJ
18946
18947 # Whether we need hard or soft links.
18948 LN_S=$lt_LN_S
18949
18950 # A BSD-compatible nm program.
18951 NM=$lt_NM
18952
18953 # A symbol stripping program
18954 STRIP=$lt_STRIP
18955
18956 # Used to examine libraries when file_magic_cmd begins "file"
18957 MAGIC_CMD=$MAGIC_CMD
18958
18959 # Used on cygwin: DLL creation program.
18960 DLLTOOL="$DLLTOOL"
18961
18962 # Used on cygwin: object dumper.
18963 OBJDUMP="$OBJDUMP"
18964
18965 # Used on cygwin: assembler.
18966 AS="$AS"
18967
18968 # The name of the directory that contains temporary libtool files.
18969 objdir=$objdir
18970
18971 # How to create reloadable object files.
18972 reload_flag=$lt_reload_flag
18973 reload_cmds=$lt_reload_cmds
18974
18975 # How to pass a linker flag through the compiler.
18976 wl=$lt_lt_prog_compiler_wl_GCJ
18977
18978 # Object file suffix (normally "o").
18979 objext="$ac_objext"
18980
18981 # Old archive suffix (normally "a").
18982 libext="$libext"
18983
18984 # Shared library suffix (normally ".so").
18985 shrext_cmds='$shrext_cmds'
18986
18987 # Executable file suffix (normally "").
18988 exeext="$exeext"
18989
18990 # Additional compiler flags for building library objects.
18991 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18992 pic_mode=$pic_mode
18993
18994 # What is the maximum length of a command?
18995 max_cmd_len=$lt_cv_sys_max_cmd_len
18996
18997 # Does compiler simultaneously support -c and -o options?
18998 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18999
19000 # Must we lock files when doing compilation ?
19001 need_locks=$lt_need_locks
19002
19003 # Do we need the lib prefix for modules?
19004 need_lib_prefix=$need_lib_prefix
19005
19006 # Do we need a version for libraries?
19007 need_version=$need_version
19008
19009 # Whether dlopen is supported.
19010 dlopen_support=$enable_dlopen
19011
19012 # Whether dlopen of programs is supported.
19013 dlopen_self=$enable_dlopen_self
19014
19015 # Whether dlopen of statically linked programs is supported.
19016 dlopen_self_static=$enable_dlopen_self_static
19017
19018 # Compiler flag to prevent dynamic linking.
19019 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19020
19021 # Compiler flag to turn off builtin functions.
19022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19023
19024 # Compiler flag to allow reflexive dlopens.
19025 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19026
19027 # Compiler flag to generate shared objects directly from archives.
19028 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19029
19030 # Compiler flag to generate thread-safe objects.
19031 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19032
19033 # Library versioning type.
19034 version_type=$version_type
19035
19036 # Format of library name prefix.
19037 libname_spec=$lt_libname_spec
19038
19039 # List of archive names.  First name is the real one, the rest are links.
19040 # The last name is the one that the linker finds with -lNAME.
19041 library_names_spec=$lt_library_names_spec
19042
19043 # The coded name of the library, if different from the real name.
19044 soname_spec=$lt_soname_spec
19045
19046 # Commands used to build and install an old-style archive.
19047 RANLIB=$lt_RANLIB
19048 old_archive_cmds=$lt_old_archive_cmds_GCJ
19049 old_postinstall_cmds=$lt_old_postinstall_cmds
19050 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19051
19052 # Create an old-style archive from a shared archive.
19053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19054
19055 # Create a temporary old-style archive to link instead of a shared archive.
19056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19057
19058 # Commands used to build and install a shared archive.
19059 archive_cmds=$lt_archive_cmds_GCJ
19060 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19061 postinstall_cmds=$lt_postinstall_cmds
19062 postuninstall_cmds=$lt_postuninstall_cmds
19063
19064 # Commands used to build a loadable module (assumed same as above if empty)
19065 module_cmds=$lt_module_cmds_GCJ
19066 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19067
19068 # Commands to strip libraries.
19069 old_striplib=$lt_old_striplib
19070 striplib=$lt_striplib
19071
19072 # Dependencies to place before the objects being linked to create a
19073 # shared library.
19074 predep_objects=$lt_predep_objects_GCJ
19075
19076 # Dependencies to place after the objects being linked to create a
19077 # shared library.
19078 postdep_objects=$lt_postdep_objects_GCJ
19079
19080 # Dependencies to place before the objects being linked to create a
19081 # shared library.
19082 predeps=$lt_predeps_GCJ
19083
19084 # Dependencies to place after the objects being linked to create a
19085 # shared library.
19086 postdeps=$lt_postdeps_GCJ
19087
19088 # The library search path used internally by the compiler when linking
19089 # a shared library.
19090 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19091
19092 # Method to check whether dependent libraries are shared objects.
19093 deplibs_check_method=$lt_deplibs_check_method
19094
19095 # Command to use when deplibs_check_method == file_magic.
19096 file_magic_cmd=$lt_file_magic_cmd
19097
19098 # Flag that allows shared libraries with undefined symbols to be built.
19099 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19100
19101 # Flag that forces no undefined symbols.
19102 no_undefined_flag=$lt_no_undefined_flag_GCJ
19103
19104 # Commands used to finish a libtool library installation in a directory.
19105 finish_cmds=$lt_finish_cmds
19106
19107 # Same as above, but a single script fragment to be evaled but not shown.
19108 finish_eval=$lt_finish_eval
19109
19110 # Take the output of nm and produce a listing of raw symbols and C names.
19111 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19112
19113 # Transform the output of nm in a proper C declaration
19114 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19115
19116 # Transform the output of nm in a C name address pair
19117 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19118
19119 # This is the shared library runtime path variable.
19120 runpath_var=$runpath_var
19121
19122 # This is the shared library path variable.
19123 shlibpath_var=$shlibpath_var
19124
19125 # Is shlibpath searched before the hard-coded library search path?
19126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19127
19128 # How to hardcode a shared library path into an executable.
19129 hardcode_action=$hardcode_action_GCJ
19130
19131 # Whether we should hardcode library paths into libraries.
19132 hardcode_into_libs=$hardcode_into_libs
19133
19134 # Flag to hardcode \$libdir into a binary during linking.
19135 # This must work even if \$libdir does not exist.
19136 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19137
19138 # If ld is used when linking, flag to hardcode \$libdir into
19139 # a binary during linking. This must work even if \$libdir does
19140 # not exist.
19141 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19142
19143 # Whether we need a single -rpath flag with a separated argument.
19144 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19145
19146 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19147 # resulting binary.
19148 hardcode_direct=$hardcode_direct_GCJ
19149
19150 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19151 # resulting binary.
19152 hardcode_minus_L=$hardcode_minus_L_GCJ
19153
19154 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19155 # the resulting binary.
19156 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19157
19158 # Set to yes if building a shared library automatically hardcodes DIR into the library
19159 # and all subsequent libraries and executables linked against it.
19160 hardcode_automatic=$hardcode_automatic_GCJ
19161
19162 # Variables whose values should be saved in libtool wrapper scripts and
19163 # restored at relink time.
19164 variables_saved_for_relink="$variables_saved_for_relink"
19165
19166 # Whether libtool must link a program against all its dependency libraries.
19167 link_all_deplibs=$link_all_deplibs_GCJ
19168
19169 # Compile-time system search path for libraries
19170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19171
19172 # Run-time system search path for libraries
19173 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19174
19175 # Fix the shell variable \$srcfile for the compiler.
19176 fix_srcfile_path="$fix_srcfile_path_GCJ"
19177
19178 # Set to yes if exported symbols are required.
19179 always_export_symbols=$always_export_symbols_GCJ
19180
19181 # The commands to list exported symbols.
19182 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19183
19184 # The commands to extract the exported symbol list from a shared archive.
19185 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19186
19187 # Symbols that should not be listed in the preloaded symbols.
19188 exclude_expsyms=$lt_exclude_expsyms_GCJ
19189
19190 # Symbols that must always be exported.
19191 include_expsyms=$lt_include_expsyms_GCJ
19192
19193 # ### END LIBTOOL TAG CONFIG: $tagname
19194
19195 __EOF__
19196
19197
19198 else
19199   # If there is no Makefile yet, we rely on a make rule to execute
19200   # `config.status --recheck' to rerun these tests and create the
19201   # libtool script then.
19202   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19203   if test -f "$ltmain_in"; then
19204     test -f Makefile && make "$ltmain"
19205   fi
19206 fi
19207
19208
19209 ac_ext=c
19210 ac_cpp='$CPP $CPPFLAGS'
19211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19214
19215 CC="$lt_save_CC"
19216
19217         else
19218           tagname=""
19219         fi
19220         ;;
19221
19222       RC)
19223
19224
19225
19226 # Source file extension for RC test sources.
19227 ac_ext=rc
19228
19229 # Object file extension for compiled RC test sources.
19230 objext=o
19231 objext_RC=$objext
19232
19233 # Code to be used in simple compile tests
19234 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19235
19236 # Code to be used in simple link tests
19237 lt_simple_link_test_code="$lt_simple_compile_test_code"
19238
19239 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19240
19241 # If no C compiler was specified, use CC.
19242 LTCC=${LTCC-"$CC"}
19243
19244 # Allow CC to be a program name with arguments.
19245 compiler=$CC
19246
19247
19248 # Allow CC to be a program name with arguments.
19249 lt_save_CC="$CC"
19250 CC=${RC-"windres"}
19251 compiler=$CC
19252 compiler_RC=$CC
19253 lt_cv_prog_compiler_c_o_RC=yes
19254
19255 # The else clause should only fire when bootstrapping the
19256 # libtool distribution, otherwise you forgot to ship ltmain.sh
19257 # with your package, and you will get complaints that there are
19258 # no rules to generate ltmain.sh.
19259 if test -f "$ltmain"; then
19260   # See if we are running on zsh, and set the options which allow our commands through
19261   # without removal of \ escapes.
19262   if test -n "${ZSH_VERSION+set}" ; then
19263     setopt NO_GLOB_SUBST
19264   fi
19265   # Now quote all the things that may contain metacharacters while being
19266   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19267   # variables and quote the copies for generation of the libtool script.
19268   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19269     SED SHELL STRIP \
19270     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19271     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19272     deplibs_check_method reload_flag reload_cmds need_locks \
19273     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19274     lt_cv_sys_global_symbol_to_c_name_address \
19275     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19276     old_postinstall_cmds old_postuninstall_cmds \
19277     compiler_RC \
19278     CC_RC \
19279     LD_RC \
19280     lt_prog_compiler_wl_RC \
19281     lt_prog_compiler_pic_RC \
19282     lt_prog_compiler_static_RC \
19283     lt_prog_compiler_no_builtin_flag_RC \
19284     export_dynamic_flag_spec_RC \
19285     thread_safe_flag_spec_RC \
19286     whole_archive_flag_spec_RC \
19287     enable_shared_with_static_runtimes_RC \
19288     old_archive_cmds_RC \
19289     old_archive_from_new_cmds_RC \
19290     predep_objects_RC \
19291     postdep_objects_RC \
19292     predeps_RC \
19293     postdeps_RC \
19294     compiler_lib_search_path_RC \
19295     archive_cmds_RC \
19296     archive_expsym_cmds_RC \
19297     postinstall_cmds_RC \
19298     postuninstall_cmds_RC \
19299     old_archive_from_expsyms_cmds_RC \
19300     allow_undefined_flag_RC \
19301     no_undefined_flag_RC \
19302     export_symbols_cmds_RC \
19303     hardcode_libdir_flag_spec_RC \
19304     hardcode_libdir_flag_spec_ld_RC \
19305     hardcode_libdir_separator_RC \
19306     hardcode_automatic_RC \
19307     module_cmds_RC \
19308     module_expsym_cmds_RC \
19309     lt_cv_prog_compiler_c_o_RC \
19310     exclude_expsyms_RC \
19311     include_expsyms_RC; do
19312
19313     case $var in
19314     old_archive_cmds_RC | \
19315     old_archive_from_new_cmds_RC | \
19316     archive_cmds_RC | \
19317     archive_expsym_cmds_RC | \
19318     module_cmds_RC | \
19319     module_expsym_cmds_RC | \
19320     old_archive_from_expsyms_cmds_RC | \
19321     export_symbols_cmds_RC | \
19322     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19323     postinstall_cmds | postuninstall_cmds | \
19324     old_postinstall_cmds | old_postuninstall_cmds | \
19325     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19326       # Double-quote double-evaled strings.
19327       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19328       ;;
19329     *)
19330       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19331       ;;
19332     esac
19333   done
19334
19335   case $lt_echo in
19336   *'\$0 --fallback-echo"')
19337     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19338     ;;
19339   esac
19340
19341 cfgfile="$ofile"
19342
19343   cat <<__EOF__ >> "$cfgfile"
19344 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19345
19346 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19347
19348 # Shell to use when invoking shell scripts.
19349 SHELL=$lt_SHELL
19350
19351 # Whether or not to build shared libraries.
19352 build_libtool_libs=$enable_shared
19353
19354 # Whether or not to build static libraries.
19355 build_old_libs=$enable_static
19356
19357 # Whether or not to add -lc for building shared libraries.
19358 build_libtool_need_lc=$archive_cmds_need_lc_RC
19359
19360 # Whether or not to disallow shared libs when runtime libs are static
19361 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19362
19363 # Whether or not to optimize for fast installation.
19364 fast_install=$enable_fast_install
19365
19366 # The host system.
19367 host_alias=$host_alias
19368 host=$host
19369
19370 # An echo program that does not interpret backslashes.
19371 echo=$lt_echo
19372
19373 # The archiver.
19374 AR=$lt_AR
19375 AR_FLAGS=$lt_AR_FLAGS
19376
19377 # A C compiler.
19378 LTCC=$lt_LTCC
19379
19380 # A language-specific compiler.
19381 CC=$lt_compiler_RC
19382
19383 # Is the compiler the GNU C compiler?
19384 with_gcc=$GCC_RC
19385
19386 # An ERE matcher.
19387 EGREP=$lt_EGREP
19388
19389 # The linker used to build libraries.
19390 LD=$lt_LD_RC
19391
19392 # Whether we need hard or soft links.
19393 LN_S=$lt_LN_S
19394
19395 # A BSD-compatible nm program.
19396 NM=$lt_NM
19397
19398 # A symbol stripping program
19399 STRIP=$lt_STRIP
19400
19401 # Used to examine libraries when file_magic_cmd begins "file"
19402 MAGIC_CMD=$MAGIC_CMD
19403
19404 # Used on cygwin: DLL creation program.
19405 DLLTOOL="$DLLTOOL"
19406
19407 # Used on cygwin: object dumper.
19408 OBJDUMP="$OBJDUMP"
19409
19410 # Used on cygwin: assembler.
19411 AS="$AS"
19412
19413 # The name of the directory that contains temporary libtool files.
19414 objdir=$objdir
19415
19416 # How to create reloadable object files.
19417 reload_flag=$lt_reload_flag
19418 reload_cmds=$lt_reload_cmds
19419
19420 # How to pass a linker flag through the compiler.
19421 wl=$lt_lt_prog_compiler_wl_RC
19422
19423 # Object file suffix (normally "o").
19424 objext="$ac_objext"
19425
19426 # Old archive suffix (normally "a").
19427 libext="$libext"
19428
19429 # Shared library suffix (normally ".so").
19430 shrext_cmds='$shrext_cmds'
19431
19432 # Executable file suffix (normally "").
19433 exeext="$exeext"
19434
19435 # Additional compiler flags for building library objects.
19436 pic_flag=$lt_lt_prog_compiler_pic_RC
19437 pic_mode=$pic_mode
19438
19439 # What is the maximum length of a command?
19440 max_cmd_len=$lt_cv_sys_max_cmd_len
19441
19442 # Does compiler simultaneously support -c and -o options?
19443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19444
19445 # Must we lock files when doing compilation ?
19446 need_locks=$lt_need_locks
19447
19448 # Do we need the lib prefix for modules?
19449 need_lib_prefix=$need_lib_prefix
19450
19451 # Do we need a version for libraries?
19452 need_version=$need_version
19453
19454 # Whether dlopen is supported.
19455 dlopen_support=$enable_dlopen
19456
19457 # Whether dlopen of programs is supported.
19458 dlopen_self=$enable_dlopen_self
19459
19460 # Whether dlopen of statically linked programs is supported.
19461 dlopen_self_static=$enable_dlopen_self_static
19462
19463 # Compiler flag to prevent dynamic linking.
19464 link_static_flag=$lt_lt_prog_compiler_static_RC
19465
19466 # Compiler flag to turn off builtin functions.
19467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19468
19469 # Compiler flag to allow reflexive dlopens.
19470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19471
19472 # Compiler flag to generate shared objects directly from archives.
19473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19474
19475 # Compiler flag to generate thread-safe objects.
19476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19477
19478 # Library versioning type.
19479 version_type=$version_type
19480
19481 # Format of library name prefix.
19482 libname_spec=$lt_libname_spec
19483
19484 # List of archive names.  First name is the real one, the rest are links.
19485 # The last name is the one that the linker finds with -lNAME.
19486 library_names_spec=$lt_library_names_spec
19487
19488 # The coded name of the library, if different from the real name.
19489 soname_spec=$lt_soname_spec
19490
19491 # Commands used to build and install an old-style archive.
19492 RANLIB=$lt_RANLIB
19493 old_archive_cmds=$lt_old_archive_cmds_RC
19494 old_postinstall_cmds=$lt_old_postinstall_cmds
19495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19496
19497 # Create an old-style archive from a shared archive.
19498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19499
19500 # Create a temporary old-style archive to link instead of a shared archive.
19501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19502
19503 # Commands used to build and install a shared archive.
19504 archive_cmds=$lt_archive_cmds_RC
19505 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19506 postinstall_cmds=$lt_postinstall_cmds
19507 postuninstall_cmds=$lt_postuninstall_cmds
19508
19509 # Commands used to build a loadable module (assumed same as above if empty)
19510 module_cmds=$lt_module_cmds_RC
19511 module_expsym_cmds=$lt_module_expsym_cmds_RC
19512
19513 # Commands to strip libraries.
19514 old_striplib=$lt_old_striplib
19515 striplib=$lt_striplib
19516
19517 # Dependencies to place before the objects being linked to create a
19518 # shared library.
19519 predep_objects=$lt_predep_objects_RC
19520
19521 # Dependencies to place after the objects being linked to create a
19522 # shared library.
19523 postdep_objects=$lt_postdep_objects_RC
19524
19525 # Dependencies to place before the objects being linked to create a
19526 # shared library.
19527 predeps=$lt_predeps_RC
19528
19529 # Dependencies to place after the objects being linked to create a
19530 # shared library.
19531 postdeps=$lt_postdeps_RC
19532
19533 # The library search path used internally by the compiler when linking
19534 # a shared library.
19535 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19536
19537 # Method to check whether dependent libraries are shared objects.
19538 deplibs_check_method=$lt_deplibs_check_method
19539
19540 # Command to use when deplibs_check_method == file_magic.
19541 file_magic_cmd=$lt_file_magic_cmd
19542
19543 # Flag that allows shared libraries with undefined symbols to be built.
19544 allow_undefined_flag=$lt_allow_undefined_flag_RC
19545
19546 # Flag that forces no undefined symbols.
19547 no_undefined_flag=$lt_no_undefined_flag_RC
19548
19549 # Commands used to finish a libtool library installation in a directory.
19550 finish_cmds=$lt_finish_cmds
19551
19552 # Same as above, but a single script fragment to be evaled but not shown.
19553 finish_eval=$lt_finish_eval
19554
19555 # Take the output of nm and produce a listing of raw symbols and C names.
19556 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19557
19558 # Transform the output of nm in a proper C declaration
19559 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19560
19561 # Transform the output of nm in a C name address pair
19562 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19563
19564 # This is the shared library runtime path variable.
19565 runpath_var=$runpath_var
19566
19567 # This is the shared library path variable.
19568 shlibpath_var=$shlibpath_var
19569
19570 # Is shlibpath searched before the hard-coded library search path?
19571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19572
19573 # How to hardcode a shared library path into an executable.
19574 hardcode_action=$hardcode_action_RC
19575
19576 # Whether we should hardcode library paths into libraries.
19577 hardcode_into_libs=$hardcode_into_libs
19578
19579 # Flag to hardcode \$libdir into a binary during linking.
19580 # This must work even if \$libdir does not exist.
19581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19582
19583 # If ld is used when linking, flag to hardcode \$libdir into
19584 # a binary during linking. This must work even if \$libdir does
19585 # not exist.
19586 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19587
19588 # Whether we need a single -rpath flag with a separated argument.
19589 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19590
19591 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19592 # resulting binary.
19593 hardcode_direct=$hardcode_direct_RC
19594
19595 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19596 # resulting binary.
19597 hardcode_minus_L=$hardcode_minus_L_RC
19598
19599 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19600 # the resulting binary.
19601 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19602
19603 # Set to yes if building a shared library automatically hardcodes DIR into the library
19604 # and all subsequent libraries and executables linked against it.
19605 hardcode_automatic=$hardcode_automatic_RC
19606
19607 # Variables whose values should be saved in libtool wrapper scripts and
19608 # restored at relink time.
19609 variables_saved_for_relink="$variables_saved_for_relink"
19610
19611 # Whether libtool must link a program against all its dependency libraries.
19612 link_all_deplibs=$link_all_deplibs_RC
19613
19614 # Compile-time system search path for libraries
19615 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19616
19617 # Run-time system search path for libraries
19618 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19619
19620 # Fix the shell variable \$srcfile for the compiler.
19621 fix_srcfile_path="$fix_srcfile_path_RC"
19622
19623 # Set to yes if exported symbols are required.
19624 always_export_symbols=$always_export_symbols_RC
19625
19626 # The commands to list exported symbols.
19627 export_symbols_cmds=$lt_export_symbols_cmds_RC
19628
19629 # The commands to extract the exported symbol list from a shared archive.
19630 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19631
19632 # Symbols that should not be listed in the preloaded symbols.
19633 exclude_expsyms=$lt_exclude_expsyms_RC
19634
19635 # Symbols that must always be exported.
19636 include_expsyms=$lt_include_expsyms_RC
19637
19638 # ### END LIBTOOL TAG CONFIG: $tagname
19639
19640 __EOF__
19641
19642
19643 else
19644   # If there is no Makefile yet, we rely on a make rule to execute
19645   # `config.status --recheck' to rerun these tests and create the
19646   # libtool script then.
19647   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19648   if test -f "$ltmain_in"; then
19649     test -f Makefile && make "$ltmain"
19650   fi
19651 fi
19652
19653
19654 ac_ext=c
19655 ac_cpp='$CPP $CPPFLAGS'
19656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19659
19660 CC="$lt_save_CC"
19661
19662         ;;
19663
19664       *)
19665         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19666 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19667    { (exit 1); exit 1; }; }
19668         ;;
19669       esac
19670
19671       # Append the new tag name to the list of available tags.
19672       if test -n "$tagname" ; then
19673       available_tags="$available_tags $tagname"
19674     fi
19675     fi
19676   done
19677   IFS="$lt_save_ifs"
19678
19679   # Now substitute the updated list of available tags.
19680   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19681     mv "${ofile}T" "$ofile"
19682     chmod +x "$ofile"
19683   else
19684     rm -f "${ofile}T"
19685     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19686 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19687    { (exit 1); exit 1; }; }
19688   fi
19689 fi
19690
19691
19692
19693 # This can be used to rebuild libtool when needed
19694 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19695
19696 # Always use our own libtool.
19697 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19698
19699 # Prevent multiple expansion
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721 if ${TEST} -n "${SAVE_LIBTOOL}" ; then
19722     LIBTOOL="$SAVE_LIBTOOL"
19723 fi
19724 echo "$as_me:$LINENO: result: LIBTOOL=\"$LIBTOOL\"" >&5
19725 echo "${ECHO_T}LIBTOOL=\"$LIBTOOL\"" >&6
19726
19727
19728
19729
19730 echo "$as_me:$LINENO: checking for char" >&5
19731 echo $ECHO_N "checking for char... $ECHO_C" >&6
19732 if test "${ac_cv_type_char+set}" = set; then
19733   echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735   cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h.  */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h.  */
19741 $ac_includes_default
19742 int
19743 main ()
19744 {
19745 if ((char *) 0)
19746   return 0;
19747 if (sizeof (char))
19748   return 0;
19749   ;
19750   return 0;
19751 }
19752 _ACEOF
19753 rm -f conftest.$ac_objext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19755   (eval $ac_compile) 2>conftest.er1
19756   ac_status=$?
19757   grep -v '^ *+' conftest.er1 >conftest.err
19758   rm -f conftest.er1
19759   cat conftest.err >&5
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } &&
19762          { ac_try='test -z "$ac_c_werror_flag"
19763                          || test ! -s conftest.err'
19764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765   (eval $ac_try) 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); }; } &&
19769          { ac_try='test -s conftest.$ac_objext'
19770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771   (eval $ac_try) 2>&5
19772   ac_status=$?
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); }; }; then
19775   ac_cv_type_char=yes
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780 ac_cv_type_char=no
19781 fi
19782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19783 fi
19784 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19785 echo "${ECHO_T}$ac_cv_type_char" >&6
19786
19787 echo "$as_me:$LINENO: checking size of char" >&5
19788 echo $ECHO_N "checking size of char... $ECHO_C" >&6
19789 if test "${ac_cv_sizeof_char+set}" = set; then
19790   echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792   if test "$ac_cv_type_char" = yes; then
19793   # The cast to unsigned long works around a bug in the HP C Compiler
19794   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19795   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19796   # This bug is HP SR number 8606223364.
19797   if test "$cross_compiling" = yes; then
19798   # Depending upon the size, compute the lo and hi bounds.
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h.  */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h.  */
19805 $ac_includes_default
19806 int
19807 main ()
19808 {
19809 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
19810 test_array [0] = 0
19811
19812   ;
19813   return 0;
19814 }
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19818   (eval $ac_compile) 2>conftest.er1
19819   ac_status=$?
19820   grep -v '^ *+' conftest.er1 >conftest.err
19821   rm -f conftest.er1
19822   cat conftest.err >&5
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); } &&
19825          { ac_try='test -z "$ac_c_werror_flag"
19826                          || test ! -s conftest.err'
19827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828   (eval $ac_try) 2>&5
19829   ac_status=$?
19830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831   (exit $ac_status); }; } &&
19832          { ac_try='test -s conftest.$ac_objext'
19833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834   (eval $ac_try) 2>&5
19835   ac_status=$?
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); }; }; then
19838   ac_lo=0 ac_mid=0
19839   while :; do
19840     cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h.  */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h.  */
19846 $ac_includes_default
19847 int
19848 main ()
19849 {
19850 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
19851 test_array [0] = 0
19852
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859   (eval $ac_compile) 2>conftest.er1
19860   ac_status=$?
19861   grep -v '^ *+' conftest.er1 >conftest.err
19862   rm -f conftest.er1
19863   cat conftest.err >&5
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); } &&
19866          { ac_try='test -z "$ac_c_werror_flag"
19867                          || test ! -s conftest.err'
19868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869   (eval $ac_try) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; } &&
19873          { ac_try='test -s conftest.$ac_objext'
19874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875   (eval $ac_try) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_hi=$ac_mid; break
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 ac_lo=`expr $ac_mid + 1`
19885                     if test $ac_lo -le $ac_mid; then
19886                       ac_lo= ac_hi=
19887                       break
19888                     fi
19889                     ac_mid=`expr 2 '*' $ac_mid + 1`
19890 fi
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892   done
19893 else
19894   echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h.  */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h.  */
19903 $ac_includes_default
19904 int
19905 main ()
19906 {
19907 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
19908 test_array [0] = 0
19909
19910   ;
19911   return 0;
19912 }
19913 _ACEOF
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916   (eval $ac_compile) 2>conftest.er1
19917   ac_status=$?
19918   grep -v '^ *+' conftest.er1 >conftest.err
19919   rm -f conftest.er1
19920   cat conftest.err >&5
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); } &&
19923          { ac_try='test -z "$ac_c_werror_flag"
19924                          || test ! -s conftest.err'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; } &&
19930          { ac_try='test -s conftest.$ac_objext'
19931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932   (eval $ac_try) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; }; then
19936   ac_hi=-1 ac_mid=-1
19937   while :; do
19938     cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h.  */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h.  */
19944 $ac_includes_default
19945 int
19946 main ()
19947 {
19948 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
19949 test_array [0] = 0
19950
19951   ;
19952   return 0;
19953 }
19954 _ACEOF
19955 rm -f conftest.$ac_objext
19956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19957   (eval $ac_compile) 2>conftest.er1
19958   ac_status=$?
19959   grep -v '^ *+' conftest.er1 >conftest.err
19960   rm -f conftest.er1
19961   cat conftest.err >&5
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); } &&
19964          { ac_try='test -z "$ac_c_werror_flag"
19965                          || test ! -s conftest.err'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; } &&
19971          { ac_try='test -s conftest.$ac_objext'
19972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973   (eval $ac_try) 2>&5
19974   ac_status=$?
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); }; }; then
19977   ac_lo=$ac_mid; break
19978 else
19979   echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19981
19982 ac_hi=`expr '(' $ac_mid ')' - 1`
19983                        if test $ac_mid -le $ac_hi; then
19984                          ac_lo= ac_hi=
19985                          break
19986                        fi
19987                        ac_mid=`expr 2 '*' $ac_mid`
19988 fi
19989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19990   done
19991 else
19992   echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19994
19995 ac_lo= ac_hi=
19996 fi
19997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19998 fi
19999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20000 # Binary search between lo and hi bounds.
20001 while test "x$ac_lo" != "x$ac_hi"; do
20002   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20003   cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009 $ac_includes_default
20010 int
20011 main ()
20012 {
20013 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
20014 test_array [0] = 0
20015
20016   ;
20017   return 0;
20018 }
20019 _ACEOF
20020 rm -f conftest.$ac_objext
20021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022   (eval $ac_compile) 2>conftest.er1
20023   ac_status=$?
20024   grep -v '^ *+' conftest.er1 >conftest.err
20025   rm -f conftest.er1
20026   cat conftest.err >&5
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); } &&
20029          { ac_try='test -z "$ac_c_werror_flag"
20030                          || test ! -s conftest.err'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; } &&
20036          { ac_try='test -s conftest.$ac_objext'
20037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038   (eval $ac_try) 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; }; then
20042   ac_hi=$ac_mid
20043 else
20044   echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047 ac_lo=`expr '(' $ac_mid ')' + 1`
20048 fi
20049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20050 done
20051 case $ac_lo in
20052 ?*) ac_cv_sizeof_char=$ac_lo;;
20053 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20054 See \`config.log' for more details." >&5
20055 echo "$as_me: error: cannot compute sizeof (char), 77
20056 See \`config.log' for more details." >&2;}
20057    { (exit 1); exit 1; }; } ;;
20058 esac
20059 else
20060   if test "$cross_compiling" = yes; then
20061   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20062 See \`config.log' for more details." >&5
20063 echo "$as_me: error: cannot run test program while cross compiling
20064 See \`config.log' for more details." >&2;}
20065    { (exit 1); exit 1; }; }
20066 else
20067   cat >conftest.$ac_ext <<_ACEOF
20068 /* confdefs.h.  */
20069 _ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h.  */
20073 $ac_includes_default
20074 long longval () { return (long) (sizeof (char)); }
20075 unsigned long ulongval () { return (long) (sizeof (char)); }
20076 #include <stdio.h>
20077 #include <stdlib.h>
20078 int
20079 main ()
20080 {
20081
20082   FILE *f = fopen ("conftest.val", "w");
20083   if (! f)
20084     exit (1);
20085   if (((long) (sizeof (char))) < 0)
20086     {
20087       long i = longval ();
20088       if (i != ((long) (sizeof (char))))
20089         exit (1);
20090       fprintf (f, "%ld\n", i);
20091     }
20092   else
20093     {
20094       unsigned long i = ulongval ();
20095       if (i != ((long) (sizeof (char))))
20096         exit (1);
20097       fprintf (f, "%lu\n", i);
20098     }
20099   exit (ferror (f) || fclose (f) != 0);
20100
20101   ;
20102   return 0;
20103 }
20104 _ACEOF
20105 rm -f conftest$ac_exeext
20106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20107   (eval $ac_link) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112   (eval $ac_try) 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116   ac_cv_sizeof_char=`cat conftest.val`
20117 else
20118   echo "$as_me: program exited with status $ac_status" >&5
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122 ( exit $ac_status )
20123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
20124 See \`config.log' for more details." >&5
20125 echo "$as_me: error: cannot compute sizeof (char), 77
20126 See \`config.log' for more details." >&2;}
20127    { (exit 1); exit 1; }; }
20128 fi
20129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20130 fi
20131 fi
20132 rm -f conftest.val
20133 else
20134   ac_cv_sizeof_char=0
20135 fi
20136 fi
20137 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20138 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
20139 cat >>confdefs.h <<_ACEOF
20140 #define SIZEOF_CHAR $ac_cv_sizeof_char
20141 _ACEOF
20142
20143
20144 echo "$as_me:$LINENO: checking for int" >&5
20145 echo $ECHO_N "checking for int... $ECHO_C" >&6
20146 if test "${ac_cv_type_int+set}" = set; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149   cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155 $ac_includes_default
20156 int
20157 main ()
20158 {
20159 if ((int *) 0)
20160   return 0;
20161 if (sizeof (int))
20162   return 0;
20163   ;
20164   return 0;
20165 }
20166 _ACEOF
20167 rm -f conftest.$ac_objext
20168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20169   (eval $ac_compile) 2>conftest.er1
20170   ac_status=$?
20171   grep -v '^ *+' conftest.er1 >conftest.err
20172   rm -f conftest.er1
20173   cat conftest.err >&5
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); } &&
20176          { ac_try='test -z "$ac_c_werror_flag"
20177                          || test ! -s conftest.err'
20178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179   (eval $ac_try) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; } &&
20183          { ac_try='test -s conftest.$ac_objext'
20184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185   (eval $ac_try) 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; }; then
20189   ac_cv_type_int=yes
20190 else
20191   echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194 ac_cv_type_int=no
20195 fi
20196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20197 fi
20198 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20199 echo "${ECHO_T}$ac_cv_type_int" >&6
20200
20201 echo "$as_me:$LINENO: checking size of int" >&5
20202 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20203 if test "${ac_cv_sizeof_int+set}" = set; then
20204   echo $ECHO_N "(cached) $ECHO_C" >&6
20205 else
20206   if test "$ac_cv_type_int" = yes; then
20207   # The cast to unsigned long works around a bug in the HP C Compiler
20208   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20209   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20210   # This bug is HP SR number 8606223364.
20211   if test "$cross_compiling" = yes; then
20212   # Depending upon the size, compute the lo and hi bounds.
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h.  */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h.  */
20219 $ac_includes_default
20220 int
20221 main ()
20222 {
20223 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
20224 test_array [0] = 0
20225
20226   ;
20227   return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232   (eval $ac_compile) 2>conftest.er1
20233   ac_status=$?
20234   grep -v '^ *+' conftest.er1 >conftest.err
20235   rm -f conftest.er1
20236   cat conftest.err >&5
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); } &&
20239          { ac_try='test -z "$ac_c_werror_flag"
20240                          || test ! -s conftest.err'
20241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242   (eval $ac_try) 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; } &&
20246          { ac_try='test -s conftest.$ac_objext'
20247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248   (eval $ac_try) 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; }; then
20252   ac_lo=0 ac_mid=0
20253   while :; do
20254     cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 $ac_includes_default
20261 int
20262 main ()
20263 {
20264 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20265 test_array [0] = 0
20266
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 rm -f conftest.$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273   (eval $ac_compile) 2>conftest.er1
20274   ac_status=$?
20275   grep -v '^ *+' conftest.er1 >conftest.err
20276   rm -f conftest.er1
20277   cat conftest.err >&5
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } &&
20280          { ac_try='test -z "$ac_c_werror_flag"
20281                          || test ! -s conftest.err'
20282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283   (eval $ac_try) 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; } &&
20287          { ac_try='test -s conftest.$ac_objext'
20288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289   (eval $ac_try) 2>&5
20290   ac_status=$?
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); }; }; then
20293   ac_hi=$ac_mid; break
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ac_lo=`expr $ac_mid + 1`
20299                     if test $ac_lo -le $ac_mid; then
20300                       ac_lo= ac_hi=
20301                       break
20302                     fi
20303                     ac_mid=`expr 2 '*' $ac_mid + 1`
20304 fi
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20306   done
20307 else
20308   echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h.  */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h.  */
20317 $ac_includes_default
20318 int
20319 main ()
20320 {
20321 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
20322 test_array [0] = 0
20323
20324   ;
20325   return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest.$ac_objext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20330   (eval $ac_compile) 2>conftest.er1
20331   ac_status=$?
20332   grep -v '^ *+' conftest.er1 >conftest.err
20333   rm -f conftest.er1
20334   cat conftest.err >&5
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); } &&
20337          { ac_try='test -z "$ac_c_werror_flag"
20338                          || test ! -s conftest.err'
20339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340   (eval $ac_try) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; } &&
20344          { ac_try='test -s conftest.$ac_objext'
20345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346   (eval $ac_try) 2>&5
20347   ac_status=$?
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); }; }; then
20350   ac_hi=-1 ac_mid=-1
20351   while :; do
20352     cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h.  */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h.  */
20358 $ac_includes_default
20359 int
20360 main ()
20361 {
20362 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
20363 test_array [0] = 0
20364
20365   ;
20366   return 0;
20367 }
20368 _ACEOF
20369 rm -f conftest.$ac_objext
20370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20371   (eval $ac_compile) 2>conftest.er1
20372   ac_status=$?
20373   grep -v '^ *+' conftest.er1 >conftest.err
20374   rm -f conftest.er1
20375   cat conftest.err >&5
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); } &&
20378          { ac_try='test -z "$ac_c_werror_flag"
20379                          || test ! -s conftest.err'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; } &&
20385          { ac_try='test -s conftest.$ac_objext'
20386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387   (eval $ac_try) 2>&5
20388   ac_status=$?
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); }; }; then
20391   ac_lo=$ac_mid; break
20392 else
20393   echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20395
20396 ac_hi=`expr '(' $ac_mid ')' - 1`
20397                        if test $ac_mid -le $ac_hi; then
20398                          ac_lo= ac_hi=
20399                          break
20400                        fi
20401                        ac_mid=`expr 2 '*' $ac_mid`
20402 fi
20403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20404   done
20405 else
20406   echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 ac_lo= ac_hi=
20410 fi
20411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20412 fi
20413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20414 # Binary search between lo and hi bounds.
20415 while test "x$ac_lo" != "x$ac_hi"; do
20416   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20417   cat >conftest.$ac_ext <<_ACEOF
20418 /* confdefs.h.  */
20419 _ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h.  */
20423 $ac_includes_default
20424 int
20425 main ()
20426 {
20427 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20428 test_array [0] = 0
20429
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 rm -f conftest.$ac_objext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20436   (eval $ac_compile) 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } &&
20443          { ac_try='test -z "$ac_c_werror_flag"
20444                          || test ! -s conftest.err'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; } &&
20450          { ac_try='test -s conftest.$ac_objext'
20451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452   (eval $ac_try) 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   ac_hi=$ac_mid
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 ac_lo=`expr '(' $ac_mid ')' + 1`
20462 fi
20463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20464 done
20465 case $ac_lo in
20466 ?*) ac_cv_sizeof_int=$ac_lo;;
20467 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20468 See \`config.log' for more details." >&5
20469 echo "$as_me: error: cannot compute sizeof (int), 77
20470 See \`config.log' for more details." >&2;}
20471    { (exit 1); exit 1; }; } ;;
20472 esac
20473 else
20474   if test "$cross_compiling" = yes; then
20475   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20476 See \`config.log' for more details." >&5
20477 echo "$as_me: error: cannot run test program while cross compiling
20478 See \`config.log' for more details." >&2;}
20479    { (exit 1); exit 1; }; }
20480 else
20481   cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h.  */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h.  */
20487 $ac_includes_default
20488 long longval () { return (long) (sizeof (int)); }
20489 unsigned long ulongval () { return (long) (sizeof (int)); }
20490 #include <stdio.h>
20491 #include <stdlib.h>
20492 int
20493 main ()
20494 {
20495
20496   FILE *f = fopen ("conftest.val", "w");
20497   if (! f)
20498     exit (1);
20499   if (((long) (sizeof (int))) < 0)
20500     {
20501       long i = longval ();
20502       if (i != ((long) (sizeof (int))))
20503         exit (1);
20504       fprintf (f, "%ld\n", i);
20505     }
20506   else
20507     {
20508       unsigned long i = ulongval ();
20509       if (i != ((long) (sizeof (int))))
20510         exit (1);
20511       fprintf (f, "%lu\n", i);
20512     }
20513   exit (ferror (f) || fclose (f) != 0);
20514
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 rm -f conftest$ac_exeext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20521   (eval $ac_link) 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526   (eval $ac_try) 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; }; then
20530   ac_cv_sizeof_int=`cat conftest.val`
20531 else
20532   echo "$as_me: program exited with status $ac_status" >&5
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536 ( exit $ac_status )
20537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20538 See \`config.log' for more details." >&5
20539 echo "$as_me: error: cannot compute sizeof (int), 77
20540 See \`config.log' for more details." >&2;}
20541    { (exit 1); exit 1; }; }
20542 fi
20543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20544 fi
20545 fi
20546 rm -f conftest.val
20547 else
20548   ac_cv_sizeof_int=0
20549 fi
20550 fi
20551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20552 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
20553 cat >>confdefs.h <<_ACEOF
20554 #define SIZEOF_INT $ac_cv_sizeof_int
20555 _ACEOF
20556
20557
20558 echo "$as_me:$LINENO: checking for long" >&5
20559 echo $ECHO_N "checking for long... $ECHO_C" >&6
20560 if test "${ac_cv_type_long+set}" = set; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h.  */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h.  */
20569 $ac_includes_default
20570 int
20571 main ()
20572 {
20573 if ((long *) 0)
20574   return 0;
20575 if (sizeof (long))
20576   return 0;
20577   ;
20578   return 0;
20579 }
20580 _ACEOF
20581 rm -f conftest.$ac_objext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583   (eval $ac_compile) 2>conftest.er1
20584   ac_status=$?
20585   grep -v '^ *+' conftest.er1 >conftest.err
20586   rm -f conftest.er1
20587   cat conftest.err >&5
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } &&
20590          { ac_try='test -z "$ac_c_werror_flag"
20591                          || test ! -s conftest.err'
20592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593   (eval $ac_try) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; } &&
20597          { ac_try='test -s conftest.$ac_objext'
20598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599   (eval $ac_try) 2>&5
20600   ac_status=$?
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); }; }; then
20603   ac_cv_type_long=yes
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_cv_type_long=no
20609 fi
20610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20611 fi
20612 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20613 echo "${ECHO_T}$ac_cv_type_long" >&6
20614
20615 echo "$as_me:$LINENO: checking size of long" >&5
20616 echo $ECHO_N "checking size of long... $ECHO_C" >&6
20617 if test "${ac_cv_sizeof_long+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   if test "$ac_cv_type_long" = yes; then
20621   # The cast to unsigned long works around a bug in the HP C Compiler
20622   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20623   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20624   # This bug is HP SR number 8606223364.
20625   if test "$cross_compiling" = yes; then
20626   # Depending upon the size, compute the lo and hi bounds.
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h.  */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h.  */
20633 $ac_includes_default
20634 int
20635 main ()
20636 {
20637 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
20638 test_array [0] = 0
20639
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646   (eval $ac_compile) 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } &&
20653          { ac_try='test -z "$ac_c_werror_flag"
20654                          || test ! -s conftest.err'
20655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656   (eval $ac_try) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest.$ac_objext'
20661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662   (eval $ac_try) 2>&5
20663   ac_status=$?
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); }; }; then
20666   ac_lo=0 ac_mid=0
20667   while :; do
20668     cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h.  */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h.  */
20674 $ac_includes_default
20675 int
20676 main ()
20677 {
20678 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20679 test_array [0] = 0
20680
20681   ;
20682   return 0;
20683 }
20684 _ACEOF
20685 rm -f conftest.$ac_objext
20686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20687   (eval $ac_compile) 2>conftest.er1
20688   ac_status=$?
20689   grep -v '^ *+' conftest.er1 >conftest.err
20690   rm -f conftest.er1
20691   cat conftest.err >&5
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } &&
20694          { ac_try='test -z "$ac_c_werror_flag"
20695                          || test ! -s conftest.err'
20696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697   (eval $ac_try) 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); }; } &&
20701          { ac_try='test -s conftest.$ac_objext'
20702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703   (eval $ac_try) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; }; then
20707   ac_hi=$ac_mid; break
20708 else
20709   echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20711
20712 ac_lo=`expr $ac_mid + 1`
20713                     if test $ac_lo -le $ac_mid; then
20714                       ac_lo= ac_hi=
20715                       break
20716                     fi
20717                     ac_mid=`expr 2 '*' $ac_mid + 1`
20718 fi
20719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20720   done
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h.  */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h.  */
20731 $ac_includes_default
20732 int
20733 main ()
20734 {
20735 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
20736 test_array [0] = 0
20737
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 rm -f conftest.$ac_objext
20743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744   (eval $ac_compile) 2>conftest.er1
20745   ac_status=$?
20746   grep -v '^ *+' conftest.er1 >conftest.err
20747   rm -f conftest.er1
20748   cat conftest.err >&5
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); } &&
20751          { ac_try='test -z "$ac_c_werror_flag"
20752                          || test ! -s conftest.err'
20753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754   (eval $ac_try) 2>&5
20755   ac_status=$?
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); }; } &&
20758          { ac_try='test -s conftest.$ac_objext'
20759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760   (eval $ac_try) 2>&5
20761   ac_status=$?
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); }; }; then
20764   ac_hi=-1 ac_mid=-1
20765   while :; do
20766     cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772 $ac_includes_default
20773 int
20774 main ()
20775 {
20776 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20777 test_array [0] = 0
20778
20779   ;
20780   return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest.$ac_objext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20785   (eval $ac_compile) 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } &&
20792          { ac_try='test -z "$ac_c_werror_flag"
20793                          || test ! -s conftest.err'
20794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795   (eval $ac_try) 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; } &&
20799          { ac_try='test -s conftest.$ac_objext'
20800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801   (eval $ac_try) 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; }; then
20805   ac_lo=$ac_mid; break
20806 else
20807   echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ac_hi=`expr '(' $ac_mid ')' - 1`
20811                        if test $ac_mid -le $ac_hi; then
20812                          ac_lo= ac_hi=
20813                          break
20814                        fi
20815                        ac_mid=`expr 2 '*' $ac_mid`
20816 fi
20817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20818   done
20819 else
20820   echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20822
20823 ac_lo= ac_hi=
20824 fi
20825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20826 fi
20827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20828 # Binary search between lo and hi bounds.
20829 while test "x$ac_lo" != "x$ac_hi"; do
20830   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20831   cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837 $ac_includes_default
20838 int
20839 main ()
20840 {
20841 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20842 test_array [0] = 0
20843
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext
20849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20850   (eval $ac_compile) 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } &&
20857          { ac_try='test -z "$ac_c_werror_flag"
20858                          || test ! -s conftest.err'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; } &&
20864          { ac_try='test -s conftest.$ac_objext'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   ac_hi=$ac_mid
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 ac_lo=`expr '(' $ac_mid ')' + 1`
20876 fi
20877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20878 done
20879 case $ac_lo in
20880 ?*) ac_cv_sizeof_long=$ac_lo;;
20881 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20882 See \`config.log' for more details." >&5
20883 echo "$as_me: error: cannot compute sizeof (long), 77
20884 See \`config.log' for more details." >&2;}
20885    { (exit 1); exit 1; }; } ;;
20886 esac
20887 else
20888   if test "$cross_compiling" = yes; then
20889   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20890 See \`config.log' for more details." >&5
20891 echo "$as_me: error: cannot run test program while cross compiling
20892 See \`config.log' for more details." >&2;}
20893    { (exit 1); exit 1; }; }
20894 else
20895   cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h.  */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h.  */
20901 $ac_includes_default
20902 long longval () { return (long) (sizeof (long)); }
20903 unsigned long ulongval () { return (long) (sizeof (long)); }
20904 #include <stdio.h>
20905 #include <stdlib.h>
20906 int
20907 main ()
20908 {
20909
20910   FILE *f = fopen ("conftest.val", "w");
20911   if (! f)
20912     exit (1);
20913   if (((long) (sizeof (long))) < 0)
20914     {
20915       long i = longval ();
20916       if (i != ((long) (sizeof (long))))
20917         exit (1);
20918       fprintf (f, "%ld\n", i);
20919     }
20920   else
20921     {
20922       unsigned long i = ulongval ();
20923       if (i != ((long) (sizeof (long))))
20924         exit (1);
20925       fprintf (f, "%lu\n", i);
20926     }
20927   exit (ferror (f) || fclose (f) != 0);
20928
20929   ;
20930   return 0;
20931 }
20932 _ACEOF
20933 rm -f conftest$ac_exeext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20935   (eval $ac_link) 2>&5
20936   ac_status=$?
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940   (eval $ac_try) 2>&5
20941   ac_status=$?
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); }; }; then
20944   ac_cv_sizeof_long=`cat conftest.val`
20945 else
20946   echo "$as_me: program exited with status $ac_status" >&5
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20949
20950 ( exit $ac_status )
20951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20952 See \`config.log' for more details." >&5
20953 echo "$as_me: error: cannot compute sizeof (long), 77
20954 See \`config.log' for more details." >&2;}
20955    { (exit 1); exit 1; }; }
20956 fi
20957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20958 fi
20959 fi
20960 rm -f conftest.val
20961 else
20962   ac_cv_sizeof_long=0
20963 fi
20964 fi
20965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20966 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20967 cat >>confdefs.h <<_ACEOF
20968 #define SIZEOF_LONG $ac_cv_sizeof_long
20969 _ACEOF
20970
20971
20972 echo "$as_me:$LINENO: checking for short" >&5
20973 echo $ECHO_N "checking for short... $ECHO_C" >&6
20974 if test "${ac_cv_type_short+set}" = set; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 else
20977   cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h.  */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h.  */
20983 $ac_includes_default
20984 int
20985 main ()
20986 {
20987 if ((short *) 0)
20988   return 0;
20989 if (sizeof (short))
20990   return 0;
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997   (eval $ac_compile) 2>conftest.er1
20998   ac_status=$?
20999   grep -v '^ *+' conftest.er1 >conftest.err
21000   rm -f conftest.er1
21001   cat conftest.err >&5
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } &&
21004          { ac_try='test -z "$ac_c_werror_flag"
21005                          || test ! -s conftest.err'
21006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007   (eval $ac_try) 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; } &&
21011          { ac_try='test -s conftest.$ac_objext'
21012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013   (eval $ac_try) 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); }; }; then
21017   ac_cv_type_short=yes
21018 else
21019   echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022 ac_cv_type_short=no
21023 fi
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21025 fi
21026 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21027 echo "${ECHO_T}$ac_cv_type_short" >&6
21028
21029 echo "$as_me:$LINENO: checking size of short" >&5
21030 echo $ECHO_N "checking size of short... $ECHO_C" >&6
21031 if test "${ac_cv_sizeof_short+set}" = set; then
21032   echo $ECHO_N "(cached) $ECHO_C" >&6
21033 else
21034   if test "$ac_cv_type_short" = yes; then
21035   # The cast to unsigned long works around a bug in the HP C Compiler
21036   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21037   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21038   # This bug is HP SR number 8606223364.
21039   if test "$cross_compiling" = yes; then
21040   # Depending upon the size, compute the lo and hi bounds.
21041 cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h.  */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h.  */
21047 $ac_includes_default
21048 int
21049 main ()
21050 {
21051 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
21052 test_array [0] = 0
21053
21054   ;
21055   return 0;
21056 }
21057 _ACEOF
21058 rm -f conftest.$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060   (eval $ac_compile) 2>conftest.er1
21061   ac_status=$?
21062   grep -v '^ *+' conftest.er1 >conftest.err
21063   rm -f conftest.er1
21064   cat conftest.err >&5
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); } &&
21067          { ac_try='test -z "$ac_c_werror_flag"
21068                          || test ! -s conftest.err'
21069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070   (eval $ac_try) 2>&5
21071   ac_status=$?
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); }; } &&
21074          { ac_try='test -s conftest.$ac_objext'
21075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076   (eval $ac_try) 2>&5
21077   ac_status=$?
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); }; }; then
21080   ac_lo=0 ac_mid=0
21081   while :; do
21082     cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088 $ac_includes_default
21089 int
21090 main ()
21091 {
21092 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
21093 test_array [0] = 0
21094
21095   ;
21096   return 0;
21097 }
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101   (eval $ac_compile) 2>conftest.er1
21102   ac_status=$?
21103   grep -v '^ *+' conftest.er1 >conftest.err
21104   rm -f conftest.er1
21105   cat conftest.err >&5
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } &&
21108          { ac_try='test -z "$ac_c_werror_flag"
21109                          || test ! -s conftest.err'
21110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111   (eval $ac_try) 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; } &&
21115          { ac_try='test -s conftest.$ac_objext'
21116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; }; then
21121   ac_hi=$ac_mid; break
21122 else
21123   echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126 ac_lo=`expr $ac_mid + 1`
21127                     if test $ac_lo -le $ac_mid; then
21128                       ac_lo= ac_hi=
21129                       break
21130                     fi
21131                     ac_mid=`expr 2 '*' $ac_mid + 1`
21132 fi
21133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21134   done
21135 else
21136   echo "$as_me: failed program was:" >&5
21137 sed 's/^/| /' conftest.$ac_ext >&5
21138
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 $ac_includes_default
21146 int
21147 main ()
21148 {
21149 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
21150 test_array [0] = 0
21151
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext
21157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21158   (eval $ac_compile) 2>conftest.er1
21159   ac_status=$?
21160   grep -v '^ *+' conftest.er1 >conftest.err
21161   rm -f conftest.er1
21162   cat conftest.err >&5
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); } &&
21165          { ac_try='test -z "$ac_c_werror_flag"
21166                          || test ! -s conftest.err'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; } &&
21172          { ac_try='test -s conftest.$ac_objext'
21173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174   (eval $ac_try) 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); }; }; then
21178   ac_hi=-1 ac_mid=-1
21179   while :; do
21180     cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h.  */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h.  */
21186 $ac_includes_default
21187 int
21188 main ()
21189 {
21190 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
21191 test_array [0] = 0
21192
21193   ;
21194   return 0;
21195 }
21196 _ACEOF
21197 rm -f conftest.$ac_objext
21198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199   (eval $ac_compile) 2>conftest.er1
21200   ac_status=$?
21201   grep -v '^ *+' conftest.er1 >conftest.err
21202   rm -f conftest.er1
21203   cat conftest.err >&5
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); } &&
21206          { ac_try='test -z "$ac_c_werror_flag"
21207                          || test ! -s conftest.err'
21208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209   (eval $ac_try) 2>&5
21210   ac_status=$?
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); }; } &&
21213          { ac_try='test -s conftest.$ac_objext'
21214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215   (eval $ac_try) 2>&5
21216   ac_status=$?
21217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218   (exit $ac_status); }; }; then
21219   ac_lo=$ac_mid; break
21220 else
21221   echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21223
21224 ac_hi=`expr '(' $ac_mid ')' - 1`
21225                        if test $ac_mid -le $ac_hi; then
21226                          ac_lo= ac_hi=
21227                          break
21228                        fi
21229                        ac_mid=`expr 2 '*' $ac_mid`
21230 fi
21231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21232   done
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237 ac_lo= ac_hi=
21238 fi
21239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21240 fi
21241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21242 # Binary search between lo and hi bounds.
21243 while test "x$ac_lo" != "x$ac_hi"; do
21244   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21245   cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 $ac_includes_default
21252 int
21253 main ()
21254 {
21255 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
21256 test_array [0] = 0
21257
21258   ;
21259   return 0;
21260 }
21261 _ACEOF
21262 rm -f conftest.$ac_objext
21263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21264   (eval $ac_compile) 2>conftest.er1
21265   ac_status=$?
21266   grep -v '^ *+' conftest.er1 >conftest.err
21267   rm -f conftest.er1
21268   cat conftest.err >&5
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); } &&
21271          { ac_try='test -z "$ac_c_werror_flag"
21272                          || test ! -s conftest.err'
21273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274   (eval $ac_try) 2>&5
21275   ac_status=$?
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); }; } &&
21278          { ac_try='test -s conftest.$ac_objext'
21279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280   (eval $ac_try) 2>&5
21281   ac_status=$?
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); }; }; then
21284   ac_hi=$ac_mid
21285 else
21286   echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21288
21289 ac_lo=`expr '(' $ac_mid ')' + 1`
21290 fi
21291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21292 done
21293 case $ac_lo in
21294 ?*) ac_cv_sizeof_short=$ac_lo;;
21295 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21296 See \`config.log' for more details." >&5
21297 echo "$as_me: error: cannot compute sizeof (short), 77
21298 See \`config.log' for more details." >&2;}
21299    { (exit 1); exit 1; }; } ;;
21300 esac
21301 else
21302   if test "$cross_compiling" = yes; then
21303   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21304 See \`config.log' for more details." >&5
21305 echo "$as_me: error: cannot run test program while cross compiling
21306 See \`config.log' for more details." >&2;}
21307    { (exit 1); exit 1; }; }
21308 else
21309   cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h.  */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h.  */
21315 $ac_includes_default
21316 long longval () { return (long) (sizeof (short)); }
21317 unsigned long ulongval () { return (long) (sizeof (short)); }
21318 #include <stdio.h>
21319 #include <stdlib.h>
21320 int
21321 main ()
21322 {
21323
21324   FILE *f = fopen ("conftest.val", "w");
21325   if (! f)
21326     exit (1);
21327   if (((long) (sizeof (short))) < 0)
21328     {
21329       long i = longval ();
21330       if (i != ((long) (sizeof (short))))
21331         exit (1);
21332       fprintf (f, "%ld\n", i);
21333     }
21334   else
21335     {
21336       unsigned long i = ulongval ();
21337       if (i != ((long) (sizeof (short))))
21338         exit (1);
21339       fprintf (f, "%lu\n", i);
21340     }
21341   exit (ferror (f) || fclose (f) != 0);
21342
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349   (eval $ac_link) 2>&5
21350   ac_status=$?
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354   (eval $ac_try) 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); }; }; then
21358   ac_cv_sizeof_short=`cat conftest.val`
21359 else
21360   echo "$as_me: program exited with status $ac_status" >&5
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ( exit $ac_status )
21365 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
21366 See \`config.log' for more details." >&5
21367 echo "$as_me: error: cannot compute sizeof (short), 77
21368 See \`config.log' for more details." >&2;}
21369    { (exit 1); exit 1; }; }
21370 fi
21371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21372 fi
21373 fi
21374 rm -f conftest.val
21375 else
21376   ac_cv_sizeof_short=0
21377 fi
21378 fi
21379 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21380 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
21381 cat >>confdefs.h <<_ACEOF
21382 #define SIZEOF_SHORT $ac_cv_sizeof_short
21383 _ACEOF
21384
21385
21386 echo "$as_me:$LINENO: checking for long double" >&5
21387 echo $ECHO_N "checking for long double... $ECHO_C" >&6
21388 if test "${ac_cv_type_long_double+set}" = set; then
21389   echo $ECHO_N "(cached) $ECHO_C" >&6
21390 else
21391   cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h.  */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h.  */
21397 $ac_includes_default
21398 int
21399 main ()
21400 {
21401 if ((long double *) 0)
21402   return 0;
21403 if (sizeof (long double))
21404   return 0;
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21411   (eval $ac_compile) 2>conftest.er1
21412   ac_status=$?
21413   grep -v '^ *+' conftest.er1 >conftest.err
21414   rm -f conftest.er1
21415   cat conftest.err >&5
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } &&
21418          { ac_try='test -z "$ac_c_werror_flag"
21419                          || test ! -s conftest.err'
21420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; } &&
21425          { ac_try='test -s conftest.$ac_objext'
21426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427   (eval $ac_try) 2>&5
21428   ac_status=$?
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); }; }; then
21431   ac_cv_type_long_double=yes
21432 else
21433   echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21435
21436 ac_cv_type_long_double=no
21437 fi
21438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439 fi
21440 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
21441 echo "${ECHO_T}$ac_cv_type_long_double" >&6
21442
21443 echo "$as_me:$LINENO: checking size of long double" >&5
21444 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
21445 if test "${ac_cv_sizeof_long_double+set}" = set; then
21446   echo $ECHO_N "(cached) $ECHO_C" >&6
21447 else
21448   if test "$ac_cv_type_long_double" = yes; then
21449   # The cast to unsigned long works around a bug in the HP C Compiler
21450   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21451   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21452   # This bug is HP SR number 8606223364.
21453   if test "$cross_compiling" = yes; then
21454   # Depending upon the size, compute the lo and hi bounds.
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461 $ac_includes_default
21462 int
21463 main ()
21464 {
21465 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
21466 test_array [0] = 0
21467
21468   ;
21469   return 0;
21470 }
21471 _ACEOF
21472 rm -f conftest.$ac_objext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21474   (eval $ac_compile) 2>conftest.er1
21475   ac_status=$?
21476   grep -v '^ *+' conftest.er1 >conftest.err
21477   rm -f conftest.er1
21478   cat conftest.err >&5
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); } &&
21481          { ac_try='test -z "$ac_c_werror_flag"
21482                          || test ! -s conftest.err'
21483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484   (eval $ac_try) 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); }; } &&
21488          { ac_try='test -s conftest.$ac_objext'
21489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490   (eval $ac_try) 2>&5
21491   ac_status=$?
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); }; }; then
21494   ac_lo=0 ac_mid=0
21495   while :; do
21496     cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502 $ac_includes_default
21503 int
21504 main ()
21505 {
21506 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
21507 test_array [0] = 0
21508
21509   ;
21510   return 0;
21511 }
21512 _ACEOF
21513 rm -f conftest.$ac_objext
21514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21515   (eval $ac_compile) 2>conftest.er1
21516   ac_status=$?
21517   grep -v '^ *+' conftest.er1 >conftest.err
21518   rm -f conftest.er1
21519   cat conftest.err >&5
21520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521   (exit $ac_status); } &&
21522          { ac_try='test -z "$ac_c_werror_flag"
21523                          || test ! -s conftest.err'
21524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525   (eval $ac_try) 2>&5
21526   ac_status=$?
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); }; } &&
21529          { ac_try='test -s conftest.$ac_objext'
21530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531   (eval $ac_try) 2>&5
21532   ac_status=$?
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); }; }; then
21535   ac_hi=$ac_mid; break
21536 else
21537   echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540 ac_lo=`expr $ac_mid + 1`
21541                     if test $ac_lo -le $ac_mid; then
21542                       ac_lo= ac_hi=
21543                       break
21544                     fi
21545                     ac_mid=`expr 2 '*' $ac_mid + 1`
21546 fi
21547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21548   done
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h.  */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h.  */
21559 $ac_includes_default
21560 int
21561 main ()
21562 {
21563 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
21564 test_array [0] = 0
21565
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 rm -f conftest.$ac_objext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572   (eval $ac_compile) 2>conftest.er1
21573   ac_status=$?
21574   grep -v '^ *+' conftest.er1 >conftest.err
21575   rm -f conftest.er1
21576   cat conftest.err >&5
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); } &&
21579          { ac_try='test -z "$ac_c_werror_flag"
21580                          || test ! -s conftest.err'
21581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582   (eval $ac_try) 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; } &&
21586          { ac_try='test -s conftest.$ac_objext'
21587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588   (eval $ac_try) 2>&5
21589   ac_status=$?
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); }; }; then
21592   ac_hi=-1 ac_mid=-1
21593   while :; do
21594     cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h.  */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h.  */
21600 $ac_includes_default
21601 int
21602 main ()
21603 {
21604 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
21605 test_array [0] = 0
21606
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613   (eval $ac_compile) 2>conftest.er1
21614   ac_status=$?
21615   grep -v '^ *+' conftest.er1 >conftest.err
21616   rm -f conftest.er1
21617   cat conftest.err >&5
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); } &&
21620          { ac_try='test -z "$ac_c_werror_flag"
21621                          || test ! -s conftest.err'
21622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); }; } &&
21627          { ac_try='test -s conftest.$ac_objext'
21628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629   (eval $ac_try) 2>&5
21630   ac_status=$?
21631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632   (exit $ac_status); }; }; then
21633   ac_lo=$ac_mid; break
21634 else
21635   echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21637
21638 ac_hi=`expr '(' $ac_mid ')' - 1`
21639                        if test $ac_mid -le $ac_hi; then
21640                          ac_lo= ac_hi=
21641                          break
21642                        fi
21643                        ac_mid=`expr 2 '*' $ac_mid`
21644 fi
21645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21646   done
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651 ac_lo= ac_hi=
21652 fi
21653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21654 fi
21655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656 # Binary search between lo and hi bounds.
21657 while test "x$ac_lo" != "x$ac_hi"; do
21658   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21659   cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h.  */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h.  */
21665 $ac_includes_default
21666 int
21667 main ()
21668 {
21669 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
21670 test_array [0] = 0
21671
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21678   (eval $ac_compile) 2>conftest.er1
21679   ac_status=$?
21680   grep -v '^ *+' conftest.er1 >conftest.err
21681   rm -f conftest.er1
21682   cat conftest.err >&5
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } &&
21685          { ac_try='test -z "$ac_c_werror_flag"
21686                          || test ! -s conftest.err'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; } &&
21692          { ac_try='test -s conftest.$ac_objext'
21693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694   (eval $ac_try) 2>&5
21695   ac_status=$?
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); }; }; then
21698   ac_hi=$ac_mid
21699 else
21700   echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ac_lo=`expr '(' $ac_mid ')' + 1`
21704 fi
21705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706 done
21707 case $ac_lo in
21708 ?*) ac_cv_sizeof_long_double=$ac_lo;;
21709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
21710 See \`config.log' for more details." >&5
21711 echo "$as_me: error: cannot compute sizeof (long double), 77
21712 See \`config.log' for more details." >&2;}
21713    { (exit 1); exit 1; }; } ;;
21714 esac
21715 else
21716   if test "$cross_compiling" = yes; then
21717   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21718 See \`config.log' for more details." >&5
21719 echo "$as_me: error: cannot run test program while cross compiling
21720 See \`config.log' for more details." >&2;}
21721    { (exit 1); exit 1; }; }
21722 else
21723   cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h.  */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h.  */
21729 $ac_includes_default
21730 long longval () { return (long) (sizeof (long double)); }
21731 unsigned long ulongval () { return (long) (sizeof (long double)); }
21732 #include <stdio.h>
21733 #include <stdlib.h>
21734 int
21735 main ()
21736 {
21737
21738   FILE *f = fopen ("conftest.val", "w");
21739   if (! f)
21740     exit (1);
21741   if (((long) (sizeof (long double))) < 0)
21742     {
21743       long i = longval ();
21744       if (i != ((long) (sizeof (long double))))
21745         exit (1);
21746       fprintf (f, "%ld\n", i);
21747     }
21748   else
21749     {
21750       unsigned long i = ulongval ();
21751       if (i != ((long) (sizeof (long double))))
21752         exit (1);
21753       fprintf (f, "%lu\n", i);
21754     }
21755   exit (ferror (f) || fclose (f) != 0);
21756
21757   ;
21758   return 0;
21759 }
21760 _ACEOF
21761 rm -f conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763   (eval $ac_link) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768   (eval $ac_try) 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; }; then
21772   ac_cv_sizeof_long_double=`cat conftest.val`
21773 else
21774   echo "$as_me: program exited with status $ac_status" >&5
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778 ( exit $ac_status )
21779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
21780 See \`config.log' for more details." >&5
21781 echo "$as_me: error: cannot compute sizeof (long double), 77
21782 See \`config.log' for more details." >&2;}
21783    { (exit 1); exit 1; }; }
21784 fi
21785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21786 fi
21787 fi
21788 rm -f conftest.val
21789 else
21790   ac_cv_sizeof_long_double=0
21791 fi
21792 fi
21793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
21794 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
21795 cat >>confdefs.h <<_ACEOF
21796 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
21797 _ACEOF
21798
21799
21800 echo "$as_me:$LINENO: checking for long long" >&5
21801 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21802 if test "${ac_cv_type_long_long+set}" = set; then
21803   echo $ECHO_N "(cached) $ECHO_C" >&6
21804 else
21805   cat >conftest.$ac_ext <<_ACEOF
21806 /* confdefs.h.  */
21807 _ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h.  */
21811 $ac_includes_default
21812 int
21813 main ()
21814 {
21815 if ((long long *) 0)
21816   return 0;
21817 if (sizeof (long long))
21818   return 0;
21819   ;
21820   return 0;
21821 }
21822 _ACEOF
21823 rm -f conftest.$ac_objext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21825   (eval $ac_compile) 2>conftest.er1
21826   ac_status=$?
21827   grep -v '^ *+' conftest.er1 >conftest.err
21828   rm -f conftest.er1
21829   cat conftest.err >&5
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } &&
21832          { ac_try='test -z "$ac_c_werror_flag"
21833                          || test ! -s conftest.err'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; } &&
21839          { ac_try='test -s conftest.$ac_objext'
21840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841   (eval $ac_try) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); }; }; then
21845   ac_cv_type_long_long=yes
21846 else
21847   echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850 ac_cv_type_long_long=no
21851 fi
21852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21853 fi
21854 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21855 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21856
21857 echo "$as_me:$LINENO: checking size of long long" >&5
21858 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21859 if test "${ac_cv_sizeof_long_long+set}" = set; then
21860   echo $ECHO_N "(cached) $ECHO_C" >&6
21861 else
21862   if test "$ac_cv_type_long_long" = yes; then
21863   # The cast to unsigned long works around a bug in the HP C Compiler
21864   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21865   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21866   # This bug is HP SR number 8606223364.
21867   if test "$cross_compiling" = yes; then
21868   # Depending upon the size, compute the lo and hi bounds.
21869 cat >conftest.$ac_ext <<_ACEOF
21870 /* confdefs.h.  */
21871 _ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h.  */
21875 $ac_includes_default
21876 int
21877 main ()
21878 {
21879 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21880 test_array [0] = 0
21881
21882   ;
21883   return 0;
21884 }
21885 _ACEOF
21886 rm -f conftest.$ac_objext
21887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21888   (eval $ac_compile) 2>conftest.er1
21889   ac_status=$?
21890   grep -v '^ *+' conftest.er1 >conftest.err
21891   rm -f conftest.er1
21892   cat conftest.err >&5
21893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894   (exit $ac_status); } &&
21895          { ac_try='test -z "$ac_c_werror_flag"
21896                          || test ! -s conftest.err'
21897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898   (eval $ac_try) 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); }; } &&
21902          { ac_try='test -s conftest.$ac_objext'
21903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904   (eval $ac_try) 2>&5
21905   ac_status=$?
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); }; }; then
21908   ac_lo=0 ac_mid=0
21909   while :; do
21910     cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h.  */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h.  */
21916 $ac_includes_default
21917 int
21918 main ()
21919 {
21920 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21921 test_array [0] = 0
21922
21923   ;
21924   return 0;
21925 }
21926 _ACEOF
21927 rm -f conftest.$ac_objext
21928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21929   (eval $ac_compile) 2>conftest.er1
21930   ac_status=$?
21931   grep -v '^ *+' conftest.er1 >conftest.err
21932   rm -f conftest.er1
21933   cat conftest.err >&5
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); } &&
21936          { ac_try='test -z "$ac_c_werror_flag"
21937                          || test ! -s conftest.err'
21938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939   (eval $ac_try) 2>&5
21940   ac_status=$?
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); }; } &&
21943          { ac_try='test -s conftest.$ac_objext'
21944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945   (eval $ac_try) 2>&5
21946   ac_status=$?
21947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948   (exit $ac_status); }; }; then
21949   ac_hi=$ac_mid; break
21950 else
21951   echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21953
21954 ac_lo=`expr $ac_mid + 1`
21955                     if test $ac_lo -le $ac_mid; then
21956                       ac_lo= ac_hi=
21957                       break
21958                     fi
21959                     ac_mid=`expr 2 '*' $ac_mid + 1`
21960 fi
21961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21962   done
21963 else
21964   echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21966
21967 cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 $ac_includes_default
21974 int
21975 main ()
21976 {
21977 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21978 test_array [0] = 0
21979
21980   ;
21981   return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21986   (eval $ac_compile) 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } &&
21993          { ac_try='test -z "$ac_c_werror_flag"
21994                          || test ! -s conftest.err'
21995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996   (eval $ac_try) 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; } &&
22000          { ac_try='test -s conftest.$ac_objext'
22001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002   (eval $ac_try) 2>&5
22003   ac_status=$?
22004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005   (exit $ac_status); }; }; then
22006   ac_hi=-1 ac_mid=-1
22007   while :; do
22008     cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h.  */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h.  */
22014 $ac_includes_default
22015 int
22016 main ()
22017 {
22018 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
22019 test_array [0] = 0
22020
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22027   (eval $ac_compile) 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } &&
22034          { ac_try='test -z "$ac_c_werror_flag"
22035                          || test ! -s conftest.err'
22036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037   (eval $ac_try) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); }; } &&
22041          { ac_try='test -s conftest.$ac_objext'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; }; then
22047   ac_lo=$ac_mid; break
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 ac_hi=`expr '(' $ac_mid ')' - 1`
22053                        if test $ac_mid -le $ac_hi; then
22054                          ac_lo= ac_hi=
22055                          break
22056                        fi
22057                        ac_mid=`expr 2 '*' $ac_mid`
22058 fi
22059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22060   done
22061 else
22062   echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065 ac_lo= ac_hi=
22066 fi
22067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22068 fi
22069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22070 # Binary search between lo and hi bounds.
22071 while test "x$ac_lo" != "x$ac_hi"; do
22072   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22073   cat >conftest.$ac_ext <<_ACEOF
22074 /* confdefs.h.  */
22075 _ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h.  */
22079 $ac_includes_default
22080 int
22081 main ()
22082 {
22083 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
22084 test_array [0] = 0
22085
22086   ;
22087   return 0;
22088 }
22089 _ACEOF
22090 rm -f conftest.$ac_objext
22091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22092   (eval $ac_compile) 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_objext'
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   ac_hi=$ac_mid
22113 else
22114   echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117 ac_lo=`expr '(' $ac_mid ')' + 1`
22118 fi
22119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22120 done
22121 case $ac_lo in
22122 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22123 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22124 See \`config.log' for more details." >&5
22125 echo "$as_me: error: cannot compute sizeof (long long), 77
22126 See \`config.log' for more details." >&2;}
22127    { (exit 1); exit 1; }; } ;;
22128 esac
22129 else
22130   if test "$cross_compiling" = yes; then
22131   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22132 See \`config.log' for more details." >&5
22133 echo "$as_me: error: cannot run test program while cross compiling
22134 See \`config.log' for more details." >&2;}
22135    { (exit 1); exit 1; }; }
22136 else
22137   cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143 $ac_includes_default
22144 long longval () { return (long) (sizeof (long long)); }
22145 unsigned long ulongval () { return (long) (sizeof (long long)); }
22146 #include <stdio.h>
22147 #include <stdlib.h>
22148 int
22149 main ()
22150 {
22151
22152   FILE *f = fopen ("conftest.val", "w");
22153   if (! f)
22154     exit (1);
22155   if (((long) (sizeof (long long))) < 0)
22156     {
22157       long i = longval ();
22158       if (i != ((long) (sizeof (long long))))
22159         exit (1);
22160       fprintf (f, "%ld\n", i);
22161     }
22162   else
22163     {
22164       unsigned long i = ulongval ();
22165       if (i != ((long) (sizeof (long long))))
22166         exit (1);
22167       fprintf (f, "%lu\n", i);
22168     }
22169   exit (ferror (f) || fclose (f) != 0);
22170
22171   ;
22172   return 0;
22173 }
22174 _ACEOF
22175 rm -f conftest$ac_exeext
22176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22177   (eval $ac_link) 2>&5
22178   ac_status=$?
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22182   (eval $ac_try) 2>&5
22183   ac_status=$?
22184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185   (exit $ac_status); }; }; then
22186   ac_cv_sizeof_long_long=`cat conftest.val`
22187 else
22188   echo "$as_me: program exited with status $ac_status" >&5
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22191
22192 ( exit $ac_status )
22193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
22194 See \`config.log' for more details." >&5
22195 echo "$as_me: error: cannot compute sizeof (long long), 77
22196 See \`config.log' for more details." >&2;}
22197    { (exit 1); exit 1; }; }
22198 fi
22199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22200 fi
22201 fi
22202 rm -f conftest.val
22203 else
22204   ac_cv_sizeof_long_long=0
22205 fi
22206 fi
22207 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22208 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
22209 cat >>confdefs.h <<_ACEOF
22210 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22211 _ACEOF
22212
22213
22214 echo "$as_me:$LINENO: checking for longlong" >&5
22215 echo $ECHO_N "checking for longlong... $ECHO_C" >&6
22216 if test "${ac_cv_type_longlong+set}" = set; then
22217   echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219   cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225 $ac_includes_default
22226 int
22227 main ()
22228 {
22229 if ((longlong *) 0)
22230   return 0;
22231 if (sizeof (longlong))
22232   return 0;
22233   ;
22234   return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest.$ac_objext
22238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239   (eval $ac_compile) 2>conftest.er1
22240   ac_status=$?
22241   grep -v '^ *+' conftest.er1 >conftest.err
22242   rm -f conftest.er1
22243   cat conftest.err >&5
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); } &&
22246          { ac_try='test -z "$ac_c_werror_flag"
22247                          || test ! -s conftest.err'
22248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249   (eval $ac_try) 2>&5
22250   ac_status=$?
22251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252   (exit $ac_status); }; } &&
22253          { ac_try='test -s conftest.$ac_objext'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; }; then
22259   ac_cv_type_longlong=yes
22260 else
22261   echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22263
22264 ac_cv_type_longlong=no
22265 fi
22266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267 fi
22268 echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5
22269 echo "${ECHO_T}$ac_cv_type_longlong" >&6
22270
22271 echo "$as_me:$LINENO: checking size of longlong" >&5
22272 echo $ECHO_N "checking size of longlong... $ECHO_C" >&6
22273 if test "${ac_cv_sizeof_longlong+set}" = set; then
22274   echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276   if test "$ac_cv_type_longlong" = yes; then
22277   # The cast to unsigned long works around a bug in the HP C Compiler
22278   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22279   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22280   # This bug is HP SR number 8606223364.
22281   if test "$cross_compiling" = yes; then
22282   # Depending upon the size, compute the lo and hi bounds.
22283 cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h.  */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h.  */
22289 $ac_includes_default
22290 int
22291 main ()
22292 {
22293 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) >= 0)];
22294 test_array [0] = 0
22295
22296   ;
22297   return 0;
22298 }
22299 _ACEOF
22300 rm -f conftest.$ac_objext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22302   (eval $ac_compile) 2>conftest.er1
22303   ac_status=$?
22304   grep -v '^ *+' conftest.er1 >conftest.err
22305   rm -f conftest.er1
22306   cat conftest.err >&5
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); } &&
22309          { ac_try='test -z "$ac_c_werror_flag"
22310                          || test ! -s conftest.err'
22311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312   (eval $ac_try) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); }; } &&
22316          { ac_try='test -s conftest.$ac_objext'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; }; then
22322   ac_lo=0 ac_mid=0
22323   while :; do
22324     cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h.  */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h.  */
22330 $ac_includes_default
22331 int
22332 main ()
22333 {
22334 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) <= $ac_mid)];
22335 test_array [0] = 0
22336
22337   ;
22338   return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest.$ac_objext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343   (eval $ac_compile) 2>conftest.er1
22344   ac_status=$?
22345   grep -v '^ *+' conftest.er1 >conftest.err
22346   rm -f conftest.er1
22347   cat conftest.err >&5
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } &&
22350          { ac_try='test -z "$ac_c_werror_flag"
22351                          || test ! -s conftest.err'
22352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353   (eval $ac_try) 2>&5
22354   ac_status=$?
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); }; } &&
22357          { ac_try='test -s conftest.$ac_objext'
22358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359   (eval $ac_try) 2>&5
22360   ac_status=$?
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); }; }; then
22363   ac_hi=$ac_mid; break
22364 else
22365   echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22367
22368 ac_lo=`expr $ac_mid + 1`
22369                     if test $ac_lo -le $ac_mid; then
22370                       ac_lo= ac_hi=
22371                       break
22372                     fi
22373                     ac_mid=`expr 2 '*' $ac_mid + 1`
22374 fi
22375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22376   done
22377 else
22378   echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22380
22381 cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h.  */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h.  */
22387 $ac_includes_default
22388 int
22389 main ()
22390 {
22391 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) < 0)];
22392 test_array [0] = 0
22393
22394   ;
22395   return 0;
22396 }
22397 _ACEOF
22398 rm -f conftest.$ac_objext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22400   (eval $ac_compile) 2>conftest.er1
22401   ac_status=$?
22402   grep -v '^ *+' conftest.er1 >conftest.err
22403   rm -f conftest.er1
22404   cat conftest.err >&5
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } &&
22407          { ac_try='test -z "$ac_c_werror_flag"
22408                          || test ! -s conftest.err'
22409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410   (eval $ac_try) 2>&5
22411   ac_status=$?
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); }; } &&
22414          { ac_try='test -s conftest.$ac_objext'
22415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22416   (eval $ac_try) 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }; }; then
22420   ac_hi=-1 ac_mid=-1
22421   while :; do
22422     cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h.  */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h.  */
22428 $ac_includes_default
22429 int
22430 main ()
22431 {
22432 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) >= $ac_mid)];
22433 test_array [0] = 0
22434
22435   ;
22436   return 0;
22437 }
22438 _ACEOF
22439 rm -f conftest.$ac_objext
22440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22441   (eval $ac_compile) 2>conftest.er1
22442   ac_status=$?
22443   grep -v '^ *+' conftest.er1 >conftest.err
22444   rm -f conftest.er1
22445   cat conftest.err >&5
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } &&
22448          { ac_try='test -z "$ac_c_werror_flag"
22449                          || test ! -s conftest.err'
22450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451   (eval $ac_try) 2>&5
22452   ac_status=$?
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); }; } &&
22455          { ac_try='test -s conftest.$ac_objext'
22456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457   (eval $ac_try) 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); }; }; then
22461   ac_lo=$ac_mid; break
22462 else
22463   echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22465
22466 ac_hi=`expr '(' $ac_mid ')' - 1`
22467                        if test $ac_mid -le $ac_hi; then
22468                          ac_lo= ac_hi=
22469                          break
22470                        fi
22471                        ac_mid=`expr 2 '*' $ac_mid`
22472 fi
22473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22474   done
22475 else
22476   echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478
22479 ac_lo= ac_hi=
22480 fi
22481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22482 fi
22483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22484 # Binary search between lo and hi bounds.
22485 while test "x$ac_lo" != "x$ac_hi"; do
22486   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22487   cat >conftest.$ac_ext <<_ACEOF
22488 /* confdefs.h.  */
22489 _ACEOF
22490 cat confdefs.h >>conftest.$ac_ext
22491 cat >>conftest.$ac_ext <<_ACEOF
22492 /* end confdefs.h.  */
22493 $ac_includes_default
22494 int
22495 main ()
22496 {
22497 static int test_array [1 - 2 * !(((long) (sizeof (longlong))) <= $ac_mid)];
22498 test_array [0] = 0
22499
22500   ;
22501   return 0;
22502 }
22503 _ACEOF
22504 rm -f conftest.$ac_objext
22505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506   (eval $ac_compile) 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } &&
22513          { ac_try='test -z "$ac_c_werror_flag"
22514                          || test ! -s conftest.err'
22515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516   (eval $ac_try) 2>&5
22517   ac_status=$?
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); }; } &&
22520          { ac_try='test -s conftest.$ac_objext'
22521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522   (eval $ac_try) 2>&5
22523   ac_status=$?
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); }; }; then
22526   ac_hi=$ac_mid
22527 else
22528   echo "$as_me: failed program was:" >&5
22529 sed 's/^/| /' conftest.$ac_ext >&5
22530
22531 ac_lo=`expr '(' $ac_mid ')' + 1`
22532 fi
22533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22534 done
22535 case $ac_lo in
22536 ?*) ac_cv_sizeof_longlong=$ac_lo;;
22537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (longlong), 77
22538 See \`config.log' for more details." >&5
22539 echo "$as_me: error: cannot compute sizeof (longlong), 77
22540 See \`config.log' for more details." >&2;}
22541    { (exit 1); exit 1; }; } ;;
22542 esac
22543 else
22544   if test "$cross_compiling" = yes; then
22545   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22546 See \`config.log' for more details." >&5
22547 echo "$as_me: error: cannot run test program while cross compiling
22548 See \`config.log' for more details." >&2;}
22549    { (exit 1); exit 1; }; }
22550 else
22551   cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h.  */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h.  */
22557 $ac_includes_default
22558 long longval () { return (long) (sizeof (longlong)); }
22559 unsigned long ulongval () { return (long) (sizeof (longlong)); }
22560 #include <stdio.h>
22561 #include <stdlib.h>
22562 int
22563 main ()
22564 {
22565
22566   FILE *f = fopen ("conftest.val", "w");
22567   if (! f)
22568     exit (1);
22569   if (((long) (sizeof (longlong))) < 0)
22570     {
22571       long i = longval ();
22572       if (i != ((long) (sizeof (longlong))))
22573         exit (1);
22574       fprintf (f, "%ld\n", i);
22575     }
22576   else
22577     {
22578       unsigned long i = ulongval ();
22579       if (i != ((long) (sizeof (longlong))))
22580         exit (1);
22581       fprintf (f, "%lu\n", i);
22582     }
22583   exit (ferror (f) || fclose (f) != 0);
22584
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest$ac_exeext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591   (eval $ac_link) 2>&5
22592   ac_status=$?
22593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596   (eval $ac_try) 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }; }; then
22600   ac_cv_sizeof_longlong=`cat conftest.val`
22601 else
22602   echo "$as_me: program exited with status $ac_status" >&5
22603 echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22605
22606 ( exit $ac_status )
22607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (longlong), 77
22608 See \`config.log' for more details." >&5
22609 echo "$as_me: error: cannot compute sizeof (longlong), 77
22610 See \`config.log' for more details." >&2;}
22611    { (exit 1); exit 1; }; }
22612 fi
22613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22614 fi
22615 fi
22616 rm -f conftest.val
22617 else
22618   ac_cv_sizeof_longlong=0
22619 fi
22620 fi
22621 echo "$as_me:$LINENO: result: $ac_cv_sizeof_longlong" >&5
22622 echo "${ECHO_T}$ac_cv_sizeof_longlong" >&6
22623 cat >>confdefs.h <<_ACEOF
22624 #define SIZEOF_LONGLONG $ac_cv_sizeof_longlong
22625 _ACEOF
22626
22627
22628
22629 # Now we need to find what jk_uint32_t (sizeof == 4) will be.
22630 # The first match is our preference.
22631 if test "$ac_cv_sizeof_int" = "4"; then
22632     int32_t_fmt='#define JK_INT32_T_FMT "d"'
22633     uint32_t_fmt='#define JK_UINT32_T_FMT "u"'
22634     uint32_t_hex_fmt='#define JK_UINT32_T_HEX_FMT "x"'
22635     int32_value="int"
22636 elif test "$ac_cv_sizeof_long" = "4"; then
22637     int32_t_fmt='#define JK_INT32_T_FMT "ld"'
22638     uint32_t_fmt='#define JK_UINT32_T_FMT "lu"'
22639     uint32_t_hex_fmt='#define JK_UINT32_T_HEX_FMT "lx"'
22640     int32_value="long"
22641 else
22642     int32_t_fmt='#error could not detect a 32-bit integer type'
22643     uint32_t_fmt='#error could not detect a 32-bit integer type'
22644     uint32_t_hex_fmt='#error could not detect a 32-bit integer type'
22645     { { echo "$as_me:$LINENO: error: could not detect a 32-bit integer type" >&5
22646 echo "$as_me: error: could not detect a 32-bit integer type" >&2;}
22647    { (exit 1); exit 1; }; }
22648 fi
22649
22650 # Now we need to find what jk_uint64_t (sizeof == 8) will be.
22651 # The first match is our preference.
22652 if test "$ac_cv_sizeof_int" = "8"; then
22653     int64_t_fmt='#define JK_INT64_T_FMT "d"'
22654     uint64_t_fmt='#define JK_UINT64_T_FMT "u"'
22655     uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "x"'
22656     int64_value="int"
22657 elif test "$ac_cv_sizeof_long" = "8"; then
22658     int64_t_fmt='#define JK_INT64_T_FMT "ld"'
22659     uint64_t_fmt='#define JK_UINT64_T_FMT "lu"'
22660     uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "lx"'
22661     int64_value="long"
22662 elif test "$ac_cv_sizeof_long_long" = "8"; then
22663     # Linux, Solaris, FreeBSD all support ll with printf.
22664     # BSD 4.4 originated 'q'.  Solaris is more popular and
22665     # doesn't support 'q'.  Solaris wins.  Exceptions can
22666     # go to the OS-dependent section.
22667     int64_t_fmt='#define JK_INT64_T_FMT "lld"'
22668     uint64_t_fmt='#define JK_UINT64_T_FMT "llu"'
22669     uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "llx"'
22670     int64_value="long long"
22671 elif test "$ac_cv_sizeof_long_double" = "8"; then
22672     int64_t_fmt='#define JK_INT64_T_FMT "Ld"'
22673     uint64_t_fmt='#define JK_UINT64_T_FMT "Lu"'
22674     uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "Lx"'
22675     int64_value="long double"
22676 elif test "$ac_cv_sizeof_longlong" = "8"; then
22677     int64_t_fmt='#define JK_INT64_T_FMT "qd"'
22678     uint64_t_fmt='#define JK_UINT64_T_FMT "qu"'
22679     uint64_t_hex_fmt='#define JK_UINT64_T_HEX_FMT "qx"'
22680     int64_value="__int64"
22681 else
22682     int64_t_fmt='#error could not detect a 64-bit integer type'
22683     uint64_t_fmt='#error could not detect a 64-bit integer type'
22684     uint64_t_hex_fmt='#error could not detect a 64-bit integer type'
22685     { { echo "$as_me:$LINENO: error: could not detect a 64-bit integer type" >&5
22686 echo "$as_me: error: could not detect a 64-bit integer type" >&2;}
22687    { (exit 1); exit 1; }; }
22688 fi
22689
22690 echo "$as_me:$LINENO: checking size of pid_t" >&5
22691 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6
22692 if test "${ac_cv_sizeof_pid_t+set}" = set; then
22693   echo $ECHO_N "(cached) $ECHO_C" >&6
22694 else
22695   if test "$cross_compiling" = yes; then
22696   ac_cv_sizeof_pid_t=8
22697 else
22698   cat >conftest.$ac_ext <<_ACEOF
22699 /* confdefs.h.  */
22700 _ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h.  */
22704 #include <stdio.h>
22705 #include <sys/types.h>
22706 main()
22707 {
22708   FILE *f=fopen("conftestval","w");
22709   if (!f) exit(1);
22710   fprintf(f, "%d\n", sizeof(pid_t));
22711   exit(0);
22712 }
22713 _ACEOF
22714 rm -f conftest$ac_exeext
22715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22716   (eval $ac_link) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721   (eval $ac_try) 2>&5
22722   ac_status=$?
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); }; }; then
22725   ac_cv_sizeof_pid_t=`cat conftestval`
22726 else
22727   echo "$as_me: program exited with status $ac_status" >&5
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22730
22731 ( exit $ac_status )
22732 ac_cv_sizeof_pid_t=0
22733 fi
22734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22735 fi
22736 fi
22737 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
22738 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6
22739
22740 cat >>confdefs.h <<_ACEOF
22741 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
22742 _ACEOF
22743
22744
22745
22746 if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
22747     pid_t_fmt='#define JK_PID_T_FMT "hd"'
22748 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
22749     pid_t_fmt='#define JK_PID_T_FMT "d"'
22750 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
22751     pid_t_fmt='#define JK_PID_T_FMT "ld"'
22752 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
22753     pid_t_fmt='#define JK_PID_T_FMT JK_INT64_T_FMT'
22754 else
22755     pid_t_fmt='#error Can not determine the proper size for pid_t'
22756 fi
22757
22758 echo "$as_me:$LINENO: checking size of pthread_t" >&5
22759 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6
22760 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
22761   echo $ECHO_N "(cached) $ECHO_C" >&6
22762 else
22763   if test "$cross_compiling" = yes; then
22764   ac_cv_sizeof_pthread_t=8
22765 else
22766   cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h.  */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h.  */
22772 #include <stdio.h>
22773 #include <pthread.h>
22774 main()
22775 {
22776   FILE *f=fopen("conftestval","w");
22777   if (!f) exit(1);
22778   fprintf(f, "%d\n", sizeof(pthread_t));
22779   exit(0);
22780 }
22781 _ACEOF
22782 rm -f conftest$ac_exeext
22783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22784   (eval $ac_link) 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789   (eval $ac_try) 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); }; }; then
22793   ac_cv_sizeof_pthread_t=`cat conftestval`
22794 else
22795   echo "$as_me: program exited with status $ac_status" >&5
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ( exit $ac_status )
22800 ac_cv_sizeof_pthread_t=0
22801 fi
22802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22803 fi
22804 fi
22805 echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
22806 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6
22807
22808 cat >>confdefs.h <<_ACEOF
22809 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
22810 _ACEOF
22811
22812
22813
22814 if test "$ac_cv_sizeof_pthread_t" = "$ac_cv_sizeof_short"; then
22815     pthread_t_fmt='#define JK_PTHREAD_T_FMT "hu"'
22816     pthread_t_value="short"
22817 elif test "$ac_cv_sizeof_pthread_t" = "$ac_cv_sizeof_int"; then
22818     pthread_t_fmt='#define JK_PTHREAD_T_FMT "u"'
22819     pthread_t_value="int"
22820 elif test "$ac_cv_sizeof_pthread_t" = "$ac_cv_sizeof_long"; then
22821     pthread_t_fmt='#define JK_PTHREAD_T_FMT "lu"'
22822     pthread_t_value="long"
22823 elif test "$ac_cv_sizeof_pthread_t" = "$ac_cv_sizeof_long_long"; then
22824     pthread_t_fmt='#define JK_PTHREAD_T_FMT "llu"'
22825     pthread_t_value="long long"
22826 else
22827     pthread_t_fmt='#error Can not determine the proper size for pthread_t'
22828 fi
22829
22830 # Basically, we have tried to figure out the correct format strings
22831 # for pid_t which varies between platforms, but we don't always get
22832 # it right.  If you find that we don't get it right for your platform,
22833 # you can override our decision below.
22834 case $host in
22835    *-solaris*)
22836        if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
22837            pid_t_fmt='#define JK_PID_T_FMT "ld"'
22838        fi
22839        ;;
22840 esac
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854 echo "$as_me:$LINENO: checking for snprintf" >&5
22855 echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
22856 if test "${ac_cv_func_snprintf+set}" = set; then
22857   echo $ECHO_N "(cached) $ECHO_C" >&6
22858 else
22859   cat >conftest.$ac_ext <<_ACEOF
22860 /* confdefs.h.  */
22861 _ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h.  */
22865 /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
22866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22867 #define snprintf innocuous_snprintf
22868
22869 /* System header to define __stub macros and hopefully few prototypes,
22870     which can conflict with char snprintf (); below.
22871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22872     <limits.h> exists even on freestanding compilers.  */
22873
22874 #ifdef __STDC__
22875 # include <limits.h>
22876 #else
22877 # include <assert.h>
22878 #endif
22879
22880 #undef snprintf
22881
22882 /* Override any gcc2 internal prototype to avoid an error.  */
22883 #ifdef __cplusplus
22884 extern "C"
22885 {
22886 #endif
22887 /* We use char because int might match the return type of a gcc2
22888    builtin and then its argument prototype would still apply.  */
22889 char snprintf ();
22890 /* The GNU C library defines this for functions which it implements
22891     to always fail with ENOSYS.  Some functions are actually named
22892     something starting with __ and the normal name is an alias.  */
22893 #if defined (__stub_snprintf) || defined (__stub___snprintf)
22894 choke me
22895 #else
22896 char (*f) () = snprintf;
22897 #endif
22898 #ifdef __cplusplus
22899 }
22900 #endif
22901
22902 int
22903 main ()
22904 {
22905 return f != snprintf;
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22912   (eval $ac_link) 2>conftest.er1
22913   ac_status=$?
22914   grep -v '^ *+' conftest.er1 >conftest.err
22915   rm -f conftest.er1
22916   cat conftest.err >&5
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); } &&
22919          { ac_try='test -z "$ac_c_werror_flag"
22920                          || test ! -s conftest.err'
22921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922   (eval $ac_try) 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; } &&
22926          { ac_try='test -s conftest$ac_exeext'
22927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928   (eval $ac_try) 2>&5
22929   ac_status=$?
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); }; }; then
22932   ac_cv_func_snprintf=yes
22933 else
22934   echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22936
22937 ac_cv_func_snprintf=no
22938 fi
22939 rm -f conftest.err conftest.$ac_objext \
22940       conftest$ac_exeext conftest.$ac_ext
22941 fi
22942 echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
22943 echo "${ECHO_T}$ac_cv_func_snprintf" >&6
22944 if test $ac_cv_func_snprintf = yes; then
22945
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_SNPRINTF 1
22948 _ACEOF
22949
22950 fi
22951
22952 echo "$as_me:$LINENO: checking for vsnprintf" >&5
22953 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
22954 if test "${ac_cv_func_vsnprintf+set}" = set; then
22955   echo $ECHO_N "(cached) $ECHO_C" >&6
22956 else
22957   cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
22964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22965 #define vsnprintf innocuous_vsnprintf
22966
22967 /* System header to define __stub macros and hopefully few prototypes,
22968     which can conflict with char vsnprintf (); below.
22969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22970     <limits.h> exists even on freestanding compilers.  */
22971
22972 #ifdef __STDC__
22973 # include <limits.h>
22974 #else
22975 # include <assert.h>
22976 #endif
22977
22978 #undef vsnprintf
22979
22980 /* Override any gcc2 internal prototype to avoid an error.  */
22981 #ifdef __cplusplus
22982 extern "C"
22983 {
22984 #endif
22985 /* We use char because int might match the return type of a gcc2
22986    builtin and then its argument prototype would still apply.  */
22987 char vsnprintf ();
22988 /* The GNU C library defines this for functions which it implements
22989     to always fail with ENOSYS.  Some functions are actually named
22990     something starting with __ and the normal name is an alias.  */
22991 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
22992 choke me
22993 #else
22994 char (*f) () = vsnprintf;
22995 #endif
22996 #ifdef __cplusplus
22997 }
22998 #endif
22999
23000 int
23001 main ()
23002 {
23003 return f != vsnprintf;
23004   ;
23005   return 0;
23006 }
23007 _ACEOF
23008 rm -f conftest.$ac_objext conftest$ac_exeext
23009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23010   (eval $ac_link) 2>conftest.er1
23011   ac_status=$?
23012   grep -v '^ *+' conftest.er1 >conftest.err
23013   rm -f conftest.er1
23014   cat conftest.err >&5
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); } &&
23017          { ac_try='test -z "$ac_c_werror_flag"
23018                          || test ! -s conftest.err'
23019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020   (eval $ac_try) 2>&5
23021   ac_status=$?
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); }; } &&
23024          { ac_try='test -s conftest$ac_exeext'
23025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026   (eval $ac_try) 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); }; }; then
23030   ac_cv_func_vsnprintf=yes
23031 else
23032   echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035 ac_cv_func_vsnprintf=no
23036 fi
23037 rm -f conftest.err conftest.$ac_objext \
23038       conftest$ac_exeext conftest.$ac_ext
23039 fi
23040 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
23041 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
23042 if test $ac_cv_func_vsnprintf = yes; then
23043
23044 cat >>confdefs.h <<\_ACEOF
23045 #define HAVE_VSNPRINTF 1
23046 _ACEOF
23047
23048 fi
23049
23050 echo "$as_me:$LINENO: checking for flock" >&5
23051 echo $ECHO_N "checking for flock... $ECHO_C" >&6
23052 if test "${ac_cv_func_flock+set}" = set; then
23053   echo $ECHO_N "(cached) $ECHO_C" >&6
23054 else
23055   cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h.  */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h.  */
23061 /* Define flock to an innocuous variant, in case <limits.h> declares flock.
23062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23063 #define flock innocuous_flock
23064
23065 /* System header to define __stub macros and hopefully few prototypes,
23066     which can conflict with char flock (); below.
23067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23068     <limits.h> exists even on freestanding compilers.  */
23069
23070 #ifdef __STDC__
23071 # include <limits.h>
23072 #else
23073 # include <assert.h>
23074 #endif
23075
23076 #undef flock
23077
23078 /* Override any gcc2 internal prototype to avoid an error.  */
23079 #ifdef __cplusplus
23080 extern "C"
23081 {
23082 #endif
23083 /* We use char because int might match the return type of a gcc2
23084    builtin and then its argument prototype would still apply.  */
23085 char flock ();
23086 /* The GNU C library defines this for functions which it implements
23087     to always fail with ENOSYS.  Some functions are actually named
23088     something starting with __ and the normal name is an alias.  */
23089 #if defined (__stub_flock) || defined (__stub___flock)
23090 choke me
23091 #else
23092 char (*f) () = flock;
23093 #endif
23094 #ifdef __cplusplus
23095 }
23096 #endif
23097
23098 int
23099 main ()
23100 {
23101 return f != flock;
23102   ;
23103   return 0;
23104 }
23105 _ACEOF
23106 rm -f conftest.$ac_objext conftest$ac_exeext
23107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23108   (eval $ac_link) 2>conftest.er1
23109   ac_status=$?
23110   grep -v '^ *+' conftest.er1 >conftest.err
23111   rm -f conftest.er1
23112   cat conftest.err >&5
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); } &&
23115          { ac_try='test -z "$ac_c_werror_flag"
23116                          || test ! -s conftest.err'
23117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118   (eval $ac_try) 2>&5
23119   ac_status=$?
23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121   (exit $ac_status); }; } &&
23122          { ac_try='test -s conftest$ac_exeext'
23123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124   (eval $ac_try) 2>&5
23125   ac_status=$?
23126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127   (exit $ac_status); }; }; then
23128   ac_cv_func_flock=yes
23129 else
23130   echo "$as_me: failed program was:" >&5
23131 sed 's/^/| /' conftest.$ac_ext >&5
23132
23133 ac_cv_func_flock=no
23134 fi
23135 rm -f conftest.err conftest.$ac_objext \
23136       conftest$ac_exeext conftest.$ac_ext
23137 fi
23138 echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
23139 echo "${ECHO_T}$ac_cv_func_flock" >&6
23140 if test $ac_cv_func_flock = yes; then
23141
23142 cat >>confdefs.h <<\_ACEOF
23143 #define HAVE_FLOCK 1
23144 _ACEOF
23145
23146 fi
23147
23148
23149 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
23150 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
23151 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
23152   echo $ECHO_N "(cached) $ECHO_C" >&6
23153 else
23154   ac_check_lib_save_LIBS=$LIBS
23155 LIBS="-lsocket  $LIBS"
23156 cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h.  */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h.  */
23162
23163 /* Override any gcc2 internal prototype to avoid an error.  */
23164 #ifdef __cplusplus
23165 extern "C"
23166 #endif
23167 /* We use char because int might match the return type of a gcc2
23168    builtin and then its argument prototype would still apply.  */
23169 char setsockopt ();
23170 int
23171 main ()
23172 {
23173 setsockopt ();
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext conftest$ac_exeext
23179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23180   (eval $ac_link) 2>conftest.er1
23181   ac_status=$?
23182   grep -v '^ *+' conftest.er1 >conftest.err
23183   rm -f conftest.er1
23184   cat conftest.err >&5
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); } &&
23187          { ac_try='test -z "$ac_c_werror_flag"
23188                          || test ! -s conftest.err'
23189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190   (eval $ac_try) 2>&5
23191   ac_status=$?
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); }; } &&
23194          { ac_try='test -s conftest$ac_exeext'
23195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196   (eval $ac_try) 2>&5
23197   ac_status=$?
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); }; }; then
23200   ac_cv_lib_socket_setsockopt=yes
23201 else
23202   echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205 ac_cv_lib_socket_setsockopt=no
23206 fi
23207 rm -f conftest.err conftest.$ac_objext \
23208       conftest$ac_exeext conftest.$ac_ext
23209 LIBS=$ac_check_lib_save_LIBS
23210 fi
23211 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
23212 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
23213 if test $ac_cv_lib_socket_setsockopt = yes; then
23214   LIBS="$LIBS -lsocket"
23215 fi
23216
23217
23218
23219 for ac_header in sys/filio.h
23220 do
23221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23223   echo "$as_me:$LINENO: checking for $ac_header" >&5
23224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23226   echo $ECHO_N "(cached) $ECHO_C" >&6
23227 fi
23228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23230 else
23231   # Is the header compilable?
23232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240 $ac_includes_default
23241 #include <$ac_header>
23242 _ACEOF
23243 rm -f conftest.$ac_objext
23244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23245   (eval $ac_compile) 2>conftest.er1
23246   ac_status=$?
23247   grep -v '^ *+' conftest.er1 >conftest.err
23248   rm -f conftest.er1
23249   cat conftest.err >&5
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); } &&
23252          { ac_try='test -z "$ac_c_werror_flag"
23253                          || test ! -s conftest.err'
23254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255   (eval $ac_try) 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); }; } &&
23259          { ac_try='test -s conftest.$ac_objext'
23260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261   (eval $ac_try) 2>&5
23262   ac_status=$?
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); }; }; then
23265   ac_header_compiler=yes
23266 else
23267   echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23269
23270 ac_header_compiler=no
23271 fi
23272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23274 echo "${ECHO_T}$ac_header_compiler" >&6
23275
23276 # Is the header present?
23277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23279 cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h.  */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h.  */
23285 #include <$ac_header>
23286 _ACEOF
23287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23289   ac_status=$?
23290   grep -v '^ *+' conftest.er1 >conftest.err
23291   rm -f conftest.er1
23292   cat conftest.err >&5
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); } >/dev/null; then
23295   if test -s conftest.err; then
23296     ac_cpp_err=$ac_c_preproc_warn_flag
23297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23298   else
23299     ac_cpp_err=
23300   fi
23301 else
23302   ac_cpp_err=yes
23303 fi
23304 if test -z "$ac_cpp_err"; then
23305   ac_header_preproc=yes
23306 else
23307   echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310   ac_header_preproc=no
23311 fi
23312 rm -f conftest.err conftest.$ac_ext
23313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23314 echo "${ECHO_T}$ac_header_preproc" >&6
23315
23316 # So?  What about this header?
23317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23318   yes:no: )
23319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23323     ac_header_preproc=yes
23324     ;;
23325   no:yes:* )
23326     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23328     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23329 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23330     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23332     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23333 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23336     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23338     (
23339       cat <<\_ASBOX
23340 ## ------------------------------------------ ##
23341 ## Report this to the AC_PACKAGE_NAME lists.  ##
23342 ## ------------------------------------------ ##
23343 _ASBOX
23344     ) |
23345       sed "s/^/$as_me: WARNING:     /" >&2
23346     ;;
23347 esac
23348 echo "$as_me:$LINENO: checking for $ac_header" >&5
23349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23351   echo $ECHO_N "(cached) $ECHO_C" >&6
23352 else
23353   eval "$as_ac_Header=\$ac_header_preproc"
23354 fi
23355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23357
23358 fi
23359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23360   cat >>confdefs.h <<_ACEOF
23361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23362 _ACEOF
23363
23364 fi
23365
23366 done
23367
23368
23369
23370
23371 echo "$as_me:$LINENO: checking whether to use SO_RCVTIMEO with setsockopt()" >&5
23372 echo $ECHO_N "checking whether to use SO_RCVTIMEO with setsockopt()... $ECHO_C" >&6
23373 if test "$cross_compiling" = yes; then
23374   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23375 See \`config.log' for more details." >&5
23376 echo "$as_me: error: cannot run test program while cross compiling
23377 See \`config.log' for more details." >&2;}
23378    { (exit 1); exit 1; }; }
23379 else
23380   cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386
23387 #include <sys/types.h>
23388 #include <sys/socket.h>
23389 #include <sys/time.h>
23390
23391 int main(void)
23392 {
23393     int s;
23394     struct timeval tv;
23395     tv.tv_sec  = 3;
23396     tv.tv_usec = 0;
23397
23398 #ifndef SO_RCVTIMEO
23399     exit(3);
23400 #else
23401     if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
23402         exit(2);
23403
23404     /* fails on Solaris 2.6,8,9,10 and some Linuxes because
23405        SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
23406     if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const void *)&tv, sizeof(tv)) == -1)
23407         exit(1);
23408
23409     exit(0);
23410 #endif
23411 }
23412
23413
23414 _ACEOF
23415 rm -f conftest$ac_exeext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23417   (eval $ac_link) 2>&5
23418   ac_status=$?
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422   (eval $ac_try) 2>&5
23423   ac_status=$?
23424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425   (exit $ac_status); }; }; then
23426    echo "$as_me:$LINENO: result: yes" >&5
23427 echo "${ECHO_T}yes" >&6
23428 cat >>confdefs.h <<\_ACEOF
23429 #define USE_SO_RCVTIMEO 1
23430 _ACEOF
23431
23432
23433 else
23434   echo "$as_me: program exited with status $ac_status" >&5
23435 echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23437
23438 ( exit $ac_status )
23439  echo "$as_me:$LINENO: result: no" >&5
23440 echo "${ECHO_T}no" >&6
23441
23442 fi
23443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23444 fi
23445
23446
23447 echo "$as_me:$LINENO: checking whether to use SO_SNDTIMEO with setsockopt()" >&5
23448 echo $ECHO_N "checking whether to use SO_SNDTIMEO with setsockopt()... $ECHO_C" >&6
23449 if test "$cross_compiling" = yes; then
23450   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23451 See \`config.log' for more details." >&5
23452 echo "$as_me: error: cannot run test program while cross compiling
23453 See \`config.log' for more details." >&2;}
23454    { (exit 1); exit 1; }; }
23455 else
23456   cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h.  */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h.  */
23462
23463 #include <sys/types.h>
23464 #include <sys/socket.h>
23465 #include <sys/time.h>
23466
23467 int main(void)
23468 {
23469     int s;
23470     struct timeval tv;
23471     tv.tv_sec  = 3;
23472     tv.tv_usec = 0;
23473
23474 #ifndef SO_SNDTIMEO
23475     exit(3);
23476 #else
23477     if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1)
23478         exit(2);
23479
23480     /* fails on Solaris 2.6,8,9,10 and some Linuxes because
23481        SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
23482     if (setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (const void *)&tv, sizeof(tv)) == -1)
23483         exit(1);
23484
23485     exit(0);
23486 #endif
23487 }
23488
23489
23490 _ACEOF
23491 rm -f conftest$ac_exeext
23492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23493   (eval $ac_link) 2>&5
23494   ac_status=$?
23495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498   (eval $ac_try) 2>&5
23499   ac_status=$?
23500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501   (exit $ac_status); }; }; then
23502    echo "$as_me:$LINENO: result: yes" >&5
23503 echo "${ECHO_T}yes" >&6
23504 cat >>confdefs.h <<\_ACEOF
23505 #define USE_SO_SNDTIMEO 1
23506 _ACEOF
23507
23508
23509 else
23510   echo "$as_me: program exited with status $ac_status" >&5
23511 echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23513
23514 ( exit $ac_status )
23515  echo "$as_me:$LINENO: result: no" >&5
23516 echo "${ECHO_T}no" >&6
23517
23518 fi
23519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23520 fi
23521
23522
23523
23524
23525 echo "$as_me:$LINENO: checking whether to use SOCK_CLOEXEC with socket()" >&5
23526 echo $ECHO_N "checking whether to use SOCK_CLOEXEC with socket()... $ECHO_C" >&6
23527 if test "$cross_compiling" = yes; then
23528   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23529 See \`config.log' for more details." >&5
23530 echo "$as_me: error: cannot run test program while cross compiling
23531 See \`config.log' for more details." >&2;}
23532    { (exit 1); exit 1; }; }
23533 else
23534   cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540
23541 #include <sys/types.h>
23542 #include <sys/socket.h>
23543 #include <sys/time.h>
23544
23545 int main(void)
23546 {
23547     int s;
23548
23549 #ifndef SOCK_CLOEXEC
23550     exit(3);
23551 #else
23552     if ((s = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)) == -1)
23553         exit(2);
23554
23555     exit(0);
23556 #endif
23557 }
23558
23559
23560 _ACEOF
23561 rm -f conftest$ac_exeext
23562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23563   (eval $ac_link) 2>&5
23564   ac_status=$?
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568   (eval $ac_try) 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; }; then
23572    echo "$as_me:$LINENO: result: yes" >&5
23573 echo "${ECHO_T}yes" >&6
23574 cat >>confdefs.h <<\_ACEOF
23575 #define USE_SOCK_CLOEXEC 1
23576 _ACEOF
23577
23578
23579 else
23580   echo "$as_me: program exited with status $ac_status" >&5
23581 echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23583
23584 ( exit $ac_status )
23585  echo "$as_me:$LINENO: result: no" >&5
23586 echo "${ECHO_T}no" >&6
23587
23588 fi
23589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23590 fi
23591
23592
23593
23594 for ac_header in poll.h
23595 do
23596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23598   echo "$as_me:$LINENO: checking for $ac_header" >&5
23599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 fi
23603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23605 else
23606   # Is the header compilable?
23607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23609 cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h.  */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h.  */
23615 $ac_includes_default
23616 #include <$ac_header>
23617 _ACEOF
23618 rm -f conftest.$ac_objext
23619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23620   (eval $ac_compile) 2>conftest.er1
23621   ac_status=$?
23622   grep -v '^ *+' conftest.er1 >conftest.err
23623   rm -f conftest.er1
23624   cat conftest.err >&5
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); } &&
23627          { ac_try='test -z "$ac_c_werror_flag"
23628                          || test ! -s conftest.err'
23629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630   (eval $ac_try) 2>&5
23631   ac_status=$?
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); }; } &&
23634          { ac_try='test -s conftest.$ac_objext'
23635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636   (eval $ac_try) 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); }; }; then
23640   ac_header_compiler=yes
23641 else
23642   echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23644
23645 ac_header_compiler=no
23646 fi
23647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23649 echo "${ECHO_T}$ac_header_compiler" >&6
23650
23651 # Is the header present?
23652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23654 cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h.  */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h.  */
23660 #include <$ac_header>
23661 _ACEOF
23662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } >/dev/null; then
23670   if test -s conftest.err; then
23671     ac_cpp_err=$ac_c_preproc_warn_flag
23672     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23673   else
23674     ac_cpp_err=
23675   fi
23676 else
23677   ac_cpp_err=yes
23678 fi
23679 if test -z "$ac_cpp_err"; then
23680   ac_header_preproc=yes
23681 else
23682   echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685   ac_header_preproc=no
23686 fi
23687 rm -f conftest.err conftest.$ac_ext
23688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23689 echo "${ECHO_T}$ac_header_preproc" >&6
23690
23691 # So?  What about this header?
23692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23693   yes:no: )
23694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23698     ac_header_preproc=yes
23699     ;;
23700   no:yes:* )
23701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23713     (
23714       cat <<\_ASBOX
23715 ## ------------------------------------------ ##
23716 ## Report this to the AC_PACKAGE_NAME lists.  ##
23717 ## ------------------------------------------ ##
23718 _ASBOX
23719     ) |
23720       sed "s/^/$as_me: WARNING:     /" >&2
23721     ;;
23722 esac
23723 echo "$as_me:$LINENO: checking for $ac_header" >&5
23724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23726   echo $ECHO_N "(cached) $ECHO_C" >&6
23727 else
23728   eval "$as_ac_Header=\$ac_header_preproc"
23729 fi
23730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23732
23733 fi
23734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23735   cat >>confdefs.h <<_ACEOF
23736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23737 _ACEOF
23738
23739 fi
23740
23741 done
23742
23743 echo "$as_me:$LINENO: checking for poll" >&5
23744 echo $ECHO_N "checking for poll... $ECHO_C" >&6
23745 if test "${ac_cv_func_poll+set}" = set; then
23746   echo $ECHO_N "(cached) $ECHO_C" >&6
23747 else
23748   cat >conftest.$ac_ext <<_ACEOF
23749 /* confdefs.h.  */
23750 _ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h.  */
23754 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
23755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23756 #define poll innocuous_poll
23757
23758 /* System header to define __stub macros and hopefully few prototypes,
23759     which can conflict with char poll (); below.
23760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23761     <limits.h> exists even on freestanding compilers.  */
23762
23763 #ifdef __STDC__
23764 # include <limits.h>
23765 #else
23766 # include <assert.h>
23767 #endif
23768
23769 #undef poll
23770
23771 /* Override any gcc2 internal prototype to avoid an error.  */
23772 #ifdef __cplusplus
23773 extern "C"
23774 {
23775 #endif
23776 /* We use char because int might match the return type of a gcc2
23777    builtin and then its argument prototype would still apply.  */
23778 char poll ();
23779 /* The GNU C library defines this for functions which it implements
23780     to always fail with ENOSYS.  Some functions are actually named
23781     something starting with __ and the normal name is an alias.  */
23782 #if defined (__stub_poll) || defined (__stub___poll)
23783 choke me
23784 #else
23785 char (*f) () = poll;
23786 #endif
23787 #ifdef __cplusplus
23788 }
23789 #endif
23790
23791 int
23792 main ()
23793 {
23794 return f != poll;
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801   (eval $ac_link) 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } &&
23808          { ac_try='test -z "$ac_c_werror_flag"
23809                          || test ! -s conftest.err'
23810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); }; } &&
23815          { ac_try='test -s conftest$ac_exeext'
23816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817   (eval $ac_try) 2>&5
23818   ac_status=$?
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); }; }; then
23821   ac_cv_func_poll=yes
23822 else
23823   echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23825
23826 ac_cv_func_poll=no
23827 fi
23828 rm -f conftest.err conftest.$ac_objext \
23829       conftest$ac_exeext conftest.$ac_ext
23830 fi
23831 echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
23832 echo "${ECHO_T}$ac_cv_func_poll" >&6
23833 if test $ac_cv_func_poll = yes; then
23834
23835 cat >>confdefs.h <<\_ACEOF
23836 #define HAVE_POLL 1
23837 _ACEOF
23838
23839 fi
23840
23841
23842
23843
23844 echo "$as_me:$LINENO: checking for target platform" >&5
23845 echo $ECHO_N "checking for target platform... $ECHO_C" >&6
23846
23847 #PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`
23848 PLATFORM=$host
23849
23850 case "$PLATFORM" in
23851 *beos*)
23852   OS_APACHE="beos"
23853   OS_APACHE_DIR=$OS_APACHE
23854   ;;
23855 *pc-os2_emx*)
23856   OS_APACHE="os2"
23857   OS_APACHE_DIR=$OS_APACHE
23858   ;;
23859 bs2000*)
23860   OS_APACHE="unix"
23861   OS_APACHE_DIR=bs2000  # only the OS_APACHE_DIR is platform specific.
23862   ;;
23863 *)
23864   OS_APACHE="unix"
23865   OS_APACHE_DIR=$OS_APACHE;;
23866 esac
23867
23868 echo "$as_me:$LINENO: result: $OS_APACHE" >&5
23869 echo "${ECHO_T}$OS_APACHE" >&6
23870
23871
23872
23873 apache_dir_is_src="false"
23874
23875 # Check whether --with-apache or --without-apache was given.
23876 if test "${with_apache+set}" = set; then
23877   withval="$with_apache"
23878
23879     if ${TEST} ! -z "$WEBSERVER" ; then
23880         { { echo "$as_me:$LINENO: error: Sorry cannot use --with-apxs=${APXS} and --with-apache=${withval} together, please choose one of both" >&5
23881 echo "$as_me: error: Sorry cannot use --with-apxs=${APXS} and --with-apache=${withval} together, please choose one of both" >&2;}
23882    { (exit 1); exit 1; }; }
23883     fi
23884
23885     echo "$as_me:$LINENO: checking for Apache source directory (assume static build)" >&5
23886 echo $ECHO_N "checking for Apache source directory (assume static build)... $ECHO_C" >&6
23887
23888     if ${TEST} -n "${withval}" && ${TEST} -d "${withval}" ; then
23889         if ${TEST} -d "${withval}/src" ; then
23890            # handle the case where people use relative paths to
23891            # the apache source directory by pre-pending the current
23892            # build directory to the path. there are probably
23893            # errors with this if configure is run while in a
23894            # different directory than what you are in at the time
23895            if ${TEST} -n "`${ECHO} ${withval}|${GREP} \"^\.\.\"`" ; then
23896                withval=`pwd`/${withval}
23897            fi
23898
23899            apache_dir=${withval}
23900            apache_dir_is_src="true"
23901            echo "$as_me:$LINENO: result: ${apache_dir}" >&5
23902 echo "${ECHO_T}${apache_dir}" >&6
23903
23904            echo "$as_me:$LINENO: checking for Apache include directory" >&5
23905 echo $ECHO_N "checking for Apache include directory... $ECHO_C" >&6
23906
23907            if ${TEST} -d "${withval}/src/include" ; then
23908                # read osdir from the existing apache.
23909                osdir=`${GREP} '^OSDIR=' ${withval}/src/Makefile.config | ${SED} -e 's:^OSDIR=.*/os:os:'`
23910                if ${TEST} -z "${osdir}" ; then
23911                    osdir=os/unix
23912                fi
23913                apache_include="-I${withval}/src/include \
23914                    -I${withval}/src/${osdir}"
23915                WEBSERVER="apache-1.3"
23916                LIB_JK_TYPE=mod_jk.a
23917                CFLAGS="${CFLAGS} -DJK_PREFORK"
23918                echo "$as_me:$LINENO: result: ${apache_include}, version 1.3" >&5
23919 echo "${ECHO_T}${apache_include}, version 1.3" >&6
23920            else
23921                { { echo "$as_me:$LINENO: error: Sorry Apache 1.2.x is no longer supported." >&5
23922 echo "$as_me: error: Sorry Apache 1.2.x is no longer supported." >&2;}
23923    { (exit 1); exit 1; }; }
23924            fi
23925         else
23926            if ${TEST} -d "${withval}/include" ; then
23927               # osdir for Apache20.
23928               WEBSERVER="apache-2.0"
23929               apache_dir=${withval}
23930               apache_dir_is_src="true"
23931               LIB_JK_TYPE=lib_jk.la
23932               apache_include="-I${withval}/include -I${withval}/srclib/apr/include -I${withval}/os/${OS_APACHE_DIR} -I${withval}/srclib/apr-util/include"
23933               echo "$as_me:$LINENO: result: ${apache_dir}" >&5
23934 echo "${ECHO_T}${apache_dir}" >&6
23935            fi
23936         fi
23937     fi
23938
23939         if ${TEST} -z "$WEBSERVER" ; then
23940         { { echo "$as_me:$LINENO: error: Directory $apache_dir is not a valid Apache source distribution" >&5
23941 echo "$as_me: error: Directory $apache_dir is not a valid Apache source distribution" >&2;}
23942    { (exit 1); exit 1; }; }
23943     fi
23944
23945 # VT: Now, which one I'm supposed to use? Let's figure it out later
23946
23947     configure_apache=true
23948     configure_src=true
23949
23950     echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
23951 echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6
23952
23953 else
23954
23955     echo "$as_me:$LINENO: result: no apache given" >&5
23956 echo "${ECHO_T}no apache given" >&6
23957
23958 fi;
23959
23960
23961 APACHE_DIR=${apache_dir}
23962
23963
23964 # Check whether --enable-netscape or --disable-netscape was given.
23965 if test "${enable_netscape+set}" = set; then
23966   enableval="$enable_netscape"
23967
23968     if ${TEST} ! -z "$WEBSERVER" ; then
23969         { { echo "$as_me:$LINENO: error: Sorry cannot use --with-apxs=${APXS} or --with-apache=${withval} with --with-netscape, please choose one or the other." >&5
23970 echo "$as_me: error: Sorry cannot use --with-apxs=${APXS} or --with-apache=${withval} with --with-netscape, please choose one or the other." >&2;}
23971    { (exit 1); exit 1; }; }
23972     fi
23973
23974     WEBSERVER="netscape"
23975
23976     echo "$as_me:$LINENO: result: building connector for \"$WEBSERVER\"" >&5
23977 echo "${ECHO_T}building connector for \"$WEBSERVER\"" >&6
23978
23979 else
23980
23981     echo "$as_me:$LINENO: result: no netscape given" >&5
23982 echo "${ECHO_T}no netscape given" >&6
23983
23984 fi;
23985
23986 JK_JNI_WORKER=""
23987 # Check whether --enable-jni or --disable-jni was given.
23988 if test "${enable_jni+set}" = set; then
23989   enableval="$enable_jni"
23990
23991     echo "$as_me:$LINENO: result: jni enable (need JDK)" >&5
23992 echo "${ECHO_T}jni enable (need JDK)" >&6
23993     CFLAGS="${CFLAGS} -DHAVE_JNI"
23994     JK_JNI_WORKER="\${JK}jk_jni_worker\${OEXT}"
23995     WARN_JNI=1
23996
23997 fi;
23998
23999 CFLAGS="${CFLAGS}"
24000 # Check whether --enable-EAPI or --disable-EAPI was given.
24001 if test "${enable_EAPI+set}" = set; then
24002   enableval="$enable_EAPI"
24003
24004 case "${enableval}" in
24005     y | Y | YES | yes | TRUE | true )
24006         CFLAGS="${CFLAGS} -DEAPI"
24007         echo "$as_me:$LINENO: result: ...Enabling EAPI Support..." >&5
24008 echo "${ECHO_T}...Enabling EAPI Support..." >&6
24009         ;;
24010 esac
24011
24012 fi;
24013
24014
24015 CFLAGS="${CFLAGS}"
24016 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24017 if test "${enable_maintainer_mode+set}" = set; then
24018   enableval="$enable_maintainer_mode"
24019
24020 case "${enableval}" in
24021     y | Y | YES | yes | TRUE | true )
24022         CFLAGS="${CFLAGS} -DDEBUG -Wall"
24023         echo "$as_me:$LINENO: result: ...Enabling Maintainer mode..." >&5
24024 echo "${ECHO_T}...Enabling Maintainer mode..." >&6
24025         ;;
24026 esac
24027
24028 fi;
24029
24030
24031 CFLAGS="${CFLAGS}"
24032 # Check whether --enable-prefork or --disable-prefork was given.
24033 if test "${enable_prefork+set}" = set; then
24034   enableval="$enable_prefork"
24035
24036 case "${enableval}" in
24037     y | Y | YES | yes | TRUE | true )
24038         CFLAGS="${CFLAGS} -DJK_PREFORK"
24039         echo "$as_me:$LINENO: result: ...Enabling Prefork mode..." >&5
24040 echo "${ECHO_T}...Enabling Prefork mode..." >&6
24041         ;;
24042 esac
24043
24044 fi;
24045
24046
24047 CFLAGS="${CFLAGS}"
24048 # Check whether --enable-trace or --disable-trace was given.
24049 if test "${enable_trace+set}" = set; then
24050   enableval="$enable_trace"
24051
24052 case "${enableval}" in
24053     no )
24054         CFLAGS="${CFLAGS} -DJK_PRODUCTION"
24055         echo "$as_me:$LINENO: result: ...Exclude trace log code..." >&5
24056 echo "${ECHO_T}...Exclude trace log code..." >&6
24057         ;;
24058 esac
24059
24060 fi;
24061
24062
24063 CFLAGS="${CFLAGS}"
24064 # Check whether --enable-api-compatibility or --disable-api-compatibility was given.
24065 if test "${enable_api_compatibility+set}" = set; then
24066   enableval="$enable_api_compatibility"
24067
24068 case "${enableval}" in
24069     y | Y | YES | yes | TRUE | true )
24070         CFLAGS="${CFLAGS} -DAPI_COMPATIBILITY"
24071         echo "$as_me:$LINENO: result: ...Only using compatible httpd API..." >&5
24072 echo "${ECHO_T}...Only using compatible httpd API..." >&6
24073         ;;
24074 esac
24075
24076 fi;
24077
24078
24079 CFLAGS="${CFLAGS}"
24080 # Check whether --enable-flock or --disable-flock was given.
24081 if test "${enable_flock+set}" = set; then
24082   enableval="$enable_flock"
24083
24084 case "${enableval}" in
24085     y | Y | YES | yes | TRUE | true )
24086         CFLAGS="${CFLAGS} -DJK_USE_FLOCK"
24087         echo "$as_me:$LINENO: result: ...Enabling flock() shared memory locking..." >&5
24088 echo "${ECHO_T}...Enabling flock() shared memory locking..." >&6
24089         ;;
24090 esac
24091
24092 fi;
24093
24094
24095 if ${TEST} -n "${CFLAGS}" ; then
24096     APXSCFLAGS="${APXSCFLAGS} ${CFLAGS}"
24097 fi
24098
24099
24100
24101 if ${TEST} -n "${LDFLAGS}" ; then
24102     APXSLDFLAGS="${APXSLDFLAGS} ${LDFLAGS}"
24103 fi
24104
24105
24106   jk_new_val=""
24107   jk_val_changed=0
24108   for i in $APXSLDFLAGS; do
24109     case $i in
24110       -Wl,*)
24111         jk_new_val="$jk_new_val $i"
24112         ;;
24113       *)
24114         jk_new_val="$jk_new_val -Wl,$i"
24115         jk_val_changed=1
24116         ;;
24117     esac
24118   done
24119   if test $jk_val_changed = "1"; then
24120     { echo "$as_me:$LINENO: tokens in APXSLDFLAGS have been prefixed with '-Wl,'" >&5
24121 echo "$as_me: tokens in APXSLDFLAGS have been prefixed with '-Wl,'" >&6;}
24122     APXSLDFLAGS=$jk_new_val
24123   fi
24124
24125
24126
24127
24128 if ${TEST} -n "${JK_JNI_WORKER}" ; then
24129
24130 WEBSERVER="jni ${WEBSERVER}"
24131
24132
24133 echo "$as_me:$LINENO: checking for JDK location (please wait)" >&5
24134 echo $ECHO_N "checking for JDK location (please wait)... $ECHO_C" >&6
24135
24136
24137
24138 if ${TEST} -n "${JAVA_HOME}" ; then
24139     JAVA_HOME_ENV="${JAVA_HOME}"
24140 else
24141     JAVA_HOME_ENV=""
24142 fi
24143 JAVA_HOME=""
24144 JAVA_PLATFORM="1"
24145
24146
24147 # Check whether --with-java-home or --without-java-home was given.
24148 if test "${with_java_home+set}" = set; then
24149   withval="$with_java_home"
24150
24151
24152     # This stuff works if the command line parameter --with-java-home was
24153     # specified, so it takes priority rightfully.
24154
24155     JAVA_HOME=${withval}
24156
24157     if ${TEST} ! -d "${JAVA_HOME}" ; then
24158         { { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}" >&5
24159 echo "$as_me: error: Not a directory: ${JAVA_HOME}" >&2;}
24160    { (exit 1); exit 1; }; }
24161     fi
24162
24163     echo "$as_me:$LINENO: result: ${JAVA_HOME}" >&5
24164 echo "${ECHO_T}${JAVA_HOME}" >&6
24165
24166
24167 else
24168
24169     # This works if the parameter was NOT specified, so it's a good time
24170     # to see what the enviroment says.
24171
24172     # Since Sun uses JAVA_HOME a lot, we check it first and ignore the
24173     # JAVA_HOME, otherwise just use whatever JAVA_HOME was specified.
24174
24175     if ${TEST} -n "${JAVA_HOME_ENV}" ; then
24176
24177         JAVA_HOME=${JAVA_HOME_ENV}
24178         echo "$as_me:$LINENO: result: ${JAVA_HOME_ENV} from environment" >&5
24179 echo "${ECHO_T}${JAVA_HOME_ENV} from environment" >&6
24180     fi
24181
24182 fi;
24183
24184 if ${TEST} -z "${JAVA_HOME}" ; then
24185
24186     # Oh well, nobody set neither JAVA_HOME nor JAVA_HOME, have to guess
24187
24188     # The following code is based on the code submitted by Henner Zeller
24189     # for ${srcdir}/src/scripts/package/rpm/ApacheJServ.spec
24190
24191     # Two variables will be set as a result:
24192     #
24193     # JAVA_HOME
24194     # JAVA_PLATFORM
24195     echo "$as_me:$LINENO: checking Try to guess JDK location" >&5
24196 echo $ECHO_N "checking Try to guess JDK location... $ECHO_C" >&6
24197
24198
24199     for JAVA_PREFIX in \
24200         /usr/local \
24201         /usr/local/lib \
24202         /usr \
24203         /usr/lib \
24204         /opt  \
24205         /
24206     do
24207         for JAVA_PLATFORM in 3 2 1 ;
24208         do
24209
24210             for subversion in .9 .8 .7 .6 .5 .4 .3 .2 .1 "" ;
24211             do
24212                 for VARIANT in IBMJava2- java java- jdk jdk-;
24213                 do
24214                     GUESS="${JAVA_PREFIX}/${VARIANT}1.${JAVA_PLATFORM}${subversion}"
24215                     if ${TEST} -d "${GUESS}/bin" \
24216                     && ${TEST} -d "${GUESS}/include" ; then
24217
24218                         JAVA_HOME="${GUESS}"
24219                         echo "$as_me:$LINENO: result: ${GUESS}" >&5
24220 echo "${ECHO_T}${GUESS}" >&6
24221                         break
24222                     fi
24223
24224                 done
24225
24226                 if ${TEST} -n "${JAVA_HOME}" ; then
24227                     break;
24228                 fi
24229
24230             done
24231
24232             if ${TEST} -n "${JAVA_HOME}" ; then
24233                 break;
24234             fi
24235
24236         done
24237
24238         if ${TEST} -n "${JAVA_HOME}" ; then
24239             break;
24240         fi
24241
24242     done
24243
24244     if ${TEST} -n "${JAVA_HOME}" ; then
24245
24246
24247         echo "$as_me:$LINENO: checking Java platform" >&5
24248 echo $ECHO_N "checking Java platform... $ECHO_C" >&6
24249         echo "$as_me:$LINENO: result: guess ${JAVA_PLATFORM}" >&5
24250 echo "${ECHO_T}guess ${JAVA_PLATFORM}" >&6
24251     fi
24252
24253
24254 else
24255
24256     echo "$as_me:$LINENO: checking Java platform" >&5
24257 echo $ECHO_N "checking Java platform... $ECHO_C" >&6
24258
24259
24260 # Check whether --with-java-platform or --without-java-platform was given.
24261 if test "${with_java_platform+set}" = set; then
24262   withval="$with_java_platform"
24263
24264
24265         JAVA_PLATFORM="2"
24266
24267 fi;
24268
24269     echo "$as_me:$LINENO: result: forced Java ${JAVA_PLATFORM}" >&5
24270 echo "${ECHO_T}forced Java ${JAVA_PLATFORM}" >&6
24271
24272 fi
24273
24274 if ${TEST} -z "${JAVA_HOME}" ; then
24275     { { echo "$as_me:$LINENO: error: JDK home not found, please specify one with --with-java-home option (run ./configure --help for more options)" >&5
24276 echo "$as_me: error: JDK home not found, please specify one with --with-java-home option (run ./configure --help for more options)" >&2;}
24277    { (exit 1); exit 1; }; }
24278 fi
24279
24280 OS=""
24281
24282 # Check whether --with-os-type or --without-os-type was given.
24283 if test "${with_os_type+set}" = set; then
24284   withval="$with_os_type"
24285
24286     OS=${withval}
24287
24288     if ${TEST} ! -d "${JAVA_HOME}/${OS}" ; then
24289         { { echo "$as_me:$LINENO: error: Not a directory: ${JAVA_HOME}/${OS}" >&5
24290 echo "$as_me: error: Not a directory: ${JAVA_HOME}/${OS}" >&2;}
24291    { (exit 1); exit 1; }; }
24292     fi
24293
24294 else
24295
24296     echo "$as_me:$LINENO: checking os_type directory" >&5
24297 echo $ECHO_N "checking os_type directory... $ECHO_C" >&6
24298     if ${TEST} -f ${JAVA_HOME}/include/jni_md.h; then
24299         OS=""
24300     else
24301         for f in ${JAVA_HOME}/include/*/jni_md.h; do
24302             if ${TEST} -f $f; then
24303                 OS=`dirname ${f}`
24304                 OS=`basename ${OS}`
24305                 echo " ${OS}"
24306             fi
24307         done
24308         if ${TEST} -z "${OS}"; then
24309             echo "$as_me:$LINENO: result: Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&5
24310 echo "${ECHO_T}Cannot find jni_md.h in ${JAVA_HOME}/${OS}" >&6
24311             { { echo "$as_me:$LINENO: error: You should retry --with-os-type=SUBDIR" >&5
24312 echo "$as_me: error: You should retry --with-os-type=SUBDIR" >&2;}
24313    { (exit 1); exit 1; }; }
24314         fi
24315     fi
24316
24317 fi;
24318 fi
24319
24320
24321
24322
24323 if ${TEST} -z "$WEBSERVER" ; then
24324     { { echo "$as_me:$LINENO: error: Cannot find the WebServer" >&5
24325 echo "$as_me: error: Cannot find the WebServer" >&2;}
24326    { (exit 1); exit 1; }; }
24327 fi
24328
24329 WEBSERVER="common ${WEBSERVER}"
24330
24331
24332
24333
24334
24335 if ${TEST} "${apache_dir_is_src}" = "false"; then
24336   MAKE_DYNAMIC_APACHE_TRUE=
24337   MAKE_DYNAMIC_APACHE_FALSE='#'
24338 else
24339   MAKE_DYNAMIC_APACHE_TRUE='#'
24340   MAKE_DYNAMIC_APACHE_FALSE=
24341 fi
24342
24343
24344 if ${TEST} "${apache_dir_is_src}" = "false" ; then
24345         APACHE20_OEXT=.c
24346     LIB_JK_TYPE=mod_jk.so
24347     INSTALL_TYPE=install_dynamic
24348 else
24349         APACHE20_OEXT=.lo
24350     INSTALL_TYPE=install_static
24351 fi
24352
24353
24354
24355
24356                                                                                           ac_config_files="$ac_config_files Makefile apache-1.3/Makefile apache-1.3/Makefile.apxs apache-2.0/Makefile apache-2.0/Makefile.apxs common/Makefile common/list.mk common/jk_types.h jni/Makefile"
24357 cat >confcache <<\_ACEOF
24358 # This file is a shell script that caches the results of configure
24359 # tests run on this system so they can be shared between configure
24360 # scripts and configure runs, see configure's option --config-cache.
24361 # It is not useful on other systems.  If it contains results you don't
24362 # want to keep, you may remove or edit it.
24363 #
24364 # config.status only pays attention to the cache file if you give it
24365 # the --recheck option to rerun configure.
24366 #
24367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24369 # following values.
24370
24371 _ACEOF
24372
24373 # The following way of writing the cache mishandles newlines in values,
24374 # but we know of no workaround that is simple, portable, and efficient.
24375 # So, don't put newlines in cache variables' values.
24376 # Ultrix sh set writes to stderr and can't be redirected directly,
24377 # and sets the high bit in the cache file unless we assign to the vars.
24378 {
24379   (set) 2>&1 |
24380     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24381     *ac_space=\ *)
24382       # `set' does not quote correctly, so add quotes (double-quote
24383       # substitution turns \\\\ into \\, and sed turns \\ into \).
24384       sed -n \
24385         "s/'/'\\\\''/g;
24386           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24387       ;;
24388     *)
24389       # `set' quotes correctly as required by POSIX, so do not add quotes.
24390       sed -n \
24391         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24392       ;;
24393     esac;
24394 } |
24395   sed '
24396      t clear
24397      : clear
24398      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24399      t end
24400      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24401      : end' >>confcache
24402 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24403   if test -w $cache_file; then
24404     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24405     cat confcache >$cache_file
24406   else
24407     echo "not updating unwritable cache $cache_file"
24408   fi
24409 fi
24410 rm -f confcache
24411
24412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24413 # Let make expand exec_prefix.
24414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24415
24416 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24417 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24418 # trailing colons and then remove the whole line if VPATH becomes empty
24419 # (actually we leave an empty line to preserve line numbers).
24420 if test "x$srcdir" = x.; then
24421   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24422 s/:*\$(srcdir):*/:/;
24423 s/:*\${srcdir}:*/:/;
24424 s/:*@srcdir@:*/:/;
24425 s/^\([^=]*=[     ]*\):*/\1/;
24426 s/:*$//;
24427 s/^[^=]*=[       ]*$//;
24428 }'
24429 fi
24430
24431 DEFS=-DHAVE_CONFIG_H
24432
24433 ac_libobjs=
24434 ac_ltlibobjs=
24435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24436   # 1. Remove the extension, and $U if already installed.
24437   ac_i=`echo "$ac_i" |
24438          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24439   # 2. Add them.
24440   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24441   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24442 done
24443 LIBOBJS=$ac_libobjs
24444
24445 LTLIBOBJS=$ac_ltlibobjs
24446
24447
24448 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24449   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24450 Usually this means the macro was only invoked conditionally." >&5
24451 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24452 Usually this means the macro was only invoked conditionally." >&2;}
24453    { (exit 1); exit 1; }; }
24454 fi
24455 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24456   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24457 Usually this means the macro was only invoked conditionally." >&5
24458 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24459 Usually this means the macro was only invoked conditionally." >&2;}
24460    { (exit 1); exit 1; }; }
24461 fi
24462 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24463   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24464 Usually this means the macro was only invoked conditionally." >&5
24465 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24466 Usually this means the macro was only invoked conditionally." >&2;}
24467    { (exit 1); exit 1; }; }
24468 fi
24469 if test -z "${MAKE_DYNAMIC_APACHE_TRUE}" && test -z "${MAKE_DYNAMIC_APACHE_FALSE}"; then
24470   { { echo "$as_me:$LINENO: error: conditional \"MAKE_DYNAMIC_APACHE\" was never defined.
24471 Usually this means the macro was only invoked conditionally." >&5
24472 echo "$as_me: error: conditional \"MAKE_DYNAMIC_APACHE\" was never defined.
24473 Usually this means the macro was only invoked conditionally." >&2;}
24474    { (exit 1); exit 1; }; }
24475 fi
24476
24477 : ${CONFIG_STATUS=./config.status}
24478 ac_clean_files_save=$ac_clean_files
24479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24480 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24481 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24482 cat >$CONFIG_STATUS <<_ACEOF
24483 #! $SHELL
24484 # Generated by $as_me.
24485 # Run this file to recreate the current configuration.
24486 # Compiler output produced by configure, useful for debugging
24487 # configure, is in config.log if it exists.
24488
24489 debug=false
24490 ac_cs_recheck=false
24491 ac_cs_silent=false
24492 SHELL=\${CONFIG_SHELL-$SHELL}
24493 _ACEOF
24494
24495 cat >>$CONFIG_STATUS <<\_ACEOF
24496 ## --------------------- ##
24497 ## M4sh Initialization.  ##
24498 ## --------------------- ##
24499
24500 # Be Bourne compatible
24501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24502   emulate sh
24503   NULLCMD=:
24504   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24505   # is contrary to our usage.  Disable this feature.
24506   alias -g '${1+"$@"}'='"$@"'
24507 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24508   set -o posix
24509 fi
24510 DUALCASE=1; export DUALCASE # for MKS sh
24511
24512 # Support unset when possible.
24513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24514   as_unset=unset
24515 else
24516   as_unset=false
24517 fi
24518
24519
24520 # Work around bugs in pre-3.0 UWIN ksh.
24521 $as_unset ENV MAIL MAILPATH
24522 PS1='$ '
24523 PS2='> '
24524 PS4='+ '
24525
24526 # NLS nuisances.
24527 for as_var in \
24528   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24529   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24530   LC_TELEPHONE LC_TIME
24531 do
24532   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24533     eval $as_var=C; export $as_var
24534   else
24535     $as_unset $as_var
24536   fi
24537 done
24538
24539 # Required to use basename.
24540 if expr a : '\(a\)' >/dev/null 2>&1; then
24541   as_expr=expr
24542 else
24543   as_expr=false
24544 fi
24545
24546 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24547   as_basename=basename
24548 else
24549   as_basename=false
24550 fi
24551
24552
24553 # Name of the executable.
24554 as_me=`$as_basename "$0" ||
24555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24556          X"$0" : 'X\(//\)$' \| \
24557          X"$0" : 'X\(/\)$' \| \
24558          .     : '\(.\)' 2>/dev/null ||
24559 echo X/"$0" |
24560     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24561           /^X\/\(\/\/\)$/{ s//\1/; q; }
24562           /^X\/\(\/\).*/{ s//\1/; q; }
24563           s/.*/./; q'`
24564
24565
24566 # PATH needs CR, and LINENO needs CR and PATH.
24567 # Avoid depending upon Character Ranges.
24568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24571 as_cr_digits='0123456789'
24572 as_cr_alnum=$as_cr_Letters$as_cr_digits
24573
24574 # The user is always right.
24575 if test "${PATH_SEPARATOR+set}" != set; then
24576   echo "#! /bin/sh" >conf$$.sh
24577   echo  "exit 0"   >>conf$$.sh
24578   chmod +x conf$$.sh
24579   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24580     PATH_SEPARATOR=';'
24581   else
24582     PATH_SEPARATOR=:
24583   fi
24584   rm -f conf$$.sh
24585 fi
24586
24587
24588   as_lineno_1=$LINENO
24589   as_lineno_2=$LINENO
24590   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24591   test "x$as_lineno_1" != "x$as_lineno_2" &&
24592   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24593   # Find who we are.  Look in the path if we contain no path at all
24594   # relative or not.
24595   case $0 in
24596     *[\\/]* ) as_myself=$0 ;;
24597     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24598 for as_dir in $PATH
24599 do
24600   IFS=$as_save_IFS
24601   test -z "$as_dir" && as_dir=.
24602   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24603 done
24604
24605        ;;
24606   esac
24607   # We did not find ourselves, most probably we were run as `sh COMMAND'
24608   # in which case we are not to be found in the path.
24609   if test "x$as_myself" = x; then
24610     as_myself=$0
24611   fi
24612   if test ! -f "$as_myself"; then
24613     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24614 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24615    { (exit 1); exit 1; }; }
24616   fi
24617   case $CONFIG_SHELL in
24618   '')
24619     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24620 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24621 do
24622   IFS=$as_save_IFS
24623   test -z "$as_dir" && as_dir=.
24624   for as_base in sh bash ksh sh5; do
24625          case $as_dir in
24626          /*)
24627            if ("$as_dir/$as_base" -c '
24628   as_lineno_1=$LINENO
24629   as_lineno_2=$LINENO
24630   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24631   test "x$as_lineno_1" != "x$as_lineno_2" &&
24632   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24633              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24634              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24635              CONFIG_SHELL=$as_dir/$as_base
24636              export CONFIG_SHELL
24637              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24638            fi;;
24639          esac
24640        done
24641 done
24642 ;;
24643   esac
24644
24645   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24646   # uniformly replaced by the line number.  The first 'sed' inserts a
24647   # line-number line before each line; the second 'sed' does the real
24648   # work.  The second script uses 'N' to pair each line-number line
24649   # with the numbered line, and appends trailing '-' during
24650   # substitution so that $LINENO is not a special case at line end.
24651   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24652   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24653   sed '=' <$as_myself |
24654     sed '
24655       N
24656       s,$,-,
24657       : loop
24658       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24659       t loop
24660       s,-$,,
24661       s,^['$as_cr_digits']*\n,,
24662     ' >$as_me.lineno &&
24663   chmod +x $as_me.lineno ||
24664     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24665 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24666    { (exit 1); exit 1; }; }
24667
24668   # Don't try to exec as it changes $[0], causing all sort of problems
24669   # (the dirname of $[0] is not the place where we might find the
24670   # original and so on.  Autoconf is especially sensible to this).
24671   . ./$as_me.lineno
24672   # Exit status is that of the last command.
24673   exit
24674 }
24675
24676
24677 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24678   *c*,-n*) ECHO_N= ECHO_C='
24679 ' ECHO_T='      ' ;;
24680   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24681   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24682 esac
24683
24684 if expr a : '\(a\)' >/dev/null 2>&1; then
24685   as_expr=expr
24686 else
24687   as_expr=false
24688 fi
24689
24690 rm -f conf$$ conf$$.exe conf$$.file
24691 echo >conf$$.file
24692 if ln -s conf$$.file conf$$ 2>/dev/null; then
24693   # We could just check for DJGPP; but this test a) works b) is more generic
24694   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24695   if test -f conf$$.exe; then
24696     # Don't use ln at all; we don't have any links
24697     as_ln_s='cp -p'
24698   else
24699     as_ln_s='ln -s'
24700   fi
24701 elif ln conf$$.file conf$$ 2>/dev/null; then
24702   as_ln_s=ln
24703 else
24704   as_ln_s='cp -p'
24705 fi
24706 rm -f conf$$ conf$$.exe conf$$.file
24707
24708 if mkdir -p . 2>/dev/null; then
24709   as_mkdir_p=:
24710 else
24711   test -d ./-p && rmdir ./-p
24712   as_mkdir_p=false
24713 fi
24714
24715 as_executable_p="test -f"
24716
24717 # Sed expression to map a string onto a valid CPP name.
24718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24719
24720 # Sed expression to map a string onto a valid variable name.
24721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24722
24723
24724 # IFS
24725 # We need space, tab and new line, in precisely that order.
24726 as_nl='
24727 '
24728 IFS="   $as_nl"
24729
24730 # CDPATH.
24731 $as_unset CDPATH
24732
24733 exec 6>&1
24734
24735 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24736 # report actual input values of CONFIG_FILES etc. instead of their
24737 # values after options handling.  Logging --version etc. is OK.
24738 exec 5>>config.log
24739 {
24740   echo
24741   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24742 ## Running $as_me. ##
24743 _ASBOX
24744 } >&5
24745 cat >&5 <<_CSEOF
24746
24747 This file was extended by $as_me, which was
24748 generated by GNU Autoconf 2.59.  Invocation command line was
24749
24750   CONFIG_FILES    = $CONFIG_FILES
24751   CONFIG_HEADERS  = $CONFIG_HEADERS
24752   CONFIG_LINKS    = $CONFIG_LINKS
24753   CONFIG_COMMANDS = $CONFIG_COMMANDS
24754   $ $0 $@
24755
24756 _CSEOF
24757 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24758 echo >&5
24759 _ACEOF
24760
24761 # Files that config.status was made for.
24762 if test -n "$ac_config_files"; then
24763   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24764 fi
24765
24766 if test -n "$ac_config_headers"; then
24767   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24768 fi
24769
24770 if test -n "$ac_config_links"; then
24771   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24772 fi
24773
24774 if test -n "$ac_config_commands"; then
24775   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24776 fi
24777
24778 cat >>$CONFIG_STATUS <<\_ACEOF
24779
24780 ac_cs_usage="\
24781 \`$as_me' instantiates files from templates according to the
24782 current configuration.
24783
24784 Usage: $0 [OPTIONS] [FILE]...
24785
24786   -h, --help       print this help, then exit
24787   -V, --version    print version number, then exit
24788   -q, --quiet      do not print progress messages
24789   -d, --debug      don't remove temporary files
24790       --recheck    update $as_me by reconfiguring in the same conditions
24791   --file=FILE[:TEMPLATE]
24792                    instantiate the configuration file FILE
24793   --header=FILE[:TEMPLATE]
24794                    instantiate the configuration header FILE
24795
24796 Configuration files:
24797 $config_files
24798
24799 Configuration headers:
24800 $config_headers
24801
24802 Configuration commands:
24803 $config_commands
24804
24805 Report bugs to <bug-autoconf@gnu.org>."
24806 _ACEOF
24807
24808 cat >>$CONFIG_STATUS <<_ACEOF
24809 ac_cs_version="\\
24810 config.status
24811 configured by $0, generated by GNU Autoconf 2.59,
24812   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24813
24814 Copyright (C) 2003 Free Software Foundation, Inc.
24815 This config.status script is free software; the Free Software Foundation
24816 gives unlimited permission to copy, distribute and modify it."
24817 srcdir=$srcdir
24818 INSTALL="$INSTALL"
24819 _ACEOF
24820
24821 cat >>$CONFIG_STATUS <<\_ACEOF
24822 # If no file are specified by the user, then we need to provide default
24823 # value.  By we need to know if files were specified by the user.
24824 ac_need_defaults=:
24825 while test $# != 0
24826 do
24827   case $1 in
24828   --*=*)
24829     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24830     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24831     ac_shift=:
24832     ;;
24833   -*)
24834     ac_option=$1
24835     ac_optarg=$2
24836     ac_shift=shift
24837     ;;
24838   *) # This is not an option, so the user has probably given explicit
24839      # arguments.
24840      ac_option=$1
24841      ac_need_defaults=false;;
24842   esac
24843
24844   case $ac_option in
24845   # Handling of the options.
24846 _ACEOF
24847 cat >>$CONFIG_STATUS <<\_ACEOF
24848   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24849     ac_cs_recheck=: ;;
24850   --version | --vers* | -V )
24851     echo "$ac_cs_version"; exit 0 ;;
24852   --he | --h)
24853     # Conflict between --help and --header
24854     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24855 Try \`$0 --help' for more information." >&5
24856 echo "$as_me: error: ambiguous option: $1
24857 Try \`$0 --help' for more information." >&2;}
24858    { (exit 1); exit 1; }; };;
24859   --help | --hel | -h )
24860     echo "$ac_cs_usage"; exit 0 ;;
24861   --debug | --d* | -d )
24862     debug=: ;;
24863   --file | --fil | --fi | --f )
24864     $ac_shift
24865     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24866     ac_need_defaults=false;;
24867   --header | --heade | --head | --hea )
24868     $ac_shift
24869     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24870     ac_need_defaults=false;;
24871   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24872   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24873     ac_cs_silent=: ;;
24874
24875   # This is an error.
24876   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24877 Try \`$0 --help' for more information." >&5
24878 echo "$as_me: error: unrecognized option: $1
24879 Try \`$0 --help' for more information." >&2;}
24880    { (exit 1); exit 1; }; } ;;
24881
24882   *) ac_config_targets="$ac_config_targets $1" ;;
24883
24884   esac
24885   shift
24886 done
24887
24888 ac_configure_extra_args=
24889
24890 if $ac_cs_silent; then
24891   exec 6>/dev/null
24892   ac_configure_extra_args="$ac_configure_extra_args --silent"
24893 fi
24894
24895 _ACEOF
24896 cat >>$CONFIG_STATUS <<_ACEOF
24897 if \$ac_cs_recheck; then
24898   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24899   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24900 fi
24901
24902 _ACEOF
24903
24904 cat >>$CONFIG_STATUS <<_ACEOF
24905 #
24906 # INIT-COMMANDS section.
24907 #
24908
24909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24910
24911 _ACEOF
24912
24913
24914
24915 cat >>$CONFIG_STATUS <<\_ACEOF
24916 for ac_config_target in $ac_config_targets
24917 do
24918   case "$ac_config_target" in
24919   # Handling of arguments.
24920   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24921   "apache-1.3/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache-1.3/Makefile" ;;
24922   "apache-1.3/Makefile.apxs" ) CONFIG_FILES="$CONFIG_FILES apache-1.3/Makefile.apxs" ;;
24923   "apache-2.0/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache-2.0/Makefile" ;;
24924   "apache-2.0/Makefile.apxs" ) CONFIG_FILES="$CONFIG_FILES apache-2.0/Makefile.apxs" ;;
24925   "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
24926   "common/list.mk" ) CONFIG_FILES="$CONFIG_FILES common/list.mk" ;;
24927   "common/jk_types.h" ) CONFIG_FILES="$CONFIG_FILES common/jk_types.h" ;;
24928   "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
24929   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24930   "common/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS common/config.h" ;;
24931   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24932 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24933    { (exit 1); exit 1; }; };;
24934   esac
24935 done
24936
24937 # If the user did not use the arguments to specify the items to instantiate,
24938 # then the envvar interface is used.  Set only those that are not.
24939 # We use the long form for the default assignment because of an extremely
24940 # bizarre bug on SunOS 4.1.3.
24941 if $ac_need_defaults; then
24942   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24943   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24944   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24945 fi
24946
24947 # Have a temporary directory for convenience.  Make it in the build tree
24948 # simply because there is no reason to put it here, and in addition,
24949 # creating and moving files from /tmp can sometimes cause problems.
24950 # Create a temporary directory, and hook for its removal unless debugging.
24951 $debug ||
24952 {
24953   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24954   trap '{ (exit 1); exit 1; }' 1 2 13 15
24955 }
24956
24957 # Create a (secure) tmp directory for tmp files.
24958
24959 {
24960   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24961   test -n "$tmp" && test -d "$tmp"
24962 }  ||
24963 {
24964   tmp=./confstat$$-$RANDOM
24965   (umask 077 && mkdir $tmp)
24966 } ||
24967 {
24968    echo "$me: cannot create a temporary directory in ." >&2
24969    { (exit 1); exit 1; }
24970 }
24971
24972 _ACEOF
24973
24974 cat >>$CONFIG_STATUS <<_ACEOF
24975
24976 #
24977 # CONFIG_FILES section.
24978 #
24979
24980 # No need to generate the scripts if there are no CONFIG_FILES.
24981 # This happens for instance when ./config.status config.h
24982 if test -n "\$CONFIG_FILES"; then
24983   # Protect against being on the right side of a sed subst in config.status.
24984   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24985    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24986 s,@SHELL@,$SHELL,;t t
24987 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24988 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24989 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24990 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24991 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24992 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24993 s,@exec_prefix@,$exec_prefix,;t t
24994 s,@prefix@,$prefix,;t t
24995 s,@program_transform_name@,$program_transform_name,;t t
24996 s,@bindir@,$bindir,;t t
24997 s,@sbindir@,$sbindir,;t t
24998 s,@libexecdir@,$libexecdir,;t t
24999 s,@datadir@,$datadir,;t t
25000 s,@sysconfdir@,$sysconfdir,;t t
25001 s,@sharedstatedir@,$sharedstatedir,;t t
25002 s,@localstatedir@,$localstatedir,;t t
25003 s,@libdir@,$libdir,;t t
25004 s,@includedir@,$includedir,;t t
25005 s,@oldincludedir@,$oldincludedir,;t t
25006 s,@infodir@,$infodir,;t t
25007 s,@mandir@,$mandir,;t t
25008 s,@build_alias@,$build_alias,;t t
25009 s,@host_alias@,$host_alias,;t t
25010 s,@target_alias@,$target_alias,;t t
25011 s,@DEFS@,$DEFS,;t t
25012 s,@ECHO_C@,$ECHO_C,;t t
25013 s,@ECHO_N@,$ECHO_N,;t t
25014 s,@ECHO_T@,$ECHO_T,;t t
25015 s,@LIBS@,$LIBS,;t t
25016 s,@build@,$build,;t t
25017 s,@build_cpu@,$build_cpu,;t t
25018 s,@build_vendor@,$build_vendor,;t t
25019 s,@build_os@,$build_os,;t t
25020 s,@host@,$host,;t t
25021 s,@host_cpu@,$host_cpu,;t t
25022 s,@host_vendor@,$host_vendor,;t t
25023 s,@host_os@,$host_os,;t t
25024 s,@target@,$target,;t t
25025 s,@target_cpu@,$target_cpu,;t t
25026 s,@target_vendor@,$target_vendor,;t t
25027 s,@target_os@,$target_os,;t t
25028 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25029 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25030 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25031 s,@CYGPATH_W@,$CYGPATH_W,;t t
25032 s,@PACKAGE@,$PACKAGE,;t t
25033 s,@VERSION@,$VERSION,;t t
25034 s,@ACLOCAL@,$ACLOCAL,;t t
25035 s,@AUTOCONF@,$AUTOCONF,;t t
25036 s,@AUTOMAKE@,$AUTOMAKE,;t t
25037 s,@AUTOHEADER@,$AUTOHEADER,;t t
25038 s,@MAKEINFO@,$MAKEINFO,;t t
25039 s,@install_sh@,$install_sh,;t t
25040 s,@STRIP@,$STRIP,;t t
25041 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25042 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25043 s,@mkdir_p@,$mkdir_p,;t t
25044 s,@AWK@,$AWK,;t t
25045 s,@SET_MAKE@,$SET_MAKE,;t t
25046 s,@am__leading_dot@,$am__leading_dot,;t t
25047 s,@AMTAR@,$AMTAR,;t t
25048 s,@am__tar@,$am__tar,;t t
25049 s,@am__untar@,$am__untar,;t t
25050 s,@TEST@,$TEST,;t t
25051 s,@RM@,$RM,;t t
25052 s,@GREP@,$GREP,;t t
25053 s,@ECHO@,$ECHO,;t t
25054 s,@SED@,$SED,;t t
25055 s,@CP@,$CP,;t t
25056 s,@MKDIR@,$MKDIR,;t t
25057 s,@CFLAGS@,$CFLAGS,;t t
25058 s,@PERL@,$PERL,;t t
25059 s,@APXS@,$APXS,;t t
25060 s,@APACHE_CONFIG_VARS@,$APACHE_CONFIG_VARS,;t t
25061 s,@CC@,$CC,;t t
25062 s,@LDFLAGS@,$LDFLAGS,;t t
25063 s,@CPPFLAGS@,$CPPFLAGS,;t t
25064 s,@ac_ct_CC@,$ac_ct_CC,;t t
25065 s,@EXEEXT@,$EXEEXT,;t t
25066 s,@OBJEXT@,$OBJEXT,;t t
25067 s,@DEPDIR@,$DEPDIR,;t t
25068 s,@am__include@,$am__include,;t t
25069 s,@am__quote@,$am__quote,;t t
25070 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25071 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25072 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25073 s,@CCDEPMODE@,$CCDEPMODE,;t t
25074 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25075 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25076 s,@EGREP@,$EGREP,;t t
25077 s,@LN_S@,$LN_S,;t t
25078 s,@AR@,$AR,;t t
25079 s,@ac_ct_AR@,$ac_ct_AR,;t t
25080 s,@RANLIB@,$RANLIB,;t t
25081 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25082 s,@CPP@,$CPP,;t t
25083 s,@CXX@,$CXX,;t t
25084 s,@CXXFLAGS@,$CXXFLAGS,;t t
25085 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25086 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25087 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25088 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25089 s,@CXXCPP@,$CXXCPP,;t t
25090 s,@F77@,$F77,;t t
25091 s,@FFLAGS@,$FFLAGS,;t t
25092 s,@ac_ct_F77@,$ac_ct_F77,;t t
25093 s,@LIBTOOL@,$LIBTOOL,;t t
25094 s,@int32_value@,$int32_value,;t t
25095 s,@int32_t_fmt@,$int32_t_fmt,;t t
25096 s,@uint32_t_fmt@,$uint32_t_fmt,;t t
25097 s,@uint32_t_hex_fmt@,$uint32_t_hex_fmt,;t t
25098 s,@int64_value@,$int64_value,;t t
25099 s,@int64_t_fmt@,$int64_t_fmt,;t t
25100 s,@uint64_t_fmt@,$uint64_t_fmt,;t t
25101 s,@uint64_t_hex_fmt@,$uint64_t_hex_fmt,;t t
25102 s,@pid_t_fmt@,$pid_t_fmt,;t t
25103 s,@pthread_t_fmt@,$pthread_t_fmt,;t t
25104 s,@pthread_t_value@,$pthread_t_value,;t t
25105 s,@apache_include@,$apache_include,;t t
25106 s,@APACHE_DIR@,$APACHE_DIR,;t t
25107 s,@JK_JNI_WORKER@,$JK_JNI_WORKER,;t t
25108 s,@APXSCFLAGS@,$APXSCFLAGS,;t t
25109 s,@APXSCPPFLAGS@,$APXSCPPFLAGS,;t t
25110 s,@APXSLDFLAGS@,$APXSLDFLAGS,;t t
25111 s,@JAVA_HOME@,$JAVA_HOME,;t t
25112 s,@OS@,$OS,;t t
25113 s,@WEBSERVER@,$WEBSERVER,;t t
25114 s,@MAKE_DYNAMIC_APACHE_TRUE@,$MAKE_DYNAMIC_APACHE_TRUE,;t t
25115 s,@MAKE_DYNAMIC_APACHE_FALSE@,$MAKE_DYNAMIC_APACHE_FALSE,;t t
25116 s,@APACHE20_OEXT@,$APACHE20_OEXT,;t t
25117 s,@LIB_JK_TYPE@,$LIB_JK_TYPE,;t t
25118 s,@INSTALL_TYPE@,$INSTALL_TYPE,;t t
25119 s,@LIBOBJS@,$LIBOBJS,;t t
25120 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25121 CEOF
25122
25123 _ACEOF
25124
25125   cat >>$CONFIG_STATUS <<\_ACEOF
25126   # Split the substitutions into bite-sized pieces for seds with
25127   # small command number limits, like on Digital OSF/1 and HP-UX.
25128   ac_max_sed_lines=48
25129   ac_sed_frag=1 # Number of current file.
25130   ac_beg=1 # First line for current file.
25131   ac_end=$ac_max_sed_lines # Line after last line for current file.
25132   ac_more_lines=:
25133   ac_sed_cmds=
25134   while $ac_more_lines; do
25135     if test $ac_beg -gt 1; then
25136       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25137     else
25138       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25139     fi
25140     if test ! -s $tmp/subs.frag; then
25141       ac_more_lines=false
25142     else
25143       # The purpose of the label and of the branching condition is to
25144       # speed up the sed processing (if there are no `@' at all, there
25145       # is no need to browse any of the substitutions).
25146       # These are the two extra sed commands mentioned above.
25147       (echo ':t
25148   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25149       if test -z "$ac_sed_cmds"; then
25150         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25151       else
25152         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25153       fi
25154       ac_sed_frag=`expr $ac_sed_frag + 1`
25155       ac_beg=$ac_end
25156       ac_end=`expr $ac_end + $ac_max_sed_lines`
25157     fi
25158   done
25159   if test -z "$ac_sed_cmds"; then
25160     ac_sed_cmds=cat
25161   fi
25162 fi # test -n "$CONFIG_FILES"
25163
25164 _ACEOF
25165 cat >>$CONFIG_STATUS <<\_ACEOF
25166 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25167   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25168   case $ac_file in
25169   - | *:- | *:-:* ) # input from stdin
25170         cat >$tmp/stdin
25171         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25172         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25173   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25174         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25175   * )   ac_file_in=$ac_file.in ;;
25176   esac
25177
25178   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25179   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25181          X"$ac_file" : 'X\(//\)[^/]' \| \
25182          X"$ac_file" : 'X\(//\)$' \| \
25183          X"$ac_file" : 'X\(/\)' \| \
25184          .     : '\(.\)' 2>/dev/null ||
25185 echo X"$ac_file" |
25186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25187           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25188           /^X\(\/\/\)$/{ s//\1/; q; }
25189           /^X\(\/\).*/{ s//\1/; q; }
25190           s/.*/./; q'`
25191   { if $as_mkdir_p; then
25192     mkdir -p "$ac_dir"
25193   else
25194     as_dir="$ac_dir"
25195     as_dirs=
25196     while test ! -d "$as_dir"; do
25197       as_dirs="$as_dir $as_dirs"
25198       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25200          X"$as_dir" : 'X\(//\)[^/]' \| \
25201          X"$as_dir" : 'X\(//\)$' \| \
25202          X"$as_dir" : 'X\(/\)' \| \
25203          .     : '\(.\)' 2>/dev/null ||
25204 echo X"$as_dir" |
25205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25206           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25207           /^X\(\/\/\)$/{ s//\1/; q; }
25208           /^X\(\/\).*/{ s//\1/; q; }
25209           s/.*/./; q'`
25210     done
25211     test ! -n "$as_dirs" || mkdir $as_dirs
25212   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25213 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25214    { (exit 1); exit 1; }; }; }
25215
25216   ac_builddir=.
25217
25218 if test "$ac_dir" != .; then
25219   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25220   # A "../" for each directory in $ac_dir_suffix.
25221   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25222 else
25223   ac_dir_suffix= ac_top_builddir=
25224 fi
25225
25226 case $srcdir in
25227   .)  # No --srcdir option.  We are building in place.
25228     ac_srcdir=.
25229     if test -z "$ac_top_builddir"; then
25230        ac_top_srcdir=.
25231     else
25232        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25233     fi ;;
25234   [\\/]* | ?:[\\/]* )  # Absolute path.
25235     ac_srcdir=$srcdir$ac_dir_suffix;
25236     ac_top_srcdir=$srcdir ;;
25237   *) # Relative path.
25238     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25239     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25240 esac
25241
25242 # Do not use `cd foo && pwd` to compute absolute paths, because
25243 # the directories may not exist.
25244 case `pwd` in
25245 .) ac_abs_builddir="$ac_dir";;
25246 *)
25247   case "$ac_dir" in
25248   .) ac_abs_builddir=`pwd`;;
25249   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25250   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25251   esac;;
25252 esac
25253 case $ac_abs_builddir in
25254 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25255 *)
25256   case ${ac_top_builddir}. in
25257   .) ac_abs_top_builddir=$ac_abs_builddir;;
25258   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25259   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25260   esac;;
25261 esac
25262 case $ac_abs_builddir in
25263 .) ac_abs_srcdir=$ac_srcdir;;
25264 *)
25265   case $ac_srcdir in
25266   .) ac_abs_srcdir=$ac_abs_builddir;;
25267   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25268   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25269   esac;;
25270 esac
25271 case $ac_abs_builddir in
25272 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25273 *)
25274   case $ac_top_srcdir in
25275   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25276   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25277   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25278   esac;;
25279 esac
25280
25281
25282   case $INSTALL in
25283   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25284   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25285   esac
25286
25287   if test x"$ac_file" != x-; then
25288     { echo "$as_me:$LINENO: creating $ac_file" >&5
25289 echo "$as_me: creating $ac_file" >&6;}
25290     rm -f "$ac_file"
25291   fi
25292   # Let's still pretend it is `configure' which instantiates (i.e., don't
25293   # use $as_me), people would be surprised to read:
25294   #    /* config.h.  Generated by config.status.  */
25295   if test x"$ac_file" = x-; then
25296     configure_input=
25297   else
25298     configure_input="$ac_file.  "
25299   fi
25300   configure_input=$configure_input"Generated from `echo $ac_file_in |
25301                                      sed 's,.*/,,'` by configure."
25302
25303   # First look for the input files in the build tree, otherwise in the
25304   # src tree.
25305   ac_file_inputs=`IFS=:
25306     for f in $ac_file_in; do
25307       case $f in
25308       -) echo $tmp/stdin ;;
25309       [\\/$]*)
25310          # Absolute (can't be DOS-style, as IFS=:)
25311          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25312 echo "$as_me: error: cannot find input file: $f" >&2;}
25313    { (exit 1); exit 1; }; }
25314          echo "$f";;
25315       *) # Relative
25316          if test -f "$f"; then
25317            # Build tree
25318            echo "$f"
25319          elif test -f "$srcdir/$f"; then
25320            # Source tree
25321            echo "$srcdir/$f"
25322          else
25323            # /dev/null tree
25324            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25325 echo "$as_me: error: cannot find input file: $f" >&2;}
25326    { (exit 1); exit 1; }; }
25327          fi;;
25328       esac
25329     done` || { (exit 1); exit 1; }
25330 _ACEOF
25331 cat >>$CONFIG_STATUS <<_ACEOF
25332   sed "$ac_vpsub
25333 $extrasub
25334 _ACEOF
25335 cat >>$CONFIG_STATUS <<\_ACEOF
25336 :t
25337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25338 s,@configure_input@,$configure_input,;t t
25339 s,@srcdir@,$ac_srcdir,;t t
25340 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25341 s,@top_srcdir@,$ac_top_srcdir,;t t
25342 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25343 s,@builddir@,$ac_builddir,;t t
25344 s,@abs_builddir@,$ac_abs_builddir,;t t
25345 s,@top_builddir@,$ac_top_builddir,;t t
25346 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25347 s,@INSTALL@,$ac_INSTALL,;t t
25348 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25349   rm -f $tmp/stdin
25350   if test x"$ac_file" != x-; then
25351     mv $tmp/out $ac_file
25352   else
25353     cat $tmp/out
25354     rm -f $tmp/out
25355   fi
25356
25357 done
25358 _ACEOF
25359 cat >>$CONFIG_STATUS <<\_ACEOF
25360
25361 #
25362 # CONFIG_HEADER section.
25363 #
25364
25365 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25366 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25367 #
25368 # ac_d sets the value in "#define NAME VALUE" lines.
25369 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25370 ac_dB='[         ].*$,\1#\2'
25371 ac_dC=' '
25372 ac_dD=',;t'
25373 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25374 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25375 ac_uB='$,\1#\2define\3'
25376 ac_uC=' '
25377 ac_uD=',;t'
25378
25379 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25380   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25381   case $ac_file in
25382   - | *:- | *:-:* ) # input from stdin
25383         cat >$tmp/stdin
25384         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25385         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25386   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25387         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25388   * )   ac_file_in=$ac_file.in ;;
25389   esac
25390
25391   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25392 echo "$as_me: creating $ac_file" >&6;}
25393
25394   # First look for the input files in the build tree, otherwise in the
25395   # src tree.
25396   ac_file_inputs=`IFS=:
25397     for f in $ac_file_in; do
25398       case $f in
25399       -) echo $tmp/stdin ;;
25400       [\\/$]*)
25401          # Absolute (can't be DOS-style, as IFS=:)
25402          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25403 echo "$as_me: error: cannot find input file: $f" >&2;}
25404    { (exit 1); exit 1; }; }
25405          # Do quote $f, to prevent DOS paths from being IFS'd.
25406          echo "$f";;
25407       *) # Relative
25408          if test -f "$f"; then
25409            # Build tree
25410            echo "$f"
25411          elif test -f "$srcdir/$f"; then
25412            # Source tree
25413            echo "$srcdir/$f"
25414          else
25415            # /dev/null tree
25416            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25417 echo "$as_me: error: cannot find input file: $f" >&2;}
25418    { (exit 1); exit 1; }; }
25419          fi;;
25420       esac
25421     done` || { (exit 1); exit 1; }
25422   # Remove the trailing spaces.
25423   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25424
25425 _ACEOF
25426
25427 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25428 # `conftest.undefs', that substitutes the proper values into
25429 # config.h.in to produce config.h.  The first handles `#define'
25430 # templates, and the second `#undef' templates.
25431 # And first: Protect against being on the right side of a sed subst in
25432 # config.status.  Protect against being in an unquoted here document
25433 # in config.status.
25434 rm -f conftest.defines conftest.undefs
25435 # Using a here document instead of a string reduces the quoting nightmare.
25436 # Putting comments in sed scripts is not portable.
25437 #
25438 # `end' is used to avoid that the second main sed command (meant for
25439 # 0-ary CPP macros) applies to n-ary macro definitions.
25440 # See the Autoconf documentation for `clear'.
25441 cat >confdef2sed.sed <<\_ACEOF
25442 s/[\\&,]/\\&/g
25443 s,[\\$`],\\&,g
25444 t clear
25445 : clear
25446 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25447 t end
25448 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25449 : end
25450 _ACEOF
25451 # If some macros were called several times there might be several times
25452 # the same #defines, which is useless.  Nevertheless, we may not want to
25453 # sort them, since we want the *last* AC-DEFINE to be honored.
25454 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25455 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25456 rm -f confdef2sed.sed
25457
25458 # This sed command replaces #undef with comments.  This is necessary, for
25459 # example, in the case of _POSIX_SOURCE, which is predefined and required
25460 # on some systems where configure will not decide to define it.
25461 cat >>conftest.undefs <<\_ACEOF
25462 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25463 _ACEOF
25464
25465 # Break up conftest.defines because some shells have a limit on the size
25466 # of here documents, and old seds have small limits too (100 cmds).
25467 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25468 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25469 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25470 echo '  :' >>$CONFIG_STATUS
25471 rm -f conftest.tail
25472 while grep . conftest.defines >/dev/null
25473 do
25474   # Write a limited-size here document to $tmp/defines.sed.
25475   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25476   # Speed up: don't consider the non `#define' lines.
25477   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25478   # Work around the forget-to-reset-the-flag bug.
25479   echo 't clr' >>$CONFIG_STATUS
25480   echo ': clr' >>$CONFIG_STATUS
25481   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25482   echo 'CEOF
25483   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25484   rm -f $tmp/in
25485   mv $tmp/out $tmp/in
25486 ' >>$CONFIG_STATUS
25487   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25488   rm -f conftest.defines
25489   mv conftest.tail conftest.defines
25490 done
25491 rm -f conftest.defines
25492 echo '  fi # grep' >>$CONFIG_STATUS
25493 echo >>$CONFIG_STATUS
25494
25495 # Break up conftest.undefs because some shells have a limit on the size
25496 # of here documents, and old seds have small limits too (100 cmds).
25497 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25498 rm -f conftest.tail
25499 while grep . conftest.undefs >/dev/null
25500 do
25501   # Write a limited-size here document to $tmp/undefs.sed.
25502   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25503   # Speed up: don't consider the non `#undef'
25504   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25505   # Work around the forget-to-reset-the-flag bug.
25506   echo 't clr' >>$CONFIG_STATUS
25507   echo ': clr' >>$CONFIG_STATUS
25508   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25509   echo 'CEOF
25510   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25511   rm -f $tmp/in
25512   mv $tmp/out $tmp/in
25513 ' >>$CONFIG_STATUS
25514   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25515   rm -f conftest.undefs
25516   mv conftest.tail conftest.undefs
25517 done
25518 rm -f conftest.undefs
25519
25520 cat >>$CONFIG_STATUS <<\_ACEOF
25521   # Let's still pretend it is `configure' which instantiates (i.e., don't
25522   # use $as_me), people would be surprised to read:
25523   #    /* config.h.  Generated by config.status.  */
25524   if test x"$ac_file" = x-; then
25525     echo "/* Generated by configure.  */" >$tmp/config.h
25526   else
25527     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25528   fi
25529   cat $tmp/in >>$tmp/config.h
25530   rm -f $tmp/in
25531   if test x"$ac_file" != x-; then
25532     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25533       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25534 echo "$as_me: $ac_file is unchanged" >&6;}
25535     else
25536       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25538          X"$ac_file" : 'X\(//\)[^/]' \| \
25539          X"$ac_file" : 'X\(//\)$' \| \
25540          X"$ac_file" : 'X\(/\)' \| \
25541          .     : '\(.\)' 2>/dev/null ||
25542 echo X"$ac_file" |
25543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25544           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25545           /^X\(\/\/\)$/{ s//\1/; q; }
25546           /^X\(\/\).*/{ s//\1/; q; }
25547           s/.*/./; q'`
25548       { if $as_mkdir_p; then
25549     mkdir -p "$ac_dir"
25550   else
25551     as_dir="$ac_dir"
25552     as_dirs=
25553     while test ! -d "$as_dir"; do
25554       as_dirs="$as_dir $as_dirs"
25555       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25557          X"$as_dir" : 'X\(//\)[^/]' \| \
25558          X"$as_dir" : 'X\(//\)$' \| \
25559          X"$as_dir" : 'X\(/\)' \| \
25560          .     : '\(.\)' 2>/dev/null ||
25561 echo X"$as_dir" |
25562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25564           /^X\(\/\/\)$/{ s//\1/; q; }
25565           /^X\(\/\).*/{ s//\1/; q; }
25566           s/.*/./; q'`
25567     done
25568     test ! -n "$as_dirs" || mkdir $as_dirs
25569   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25571    { (exit 1); exit 1; }; }; }
25572
25573       rm -f $ac_file
25574       mv $tmp/config.h $ac_file
25575     fi
25576   else
25577     cat $tmp/config.h
25578     rm -f $tmp/config.h
25579   fi
25580 # Compute $ac_file's index in $config_headers.
25581 _am_stamp_count=1
25582 for _am_header in $config_headers :; do
25583   case $_am_header in
25584     $ac_file | $ac_file:* )
25585       break ;;
25586     * )
25587       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25588   esac
25589 done
25590 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25591 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25592          X$ac_file : 'X\(//\)[^/]' \| \
25593          X$ac_file : 'X\(//\)$' \| \
25594          X$ac_file : 'X\(/\)' \| \
25595          .     : '\(.\)' 2>/dev/null ||
25596 echo X$ac_file |
25597     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25598           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25599           /^X\(\/\/\)$/{ s//\1/; q; }
25600           /^X\(\/\).*/{ s//\1/; q; }
25601           s/.*/./; q'`/stamp-h$_am_stamp_count
25602 done
25603 _ACEOF
25604 cat >>$CONFIG_STATUS <<\_ACEOF
25605
25606 #
25607 # CONFIG_COMMANDS section.
25608 #
25609 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25610   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25611   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25612   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25613 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25614          X"$ac_dest" : 'X\(//\)[^/]' \| \
25615          X"$ac_dest" : 'X\(//\)$' \| \
25616          X"$ac_dest" : 'X\(/\)' \| \
25617          .     : '\(.\)' 2>/dev/null ||
25618 echo X"$ac_dest" |
25619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25620           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25621           /^X\(\/\/\)$/{ s//\1/; q; }
25622           /^X\(\/\).*/{ s//\1/; q; }
25623           s/.*/./; q'`
25624   { if $as_mkdir_p; then
25625     mkdir -p "$ac_dir"
25626   else
25627     as_dir="$ac_dir"
25628     as_dirs=
25629     while test ! -d "$as_dir"; do
25630       as_dirs="$as_dir $as_dirs"
25631       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25633          X"$as_dir" : 'X\(//\)[^/]' \| \
25634          X"$as_dir" : 'X\(//\)$' \| \
25635          X"$as_dir" : 'X\(/\)' \| \
25636          .     : '\(.\)' 2>/dev/null ||
25637 echo X"$as_dir" |
25638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25639           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25640           /^X\(\/\/\)$/{ s//\1/; q; }
25641           /^X\(\/\).*/{ s//\1/; q; }
25642           s/.*/./; q'`
25643     done
25644     test ! -n "$as_dirs" || mkdir $as_dirs
25645   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25646 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25647    { (exit 1); exit 1; }; }; }
25648
25649   ac_builddir=.
25650
25651 if test "$ac_dir" != .; then
25652   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25653   # A "../" for each directory in $ac_dir_suffix.
25654   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25655 else
25656   ac_dir_suffix= ac_top_builddir=
25657 fi
25658
25659 case $srcdir in
25660   .)  # No --srcdir option.  We are building in place.
25661     ac_srcdir=.
25662     if test -z "$ac_top_builddir"; then
25663        ac_top_srcdir=.
25664     else
25665        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25666     fi ;;
25667   [\\/]* | ?:[\\/]* )  # Absolute path.
25668     ac_srcdir=$srcdir$ac_dir_suffix;
25669     ac_top_srcdir=$srcdir ;;
25670   *) # Relative path.
25671     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25672     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25673 esac
25674
25675 # Do not use `cd foo && pwd` to compute absolute paths, because
25676 # the directories may not exist.
25677 case `pwd` in
25678 .) ac_abs_builddir="$ac_dir";;
25679 *)
25680   case "$ac_dir" in
25681   .) ac_abs_builddir=`pwd`;;
25682   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25683   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25684   esac;;
25685 esac
25686 case $ac_abs_builddir in
25687 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25688 *)
25689   case ${ac_top_builddir}. in
25690   .) ac_abs_top_builddir=$ac_abs_builddir;;
25691   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25692   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25693   esac;;
25694 esac
25695 case $ac_abs_builddir in
25696 .) ac_abs_srcdir=$ac_srcdir;;
25697 *)
25698   case $ac_srcdir in
25699   .) ac_abs_srcdir=$ac_abs_builddir;;
25700   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25701   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25702   esac;;
25703 esac
25704 case $ac_abs_builddir in
25705 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25706 *)
25707   case $ac_top_srcdir in
25708   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25709   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25710   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25711   esac;;
25712 esac
25713
25714
25715   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25716 echo "$as_me: executing $ac_dest commands" >&6;}
25717   case $ac_dest in
25718     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25719   # Strip MF so we end up with the name of the file.
25720   mf=`echo "$mf" | sed -e 's/:.*$//'`
25721   # Check whether this is an Automake generated Makefile or not.
25722   # We used to match only the files named `Makefile.in', but
25723   # some people rename them; so instead we look at the file content.
25724   # Grep'ing the first line is not enough: some people post-process
25725   # each Makefile.in and add a new line on top of each file to say so.
25726   # So let's grep whole file.
25727   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25728     dirpart=`(dirname "$mf") 2>/dev/null ||
25729 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25730          X"$mf" : 'X\(//\)[^/]' \| \
25731          X"$mf" : 'X\(//\)$' \| \
25732          X"$mf" : 'X\(/\)' \| \
25733          .     : '\(.\)' 2>/dev/null ||
25734 echo X"$mf" |
25735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25736           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25737           /^X\(\/\/\)$/{ s//\1/; q; }
25738           /^X\(\/\).*/{ s//\1/; q; }
25739           s/.*/./; q'`
25740   else
25741     continue
25742   fi
25743   # Extract the definition of DEPDIR, am__include, and am__quote
25744   # from the Makefile without running `make'.
25745   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25746   test -z "$DEPDIR" && continue
25747   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25748   test -z "am__include" && continue
25749   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25750   # When using ansi2knr, U may be empty or an underscore; expand it
25751   U=`sed -n 's/^U = //p' < "$mf"`
25752   # Find all dependency output files, they are included files with
25753   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25754   # simplest approach to changing $(DEPDIR) to its actual value in the
25755   # expansion.
25756   for file in `sed -n "
25757     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25758        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25759     # Make sure the directory exists.
25760     test -f "$dirpart/$file" && continue
25761     fdir=`(dirname "$file") 2>/dev/null ||
25762 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25763          X"$file" : 'X\(//\)[^/]' \| \
25764          X"$file" : 'X\(//\)$' \| \
25765          X"$file" : 'X\(/\)' \| \
25766          .     : '\(.\)' 2>/dev/null ||
25767 echo X"$file" |
25768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25770           /^X\(\/\/\)$/{ s//\1/; q; }
25771           /^X\(\/\).*/{ s//\1/; q; }
25772           s/.*/./; q'`
25773     { if $as_mkdir_p; then
25774     mkdir -p $dirpart/$fdir
25775   else
25776     as_dir=$dirpart/$fdir
25777     as_dirs=
25778     while test ! -d "$as_dir"; do
25779       as_dirs="$as_dir $as_dirs"
25780       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25782          X"$as_dir" : 'X\(//\)[^/]' \| \
25783          X"$as_dir" : 'X\(//\)$' \| \
25784          X"$as_dir" : 'X\(/\)' \| \
25785          .     : '\(.\)' 2>/dev/null ||
25786 echo X"$as_dir" |
25787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25789           /^X\(\/\/\)$/{ s//\1/; q; }
25790           /^X\(\/\).*/{ s//\1/; q; }
25791           s/.*/./; q'`
25792     done
25793     test ! -n "$as_dirs" || mkdir $as_dirs
25794   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25795 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25796    { (exit 1); exit 1; }; }; }
25797
25798     # echo "creating $dirpart/$file"
25799     echo '# dummy' > "$dirpart/$file"
25800   done
25801 done
25802  ;;
25803   esac
25804 done
25805 _ACEOF
25806
25807 cat >>$CONFIG_STATUS <<\_ACEOF
25808
25809 { (exit 0); exit 0; }
25810 _ACEOF
25811 chmod +x $CONFIG_STATUS
25812 ac_clean_files=$ac_clean_files_save
25813
25814
25815 # configure is writing to config.log, and then calls config.status.
25816 # config.status does its own redirection, appending to config.log.
25817 # Unfortunately, on DOS this fails, as config.log is still kept open
25818 # by configure, so config.status won't be able to write to it; its
25819 # output is simply discarded.  So we exec the FD to /dev/null,
25820 # effectively closing config.log, so it can be properly (re)opened and
25821 # appended to by config.status.  When coming back to configure, we
25822 # need to make the FD available again.
25823 if test "$no_create" != yes; then
25824   ac_cs_success=:
25825   ac_config_status_args=
25826   test "$silent" = yes &&
25827     ac_config_status_args="$ac_config_status_args --quiet"
25828   exec 5>/dev/null
25829   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25830   exec 5>>config.log
25831   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25832   # would make configure fail if this is the last instruction.
25833   $ac_cs_success || { (exit 1); exit 1; }
25834 fi
25835
25836
25837 if ${TEST} -n "${WARN_JNI}" ; then
25838     { echo "$as_me:$LINENO: WARNING: ===========================================" >&5
25839 echo "$as_me: WARNING: ===========================================" >&2;}
25840     { echo "$as_me:$LINENO: WARNING: You have used one of the following options:" >&5
25841 echo "$as_me: WARNING: You have used one of the following options:" >&2;}
25842     { echo "$as_me:$LINENO: WARNING:     --enable-jni" >&5
25843 echo "$as_me: WARNING:     --enable-jni" >&2;}
25844     { echo "$as_me:$LINENO: WARNING:     --with-java-home" >&5
25845 echo "$as_me: WARNING:     --with-java-home" >&2;}
25846     { echo "$as_me:$LINENO: WARNING:     --with-java-platform" >&5
25847 echo "$as_me: WARNING:     --with-java-platform" >&2;}
25848     { echo "$as_me:$LINENO: WARNING:     --with-os-type" >&5
25849 echo "$as_me: WARNING:     --with-os-type" >&2;}
25850     { echo "$as_me:$LINENO: WARNING: These options are only necessary if" >&5
25851 echo "$as_me: WARNING: These options are only necessary if" >&2;}
25852     { echo "$as_me:$LINENO: WARNING: you want to use a worker of type jni." >&5
25853 echo "$as_me: WARNING: you want to use a worker of type jni." >&2;}
25854     { echo "$as_me:$LINENO: WARNING: These workers have been deprecated." >&5
25855 echo "$as_me: WARNING: These workers have been deprecated." >&2;}
25856     { echo "$as_me:$LINENO: WARNING: They do not work and will be removed from" >&5
25857 echo "$as_me: WARNING: They do not work and will be removed from" >&2;}
25858     { echo "$as_me:$LINENO: WARNING: a future release" >&5
25859 echo "$as_me: WARNING: a future release" >&2;}
25860     { echo "$as_me:$LINENO: WARNING: ===========================================" >&5
25861 echo "$as_me: WARNING: ===========================================" >&2;}
25862 fi
25863
25864 if ${TEST} -n "${WARN_CC}" ; then
25865     { echo "$as_me:$LINENO: WARNING: ===========================================" >&5
25866 echo "$as_me: WARNING: ===========================================" >&2;}
25867     { echo "$as_me:$LINENO: WARNING: Using CC from environment:" >&5
25868 echo "$as_me: WARNING: Using CC from environment:" >&2;}
25869     { echo "$as_me:$LINENO: WARNING:     CC=\"$CC\"" >&5
25870 echo "$as_me: WARNING:     CC=\"$CC\"" >&2;}
25871     { echo "$as_me:$LINENO: WARNING: instead of CC from apxs:" >&5
25872 echo "$as_me: WARNING: instead of CC from apxs:" >&2;}
25873     { echo "$as_me:$LINENO: WARNING:     CC=\"$APXSCC\"" >&5
25874 echo "$as_me: WARNING:     CC=\"$APXSCC\"" >&2;}
25875     { echo "$as_me:$LINENO: WARNING: If \"make\" throws an error of the form" >&5
25876 echo "$as_me: WARNING: If \"make\" throws an error of the form" >&2;}
25877     { echo "$as_me:$LINENO: WARNING:     \"libtool: compile: unable to infer tagged configuration\"" >&5
25878 echo "$as_me: WARNING:     \"libtool: compile: unable to infer tagged configuration\"" >&2;}
25879     { echo "$as_me:$LINENO: WARNING:     \"libtool: compile: specify a tag with \`--tag'\"" >&5
25880 echo "$as_me: WARNING:     \"libtool: compile: specify a tag with \`--tag'\"" >&2;}
25881     { echo "$as_me:$LINENO: WARNING: try running configure without setting CC," >&5
25882 echo "$as_me: WARNING: try running configure without setting CC," >&2;}
25883     { echo "$as_me:$LINENO: WARNING: or at least CC should start with \"$APXSCC\"" >&5
25884 echo "$as_me: WARNING: or at least CC should start with \"$APXSCC\"" >&2;}
25885     { echo "$as_me:$LINENO: WARNING: ===========================================" >&5
25886 echo "$as_me: WARNING: ===========================================" >&2;}
25887 fi