OSDN Git Service

* bug fix configure.ac
[modchxj/mod_chxj.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for mod_chxj 0.6.0-stable.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME='mod_chxj'
423 PACKAGE_TARNAME='mod_chxj'
424 PACKAGE_VERSION='0.6.0-stable'
425 PACKAGE_STRING='mod_chxj 0.6.0-stable'
426 PACKAGE_BUGREPORT=''
427
428 ac_unique_file="src/mod_chxj.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL APXS WAND_CONFIG APR_CONFIG with_apache_header QDEFS DDEFS LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures mod_chxj 0.6.0-stable to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016   --target=TARGET   configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021   case $ac_init_help in
1022      short | recursive ) echo "Configuration of mod_chxj 0.6.0-stable:";;
1023    esac
1024   cat <<\_ACEOF
1025
1026 Optional Features:
1027   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1028   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1029   --enable-shared[=PKGS]
1030                           build shared libraries [default=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=yes]
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036   --enable-img-conv-f      Please specify it when you change the file name of the image being written in the
1037 source by the automatic operation.
1038   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044   --with-pic              try to use only PIC/non-PIC objects [default=use
1045                           both]
1046   --with-tags[=TAGS]
1047                           include additional configurations [automatic]
1048   --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1049   --with-apxs=ARG Path of apxs program file.
1050   --with-apr-config=ARG  Path of apr-config program file.
1051   --with-iconv=ARG  specify the place of the libiconv directory.
1052   --with-iconv_hook=ARG  specify the place of the libiconv_hook directory.
1053
1054 Some influential environment variables:
1055   CC          C compiler command
1056   CFLAGS      C compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CPP         C preprocessor
1062   CXX         C++ compiler command
1063   CXXFLAGS    C++ compiler flags
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 _ACEOF
1072 fi
1073
1074 if test "$ac_init_help" = "recursive"; then
1075   # If there are subdirs, report their specific --help.
1076   ac_popdir=`pwd`
1077   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078     test -d $ac_dir || continue
1079     ac_builddir=.
1080
1081 if test "$ac_dir" != .; then
1082   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083   # A "../" for each directory in $ac_dir_suffix.
1084   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085 else
1086   ac_dir_suffix= ac_top_builddir=
1087 fi
1088
1089 case $srcdir in
1090   .)  # No --srcdir option.  We are building in place.
1091     ac_srcdir=.
1092     if test -z "$ac_top_builddir"; then
1093        ac_top_srcdir=.
1094     else
1095        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096     fi ;;
1097   [\\/]* | ?:[\\/]* )  # Absolute path.
1098     ac_srcdir=$srcdir$ac_dir_suffix;
1099     ac_top_srcdir=$srcdir ;;
1100   *) # Relative path.
1101     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103 esac
1104
1105 # Do not use `cd foo && pwd` to compute absolute paths, because
1106 # the directories may not exist.
1107 case `pwd` in
1108 .) ac_abs_builddir="$ac_dir";;
1109 *)
1110   case "$ac_dir" in
1111   .) ac_abs_builddir=`pwd`;;
1112   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114   esac;;
1115 esac
1116 case $ac_abs_builddir in
1117 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1118 *)
1119   case ${ac_top_builddir}. in
1120   .) ac_abs_top_builddir=$ac_abs_builddir;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_srcdir=$ac_srcdir;;
1127 *)
1128   case $ac_srcdir in
1129   .) ac_abs_srcdir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132   esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1136 *)
1137   case $ac_top_srcdir in
1138   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141   esac;;
1142 esac
1143
1144     cd $ac_dir
1145     # Check for guested configure; otherwise get Cygnus style configure.
1146     if test -f $ac_srcdir/configure.gnu; then
1147       echo
1148       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1149     elif test -f $ac_srcdir/configure; then
1150       echo
1151       $SHELL $ac_srcdir/configure  --help=recursive
1152     elif test -f $ac_srcdir/configure.ac ||
1153            test -f $ac_srcdir/configure.in; then
1154       echo
1155       $ac_configure --help
1156     else
1157       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158     fi
1159     cd "$ac_popdir"
1160   done
1161 fi
1162
1163 test -n "$ac_init_help" && exit 0
1164 if $ac_init_version; then
1165   cat <<\_ACEOF
1166 mod_chxj configure 0.6.0-stable
1167 generated by GNU Autoconf 2.59
1168
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1172 _ACEOF
1173   exit 0
1174 fi
1175 exec 5>config.log
1176 cat >&5 <<_ACEOF
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1179
1180 It was created by mod_chxj $as_me 0.6.0-stable, which was
1181 generated by GNU Autoconf 2.59.  Invocation command line was
1182
1183   $ $0 $@
1184
1185 _ACEOF
1186 {
1187 cat <<_ASUNAME
1188 ## --------- ##
1189 ## Platform. ##
1190 ## --------- ##
1191
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1200
1201 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1202 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1205 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1206 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1207 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1208
1209 _ASUNAME
1210
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 for as_dir in $PATH
1213 do
1214   IFS=$as_save_IFS
1215   test -z "$as_dir" && as_dir=.
1216   echo "PATH: $as_dir"
1217 done
1218
1219 } >&5
1220
1221 cat >&5 <<_ACEOF
1222
1223
1224 ## ----------- ##
1225 ## Core tests. ##
1226 ## ----------- ##
1227
1228 _ACEOF
1229
1230
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_configure_args=
1237 ac_configure_args0=
1238 ac_configure_args1=
1239 ac_sep=
1240 ac_must_keep_next=false
1241 for ac_pass in 1 2
1242 do
1243   for ac_arg
1244   do
1245     case $ac_arg in
1246     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248     | -silent | --silent | --silen | --sile | --sil)
1249       continue ;;
1250     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252     esac
1253     case $ac_pass in
1254     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255     2)
1256       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257       if test $ac_must_keep_next = true; then
1258         ac_must_keep_next=false # Got value, back to normal.
1259       else
1260         case $ac_arg in
1261           *=* | --config-cache | -C | -disable-* | --disable-* \
1262           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264           | -with-* | --with-* | -without-* | --without-* | --x)
1265             case "$ac_configure_args0 " in
1266               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267             esac
1268             ;;
1269           -* ) ac_must_keep_next=true ;;
1270         esac
1271       fi
1272       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273       # Get rid of the leading space.
1274       ac_sep=" "
1275       ;;
1276     esac
1277   done
1278 done
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log.  We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288   # Save into config.log some information that might help in debugging.
1289   {
1290     echo
1291
1292     cat <<\_ASBOX
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1296 _ASBOX
1297     echo
1298     # The following way of writing the cache mishandles newlines in values,
1299 {
1300   (set) 2>&1 |
1301     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302     *ac_space=\ *)
1303       sed -n \
1304         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306       ;;
1307     *)
1308       sed -n \
1309         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310       ;;
1311     esac;
1312 }
1313     echo
1314
1315     cat <<\_ASBOX
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1319 _ASBOX
1320     echo
1321     for ac_var in $ac_subst_vars
1322     do
1323       eval ac_val=$`echo $ac_var`
1324       echo "$ac_var='"'"'$ac_val'"'"'"
1325     done | sort
1326     echo
1327
1328     if test -n "$ac_subst_files"; then
1329       cat <<\_ASBOX
1330 ## ------------- ##
1331 ## Output files. ##
1332 ## ------------- ##
1333 _ASBOX
1334       echo
1335       for ac_var in $ac_subst_files
1336       do
1337         eval ac_val=$`echo $ac_var`
1338         echo "$ac_var='"'"'$ac_val'"'"'"
1339       done | sort
1340       echo
1341     fi
1342
1343     if test -s confdefs.h; then
1344       cat <<\_ASBOX
1345 ## ----------- ##
1346 ## confdefs.h. ##
1347 ## ----------- ##
1348 _ASBOX
1349       echo
1350       sed "/^$/d" confdefs.h | sort
1351       echo
1352     fi
1353     test "$ac_signal" != 0 &&
1354       echo "$as_me: caught signal $ac_signal"
1355     echo "$as_me: exit $exit_status"
1356   } >&5
1357   rm -f core *.core &&
1358   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359     exit $exit_status
1360      ' 0
1361 for ac_signal in 1 2 13 15; do
1362   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 done
1364 ac_signal=0
1365
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 echo >confdefs.h
1370
1371 # Predefined preprocessor variables.
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 _ACEOF
1396
1397
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401   if test "x$prefix" != xNONE; then
1402     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403   else
1404     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405   fi
1406 fi
1407 for ac_site_file in $CONFIG_SITE; do
1408   if test -r "$ac_site_file"; then
1409     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411     sed 's/^/| /' "$ac_site_file" >&5
1412     . "$ac_site_file"
1413   fi
1414 done
1415
1416 if test -r "$cache_file"; then
1417   # Some versions of bash will fail to source /dev/null (special
1418   # files actually), so we avoid doing that.
1419   if test -f "$cache_file"; then
1420     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1422     case $cache_file in
1423       [\\/]* | ?:[\\/]* ) . $cache_file;;
1424       *)                      . ./$cache_file;;
1425     esac
1426   fi
1427 else
1428   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1430   >$cache_file
1431 fi
1432
1433 # Check that the precious variables saved in the cache have kept the same
1434 # value.
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439   eval ac_new_set=\$ac_env_${ac_var}_set
1440   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441   eval ac_new_val="\$ac_env_${ac_var}_value"
1442   case $ac_old_set,$ac_new_set in
1443     set,)
1444       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446       ac_cache_corrupted=: ;;
1447     ,set)
1448       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450       ac_cache_corrupted=: ;;
1451     ,);;
1452     *)
1453       if test "x$ac_old_val" != "x$ac_new_val"; then
1454         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1457 echo "$as_me:   former value:  $ac_old_val" >&2;}
1458         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1459 echo "$as_me:   current value: $ac_new_val" >&2;}
1460         ac_cache_corrupted=:
1461       fi;;
1462   esac
1463   # Pass precious variables to config.status.
1464   if test "$ac_new_set" = set; then
1465     case $ac_new_val in
1466     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468     *) ac_arg=$ac_var=$ac_new_val ;;
1469     esac
1470     case " $ac_configure_args " in
1471       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1472       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473     esac
1474   fi
1475 done
1476 if $ac_cache_corrupted; then
1477   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481    { (exit 1); exit 1; }; }
1482 fi
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518 ac_aux_dir=
1519 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1520   if test -f $ac_dir/install-sh; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/install-sh -c"
1523     break
1524   elif test -f $ac_dir/install.sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install.sh -c"
1527     break
1528   elif test -f $ac_dir/shtool; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/shtool install -c"
1531     break
1532   fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543 # Make sure we can run config.sub.
1544 $ac_config_sub sun4 >/dev/null 2>&1 ||
1545   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1546 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1547    { (exit 1); exit 1; }; }
1548
1549 echo "$as_me:$LINENO: checking build system type" >&5
1550 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1551 if test "${ac_cv_build+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   ac_cv_build_alias=$build_alias
1555 test -z "$ac_cv_build_alias" &&
1556   ac_cv_build_alias=`$ac_config_guess`
1557 test -z "$ac_cv_build_alias" &&
1558   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1560    { (exit 1); exit 1; }; }
1561 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1562   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1564    { (exit 1); exit 1; }; }
1565
1566 fi
1567 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1568 echo "${ECHO_T}$ac_cv_build" >&6
1569 build=$ac_cv_build
1570 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573
1574
1575 echo "$as_me:$LINENO: checking host system type" >&5
1576 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1577 if test "${ac_cv_host+set}" = set; then
1578   echo $ECHO_N "(cached) $ECHO_C" >&6
1579 else
1580   ac_cv_host_alias=$host_alias
1581 test -z "$ac_cv_host_alias" &&
1582   ac_cv_host_alias=$ac_cv_build_alias
1583 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1584   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1586    { (exit 1); exit 1; }; }
1587
1588 fi
1589 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1590 echo "${ECHO_T}$ac_cv_host" >&6
1591 host=$ac_cv_host
1592 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597 echo "$as_me:$LINENO: checking target system type" >&5
1598 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1599 if test "${ac_cv_target+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   ac_cv_target_alias=$target_alias
1603 test "x$ac_cv_target_alias" = "x" &&
1604   ac_cv_target_alias=$ac_cv_host_alias
1605 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1606   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1607 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1608    { (exit 1); exit 1; }; }
1609
1610 fi
1611 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1612 echo "${ECHO_T}$ac_cv_target" >&6
1613 target=$ac_cv_target
1614 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617
1618
1619 # The aliases save the names the user supplied, while $host etc.
1620 # will get canonicalized.
1621 test -n "$target_alias" &&
1622   test "$program_prefix$program_suffix$program_transform_name" = \
1623     NONENONEs,x,x, &&
1624   program_prefix=${target_alias}-
1625 am__api_version="1.4"
1626 # Find a good install program.  We prefer a C program (faster),
1627 # so one script is as good as another.  But avoid the broken or
1628 # incompatible versions:
1629 # SysV /etc/install, /usr/sbin/install
1630 # SunOS /usr/etc/install
1631 # IRIX /sbin/install
1632 # AIX /bin/install
1633 # AmigaOS /C/install, which installs bootblocks on floppy discs
1634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1637 # OS/2's system install, which has a completely different semantic
1638 # ./install, which can be erroneously created by make from ./install.sh.
1639 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1640 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1641 if test -z "$INSTALL"; then
1642 if test "${ac_cv_path_install+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   # Account for people who put trailing slashes in PATH elements.
1651 case $as_dir/ in
1652   ./ | .// | /cC/* | \
1653   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1654   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1655   /usr/ucb/* ) ;;
1656   *)
1657     # OSF1 and SCO ODT 3.0 have their own names for install.
1658     # Don't use installbsd from OSF since it installs stuff as root
1659     # by default.
1660     for ac_prog in ginstall scoinst install; do
1661       for ac_exec_ext in '' $ac_executable_extensions; do
1662         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1663           if test $ac_prog = install &&
1664             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665             # AIX install.  It has an incompatible calling convention.
1666             :
1667           elif test $ac_prog = install &&
1668             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1669             # program-specific install script used by HP pwplus--don't use.
1670             :
1671           else
1672             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1673             break 3
1674           fi
1675         fi
1676       done
1677     done
1678     ;;
1679 esac
1680 done
1681
1682
1683 fi
1684   if test "${ac_cv_path_install+set}" = set; then
1685     INSTALL=$ac_cv_path_install
1686   else
1687     # As a last resort, use the slow shell script.  We don't cache a
1688     # path for INSTALL within a source directory, because that will
1689     # break other packages using the cache if that directory is
1690     # removed, or if the path is relative.
1691     INSTALL=$ac_install_sh
1692   fi
1693 fi
1694 echo "$as_me:$LINENO: result: $INSTALL" >&5
1695 echo "${ECHO_T}$INSTALL" >&6
1696
1697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1698 # It thinks the first close brace ends the variable substitution.
1699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1700
1701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1702
1703 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1704
1705 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1706 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1707 # Just in case
1708 sleep 1
1709 echo timestamp > conftestfile
1710 # Do `set' in a subshell so we don't clobber the current shell's
1711 # arguments.  Must try -L first in case configure is actually a
1712 # symlink; some systems play weird games with the mod time of symlinks
1713 # (eg FreeBSD returns the mod time of the symlink's containing
1714 # directory).
1715 if (
1716    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1717    if test "$*" = "X"; then
1718       # -L didn't work.
1719       set X `ls -t $srcdir/configure conftestfile`
1720    fi
1721    if test "$*" != "X $srcdir/configure conftestfile" \
1722       && test "$*" != "X conftestfile $srcdir/configure"; then
1723
1724       # If neither matched, then we have a broken ls.  This can happen
1725       # if, for instance, CONFIG_SHELL is bash and it inherits a
1726       # broken ls alias from the environment.  This has actually
1727       # happened.  Such a system could not be considered "sane".
1728       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1729 alias in your environment" >&5
1730 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1731 alias in your environment" >&2;}
1732    { (exit 1); exit 1; }; }
1733    fi
1734
1735    test "$2" = conftestfile
1736    )
1737 then
1738    # Ok.
1739    :
1740 else
1741    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742 Check your system clock" >&5
1743 echo "$as_me: error: newly created file is older than distributed files!
1744 Check your system clock" >&2;}
1745    { (exit 1); exit 1; }; }
1746 fi
1747 rm -f conftest*
1748 echo "$as_me:$LINENO: result: yes" >&5
1749 echo "${ECHO_T}yes" >&6
1750 test "$program_prefix" != NONE &&
1751   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1752 # Use a double $ so make ignores it.
1753 test "$program_suffix" != NONE &&
1754   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1755 # Double any \ or $.  echo might interpret backslashes.
1756 # By default was `s,x,x', remove it if useless.
1757 cat <<\_ACEOF >conftest.sed
1758 s/[\\$]/&&/g;s/;s,x,x,$//
1759 _ACEOF
1760 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1761 rm conftest.sed
1762
1763 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1764 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1765 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1766 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1767   echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769   cat >conftest.make <<\_ACEOF
1770 all:
1771         @echo 'ac_maketemp="$(MAKE)"'
1772 _ACEOF
1773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1774 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1775 if test -n "$ac_maketemp"; then
1776   eval ac_cv_prog_make_${ac_make}_set=yes
1777 else
1778   eval ac_cv_prog_make_${ac_make}_set=no
1779 fi
1780 rm -f conftest.make
1781 fi
1782 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1783   echo "$as_me:$LINENO: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1785   SET_MAKE=
1786 else
1787   echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789   SET_MAKE="MAKE=${MAKE-make}"
1790 fi
1791
1792
1793 PACKAGE=mod_chxj
1794
1795 VERSION=0.6.0-stable
1796
1797 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1798   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800    { (exit 1); exit 1; }; }
1801 fi
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE "$PACKAGE"
1805 _ACEOF
1806
1807
1808 cat >>confdefs.h <<_ACEOF
1809 #define VERSION "$VERSION"
1810 _ACEOF
1811
1812
1813
1814 missing_dir=`cd $ac_aux_dir && pwd`
1815 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1816 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1817 # Run test in a subshell; some versions of sh will print an error if
1818 # an executable is not found, even if stderr is redirected.
1819 # Redirect stdin to placate older versions of autoconf.  Sigh.
1820 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1821    ACLOCAL=aclocal-${am__api_version}
1822    echo "$as_me:$LINENO: result: found" >&5
1823 echo "${ECHO_T}found" >&6
1824 else
1825    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1826    echo "$as_me:$LINENO: result: missing" >&5
1827 echo "${ECHO_T}missing" >&6
1828 fi
1829
1830 echo "$as_me:$LINENO: checking for working autoconf" >&5
1831 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1832 # Run test in a subshell; some versions of sh will print an error if
1833 # an executable is not found, even if stderr is redirected.
1834 # Redirect stdin to placate older versions of autoconf.  Sigh.
1835 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1836    AUTOCONF=autoconf
1837    echo "$as_me:$LINENO: result: found" >&5
1838 echo "${ECHO_T}found" >&6
1839 else
1840    AUTOCONF="$missing_dir/missing autoconf"
1841    echo "$as_me:$LINENO: result: missing" >&5
1842 echo "${ECHO_T}missing" >&6
1843 fi
1844
1845 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1846 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1847 # Run test in a subshell; some versions of sh will print an error if
1848 # an executable is not found, even if stderr is redirected.
1849 # Redirect stdin to placate older versions of autoconf.  Sigh.
1850 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1851    AUTOMAKE=automake-${am__api_version}
1852    echo "$as_me:$LINENO: result: found" >&5
1853 echo "${ECHO_T}found" >&6
1854 else
1855    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1856    echo "$as_me:$LINENO: result: missing" >&5
1857 echo "${ECHO_T}missing" >&6
1858 fi
1859
1860 echo "$as_me:$LINENO: checking for working autoheader" >&5
1861 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1862 # Run test in a subshell; some versions of sh will print an error if
1863 # an executable is not found, even if stderr is redirected.
1864 # Redirect stdin to placate older versions of autoconf.  Sigh.
1865 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1866    AUTOHEADER=autoheader
1867    echo "$as_me:$LINENO: result: found" >&5
1868 echo "${ECHO_T}found" >&6
1869 else
1870    AUTOHEADER="$missing_dir/missing autoheader"
1871    echo "$as_me:$LINENO: result: missing" >&5
1872 echo "${ECHO_T}missing" >&6
1873 fi
1874
1875 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1876 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1877 # Run test in a subshell; some versions of sh will print an error if
1878 # an executable is not found, even if stderr is redirected.
1879 # Redirect stdin to placate older versions of autoconf.  Sigh.
1880 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1881    MAKEINFO=makeinfo
1882    echo "$as_me:$LINENO: result: found" >&5
1883 echo "${ECHO_T}found" >&6
1884 else
1885    MAKEINFO="$missing_dir/missing makeinfo"
1886    echo "$as_me:$LINENO: result: missing" >&5
1887 echo "${ECHO_T}missing" >&6
1888 fi
1889
1890
1891
1892           ac_config_headers="$ac_config_headers include/config.h"
1893
1894           ac_config_commands="$ac_config_commands default-1"
1895
1896
1897
1898 # Checks for programs.
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 if test -n "$ac_tool_prefix"; then
1905   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   if test -n "$CC"; then
1913   ac_cv_prog_CC="$CC" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   for ac_exec_ext in '' $ac_executable_extensions; do
1921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 fi
1930 fi
1931 CC=$ac_cv_prog_CC
1932 if test -n "$CC"; then
1933   echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940 fi
1941 if test -z "$ac_cv_prog_CC"; then
1942   ac_ct_CC=$CC
1943   # Extract the first word of "gcc", so it can be a program name with args.
1944 set dummy gcc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$ac_ct_CC"; then
1951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_ac_ct_CC="gcc"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978   CC=$ac_ct_CC
1979 else
1980   CC="$ac_cv_prog_CC"
1981 fi
1982
1983 if test -z "$CC"; then
1984   if test -n "$ac_tool_prefix"; then
1985   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1986 set dummy ${ac_tool_prefix}cc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   if test -n "$CC"; then
1993   ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998   IFS=$as_save_IFS
1999   test -z "$as_dir" && as_dir=.
2000   for ac_exec_ext in '' $ac_executable_extensions; do
2001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002     ac_cv_prog_CC="${ac_tool_prefix}cc"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2015 else
2016   echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2018 fi
2019
2020 fi
2021 if test -z "$ac_cv_prog_CC"; then
2022   ac_ct_CC=$CC
2023   # Extract the first word of "cc", so it can be a program name with args.
2024 set dummy cc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test -n "$ac_ct_CC"; then
2031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038   for ac_exec_ext in '' $ac_executable_extensions; do
2039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040     ac_cv_prog_ac_ct_CC="cc"
2041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042     break 2
2043   fi
2044 done
2045 done
2046
2047 fi
2048 fi
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6
2053 else
2054   echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2056 fi
2057
2058   CC=$ac_ct_CC
2059 else
2060   CC="$ac_cv_prog_CC"
2061 fi
2062
2063 fi
2064 if test -z "$CC"; then
2065   # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc; ac_word=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test -n "$CC"; then
2073   ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075   ac_prog_rejected=no
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2084        ac_prog_rejected=yes
2085        continue
2086      fi
2087     ac_cv_prog_CC="cc"
2088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089     break 2
2090   fi
2091 done
2092 done
2093
2094 if test $ac_prog_rejected = yes; then
2095   # We found a bogon in the path, so make sure we never use it.
2096   set dummy $ac_cv_prog_CC
2097   shift
2098   if test $# != 0; then
2099     # We chose a different compiler from the bogus one.
2100     # However, it has the same basename, so the bogon will be chosen
2101     # first if we set CC to just the basename; use the full file name.
2102     shift
2103     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2104   fi
2105 fi
2106 fi
2107 fi
2108 CC=$ac_cv_prog_CC
2109 if test -n "$CC"; then
2110   echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2112 else
2113   echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2115 fi
2116
2117 fi
2118 if test -z "$CC"; then
2119   if test -n "$ac_tool_prefix"; then
2120   for ac_prog in cl
2121   do
2122     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_CC+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   if test -n "$CC"; then
2130   ac_cv_prog_CC="$CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135   IFS=$as_save_IFS
2136   test -z "$as_dir" && as_dir=.
2137   for ac_exec_ext in '' $ac_executable_extensions; do
2138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141     break 2
2142   fi
2143 done
2144 done
2145
2146 fi
2147 fi
2148 CC=$ac_cv_prog_CC
2149 if test -n "$CC"; then
2150   echo "$as_me:$LINENO: result: $CC" >&5
2151 echo "${ECHO_T}$CC" >&6
2152 else
2153   echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2155 fi
2156
2157     test -n "$CC" && break
2158   done
2159 fi
2160 if test -z "$CC"; then
2161   ac_ct_CC=$CC
2162   for ac_prog in cl
2163 do
2164   # Extract the first word of "$ac_prog", so it can be a program name with args.
2165 set dummy $ac_prog; ac_word=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2169   echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171   if test -n "$ac_ct_CC"; then
2172   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177   IFS=$as_save_IFS
2178   test -z "$as_dir" && as_dir=.
2179   for ac_exec_ext in '' $ac_executable_extensions; do
2180   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181     ac_cv_prog_ac_ct_CC="$ac_prog"
2182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183     break 2
2184   fi
2185 done
2186 done
2187
2188 fi
2189 fi
2190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2191 if test -n "$ac_ct_CC"; then
2192   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2193 echo "${ECHO_T}$ac_ct_CC" >&6
2194 else
2195   echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2197 fi
2198
2199   test -n "$ac_ct_CC" && break
2200 done
2201
2202   CC=$ac_ct_CC
2203 fi
2204
2205 fi
2206
2207
2208 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: no acceptable C compiler found in \$PATH
2211 See \`config.log' for more details." >&2;}
2212    { (exit 1); exit 1; }; }
2213
2214 # Provide some information about the compiler.
2215 echo "$as_me:$LINENO:" \
2216      "checking for C compiler version" >&5
2217 ac_compiler=`set X $ac_compile; echo $2`
2218 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2219   (eval $ac_compiler --version </dev/null >&5) 2>&5
2220   ac_status=$?
2221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222   (exit $ac_status); }
2223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2224   (eval $ac_compiler -v </dev/null >&5) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }
2228 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2229   (eval $ac_compiler -V </dev/null >&5) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }
2233
2234 cat >conftest.$ac_ext <<_ACEOF
2235 /* confdefs.h.  */
2236 _ACEOF
2237 cat confdefs.h >>conftest.$ac_ext
2238 cat >>conftest.$ac_ext <<_ACEOF
2239 /* end confdefs.h.  */
2240
2241 int
2242 main ()
2243 {
2244
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 ac_clean_files_save=$ac_clean_files
2250 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2251 # Try to create an executable without -o first, disregard a.out.
2252 # It will help us diagnose broken compilers, and finding out an intuition
2253 # of exeext.
2254 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2255 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2256 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2257 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2258   (eval $ac_link_default) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; then
2262   # Find the output, starting from the most likely.  This scheme is
2263 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2264 # resort.
2265
2266 # Be careful to initialize this variable, since it used to be cached.
2267 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2268 ac_cv_exeext=
2269 # b.out is created by i960 compilers.
2270 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2271 do
2272   test -f "$ac_file" || continue
2273   case $ac_file in
2274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2275         ;;
2276     conftest.$ac_ext )
2277         # This is the source file.
2278         ;;
2279     [ab].out )
2280         # We found the default executable, but exeext='' is most
2281         # certainly right.
2282         break;;
2283     *.* )
2284         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285         # FIXME: I believe we export ac_cv_exeext for Libtool,
2286         # but it would be cool to find out if it's true.  Does anybody
2287         # maintain Libtool? --akim.
2288         export ac_cv_exeext
2289         break;;
2290     * )
2291         break;;
2292   esac
2293 done
2294 else
2295   echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: C compiler cannot create executables
2301 See \`config.log' for more details." >&2;}
2302    { (exit 77); exit 77; }; }
2303 fi
2304
2305 ac_exeext=$ac_cv_exeext
2306 echo "$as_me:$LINENO: result: $ac_file" >&5
2307 echo "${ECHO_T}$ac_file" >&6
2308
2309 # Check the compiler produces executables we can run.  If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2312 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2313 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2314 # If not cross compiling, check that we can run a simple program.
2315 if test "$cross_compiling" != yes; then
2316   if { ac_try='./$ac_file'
2317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318   (eval $ac_try) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; }; then
2322     cross_compiling=no
2323   else
2324     if test "$cross_compiling" = maybe; then
2325         cross_compiling=yes
2326     else
2327         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&2;}
2333    { (exit 1); exit 1; }; }
2334     fi
2335   fi
2336 fi
2337 echo "$as_me:$LINENO: result: yes" >&5
2338 echo "${ECHO_T}yes" >&6
2339
2340 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2341 ac_clean_files=$ac_clean_files_save
2342 # Check the compiler produces executables we can run.  If not, either
2343 # the compiler is broken, or we cross compile.
2344 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2346 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347 echo "${ECHO_T}$cross_compiling" >&6
2348
2349 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2352   (eval $ac_link) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); }; then
2356   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2357 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2358 # work properly (i.e., refer to `conftest.exe'), while it won't with
2359 # `rm'.
2360 for ac_file in conftest.exe conftest conftest.*; do
2361   test -f "$ac_file" || continue
2362   case $ac_file in
2363     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2364     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365           export ac_cv_exeext
2366           break;;
2367     * ) break;;
2368   esac
2369 done
2370 else
2371   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2374 See \`config.log' for more details." >&2;}
2375    { (exit 1); exit 1; }; }
2376 fi
2377
2378 rm -f conftest$ac_cv_exeext
2379 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2380 echo "${ECHO_T}$ac_cv_exeext" >&6
2381
2382 rm -f conftest.$ac_ext
2383 EXEEXT=$ac_cv_exeext
2384 ac_exeext=$EXEEXT
2385 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2386 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2387 if test "${ac_cv_objext+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h.  */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h.  */
2396
2397 int
2398 main ()
2399 {
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.o conftest.obj
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407   (eval $ac_compile) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; then
2411   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2412   case $ac_file in
2413     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2414     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2415        break;;
2416   esac
2417 done
2418 else
2419   echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2425 See \`config.log' for more details." >&2;}
2426    { (exit 1); exit 1; }; }
2427 fi
2428
2429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2430 fi
2431 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2432 echo "${ECHO_T}$ac_cv_objext" >&6
2433 OBJEXT=$ac_cv_objext
2434 ac_objext=$OBJEXT
2435 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   cat >conftest.$ac_ext <<_ACEOF
2441 /* confdefs.h.  */
2442 _ACEOF
2443 cat confdefs.h >>conftest.$ac_ext
2444 cat >>conftest.$ac_ext <<_ACEOF
2445 /* end confdefs.h.  */
2446
2447 int
2448 main ()
2449 {
2450 #ifndef __GNUC__
2451        choke me
2452 #endif
2453
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460   (eval $ac_compile) 2>conftest.er1
2461   ac_status=$?
2462   grep -v '^ *+' conftest.er1 >conftest.err
2463   rm -f conftest.er1
2464   cat conftest.err >&5
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); } &&
2467          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; } &&
2473          { ac_try='test -s conftest.$ac_objext'
2474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475   (eval $ac_try) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; }; then
2479   ac_compiler_gnu=yes
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 ac_compiler_gnu=no
2485 fi
2486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2488
2489 fi
2490 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2491 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2492 GCC=`test $ac_compiler_gnu = yes && echo yes`
2493 ac_test_CFLAGS=${CFLAGS+set}
2494 ac_save_CFLAGS=$CFLAGS
2495 CFLAGS="-g"
2496 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2497 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_g+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h.  */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h.  */
2507
2508 int
2509 main ()
2510 {
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518   (eval $ac_compile) 2>conftest.er1
2519   ac_status=$?
2520   grep -v '^ *+' conftest.er1 >conftest.err
2521   rm -f conftest.er1
2522   cat conftest.err >&5
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); } &&
2525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527   (eval $ac_try) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   ac_cv_prog_cc_g=yes
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_cv_prog_cc_g=no
2543 fi
2544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545 fi
2546 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2547 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2548 if test "$ac_test_CFLAGS" = set; then
2549   CFLAGS=$ac_save_CFLAGS
2550 elif test $ac_cv_prog_cc_g = yes; then
2551   if test "$GCC" = yes; then
2552     CFLAGS="-g -O2"
2553   else
2554     CFLAGS="-g"
2555   fi
2556 else
2557   if test "$GCC" = yes; then
2558     CFLAGS="-O2"
2559   else
2560     CFLAGS=
2561   fi
2562 fi
2563 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2564 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2565 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   ac_cv_prog_cc_stdc=no
2569 ac_save_CC=$CC
2570 cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h.  */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h.  */
2576 #include <stdarg.h>
2577 #include <stdio.h>
2578 #include <sys/types.h>
2579 #include <sys/stat.h>
2580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2581 struct buf { int x; };
2582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2583 static char *e (p, i)
2584      char **p;
2585      int i;
2586 {
2587   return p[i];
2588 }
2589 static char *f (char * (*g) (char **, int), char **p, ...)
2590 {
2591   char *s;
2592   va_list v;
2593   va_start (v,p);
2594   s = g (p, va_arg (v,int));
2595   va_end (v);
2596   return s;
2597 }
2598
2599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2600    function prototypes and stuff, but not '\xHH' hex character constants.
2601    These don't provoke an error unfortunately, instead are silently treated
2602    as 'x'.  The following induces an error, until -std1 is added to get
2603    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2604    array size at least.  It's necessary to write '\x00'==0 to get something
2605    that's true only with -std1.  */
2606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2607
2608 int test (int i, double x);
2609 struct s1 {int (*f) (int a);};
2610 struct s2 {int (*f) (double a);};
2611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2612 int argc;
2613 char **argv;
2614 int
2615 main ()
2616 {
2617 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 # Don't try gcc -ansi; that turns off useful extensions and
2623 # breaks some systems' header files.
2624 # AIX                   -qlanglvl=ansi
2625 # Ultrix and OSF/1      -std1
2626 # HP-UX 10.20 and later -Ae
2627 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2628 # SVR4                  -Xc -D__EXTENSIONS__
2629 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2630 do
2631   CC="$ac_save_CC $ac_arg"
2632   rm -f conftest.$ac_objext
2633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634   (eval $ac_compile) 2>conftest.er1
2635   ac_status=$?
2636   grep -v '^ *+' conftest.er1 >conftest.err
2637   rm -f conftest.er1
2638   cat conftest.err >&5
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); } &&
2641          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643   (eval $ac_try) 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; } &&
2647          { ac_try='test -s conftest.$ac_objext'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; }; then
2653   ac_cv_prog_cc_stdc=$ac_arg
2654 break
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 fi
2660 rm -f conftest.err conftest.$ac_objext
2661 done
2662 rm -f conftest.$ac_ext conftest.$ac_objext
2663 CC=$ac_save_CC
2664
2665 fi
2666
2667 case "x$ac_cv_prog_cc_stdc" in
2668   x|xno)
2669     echo "$as_me:$LINENO: result: none needed" >&5
2670 echo "${ECHO_T}none needed" >&6 ;;
2671   *)
2672     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2673 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2674     CC="$CC $ac_cv_prog_cc_stdc" ;;
2675 esac
2676
2677 # Some people use a C++ compiler to compile C.  Since we use `exit',
2678 # in C++ we need to declare it.  In case someone uses the same compiler
2679 # for both compiling C and C++ we need to have the C++ compiler decide
2680 # the declaration of exit, since it's the most demanding environment.
2681 cat >conftest.$ac_ext <<_ACEOF
2682 #ifndef __cplusplus
2683   choke me
2684 #endif
2685 _ACEOF
2686 rm -f conftest.$ac_objext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688   (eval $ac_compile) 2>conftest.er1
2689   ac_status=$?
2690   grep -v '^ *+' conftest.er1 >conftest.err
2691   rm -f conftest.er1
2692   cat conftest.err >&5
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); } &&
2695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697   (eval $ac_try) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }; } &&
2701          { ac_try='test -s conftest.$ac_objext'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; }; then
2707   for ac_declaration in \
2708    '' \
2709    'extern "C" void std::exit (int) throw (); using std::exit;' \
2710    'extern "C" void std::exit (int); using std::exit;' \
2711    'extern "C" void exit (int) throw ();' \
2712    'extern "C" void exit (int);' \
2713    'void exit (int);'
2714 do
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721 $ac_declaration
2722 #include <stdlib.h>
2723 int
2724 main ()
2725 {
2726 exit (42);
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733   (eval $ac_compile) 2>conftest.er1
2734   ac_status=$?
2735   grep -v '^ *+' conftest.er1 >conftest.err
2736   rm -f conftest.er1
2737   cat conftest.err >&5
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); } &&
2740          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   :
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 continue
2758 fi
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760   cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766 $ac_declaration
2767 int
2768 main ()
2769 {
2770 exit (42);
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777   (eval $ac_compile) 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } &&
2784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } &&
2790          { ac_try='test -s conftest.$ac_objext'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; }; then
2796   break
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 fi
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 done
2804 rm -f conftest*
2805 if test -n "$ac_declaration"; then
2806   echo '#ifdef __cplusplus' >>confdefs.h
2807   echo $ac_declaration      >>confdefs.h
2808   echo '#endif'             >>confdefs.h
2809 fi
2810
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 fi
2816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 ac_ext=c
2818 ac_cpp='$CPP $CPPFLAGS'
2819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823 # Find a good install program.  We prefer a C program (faster),
2824 # so one script is as good as another.  But avoid the broken or
2825 # incompatible versions:
2826 # SysV /etc/install, /usr/sbin/install
2827 # SunOS /usr/etc/install
2828 # IRIX /sbin/install
2829 # AIX /bin/install
2830 # AmigaOS /C/install, which installs bootblocks on floppy discs
2831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834 # OS/2's system install, which has a completely different semantic
2835 # ./install, which can be erroneously created by make from ./install.sh.
2836 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2837 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2838 if test -z "$INSTALL"; then
2839 if test "${ac_cv_path_install+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847   # Account for people who put trailing slashes in PATH elements.
2848 case $as_dir/ in
2849   ./ | .// | /cC/* | \
2850   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2851   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2852   /usr/ucb/* ) ;;
2853   *)
2854     # OSF1 and SCO ODT 3.0 have their own names for install.
2855     # Don't use installbsd from OSF since it installs stuff as root
2856     # by default.
2857     for ac_prog in ginstall scoinst install; do
2858       for ac_exec_ext in '' $ac_executable_extensions; do
2859         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2860           if test $ac_prog = install &&
2861             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2862             # AIX install.  It has an incompatible calling convention.
2863             :
2864           elif test $ac_prog = install &&
2865             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866             # program-specific install script used by HP pwplus--don't use.
2867             :
2868           else
2869             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2870             break 3
2871           fi
2872         fi
2873       done
2874     done
2875     ;;
2876 esac
2877 done
2878
2879
2880 fi
2881   if test "${ac_cv_path_install+set}" = set; then
2882     INSTALL=$ac_cv_path_install
2883   else
2884     # As a last resort, use the slow shell script.  We don't cache a
2885     # path for INSTALL within a source directory, because that will
2886     # break other packages using the cache if that directory is
2887     # removed, or if the path is relative.
2888     INSTALL=$ac_install_sh
2889   fi
2890 fi
2891 echo "$as_me:$LINENO: result: $INSTALL" >&5
2892 echo "${ECHO_T}$INSTALL" >&6
2893
2894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2895 # It thinks the first close brace ends the variable substitution.
2896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2897
2898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2899
2900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2901
2902 # Check whether --enable-shared or --disable-shared was given.
2903 if test "${enable_shared+set}" = set; then
2904   enableval="$enable_shared"
2905   p=${PACKAGE-default}
2906     case $enableval in
2907     yes) enable_shared=yes ;;
2908     no) enable_shared=no ;;
2909     *)
2910       enable_shared=no
2911       # Look at the argument we got.  We use all the common list separators.
2912       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2913       for pkg in $enableval; do
2914         IFS="$lt_save_ifs"
2915         if test "X$pkg" = "X$p"; then
2916           enable_shared=yes
2917         fi
2918       done
2919       IFS="$lt_save_ifs"
2920       ;;
2921     esac
2922 else
2923   enable_shared=yes
2924 fi;
2925
2926 # Check whether --enable-static or --disable-static was given.
2927 if test "${enable_static+set}" = set; then
2928   enableval="$enable_static"
2929   p=${PACKAGE-default}
2930     case $enableval in
2931     yes) enable_static=yes ;;
2932     no) enable_static=no ;;
2933     *)
2934      enable_static=no
2935       # Look at the argument we got.  We use all the common list separators.
2936       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2937       for pkg in $enableval; do
2938         IFS="$lt_save_ifs"
2939         if test "X$pkg" = "X$p"; then
2940           enable_static=yes
2941         fi
2942       done
2943       IFS="$lt_save_ifs"
2944       ;;
2945     esac
2946 else
2947   enable_static=yes
2948 fi;
2949
2950 # Check whether --enable-fast-install or --disable-fast-install was given.
2951 if test "${enable_fast_install+set}" = set; then
2952   enableval="$enable_fast_install"
2953   p=${PACKAGE-default}
2954     case $enableval in
2955     yes) enable_fast_install=yes ;;
2956     no) enable_fast_install=no ;;
2957     *)
2958       enable_fast_install=no
2959       # Look at the argument we got.  We use all the common list separators.
2960       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2961       for pkg in $enableval; do
2962         IFS="$lt_save_ifs"
2963         if test "X$pkg" = "X$p"; then
2964           enable_fast_install=yes
2965         fi
2966       done
2967       IFS="$lt_save_ifs"
2968       ;;
2969     esac
2970 else
2971   enable_fast_install=yes
2972 fi;
2973
2974 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2975 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2976 if test "${lt_cv_path_SED+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   # Loop through the user's path and test for sed and gsed.
2980 # Then use that list of sed's as ones to test for truncation.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984   IFS=$as_save_IFS
2985   test -z "$as_dir" && as_dir=.
2986   for lt_ac_prog in sed gsed; do
2987     for ac_exec_ext in '' $ac_executable_extensions; do
2988       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2989         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2990       fi
2991     done
2992   done
2993 done
2994 lt_ac_max=0
2995 lt_ac_count=0
2996 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2997 # along with /bin/sed that truncates output.
2998 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2999   test ! -f $lt_ac_sed && continue
3000   cat /dev/null > conftest.in
3001   lt_ac_count=0
3002   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3003   # Check for GNU sed and select it if it is found.
3004   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3005     lt_cv_path_SED=$lt_ac_sed
3006     break
3007   fi
3008   while true; do
3009     cat conftest.in conftest.in >conftest.tmp
3010     mv conftest.tmp conftest.in
3011     cp conftest.in conftest.nl
3012     echo >>conftest.nl
3013     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3014     cmp -s conftest.out conftest.nl || break
3015     # 10000 chars as input seems more than enough
3016     test $lt_ac_count -gt 10 && break
3017     lt_ac_count=`expr $lt_ac_count + 1`
3018     if test $lt_ac_count -gt $lt_ac_max; then
3019       lt_ac_max=$lt_ac_count
3020       lt_cv_path_SED=$lt_ac_sed
3021     fi
3022   done
3023 done
3024
3025 fi
3026
3027 SED=$lt_cv_path_SED
3028 echo "$as_me:$LINENO: result: $SED" >&5
3029 echo "${ECHO_T}$SED" >&6
3030
3031 echo "$as_me:$LINENO: checking for egrep" >&5
3032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3033 if test "${ac_cv_prog_egrep+set}" = set; then
3034   echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3037     then ac_cv_prog_egrep='grep -E'
3038     else ac_cv_prog_egrep='egrep'
3039     fi
3040 fi
3041 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3042 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3043  EGREP=$ac_cv_prog_egrep
3044
3045
3046
3047 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3048 if test "${with_gnu_ld+set}" = set; then
3049   withval="$with_gnu_ld"
3050   test "$withval" = no || with_gnu_ld=yes
3051 else
3052   with_gnu_ld=no
3053 fi;
3054 ac_prog=ld
3055 if test "$GCC" = yes; then
3056   # Check if gcc -print-prog-name=ld gives a path.
3057   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3058 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3059   case $host in
3060   *-*-mingw*)
3061     # gcc leaves a trailing carriage return which upsets mingw
3062     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3063   *)
3064     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3065   esac
3066   case $ac_prog in
3067     # Accept absolute paths.
3068     [\\/]* | ?:[\\/]*)
3069       re_direlt='/[^/][^/]*/\.\./'
3070       # Canonicalize the pathname of ld
3071       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3072       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3073         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3074       done
3075       test -z "$LD" && LD="$ac_prog"
3076       ;;
3077   "")
3078     # If it fails, then pretend we aren't using GCC.
3079     ac_prog=ld
3080     ;;
3081   *)
3082     # If it is relative, then search for the first ld in PATH.
3083     with_gnu_ld=unknown
3084     ;;
3085   esac
3086 elif test "$with_gnu_ld" = yes; then
3087   echo "$as_me:$LINENO: checking for GNU ld" >&5
3088 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3089 else
3090   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3091 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3092 fi
3093 if test "${lt_cv_path_LD+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096   if test -z "$LD"; then
3097   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3098   for ac_dir in $PATH; do
3099     IFS="$lt_save_ifs"
3100     test -z "$ac_dir" && ac_dir=.
3101     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3102       lt_cv_path_LD="$ac_dir/$ac_prog"
3103       # Check to see if the program is GNU ld.  I'd rather use --version,
3104       # but apparently some variants of GNU ld only accept -v.
3105       # Break only if it was the GNU/non-GNU ld that we prefer.
3106       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3107       *GNU* | *'with BFD'*)
3108         test "$with_gnu_ld" != no && break
3109         ;;
3110       *)
3111         test "$with_gnu_ld" != yes && break
3112         ;;
3113       esac
3114     fi
3115   done
3116   IFS="$lt_save_ifs"
3117 else
3118   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3119 fi
3120 fi
3121
3122 LD="$lt_cv_path_LD"
3123 if test -n "$LD"; then
3124   echo "$as_me:$LINENO: result: $LD" >&5
3125 echo "${ECHO_T}$LD" >&6
3126 else
3127   echo "$as_me:$LINENO: result: no" >&5
3128 echo "${ECHO_T}no" >&6
3129 fi
3130 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3131 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3132    { (exit 1); exit 1; }; }
3133 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3134 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3135 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3139 case `$LD -v 2>&1 </dev/null` in
3140 *GNU* | *'with BFD'*)
3141   lt_cv_prog_gnu_ld=yes
3142   ;;
3143 *)
3144   lt_cv_prog_gnu_ld=no
3145   ;;
3146 esac
3147 fi
3148 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3149 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3150 with_gnu_ld=$lt_cv_prog_gnu_ld
3151
3152
3153 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3154 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3155 if test "${lt_cv_ld_reload_flag+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   lt_cv_ld_reload_flag='-r'
3159 fi
3160 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3161 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3162 reload_flag=$lt_cv_ld_reload_flag
3163 case $reload_flag in
3164 "" | " "*) ;;
3165 *) reload_flag=" $reload_flag" ;;
3166 esac
3167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3168 case $host_os in
3169   darwin*)
3170     if test "$GCC" = yes; then
3171       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3172     else
3173       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3174     fi
3175     ;;
3176 esac
3177
3178 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3179 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3180 if test "${lt_cv_path_NM+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   if test -n "$NM"; then
3184   # Let the user override the test.
3185   lt_cv_path_NM="$NM"
3186 else
3187   lt_nm_to_check="${ac_tool_prefix}nm"
3188   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3189     lt_nm_to_check="$lt_nm_to_check nm"
3190   fi
3191   for lt_tmp_nm in $lt_nm_to_check; do
3192     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3193     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3194       IFS="$lt_save_ifs"
3195       test -z "$ac_dir" && ac_dir=.
3196       tmp_nm="$ac_dir/$lt_tmp_nm"
3197       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3198         # Check to see if the nm accepts a BSD-compat flag.
3199         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3200         #   nm: unknown option "B" ignored
3201         # Tru64's nm complains that /dev/null is an invalid object file
3202         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3203         */dev/null* | *'Invalid file or object type'*)
3204           lt_cv_path_NM="$tmp_nm -B"
3205           break
3206           ;;
3207         *)
3208           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3209           */dev/null*)
3210             lt_cv_path_NM="$tmp_nm -p"
3211             break
3212             ;;
3213           *)
3214             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3215             continue # so that we can try to find one that supports BSD flags
3216             ;;
3217           esac
3218           ;;
3219         esac
3220       fi
3221     done
3222     IFS="$lt_save_ifs"
3223   done
3224   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3225 fi
3226 fi
3227 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3228 echo "${ECHO_T}$lt_cv_path_NM" >&6
3229 NM="$lt_cv_path_NM"
3230
3231 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3232 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3233 LN_S=$as_ln_s
3234 if test "$LN_S" = "ln -s"; then
3235   echo "$as_me:$LINENO: result: yes" >&5
3236 echo "${ECHO_T}yes" >&6
3237 else
3238   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3239 echo "${ECHO_T}no, using $LN_S" >&6
3240 fi
3241
3242 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3243 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3244 if test "${lt_cv_deplibs_check_method+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   lt_cv_file_magic_cmd='$MAGIC_CMD'
3248 lt_cv_file_magic_test_file=
3249 lt_cv_deplibs_check_method='unknown'
3250 # Need to set the preceding variable on all platforms that support
3251 # interlibrary dependencies.
3252 # 'none' -- dependencies not supported.
3253 # `unknown' -- same as none, but documents that we really don't know.
3254 # 'pass_all' -- all dependencies passed with no checks.
3255 # 'test_compile' -- check by making test program.
3256 # 'file_magic [[regex]]' -- check by looking for files in library path
3257 # which responds to the $file_magic_cmd with a given extended regex.
3258 # If you have `file' or equivalent on your system and you're not sure
3259 # whether `pass_all' will *always* work, you probably want this one.
3260
3261 case $host_os in
3262 aix4* | aix5*)
3263   lt_cv_deplibs_check_method=pass_all
3264   ;;
3265
3266 beos*)
3267   lt_cv_deplibs_check_method=pass_all
3268   ;;
3269
3270 bsdi[45]*)
3271   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3272   lt_cv_file_magic_cmd='/usr/bin/file -L'
3273   lt_cv_file_magic_test_file=/shlib/libc.so
3274   ;;
3275
3276 cygwin*)
3277   # func_win32_libid is a shell function defined in ltmain.sh
3278   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3279   lt_cv_file_magic_cmd='func_win32_libid'
3280   ;;
3281
3282 mingw* | pw32*)
3283   # Base MSYS/MinGW do not provide the 'file' command needed by
3284   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3285   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3286   lt_cv_file_magic_cmd='$OBJDUMP -f'
3287   ;;
3288
3289 darwin* | rhapsody*)
3290   lt_cv_deplibs_check_method=pass_all
3291   ;;
3292
3293 freebsd* | kfreebsd*-gnu | dragonfly*)
3294   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3295     case $host_cpu in
3296     i*86 )
3297       # Not sure whether the presence of OpenBSD here was a mistake.
3298       # Let's accept both of them until this is cleared up.
3299       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3300       lt_cv_file_magic_cmd=/usr/bin/file
3301       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3302       ;;
3303     esac
3304   else
3305     lt_cv_deplibs_check_method=pass_all
3306   fi
3307   ;;
3308
3309 gnu*)
3310   lt_cv_deplibs_check_method=pass_all
3311   ;;
3312
3313 hpux10.20* | hpux11*)
3314   lt_cv_file_magic_cmd=/usr/bin/file
3315   case $host_cpu in
3316   ia64*)
3317     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3318     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3319     ;;
3320   hppa*64*)
3321     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]'
3322     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3323     ;;
3324   *)
3325     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3326     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3327     ;;
3328   esac
3329   ;;
3330
3331 interix3*)
3332   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3333   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3334   ;;
3335
3336 irix5* | irix6* | nonstopux*)
3337   case $LD in
3338   *-32|*"-32 ") libmagic=32-bit;;
3339   *-n32|*"-n32 ") libmagic=N32;;
3340   *-64|*"-64 ") libmagic=64-bit;;
3341   *) libmagic=never-match;;
3342   esac
3343   lt_cv_deplibs_check_method=pass_all
3344   ;;
3345
3346 # This must be Linux ELF.
3347 linux*)
3348   lt_cv_deplibs_check_method=pass_all
3349   ;;
3350
3351 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3352   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3353     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3354   else
3355     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3356   fi
3357   ;;
3358
3359 newos6*)
3360   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3361   lt_cv_file_magic_cmd=/usr/bin/file
3362   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3363   ;;
3364
3365 nto-qnx*)
3366   lt_cv_deplibs_check_method=unknown
3367   ;;
3368
3369 openbsd*)
3370   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3371     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3372   else
3373     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3374   fi
3375   ;;
3376
3377 osf3* | osf4* | osf5*)
3378   lt_cv_deplibs_check_method=pass_all
3379   ;;
3380
3381 solaris*)
3382   lt_cv_deplibs_check_method=pass_all
3383   ;;
3384
3385 sysv4 | sysv4.3*)
3386   case $host_vendor in
3387   motorola)
3388     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]'
3389     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3390     ;;
3391   ncr)
3392     lt_cv_deplibs_check_method=pass_all
3393     ;;
3394   sequent)
3395     lt_cv_file_magic_cmd='/bin/file'
3396     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3397     ;;
3398   sni)
3399     lt_cv_file_magic_cmd='/bin/file'
3400     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3401     lt_cv_file_magic_test_file=/lib/libc.so
3402     ;;
3403   siemens)
3404     lt_cv_deplibs_check_method=pass_all
3405     ;;
3406   pc)
3407     lt_cv_deplibs_check_method=pass_all
3408     ;;
3409   esac
3410   ;;
3411
3412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3413   lt_cv_deplibs_check_method=pass_all
3414   ;;
3415 esac
3416
3417 fi
3418 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3420 file_magic_cmd=$lt_cv_file_magic_cmd
3421 deplibs_check_method=$lt_cv_deplibs_check_method
3422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3423
3424
3425
3426
3427 # If no C compiler was specified, use CC.
3428 LTCC=${LTCC-"$CC"}
3429
3430 # If no C compiler flags were specified, use CFLAGS.
3431 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3432
3433 # Allow CC to be a program name with arguments.
3434 compiler=$CC
3435
3436
3437 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3438 if test "${enable_libtool_lock+set}" = set; then
3439   enableval="$enable_libtool_lock"
3440
3441 fi;
3442 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3443
3444 # Some flags need to be propagated to the compiler or linker for good
3445 # libtool support.
3446 case $host in
3447 ia64-*-hpux*)
3448   # Find out which ABI we are using.
3449   echo 'int i;' > conftest.$ac_ext
3450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451   (eval $ac_compile) 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; then
3455     case `/usr/bin/file conftest.$ac_objext` in
3456     *ELF-32*)
3457       HPUX_IA64_MODE="32"
3458       ;;
3459     *ELF-64*)
3460       HPUX_IA64_MODE="64"
3461       ;;
3462     esac
3463   fi
3464   rm -rf conftest*
3465   ;;
3466 *-*-irix6*)
3467   # Find out which ABI we are using.
3468   echo '#line 3468 "configure"' > conftest.$ac_ext
3469   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470   (eval $ac_compile) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }; then
3474    if test "$lt_cv_prog_gnu_ld" = yes; then
3475     case `/usr/bin/file conftest.$ac_objext` in
3476     *32-bit*)
3477       LD="${LD-ld} -melf32bsmip"
3478       ;;
3479     *N32*)
3480       LD="${LD-ld} -melf32bmipn32"
3481       ;;
3482     *64-bit*)
3483       LD="${LD-ld} -melf64bmip"
3484       ;;
3485     esac
3486    else
3487     case `/usr/bin/file conftest.$ac_objext` in
3488     *32-bit*)
3489       LD="${LD-ld} -32"
3490       ;;
3491     *N32*)
3492       LD="${LD-ld} -n32"
3493       ;;
3494     *64-bit*)
3495       LD="${LD-ld} -64"
3496       ;;
3497     esac
3498    fi
3499   fi
3500   rm -rf conftest*
3501   ;;
3502
3503 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3504   # Find out which ABI we are using.
3505   echo 'int i;' > conftest.$ac_ext
3506   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507   (eval $ac_compile) 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); }; then
3511     case `/usr/bin/file conftest.o` in
3512     *32-bit*)
3513       case $host in
3514         x86_64-*linux*)
3515           LD="${LD-ld} -m elf_i386"
3516           ;;
3517         ppc64-*linux*|powerpc64-*linux*)
3518           LD="${LD-ld} -m elf32ppclinux"
3519           ;;
3520         s390x-*linux*)
3521           LD="${LD-ld} -m elf_s390"
3522           ;;
3523         sparc64-*linux*)
3524           LD="${LD-ld} -m elf32_sparc"
3525           ;;
3526       esac
3527       ;;
3528     *64-bit*)
3529       case $host in
3530         x86_64-*linux*)
3531           LD="${LD-ld} -m elf_x86_64"
3532           ;;
3533         ppc*-*linux*|powerpc*-*linux*)
3534           LD="${LD-ld} -m elf64ppc"
3535           ;;
3536         s390*-*linux*)
3537           LD="${LD-ld} -m elf64_s390"
3538           ;;
3539         sparc*-*linux*)
3540           LD="${LD-ld} -m elf64_sparc"
3541           ;;
3542       esac
3543       ;;
3544     esac
3545   fi
3546   rm -rf conftest*
3547   ;;
3548
3549 *-*-sco3.2v5*)
3550   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3551   SAVE_CFLAGS="$CFLAGS"
3552   CFLAGS="$CFLAGS -belf"
3553   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3554 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3555 if test "${lt_cv_cc_needs_belf+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563
3564      cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570
3571 int
3572 main ()
3573 {
3574
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext conftest$ac_exeext
3580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3581   (eval $ac_link) 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } &&
3588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590   (eval $ac_try) 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); }; } &&
3594          { ac_try='test -s conftest$ac_exeext'
3595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596   (eval $ac_try) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; }; then
3600   lt_cv_cc_needs_belf=yes
3601 else
3602   echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 lt_cv_cc_needs_belf=no
3606 fi
3607 rm -f conftest.err conftest.$ac_objext \
3608       conftest$ac_exeext conftest.$ac_ext
3609      ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615 fi
3616 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3617 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3618   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3619     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3620     CFLAGS="$SAVE_CFLAGS"
3621   fi
3622   ;;
3623 sparc*-*solaris*)
3624   # Find out which ABI we are using.
3625   echo 'int i;' > conftest.$ac_ext
3626   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627   (eval $ac_compile) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; then
3631     case `/usr/bin/file conftest.o` in
3632     *64-bit*)
3633       case $lt_cv_prog_gnu_ld in
3634       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3635       *)    LD="${LD-ld} -64" ;;
3636       esac
3637       ;;
3638     esac
3639   fi
3640   rm -rf conftest*
3641   ;;
3642
3643
3644 esac
3645
3646 need_locks="$enable_libtool_lock"
3647
3648
3649 ac_ext=c
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3655 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3656 # On Suns, sometimes $CPP names a directory.
3657 if test -n "$CPP" && test -d "$CPP"; then
3658   CPP=
3659 fi
3660 if test -z "$CPP"; then
3661   if test "${ac_cv_prog_CPP+set}" = set; then
3662   echo $ECHO_N "(cached) $ECHO_C" >&6
3663 else
3664       # Double quotes because CPP needs to be expanded
3665     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3666     do
3667       ac_preproc_ok=false
3668 for ac_c_preproc_warn_flag in '' yes
3669 do
3670   # Use a header file that comes with gcc, so configuring glibc
3671   # with a fresh cross-compiler works.
3672   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3673   # <limits.h> exists even on freestanding compilers.
3674   # On the NeXT, cc -E runs the code through the compiler's parser,
3675   # not just through cpp. "Syntax error" is here to catch this case.
3676   cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682 #ifdef __STDC__
3683 # include <limits.h>
3684 #else
3685 # include <assert.h>
3686 #endif
3687                      Syntax error
3688 _ACEOF
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3691   ac_status=$?
3692   grep -v '^ *+' conftest.er1 >conftest.err
3693   rm -f conftest.er1
3694   cat conftest.err >&5
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); } >/dev/null; then
3697   if test -s conftest.err; then
3698     ac_cpp_err=$ac_c_preproc_warn_flag
3699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3700   else
3701     ac_cpp_err=
3702   fi
3703 else
3704   ac_cpp_err=yes
3705 fi
3706 if test -z "$ac_cpp_err"; then
3707   :
3708 else
3709   echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712   # Broken: fails on valid input.
3713 continue
3714 fi
3715 rm -f conftest.err conftest.$ac_ext
3716
3717   # OK, works on sane cases.  Now check whether non-existent headers
3718   # can be detected and how.
3719   cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 #include <ac_nonexistent.h>
3726 _ACEOF
3727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3729   ac_status=$?
3730   grep -v '^ *+' conftest.er1 >conftest.err
3731   rm -f conftest.er1
3732   cat conftest.err >&5
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); } >/dev/null; then
3735   if test -s conftest.err; then
3736     ac_cpp_err=$ac_c_preproc_warn_flag
3737     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3738   else
3739     ac_cpp_err=
3740   fi
3741 else
3742   ac_cpp_err=yes
3743 fi
3744 if test -z "$ac_cpp_err"; then
3745   # Broken: success on invalid input.
3746 continue
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751   # Passes both tests.
3752 ac_preproc_ok=:
3753 break
3754 fi
3755 rm -f conftest.err conftest.$ac_ext
3756
3757 done
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then
3761   break
3762 fi
3763
3764     done
3765     ac_cv_prog_CPP=$CPP
3766
3767 fi
3768   CPP=$ac_cv_prog_CPP
3769 else
3770   ac_cv_prog_CPP=$CPP
3771 fi
3772 echo "$as_me:$LINENO: result: $CPP" >&5
3773 echo "${ECHO_T}$CPP" >&6
3774 ac_preproc_ok=false
3775 for ac_c_preproc_warn_flag in '' yes
3776 do
3777   # Use a header file that comes with gcc, so configuring glibc
3778   # with a fresh cross-compiler works.
3779   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3780   # <limits.h> exists even on freestanding compilers.
3781   # On the NeXT, cc -E runs the code through the compiler's parser,
3782   # not just through cpp. "Syntax error" is here to catch this case.
3783   cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789 #ifdef __STDC__
3790 # include <limits.h>
3791 #else
3792 # include <assert.h>
3793 #endif
3794                      Syntax error
3795 _ACEOF
3796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3798   ac_status=$?
3799   grep -v '^ *+' conftest.er1 >conftest.err
3800   rm -f conftest.er1
3801   cat conftest.err >&5
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } >/dev/null; then
3804   if test -s conftest.err; then
3805     ac_cpp_err=$ac_c_preproc_warn_flag
3806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3807   else
3808     ac_cpp_err=
3809   fi
3810 else
3811   ac_cpp_err=yes
3812 fi
3813 if test -z "$ac_cpp_err"; then
3814   :
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819   # Broken: fails on valid input.
3820 continue
3821 fi
3822 rm -f conftest.err conftest.$ac_ext
3823
3824   # OK, works on sane cases.  Now check whether non-existent headers
3825   # can be detected and how.
3826   cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832 #include <ac_nonexistent.h>
3833 _ACEOF
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836   ac_status=$?
3837   grep -v '^ *+' conftest.er1 >conftest.err
3838   rm -f conftest.er1
3839   cat conftest.err >&5
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); } >/dev/null; then
3842   if test -s conftest.err; then
3843     ac_cpp_err=$ac_c_preproc_warn_flag
3844     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3845   else
3846     ac_cpp_err=
3847   fi
3848 else
3849   ac_cpp_err=yes
3850 fi
3851 if test -z "$ac_cpp_err"; then
3852   # Broken: success on invalid input.
3853 continue
3854 else
3855   echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858   # Passes both tests.
3859 ac_preproc_ok=:
3860 break
3861 fi
3862 rm -f conftest.err conftest.$ac_ext
3863
3864 done
3865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3866 rm -f conftest.err conftest.$ac_ext
3867 if $ac_preproc_ok; then
3868   :
3869 else
3870   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3871 See \`config.log' for more details." >&5
3872 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3873 See \`config.log' for more details." >&2;}
3874    { (exit 1); exit 1; }; }
3875 fi
3876
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883
3884 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3885 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3886 if test "${ac_cv_header_stdc+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h.  */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h.  */
3895 #include <stdlib.h>
3896 #include <stdarg.h>
3897 #include <string.h>
3898 #include <float.h>
3899
3900 int
3901 main ()
3902 {
3903
3904   ;
3905   return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910   (eval $ac_compile) 2>conftest.er1
3911   ac_status=$?
3912   grep -v '^ *+' conftest.er1 >conftest.err
3913   rm -f conftest.er1
3914   cat conftest.err >&5
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } &&
3917          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919   (eval $ac_try) 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); }; } &&
3923          { ac_try='test -s conftest.$ac_objext'
3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925   (eval $ac_try) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; }; then
3929   ac_cv_header_stdc=yes
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 ac_cv_header_stdc=no
3935 fi
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937
3938 if test $ac_cv_header_stdc = yes; then
3939   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3940   cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946 #include <string.h>
3947
3948 _ACEOF
3949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3950   $EGREP "memchr" >/dev/null 2>&1; then
3951   :
3952 else
3953   ac_cv_header_stdc=no
3954 fi
3955 rm -f conftest*
3956
3957 fi
3958
3959 if test $ac_cv_header_stdc = yes; then
3960   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3961   cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 #include <stdlib.h>
3968
3969 _ACEOF
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971   $EGREP "free" >/dev/null 2>&1; then
3972   :
3973 else
3974   ac_cv_header_stdc=no
3975 fi
3976 rm -f conftest*
3977
3978 fi
3979
3980 if test $ac_cv_header_stdc = yes; then
3981   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3982   if test "$cross_compiling" = yes; then
3983   :
3984 else
3985   cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991 #include <ctype.h>
3992 #if ((' ' & 0x0FF) == 0x020)
3993 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3994 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3995 #else
3996 # define ISLOWER(c) \
3997                    (('a' <= (c) && (c) <= 'i') \
3998                      || ('j' <= (c) && (c) <= 'r') \
3999                      || ('s' <= (c) && (c) <= 'z'))
4000 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4001 #endif
4002
4003 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4004 int
4005 main ()
4006 {
4007   int i;
4008   for (i = 0; i < 256; i++)
4009     if (XOR (islower (i), ISLOWER (i))
4010         || toupper (i) != TOUPPER (i))
4011       exit(2);
4012   exit (0);
4013 }
4014 _ACEOF
4015 rm -f conftest$ac_exeext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017   (eval $ac_link) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022   (eval $ac_try) 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); }; }; then
4026   :
4027 else
4028   echo "$as_me: program exited with status $ac_status" >&5
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 ( exit $ac_status )
4033 ac_cv_header_stdc=no
4034 fi
4035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 fi
4038 fi
4039 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4040 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4041 if test $ac_cv_header_stdc = yes; then
4042
4043 cat >>confdefs.h <<\_ACEOF
4044 #define STDC_HEADERS 1
4045 _ACEOF
4046
4047 fi
4048
4049 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4060                   inttypes.h stdint.h unistd.h
4061 do
4062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063 echo "$as_me:$LINENO: checking for $ac_header" >&5
4064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4066   echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068   cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 $ac_includes_default
4075
4076 #include <$ac_header>
4077 _ACEOF
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080   (eval $ac_compile) 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } &&
4087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089   (eval $ac_try) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; } &&
4093          { ac_try='test -s conftest.$ac_objext'
4094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   eval "$as_ac_Header=yes"
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 eval "$as_ac_Header=no"
4105 fi
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107 fi
4108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4111   cat >>confdefs.h <<_ACEOF
4112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4113 _ACEOF
4114
4115 fi
4116
4117 done
4118
4119
4120
4121 for ac_header in dlfcn.h
4122 do
4123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4125   echo "$as_me:$LINENO: checking for $ac_header" >&5
4126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 fi
4130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4132 else
4133   # Is the header compilable?
4134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 $ac_includes_default
4143 #include <$ac_header>
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147   (eval $ac_compile) 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } &&
4154          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156   (eval $ac_try) 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; } &&
4160          { ac_try='test -s conftest.$ac_objext'
4161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162   (eval $ac_try) 2>&5
4163   ac_status=$?
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); }; }; then
4166   ac_header_compiler=yes
4167 else
4168   echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 ac_header_compiler=no
4172 fi
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4175 echo "${ECHO_T}$ac_header_compiler" >&6
4176
4177 # Is the header present?
4178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <$ac_header>
4187 _ACEOF
4188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190   ac_status=$?
4191   grep -v '^ *+' conftest.er1 >conftest.err
4192   rm -f conftest.er1
4193   cat conftest.err >&5
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } >/dev/null; then
4196   if test -s conftest.err; then
4197     ac_cpp_err=$ac_c_preproc_warn_flag
4198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4199   else
4200     ac_cpp_err=
4201   fi
4202 else
4203   ac_cpp_err=yes
4204 fi
4205 if test -z "$ac_cpp_err"; then
4206   ac_header_preproc=yes
4207 else
4208   echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211   ac_header_preproc=no
4212 fi
4213 rm -f conftest.err conftest.$ac_ext
4214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4215 echo "${ECHO_T}$ac_header_preproc" >&6
4216
4217 # So?  What about this header?
4218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4219   yes:no: )
4220     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4224     ac_header_preproc=yes
4225     ;;
4226   no:yes:* )
4227     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4229     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4230 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4231     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4233     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4234 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4235     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4237     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4239     (
4240       cat <<\_ASBOX
4241 ## ----------------------------------- ##
4242 ## Report this to the mod_chxj lists.  ##
4243 ## ----------------------------------- ##
4244 _ASBOX
4245     ) |
4246       sed "s/^/$as_me: WARNING:     /" >&2
4247     ;;
4248 esac
4249 echo "$as_me:$LINENO: checking for $ac_header" >&5
4250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   eval "$as_ac_Header=\$ac_header_preproc"
4255 fi
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4258
4259 fi
4260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4261   cat >>confdefs.h <<_ACEOF
4262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4263 _ACEOF
4264
4265 fi
4266
4267 done
4268
4269 ac_ext=cc
4270 ac_cpp='$CXXCPP $CPPFLAGS'
4271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4274 if test -n "$ac_tool_prefix"; then
4275   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4276   do
4277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4279 echo "$as_me:$LINENO: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_CXX+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if test -n "$CXX"; then
4285   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301 fi
4302 fi
4303 CXX=$ac_cv_prog_CXX
4304 if test -n "$CXX"; then
4305   echo "$as_me:$LINENO: result: $CXX" >&5
4306 echo "${ECHO_T}$CXX" >&6
4307 else
4308   echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4310 fi
4311
4312     test -n "$CXX" && break
4313   done
4314 fi
4315 if test -z "$CXX"; then
4316   ac_ct_CXX=$CXX
4317   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4318 do
4319   # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   if test -n "$ac_ct_CXX"; then
4327   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4328 else
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334   for ac_exec_ext in '' $ac_executable_extensions; do
4335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336     ac_cv_prog_ac_ct_CXX="$ac_prog"
4337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338     break 2
4339   fi
4340 done
4341 done
4342
4343 fi
4344 fi
4345 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4346 if test -n "$ac_ct_CXX"; then
4347   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4348 echo "${ECHO_T}$ac_ct_CXX" >&6
4349 else
4350   echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4352 fi
4353
4354   test -n "$ac_ct_CXX" && break
4355 done
4356 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4357
4358   CXX=$ac_ct_CXX
4359 fi
4360
4361
4362 # Provide some information about the compiler.
4363 echo "$as_me:$LINENO:" \
4364      "checking for C++ compiler version" >&5
4365 ac_compiler=`set X $ac_compile; echo $2`
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4367   (eval $ac_compiler --version </dev/null >&5) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4372   (eval $ac_compiler -v </dev/null >&5) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }
4376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4377   (eval $ac_compiler -V </dev/null >&5) 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }
4381
4382 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4383 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4384 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h.  */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h.  */
4393
4394 int
4395 main ()
4396 {
4397 #ifndef __GNUC__
4398        choke me
4399 #endif
4400
4401   ;
4402   return 0;
4403 }
4404 _ACEOF
4405 rm -f conftest.$ac_objext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407   (eval $ac_compile) 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } &&
4414          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416   (eval $ac_try) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; } &&
4420          { ac_try='test -s conftest.$ac_objext'
4421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422   (eval $ac_try) 2>&5
4423   ac_status=$?
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); }; }; then
4426   ac_compiler_gnu=yes
4427 else
4428   echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 ac_compiler_gnu=no
4432 fi
4433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4435
4436 fi
4437 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4438 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4439 GXX=`test $ac_compiler_gnu = yes && echo yes`
4440 ac_test_CXXFLAGS=${CXXFLAGS+set}
4441 ac_save_CXXFLAGS=$CXXFLAGS
4442 CXXFLAGS="-g"
4443 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4444 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4445 if test "${ac_cv_prog_cxx_g+set}" = set; then
4446   echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454
4455 int
4456 main ()
4457 {
4458
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465   (eval $ac_compile) 2>conftest.er1
4466   ac_status=$?
4467   grep -v '^ *+' conftest.er1 >conftest.err
4468   rm -f conftest.er1
4469   cat conftest.err >&5
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); } &&
4472          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474   (eval $ac_try) 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; } &&
4478          { ac_try='test -s conftest.$ac_objext'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; }; then
4484   ac_cv_prog_cxx_g=yes
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_cv_prog_cxx_g=no
4490 fi
4491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4492 fi
4493 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4494 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4495 if test "$ac_test_CXXFLAGS" = set; then
4496   CXXFLAGS=$ac_save_CXXFLAGS
4497 elif test $ac_cv_prog_cxx_g = yes; then
4498   if test "$GXX" = yes; then
4499     CXXFLAGS="-g -O2"
4500   else
4501     CXXFLAGS="-g"
4502   fi
4503 else
4504   if test "$GXX" = yes; then
4505     CXXFLAGS="-O2"
4506   else
4507     CXXFLAGS=
4508   fi
4509 fi
4510 for ac_declaration in \
4511    '' \
4512    'extern "C" void std::exit (int) throw (); using std::exit;' \
4513    'extern "C" void std::exit (int); using std::exit;' \
4514    'extern "C" void exit (int) throw ();' \
4515    'extern "C" void exit (int);' \
4516    'void exit (int);'
4517 do
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 $ac_declaration
4525 #include <stdlib.h>
4526 int
4527 main ()
4528 {
4529 exit (42);
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536   (eval $ac_compile) 2>conftest.er1
4537   ac_status=$?
4538   grep -v '^ *+' conftest.er1 >conftest.err
4539   rm -f conftest.er1
4540   cat conftest.err >&5
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } &&
4543          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545   (eval $ac_try) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }; } &&
4549          { ac_try='test -s conftest.$ac_objext'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; }; then
4555   :
4556 else
4557   echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 continue
4561 fi
4562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4563   cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 $ac_declaration
4570 int
4571 main ()
4572 {
4573 exit (42);
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580   (eval $ac_compile) 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } &&
4587          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; } &&
4593          { ac_try='test -s conftest.$ac_objext'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; }; then
4599   break
4600 else
4601   echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 fi
4605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4606 done
4607 rm -f conftest*
4608 if test -n "$ac_declaration"; then
4609   echo '#ifdef __cplusplus' >>confdefs.h
4610   echo $ac_declaration      >>confdefs.h
4611   echo '#endif'             >>confdefs.h
4612 fi
4613
4614 ac_ext=cc
4615 ac_cpp='$CXXCPP $CPPFLAGS'
4616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4619
4620
4621
4622 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4623     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4624     (test "X$CXX" != "Xg++"))) ; then
4625   ac_ext=cc
4626 ac_cpp='$CXXCPP $CPPFLAGS'
4627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4630 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4631 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4632 if test -z "$CXXCPP"; then
4633   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636       # Double quotes because CXXCPP needs to be expanded
4637     for CXXCPP in "$CXX -E" "/lib/cpp"
4638     do
4639       ac_preproc_ok=false
4640 for ac_cxx_preproc_warn_flag in '' yes
4641 do
4642   # Use a header file that comes with gcc, so configuring glibc
4643   # with a fresh cross-compiler works.
4644   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645   # <limits.h> exists even on freestanding compilers.
4646   # On the NeXT, cc -E runs the code through the compiler's parser,
4647   # not just through cpp. "Syntax error" is here to catch this case.
4648   cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h.  */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h.  */
4654 #ifdef __STDC__
4655 # include <limits.h>
4656 #else
4657 # include <assert.h>
4658 #endif
4659                      Syntax error
4660 _ACEOF
4661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4663   ac_status=$?
4664   grep -v '^ *+' conftest.er1 >conftest.err
4665   rm -f conftest.er1
4666   cat conftest.err >&5
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } >/dev/null; then
4669   if test -s conftest.err; then
4670     ac_cpp_err=$ac_cxx_preproc_warn_flag
4671     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4672   else
4673     ac_cpp_err=
4674   fi
4675 else
4676   ac_cpp_err=yes
4677 fi
4678 if test -z "$ac_cpp_err"; then
4679   :
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684   # Broken: fails on valid input.
4685 continue
4686 fi
4687 rm -f conftest.err conftest.$ac_ext
4688
4689   # OK, works on sane cases.  Now check whether non-existent headers
4690   # can be detected and how.
4691   cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h.  */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h.  */
4697 #include <ac_nonexistent.h>
4698 _ACEOF
4699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701   ac_status=$?
4702   grep -v '^ *+' conftest.er1 >conftest.err
4703   rm -f conftest.er1
4704   cat conftest.err >&5
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); } >/dev/null; then
4707   if test -s conftest.err; then
4708     ac_cpp_err=$ac_cxx_preproc_warn_flag
4709     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4710   else
4711     ac_cpp_err=
4712   fi
4713 else
4714   ac_cpp_err=yes
4715 fi
4716 if test -z "$ac_cpp_err"; then
4717   # Broken: success on invalid input.
4718 continue
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723   # Passes both tests.
4724 ac_preproc_ok=:
4725 break
4726 fi
4727 rm -f conftest.err conftest.$ac_ext
4728
4729 done
4730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4731 rm -f conftest.err conftest.$ac_ext
4732 if $ac_preproc_ok; then
4733   break
4734 fi
4735
4736     done
4737     ac_cv_prog_CXXCPP=$CXXCPP
4738
4739 fi
4740   CXXCPP=$ac_cv_prog_CXXCPP
4741 else
4742   ac_cv_prog_CXXCPP=$CXXCPP
4743 fi
4744 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4745 echo "${ECHO_T}$CXXCPP" >&6
4746 ac_preproc_ok=false
4747 for ac_cxx_preproc_warn_flag in '' yes
4748 do
4749   # Use a header file that comes with gcc, so configuring glibc
4750   # with a fresh cross-compiler works.
4751   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752   # <limits.h> exists even on freestanding compilers.
4753   # On the NeXT, cc -E runs the code through the compiler's parser,
4754   # not just through cpp. "Syntax error" is here to catch this case.
4755   cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h.  */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h.  */
4761 #ifdef __STDC__
4762 # include <limits.h>
4763 #else
4764 # include <assert.h>
4765 #endif
4766                      Syntax error
4767 _ACEOF
4768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770   ac_status=$?
4771   grep -v '^ *+' conftest.er1 >conftest.err
4772   rm -f conftest.er1
4773   cat conftest.err >&5
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } >/dev/null; then
4776   if test -s conftest.err; then
4777     ac_cpp_err=$ac_cxx_preproc_warn_flag
4778     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4779   else
4780     ac_cpp_err=
4781   fi
4782 else
4783   ac_cpp_err=yes
4784 fi
4785 if test -z "$ac_cpp_err"; then
4786   :
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791   # Broken: fails on valid input.
4792 continue
4793 fi
4794 rm -f conftest.err conftest.$ac_ext
4795
4796   # OK, works on sane cases.  Now check whether non-existent headers
4797   # can be detected and how.
4798   cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 #include <ac_nonexistent.h>
4805 _ACEOF
4806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4808   ac_status=$?
4809   grep -v '^ *+' conftest.er1 >conftest.err
4810   rm -f conftest.er1
4811   cat conftest.err >&5
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); } >/dev/null; then
4814   if test -s conftest.err; then
4815     ac_cpp_err=$ac_cxx_preproc_warn_flag
4816     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4817   else
4818     ac_cpp_err=
4819   fi
4820 else
4821   ac_cpp_err=yes
4822 fi
4823 if test -z "$ac_cpp_err"; then
4824   # Broken: success on invalid input.
4825 continue
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830   # Passes both tests.
4831 ac_preproc_ok=:
4832 break
4833 fi
4834 rm -f conftest.err conftest.$ac_ext
4835
4836 done
4837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838 rm -f conftest.err conftest.$ac_ext
4839 if $ac_preproc_ok; then
4840   :
4841 else
4842   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4843 See \`config.log' for more details." >&5
4844 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4845 See \`config.log' for more details." >&2;}
4846    { (exit 1); exit 1; }; }
4847 fi
4848
4849 ac_ext=cc
4850 ac_cpp='$CXXCPP $CPPFLAGS'
4851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4854
4855 fi
4856
4857
4858 ac_ext=f
4859 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4860 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4862 if test -n "$ac_tool_prefix"; then
4863   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4864   do
4865     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4867 echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869 if test "${ac_cv_prog_F77+set}" = set; then
4870   echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872   if test -n "$F77"; then
4873   ac_cv_prog_F77="$F77" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880   for ac_exec_ext in '' $ac_executable_extensions; do
4881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888
4889 fi
4890 fi
4891 F77=$ac_cv_prog_F77
4892 if test -n "$F77"; then
4893   echo "$as_me:$LINENO: result: $F77" >&5
4894 echo "${ECHO_T}$F77" >&6
4895 else
4896   echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6
4898 fi
4899
4900     test -n "$F77" && break
4901   done
4902 fi
4903 if test -z "$F77"; then
4904   ac_ct_F77=$F77
4905   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4906 do
4907   # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy $ac_prog; ac_word=$2
4909 echo "$as_me:$LINENO: checking for $ac_word" >&5
4910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4911 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   if test -n "$ac_ct_F77"; then
4915   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922   for ac_exec_ext in '' $ac_executable_extensions; do
4923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924     ac_cv_prog_ac_ct_F77="$ac_prog"
4925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929 done
4930
4931 fi
4932 fi
4933 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4934 if test -n "$ac_ct_F77"; then
4935   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4936 echo "${ECHO_T}$ac_ct_F77" >&6
4937 else
4938   echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6
4940 fi
4941
4942   test -n "$ac_ct_F77" && break
4943 done
4944
4945   F77=$ac_ct_F77
4946 fi
4947
4948
4949 # Provide some information about the compiler.
4950 echo "$as_me:4950:" \
4951      "checking for Fortran 77 compiler version" >&5
4952 ac_compiler=`set X $ac_compile; echo $2`
4953 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4954   (eval $ac_compiler --version </dev/null >&5) 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }
4958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4959   (eval $ac_compiler -v </dev/null >&5) 2>&5
4960   ac_status=$?
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); }
4963 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4964   (eval $ac_compiler -V </dev/null >&5) 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }
4968 rm -f a.out
4969
4970 # If we don't use `.F' as extension, the preprocessor is not run on the
4971 # input file.  (Note that this only needs to work for GNU compilers.)
4972 ac_save_ext=$ac_ext
4973 ac_ext=F
4974 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4975 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4976 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   cat >conftest.$ac_ext <<_ACEOF
4980       program main
4981 #ifndef __GNUC__
4982        choke me
4983 #endif
4984
4985       end
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989   (eval $ac_compile) 2>conftest.er1
4990   ac_status=$?
4991   grep -v '^ *+' conftest.er1 >conftest.err
4992   rm -f conftest.er1
4993   cat conftest.err >&5
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); } &&
4996          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
4997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998   (eval $ac_try) 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); }; } &&
5002          { ac_try='test -s conftest.$ac_objext'
5003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004   (eval $ac_try) 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); }; }; then
5008   ac_compiler_gnu=yes
5009 else
5010   echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 ac_compiler_gnu=no
5014 fi
5015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5017
5018 fi
5019 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5020 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5021 ac_ext=$ac_save_ext
5022 ac_test_FFLAGS=${FFLAGS+set}
5023 ac_save_FFLAGS=$FFLAGS
5024 FFLAGS=
5025 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5026 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5027 if test "${ac_cv_prog_f77_g+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   FFLAGS=-g
5031 cat >conftest.$ac_ext <<_ACEOF
5032       program main
5033
5034       end
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038   (eval $ac_compile) 2>conftest.er1
5039   ac_status=$?
5040   grep -v '^ *+' conftest.er1 >conftest.err
5041   rm -f conftest.er1
5042   cat conftest.err >&5
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); } &&
5045          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047   (eval $ac_try) 2>&5
5048   ac_status=$?
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); }; } &&
5051          { ac_try='test -s conftest.$ac_objext'
5052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053   (eval $ac_try) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; }; then
5057   ac_cv_prog_f77_g=yes
5058 else
5059   echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062 ac_cv_prog_f77_g=no
5063 fi
5064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5065
5066 fi
5067 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5068 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5069 if test "$ac_test_FFLAGS" = set; then
5070   FFLAGS=$ac_save_FFLAGS
5071 elif test $ac_cv_prog_f77_g = yes; then
5072   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5073     FFLAGS="-g -O2"
5074   else
5075     FFLAGS="-g"
5076   fi
5077 else
5078   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5079     FFLAGS="-O2"
5080   else
5081     FFLAGS=
5082   fi
5083 fi
5084
5085 G77=`test $ac_compiler_gnu = yes && echo yes`
5086 ac_ext=c
5087 ac_cpp='$CPP $CPPFLAGS'
5088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091
5092
5093
5094 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5095
5096 # find the maximum length of command line arguments
5097 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5098 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5099 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102     i=0
5103   teststring="ABCD"
5104
5105   case $build_os in
5106   msdosdjgpp*)
5107     # On DJGPP, this test can blow up pretty badly due to problems in libc
5108     # (any single argument exceeding 2000 bytes causes a buffer overrun
5109     # during glob expansion).  Even if it were fixed, the result of this
5110     # check would be larger than it should be.
5111     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5112     ;;
5113
5114   gnu*)
5115     # Under GNU Hurd, this test is not required because there is
5116     # no limit to the length of command line arguments.
5117     # Libtool will interpret -1 as no limit whatsoever
5118     lt_cv_sys_max_cmd_len=-1;
5119     ;;
5120
5121   cygwin* | mingw*)
5122     # On Win9x/ME, this test blows up -- it succeeds, but takes
5123     # about 5 minutes as the teststring grows exponentially.
5124     # Worse, since 9x/ME are not pre-emptively multitasking,
5125     # you end up with a "frozen" computer, even though with patience
5126     # the test eventually succeeds (with a max line length of 256k).
5127     # Instead, let's just punt: use the minimum linelength reported by
5128     # all of the supported platforms: 8192 (on NT/2K/XP).
5129     lt_cv_sys_max_cmd_len=8192;
5130     ;;
5131
5132   amigaos*)
5133     # On AmigaOS with pdksh, this test takes hours, literally.
5134     # So we just punt and use a minimum line length of 8192.
5135     lt_cv_sys_max_cmd_len=8192;
5136     ;;
5137
5138   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5139     # This has been around since 386BSD, at least.  Likely further.
5140     if test -x /sbin/sysctl; then
5141       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5142     elif test -x /usr/sbin/sysctl; then
5143       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5144     else
5145       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5146     fi
5147     # And add a safety zone
5148     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150     ;;
5151
5152   interix*)
5153     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5154     lt_cv_sys_max_cmd_len=196608
5155     ;;
5156
5157   osf*)
5158     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5159     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5160     # nice to cause kernel panics so lets avoid the loop below.
5161     # First set a reasonable default.
5162     lt_cv_sys_max_cmd_len=16384
5163     #
5164     if test -x /sbin/sysconfig; then
5165       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5166         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5167       esac
5168     fi
5169     ;;
5170   sco3.2v5*)
5171     lt_cv_sys_max_cmd_len=102400
5172     ;;
5173   sysv5* | sco5v6* | sysv4.2uw2*)
5174     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5175     if test -n "$kargmax"; then
5176       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5177     else
5178       lt_cv_sys_max_cmd_len=32768
5179     fi
5180     ;;
5181   *)
5182     # If test is not a shell built-in, we'll probably end up computing a
5183     # maximum length that is only half of the actual maximum length, but
5184     # we can't tell.
5185     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5186     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5187                = "XX$teststring") >/dev/null 2>&1 &&
5188             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5189             lt_cv_sys_max_cmd_len=$new_result &&
5190             test $i != 17 # 1/2 MB should be enough
5191     do
5192       i=`expr $i + 1`
5193       teststring=$teststring$teststring
5194     done
5195     teststring=
5196     # Add a significant safety factor because C++ compilers can tack on massive
5197     # amounts of additional arguments before passing them to the linker.
5198     # It appears as though 1/2 is a usable value.
5199     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5200     ;;
5201   esac
5202
5203 fi
5204
5205 if test -n $lt_cv_sys_max_cmd_len ; then
5206   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5207 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5208 else
5209   echo "$as_me:$LINENO: result: none" >&5
5210 echo "${ECHO_T}none" >&6
5211 fi
5212
5213
5214
5215
5216 # Check for command to grab the raw symbol name followed by C symbol from nm.
5217 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5218 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5219 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222
5223 # These are sane defaults that work on at least a few old systems.
5224 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5225
5226 # Character class describing NM global symbol codes.
5227 symcode='[BCDEGRST]'
5228
5229 # Regexp to match symbols that can be accessed directly from C.
5230 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5231
5232 # Transform an extracted symbol line into a proper C declaration
5233 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5234
5235 # Transform an extracted symbol line into symbol name and symbol address
5236 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'"
5237
5238 # Define system-specific variables.
5239 case $host_os in
5240 aix*)
5241   symcode='[BCDT]'
5242   ;;
5243 cygwin* | mingw* | pw32*)
5244   symcode='[ABCDGISTW]'
5245   ;;
5246 hpux*) # Its linker distinguishes data from code symbols
5247   if test "$host_cpu" = ia64; then
5248     symcode='[ABCDEGRST]'
5249   fi
5250   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5251   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'"
5252   ;;
5253 linux*)
5254   if test "$host_cpu" = ia64; then
5255     symcode='[ABCDGIRSTW]'
5256     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5257     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'"
5258   fi
5259   ;;
5260 irix* | nonstopux*)
5261   symcode='[BCDEGRST]'
5262   ;;
5263 osf*)
5264   symcode='[BCDEGQRST]'
5265   ;;
5266 solaris*)
5267   symcode='[BDRT]'
5268   ;;
5269 sco3.2v5*)
5270   symcode='[DT]'
5271   ;;
5272 sysv4.2uw2*)
5273   symcode='[DT]'
5274   ;;
5275 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5276   symcode='[ABDT]'
5277   ;;
5278 sysv4)
5279   symcode='[DFNSTU]'
5280   ;;
5281 esac
5282
5283 # Handle CRLF in mingw tool chain
5284 opt_cr=
5285 case $build_os in
5286 mingw*)
5287   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5288   ;;
5289 esac
5290
5291 # If we're using GNU nm, then use its standard symbol codes.
5292 case `$NM -V 2>&1` in
5293 *GNU* | *'with BFD'*)
5294   symcode='[ABCDGIRSTW]' ;;
5295 esac
5296
5297 # Try without a prefix undercore, then with it.
5298 for ac_symprfx in "" "_"; do
5299
5300   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5301   symxfrm="\\1 $ac_symprfx\\2 \\2"
5302
5303   # Write the raw and C identifiers.
5304   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5305
5306   # Check to see that the pipe works correctly.
5307   pipe_works=no
5308
5309   rm -f conftest*
5310   cat > conftest.$ac_ext <<EOF
5311 #ifdef __cplusplus
5312 extern "C" {
5313 #endif
5314 char nm_test_var;
5315 void nm_test_func(){}
5316 #ifdef __cplusplus
5317 }
5318 #endif
5319 int main(){nm_test_var='a';nm_test_func();return(0);}
5320 EOF
5321
5322   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323   (eval $ac_compile) 2>&5
5324   ac_status=$?
5325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326   (exit $ac_status); }; then
5327     # Now try to grab the symbols.
5328     nlist=conftest.nm
5329     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5330   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } && test -s "$nlist"; then
5334       # Try sorting and uniquifying the output.
5335       if sort "$nlist" | uniq > "$nlist"T; then
5336         mv -f "$nlist"T "$nlist"
5337       else
5338         rm -f "$nlist"T
5339       fi
5340
5341       # Make sure that we snagged all the symbols we need.
5342       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5343         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5344           cat <<EOF > conftest.$ac_ext
5345 #ifdef __cplusplus
5346 extern "C" {
5347 #endif
5348
5349 EOF
5350           # Now generate the symbol file.
5351           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5352
5353           cat <<EOF >> conftest.$ac_ext
5354 #if defined (__STDC__) && __STDC__
5355 # define lt_ptr_t void *
5356 #else
5357 # define lt_ptr_t char *
5358 # define const
5359 #endif
5360
5361 /* The mapping between symbol names and symbols. */
5362 const struct {
5363   const char *name;
5364   lt_ptr_t address;
5365 }
5366 lt_preloaded_symbols[] =
5367 {
5368 EOF
5369           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5370           cat <<\EOF >> conftest.$ac_ext
5371   {0, (lt_ptr_t) 0}
5372 };
5373
5374 #ifdef __cplusplus
5375 }
5376 #endif
5377 EOF
5378           # Now try linking the two files.
5379           mv conftest.$ac_objext conftstm.$ac_objext
5380           lt_save_LIBS="$LIBS"
5381           lt_save_CFLAGS="$CFLAGS"
5382           LIBS="conftstm.$ac_objext"
5383           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5384           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5385   (eval $ac_link) 2>&5
5386   ac_status=$?
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5389             pipe_works=yes
5390           fi
5391           LIBS="$lt_save_LIBS"
5392           CFLAGS="$lt_save_CFLAGS"
5393         else
5394           echo "cannot find nm_test_func in $nlist" >&5
5395         fi
5396       else
5397         echo "cannot find nm_test_var in $nlist" >&5
5398       fi
5399     else
5400       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5401     fi
5402   else
5403     echo "$progname: failed program was:" >&5
5404     cat conftest.$ac_ext >&5
5405   fi
5406   rm -f conftest* conftst*
5407
5408   # Do not use the global_symbol_pipe unless it works.
5409   if test "$pipe_works" = yes; then
5410     break
5411   else
5412     lt_cv_sys_global_symbol_pipe=
5413   fi
5414 done
5415
5416 fi
5417
5418 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5419   lt_cv_sys_global_symbol_to_cdecl=
5420 fi
5421 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5422   echo "$as_me:$LINENO: result: failed" >&5
5423 echo "${ECHO_T}failed" >&6
5424 else
5425   echo "$as_me:$LINENO: result: ok" >&5
5426 echo "${ECHO_T}ok" >&6
5427 fi
5428
5429 echo "$as_me:$LINENO: checking for objdir" >&5
5430 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5431 if test "${lt_cv_objdir+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   rm -f .libs 2>/dev/null
5435 mkdir .libs 2>/dev/null
5436 if test -d .libs; then
5437   lt_cv_objdir=.libs
5438 else
5439   # MS-DOS does not allow filenames that begin with a dot.
5440   lt_cv_objdir=_libs
5441 fi
5442 rmdir .libs 2>/dev/null
5443 fi
5444 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5445 echo "${ECHO_T}$lt_cv_objdir" >&6
5446 objdir=$lt_cv_objdir
5447
5448
5449
5450
5451
5452 case $host_os in
5453 aix3*)
5454   # AIX sometimes has problems with the GCC collect2 program.  For some
5455   # reason, if we set the COLLECT_NAMES environment variable, the problems
5456   # vanish in a puff of smoke.
5457   if test "X${COLLECT_NAMES+set}" != Xset; then
5458     COLLECT_NAMES=
5459     export COLLECT_NAMES
5460   fi
5461   ;;
5462 esac
5463
5464 # Sed substitution that helps us do robust quoting.  It backslashifies
5465 # metacharacters that are still active within double-quoted strings.
5466 Xsed='sed -e 1s/^X//'
5467 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5468
5469 # Same as above, but do not quote variable references.
5470 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5471
5472 # Sed substitution to delay expansion of an escaped shell variable in a
5473 # double_quote_subst'ed string.
5474 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5475
5476 # Sed substitution to avoid accidental globbing in evaled expressions
5477 no_glob_subst='s/\*/\\\*/g'
5478
5479 # Constants:
5480 rm="rm -f"
5481
5482 # Global variables:
5483 default_ofile=libtool
5484 can_build_shared=yes
5485
5486 # All known linkers require a `.a' archive for static linking (except MSVC,
5487 # which needs '.lib').
5488 libext=a
5489 ltmain="$ac_aux_dir/ltmain.sh"
5490 ofile="$default_ofile"
5491 with_gnu_ld="$lt_cv_prog_gnu_ld"
5492
5493 if test -n "$ac_tool_prefix"; then
5494   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}ar; ac_word=$2
5496 echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5498 if test "${ac_cv_prog_AR+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   if test -n "$AR"; then
5502   ac_cv_prog_AR="$AR" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509   for ac_exec_ext in '' $ac_executable_extensions; do
5510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511     ac_cv_prog_AR="${ac_tool_prefix}ar"
5512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516 done
5517
5518 fi
5519 fi
5520 AR=$ac_cv_prog_AR
5521 if test -n "$AR"; then
5522   echo "$as_me:$LINENO: result: $AR" >&5
5523 echo "${ECHO_T}$AR" >&6
5524 else
5525   echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6
5527 fi
5528
5529 fi
5530 if test -z "$ac_cv_prog_AR"; then
5531   ac_ct_AR=$AR
5532   # Extract the first word of "ar", so it can be a program name with args.
5533 set dummy ar; ac_word=$2
5534 echo "$as_me:$LINENO: checking for $ac_word" >&5
5535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5536 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5537   echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539   if test -n "$ac_ct_AR"; then
5540   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547   for ac_exec_ext in '' $ac_executable_extensions; do
5548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549     ac_cv_prog_ac_ct_AR="ar"
5550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554 done
5555
5556   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5557 fi
5558 fi
5559 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5560 if test -n "$ac_ct_AR"; then
5561   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5562 echo "${ECHO_T}$ac_ct_AR" >&6
5563 else
5564   echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6
5566 fi
5567
5568   AR=$ac_ct_AR
5569 else
5570   AR="$ac_cv_prog_AR"
5571 fi
5572
5573 if test -n "$ac_tool_prefix"; then
5574   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5576 echo "$as_me:$LINENO: checking for $ac_word" >&5
5577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5578 if test "${ac_cv_prog_RANLIB+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   if test -n "$RANLIB"; then
5582   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589   for ac_exec_ext in '' $ac_executable_extensions; do
5590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596 done
5597
5598 fi
5599 fi
5600 RANLIB=$ac_cv_prog_RANLIB
5601 if test -n "$RANLIB"; then
5602   echo "$as_me:$LINENO: result: $RANLIB" >&5
5603 echo "${ECHO_T}$RANLIB" >&6
5604 else
5605   echo "$as_me:$LINENO: result: no" >&5
5606 echo "${ECHO_T}no" >&6
5607 fi
5608
5609 fi
5610 if test -z "$ac_cv_prog_RANLIB"; then
5611   ac_ct_RANLIB=$RANLIB
5612   # Extract the first word of "ranlib", so it can be a program name with args.
5613 set dummy ranlib; ac_word=$2
5614 echo "$as_me:$LINENO: checking for $ac_word" >&5
5615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5616 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   if test -n "$ac_ct_RANLIB"; then
5620   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5624 do
5625   IFS=$as_save_IFS
5626   test -z "$as_dir" && as_dir=.
5627   for ac_exec_ext in '' $ac_executable_extensions; do
5628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629     ac_cv_prog_ac_ct_RANLIB="ranlib"
5630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631     break 2
5632   fi
5633 done
5634 done
5635
5636   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5637 fi
5638 fi
5639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5640 if test -n "$ac_ct_RANLIB"; then
5641   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5642 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5643 else
5644   echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6
5646 fi
5647
5648   RANLIB=$ac_ct_RANLIB
5649 else
5650   RANLIB="$ac_cv_prog_RANLIB"
5651 fi
5652
5653 if test -n "$ac_tool_prefix"; then
5654   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}strip; ac_word=$2
5656 echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658 if test "${ac_cv_prog_STRIP+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   if test -n "$STRIP"; then
5662   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667   IFS=$as_save_IFS
5668   test -z "$as_dir" && as_dir=.
5669   for ac_exec_ext in '' $ac_executable_extensions; do
5670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673     break 2
5674   fi
5675 done
5676 done
5677
5678 fi
5679 fi
5680 STRIP=$ac_cv_prog_STRIP
5681 if test -n "$STRIP"; then
5682   echo "$as_me:$LINENO: result: $STRIP" >&5
5683 echo "${ECHO_T}$STRIP" >&6
5684 else
5685   echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6
5687 fi
5688
5689 fi
5690 if test -z "$ac_cv_prog_STRIP"; then
5691   ac_ct_STRIP=$STRIP
5692   # Extract the first word of "strip", so it can be a program name with args.
5693 set dummy strip; ac_word=$2
5694 echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5696 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   if test -n "$ac_ct_STRIP"; then
5700   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707   for ac_exec_ext in '' $ac_executable_extensions; do
5708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709     ac_cv_prog_ac_ct_STRIP="strip"
5710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5711     break 2
5712   fi
5713 done
5714 done
5715
5716   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5717 fi
5718 fi
5719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5720 if test -n "$ac_ct_STRIP"; then
5721   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5722 echo "${ECHO_T}$ac_ct_STRIP" >&6
5723 else
5724   echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6
5726 fi
5727
5728   STRIP=$ac_ct_STRIP
5729 else
5730   STRIP="$ac_cv_prog_STRIP"
5731 fi
5732
5733
5734 old_CC="$CC"
5735 old_CFLAGS="$CFLAGS"
5736
5737 # Set sane defaults for various variables
5738 test -z "$AR" && AR=ar
5739 test -z "$AR_FLAGS" && AR_FLAGS=cru
5740 test -z "$AS" && AS=as
5741 test -z "$CC" && CC=cc
5742 test -z "$LTCC" && LTCC=$CC
5743 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5744 test -z "$DLLTOOL" && DLLTOOL=dlltool
5745 test -z "$LD" && LD=ld
5746 test -z "$LN_S" && LN_S="ln -s"
5747 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5748 test -z "$NM" && NM=nm
5749 test -z "$SED" && SED=sed
5750 test -z "$OBJDUMP" && OBJDUMP=objdump
5751 test -z "$RANLIB" && RANLIB=:
5752 test -z "$STRIP" && STRIP=:
5753 test -z "$ac_objext" && ac_objext=o
5754
5755 # Determine commands to create old-style static archives.
5756 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5757 old_postinstall_cmds='chmod 644 $oldlib'
5758 old_postuninstall_cmds=
5759
5760 if test -n "$RANLIB"; then
5761   case $host_os in
5762   openbsd*)
5763     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5764     ;;
5765   *)
5766     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5767     ;;
5768   esac
5769   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5770 fi
5771
5772 for cc_temp in $compiler""; do
5773   case $cc_temp in
5774     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5775     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5776     \-*) ;;
5777     *) break;;
5778   esac
5779 done
5780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5781
5782
5783 # Only perform the check for file, if the check method requires it
5784 case $deplibs_check_method in
5785 file_magic*)
5786   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5787     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5788 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5789 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792   case $MAGIC_CMD in
5793 [\\/*] |  ?:[\\/]*)
5794   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5795   ;;
5796 *)
5797   lt_save_MAGIC_CMD="$MAGIC_CMD"
5798   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5799   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5800   for ac_dir in $ac_dummy; do
5801     IFS="$lt_save_ifs"
5802     test -z "$ac_dir" && ac_dir=.
5803     if test -f $ac_dir/${ac_tool_prefix}file; then
5804       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5805       if test -n "$file_magic_test_file"; then
5806         case $deplibs_check_method in
5807         "file_magic "*)
5808           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5809           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5810           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5811             $EGREP "$file_magic_regex" > /dev/null; then
5812             :
5813           else
5814             cat <<EOF 1>&2
5815
5816 *** Warning: the command libtool uses to detect shared libraries,
5817 *** $file_magic_cmd, produces output that libtool cannot recognize.
5818 *** The result is that libtool may fail to recognize shared libraries
5819 *** as such.  This will affect the creation of libtool libraries that
5820 *** depend on shared libraries, but programs linked with such libtool
5821 *** libraries will work regardless of this problem.  Nevertheless, you
5822 *** may want to report the problem to your system manager and/or to
5823 *** bug-libtool@gnu.org
5824
5825 EOF
5826           fi ;;
5827         esac
5828       fi
5829       break
5830     fi
5831   done
5832   IFS="$lt_save_ifs"
5833   MAGIC_CMD="$lt_save_MAGIC_CMD"
5834   ;;
5835 esac
5836 fi
5837
5838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5839 if test -n "$MAGIC_CMD"; then
5840   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5841 echo "${ECHO_T}$MAGIC_CMD" >&6
5842 else
5843   echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6
5845 fi
5846
5847 if test -z "$lt_cv_path_MAGIC_CMD"; then
5848   if test -n "$ac_tool_prefix"; then
5849     echo "$as_me:$LINENO: checking for file" >&5
5850 echo $ECHO_N "checking for file... $ECHO_C" >&6
5851 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   case $MAGIC_CMD in
5855 [\\/*] |  ?:[\\/]*)
5856   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5857   ;;
5858 *)
5859   lt_save_MAGIC_CMD="$MAGIC_CMD"
5860   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5861   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5862   for ac_dir in $ac_dummy; do
5863     IFS="$lt_save_ifs"
5864     test -z "$ac_dir" && ac_dir=.
5865     if test -f $ac_dir/file; then
5866       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5867       if test -n "$file_magic_test_file"; then
5868         case $deplibs_check_method in
5869         "file_magic "*)
5870           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5871           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5872           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5873             $EGREP "$file_magic_regex" > /dev/null; then
5874             :
5875           else
5876             cat <<EOF 1>&2
5877
5878 *** Warning: the command libtool uses to detect shared libraries,
5879 *** $file_magic_cmd, produces output that libtool cannot recognize.
5880 *** The result is that libtool may fail to recognize shared libraries
5881 *** as such.  This will affect the creation of libtool libraries that
5882 *** depend on shared libraries, but programs linked with such libtool
5883 *** libraries will work regardless of this problem.  Nevertheless, you
5884 *** may want to report the problem to your system manager and/or to
5885 *** bug-libtool@gnu.org
5886
5887 EOF
5888           fi ;;
5889         esac
5890       fi
5891       break
5892     fi
5893   done
5894   IFS="$lt_save_ifs"
5895   MAGIC_CMD="$lt_save_MAGIC_CMD"
5896   ;;
5897 esac
5898 fi
5899
5900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5901 if test -n "$MAGIC_CMD"; then
5902   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5903 echo "${ECHO_T}$MAGIC_CMD" >&6
5904 else
5905   echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909   else
5910     MAGIC_CMD=:
5911   fi
5912 fi
5913
5914   fi
5915   ;;
5916 esac
5917
5918 enable_dlopen=no
5919 enable_win32_dll=no
5920
5921 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5922 if test "${enable_libtool_lock+set}" = set; then
5923   enableval="$enable_libtool_lock"
5924
5925 fi;
5926 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5927
5928
5929 # Check whether --with-pic or --without-pic was given.
5930 if test "${with_pic+set}" = set; then
5931   withval="$with_pic"
5932   pic_mode="$withval"
5933 else
5934   pic_mode=default
5935 fi;
5936 test -z "$pic_mode" && pic_mode=default
5937
5938 # Use C for the default configuration in the libtool script
5939 tagname=
5940 lt_save_CC="$CC"
5941 ac_ext=c
5942 ac_cpp='$CPP $CPPFLAGS'
5943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5946
5947
5948 # Source file extension for C test sources.
5949 ac_ext=c
5950
5951 # Object file extension for compiled C test sources.
5952 objext=o
5953 objext=$objext
5954
5955 # Code to be used in simple compile tests
5956 lt_simple_compile_test_code="int some_variable = 0;\n"
5957
5958 # Code to be used in simple link tests
5959 lt_simple_link_test_code='int main(){return(0);}\n'
5960
5961
5962 # If no C compiler was specified, use CC.
5963 LTCC=${LTCC-"$CC"}
5964
5965 # If no C compiler flags were specified, use CFLAGS.
5966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5967
5968 # Allow CC to be a program name with arguments.
5969 compiler=$CC
5970
5971
5972 # save warnings/boilerplate of simple test code
5973 ac_outfile=conftest.$ac_objext
5974 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5976 _lt_compiler_boilerplate=`cat conftest.err`
5977 $rm conftest*
5978
5979 ac_outfile=conftest.$ac_objext
5980 printf "$lt_simple_link_test_code" >conftest.$ac_ext
5981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5982 _lt_linker_boilerplate=`cat conftest.err`
5983 $rm conftest*
5984
5985
5986
5987 lt_prog_compiler_no_builtin_flag=
5988
5989 if test "$GCC" = yes; then
5990   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5991
5992
5993 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5994 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5995 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   lt_cv_prog_compiler_rtti_exceptions=no
5999   ac_outfile=conftest.$ac_objext
6000    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6001    lt_compiler_flag="-fno-rtti -fno-exceptions"
6002    # Insert the option either (1) after the last *FLAGS variable, or
6003    # (2) before a word containing "conftest.", or (3) at the end.
6004    # Note that $ac_compile itself does not contain backslashes and begins
6005    # with a dollar sign (not a hyphen), so the echo should work correctly.
6006    # The option is referenced via a variable to avoid confusing sed.
6007    lt_compile=`echo "$ac_compile" | $SED \
6008    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6009    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6010    -e 's:$: $lt_compiler_flag:'`
6011    (eval echo "\"\$as_me:6011: $lt_compile\"" >&5)
6012    (eval "$lt_compile" 2>conftest.err)
6013    ac_status=$?
6014    cat conftest.err >&5
6015    echo "$as_me:6015: \$? = $ac_status" >&5
6016    if (exit $ac_status) && test -s "$ac_outfile"; then
6017      # The compiler can only warn and ignore the option if not recognized
6018      # So say no if there are warnings other than the usual output.
6019      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6020      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6021      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6022        lt_cv_prog_compiler_rtti_exceptions=yes
6023      fi
6024    fi
6025    $rm conftest*
6026
6027 fi
6028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6029 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6030
6031 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6032     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6033 else
6034     :
6035 fi
6036
6037 fi
6038
6039 lt_prog_compiler_wl=
6040 lt_prog_compiler_pic=
6041 lt_prog_compiler_static=
6042
6043 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6044 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6045
6046   if test "$GCC" = yes; then
6047     lt_prog_compiler_wl='-Wl,'
6048     lt_prog_compiler_static='-static'
6049
6050     case $host_os in
6051       aix*)
6052       # All AIX code is PIC.
6053       if test "$host_cpu" = ia64; then
6054         # AIX 5 now supports IA64 processor
6055         lt_prog_compiler_static='-Bstatic'
6056       fi
6057       ;;
6058
6059     amigaos*)
6060       # FIXME: we need at least 68020 code to build shared libraries, but
6061       # adding the `-m68020' flag to GCC prevents building anything better,
6062       # like `-m68040'.
6063       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6064       ;;
6065
6066     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6067       # PIC is the default for these OSes.
6068       ;;
6069
6070     mingw* | pw32* | os2*)
6071       # This hack is so that the source file can tell whether it is being
6072       # built for inclusion in a dll (and should export symbols for example).
6073       lt_prog_compiler_pic='-DDLL_EXPORT'
6074       ;;
6075
6076     darwin* | rhapsody*)
6077       # PIC is the default on this platform
6078       # Common symbols not allowed in MH_DYLIB files
6079       lt_prog_compiler_pic='-fno-common'
6080       ;;
6081
6082     interix3*)
6083       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6084       # Instead, we relocate shared libraries at runtime.
6085       ;;
6086
6087     msdosdjgpp*)
6088       # Just because we use GCC doesn't mean we suddenly get shared libraries
6089       # on systems that don't support them.
6090       lt_prog_compiler_can_build_shared=no
6091       enable_shared=no
6092       ;;
6093
6094     sysv4*MP*)
6095       if test -d /usr/nec; then
6096         lt_prog_compiler_pic=-Kconform_pic
6097       fi
6098       ;;
6099
6100     hpux*)
6101       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6102       # not for PA HP-UX.
6103       case $host_cpu in
6104       hppa*64*|ia64*)
6105         # +Z the default
6106         ;;
6107       *)
6108         lt_prog_compiler_pic='-fPIC'
6109         ;;
6110       esac
6111       ;;
6112
6113     *)
6114       lt_prog_compiler_pic='-fPIC'
6115       ;;
6116     esac
6117   else
6118     # PORTME Check for flag to pass linker flags through the system compiler.
6119     case $host_os in
6120     aix*)
6121       lt_prog_compiler_wl='-Wl,'
6122       if test "$host_cpu" = ia64; then
6123         # AIX 5 now supports IA64 processor
6124         lt_prog_compiler_static='-Bstatic'
6125       else
6126         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6127       fi
6128       ;;
6129       darwin*)
6130         # PIC is the default on this platform
6131         # Common symbols not allowed in MH_DYLIB files
6132        case $cc_basename in
6133          xlc*)
6134          lt_prog_compiler_pic='-qnocommon'
6135          lt_prog_compiler_wl='-Wl,'
6136          ;;
6137        esac
6138        ;;
6139
6140     mingw* | pw32* | os2*)
6141       # This hack is so that the source file can tell whether it is being
6142       # built for inclusion in a dll (and should export symbols for example).
6143       lt_prog_compiler_pic='-DDLL_EXPORT'
6144       ;;
6145
6146     hpux9* | hpux10* | hpux11*)
6147       lt_prog_compiler_wl='-Wl,'
6148       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6149       # not for PA HP-UX.
6150       case $host_cpu in
6151       hppa*64*|ia64*)
6152         # +Z the default
6153         ;;
6154       *)
6155         lt_prog_compiler_pic='+Z'
6156         ;;
6157       esac
6158       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6159       lt_prog_compiler_static='${wl}-a ${wl}archive'
6160       ;;
6161
6162     irix5* | irix6* | nonstopux*)
6163       lt_prog_compiler_wl='-Wl,'
6164       # PIC (with -KPIC) is the default.
6165       lt_prog_compiler_static='-non_shared'
6166       ;;
6167
6168     newsos6)
6169       lt_prog_compiler_pic='-KPIC'
6170       lt_prog_compiler_static='-Bstatic'
6171       ;;
6172
6173     linux*)
6174       case $cc_basename in
6175       icc* | ecc*)
6176         lt_prog_compiler_wl='-Wl,'
6177         lt_prog_compiler_pic='-KPIC'
6178         lt_prog_compiler_static='-static'
6179         ;;
6180       pgcc* | pgf77* | pgf90* | pgf95*)
6181         # Portland Group compilers (*not* the Pentium gcc compiler,
6182         # which looks to be a dead project)
6183         lt_prog_compiler_wl='-Wl,'
6184         lt_prog_compiler_pic='-fpic'
6185         lt_prog_compiler_static='-Bstatic'
6186         ;;
6187       ccc*)
6188         lt_prog_compiler_wl='-Wl,'
6189         # All Alpha code is PIC.
6190         lt_prog_compiler_static='-non_shared'
6191         ;;
6192       esac
6193       ;;
6194
6195     osf3* | osf4* | osf5*)
6196       lt_prog_compiler_wl='-Wl,'
6197       # All OSF/1 code is PIC.
6198       lt_prog_compiler_static='-non_shared'
6199       ;;
6200
6201     solaris*)
6202       lt_prog_compiler_pic='-KPIC'
6203       lt_prog_compiler_static='-Bstatic'
6204       case $cc_basename in
6205       f77* | f90* | f95*)
6206         lt_prog_compiler_wl='-Qoption ld ';;
6207       *)
6208         lt_prog_compiler_wl='-Wl,';;
6209       esac
6210       ;;
6211
6212     sunos4*)
6213       lt_prog_compiler_wl='-Qoption ld '
6214       lt_prog_compiler_pic='-PIC'
6215       lt_prog_compiler_static='-Bstatic'
6216       ;;
6217
6218     sysv4 | sysv4.2uw2* | sysv4.3*)
6219       lt_prog_compiler_wl='-Wl,'
6220       lt_prog_compiler_pic='-KPIC'
6221       lt_prog_compiler_static='-Bstatic'
6222       ;;
6223
6224     sysv4*MP*)
6225       if test -d /usr/nec ;then
6226         lt_prog_compiler_pic='-Kconform_pic'
6227         lt_prog_compiler_static='-Bstatic'
6228       fi
6229       ;;
6230
6231     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6232       lt_prog_compiler_wl='-Wl,'
6233       lt_prog_compiler_pic='-KPIC'
6234       lt_prog_compiler_static='-Bstatic'
6235       ;;
6236
6237     unicos*)
6238       lt_prog_compiler_wl='-Wl,'
6239       lt_prog_compiler_can_build_shared=no
6240       ;;
6241
6242     uts4*)
6243       lt_prog_compiler_pic='-pic'
6244       lt_prog_compiler_static='-Bstatic'
6245       ;;
6246
6247     *)
6248       lt_prog_compiler_can_build_shared=no
6249       ;;
6250     esac
6251   fi
6252
6253 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6254 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6255
6256 #
6257 # Check to make sure the PIC flag actually works.
6258 #
6259 if test -n "$lt_prog_compiler_pic"; then
6260
6261 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6262 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6263 if test "${lt_prog_compiler_pic_works+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   lt_prog_compiler_pic_works=no
6267   ac_outfile=conftest.$ac_objext
6268    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6269    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6270    # Insert the option either (1) after the last *FLAGS variable, or
6271    # (2) before a word containing "conftest.", or (3) at the end.
6272    # Note that $ac_compile itself does not contain backslashes and begins
6273    # with a dollar sign (not a hyphen), so the echo should work correctly.
6274    # The option is referenced via a variable to avoid confusing sed.
6275    lt_compile=`echo "$ac_compile" | $SED \
6276    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6278    -e 's:$: $lt_compiler_flag:'`
6279    (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
6280    (eval "$lt_compile" 2>conftest.err)
6281    ac_status=$?
6282    cat conftest.err >&5
6283    echo "$as_me:6283: \$? = $ac_status" >&5
6284    if (exit $ac_status) && test -s "$ac_outfile"; then
6285      # The compiler can only warn and ignore the option if not recognized
6286      # So say no if there are warnings other than the usual output.
6287      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6288      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6289      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6290        lt_prog_compiler_pic_works=yes
6291      fi
6292    fi
6293    $rm conftest*
6294
6295 fi
6296 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6297 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6298
6299 if test x"$lt_prog_compiler_pic_works" = xyes; then
6300     case $lt_prog_compiler_pic in
6301      "" | " "*) ;;
6302      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6303      esac
6304 else
6305     lt_prog_compiler_pic=
6306      lt_prog_compiler_can_build_shared=no
6307 fi
6308
6309 fi
6310 case $host_os in
6311   # For platforms which do not support PIC, -DPIC is meaningless:
6312   *djgpp*)
6313     lt_prog_compiler_pic=
6314     ;;
6315   *)
6316     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6317     ;;
6318 esac
6319
6320 #
6321 # Check to make sure the static flag actually works.
6322 #
6323 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6324 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6325 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6326 if test "${lt_prog_compiler_static_works+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   lt_prog_compiler_static_works=no
6330    save_LDFLAGS="$LDFLAGS"
6331    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6332    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6333    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6334      # The linker can only warn and ignore the option if not recognized
6335      # So say no if there are warnings
6336      if test -s conftest.err; then
6337        # Append any errors to the config.log.
6338        cat conftest.err 1>&5
6339        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6340        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6341        if diff conftest.exp conftest.er2 >/dev/null; then
6342          lt_prog_compiler_static_works=yes
6343        fi
6344      else
6345        lt_prog_compiler_static_works=yes
6346      fi
6347    fi
6348    $rm conftest*
6349    LDFLAGS="$save_LDFLAGS"
6350
6351 fi
6352 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6353 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6354
6355 if test x"$lt_prog_compiler_static_works" = xyes; then
6356     :
6357 else
6358     lt_prog_compiler_static=
6359 fi
6360
6361
6362 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6363 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6364 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   lt_cv_prog_compiler_c_o=no
6368    $rm -r conftest 2>/dev/null
6369    mkdir conftest
6370    cd conftest
6371    mkdir out
6372    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6373
6374    lt_compiler_flag="-o out/conftest2.$ac_objext"
6375    # Insert the option either (1) after the last *FLAGS variable, or
6376    # (2) before a word containing "conftest.", or (3) at the end.
6377    # Note that $ac_compile itself does not contain backslashes and begins
6378    # with a dollar sign (not a hyphen), so the echo should work correctly.
6379    lt_compile=`echo "$ac_compile" | $SED \
6380    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6381    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6382    -e 's:$: $lt_compiler_flag:'`
6383    (eval echo "\"\$as_me:6383: $lt_compile\"" >&5)
6384    (eval "$lt_compile" 2>out/conftest.err)
6385    ac_status=$?
6386    cat out/conftest.err >&5
6387    echo "$as_me:6387: \$? = $ac_status" >&5
6388    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6389    then
6390      # The compiler can only warn and ignore the option if not recognized
6391      # So say no if there are warnings
6392      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6393      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6394      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6395        lt_cv_prog_compiler_c_o=yes
6396      fi
6397    fi
6398    chmod u+w . 2>&5
6399    $rm conftest*
6400    # SGI C++ compiler will create directory out/ii_files/ for
6401    # template instantiation
6402    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6403    $rm out/* && rmdir out
6404    cd ..
6405    rmdir conftest
6406    $rm conftest*
6407
6408 fi
6409 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6410 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6411
6412
6413 hard_links="nottested"
6414 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6415   # do not overwrite the value of need_locks provided by the user
6416   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6417 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6418   hard_links=yes
6419   $rm conftest*
6420   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6421   touch conftest.a
6422   ln conftest.a conftest.b 2>&5 || hard_links=no
6423   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6424   echo "$as_me:$LINENO: result: $hard_links" >&5
6425 echo "${ECHO_T}$hard_links" >&6
6426   if test "$hard_links" = no; then
6427     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6428 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6429     need_locks=warn
6430   fi
6431 else
6432   need_locks=no
6433 fi
6434
6435 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6436 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6437
6438   runpath_var=
6439   allow_undefined_flag=
6440   enable_shared_with_static_runtimes=no
6441   archive_cmds=
6442   archive_expsym_cmds=
6443   old_archive_From_new_cmds=
6444   old_archive_from_expsyms_cmds=
6445   export_dynamic_flag_spec=
6446   whole_archive_flag_spec=
6447   thread_safe_flag_spec=
6448   hardcode_libdir_flag_spec=
6449   hardcode_libdir_flag_spec_ld=
6450   hardcode_libdir_separator=
6451   hardcode_direct=no
6452   hardcode_minus_L=no
6453   hardcode_shlibpath_var=unsupported
6454   link_all_deplibs=unknown
6455   hardcode_automatic=no
6456   module_cmds=
6457   module_expsym_cmds=
6458   always_export_symbols=no
6459   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6460   # include_expsyms should be a list of space-separated symbols to be *always*
6461   # included in the symbol list
6462   include_expsyms=
6463   # exclude_expsyms can be an extended regexp of symbols to exclude
6464   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6465   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6466   # as well as any symbol that contains `d'.
6467   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6468   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6469   # platforms (ab)use it in PIC code, but their linkers get confused if
6470   # the symbol is explicitly referenced.  Since portable code cannot
6471   # rely on this symbol name, it's probably fine to never include it in
6472   # preloaded symbol tables.
6473   extract_expsyms_cmds=
6474   # Just being paranoid about ensuring that cc_basename is set.
6475   for cc_temp in $compiler""; do
6476   case $cc_temp in
6477     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6478     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6479     \-*) ;;
6480     *) break;;
6481   esac
6482 done
6483 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6484
6485   case $host_os in
6486   cygwin* | mingw* | pw32*)
6487     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6488     # When not using gcc, we currently assume that we are using
6489     # Microsoft Visual C++.
6490     if test "$GCC" != yes; then
6491       with_gnu_ld=no
6492     fi
6493     ;;
6494   interix*)
6495     # we just hope/assume this is gcc and not c89 (= MSVC++)
6496     with_gnu_ld=yes
6497     ;;
6498   openbsd*)
6499     with_gnu_ld=no
6500     ;;
6501   esac
6502
6503   ld_shlibs=yes
6504   if test "$with_gnu_ld" = yes; then
6505     # If archive_cmds runs LD, not CC, wlarc should be empty
6506     wlarc='${wl}'
6507
6508     # Set some defaults for GNU ld with shared library support. These
6509     # are reset later if shared libraries are not supported. Putting them
6510     # here allows them to be overridden if necessary.
6511     runpath_var=LD_RUN_PATH
6512     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6513     export_dynamic_flag_spec='${wl}--export-dynamic'
6514     # ancient GNU ld didn't support --whole-archive et. al.
6515     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6516         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6517       else
6518         whole_archive_flag_spec=
6519     fi
6520     supports_anon_versioning=no
6521     case `$LD -v 2>/dev/null` in
6522       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6523       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6524       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6525       *\ 2.11.*) ;; # other 2.11 versions
6526       *) supports_anon_versioning=yes ;;
6527     esac
6528
6529     # See if GNU ld supports shared libraries.
6530     case $host_os in
6531     aix3* | aix4* | aix5*)
6532       # On AIX/PPC, the GNU linker is very broken
6533       if test "$host_cpu" != ia64; then
6534         ld_shlibs=no
6535         cat <<EOF 1>&2
6536
6537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538 *** to be unable to reliably create shared libraries on AIX.
6539 *** Therefore, libtool is disabling shared libraries support.  If you
6540 *** really care for shared libraries, you may want to modify your PATH
6541 *** so that a non-GNU linker is found, and then restart.
6542
6543 EOF
6544       fi
6545       ;;
6546
6547     amigaos*)
6548       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)'
6549       hardcode_libdir_flag_spec='-L$libdir'
6550       hardcode_minus_L=yes
6551
6552       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553       # that the semantics of dynamic libraries on AmigaOS, at least up
6554       # to version 4, is to share data among multiple programs linked
6555       # with the same dynamic library.  Since this doesn't match the
6556       # behavior of shared libraries on other platforms, we can't use
6557       # them.
6558       ld_shlibs=no
6559       ;;
6560
6561     beos*)
6562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563         allow_undefined_flag=unsupported
6564         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565         # support --undefined.  This deserves some investigation.  FIXME
6566         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6567       else
6568         ld_shlibs=no
6569       fi
6570       ;;
6571
6572     cygwin* | mingw* | pw32*)
6573       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574       # as there is no search path for DLLs.
6575       hardcode_libdir_flag_spec='-L$libdir'
6576       allow_undefined_flag=unsupported
6577       always_export_symbols=no
6578       enable_shared_with_static_runtimes=yes
6579       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6580
6581       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6583         # If the export-symbols file already is a .def file (1st line
6584         # is EXPORTS), use it as is; otherwise, prepend...
6585         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586           cp $export_symbols $output_objdir/$soname.def;
6587         else
6588           echo EXPORTS > $output_objdir/$soname.def;
6589           cat $export_symbols >> $output_objdir/$soname.def;
6590         fi~
6591         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6592       else
6593         ld_shlibs=no
6594       fi
6595       ;;
6596
6597     interix3*)
6598       hardcode_direct=no
6599       hardcode_shlibpath_var=no
6600       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6601       export_dynamic_flag_spec='${wl}-E'
6602       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6603       # Instead, shared libraries are loaded at an image base (0x10000000 by
6604       # default) and relocated if they conflict, which is a slow very memory
6605       # consuming and fragmenting process.  To avoid this, we pick a random,
6606       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6607       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6608       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6609       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6610       ;;
6611
6612     linux*)
6613       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6614         tmp_addflag=
6615         case $cc_basename,$host_cpu in
6616         pgcc*)                          # Portland Group C compiler
6617           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6618           tmp_addflag=' $pic_flag'
6619           ;;
6620         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6621           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6622           tmp_addflag=' $pic_flag -Mnomain' ;;
6623         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6624           tmp_addflag=' -i_dynamic' ;;
6625         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6626           tmp_addflag=' -i_dynamic -nofor_main' ;;
6627         ifc* | ifort*)                  # Intel Fortran compiler
6628           tmp_addflag=' -nofor_main' ;;
6629         esac
6630         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6631
6632         if test $supports_anon_versioning = yes; then
6633           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6634   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6635   $echo "local: *; };" >> $output_objdir/$libname.ver~
6636           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6637         fi
6638         link_all_deplibs=no
6639       else
6640         ld_shlibs=no
6641       fi
6642       ;;
6643
6644     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6645       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6646         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6647         wlarc=
6648       else
6649         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6650         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6651       fi
6652       ;;
6653
6654     solaris*)
6655       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6656         ld_shlibs=no
6657         cat <<EOF 1>&2
6658
6659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6660 *** create shared libraries on Solaris systems.  Therefore, libtool
6661 *** is disabling shared libraries support.  We urge you to upgrade GNU
6662 *** binutils to release 2.9.1 or newer.  Another option is to modify
6663 *** your PATH or compiler configuration so that the native linker is
6664 *** used, and then restart.
6665
6666 EOF
6667       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6668         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6669         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6670       else
6671         ld_shlibs=no
6672       fi
6673       ;;
6674
6675     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6676       case `$LD -v 2>&1` in
6677         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6678         ld_shlibs=no
6679         cat <<_LT_EOF 1>&2
6680
6681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6682 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6683 *** is disabling shared libraries support.  We urge you to upgrade GNU
6684 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6685 *** your PATH or compiler configuration so that the native linker is
6686 *** used, and then restart.
6687
6688 _LT_EOF
6689         ;;
6690         *)
6691           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6692             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6693             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6694             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6695           else
6696             ld_shlibs=no
6697           fi
6698         ;;
6699       esac
6700       ;;
6701
6702     sunos4*)
6703       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6704       wlarc=
6705       hardcode_direct=yes
6706       hardcode_shlibpath_var=no
6707       ;;
6708
6709     *)
6710       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6711         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6712         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6713       else
6714         ld_shlibs=no
6715       fi
6716       ;;
6717     esac
6718
6719     if test "$ld_shlibs" = no; then
6720       runpath_var=
6721       hardcode_libdir_flag_spec=
6722       export_dynamic_flag_spec=
6723       whole_archive_flag_spec=
6724     fi
6725   else
6726     # PORTME fill in a description of your system's linker (not GNU ld)
6727     case $host_os in
6728     aix3*)
6729       allow_undefined_flag=unsupported
6730       always_export_symbols=yes
6731       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'
6732       # Note: this linker hardcodes the directories in LIBPATH if there
6733       # are no directories specified by -L.
6734       hardcode_minus_L=yes
6735       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6736         # Neither direct hardcoding nor static linking is supported with a
6737         # broken collect2.
6738         hardcode_direct=unsupported
6739       fi
6740       ;;
6741
6742     aix4* | aix5*)
6743       if test "$host_cpu" = ia64; then
6744         # On IA64, the linker does run time linking by default, so we don't
6745         # have to do anything special.
6746         aix_use_runtimelinking=no
6747         exp_sym_flag='-Bexport'
6748         no_entry_flag=""
6749       else
6750         # If we're using GNU nm, then we don't want the "-C" option.
6751         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6752         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6753           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'
6754         else
6755           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'
6756         fi
6757         aix_use_runtimelinking=no
6758
6759         # Test if we are trying to use run time linking or normal
6760         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6761         # need to do runtime linking.
6762         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6763           for ld_flag in $LDFLAGS; do
6764           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6765             aix_use_runtimelinking=yes
6766             break
6767           fi
6768           done
6769           ;;
6770         esac
6771
6772         exp_sym_flag='-bexport'
6773         no_entry_flag='-bnoentry'
6774       fi
6775
6776       # When large executables or shared objects are built, AIX ld can
6777       # have problems creating the table of contents.  If linking a library
6778       # or program results in "error TOC overflow" add -mminimal-toc to
6779       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6780       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6781
6782       archive_cmds=''
6783       hardcode_direct=yes
6784       hardcode_libdir_separator=':'
6785       link_all_deplibs=yes
6786
6787       if test "$GCC" = yes; then
6788         case $host_os in aix4.[012]|aix4.[012].*)
6789         # We only want to do this on AIX 4.2 and lower, the check
6790         # below for broken collect2 doesn't work under 4.3+
6791           collect2name=`${CC} -print-prog-name=collect2`
6792           if test -f "$collect2name" && \
6793            strings "$collect2name" | grep resolve_lib_name >/dev/null
6794           then
6795           # We have reworked collect2
6796           hardcode_direct=yes
6797           else
6798           # We have old collect2
6799           hardcode_direct=unsupported
6800           # It fails to find uninstalled libraries when the uninstalled
6801           # path is not listed in the libpath.  Setting hardcode_minus_L
6802           # to unsupported forces relinking
6803           hardcode_minus_L=yes
6804           hardcode_libdir_flag_spec='-L$libdir'
6805           hardcode_libdir_separator=
6806           fi
6807           ;;
6808         esac
6809         shared_flag='-shared'
6810         if test "$aix_use_runtimelinking" = yes; then
6811           shared_flag="$shared_flag "'${wl}-G'
6812         fi
6813       else
6814         # not using gcc
6815         if test "$host_cpu" = ia64; then
6816         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6817         # chokes on -Wl,-G. The following line is correct:
6818           shared_flag='-G'
6819         else
6820           if test "$aix_use_runtimelinking" = yes; then
6821             shared_flag='${wl}-G'
6822           else
6823             shared_flag='${wl}-bM:SRE'
6824           fi
6825         fi
6826       fi
6827
6828       # It seems that -bexpall does not export symbols beginning with
6829       # underscore (_), so it is better to generate a list of symbols to export.
6830       always_export_symbols=yes
6831       if test "$aix_use_runtimelinking" = yes; then
6832         # Warning - without using the other runtime loading flags (-brtl),
6833         # -berok will link without error, but may produce a broken library.
6834         allow_undefined_flag='-berok'
6835        # Determine the default libpath from the value encoded in an empty executable.
6836        cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842
6843 int
6844 main ()
6845 {
6846
6847   ;
6848   return 0;
6849 }
6850 _ACEOF
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853   (eval $ac_link) 2>conftest.er1
6854   ac_status=$?
6855   grep -v '^ *+' conftest.er1 >conftest.err
6856   rm -f conftest.er1
6857   cat conftest.err >&5
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); } &&
6860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862   (eval $ac_try) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }; } &&
6866          { ac_try='test -s conftest$ac_exeext'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; }; then
6872
6873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6874 }'`
6875 # Check for a 64-bit object if we didn't find anything.
6876 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; }
6877 }'`; fi
6878 else
6879   echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 fi
6883 rm -f conftest.err conftest.$ac_objext \
6884       conftest$ac_exeext conftest.$ac_ext
6885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6886
6887        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6888         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6889        else
6890         if test "$host_cpu" = ia64; then
6891           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6892           allow_undefined_flag="-z nodefs"
6893           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6894         else
6895          # Determine the default libpath from the value encoded in an empty executable.
6896          cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h.  */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h.  */
6902
6903 int
6904 main ()
6905 {
6906
6907   ;
6908   return 0;
6909 }
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913   (eval $ac_link) 2>conftest.er1
6914   ac_status=$?
6915   grep -v '^ *+' conftest.er1 >conftest.err
6916   rm -f conftest.er1
6917   cat conftest.err >&5
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); } &&
6920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; } &&
6926          { ac_try='test -s conftest$ac_exeext'
6927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928   (eval $ac_try) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; }; then
6932
6933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6934 }'`
6935 # Check for a 64-bit object if we didn't find anything.
6936 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; }
6937 }'`; fi
6938 else
6939   echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 fi
6943 rm -f conftest.err conftest.$ac_objext \
6944       conftest$ac_exeext conftest.$ac_ext
6945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6946
6947          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6948           # Warning - without using the other run time loading flags,
6949           # -berok will link without error, but may produce a broken library.
6950           no_undefined_flag=' ${wl}-bernotok'
6951           allow_undefined_flag=' ${wl}-berok'
6952           # Exported symbols can be pulled into shared objects from archives
6953           whole_archive_flag_spec='$convenience'
6954           archive_cmds_need_lc=yes
6955           # This is similar to how AIX traditionally builds its shared libraries.
6956           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6957         fi
6958       fi
6959       ;;
6960
6961     amigaos*)
6962       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)'
6963       hardcode_libdir_flag_spec='-L$libdir'
6964       hardcode_minus_L=yes
6965       # see comment about different semantics on the GNU ld section
6966       ld_shlibs=no
6967       ;;
6968
6969     bsdi[45]*)
6970       export_dynamic_flag_spec=-rdynamic
6971       ;;
6972
6973     cygwin* | mingw* | pw32*)
6974       # When not using gcc, we currently assume that we are using
6975       # Microsoft Visual C++.
6976       # hardcode_libdir_flag_spec is actually meaningless, as there is
6977       # no search path for DLLs.
6978       hardcode_libdir_flag_spec=' '
6979       allow_undefined_flag=unsupported
6980       # Tell ltmain to make .lib files, not .a files.
6981       libext=lib
6982       # Tell ltmain to make .dll files, not .so files.
6983       shrext_cmds=".dll"
6984       # FIXME: Setting linknames here is a bad hack.
6985       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6986       # The linker will automatically build a .lib file if we build a DLL.
6987       old_archive_From_new_cmds='true'
6988       # FIXME: Should let the user specify the lib program.
6989       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6990       fix_srcfile_path='`cygpath -w "$srcfile"`'
6991       enable_shared_with_static_runtimes=yes
6992       ;;
6993
6994     darwin* | rhapsody*)
6995       case $host_os in
6996         rhapsody* | darwin1.[012])
6997          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6998          ;;
6999        *) # Darwin 1.3 on
7000          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7001            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7002          else
7003            case ${MACOSX_DEPLOYMENT_TARGET} in
7004              10.[012])
7005                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7006                ;;
7007              10.*)
7008                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7009                ;;
7010            esac
7011          fi
7012          ;;
7013       esac
7014       archive_cmds_need_lc=no
7015       hardcode_direct=no
7016       hardcode_automatic=yes
7017       hardcode_shlibpath_var=unsupported
7018       whole_archive_flag_spec=''
7019       link_all_deplibs=yes
7020     if test "$GCC" = yes ; then
7021         output_verbose_link_cmd='echo'
7022         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7023       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7024       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7025       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}'
7026       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}'
7027     else
7028       case $cc_basename in
7029         xlc*)
7030          output_verbose_link_cmd='echo'
7031          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7032          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7033           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7034          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7035           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}'
7036           ;;
7037        *)
7038          ld_shlibs=no
7039           ;;
7040       esac
7041     fi
7042       ;;
7043
7044     dgux*)
7045       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7046       hardcode_libdir_flag_spec='-L$libdir'
7047       hardcode_shlibpath_var=no
7048       ;;
7049
7050     freebsd1*)
7051       ld_shlibs=no
7052       ;;
7053
7054     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7055     # support.  Future versions do this automatically, but an explicit c++rt0.o
7056     # does not break anything, and helps significantly (at the cost of a little
7057     # extra space).
7058     freebsd2.2*)
7059       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7060       hardcode_libdir_flag_spec='-R$libdir'
7061       hardcode_direct=yes
7062       hardcode_shlibpath_var=no
7063       ;;
7064
7065     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7066     freebsd2*)
7067       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7068       hardcode_direct=yes
7069       hardcode_minus_L=yes
7070       hardcode_shlibpath_var=no
7071       ;;
7072
7073     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7074     freebsd* | dragonfly*)
7075       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7076       hardcode_libdir_flag_spec='-R$libdir'
7077       hardcode_direct=yes
7078       hardcode_shlibpath_var=no
7079       ;;
7080
7081     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7082     kfreebsd*-gnu)
7083       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7084       hardcode_libdir_flag_spec='-R$libdir'
7085       hardcode_direct=yes
7086       hardcode_shlibpath_var=no
7087       link_all_deplibs=no
7088       ;;
7089
7090     hpux9*)
7091       if test "$GCC" = yes; then
7092         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'
7093       else
7094         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'
7095       fi
7096       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7097       hardcode_libdir_separator=:
7098       hardcode_direct=yes
7099
7100       # hardcode_minus_L: Not really in the search PATH,
7101       # but as the default location of the library.
7102       hardcode_minus_L=yes
7103       export_dynamic_flag_spec='${wl}-E'
7104       ;;
7105
7106     hpux10*)
7107       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7108         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7109       else
7110         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7111       fi
7112       if test "$with_gnu_ld" = no; then
7113         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7114         hardcode_libdir_separator=:
7115
7116         hardcode_direct=yes
7117         export_dynamic_flag_spec='${wl}-E'
7118
7119         # hardcode_minus_L: Not really in the search PATH,
7120         # but as the default location of the library.
7121         hardcode_minus_L=yes
7122       fi
7123       ;;
7124
7125     hpux11*)
7126       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7127         case $host_cpu in
7128         hppa*64*)
7129           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7130           ;;
7131         ia64*)
7132           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7133           ;;
7134         *)
7135           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7136           ;;
7137         esac
7138       else
7139         case $host_cpu in
7140         hppa*64*)
7141           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7142           ;;
7143         ia64*)
7144           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7145           ;;
7146         *)
7147           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7148           ;;
7149         esac
7150       fi
7151       if test "$with_gnu_ld" = no; then
7152         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7153         hardcode_libdir_separator=:
7154
7155         case $host_cpu in
7156         hppa*64*|ia64*)
7157           hardcode_libdir_flag_spec_ld='+b $libdir'
7158           hardcode_direct=no
7159           hardcode_shlibpath_var=no
7160           ;;
7161         *)
7162           hardcode_direct=yes
7163           export_dynamic_flag_spec='${wl}-E'
7164
7165           # hardcode_minus_L: Not really in the search PATH,
7166           # but as the default location of the library.
7167           hardcode_minus_L=yes
7168           ;;
7169         esac
7170       fi
7171       ;;
7172
7173     irix5* | irix6* | nonstopux*)
7174       if test "$GCC" = yes; then
7175         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'
7176       else
7177         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'
7178         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7179       fi
7180       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7181       hardcode_libdir_separator=:
7182       link_all_deplibs=yes
7183       ;;
7184
7185     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7186       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7187         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7188       else
7189         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7190       fi
7191       hardcode_libdir_flag_spec='-R$libdir'
7192       hardcode_direct=yes
7193       hardcode_shlibpath_var=no
7194       ;;
7195
7196     newsos6)
7197       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7198       hardcode_direct=yes
7199       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200       hardcode_libdir_separator=:
7201       hardcode_shlibpath_var=no
7202       ;;
7203
7204     openbsd*)
7205       hardcode_direct=yes
7206       hardcode_shlibpath_var=no
7207       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7208         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7209         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7210         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7211         export_dynamic_flag_spec='${wl}-E'
7212       else
7213        case $host_os in
7214          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7215            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7216            hardcode_libdir_flag_spec='-R$libdir'
7217            ;;
7218          *)
7219            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7220            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7221            ;;
7222        esac
7223       fi
7224       ;;
7225
7226     os2*)
7227       hardcode_libdir_flag_spec='-L$libdir'
7228       hardcode_minus_L=yes
7229       allow_undefined_flag=unsupported
7230       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'
7231       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7232       ;;
7233
7234     osf3*)
7235       if test "$GCC" = yes; then
7236         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7237         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'
7238       else
7239         allow_undefined_flag=' -expect_unresolved \*'
7240         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'
7241       fi
7242       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7243       hardcode_libdir_separator=:
7244       ;;
7245
7246     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7247       if test "$GCC" = yes; then
7248         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7249         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'
7250         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7251       else
7252         allow_undefined_flag=' -expect_unresolved \*'
7253         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'
7254         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7255         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7256
7257         # Both c and cxx compiler support -rpath directly
7258         hardcode_libdir_flag_spec='-rpath $libdir'
7259       fi
7260       hardcode_libdir_separator=:
7261       ;;
7262
7263     solaris*)
7264       no_undefined_flag=' -z text'
7265       if test "$GCC" = yes; then
7266         wlarc='${wl}'
7267         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7268         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7269           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7270       else
7271         wlarc=''
7272         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7274         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7275       fi
7276       hardcode_libdir_flag_spec='-R$libdir'
7277       hardcode_shlibpath_var=no
7278       case $host_os in
7279       solaris2.[0-5] | solaris2.[0-5].*) ;;
7280       *)
7281         # The compiler driver will combine linker options so we
7282         # cannot just pass the convience library names through
7283         # without $wl, iff we do not link with $LD.
7284         # Luckily, gcc supports the same syntax we need for Sun Studio.
7285         # Supported since Solaris 2.6 (maybe 2.5.1?)
7286         case $wlarc in
7287         '')
7288           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7289         *)
7290           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7291         esac ;;
7292       esac
7293       link_all_deplibs=yes
7294       ;;
7295
7296     sunos4*)
7297       if test "x$host_vendor" = xsequent; then
7298         # Use $CC to link under sequent, because it throws in some extra .o
7299         # files that make .init and .fini sections work.
7300         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7301       else
7302         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7303       fi
7304       hardcode_libdir_flag_spec='-L$libdir'
7305       hardcode_direct=yes
7306       hardcode_minus_L=yes
7307       hardcode_shlibpath_var=no
7308       ;;
7309
7310     sysv4)
7311       case $host_vendor in
7312         sni)
7313           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314           hardcode_direct=yes # is this really true???
7315         ;;
7316         siemens)
7317           ## LD is ld it makes a PLAMLIB
7318           ## CC just makes a GrossModule.
7319           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7320           reload_cmds='$CC -r -o $output$reload_objs'
7321           hardcode_direct=no
7322         ;;
7323         motorola)
7324           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7326         ;;
7327       esac
7328       runpath_var='LD_RUN_PATH'
7329       hardcode_shlibpath_var=no
7330       ;;
7331
7332     sysv4.3*)
7333       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334       hardcode_shlibpath_var=no
7335       export_dynamic_flag_spec='-Bexport'
7336       ;;
7337
7338     sysv4*MP*)
7339       if test -d /usr/nec; then
7340         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341         hardcode_shlibpath_var=no
7342         runpath_var=LD_RUN_PATH
7343         hardcode_runpath_var=yes
7344         ld_shlibs=yes
7345       fi
7346       ;;
7347
7348     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7349       no_undefined_flag='${wl}-z,text'
7350       archive_cmds_need_lc=no
7351       hardcode_shlibpath_var=no
7352       runpath_var='LD_RUN_PATH'
7353
7354       if test "$GCC" = yes; then
7355         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7356         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7357       else
7358         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7359         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7360       fi
7361       ;;
7362
7363     sysv5* | sco3.2v5* | sco5v6*)
7364       # Note: We can NOT use -z defs as we might desire, because we do not
7365       # link with -lc, and that would cause any symbols used from libc to
7366       # always be unresolved, which means just about no library would
7367       # ever link correctly.  If we're not using GNU ld we use -z text
7368       # though, which does catch some bad symbols but isn't as heavy-handed
7369       # as -z defs.
7370       no_undefined_flag='${wl}-z,text'
7371       allow_undefined_flag='${wl}-z,nodefs'
7372       archive_cmds_need_lc=no
7373       hardcode_shlibpath_var=no
7374       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7375       hardcode_libdir_separator=':'
7376       link_all_deplibs=yes
7377       export_dynamic_flag_spec='${wl}-Bexport'
7378       runpath_var='LD_RUN_PATH'
7379
7380       if test "$GCC" = yes; then
7381         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7382         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7383       else
7384         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7385         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7386       fi
7387       ;;
7388
7389     uts4*)
7390       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7391       hardcode_libdir_flag_spec='-L$libdir'
7392       hardcode_shlibpath_var=no
7393       ;;
7394
7395     *)
7396       ld_shlibs=no
7397       ;;
7398     esac
7399   fi
7400
7401 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7402 echo "${ECHO_T}$ld_shlibs" >&6
7403 test "$ld_shlibs" = no && can_build_shared=no
7404
7405 #
7406 # Do we need to explicitly link libc?
7407 #
7408 case "x$archive_cmds_need_lc" in
7409 x|xyes)
7410   # Assume -lc should be added
7411   archive_cmds_need_lc=yes
7412
7413   if test "$enable_shared" = yes && test "$GCC" = yes; then
7414     case $archive_cmds in
7415     *'~'*)
7416       # FIXME: we may have to deal with multi-command sequences.
7417       ;;
7418     '$CC '*)
7419       # Test whether the compiler implicitly links with -lc since on some
7420       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7421       # to ld, don't add -lc before -lgcc.
7422       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7423 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7424       $rm conftest*
7425       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7426
7427       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428   (eval $ac_compile) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } 2>conftest.err; then
7432         soname=conftest
7433         lib=conftest
7434         libobjs=conftest.$ac_objext
7435         deplibs=
7436         wl=$lt_prog_compiler_wl
7437         pic_flag=$lt_prog_compiler_pic
7438         compiler_flags=-v
7439         linker_flags=-v
7440         verstring=
7441         output_objdir=.
7442         libname=conftest
7443         lt_save_allow_undefined_flag=$allow_undefined_flag
7444         allow_undefined_flag=
7445         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7446   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }
7450         then
7451           archive_cmds_need_lc=no
7452         else
7453           archive_cmds_need_lc=yes
7454         fi
7455         allow_undefined_flag=$lt_save_allow_undefined_flag
7456       else
7457         cat conftest.err 1>&5
7458       fi
7459       $rm conftest*
7460       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7461 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7462       ;;
7463     esac
7464   fi
7465   ;;
7466 esac
7467
7468 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7469 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7470 library_names_spec=
7471 libname_spec='lib$name'
7472 soname_spec=
7473 shrext_cmds=".so"
7474 postinstall_cmds=
7475 postuninstall_cmds=
7476 finish_cmds=
7477 finish_eval=
7478 shlibpath_var=
7479 shlibpath_overrides_runpath=unknown
7480 version_type=none
7481 dynamic_linker="$host_os ld.so"
7482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7483 if test "$GCC" = yes; then
7484   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7485   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7486     # if the path contains ";" then we assume it to be the separator
7487     # otherwise default to the standard path separator (i.e. ":") - it is
7488     # assumed that no part of a normal pathname contains ";" but that should
7489     # okay in the real world where ";" in dirpaths is itself problematic.
7490     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7491   else
7492     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7493   fi
7494 else
7495   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7496 fi
7497 need_lib_prefix=unknown
7498 hardcode_into_libs=no
7499
7500 # when you set need_version to no, make sure it does not cause -set_version
7501 # flags to be left without arguments
7502 need_version=unknown
7503
7504 case $host_os in
7505 aix3*)
7506   version_type=linux
7507   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7508   shlibpath_var=LIBPATH
7509
7510   # AIX 3 has no versioning support, so we append a major version to the name.
7511   soname_spec='${libname}${release}${shared_ext}$major'
7512   ;;
7513
7514 aix4* | aix5*)
7515   version_type=linux
7516   need_lib_prefix=no
7517   need_version=no
7518   hardcode_into_libs=yes
7519   if test "$host_cpu" = ia64; then
7520     # AIX 5 supports IA64
7521     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7522     shlibpath_var=LD_LIBRARY_PATH
7523   else
7524     # With GCC up to 2.95.x, collect2 would create an import file
7525     # for dependence libraries.  The import file would start with
7526     # the line `#! .'.  This would cause the generated library to
7527     # depend on `.', always an invalid library.  This was fixed in
7528     # development snapshots of GCC prior to 3.0.
7529     case $host_os in
7530       aix4 | aix4.[01] | aix4.[01].*)
7531       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7532            echo ' yes '
7533            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7534         :
7535       else
7536         can_build_shared=no
7537       fi
7538       ;;
7539     esac
7540     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7541     # soname into executable. Probably we can add versioning support to
7542     # collect2, so additional links can be useful in future.
7543     if test "$aix_use_runtimelinking" = yes; then
7544       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7545       # instead of lib<name>.a to let people know that these are not
7546       # typical AIX shared libraries.
7547       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7548     else
7549       # We preserve .a as extension for shared libraries through AIX4.2
7550       # and later when we are not doing run time linking.
7551       library_names_spec='${libname}${release}.a $libname.a'
7552       soname_spec='${libname}${release}${shared_ext}$major'
7553     fi
7554     shlibpath_var=LIBPATH
7555   fi
7556   ;;
7557
7558 amigaos*)
7559   library_names_spec='$libname.ixlibrary $libname.a'
7560   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7561   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'
7562   ;;
7563
7564 beos*)
7565   library_names_spec='${libname}${shared_ext}'
7566   dynamic_linker="$host_os ld.so"
7567   shlibpath_var=LIBRARY_PATH
7568   ;;
7569
7570 bsdi[45]*)
7571   version_type=linux
7572   need_version=no
7573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7574   soname_spec='${libname}${release}${shared_ext}$major'
7575   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7576   shlibpath_var=LD_LIBRARY_PATH
7577   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7578   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7579   # the default ld.so.conf also contains /usr/contrib/lib and
7580   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7581   # libtool to hard-code these into programs
7582   ;;
7583
7584 cygwin* | mingw* | pw32*)
7585   version_type=windows
7586   shrext_cmds=".dll"
7587   need_version=no
7588   need_lib_prefix=no
7589
7590   case $GCC,$host_os in
7591   yes,cygwin* | yes,mingw* | yes,pw32*)
7592     library_names_spec='$libname.dll.a'
7593     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7594     postinstall_cmds='base_file=`basename \${file}`~
7595       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7596       dldir=$destdir/`dirname \$dlpath`~
7597       test -d \$dldir || mkdir -p \$dldir~
7598       $install_prog $dir/$dlname \$dldir/$dlname~
7599       chmod a+x \$dldir/$dlname'
7600     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7601       dlpath=$dir/\$dldll~
7602        $rm \$dlpath'
7603     shlibpath_overrides_runpath=yes
7604
7605     case $host_os in
7606     cygwin*)
7607       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7608       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7609       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7610       ;;
7611     mingw*)
7612       # MinGW DLLs use traditional 'lib' prefix
7613       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7614       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7615       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7616         # It is most probably a Windows format PATH printed by
7617         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7618         # path with ; separators, and with drive letters. We can handle the
7619         # drive letters (cygwin fileutils understands them), so leave them,
7620         # especially as we might pass files found there to a mingw objdump,
7621         # which wouldn't understand a cygwinified path. Ahh.
7622         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7623       else
7624         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7625       fi
7626       ;;
7627     pw32*)
7628       # pw32 DLLs use 'pw' prefix rather than 'lib'
7629       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7630       ;;
7631     esac
7632     ;;
7633
7634   *)
7635     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7636     ;;
7637   esac
7638   dynamic_linker='Win32 ld.exe'
7639   # FIXME: first we should search . and the directory the executable is in
7640   shlibpath_var=PATH
7641   ;;
7642
7643 darwin* | rhapsody*)
7644   dynamic_linker="$host_os dyld"
7645   version_type=darwin
7646   need_lib_prefix=no
7647   need_version=no
7648   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7649   soname_spec='${libname}${release}${major}$shared_ext'
7650   shlibpath_overrides_runpath=yes
7651   shlibpath_var=DYLD_LIBRARY_PATH
7652   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7653   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7654   if test "$GCC" = yes; then
7655     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"`
7656   else
7657     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7658   fi
7659   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7660   ;;
7661
7662 dgux*)
7663   version_type=linux
7664   need_lib_prefix=no
7665   need_version=no
7666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7667   soname_spec='${libname}${release}${shared_ext}$major'
7668   shlibpath_var=LD_LIBRARY_PATH
7669   ;;
7670
7671 freebsd1*)
7672   dynamic_linker=no
7673   ;;
7674
7675 kfreebsd*-gnu)
7676   version_type=linux
7677   need_lib_prefix=no
7678   need_version=no
7679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7680   soname_spec='${libname}${release}${shared_ext}$major'
7681   shlibpath_var=LD_LIBRARY_PATH
7682   shlibpath_overrides_runpath=no
7683   hardcode_into_libs=yes
7684   dynamic_linker='GNU ld.so'
7685   ;;
7686
7687 freebsd* | dragonfly*)
7688   # DragonFly does not have aout.  When/if they implement a new
7689   # versioning mechanism, adjust this.
7690   if test -x /usr/bin/objformat; then
7691     objformat=`/usr/bin/objformat`
7692   else
7693     case $host_os in
7694     freebsd[123]*) objformat=aout ;;
7695     *) objformat=elf ;;
7696     esac
7697   fi
7698   version_type=freebsd-$objformat
7699   case $version_type in
7700     freebsd-elf*)
7701       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7702       need_version=no
7703       need_lib_prefix=no
7704       ;;
7705     freebsd-*)
7706       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7707       need_version=yes
7708       ;;
7709   esac
7710   shlibpath_var=LD_LIBRARY_PATH
7711   case $host_os in
7712   freebsd2*)
7713     shlibpath_overrides_runpath=yes
7714     ;;
7715   freebsd3.[01]* | freebsdelf3.[01]*)
7716     shlibpath_overrides_runpath=yes
7717     hardcode_into_libs=yes
7718     ;;
7719   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7720   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7721     shlibpath_overrides_runpath=no
7722     hardcode_into_libs=yes
7723     ;;
7724   freebsd*) # from 4.6 on
7725     shlibpath_overrides_runpath=yes
7726     hardcode_into_libs=yes
7727     ;;
7728   esac
7729   ;;
7730
7731 gnu*)
7732   version_type=linux
7733   need_lib_prefix=no
7734   need_version=no
7735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7736   soname_spec='${libname}${release}${shared_ext}$major'
7737   shlibpath_var=LD_LIBRARY_PATH
7738   hardcode_into_libs=yes
7739   ;;
7740
7741 hpux9* | hpux10* | hpux11*)
7742   # Give a soname corresponding to the major version so that dld.sl refuses to
7743   # link against other versions.
7744   version_type=sunos
7745   need_lib_prefix=no
7746   need_version=no
7747   case $host_cpu in
7748   ia64*)
7749     shrext_cmds='.so'
7750     hardcode_into_libs=yes
7751     dynamic_linker="$host_os dld.so"
7752     shlibpath_var=LD_LIBRARY_PATH
7753     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7755     soname_spec='${libname}${release}${shared_ext}$major'
7756     if test "X$HPUX_IA64_MODE" = X32; then
7757       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7758     else
7759       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7760     fi
7761     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7762     ;;
7763    hppa*64*)
7764      shrext_cmds='.sl'
7765      hardcode_into_libs=yes
7766      dynamic_linker="$host_os dld.sl"
7767      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7768      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7769      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7770      soname_spec='${libname}${release}${shared_ext}$major'
7771      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7772      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7773      ;;
7774    *)
7775     shrext_cmds='.sl'
7776     dynamic_linker="$host_os dld.sl"
7777     shlibpath_var=SHLIB_PATH
7778     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7780     soname_spec='${libname}${release}${shared_ext}$major'
7781     ;;
7782   esac
7783   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7784   postinstall_cmds='chmod 555 $lib'
7785   ;;
7786
7787 interix3*)
7788   version_type=linux
7789   need_lib_prefix=no
7790   need_version=no
7791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7792   soname_spec='${libname}${release}${shared_ext}$major'
7793   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7794   shlibpath_var=LD_LIBRARY_PATH
7795   shlibpath_overrides_runpath=no
7796   hardcode_into_libs=yes
7797   ;;
7798
7799 irix5* | irix6* | nonstopux*)
7800   case $host_os in
7801     nonstopux*) version_type=nonstopux ;;
7802     *)
7803         if test "$lt_cv_prog_gnu_ld" = yes; then
7804                 version_type=linux
7805         else
7806                 version_type=irix
7807         fi ;;
7808   esac
7809   need_lib_prefix=no
7810   need_version=no
7811   soname_spec='${libname}${release}${shared_ext}$major'
7812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7813   case $host_os in
7814   irix5* | nonstopux*)
7815     libsuff= shlibsuff=
7816     ;;
7817   *)
7818     case $LD in # libtool.m4 will add one of these switches to LD
7819     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7820       libsuff= shlibsuff= libmagic=32-bit;;
7821     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7822       libsuff=32 shlibsuff=N32 libmagic=N32;;
7823     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7824       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7825     *) libsuff= shlibsuff= libmagic=never-match;;
7826     esac
7827     ;;
7828   esac
7829   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7830   shlibpath_overrides_runpath=no
7831   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7832   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7833   hardcode_into_libs=yes
7834   ;;
7835
7836 # No shared lib support for Linux oldld, aout, or coff.
7837 linux*oldld* | linux*aout* | linux*coff*)
7838   dynamic_linker=no
7839   ;;
7840
7841 # This must be Linux ELF.
7842 linux*)
7843   version_type=linux
7844   need_lib_prefix=no
7845   need_version=no
7846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7847   soname_spec='${libname}${release}${shared_ext}$major'
7848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7849   shlibpath_var=LD_LIBRARY_PATH
7850   shlibpath_overrides_runpath=no
7851   # This implies no fast_install, which is unacceptable.
7852   # Some rework will be needed to allow for fast_install
7853   # before this can be enabled.
7854   hardcode_into_libs=yes
7855
7856   # Append ld.so.conf contents to the search path
7857   if test -f /etc/ld.so.conf; then
7858     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7859     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7860   fi
7861
7862   # We used to test for /lib/ld.so.1 and disable shared libraries on
7863   # powerpc, because MkLinux only supported shared libraries with the
7864   # GNU dynamic linker.  Since this was broken with cross compilers,
7865   # most powerpc-linux boxes support dynamic linking these days and
7866   # people can always --disable-shared, the test was removed, and we
7867   # assume the GNU/Linux dynamic linker is in use.
7868   dynamic_linker='GNU/Linux ld.so'
7869   ;;
7870
7871 netbsdelf*-gnu)
7872   version_type=linux
7873   need_lib_prefix=no
7874   need_version=no
7875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7876   soname_spec='${libname}${release}${shared_ext}$major'
7877   shlibpath_var=LD_LIBRARY_PATH
7878   shlibpath_overrides_runpath=no
7879   hardcode_into_libs=yes
7880   dynamic_linker='NetBSD ld.elf_so'
7881   ;;
7882
7883 knetbsd*-gnu)
7884   version_type=linux
7885   need_lib_prefix=no
7886   need_version=no
7887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7888   soname_spec='${libname}${release}${shared_ext}$major'
7889   shlibpath_var=LD_LIBRARY_PATH
7890   shlibpath_overrides_runpath=no
7891   hardcode_into_libs=yes
7892   dynamic_linker='GNU ld.so'
7893   ;;
7894
7895 netbsd*)
7896   version_type=sunos
7897   need_lib_prefix=no
7898   need_version=no
7899   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7901     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7902     dynamic_linker='NetBSD (a.out) ld.so'
7903   else
7904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7905     soname_spec='${libname}${release}${shared_ext}$major'
7906     dynamic_linker='NetBSD ld.elf_so'
7907   fi
7908   shlibpath_var=LD_LIBRARY_PATH
7909   shlibpath_overrides_runpath=yes
7910   hardcode_into_libs=yes
7911   ;;
7912
7913 newsos6)
7914   version_type=linux
7915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916   shlibpath_var=LD_LIBRARY_PATH
7917   shlibpath_overrides_runpath=yes
7918   ;;
7919
7920 nto-qnx*)
7921   version_type=linux
7922   need_lib_prefix=no
7923   need_version=no
7924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925   soname_spec='${libname}${release}${shared_ext}$major'
7926   shlibpath_var=LD_LIBRARY_PATH
7927   shlibpath_overrides_runpath=yes
7928   ;;
7929
7930 openbsd*)
7931   version_type=sunos
7932   sys_lib_dlsearch_path_spec="/usr/lib"
7933   need_lib_prefix=no
7934   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7935   case $host_os in
7936     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7937     *)                         need_version=no  ;;
7938   esac
7939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7941   shlibpath_var=LD_LIBRARY_PATH
7942   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7943     case $host_os in
7944       openbsd2.[89] | openbsd2.[89].*)
7945         shlibpath_overrides_runpath=no
7946         ;;
7947       *)
7948         shlibpath_overrides_runpath=yes
7949         ;;
7950       esac
7951   else
7952     shlibpath_overrides_runpath=yes
7953   fi
7954   ;;
7955
7956 os2*)
7957   libname_spec='$name'
7958   shrext_cmds=".dll"
7959   need_lib_prefix=no
7960   library_names_spec='$libname${shared_ext} $libname.a'
7961   dynamic_linker='OS/2 ld.exe'
7962   shlibpath_var=LIBPATH
7963   ;;
7964
7965 osf3* | osf4* | osf5*)
7966   version_type=osf
7967   need_lib_prefix=no
7968   need_version=no
7969   soname_spec='${libname}${release}${shared_ext}$major'
7970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971   shlibpath_var=LD_LIBRARY_PATH
7972   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7973   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7974   ;;
7975
7976 solaris*)
7977   version_type=linux
7978   need_lib_prefix=no
7979   need_version=no
7980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981   soname_spec='${libname}${release}${shared_ext}$major'
7982   shlibpath_var=LD_LIBRARY_PATH
7983   shlibpath_overrides_runpath=yes
7984   hardcode_into_libs=yes
7985   # ldd complains unless libraries are executable
7986   postinstall_cmds='chmod +x $lib'
7987   ;;
7988
7989 sunos4*)
7990   version_type=sunos
7991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7992   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7993   shlibpath_var=LD_LIBRARY_PATH
7994   shlibpath_overrides_runpath=yes
7995   if test "$with_gnu_ld" = yes; then
7996     need_lib_prefix=no
7997   fi
7998   need_version=yes
7999   ;;
8000
8001 sysv4 | sysv4.3*)
8002   version_type=linux
8003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004   soname_spec='${libname}${release}${shared_ext}$major'
8005   shlibpath_var=LD_LIBRARY_PATH
8006   case $host_vendor in
8007     sni)
8008       shlibpath_overrides_runpath=no
8009       need_lib_prefix=no
8010       export_dynamic_flag_spec='${wl}-Blargedynsym'
8011       runpath_var=LD_RUN_PATH
8012       ;;
8013     siemens)
8014       need_lib_prefix=no
8015       ;;
8016     motorola)
8017       need_lib_prefix=no
8018       need_version=no
8019       shlibpath_overrides_runpath=no
8020       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8021       ;;
8022   esac
8023   ;;
8024
8025 sysv4*MP*)
8026   if test -d /usr/nec ;then
8027     version_type=linux
8028     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8029     soname_spec='$libname${shared_ext}.$major'
8030     shlibpath_var=LD_LIBRARY_PATH
8031   fi
8032   ;;
8033
8034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8035   version_type=freebsd-elf
8036   need_lib_prefix=no
8037   need_version=no
8038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8039   soname_spec='${libname}${release}${shared_ext}$major'
8040   shlibpath_var=LD_LIBRARY_PATH
8041   hardcode_into_libs=yes
8042   if test "$with_gnu_ld" = yes; then
8043     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8044     shlibpath_overrides_runpath=no
8045   else
8046     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8047     shlibpath_overrides_runpath=yes
8048     case $host_os in
8049       sco3.2v5*)
8050         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8051         ;;
8052     esac
8053   fi
8054   sys_lib_dlsearch_path_spec='/usr/lib'
8055   ;;
8056
8057 uts4*)
8058   version_type=linux
8059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8060   soname_spec='${libname}${release}${shared_ext}$major'
8061   shlibpath_var=LD_LIBRARY_PATH
8062   ;;
8063
8064 *)
8065   dynamic_linker=no
8066   ;;
8067 esac
8068 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8069 echo "${ECHO_T}$dynamic_linker" >&6
8070 test "$dynamic_linker" = no && can_build_shared=no
8071
8072 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8073 if test "$GCC" = yes; then
8074   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8075 fi
8076
8077 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8078 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8079 hardcode_action=
8080 if test -n "$hardcode_libdir_flag_spec" || \
8081    test -n "$runpath_var" || \
8082    test "X$hardcode_automatic" = "Xyes" ; then
8083
8084   # We can hardcode non-existant directories.
8085   if test "$hardcode_direct" != no &&
8086      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8087      # have to relink, otherwise we might link with an installed library
8088      # when we should be linking with a yet-to-be-installed one
8089      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8090      test "$hardcode_minus_L" != no; then
8091     # Linking always hardcodes the temporary library directory.
8092     hardcode_action=relink
8093   else
8094     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8095     hardcode_action=immediate
8096   fi
8097 else
8098   # We cannot hardcode anything, or else we can only hardcode existing
8099   # directories.
8100   hardcode_action=unsupported
8101 fi
8102 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8103 echo "${ECHO_T}$hardcode_action" >&6
8104
8105 if test "$hardcode_action" = relink; then
8106   # Fast installation is not supported
8107   enable_fast_install=no
8108 elif test "$shlibpath_overrides_runpath" = yes ||
8109      test "$enable_shared" = no; then
8110   # Fast installation is not necessary
8111   enable_fast_install=needless
8112 fi
8113
8114 striplib=
8115 old_striplib=
8116 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8117 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8118 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8119   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8120   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8121   echo "$as_me:$LINENO: result: yes" >&5
8122 echo "${ECHO_T}yes" >&6
8123 else
8124 # FIXME - insert some real tests, host_os isn't really good enough
8125   case $host_os in
8126    darwin*)
8127        if test -n "$STRIP" ; then
8128          striplib="$STRIP -x"
8129          echo "$as_me:$LINENO: result: yes" >&5
8130 echo "${ECHO_T}yes" >&6
8131        else
8132   echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6
8134 fi
8135        ;;
8136    *)
8137   echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8139     ;;
8140   esac
8141 fi
8142
8143 if test "x$enable_dlopen" != xyes; then
8144   enable_dlopen=unknown
8145   enable_dlopen_self=unknown
8146   enable_dlopen_self_static=unknown
8147 else
8148   lt_cv_dlopen=no
8149   lt_cv_dlopen_libs=
8150
8151   case $host_os in
8152   beos*)
8153     lt_cv_dlopen="load_add_on"
8154     lt_cv_dlopen_libs=
8155     lt_cv_dlopen_self=yes
8156     ;;
8157
8158   mingw* | pw32*)
8159     lt_cv_dlopen="LoadLibrary"
8160     lt_cv_dlopen_libs=
8161    ;;
8162
8163   cygwin*)
8164     lt_cv_dlopen="dlopen"
8165     lt_cv_dlopen_libs=
8166    ;;
8167
8168   darwin*)
8169   # if libdl is installed we need to link against it
8170     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   ac_check_lib_save_LIBS=$LIBS
8176 LIBS="-ldl  $LIBS"
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183
8184 /* Override any gcc2 internal prototype to avoid an error.  */
8185 #ifdef __cplusplus
8186 extern "C"
8187 #endif
8188 /* We use char because int might match the return type of a gcc2
8189    builtin and then its argument prototype would still apply.  */
8190 char dlopen ();
8191 int
8192 main ()
8193 {
8194 dlopen ();
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201   (eval $ac_link) 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; } &&
8214          { ac_try='test -s conftest$ac_exeext'
8215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216   (eval $ac_try) 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; }; then
8220   ac_cv_lib_dl_dlopen=yes
8221 else
8222   echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225 ac_cv_lib_dl_dlopen=no
8226 fi
8227 rm -f conftest.err conftest.$ac_objext \
8228       conftest$ac_exeext conftest.$ac_ext
8229 LIBS=$ac_check_lib_save_LIBS
8230 fi
8231 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8233 if test $ac_cv_lib_dl_dlopen = yes; then
8234   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8235 else
8236
8237     lt_cv_dlopen="dyld"
8238     lt_cv_dlopen_libs=
8239     lt_cv_dlopen_self=yes
8240
8241 fi
8242
8243    ;;
8244
8245   *)
8246     echo "$as_me:$LINENO: checking for shl_load" >&5
8247 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8248 if test "${ac_cv_func_shl_load+set}" = set; then
8249   echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251   cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8259 #define shl_load innocuous_shl_load
8260
8261 /* System header to define __stub macros and hopefully few prototypes,
8262     which can conflict with char shl_load (); below.
8263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8264     <limits.h> exists even on freestanding compilers.  */
8265
8266 #ifdef __STDC__
8267 # include <limits.h>
8268 #else
8269 # include <assert.h>
8270 #endif
8271
8272 #undef shl_load
8273
8274 /* Override any gcc2 internal prototype to avoid an error.  */
8275 #ifdef __cplusplus
8276 extern "C"
8277 {
8278 #endif
8279 /* We use char because int might match the return type of a gcc2
8280    builtin and then its argument prototype would still apply.  */
8281 char shl_load ();
8282 /* The GNU C library defines this for functions which it implements
8283     to always fail with ENOSYS.  Some functions are actually named
8284     something starting with __ and the normal name is an alias.  */
8285 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8286 choke me
8287 #else
8288 char (*f) () = shl_load;
8289 #endif
8290 #ifdef __cplusplus
8291 }
8292 #endif
8293
8294 int
8295 main ()
8296 {
8297 return f != shl_load;
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304   (eval $ac_link) 2>conftest.er1
8305   ac_status=$?
8306   grep -v '^ *+' conftest.er1 >conftest.err
8307   rm -f conftest.er1
8308   cat conftest.err >&5
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } &&
8311          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313   (eval $ac_try) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; } &&
8317          { ac_try='test -s conftest$ac_exeext'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   ac_cv_func_shl_load=yes
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 ac_cv_func_shl_load=no
8329 fi
8330 rm -f conftest.err conftest.$ac_objext \
8331       conftest$ac_exeext conftest.$ac_ext
8332 fi
8333 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8334 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8335 if test $ac_cv_func_shl_load = yes; then
8336   lt_cv_dlopen="shl_load"
8337 else
8338   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8339 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8340 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   ac_check_lib_save_LIBS=$LIBS
8344 LIBS="-ldld  $LIBS"
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351
8352 /* Override any gcc2 internal prototype to avoid an error.  */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 /* We use char because int might match the return type of a gcc2
8357    builtin and then its argument prototype would still apply.  */
8358 char shl_load ();
8359 int
8360 main ()
8361 {
8362 shl_load ();
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369   (eval $ac_link) 2>conftest.er1
8370   ac_status=$?
8371   grep -v '^ *+' conftest.er1 >conftest.err
8372   rm -f conftest.er1
8373   cat conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } &&
8376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; } &&
8382          { ac_try='test -s conftest$ac_exeext'
8383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384   (eval $ac_try) 2>&5
8385   ac_status=$?
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); }; }; then
8388   ac_cv_lib_dld_shl_load=yes
8389 else
8390   echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 ac_cv_lib_dld_shl_load=no
8394 fi
8395 rm -f conftest.err conftest.$ac_objext \
8396       conftest$ac_exeext conftest.$ac_ext
8397 LIBS=$ac_check_lib_save_LIBS
8398 fi
8399 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8400 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8401 if test $ac_cv_lib_dld_shl_load = yes; then
8402   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8403 else
8404   echo "$as_me:$LINENO: checking for dlopen" >&5
8405 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8406 if test "${ac_cv_func_dlopen+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8417 #define dlopen innocuous_dlopen
8418
8419 /* System header to define __stub macros and hopefully few prototypes,
8420     which can conflict with char dlopen (); below.
8421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8422     <limits.h> exists even on freestanding compilers.  */
8423
8424 #ifdef __STDC__
8425 # include <limits.h>
8426 #else
8427 # include <assert.h>
8428 #endif
8429
8430 #undef dlopen
8431
8432 /* Override any gcc2 internal prototype to avoid an error.  */
8433 #ifdef __cplusplus
8434 extern "C"
8435 {
8436 #endif
8437 /* We use char because int might match the return type of a gcc2
8438    builtin and then its argument prototype would still apply.  */
8439 char dlopen ();
8440 /* The GNU C library defines this for functions which it implements
8441     to always fail with ENOSYS.  Some functions are actually named
8442     something starting with __ and the normal name is an alias.  */
8443 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8444 choke me
8445 #else
8446 char (*f) () = dlopen;
8447 #endif
8448 #ifdef __cplusplus
8449 }
8450 #endif
8451
8452 int
8453 main ()
8454 {
8455 return f != dlopen;
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8462   (eval $ac_link) 2>conftest.er1
8463   ac_status=$?
8464   grep -v '^ *+' conftest.er1 >conftest.err
8465   rm -f conftest.er1
8466   cat conftest.err >&5
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); } &&
8469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; } &&
8475          { ac_try='test -s conftest$ac_exeext'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   ac_cv_func_dlopen=yes
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486 ac_cv_func_dlopen=no
8487 fi
8488 rm -f conftest.err conftest.$ac_objext \
8489       conftest$ac_exeext conftest.$ac_ext
8490 fi
8491 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8492 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8493 if test $ac_cv_func_dlopen = yes; then
8494   lt_cv_dlopen="dlopen"
8495 else
8496   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   ac_check_lib_save_LIBS=$LIBS
8502 LIBS="-ldl  $LIBS"
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h.  */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h.  */
8509
8510 /* Override any gcc2 internal prototype to avoid an error.  */
8511 #ifdef __cplusplus
8512 extern "C"
8513 #endif
8514 /* We use char because int might match the return type of a gcc2
8515    builtin and then its argument prototype would still apply.  */
8516 char dlopen ();
8517 int
8518 main ()
8519 {
8520 dlopen ();
8521   ;
8522   return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527   (eval $ac_link) 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } &&
8534          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536   (eval $ac_try) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); }; } &&
8540          { ac_try='test -s conftest$ac_exeext'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; }; then
8546   ac_cv_lib_dl_dlopen=yes
8547 else
8548   echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 ac_cv_lib_dl_dlopen=no
8552 fi
8553 rm -f conftest.err conftest.$ac_objext \
8554       conftest$ac_exeext conftest.$ac_ext
8555 LIBS=$ac_check_lib_save_LIBS
8556 fi
8557 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8559 if test $ac_cv_lib_dl_dlopen = yes; then
8560   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8561 else
8562   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8563 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8564 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8565   echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567   ac_check_lib_save_LIBS=$LIBS
8568 LIBS="-lsvld  $LIBS"
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h.  */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h.  */
8575
8576 /* Override any gcc2 internal prototype to avoid an error.  */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 /* We use char because int might match the return type of a gcc2
8581    builtin and then its argument prototype would still apply.  */
8582 char dlopen ();
8583 int
8584 main ()
8585 {
8586 dlopen ();
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593   (eval $ac_link) 2>conftest.er1
8594   ac_status=$?
8595   grep -v '^ *+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } &&
8600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; } &&
8606          { ac_try='test -s conftest$ac_exeext'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   ac_cv_lib_svld_dlopen=yes
8613 else
8614   echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617 ac_cv_lib_svld_dlopen=no
8618 fi
8619 rm -f conftest.err conftest.$ac_objext \
8620       conftest$ac_exeext conftest.$ac_ext
8621 LIBS=$ac_check_lib_save_LIBS
8622 fi
8623 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8624 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8625 if test $ac_cv_lib_svld_dlopen = yes; then
8626   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8627 else
8628   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8629 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8630 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   ac_check_lib_save_LIBS=$LIBS
8634 LIBS="-ldld  $LIBS"
8635 cat >conftest.$ac_ext <<_ACEOF
8636 /* confdefs.h.  */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h.  */
8641
8642 /* Override any gcc2 internal prototype to avoid an error.  */
8643 #ifdef __cplusplus
8644 extern "C"
8645 #endif
8646 /* We use char because int might match the return type of a gcc2
8647    builtin and then its argument prototype would still apply.  */
8648 char dld_link ();
8649 int
8650 main ()
8651 {
8652 dld_link ();
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659   (eval $ac_link) 2>conftest.er1
8660   ac_status=$?
8661   grep -v '^ *+' conftest.er1 >conftest.err
8662   rm -f conftest.er1
8663   cat conftest.err >&5
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } &&
8666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668   (eval $ac_try) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; } &&
8672          { ac_try='test -s conftest$ac_exeext'
8673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674   (eval $ac_try) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }; }; then
8678   ac_cv_lib_dld_dld_link=yes
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ac_cv_lib_dld_dld_link=no
8684 fi
8685 rm -f conftest.err conftest.$ac_objext \
8686       conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8688 fi
8689 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8690 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8691 if test $ac_cv_lib_dld_dld_link = yes; then
8692   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8693 fi
8694
8695
8696 fi
8697
8698
8699 fi
8700
8701
8702 fi
8703
8704
8705 fi
8706
8707
8708 fi
8709
8710     ;;
8711   esac
8712
8713   if test "x$lt_cv_dlopen" != xno; then
8714     enable_dlopen=yes
8715   else
8716     enable_dlopen=no
8717   fi
8718
8719   case $lt_cv_dlopen in
8720   dlopen)
8721     save_CPPFLAGS="$CPPFLAGS"
8722     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8723
8724     save_LDFLAGS="$LDFLAGS"
8725     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8726
8727     save_LIBS="$LIBS"
8728     LIBS="$lt_cv_dlopen_libs $LIBS"
8729
8730     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8731 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8732 if test "${lt_cv_dlopen_self+set}" = set; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735           if test "$cross_compiling" = yes; then :
8736   lt_cv_dlopen_self=cross
8737 else
8738   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8739   lt_status=$lt_dlunknown
8740   cat > conftest.$ac_ext <<EOF
8741 #line 8741 "configure"
8742 #include "confdefs.h"
8743
8744 #if HAVE_DLFCN_H
8745 #include <dlfcn.h>
8746 #endif
8747
8748 #include <stdio.h>
8749
8750 #ifdef RTLD_GLOBAL
8751 #  define LT_DLGLOBAL           RTLD_GLOBAL
8752 #else
8753 #  ifdef DL_GLOBAL
8754 #    define LT_DLGLOBAL         DL_GLOBAL
8755 #  else
8756 #    define LT_DLGLOBAL         0
8757 #  endif
8758 #endif
8759
8760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8761    find out it does not work in some platform. */
8762 #ifndef LT_DLLAZY_OR_NOW
8763 #  ifdef RTLD_LAZY
8764 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8765 #  else
8766 #    ifdef DL_LAZY
8767 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8768 #    else
8769 #      ifdef RTLD_NOW
8770 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8771 #      else
8772 #        ifdef DL_NOW
8773 #          define LT_DLLAZY_OR_NOW      DL_NOW
8774 #        else
8775 #          define LT_DLLAZY_OR_NOW      0
8776 #        endif
8777 #      endif
8778 #    endif
8779 #  endif
8780 #endif
8781
8782 #ifdef __cplusplus
8783 extern "C" void exit (int);
8784 #endif
8785
8786 void fnord() { int i=42;}
8787 int main ()
8788 {
8789   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8790   int status = $lt_dlunknown;
8791
8792   if (self)
8793     {
8794       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8795       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8796       /* dlclose (self); */
8797     }
8798   else
8799     puts (dlerror ());
8800
8801     exit (status);
8802 }
8803 EOF
8804   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805   (eval $ac_link) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8809     (./conftest; exit; ) >&5 2>/dev/null
8810     lt_status=$?
8811     case x$lt_status in
8812       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8813       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8814       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8815     esac
8816   else :
8817     # compilation failed
8818     lt_cv_dlopen_self=no
8819   fi
8820 fi
8821 rm -fr conftest*
8822
8823
8824 fi
8825 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8826 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8827
8828     if test "x$lt_cv_dlopen_self" = xyes; then
8829       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8830       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8831 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8832 if test "${lt_cv_dlopen_self_static+set}" = set; then
8833   echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835           if test "$cross_compiling" = yes; then :
8836   lt_cv_dlopen_self_static=cross
8837 else
8838   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8839   lt_status=$lt_dlunknown
8840   cat > conftest.$ac_ext <<EOF
8841 #line 8841 "configure"
8842 #include "confdefs.h"
8843
8844 #if HAVE_DLFCN_H
8845 #include <dlfcn.h>
8846 #endif
8847
8848 #include <stdio.h>
8849
8850 #ifdef RTLD_GLOBAL
8851 #  define LT_DLGLOBAL           RTLD_GLOBAL
8852 #else
8853 #  ifdef DL_GLOBAL
8854 #    define LT_DLGLOBAL         DL_GLOBAL
8855 #  else
8856 #    define LT_DLGLOBAL         0
8857 #  endif
8858 #endif
8859
8860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8861    find out it does not work in some platform. */
8862 #ifndef LT_DLLAZY_OR_NOW
8863 #  ifdef RTLD_LAZY
8864 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8865 #  else
8866 #    ifdef DL_LAZY
8867 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8868 #    else
8869 #      ifdef RTLD_NOW
8870 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8871 #      else
8872 #        ifdef DL_NOW
8873 #          define LT_DLLAZY_OR_NOW      DL_NOW
8874 #        else
8875 #          define LT_DLLAZY_OR_NOW      0
8876 #        endif
8877 #      endif
8878 #    endif
8879 #  endif
8880 #endif
8881
8882 #ifdef __cplusplus
8883 extern "C" void exit (int);
8884 #endif
8885
8886 void fnord() { int i=42;}
8887 int main ()
8888 {
8889   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8890   int status = $lt_dlunknown;
8891
8892   if (self)
8893     {
8894       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8895       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8896       /* dlclose (self); */
8897     }
8898   else
8899     puts (dlerror ());
8900
8901     exit (status);
8902 }
8903 EOF
8904   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905   (eval $ac_link) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8909     (./conftest; exit; ) >&5 2>/dev/null
8910     lt_status=$?
8911     case x$lt_status in
8912       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8913       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8914       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8915     esac
8916   else :
8917     # compilation failed
8918     lt_cv_dlopen_self_static=no
8919   fi
8920 fi
8921 rm -fr conftest*
8922
8923
8924 fi
8925 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8926 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8927     fi
8928
8929     CPPFLAGS="$save_CPPFLAGS"
8930     LDFLAGS="$save_LDFLAGS"
8931     LIBS="$save_LIBS"
8932     ;;
8933   esac
8934
8935   case $lt_cv_dlopen_self in
8936   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8937   *) enable_dlopen_self=unknown ;;
8938   esac
8939
8940   case $lt_cv_dlopen_self_static in
8941   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8942   *) enable_dlopen_self_static=unknown ;;
8943   esac
8944 fi
8945
8946
8947 # Report which library types will actually be built
8948 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8949 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8950 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8951 echo "${ECHO_T}$can_build_shared" >&6
8952
8953 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8954 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8955 test "$can_build_shared" = "no" && enable_shared=no
8956
8957 # On AIX, shared libraries and static libraries use the same namespace, and
8958 # are all built from PIC.
8959 case $host_os in
8960 aix3*)
8961   test "$enable_shared" = yes && enable_static=no
8962   if test -n "$RANLIB"; then
8963     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8964     postinstall_cmds='$RANLIB $lib'
8965   fi
8966   ;;
8967
8968 aix4* | aix5*)
8969   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8970     test "$enable_shared" = yes && enable_static=no
8971   fi
8972     ;;
8973 esac
8974 echo "$as_me:$LINENO: result: $enable_shared" >&5
8975 echo "${ECHO_T}$enable_shared" >&6
8976
8977 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8978 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8979 # Make sure either enable_shared or enable_static is yes.
8980 test "$enable_shared" = yes || enable_static=yes
8981 echo "$as_me:$LINENO: result: $enable_static" >&5
8982 echo "${ECHO_T}$enable_static" >&6
8983
8984 # The else clause should only fire when bootstrapping the
8985 # libtool distribution, otherwise you forgot to ship ltmain.sh
8986 # with your package, and you will get complaints that there are
8987 # no rules to generate ltmain.sh.
8988 if test -f "$ltmain"; then
8989   # See if we are running on zsh, and set the options which allow our commands through
8990   # without removal of \ escapes.
8991   if test -n "${ZSH_VERSION+set}" ; then
8992     setopt NO_GLOB_SUBST
8993   fi
8994   # Now quote all the things that may contain metacharacters while being
8995   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8996   # variables and quote the copies for generation of the libtool script.
8997   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
8998     SED SHELL STRIP \
8999     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9000     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9001     deplibs_check_method reload_flag reload_cmds need_locks \
9002     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9003     lt_cv_sys_global_symbol_to_c_name_address \
9004     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9005     old_postinstall_cmds old_postuninstall_cmds \
9006     compiler \
9007     CC \
9008     LD \
9009     lt_prog_compiler_wl \
9010     lt_prog_compiler_pic \
9011     lt_prog_compiler_static \
9012     lt_prog_compiler_no_builtin_flag \
9013     export_dynamic_flag_spec \
9014     thread_safe_flag_spec \
9015     whole_archive_flag_spec \
9016     enable_shared_with_static_runtimes \
9017     old_archive_cmds \
9018     old_archive_from_new_cmds \
9019     predep_objects \
9020     postdep_objects \
9021     predeps \
9022     postdeps \
9023     compiler_lib_search_path \
9024     archive_cmds \
9025     archive_expsym_cmds \
9026     postinstall_cmds \
9027     postuninstall_cmds \
9028     old_archive_from_expsyms_cmds \
9029     allow_undefined_flag \
9030     no_undefined_flag \
9031     export_symbols_cmds \
9032     hardcode_libdir_flag_spec \
9033     hardcode_libdir_flag_spec_ld \
9034     hardcode_libdir_separator \
9035     hardcode_automatic \
9036     module_cmds \
9037     module_expsym_cmds \
9038     lt_cv_prog_compiler_c_o \
9039     exclude_expsyms \
9040     include_expsyms; do
9041
9042     case $var in
9043     old_archive_cmds | \
9044     old_archive_from_new_cmds | \
9045     archive_cmds | \
9046     archive_expsym_cmds | \
9047     module_cmds | \
9048     module_expsym_cmds | \
9049     old_archive_from_expsyms_cmds | \
9050     export_symbols_cmds | \
9051     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9052     postinstall_cmds | postuninstall_cmds | \
9053     old_postinstall_cmds | old_postuninstall_cmds | \
9054     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9055       # Double-quote double-evaled strings.
9056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9057       ;;
9058     *)
9059       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9060       ;;
9061     esac
9062   done
9063
9064   case $lt_echo in
9065   *'\$0 --fallback-echo"')
9066     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9067     ;;
9068   esac
9069
9070 cfgfile="${ofile}T"
9071   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9072   $rm -f "$cfgfile"
9073   { echo "$as_me:$LINENO: creating $ofile" >&5
9074 echo "$as_me: creating $ofile" >&6;}
9075
9076   cat <<__EOF__ >> "$cfgfile"
9077 #! $SHELL
9078
9079 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9080 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9082 #
9083 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9084 # Free Software Foundation, Inc.
9085 #
9086 # This file is part of GNU Libtool:
9087 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9088 #
9089 # This program is free software; you can redistribute it and/or modify
9090 # it under the terms of the GNU General Public License as published by
9091 # the Free Software Foundation; either version 2 of the License, or
9092 # (at your option) any later version.
9093 #
9094 # This program is distributed in the hope that it will be useful, but
9095 # WITHOUT ANY WARRANTY; without even the implied warranty of
9096 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9097 # General Public License for more details.
9098 #
9099 # You should have received a copy of the GNU General Public License
9100 # along with this program; if not, write to the Free Software
9101 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9102 #
9103 # As a special exception to the GNU General Public License, if you
9104 # distribute this file as part of a program that contains a
9105 # configuration script generated by Autoconf, you may include it under
9106 # the same distribution terms that you use for the rest of that program.
9107
9108 # A sed program that does not truncate output.
9109 SED=$lt_SED
9110
9111 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9112 Xsed="$SED -e 1s/^X//"
9113
9114 # The HP-UX ksh and POSIX shell print the target directory to stdout
9115 # if CDPATH is set.
9116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9117
9118 # The names of the tagged configurations supported by this script.
9119 available_tags=
9120
9121 # ### BEGIN LIBTOOL CONFIG
9122
9123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9124
9125 # Shell to use when invoking shell scripts.
9126 SHELL=$lt_SHELL
9127
9128 # Whether or not to build shared libraries.
9129 build_libtool_libs=$enable_shared
9130
9131 # Whether or not to build static libraries.
9132 build_old_libs=$enable_static
9133
9134 # Whether or not to add -lc for building shared libraries.
9135 build_libtool_need_lc=$archive_cmds_need_lc
9136
9137 # Whether or not to disallow shared libs when runtime libs are static
9138 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9139
9140 # Whether or not to optimize for fast installation.
9141 fast_install=$enable_fast_install
9142
9143 # The host system.
9144 host_alias=$host_alias
9145 host=$host
9146 host_os=$host_os
9147
9148 # The build system.
9149 build_alias=$build_alias
9150 build=$build
9151 build_os=$build_os
9152
9153 # An echo program that does not interpret backslashes.
9154 echo=$lt_echo
9155
9156 # The archiver.
9157 AR=$lt_AR
9158 AR_FLAGS=$lt_AR_FLAGS
9159
9160 # A C compiler.
9161 LTCC=$lt_LTCC
9162
9163 # LTCC compiler flags.
9164 LTCFLAGS=$lt_LTCFLAGS
9165
9166 # A language-specific compiler.
9167 CC=$lt_compiler
9168
9169 # Is the compiler the GNU C compiler?
9170 with_gcc=$GCC
9171
9172 # An ERE matcher.
9173 EGREP=$lt_EGREP
9174
9175 # The linker used to build libraries.
9176 LD=$lt_LD
9177
9178 # Whether we need hard or soft links.
9179 LN_S=$lt_LN_S
9180
9181 # A BSD-compatible nm program.
9182 NM=$lt_NM
9183
9184 # A symbol stripping program
9185 STRIP=$lt_STRIP
9186
9187 # Used to examine libraries when file_magic_cmd begins "file"
9188 MAGIC_CMD=$MAGIC_CMD
9189
9190 # Used on cygwin: DLL creation program.
9191 DLLTOOL="$DLLTOOL"
9192
9193 # Used on cygwin: object dumper.
9194 OBJDUMP="$OBJDUMP"
9195
9196 # Used on cygwin: assembler.
9197 AS="$AS"
9198
9199 # The name of the directory that contains temporary libtool files.
9200 objdir=$objdir
9201
9202 # How to create reloadable object files.
9203 reload_flag=$lt_reload_flag
9204 reload_cmds=$lt_reload_cmds
9205
9206 # How to pass a linker flag through the compiler.
9207 wl=$lt_lt_prog_compiler_wl
9208
9209 # Object file suffix (normally "o").
9210 objext="$ac_objext"
9211
9212 # Old archive suffix (normally "a").
9213 libext="$libext"
9214
9215 # Shared library suffix (normally ".so").
9216 shrext_cmds='$shrext_cmds'
9217
9218 # Executable file suffix (normally "").
9219 exeext="$exeext"
9220
9221 # Additional compiler flags for building library objects.
9222 pic_flag=$lt_lt_prog_compiler_pic
9223 pic_mode=$pic_mode
9224
9225 # What is the maximum length of a command?
9226 max_cmd_len=$lt_cv_sys_max_cmd_len
9227
9228 # Does compiler simultaneously support -c and -o options?
9229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9230
9231 # Must we lock files when doing compilation?
9232 need_locks=$lt_need_locks
9233
9234 # Do we need the lib prefix for modules?
9235 need_lib_prefix=$need_lib_prefix
9236
9237 # Do we need a version for libraries?
9238 need_version=$need_version
9239
9240 # Whether dlopen is supported.
9241 dlopen_support=$enable_dlopen
9242
9243 # Whether dlopen of programs is supported.
9244 dlopen_self=$enable_dlopen_self
9245
9246 # Whether dlopen of statically linked programs is supported.
9247 dlopen_self_static=$enable_dlopen_self_static
9248
9249 # Compiler flag to prevent dynamic linking.
9250 link_static_flag=$lt_lt_prog_compiler_static
9251
9252 # Compiler flag to turn off builtin functions.
9253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9254
9255 # Compiler flag to allow reflexive dlopens.
9256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9257
9258 # Compiler flag to generate shared objects directly from archives.
9259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9260
9261 # Compiler flag to generate thread-safe objects.
9262 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9263
9264 # Library versioning type.
9265 version_type=$version_type
9266
9267 # Format of library name prefix.
9268 libname_spec=$lt_libname_spec
9269
9270 # List of archive names.  First name is the real one, the rest are links.
9271 # The last name is the one that the linker finds with -lNAME.
9272 library_names_spec=$lt_library_names_spec
9273
9274 # The coded name of the library, if different from the real name.
9275 soname_spec=$lt_soname_spec
9276
9277 # Commands used to build and install an old-style archive.
9278 RANLIB=$lt_RANLIB
9279 old_archive_cmds=$lt_old_archive_cmds
9280 old_postinstall_cmds=$lt_old_postinstall_cmds
9281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9282
9283 # Create an old-style archive from a shared archive.
9284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9285
9286 # Create a temporary old-style archive to link instead of a shared archive.
9287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9288
9289 # Commands used to build and install a shared archive.
9290 archive_cmds=$lt_archive_cmds
9291 archive_expsym_cmds=$lt_archive_expsym_cmds
9292 postinstall_cmds=$lt_postinstall_cmds
9293 postuninstall_cmds=$lt_postuninstall_cmds
9294
9295 # Commands used to build a loadable module (assumed same as above if empty)
9296 module_cmds=$lt_module_cmds
9297 module_expsym_cmds=$lt_module_expsym_cmds
9298
9299 # Commands to strip libraries.
9300 old_striplib=$lt_old_striplib
9301 striplib=$lt_striplib
9302
9303 # Dependencies to place before the objects being linked to create a
9304 # shared library.
9305 predep_objects=$lt_predep_objects
9306
9307 # Dependencies to place after the objects being linked to create a
9308 # shared library.
9309 postdep_objects=$lt_postdep_objects
9310
9311 # Dependencies to place before the objects being linked to create a
9312 # shared library.
9313 predeps=$lt_predeps
9314
9315 # Dependencies to place after the objects being linked to create a
9316 # shared library.
9317 postdeps=$lt_postdeps
9318
9319 # The library search path used internally by the compiler when linking
9320 # a shared library.
9321 compiler_lib_search_path=$lt_compiler_lib_search_path
9322
9323 # Method to check whether dependent libraries are shared objects.
9324 deplibs_check_method=$lt_deplibs_check_method
9325
9326 # Command to use when deplibs_check_method == file_magic.
9327 file_magic_cmd=$lt_file_magic_cmd
9328
9329 # Flag that allows shared libraries with undefined symbols to be built.
9330 allow_undefined_flag=$lt_allow_undefined_flag
9331
9332 # Flag that forces no undefined symbols.
9333 no_undefined_flag=$lt_no_undefined_flag
9334
9335 # Commands used to finish a libtool library installation in a directory.
9336 finish_cmds=$lt_finish_cmds
9337
9338 # Same as above, but a single script fragment to be evaled but not shown.
9339 finish_eval=$lt_finish_eval
9340
9341 # Take the output of nm and produce a listing of raw symbols and C names.
9342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9343
9344 # Transform the output of nm in a proper C declaration
9345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9346
9347 # Transform the output of nm in a C name address pair
9348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9349
9350 # This is the shared library runtime path variable.
9351 runpath_var=$runpath_var
9352
9353 # This is the shared library path variable.
9354 shlibpath_var=$shlibpath_var
9355
9356 # Is shlibpath searched before the hard-coded library search path?
9357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9358
9359 # How to hardcode a shared library path into an executable.
9360 hardcode_action=$hardcode_action
9361
9362 # Whether we should hardcode library paths into libraries.
9363 hardcode_into_libs=$hardcode_into_libs
9364
9365 # Flag to hardcode \$libdir into a binary during linking.
9366 # This must work even if \$libdir does not exist.
9367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9368
9369 # If ld is used when linking, flag to hardcode \$libdir into
9370 # a binary during linking. This must work even if \$libdir does
9371 # not exist.
9372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9373
9374 # Whether we need a single -rpath flag with a separated argument.
9375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9376
9377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9378 # resulting binary.
9379 hardcode_direct=$hardcode_direct
9380
9381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9382 # resulting binary.
9383 hardcode_minus_L=$hardcode_minus_L
9384
9385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9386 # the resulting binary.
9387 hardcode_shlibpath_var=$hardcode_shlibpath_var
9388
9389 # Set to yes if building a shared library automatically hardcodes DIR into the library
9390 # and all subsequent libraries and executables linked against it.
9391 hardcode_automatic=$hardcode_automatic
9392
9393 # Variables whose values should be saved in libtool wrapper scripts and
9394 # restored at relink time.
9395 variables_saved_for_relink="$variables_saved_for_relink"
9396
9397 # Whether libtool must link a program against all its dependency libraries.
9398 link_all_deplibs=$link_all_deplibs
9399
9400 # Compile-time system search path for libraries
9401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9402
9403 # Run-time system search path for libraries
9404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9405
9406 # Fix the shell variable \$srcfile for the compiler.
9407 fix_srcfile_path="$fix_srcfile_path"
9408
9409 # Set to yes if exported symbols are required.
9410 always_export_symbols=$always_export_symbols
9411
9412 # The commands to list exported symbols.
9413 export_symbols_cmds=$lt_export_symbols_cmds
9414
9415 # The commands to extract the exported symbol list from a shared archive.
9416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9417
9418 # Symbols that should not be listed in the preloaded symbols.
9419 exclude_expsyms=$lt_exclude_expsyms
9420
9421 # Symbols that must always be exported.
9422 include_expsyms=$lt_include_expsyms
9423
9424 # ### END LIBTOOL CONFIG
9425
9426 __EOF__
9427
9428
9429   case $host_os in
9430   aix3*)
9431     cat <<\EOF >> "$cfgfile"
9432
9433 # AIX sometimes has problems with the GCC collect2 program.  For some
9434 # reason, if we set the COLLECT_NAMES environment variable, the problems
9435 # vanish in a puff of smoke.
9436 if test "X${COLLECT_NAMES+set}" != Xset; then
9437   COLLECT_NAMES=
9438   export COLLECT_NAMES
9439 fi
9440 EOF
9441     ;;
9442   esac
9443
9444   # We use sed instead of cat because bash on DJGPP gets confused if
9445   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9446   # text mode, it properly converts lines to CR/LF.  This bash problem
9447   # is reportedly fixed, but why not run on old versions too?
9448   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9449
9450   mv -f "$cfgfile" "$ofile" || \
9451     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9452   chmod +x "$ofile"
9453
9454 else
9455   # If there is no Makefile yet, we rely on a make rule to execute
9456   # `config.status --recheck' to rerun these tests and create the
9457   # libtool script then.
9458   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9459   if test -f "$ltmain_in"; then
9460     test -f Makefile && make "$ltmain"
9461   fi
9462 fi
9463
9464
9465 ac_ext=c
9466 ac_cpp='$CPP $CPPFLAGS'
9467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9470
9471 CC="$lt_save_CC"
9472
9473
9474 # Check whether --with-tags or --without-tags was given.
9475 if test "${with_tags+set}" = set; then
9476   withval="$with_tags"
9477   tagnames="$withval"
9478 fi;
9479
9480 if test -f "$ltmain" && test -n "$tagnames"; then
9481   if test ! -f "${ofile}"; then
9482     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9483 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9484   fi
9485
9486   if test -z "$LTCC"; then
9487     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9488     if test -z "$LTCC"; then
9489       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9490 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9491     else
9492       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9493 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9494     fi
9495   fi
9496   if test -z "$LTCFLAGS"; then
9497     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9498   fi
9499
9500   # Extract list of available tagged configurations in $ofile.
9501   # Note that this assumes the entire list is on one line.
9502   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9503
9504   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9505   for tagname in $tagnames; do
9506     IFS="$lt_save_ifs"
9507     # Check whether tagname contains only valid characters
9508     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9509     "") ;;
9510     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9511 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9512    { (exit 1); exit 1; }; }
9513         ;;
9514     esac
9515
9516     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9517     then
9518       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9519 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9520    { (exit 1); exit 1; }; }
9521     fi
9522
9523     # Update the list of available tags.
9524     if test -n "$tagname"; then
9525       echo appending configuration tag \"$tagname\" to $ofile
9526
9527       case $tagname in
9528       CXX)
9529         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9530             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9531             (test "X$CXX" != "Xg++"))) ; then
9532           ac_ext=cc
9533 ac_cpp='$CXXCPP $CPPFLAGS'
9534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9537
9538
9539
9540
9541 archive_cmds_need_lc_CXX=no
9542 allow_undefined_flag_CXX=
9543 always_export_symbols_CXX=no
9544 archive_expsym_cmds_CXX=
9545 export_dynamic_flag_spec_CXX=
9546 hardcode_direct_CXX=no
9547 hardcode_libdir_flag_spec_CXX=
9548 hardcode_libdir_flag_spec_ld_CXX=
9549 hardcode_libdir_separator_CXX=
9550 hardcode_minus_L_CXX=no
9551 hardcode_shlibpath_var_CXX=unsupported
9552 hardcode_automatic_CXX=no
9553 module_cmds_CXX=
9554 module_expsym_cmds_CXX=
9555 link_all_deplibs_CXX=unknown
9556 old_archive_cmds_CXX=$old_archive_cmds
9557 no_undefined_flag_CXX=
9558 whole_archive_flag_spec_CXX=
9559 enable_shared_with_static_runtimes_CXX=no
9560
9561 # Dependencies to place before and after the object being linked:
9562 predep_objects_CXX=
9563 postdep_objects_CXX=
9564 predeps_CXX=
9565 postdeps_CXX=
9566 compiler_lib_search_path_CXX=
9567
9568 # Source file extension for C++ test sources.
9569 ac_ext=cpp
9570
9571 # Object file extension for compiled C++ test sources.
9572 objext=o
9573 objext_CXX=$objext
9574
9575 # Code to be used in simple compile tests
9576 lt_simple_compile_test_code="int some_variable = 0;\n"
9577
9578 # Code to be used in simple link tests
9579 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9580
9581 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9582
9583 # If no C compiler was specified, use CC.
9584 LTCC=${LTCC-"$CC"}
9585
9586 # If no C compiler flags were specified, use CFLAGS.
9587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9588
9589 # Allow CC to be a program name with arguments.
9590 compiler=$CC
9591
9592
9593 # save warnings/boilerplate of simple test code
9594 ac_outfile=conftest.$ac_objext
9595 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9597 _lt_compiler_boilerplate=`cat conftest.err`
9598 $rm conftest*
9599
9600 ac_outfile=conftest.$ac_objext
9601 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9603 _lt_linker_boilerplate=`cat conftest.err`
9604 $rm conftest*
9605
9606
9607 # Allow CC to be a program name with arguments.
9608 lt_save_CC=$CC
9609 lt_save_LD=$LD
9610 lt_save_GCC=$GCC
9611 GCC=$GXX
9612 lt_save_with_gnu_ld=$with_gnu_ld
9613 lt_save_path_LD=$lt_cv_path_LD
9614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9615   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9616 else
9617   $as_unset lt_cv_prog_gnu_ld
9618 fi
9619 if test -n "${lt_cv_path_LDCXX+set}"; then
9620   lt_cv_path_LD=$lt_cv_path_LDCXX
9621 else
9622   $as_unset lt_cv_path_LD
9623 fi
9624 test -z "${LDCXX+set}" || LD=$LDCXX
9625 CC=${CXX-"c++"}
9626 compiler=$CC
9627 compiler_CXX=$CC
9628 for cc_temp in $compiler""; do
9629   case $cc_temp in
9630     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9631     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9632     \-*) ;;
9633     *) break;;
9634   esac
9635 done
9636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9637
9638
9639 # We don't want -fno-exception wen compiling C++ code, so set the
9640 # no_builtin_flag separately
9641 if test "$GXX" = yes; then
9642   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9643 else
9644   lt_prog_compiler_no_builtin_flag_CXX=
9645 fi
9646
9647 if test "$GXX" = yes; then
9648   # Set up default GNU C++ configuration
9649
9650
9651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9652 if test "${with_gnu_ld+set}" = set; then
9653   withval="$with_gnu_ld"
9654   test "$withval" = no || with_gnu_ld=yes
9655 else
9656   with_gnu_ld=no
9657 fi;
9658 ac_prog=ld
9659 if test "$GCC" = yes; then
9660   # Check if gcc -print-prog-name=ld gives a path.
9661   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9662 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9663   case $host in
9664   *-*-mingw*)
9665     # gcc leaves a trailing carriage return which upsets mingw
9666     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9667   *)
9668     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9669   esac
9670   case $ac_prog in
9671     # Accept absolute paths.
9672     [\\/]* | ?:[\\/]*)
9673       re_direlt='/[^/][^/]*/\.\./'
9674       # Canonicalize the pathname of ld
9675       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9676       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9677         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9678       done
9679       test -z "$LD" && LD="$ac_prog"
9680       ;;
9681   "")
9682     # If it fails, then pretend we aren't using GCC.
9683     ac_prog=ld
9684     ;;
9685   *)
9686     # If it is relative, then search for the first ld in PATH.
9687     with_gnu_ld=unknown
9688     ;;
9689   esac
9690 elif test "$with_gnu_ld" = yes; then
9691   echo "$as_me:$LINENO: checking for GNU ld" >&5
9692 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9693 else
9694   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9695 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9696 fi
9697 if test "${lt_cv_path_LD+set}" = set; then
9698   echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700   if test -z "$LD"; then
9701   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9702   for ac_dir in $PATH; do
9703     IFS="$lt_save_ifs"
9704     test -z "$ac_dir" && ac_dir=.
9705     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9706       lt_cv_path_LD="$ac_dir/$ac_prog"
9707       # Check to see if the program is GNU ld.  I'd rather use --version,
9708       # but apparently some variants of GNU ld only accept -v.
9709       # Break only if it was the GNU/non-GNU ld that we prefer.
9710       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9711       *GNU* | *'with BFD'*)
9712         test "$with_gnu_ld" != no && break
9713         ;;
9714       *)
9715         test "$with_gnu_ld" != yes && break
9716         ;;
9717       esac
9718     fi
9719   done
9720   IFS="$lt_save_ifs"
9721 else
9722   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9723 fi
9724 fi
9725
9726 LD="$lt_cv_path_LD"
9727 if test -n "$LD"; then
9728   echo "$as_me:$LINENO: result: $LD" >&5
9729 echo "${ECHO_T}$LD" >&6
9730 else
9731   echo "$as_me:$LINENO: result: no" >&5
9732 echo "${ECHO_T}no" >&6
9733 fi
9734 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9735 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9736    { (exit 1); exit 1; }; }
9737 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9738 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9739 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9740   echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9743 case `$LD -v 2>&1 </dev/null` in
9744 *GNU* | *'with BFD'*)
9745   lt_cv_prog_gnu_ld=yes
9746   ;;
9747 *)
9748   lt_cv_prog_gnu_ld=no
9749   ;;
9750 esac
9751 fi
9752 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9753 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9754 with_gnu_ld=$lt_cv_prog_gnu_ld
9755
9756
9757
9758   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9759   # archiving commands below assume that GNU ld is being used.
9760   if test "$with_gnu_ld" = yes; then
9761     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762     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'
9763
9764     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9765     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9766
9767     # If archive_cmds runs LD, not CC, wlarc should be empty
9768     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9769     #     investigate it a little bit more. (MM)
9770     wlarc='${wl}'
9771
9772     # ancient GNU ld didn't support --whole-archive et. al.
9773     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9774         grep 'no-whole-archive' > /dev/null; then
9775       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9776     else
9777       whole_archive_flag_spec_CXX=
9778     fi
9779   else
9780     with_gnu_ld=no
9781     wlarc=
9782
9783     # A generic and very simple default shared library creation
9784     # command for GNU C++ for the case where it uses the native
9785     # linker, instead of GNU ld.  If possible, this setting should
9786     # overridden to take advantage of the native linker features on
9787     # the platform it is being used on.
9788     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9789   fi
9790
9791   # Commands to make compiler produce verbose output that lists
9792   # what "hidden" libraries, object files and flags are used when
9793   # linking a shared library.
9794   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9795
9796 else
9797   GXX=no
9798   with_gnu_ld=no
9799   wlarc=
9800 fi
9801
9802 # PORTME: fill in a description of your system's C++ link characteristics
9803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9805 ld_shlibs_CXX=yes
9806 case $host_os in
9807   aix3*)
9808     # FIXME: insert proper C++ library support
9809     ld_shlibs_CXX=no
9810     ;;
9811   aix4* | aix5*)
9812     if test "$host_cpu" = ia64; then
9813       # On IA64, the linker does run time linking by default, so we don't
9814       # have to do anything special.
9815       aix_use_runtimelinking=no
9816       exp_sym_flag='-Bexport'
9817       no_entry_flag=""
9818     else
9819       aix_use_runtimelinking=no
9820
9821       # Test if we are trying to use run time linking or normal
9822       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9823       # need to do runtime linking.
9824       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9825         for ld_flag in $LDFLAGS; do
9826           case $ld_flag in
9827           *-brtl*)
9828             aix_use_runtimelinking=yes
9829             break
9830             ;;
9831           esac
9832         done
9833         ;;
9834       esac
9835
9836       exp_sym_flag='-bexport'
9837       no_entry_flag='-bnoentry'
9838     fi
9839
9840     # When large executables or shared objects are built, AIX ld can
9841     # have problems creating the table of contents.  If linking a library
9842     # or program results in "error TOC overflow" add -mminimal-toc to
9843     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9844     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9845
9846     archive_cmds_CXX=''
9847     hardcode_direct_CXX=yes
9848     hardcode_libdir_separator_CXX=':'
9849     link_all_deplibs_CXX=yes
9850
9851     if test "$GXX" = yes; then
9852       case $host_os in aix4.[012]|aix4.[012].*)
9853       # We only want to do this on AIX 4.2 and lower, the check
9854       # below for broken collect2 doesn't work under 4.3+
9855         collect2name=`${CC} -print-prog-name=collect2`
9856         if test -f "$collect2name" && \
9857            strings "$collect2name" | grep resolve_lib_name >/dev/null
9858         then
9859           # We have reworked collect2
9860           hardcode_direct_CXX=yes
9861         else
9862           # We have old collect2
9863           hardcode_direct_CXX=unsupported
9864           # It fails to find uninstalled libraries when the uninstalled
9865           # path is not listed in the libpath.  Setting hardcode_minus_L
9866           # to unsupported forces relinking
9867           hardcode_minus_L_CXX=yes
9868           hardcode_libdir_flag_spec_CXX='-L$libdir'
9869           hardcode_libdir_separator_CXX=
9870         fi
9871         ;;
9872       esac
9873       shared_flag='-shared'
9874       if test "$aix_use_runtimelinking" = yes; then
9875         shared_flag="$shared_flag "'${wl}-G'
9876       fi
9877     else
9878       # not using gcc
9879       if test "$host_cpu" = ia64; then
9880         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9881         # chokes on -Wl,-G. The following line is correct:
9882         shared_flag='-G'
9883       else
9884         if test "$aix_use_runtimelinking" = yes; then
9885           shared_flag='${wl}-G'
9886         else
9887           shared_flag='${wl}-bM:SRE'
9888         fi
9889       fi
9890     fi
9891
9892     # It seems that -bexpall does not export symbols beginning with
9893     # underscore (_), so it is better to generate a list of symbols to export.
9894     always_export_symbols_CXX=yes
9895     if test "$aix_use_runtimelinking" = yes; then
9896       # Warning - without using the other runtime loading flags (-brtl),
9897       # -berok will link without error, but may produce a broken library.
9898       allow_undefined_flag_CXX='-berok'
9899       # Determine the default libpath from the value encoded in an empty executable.
9900       cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h.  */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h.  */
9906
9907 int
9908 main ()
9909 {
9910
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9917   (eval $ac_link) 2>conftest.er1
9918   ac_status=$?
9919   grep -v '^ *+' conftest.er1 >conftest.err
9920   rm -f conftest.er1
9921   cat conftest.err >&5
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } &&
9924          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926   (eval $ac_try) 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; } &&
9930          { ac_try='test -s conftest$ac_exeext'
9931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932   (eval $ac_try) 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; }; then
9936
9937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9938 }'`
9939 # Check for a 64-bit object if we didn't find anything.
9940 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; }
9941 }'`; fi
9942 else
9943   echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 fi
9947 rm -f conftest.err conftest.$ac_objext \
9948       conftest$ac_exeext conftest.$ac_ext
9949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9950
9951       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9952
9953       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9954      else
9955       if test "$host_cpu" = ia64; then
9956         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9957         allow_undefined_flag_CXX="-z nodefs"
9958         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9959       else
9960         # Determine the default libpath from the value encoded in an empty executable.
9961         cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967
9968 int
9969 main ()
9970 {
9971
9972   ;
9973   return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9978   (eval $ac_link) 2>conftest.er1
9979   ac_status=$?
9980   grep -v '^ *+' conftest.er1 >conftest.err
9981   rm -f conftest.er1
9982   cat conftest.err >&5
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); } &&
9985          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987   (eval $ac_try) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; } &&
9991          { ac_try='test -s conftest$ac_exeext'
9992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993   (eval $ac_try) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; }; then
9997
9998 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9999 }'`
10000 # Check for a 64-bit object if we didn't find anything.
10001 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; }
10002 }'`; fi
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 fi
10008 rm -f conftest.err conftest.$ac_objext \
10009       conftest$ac_exeext conftest.$ac_ext
10010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10011
10012         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10013         # Warning - without using the other run time loading flags,
10014         # -berok will link without error, but may produce a broken library.
10015         no_undefined_flag_CXX=' ${wl}-bernotok'
10016         allow_undefined_flag_CXX=' ${wl}-berok'
10017         # Exported symbols can be pulled into shared objects from archives
10018         whole_archive_flag_spec_CXX='$convenience'
10019         archive_cmds_need_lc_CXX=yes
10020         # This is similar to how AIX traditionally builds its shared libraries.
10021         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10022       fi
10023     fi
10024     ;;
10025
10026   beos*)
10027     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10028       allow_undefined_flag_CXX=unsupported
10029       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10030       # support --undefined.  This deserves some investigation.  FIXME
10031       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10032     else
10033       ld_shlibs_CXX=no
10034     fi
10035     ;;
10036
10037   chorus*)
10038     case $cc_basename in
10039       *)
10040         # FIXME: insert proper C++ library support
10041         ld_shlibs_CXX=no
10042         ;;
10043     esac
10044     ;;
10045
10046   cygwin* | mingw* | pw32*)
10047     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10048     # as there is no search path for DLLs.
10049     hardcode_libdir_flag_spec_CXX='-L$libdir'
10050     allow_undefined_flag_CXX=unsupported
10051     always_export_symbols_CXX=no
10052     enable_shared_with_static_runtimes_CXX=yes
10053
10054     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10055       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10056       # If the export-symbols file already is a .def file (1st line
10057       # is EXPORTS), use it as is; otherwise, prepend...
10058       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10059         cp $export_symbols $output_objdir/$soname.def;
10060       else
10061         echo EXPORTS > $output_objdir/$soname.def;
10062         cat $export_symbols >> $output_objdir/$soname.def;
10063       fi~
10064       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10065     else
10066       ld_shlibs_CXX=no
10067     fi
10068   ;;
10069       darwin* | rhapsody*)
10070         case $host_os in
10071         rhapsody* | darwin1.[012])
10072          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10073          ;;
10074        *) # Darwin 1.3 on
10075          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10076            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10077          else
10078            case ${MACOSX_DEPLOYMENT_TARGET} in
10079              10.[012])
10080                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10081                ;;
10082              10.*)
10083                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10084                ;;
10085            esac
10086          fi
10087          ;;
10088         esac
10089       archive_cmds_need_lc_CXX=no
10090       hardcode_direct_CXX=no
10091       hardcode_automatic_CXX=yes
10092       hardcode_shlibpath_var_CXX=unsupported
10093       whole_archive_flag_spec_CXX=''
10094       link_all_deplibs_CXX=yes
10095
10096     if test "$GXX" = yes ; then
10097       lt_int_apple_cc_single_mod=no
10098       output_verbose_link_cmd='echo'
10099       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10100        lt_int_apple_cc_single_mod=yes
10101       fi
10102       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10103        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10104       else
10105           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10106         fi
10107         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10108         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10109           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10110             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}'
10111           else
10112             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10113           fi
10114             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}'
10115       else
10116       case $cc_basename in
10117         xlc*)
10118          output_verbose_link_cmd='echo'
10119           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10120           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10121           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10122           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10123           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}'
10124           ;;
10125        *)
10126          ld_shlibs_CXX=no
10127           ;;
10128       esac
10129       fi
10130         ;;
10131
10132   dgux*)
10133     case $cc_basename in
10134       ec++*)
10135         # FIXME: insert proper C++ library support
10136         ld_shlibs_CXX=no
10137         ;;
10138       ghcx*)
10139         # Green Hills C++ Compiler
10140         # FIXME: insert proper C++ library support
10141         ld_shlibs_CXX=no
10142         ;;
10143       *)
10144         # FIXME: insert proper C++ library support
10145         ld_shlibs_CXX=no
10146         ;;
10147     esac
10148     ;;
10149   freebsd[12]*)
10150     # C++ shared libraries reported to be fairly broken before switch to ELF
10151     ld_shlibs_CXX=no
10152     ;;
10153   freebsd-elf*)
10154     archive_cmds_need_lc_CXX=no
10155     ;;
10156   freebsd* | kfreebsd*-gnu | dragonfly*)
10157     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10158     # conventions
10159     ld_shlibs_CXX=yes
10160     ;;
10161   gnu*)
10162     ;;
10163   hpux9*)
10164     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10165     hardcode_libdir_separator_CXX=:
10166     export_dynamic_flag_spec_CXX='${wl}-E'
10167     hardcode_direct_CXX=yes
10168     hardcode_minus_L_CXX=yes # Not in the search PATH,
10169                                 # but as the default
10170                                 # location of the library.
10171
10172     case $cc_basename in
10173     CC*)
10174       # FIXME: insert proper C++ library support
10175       ld_shlibs_CXX=no
10176       ;;
10177     aCC*)
10178       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'
10179       # Commands to make compiler produce verbose output that lists
10180       # what "hidden" libraries, object files and flags are used when
10181       # linking a shared library.
10182       #
10183       # There doesn't appear to be a way to prevent this compiler from
10184       # explicitly linking system object files so we need to strip them
10185       # from the output so that they don't get included in the library
10186       # dependencies.
10187       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'
10188       ;;
10189     *)
10190       if test "$GXX" = yes; then
10191         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'
10192       else
10193         # FIXME: insert proper C++ library support
10194         ld_shlibs_CXX=no
10195       fi
10196       ;;
10197     esac
10198     ;;
10199   hpux10*|hpux11*)
10200     if test $with_gnu_ld = no; then
10201       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10202       hardcode_libdir_separator_CXX=:
10203
10204       case $host_cpu in
10205       hppa*64*|ia64*)
10206         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10207         ;;
10208       *)
10209         export_dynamic_flag_spec_CXX='${wl}-E'
10210         ;;
10211       esac
10212     fi
10213     case $host_cpu in
10214     hppa*64*|ia64*)
10215       hardcode_direct_CXX=no
10216       hardcode_shlibpath_var_CXX=no
10217       ;;
10218     *)
10219       hardcode_direct_CXX=yes
10220       hardcode_minus_L_CXX=yes # Not in the search PATH,
10221                                               # but as the default
10222                                               # location of the library.
10223       ;;
10224     esac
10225
10226     case $cc_basename in
10227       CC*)
10228         # FIXME: insert proper C++ library support
10229         ld_shlibs_CXX=no
10230         ;;
10231       aCC*)
10232         case $host_cpu in
10233         hppa*64*)
10234           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10235           ;;
10236         ia64*)
10237           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10238           ;;
10239         *)
10240           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10241           ;;
10242         esac
10243         # Commands to make compiler produce verbose output that lists
10244         # what "hidden" libraries, object files and flags are used when
10245         # linking a shared library.
10246         #
10247         # There doesn't appear to be a way to prevent this compiler from
10248         # explicitly linking system object files so we need to strip them
10249         # from the output so that they don't get included in the library
10250         # dependencies.
10251         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'
10252         ;;
10253       *)
10254         if test "$GXX" = yes; then
10255           if test $with_gnu_ld = no; then
10256             case $host_cpu in
10257             hppa*64*)
10258               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10259               ;;
10260             ia64*)
10261               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10262               ;;
10263             *)
10264               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'
10265               ;;
10266             esac
10267           fi
10268         else
10269           # FIXME: insert proper C++ library support
10270           ld_shlibs_CXX=no
10271         fi
10272         ;;
10273     esac
10274     ;;
10275   interix3*)
10276     hardcode_direct_CXX=no
10277     hardcode_shlibpath_var_CXX=no
10278     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10279     export_dynamic_flag_spec_CXX='${wl}-E'
10280     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10281     # Instead, shared libraries are loaded at an image base (0x10000000 by
10282     # default) and relocated if they conflict, which is a slow very memory
10283     # consuming and fragmenting process.  To avoid this, we pick a random,
10284     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10285     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10286     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10287     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10288     ;;
10289   irix5* | irix6*)
10290     case $cc_basename in
10291       CC*)
10292         # SGI C++
10293         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10294
10295         # Archives containing C++ object files must be created using
10296         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10297         # necessary to make sure instantiated templates are included
10298         # in the archive.
10299         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10300         ;;
10301       *)
10302         if test "$GXX" = yes; then
10303           if test "$with_gnu_ld" = no; then
10304             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10305           else
10306             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'
10307           fi
10308         fi
10309         link_all_deplibs_CXX=yes
10310         ;;
10311     esac
10312     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10313     hardcode_libdir_separator_CXX=:
10314     ;;
10315   linux*)
10316     case $cc_basename in
10317       KCC*)
10318         # Kuck and Associates, Inc. (KAI) C++ Compiler
10319
10320         # KCC will only create a shared library if the output file
10321         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10322         # to its proper name (with version) after linking.
10323         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'
10324         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'
10325         # Commands to make compiler produce verbose output that lists
10326         # what "hidden" libraries, object files and flags are used when
10327         # linking a shared library.
10328         #
10329         # There doesn't appear to be a way to prevent this compiler from
10330         # explicitly linking system object files so we need to strip them
10331         # from the output so that they don't get included in the library
10332         # dependencies.
10333         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'
10334
10335         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10336         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10337
10338         # Archives containing C++ object files must be created using
10339         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10340         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10341         ;;
10342       icpc*)
10343         # Intel C++
10344         with_gnu_ld=yes
10345         # version 8.0 and above of icpc choke on multiply defined symbols
10346         # if we add $predep_objects and $postdep_objects, however 7.1 and
10347         # earlier do not add the objects themselves.
10348         case `$CC -V 2>&1` in
10349         *"Version 7."*)
10350           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10351           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'
10352           ;;
10353         *)  # Version 8.0 or newer
10354           tmp_idyn=
10355           case $host_cpu in
10356             ia64*) tmp_idyn=' -i_dynamic';;
10357           esac
10358           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10359           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10360           ;;
10361         esac
10362         archive_cmds_need_lc_CXX=no
10363         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10364         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10365         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10366         ;;
10367       pgCC*)
10368         # Portland Group C++ compiler
10369         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10370         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10371
10372         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10373         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10374         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10375         ;;
10376       cxx*)
10377         # Compaq C++
10378         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379         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'
10380
10381         runpath_var=LD_RUN_PATH
10382         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10383         hardcode_libdir_separator_CXX=:
10384
10385         # Commands to make compiler produce verbose output that lists
10386         # what "hidden" libraries, object files and flags are used when
10387         # linking a shared library.
10388         #
10389         # There doesn't appear to be a way to prevent this compiler from
10390         # explicitly linking system object files so we need to strip them
10391         # from the output so that they don't get included in the library
10392         # dependencies.
10393         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'
10394         ;;
10395     esac
10396     ;;
10397   lynxos*)
10398     # FIXME: insert proper C++ library support
10399     ld_shlibs_CXX=no
10400     ;;
10401   m88k*)
10402     # FIXME: insert proper C++ library support
10403     ld_shlibs_CXX=no
10404     ;;
10405   mvs*)
10406     case $cc_basename in
10407       cxx*)
10408         # FIXME: insert proper C++ library support
10409         ld_shlibs_CXX=no
10410         ;;
10411       *)
10412         # FIXME: insert proper C++ library support
10413         ld_shlibs_CXX=no
10414         ;;
10415     esac
10416     ;;
10417   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10418     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10419       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10420       wlarc=
10421       hardcode_libdir_flag_spec_CXX='-R$libdir'
10422       hardcode_direct_CXX=yes
10423       hardcode_shlibpath_var_CXX=no
10424     fi
10425     # Workaround some broken pre-1.5 toolchains
10426     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10427     ;;
10428   openbsd2*)
10429     # C++ shared libraries are fairly broken
10430     ld_shlibs_CXX=no
10431     ;;
10432   openbsd*)
10433     hardcode_direct_CXX=yes
10434     hardcode_shlibpath_var_CXX=no
10435     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10436     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10437     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10438       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10439       export_dynamic_flag_spec_CXX='${wl}-E'
10440       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10441     fi
10442     output_verbose_link_cmd='echo'
10443     ;;
10444   osf3*)
10445     case $cc_basename in
10446       KCC*)
10447         # Kuck and Associates, Inc. (KAI) C++ Compiler
10448
10449         # KCC will only create a shared library if the output file
10450         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10451         # to its proper name (with version) after linking.
10452         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'
10453
10454         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10455         hardcode_libdir_separator_CXX=:
10456
10457         # Archives containing C++ object files must be created using
10458         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10459         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10460
10461         ;;
10462       RCC*)
10463         # Rational C++ 2.4.1
10464         # FIXME: insert proper C++ library support
10465         ld_shlibs_CXX=no
10466         ;;
10467       cxx*)
10468         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10469         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10470
10471         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10472         hardcode_libdir_separator_CXX=:
10473
10474         # Commands to make compiler produce verbose output that lists
10475         # what "hidden" libraries, object files and flags are used when
10476         # linking a shared library.
10477         #
10478         # There doesn't appear to be a way to prevent this compiler from
10479         # explicitly linking system object files so we need to strip them
10480         # from the output so that they don't get included in the library
10481         # dependencies.
10482         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'
10483         ;;
10484       *)
10485         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10486           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10487           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10488
10489           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10490           hardcode_libdir_separator_CXX=:
10491
10492           # Commands to make compiler produce verbose output that lists
10493           # what "hidden" libraries, object files and flags are used when
10494           # linking a shared library.
10495           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10496
10497         else
10498           # FIXME: insert proper C++ library support
10499           ld_shlibs_CXX=no
10500         fi
10501         ;;
10502     esac
10503     ;;
10504   osf4* | osf5*)
10505     case $cc_basename in
10506       KCC*)
10507         # Kuck and Associates, Inc. (KAI) C++ Compiler
10508
10509         # KCC will only create a shared library if the output file
10510         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10511         # to its proper name (with version) after linking.
10512         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'
10513
10514         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10515         hardcode_libdir_separator_CXX=:
10516
10517         # Archives containing C++ object files must be created using
10518         # the KAI C++ compiler.
10519         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10520         ;;
10521       RCC*)
10522         # Rational C++ 2.4.1
10523         # FIXME: insert proper C++ library support
10524         ld_shlibs_CXX=no
10525         ;;
10526       cxx*)
10527         allow_undefined_flag_CXX=' -expect_unresolved \*'
10528         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10529         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10530           echo "-hidden">> $lib.exp~
10531           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10532           $rm $lib.exp'
10533
10534         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10535         hardcode_libdir_separator_CXX=:
10536
10537         # Commands to make compiler produce verbose output that lists
10538         # what "hidden" libraries, object files and flags are used when
10539         # linking a shared library.
10540         #
10541         # There doesn't appear to be a way to prevent this compiler from
10542         # explicitly linking system object files so we need to strip them
10543         # from the output so that they don't get included in the library
10544         # dependencies.
10545         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'
10546         ;;
10547       *)
10548         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10549           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10550          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10551
10552           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10553           hardcode_libdir_separator_CXX=:
10554
10555           # Commands to make compiler produce verbose output that lists
10556           # what "hidden" libraries, object files and flags are used when
10557           # linking a shared library.
10558           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10559
10560         else
10561           # FIXME: insert proper C++ library support
10562           ld_shlibs_CXX=no
10563         fi
10564         ;;
10565     esac
10566     ;;
10567   psos*)
10568     # FIXME: insert proper C++ library support
10569     ld_shlibs_CXX=no
10570     ;;
10571   sunos4*)
10572     case $cc_basename in
10573       CC*)
10574         # Sun C++ 4.x
10575         # FIXME: insert proper C++ library support
10576         ld_shlibs_CXX=no
10577         ;;
10578       lcc*)
10579         # Lucid
10580         # FIXME: insert proper C++ library support
10581         ld_shlibs_CXX=no
10582         ;;
10583       *)
10584         # FIXME: insert proper C++ library support
10585         ld_shlibs_CXX=no
10586         ;;
10587     esac
10588     ;;
10589   solaris*)
10590     case $cc_basename in
10591       CC*)
10592         # Sun C++ 4.2, 5.x and Centerline C++
10593         archive_cmds_need_lc_CXX=yes
10594         no_undefined_flag_CXX=' -zdefs'
10595         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10596         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10597         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10598
10599         hardcode_libdir_flag_spec_CXX='-R$libdir'
10600         hardcode_shlibpath_var_CXX=no
10601         case $host_os in
10602           solaris2.[0-5] | solaris2.[0-5].*) ;;
10603           *)
10604             # The C++ compiler is used as linker so we must use $wl
10605             # flag to pass the commands to the underlying system
10606             # linker. We must also pass each convience library through
10607             # to the system linker between allextract/defaultextract.
10608             # The C++ compiler will combine linker options so we
10609             # cannot just pass the convience library names through
10610             # without $wl.
10611             # Supported since Solaris 2.6 (maybe 2.5.1?)
10612             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10613             ;;
10614         esac
10615         link_all_deplibs_CXX=yes
10616
10617         output_verbose_link_cmd='echo'
10618
10619         # Archives containing C++ object files must be created using
10620         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10621         # necessary to make sure instantiated templates are included
10622         # in the archive.
10623         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10624         ;;
10625       gcx*)
10626         # Green Hills C++ Compiler
10627         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10628
10629         # The C++ compiler must be used to create the archive.
10630         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10631         ;;
10632       *)
10633         # GNU C++ compiler with Solaris linker
10634         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10635           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10636           if $CC --version | grep -v '^2\.7' > /dev/null; then
10637             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10638             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10639                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10640
10641             # Commands to make compiler produce verbose output that lists
10642             # what "hidden" libraries, object files and flags are used when
10643             # linking a shared library.
10644             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10645           else
10646             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10647             # platform.
10648             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10649             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10650                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10651
10652             # Commands to make compiler produce verbose output that lists
10653             # what "hidden" libraries, object files and flags are used when
10654             # linking a shared library.
10655             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10656           fi
10657
10658           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10659         fi
10660         ;;
10661     esac
10662     ;;
10663   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10664     no_undefined_flag_CXX='${wl}-z,text'
10665     archive_cmds_need_lc_CXX=no
10666     hardcode_shlibpath_var_CXX=no
10667     runpath_var='LD_RUN_PATH'
10668
10669     case $cc_basename in
10670       CC*)
10671         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673         ;;
10674       *)
10675         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10677         ;;
10678     esac
10679     ;;
10680   sysv5* | sco3.2v5* | sco5v6*)
10681     # Note: We can NOT use -z defs as we might desire, because we do not
10682     # link with -lc, and that would cause any symbols used from libc to
10683     # always be unresolved, which means just about no library would
10684     # ever link correctly.  If we're not using GNU ld we use -z text
10685     # though, which does catch some bad symbols but isn't as heavy-handed
10686     # as -z defs.
10687     # For security reasons, it is highly recommended that you always
10688     # use absolute paths for naming shared libraries, and exclude the
10689     # DT_RUNPATH tag from executables and libraries.  But doing so
10690     # requires that you compile everything twice, which is a pain.
10691     # So that behaviour is only enabled if SCOABSPATH is set to a
10692     # non-empty value in the environment.  Most likely only useful for
10693     # creating official distributions of packages.
10694     # This is a hack until libtool officially supports absolute path
10695     # names for shared libraries.
10696     no_undefined_flag_CXX='${wl}-z,text'
10697     allow_undefined_flag_CXX='${wl}-z,nodefs'
10698     archive_cmds_need_lc_CXX=no
10699     hardcode_shlibpath_var_CXX=no
10700     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10701     hardcode_libdir_separator_CXX=':'
10702     link_all_deplibs_CXX=yes
10703     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10704     runpath_var='LD_RUN_PATH'
10705
10706     case $cc_basename in
10707       CC*)
10708         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10709         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10710         ;;
10711       *)
10712         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10713         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10714         ;;
10715     esac
10716     ;;
10717   tandem*)
10718     case $cc_basename in
10719       NCC*)
10720         # NonStop-UX NCC 3.20
10721         # FIXME: insert proper C++ library support
10722         ld_shlibs_CXX=no
10723         ;;
10724       *)
10725         # FIXME: insert proper C++ library support
10726         ld_shlibs_CXX=no
10727         ;;
10728     esac
10729     ;;
10730   vxworks*)
10731     # FIXME: insert proper C++ library support
10732     ld_shlibs_CXX=no
10733     ;;
10734   *)
10735     # FIXME: insert proper C++ library support
10736     ld_shlibs_CXX=no
10737     ;;
10738 esac
10739 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10740 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10741 test "$ld_shlibs_CXX" = no && can_build_shared=no
10742
10743 GCC_CXX="$GXX"
10744 LD_CXX="$LD"
10745
10746
10747 cat > conftest.$ac_ext <<EOF
10748 class Foo
10749 {
10750 public:
10751   Foo (void) { a = 0; }
10752 private:
10753   int a;
10754 };
10755 EOF
10756
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758   (eval $ac_compile) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; then
10762   # Parse the compiler output and extract the necessary
10763   # objects, libraries and library flags.
10764
10765   # Sentinel used to keep track of whether or not we are before
10766   # the conftest object file.
10767   pre_test_object_deps_done=no
10768
10769   # The `*' in the case matches for architectures that use `case' in
10770   # $output_verbose_cmd can trigger glob expansion during the loop
10771   # eval without this substitution.
10772   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10773
10774   for p in `eval $output_verbose_link_cmd`; do
10775     case $p in
10776
10777     -L* | -R* | -l*)
10778        # Some compilers place space between "-{L,R}" and the path.
10779        # Remove the space.
10780        if test $p = "-L" \
10781           || test $p = "-R"; then
10782          prev=$p
10783          continue
10784        else
10785          prev=
10786        fi
10787
10788        if test "$pre_test_object_deps_done" = no; then
10789          case $p in
10790          -L* | -R*)
10791            # Internal compiler library paths should come after those
10792            # provided the user.  The postdeps already come after the
10793            # user supplied libs so there is no need to process them.
10794            if test -z "$compiler_lib_search_path_CXX"; then
10795              compiler_lib_search_path_CXX="${prev}${p}"
10796            else
10797              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10798            fi
10799            ;;
10800          # The "-l" case would never come before the object being
10801          # linked, so don't bother handling this case.
10802          esac
10803        else
10804          if test -z "$postdeps_CXX"; then
10805            postdeps_CXX="${prev}${p}"
10806          else
10807            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10808          fi
10809        fi
10810        ;;
10811
10812     *.$objext)
10813        # This assumes that the test object file only shows up
10814        # once in the compiler output.
10815        if test "$p" = "conftest.$objext"; then
10816          pre_test_object_deps_done=yes
10817          continue
10818        fi
10819
10820        if test "$pre_test_object_deps_done" = no; then
10821          if test -z "$predep_objects_CXX"; then
10822            predep_objects_CXX="$p"
10823          else
10824            predep_objects_CXX="$predep_objects_CXX $p"
10825          fi
10826        else
10827          if test -z "$postdep_objects_CXX"; then
10828            postdep_objects_CXX="$p"
10829          else
10830            postdep_objects_CXX="$postdep_objects_CXX $p"
10831          fi
10832        fi
10833        ;;
10834
10835     *) ;; # Ignore the rest.
10836
10837     esac
10838   done
10839
10840   # Clean up.
10841   rm -f a.out a.exe
10842 else
10843   echo "libtool.m4: error: problem compiling CXX test program"
10844 fi
10845
10846 $rm -f confest.$objext
10847
10848 # PORTME: override above test on systems where it is broken
10849 case $host_os in
10850 interix3*)
10851   # Interix 3.5 installs completely hosed .la files for C++, so rather than
10852   # hack all around it, let's just trust "g++" to DTRT.
10853   predep_objects_CXX=
10854   postdep_objects_CXX=
10855   postdeps_CXX=
10856   ;;
10857
10858 solaris*)
10859   case $cc_basename in
10860   CC*)
10861     # Adding this requires a known-good setup of shared libraries for
10862     # Sun compiler versions before 5.6, else PIC objects from an old
10863     # archive will be linked into the output, leading to subtle bugs.
10864     postdeps_CXX='-lCstd -lCrun'
10865     ;;
10866   esac
10867   ;;
10868 esac
10869
10870
10871 case " $postdeps_CXX " in
10872 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10873 esac
10874
10875 lt_prog_compiler_wl_CXX=
10876 lt_prog_compiler_pic_CXX=
10877 lt_prog_compiler_static_CXX=
10878
10879 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10880 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10881
10882   # C++ specific cases for pic, static, wl, etc.
10883   if test "$GXX" = yes; then
10884     lt_prog_compiler_wl_CXX='-Wl,'
10885     lt_prog_compiler_static_CXX='-static'
10886
10887     case $host_os in
10888     aix*)
10889       # All AIX code is PIC.
10890       if test "$host_cpu" = ia64; then
10891         # AIX 5 now supports IA64 processor
10892         lt_prog_compiler_static_CXX='-Bstatic'
10893       fi
10894       ;;
10895     amigaos*)
10896       # FIXME: we need at least 68020 code to build shared libraries, but
10897       # adding the `-m68020' flag to GCC prevents building anything better,
10898       # like `-m68040'.
10899       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10900       ;;
10901     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10902       # PIC is the default for these OSes.
10903       ;;
10904     mingw* | os2* | pw32*)
10905       # This hack is so that the source file can tell whether it is being
10906       # built for inclusion in a dll (and should export symbols for example).
10907       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10908       ;;
10909     darwin* | rhapsody*)
10910       # PIC is the default on this platform
10911       # Common symbols not allowed in MH_DYLIB files
10912       lt_prog_compiler_pic_CXX='-fno-common'
10913       ;;
10914     *djgpp*)
10915       # DJGPP does not support shared libraries at all
10916       lt_prog_compiler_pic_CXX=
10917       ;;
10918     interix3*)
10919       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10920       # Instead, we relocate shared libraries at runtime.
10921       ;;
10922     sysv4*MP*)
10923       if test -d /usr/nec; then
10924         lt_prog_compiler_pic_CXX=-Kconform_pic
10925       fi
10926       ;;
10927     hpux*)
10928       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10929       # not for PA HP-UX.
10930       case $host_cpu in
10931       hppa*64*|ia64*)
10932         ;;
10933       *)
10934         lt_prog_compiler_pic_CXX='-fPIC'
10935         ;;
10936       esac
10937       ;;
10938     *)
10939       lt_prog_compiler_pic_CXX='-fPIC'
10940       ;;
10941     esac
10942   else
10943     case $host_os in
10944       aix4* | aix5*)
10945         # All AIX code is PIC.
10946         if test "$host_cpu" = ia64; then
10947           # AIX 5 now supports IA64 processor
10948           lt_prog_compiler_static_CXX='-Bstatic'
10949         else
10950           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10951         fi
10952         ;;
10953       chorus*)
10954         case $cc_basename in
10955         cxch68*)
10956           # Green Hills C++ Compiler
10957           # _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"
10958           ;;
10959         esac
10960         ;;
10961        darwin*)
10962          # PIC is the default on this platform
10963          # Common symbols not allowed in MH_DYLIB files
10964          case $cc_basename in
10965            xlc*)
10966            lt_prog_compiler_pic_CXX='-qnocommon'
10967            lt_prog_compiler_wl_CXX='-Wl,'
10968            ;;
10969          esac
10970        ;;
10971       dgux*)
10972         case $cc_basename in
10973           ec++*)
10974             lt_prog_compiler_pic_CXX='-KPIC'
10975             ;;
10976           ghcx*)
10977             # Green Hills C++ Compiler
10978             lt_prog_compiler_pic_CXX='-pic'
10979             ;;
10980           *)
10981             ;;
10982         esac
10983         ;;
10984       freebsd* | kfreebsd*-gnu | dragonfly*)
10985         # FreeBSD uses GNU C++
10986         ;;
10987       hpux9* | hpux10* | hpux11*)
10988         case $cc_basename in
10989           CC*)
10990             lt_prog_compiler_wl_CXX='-Wl,'
10991             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10992             if test "$host_cpu" != ia64; then
10993               lt_prog_compiler_pic_CXX='+Z'
10994             fi
10995             ;;
10996           aCC*)
10997             lt_prog_compiler_wl_CXX='-Wl,'
10998             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10999             case $host_cpu in
11000             hppa*64*|ia64*)
11001               # +Z the default
11002               ;;
11003             *)
11004               lt_prog_compiler_pic_CXX='+Z'
11005               ;;
11006             esac
11007             ;;
11008           *)
11009             ;;
11010         esac
11011         ;;
11012       interix*)
11013         # This is c89, which is MS Visual C++ (no shared libs)
11014         # Anyone wants to do a port?
11015         ;;
11016       irix5* | irix6* | nonstopux*)
11017         case $cc_basename in
11018           CC*)
11019             lt_prog_compiler_wl_CXX='-Wl,'
11020             lt_prog_compiler_static_CXX='-non_shared'
11021             # CC pic flag -KPIC is the default.
11022             ;;
11023           *)
11024             ;;
11025         esac
11026         ;;
11027       linux*)
11028         case $cc_basename in
11029           KCC*)
11030             # KAI C++ Compiler
11031             lt_prog_compiler_wl_CXX='--backend -Wl,'
11032             lt_prog_compiler_pic_CXX='-fPIC'
11033             ;;
11034           icpc* | ecpc*)
11035             # Intel C++
11036             lt_prog_compiler_wl_CXX='-Wl,'
11037             lt_prog_compiler_pic_CXX='-KPIC'
11038             lt_prog_compiler_static_CXX='-static'
11039             ;;
11040           pgCC*)
11041             # Portland Group C++ compiler.
11042             lt_prog_compiler_wl_CXX='-Wl,'
11043             lt_prog_compiler_pic_CXX='-fpic'
11044             lt_prog_compiler_static_CXX='-Bstatic'
11045             ;;
11046           cxx*)
11047             # Compaq C++
11048             # Make sure the PIC flag is empty.  It appears that all Alpha
11049             # Linux and Compaq Tru64 Unix objects are PIC.
11050             lt_prog_compiler_pic_CXX=
11051             lt_prog_compiler_static_CXX='-non_shared'
11052             ;;
11053           *)
11054             ;;
11055         esac
11056         ;;
11057       lynxos*)
11058         ;;
11059       m88k*)
11060         ;;
11061       mvs*)
11062         case $cc_basename in
11063           cxx*)
11064             lt_prog_compiler_pic_CXX='-W c,exportall'
11065             ;;
11066           *)
11067             ;;
11068         esac
11069         ;;
11070       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11071         ;;
11072       osf3* | osf4* | osf5*)
11073         case $cc_basename in
11074           KCC*)
11075             lt_prog_compiler_wl_CXX='--backend -Wl,'
11076             ;;
11077           RCC*)
11078             # Rational C++ 2.4.1
11079             lt_prog_compiler_pic_CXX='-pic'
11080             ;;
11081           cxx*)
11082             # Digital/Compaq C++
11083             lt_prog_compiler_wl_CXX='-Wl,'
11084             # Make sure the PIC flag is empty.  It appears that all Alpha
11085             # Linux and Compaq Tru64 Unix objects are PIC.
11086             lt_prog_compiler_pic_CXX=
11087             lt_prog_compiler_static_CXX='-non_shared'
11088             ;;
11089           *)
11090             ;;
11091         esac
11092         ;;
11093       psos*)
11094         ;;
11095       solaris*)
11096         case $cc_basename in
11097           CC*)
11098             # Sun C++ 4.2, 5.x and Centerline C++
11099             lt_prog_compiler_pic_CXX='-KPIC'
11100             lt_prog_compiler_static_CXX='-Bstatic'
11101             lt_prog_compiler_wl_CXX='-Qoption ld '
11102             ;;
11103           gcx*)
11104             # Green Hills C++ Compiler
11105             lt_prog_compiler_pic_CXX='-PIC'
11106             ;;
11107           *)
11108             ;;
11109         esac
11110         ;;
11111       sunos4*)
11112         case $cc_basename in
11113           CC*)
11114             # Sun C++ 4.x
11115             lt_prog_compiler_pic_CXX='-pic'
11116             lt_prog_compiler_static_CXX='-Bstatic'
11117             ;;
11118           lcc*)
11119             # Lucid
11120             lt_prog_compiler_pic_CXX='-pic'
11121             ;;
11122           *)
11123             ;;
11124         esac
11125         ;;
11126       tandem*)
11127         case $cc_basename in
11128           NCC*)
11129             # NonStop-UX NCC 3.20
11130             lt_prog_compiler_pic_CXX='-KPIC'
11131             ;;
11132           *)
11133             ;;
11134         esac
11135         ;;
11136       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11137         case $cc_basename in
11138           CC*)
11139             lt_prog_compiler_wl_CXX='-Wl,'
11140             lt_prog_compiler_pic_CXX='-KPIC'
11141             lt_prog_compiler_static_CXX='-Bstatic'
11142             ;;
11143         esac
11144         ;;
11145       vxworks*)
11146         ;;
11147       *)
11148         lt_prog_compiler_can_build_shared_CXX=no
11149         ;;
11150     esac
11151   fi
11152
11153 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11154 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11155
11156 #
11157 # Check to make sure the PIC flag actually works.
11158 #
11159 if test -n "$lt_prog_compiler_pic_CXX"; then
11160
11161 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11162 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11163 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11164   echo $ECHO_N "(cached) $ECHO_C" >&6
11165 else
11166   lt_prog_compiler_pic_works_CXX=no
11167   ac_outfile=conftest.$ac_objext
11168    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11169    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11170    # Insert the option either (1) after the last *FLAGS variable, or
11171    # (2) before a word containing "conftest.", or (3) at the end.
11172    # Note that $ac_compile itself does not contain backslashes and begins
11173    # with a dollar sign (not a hyphen), so the echo should work correctly.
11174    # The option is referenced via a variable to avoid confusing sed.
11175    lt_compile=`echo "$ac_compile" | $SED \
11176    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11178    -e 's:$: $lt_compiler_flag:'`
11179    (eval echo "\"\$as_me:11179: $lt_compile\"" >&5)
11180    (eval "$lt_compile" 2>conftest.err)
11181    ac_status=$?
11182    cat conftest.err >&5
11183    echo "$as_me:11183: \$? = $ac_status" >&5
11184    if (exit $ac_status) && test -s "$ac_outfile"; then
11185      # The compiler can only warn and ignore the option if not recognized
11186      # So say no if there are warnings other than the usual output.
11187      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11188      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11189      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11190        lt_prog_compiler_pic_works_CXX=yes
11191      fi
11192    fi
11193    $rm conftest*
11194
11195 fi
11196 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11197 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11198
11199 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11200     case $lt_prog_compiler_pic_CXX in
11201      "" | " "*) ;;
11202      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11203      esac
11204 else
11205     lt_prog_compiler_pic_CXX=
11206      lt_prog_compiler_can_build_shared_CXX=no
11207 fi
11208
11209 fi
11210 case $host_os in
11211   # For platforms which do not support PIC, -DPIC is meaningless:
11212   *djgpp*)
11213     lt_prog_compiler_pic_CXX=
11214     ;;
11215   *)
11216     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11217     ;;
11218 esac
11219
11220 #
11221 # Check to make sure the static flag actually works.
11222 #
11223 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11224 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11225 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11226 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229   lt_prog_compiler_static_works_CXX=no
11230    save_LDFLAGS="$LDFLAGS"
11231    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11232    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11233    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11234      # The linker can only warn and ignore the option if not recognized
11235      # So say no if there are warnings
11236      if test -s conftest.err; then
11237        # Append any errors to the config.log.
11238        cat conftest.err 1>&5
11239        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11240        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11241        if diff conftest.exp conftest.er2 >/dev/null; then
11242          lt_prog_compiler_static_works_CXX=yes
11243        fi
11244      else
11245        lt_prog_compiler_static_works_CXX=yes
11246      fi
11247    fi
11248    $rm conftest*
11249    LDFLAGS="$save_LDFLAGS"
11250
11251 fi
11252 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11253 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11254
11255 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11256     :
11257 else
11258     lt_prog_compiler_static_CXX=
11259 fi
11260
11261
11262 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11263 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11264 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11265   echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267   lt_cv_prog_compiler_c_o_CXX=no
11268    $rm -r conftest 2>/dev/null
11269    mkdir conftest
11270    cd conftest
11271    mkdir out
11272    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11273
11274    lt_compiler_flag="-o out/conftest2.$ac_objext"
11275    # Insert the option either (1) after the last *FLAGS variable, or
11276    # (2) before a word containing "conftest.", or (3) at the end.
11277    # Note that $ac_compile itself does not contain backslashes and begins
11278    # with a dollar sign (not a hyphen), so the echo should work correctly.
11279    lt_compile=`echo "$ac_compile" | $SED \
11280    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11281    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11282    -e 's:$: $lt_compiler_flag:'`
11283    (eval echo "\"\$as_me:11283: $lt_compile\"" >&5)
11284    (eval "$lt_compile" 2>out/conftest.err)
11285    ac_status=$?
11286    cat out/conftest.err >&5
11287    echo "$as_me:11287: \$? = $ac_status" >&5
11288    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11289    then
11290      # The compiler can only warn and ignore the option if not recognized
11291      # So say no if there are warnings
11292      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11293      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11294      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11295        lt_cv_prog_compiler_c_o_CXX=yes
11296      fi
11297    fi
11298    chmod u+w . 2>&5
11299    $rm conftest*
11300    # SGI C++ compiler will create directory out/ii_files/ for
11301    # template instantiation
11302    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11303    $rm out/* && rmdir out
11304    cd ..
11305    rmdir conftest
11306    $rm conftest*
11307
11308 fi
11309 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11310 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11311
11312
11313 hard_links="nottested"
11314 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11315   # do not overwrite the value of need_locks provided by the user
11316   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11317 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11318   hard_links=yes
11319   $rm conftest*
11320   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11321   touch conftest.a
11322   ln conftest.a conftest.b 2>&5 || hard_links=no
11323   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11324   echo "$as_me:$LINENO: result: $hard_links" >&5
11325 echo "${ECHO_T}$hard_links" >&6
11326   if test "$hard_links" = no; then
11327     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11328 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11329     need_locks=warn
11330   fi
11331 else
11332   need_locks=no
11333 fi
11334
11335 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11336 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11337
11338   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11339   case $host_os in
11340   aix4* | aix5*)
11341     # If we're using GNU nm, then we don't want the "-C" option.
11342     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11343     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11344       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'
11345     else
11346       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'
11347     fi
11348     ;;
11349   pw32*)
11350     export_symbols_cmds_CXX="$ltdll_cmds"
11351   ;;
11352   cygwin* | mingw*)
11353     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11354   ;;
11355   kfreebsd*-gnu)
11356     link_all_deplibs_CXX=no
11357   ;;
11358   linux*)
11359     link_all_deplibs_CXX=no
11360   ;;
11361   *)
11362     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11363   ;;
11364   esac
11365
11366 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11367 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11368 test "$ld_shlibs_CXX" = no && can_build_shared=no
11369
11370 #
11371 # Do we need to explicitly link libc?
11372 #
11373 case "x$archive_cmds_need_lc_CXX" in
11374 x|xyes)
11375   # Assume -lc should be added
11376   archive_cmds_need_lc_CXX=yes
11377
11378   if test "$enable_shared" = yes && test "$GCC" = yes; then
11379     case $archive_cmds_CXX in
11380     *'~'*)
11381       # FIXME: we may have to deal with multi-command sequences.
11382       ;;
11383     '$CC '*)
11384       # Test whether the compiler implicitly links with -lc since on some
11385       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11386       # to ld, don't add -lc before -lgcc.
11387       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11388 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11389       $rm conftest*
11390       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11391
11392       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393   (eval $ac_compile) 2>&5
11394   ac_status=$?
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } 2>conftest.err; then
11397         soname=conftest
11398         lib=conftest
11399         libobjs=conftest.$ac_objext
11400         deplibs=
11401         wl=$lt_prog_compiler_wl_CXX
11402         pic_flag=$lt_prog_compiler_pic_CXX
11403         compiler_flags=-v
11404         linker_flags=-v
11405         verstring=
11406         output_objdir=.
11407         libname=conftest
11408         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11409         allow_undefined_flag_CXX=
11410         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11411   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }
11415         then
11416           archive_cmds_need_lc_CXX=no
11417         else
11418           archive_cmds_need_lc_CXX=yes
11419         fi
11420         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11421       else
11422         cat conftest.err 1>&5
11423       fi
11424       $rm conftest*
11425       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11426 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11427       ;;
11428     esac
11429   fi
11430   ;;
11431 esac
11432
11433 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11434 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11435 library_names_spec=
11436 libname_spec='lib$name'
11437 soname_spec=
11438 shrext_cmds=".so"
11439 postinstall_cmds=
11440 postuninstall_cmds=
11441 finish_cmds=
11442 finish_eval=
11443 shlibpath_var=
11444 shlibpath_overrides_runpath=unknown
11445 version_type=none
11446 dynamic_linker="$host_os ld.so"
11447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11448 if test "$GCC" = yes; then
11449   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11450   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11451     # if the path contains ";" then we assume it to be the separator
11452     # otherwise default to the standard path separator (i.e. ":") - it is
11453     # assumed that no part of a normal pathname contains ";" but that should
11454     # okay in the real world where ";" in dirpaths is itself problematic.
11455     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11456   else
11457     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11458   fi
11459 else
11460   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11461 fi
11462 need_lib_prefix=unknown
11463 hardcode_into_libs=no
11464
11465 # when you set need_version to no, make sure it does not cause -set_version
11466 # flags to be left without arguments
11467 need_version=unknown
11468
11469 case $host_os in
11470 aix3*)
11471   version_type=linux
11472   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11473   shlibpath_var=LIBPATH
11474
11475   # AIX 3 has no versioning support, so we append a major version to the name.
11476   soname_spec='${libname}${release}${shared_ext}$major'
11477   ;;
11478
11479 aix4* | aix5*)
11480   version_type=linux
11481   need_lib_prefix=no
11482   need_version=no
11483   hardcode_into_libs=yes
11484   if test "$host_cpu" = ia64; then
11485     # AIX 5 supports IA64
11486     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11487     shlibpath_var=LD_LIBRARY_PATH
11488   else
11489     # With GCC up to 2.95.x, collect2 would create an import file
11490     # for dependence libraries.  The import file would start with
11491     # the line `#! .'.  This would cause the generated library to
11492     # depend on `.', always an invalid library.  This was fixed in
11493     # development snapshots of GCC prior to 3.0.
11494     case $host_os in
11495       aix4 | aix4.[01] | aix4.[01].*)
11496       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11497            echo ' yes '
11498            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11499         :
11500       else
11501         can_build_shared=no
11502       fi
11503       ;;
11504     esac
11505     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11506     # soname into executable. Probably we can add versioning support to
11507     # collect2, so additional links can be useful in future.
11508     if test "$aix_use_runtimelinking" = yes; then
11509       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11510       # instead of lib<name>.a to let people know that these are not
11511       # typical AIX shared libraries.
11512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513     else
11514       # We preserve .a as extension for shared libraries through AIX4.2
11515       # and later when we are not doing run time linking.
11516       library_names_spec='${libname}${release}.a $libname.a'
11517       soname_spec='${libname}${release}${shared_ext}$major'
11518     fi
11519     shlibpath_var=LIBPATH
11520   fi
11521   ;;
11522
11523 amigaos*)
11524   library_names_spec='$libname.ixlibrary $libname.a'
11525   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11526   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'
11527   ;;
11528
11529 beos*)
11530   library_names_spec='${libname}${shared_ext}'
11531   dynamic_linker="$host_os ld.so"
11532   shlibpath_var=LIBRARY_PATH
11533   ;;
11534
11535 bsdi[45]*)
11536   version_type=linux
11537   need_version=no
11538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539   soname_spec='${libname}${release}${shared_ext}$major'
11540   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11541   shlibpath_var=LD_LIBRARY_PATH
11542   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11543   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11544   # the default ld.so.conf also contains /usr/contrib/lib and
11545   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11546   # libtool to hard-code these into programs
11547   ;;
11548
11549 cygwin* | mingw* | pw32*)
11550   version_type=windows
11551   shrext_cmds=".dll"
11552   need_version=no
11553   need_lib_prefix=no
11554
11555   case $GCC,$host_os in
11556   yes,cygwin* | yes,mingw* | yes,pw32*)
11557     library_names_spec='$libname.dll.a'
11558     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11559     postinstall_cmds='base_file=`basename \${file}`~
11560       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11561       dldir=$destdir/`dirname \$dlpath`~
11562       test -d \$dldir || mkdir -p \$dldir~
11563       $install_prog $dir/$dlname \$dldir/$dlname~
11564       chmod a+x \$dldir/$dlname'
11565     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11566       dlpath=$dir/\$dldll~
11567        $rm \$dlpath'
11568     shlibpath_overrides_runpath=yes
11569
11570     case $host_os in
11571     cygwin*)
11572       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11573       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11574       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11575       ;;
11576     mingw*)
11577       # MinGW DLLs use traditional 'lib' prefix
11578       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11579       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11580       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11581         # It is most probably a Windows format PATH printed by
11582         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11583         # path with ; separators, and with drive letters. We can handle the
11584         # drive letters (cygwin fileutils understands them), so leave them,
11585         # especially as we might pass files found there to a mingw objdump,
11586         # which wouldn't understand a cygwinified path. Ahh.
11587         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11588       else
11589         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11590       fi
11591       ;;
11592     pw32*)
11593       # pw32 DLLs use 'pw' prefix rather than 'lib'
11594       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11595       ;;
11596     esac
11597     ;;
11598
11599   *)
11600     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11601     ;;
11602   esac
11603   dynamic_linker='Win32 ld.exe'
11604   # FIXME: first we should search . and the directory the executable is in
11605   shlibpath_var=PATH
11606   ;;
11607
11608 darwin* | rhapsody*)
11609   dynamic_linker="$host_os dyld"
11610   version_type=darwin
11611   need_lib_prefix=no
11612   need_version=no
11613   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11614   soname_spec='${libname}${release}${major}$shared_ext'
11615   shlibpath_overrides_runpath=yes
11616   shlibpath_var=DYLD_LIBRARY_PATH
11617   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11618   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11619   if test "$GCC" = yes; then
11620     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"`
11621   else
11622     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11623   fi
11624   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11625   ;;
11626
11627 dgux*)
11628   version_type=linux
11629   need_lib_prefix=no
11630   need_version=no
11631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11632   soname_spec='${libname}${release}${shared_ext}$major'
11633   shlibpath_var=LD_LIBRARY_PATH
11634   ;;
11635
11636 freebsd1*)
11637   dynamic_linker=no
11638   ;;
11639
11640 kfreebsd*-gnu)
11641   version_type=linux
11642   need_lib_prefix=no
11643   need_version=no
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645   soname_spec='${libname}${release}${shared_ext}$major'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   shlibpath_overrides_runpath=no
11648   hardcode_into_libs=yes
11649   dynamic_linker='GNU ld.so'
11650   ;;
11651
11652 freebsd* | dragonfly*)
11653   # DragonFly does not have aout.  When/if they implement a new
11654   # versioning mechanism, adjust this.
11655   if test -x /usr/bin/objformat; then
11656     objformat=`/usr/bin/objformat`
11657   else
11658     case $host_os in
11659     freebsd[123]*) objformat=aout ;;
11660     *) objformat=elf ;;
11661     esac
11662   fi
11663   version_type=freebsd-$objformat
11664   case $version_type in
11665     freebsd-elf*)
11666       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11667       need_version=no
11668       need_lib_prefix=no
11669       ;;
11670     freebsd-*)
11671       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11672       need_version=yes
11673       ;;
11674   esac
11675   shlibpath_var=LD_LIBRARY_PATH
11676   case $host_os in
11677   freebsd2*)
11678     shlibpath_overrides_runpath=yes
11679     ;;
11680   freebsd3.[01]* | freebsdelf3.[01]*)
11681     shlibpath_overrides_runpath=yes
11682     hardcode_into_libs=yes
11683     ;;
11684   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11685   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11686     shlibpath_overrides_runpath=no
11687     hardcode_into_libs=yes
11688     ;;
11689   freebsd*) # from 4.6 on
11690     shlibpath_overrides_runpath=yes
11691     hardcode_into_libs=yes
11692     ;;
11693   esac
11694   ;;
11695
11696 gnu*)
11697   version_type=linux
11698   need_lib_prefix=no
11699   need_version=no
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11701   soname_spec='${libname}${release}${shared_ext}$major'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   hardcode_into_libs=yes
11704   ;;
11705
11706 hpux9* | hpux10* | hpux11*)
11707   # Give a soname corresponding to the major version so that dld.sl refuses to
11708   # link against other versions.
11709   version_type=sunos
11710   need_lib_prefix=no
11711   need_version=no
11712   case $host_cpu in
11713   ia64*)
11714     shrext_cmds='.so'
11715     hardcode_into_libs=yes
11716     dynamic_linker="$host_os dld.so"
11717     shlibpath_var=LD_LIBRARY_PATH
11718     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720     soname_spec='${libname}${release}${shared_ext}$major'
11721     if test "X$HPUX_IA64_MODE" = X32; then
11722       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11723     else
11724       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11725     fi
11726     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11727     ;;
11728    hppa*64*)
11729      shrext_cmds='.sl'
11730      hardcode_into_libs=yes
11731      dynamic_linker="$host_os dld.sl"
11732      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11733      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11734      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735      soname_spec='${libname}${release}${shared_ext}$major'
11736      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11737      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11738      ;;
11739    *)
11740     shrext_cmds='.sl'
11741     dynamic_linker="$host_os dld.sl"
11742     shlibpath_var=SHLIB_PATH
11743     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745     soname_spec='${libname}${release}${shared_ext}$major'
11746     ;;
11747   esac
11748   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11749   postinstall_cmds='chmod 555 $lib'
11750   ;;
11751
11752 interix3*)
11753   version_type=linux
11754   need_lib_prefix=no
11755   need_version=no
11756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11757   soname_spec='${libname}${release}${shared_ext}$major'
11758   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11759   shlibpath_var=LD_LIBRARY_PATH
11760   shlibpath_overrides_runpath=no
11761   hardcode_into_libs=yes
11762   ;;
11763
11764 irix5* | irix6* | nonstopux*)
11765   case $host_os in
11766     nonstopux*) version_type=nonstopux ;;
11767     *)
11768         if test "$lt_cv_prog_gnu_ld" = yes; then
11769                 version_type=linux
11770         else
11771                 version_type=irix
11772         fi ;;
11773   esac
11774   need_lib_prefix=no
11775   need_version=no
11776   soname_spec='${libname}${release}${shared_ext}$major'
11777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11778   case $host_os in
11779   irix5* | nonstopux*)
11780     libsuff= shlibsuff=
11781     ;;
11782   *)
11783     case $LD in # libtool.m4 will add one of these switches to LD
11784     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11785       libsuff= shlibsuff= libmagic=32-bit;;
11786     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11787       libsuff=32 shlibsuff=N32 libmagic=N32;;
11788     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11789       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11790     *) libsuff= shlibsuff= libmagic=never-match;;
11791     esac
11792     ;;
11793   esac
11794   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11795   shlibpath_overrides_runpath=no
11796   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11797   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11798   hardcode_into_libs=yes
11799   ;;
11800
11801 # No shared lib support for Linux oldld, aout, or coff.
11802 linux*oldld* | linux*aout* | linux*coff*)
11803   dynamic_linker=no
11804   ;;
11805
11806 # This must be Linux ELF.
11807 linux*)
11808   version_type=linux
11809   need_lib_prefix=no
11810   need_version=no
11811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812   soname_spec='${libname}${release}${shared_ext}$major'
11813   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11814   shlibpath_var=LD_LIBRARY_PATH
11815   shlibpath_overrides_runpath=no
11816   # This implies no fast_install, which is unacceptable.
11817   # Some rework will be needed to allow for fast_install
11818   # before this can be enabled.
11819   hardcode_into_libs=yes
11820
11821   # Append ld.so.conf contents to the search path
11822   if test -f /etc/ld.so.conf; then
11823     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11824     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11825   fi
11826
11827   # We used to test for /lib/ld.so.1 and disable shared libraries on
11828   # powerpc, because MkLinux only supported shared libraries with the
11829   # GNU dynamic linker.  Since this was broken with cross compilers,
11830   # most powerpc-linux boxes support dynamic linking these days and
11831   # people can always --disable-shared, the test was removed, and we
11832   # assume the GNU/Linux dynamic linker is in use.
11833   dynamic_linker='GNU/Linux ld.so'
11834   ;;
11835
11836 netbsdelf*-gnu)
11837   version_type=linux
11838   need_lib_prefix=no
11839   need_version=no
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11841   soname_spec='${libname}${release}${shared_ext}$major'
11842   shlibpath_var=LD_LIBRARY_PATH
11843   shlibpath_overrides_runpath=no
11844   hardcode_into_libs=yes
11845   dynamic_linker='NetBSD ld.elf_so'
11846   ;;
11847
11848 knetbsd*-gnu)
11849   version_type=linux
11850   need_lib_prefix=no
11851   need_version=no
11852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11853   soname_spec='${libname}${release}${shared_ext}$major'
11854   shlibpath_var=LD_LIBRARY_PATH
11855   shlibpath_overrides_runpath=no
11856   hardcode_into_libs=yes
11857   dynamic_linker='GNU ld.so'
11858   ;;
11859
11860 netbsd*)
11861   version_type=sunos
11862   need_lib_prefix=no
11863   need_version=no
11864   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11866     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11867     dynamic_linker='NetBSD (a.out) ld.so'
11868   else
11869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11870     soname_spec='${libname}${release}${shared_ext}$major'
11871     dynamic_linker='NetBSD ld.elf_so'
11872   fi
11873   shlibpath_var=LD_LIBRARY_PATH
11874   shlibpath_overrides_runpath=yes
11875   hardcode_into_libs=yes
11876   ;;
11877
11878 newsos6)
11879   version_type=linux
11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881   shlibpath_var=LD_LIBRARY_PATH
11882   shlibpath_overrides_runpath=yes
11883   ;;
11884
11885 nto-qnx*)
11886   version_type=linux
11887   need_lib_prefix=no
11888   need_version=no
11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890   soname_spec='${libname}${release}${shared_ext}$major'
11891   shlibpath_var=LD_LIBRARY_PATH
11892   shlibpath_overrides_runpath=yes
11893   ;;
11894
11895 openbsd*)
11896   version_type=sunos
11897   sys_lib_dlsearch_path_spec="/usr/lib"
11898   need_lib_prefix=no
11899   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11900   case $host_os in
11901     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11902     *)                         need_version=no  ;;
11903   esac
11904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11905   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11906   shlibpath_var=LD_LIBRARY_PATH
11907   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11908     case $host_os in
11909       openbsd2.[89] | openbsd2.[89].*)
11910         shlibpath_overrides_runpath=no
11911         ;;
11912       *)
11913         shlibpath_overrides_runpath=yes
11914         ;;
11915       esac
11916   else
11917     shlibpath_overrides_runpath=yes
11918   fi
11919   ;;
11920
11921 os2*)
11922   libname_spec='$name'
11923   shrext_cmds=".dll"
11924   need_lib_prefix=no
11925   library_names_spec='$libname${shared_ext} $libname.a'
11926   dynamic_linker='OS/2 ld.exe'
11927   shlibpath_var=LIBPATH
11928   ;;
11929
11930 osf3* | osf4* | osf5*)
11931   version_type=osf
11932   need_lib_prefix=no
11933   need_version=no
11934   soname_spec='${libname}${release}${shared_ext}$major'
11935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936   shlibpath_var=LD_LIBRARY_PATH
11937   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11938   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11939   ;;
11940
11941 solaris*)
11942   version_type=linux
11943   need_lib_prefix=no
11944   need_version=no
11945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946   soname_spec='${libname}${release}${shared_ext}$major'
11947   shlibpath_var=LD_LIBRARY_PATH
11948   shlibpath_overrides_runpath=yes
11949   hardcode_into_libs=yes
11950   # ldd complains unless libraries are executable
11951   postinstall_cmds='chmod +x $lib'
11952   ;;
11953
11954 sunos4*)
11955   version_type=sunos
11956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11957   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11958   shlibpath_var=LD_LIBRARY_PATH
11959   shlibpath_overrides_runpath=yes
11960   if test "$with_gnu_ld" = yes; then
11961     need_lib_prefix=no
11962   fi
11963   need_version=yes
11964   ;;
11965
11966 sysv4 | sysv4.3*)
11967   version_type=linux
11968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969   soname_spec='${libname}${release}${shared_ext}$major'
11970   shlibpath_var=LD_LIBRARY_PATH
11971   case $host_vendor in
11972     sni)
11973       shlibpath_overrides_runpath=no
11974       need_lib_prefix=no
11975       export_dynamic_flag_spec='${wl}-Blargedynsym'
11976       runpath_var=LD_RUN_PATH
11977       ;;
11978     siemens)
11979       need_lib_prefix=no
11980       ;;
11981     motorola)
11982       need_lib_prefix=no
11983       need_version=no
11984       shlibpath_overrides_runpath=no
11985       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11986       ;;
11987   esac
11988   ;;
11989
11990 sysv4*MP*)
11991   if test -d /usr/nec ;then
11992     version_type=linux
11993     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11994     soname_spec='$libname${shared_ext}.$major'
11995     shlibpath_var=LD_LIBRARY_PATH
11996   fi
11997   ;;
11998
11999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12000   version_type=freebsd-elf
12001   need_lib_prefix=no
12002   need_version=no
12003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12004   soname_spec='${libname}${release}${shared_ext}$major'
12005   shlibpath_var=LD_LIBRARY_PATH
12006   hardcode_into_libs=yes
12007   if test "$with_gnu_ld" = yes; then
12008     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12009     shlibpath_overrides_runpath=no
12010   else
12011     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12012     shlibpath_overrides_runpath=yes
12013     case $host_os in
12014       sco3.2v5*)
12015         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12016         ;;
12017     esac
12018   fi
12019   sys_lib_dlsearch_path_spec='/usr/lib'
12020   ;;
12021
12022 uts4*)
12023   version_type=linux
12024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025   soname_spec='${libname}${release}${shared_ext}$major'
12026   shlibpath_var=LD_LIBRARY_PATH
12027   ;;
12028
12029 *)
12030   dynamic_linker=no
12031   ;;
12032 esac
12033 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12034 echo "${ECHO_T}$dynamic_linker" >&6
12035 test "$dynamic_linker" = no && can_build_shared=no
12036
12037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12038 if test "$GCC" = yes; then
12039   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12040 fi
12041
12042 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12043 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12044 hardcode_action_CXX=
12045 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12046    test -n "$runpath_var_CXX" || \
12047    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12048
12049   # We can hardcode non-existant directories.
12050   if test "$hardcode_direct_CXX" != no &&
12051      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12052      # have to relink, otherwise we might link with an installed library
12053      # when we should be linking with a yet-to-be-installed one
12054      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12055      test "$hardcode_minus_L_CXX" != no; then
12056     # Linking always hardcodes the temporary library directory.
12057     hardcode_action_CXX=relink
12058   else
12059     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12060     hardcode_action_CXX=immediate
12061   fi
12062 else
12063   # We cannot hardcode anything, or else we can only hardcode existing
12064   # directories.
12065   hardcode_action_CXX=unsupported
12066 fi
12067 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12068 echo "${ECHO_T}$hardcode_action_CXX" >&6
12069
12070 if test "$hardcode_action_CXX" = relink; then
12071   # Fast installation is not supported
12072   enable_fast_install=no
12073 elif test "$shlibpath_overrides_runpath" = yes ||
12074      test "$enable_shared" = no; then
12075   # Fast installation is not necessary
12076   enable_fast_install=needless
12077 fi
12078
12079
12080 # The else clause should only fire when bootstrapping the
12081 # libtool distribution, otherwise you forgot to ship ltmain.sh
12082 # with your package, and you will get complaints that there are
12083 # no rules to generate ltmain.sh.
12084 if test -f "$ltmain"; then
12085   # See if we are running on zsh, and set the options which allow our commands through
12086   # without removal of \ escapes.
12087   if test -n "${ZSH_VERSION+set}" ; then
12088     setopt NO_GLOB_SUBST
12089   fi
12090   # Now quote all the things that may contain metacharacters while being
12091   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12092   # variables and quote the copies for generation of the libtool script.
12093   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12094     SED SHELL STRIP \
12095     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12096     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12097     deplibs_check_method reload_flag reload_cmds need_locks \
12098     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12099     lt_cv_sys_global_symbol_to_c_name_address \
12100     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12101     old_postinstall_cmds old_postuninstall_cmds \
12102     compiler_CXX \
12103     CC_CXX \
12104     LD_CXX \
12105     lt_prog_compiler_wl_CXX \
12106     lt_prog_compiler_pic_CXX \
12107     lt_prog_compiler_static_CXX \
12108     lt_prog_compiler_no_builtin_flag_CXX \
12109     export_dynamic_flag_spec_CXX \
12110     thread_safe_flag_spec_CXX \
12111     whole_archive_flag_spec_CXX \
12112     enable_shared_with_static_runtimes_CXX \
12113     old_archive_cmds_CXX \
12114     old_archive_from_new_cmds_CXX \
12115     predep_objects_CXX \
12116     postdep_objects_CXX \
12117     predeps_CXX \
12118     postdeps_CXX \
12119     compiler_lib_search_path_CXX \
12120     archive_cmds_CXX \
12121     archive_expsym_cmds_CXX \
12122     postinstall_cmds_CXX \
12123     postuninstall_cmds_CXX \
12124     old_archive_from_expsyms_cmds_CXX \
12125     allow_undefined_flag_CXX \
12126     no_undefined_flag_CXX \
12127     export_symbols_cmds_CXX \
12128     hardcode_libdir_flag_spec_CXX \
12129     hardcode_libdir_flag_spec_ld_CXX \
12130     hardcode_libdir_separator_CXX \
12131     hardcode_automatic_CXX \
12132     module_cmds_CXX \
12133     module_expsym_cmds_CXX \
12134     lt_cv_prog_compiler_c_o_CXX \
12135     exclude_expsyms_CXX \
12136     include_expsyms_CXX; do
12137
12138     case $var in
12139     old_archive_cmds_CXX | \
12140     old_archive_from_new_cmds_CXX | \
12141     archive_cmds_CXX | \
12142     archive_expsym_cmds_CXX | \
12143     module_cmds_CXX | \
12144     module_expsym_cmds_CXX | \
12145     old_archive_from_expsyms_cmds_CXX | \
12146     export_symbols_cmds_CXX | \
12147     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12148     postinstall_cmds | postuninstall_cmds | \
12149     old_postinstall_cmds | old_postuninstall_cmds | \
12150     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12151       # Double-quote double-evaled strings.
12152       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12153       ;;
12154     *)
12155       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12156       ;;
12157     esac
12158   done
12159
12160   case $lt_echo in
12161   *'\$0 --fallback-echo"')
12162     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12163     ;;
12164   esac
12165
12166 cfgfile="$ofile"
12167
12168   cat <<__EOF__ >> "$cfgfile"
12169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12170
12171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12172
12173 # Shell to use when invoking shell scripts.
12174 SHELL=$lt_SHELL
12175
12176 # Whether or not to build shared libraries.
12177 build_libtool_libs=$enable_shared
12178
12179 # Whether or not to build static libraries.
12180 build_old_libs=$enable_static
12181
12182 # Whether or not to add -lc for building shared libraries.
12183 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12184
12185 # Whether or not to disallow shared libs when runtime libs are static
12186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12187
12188 # Whether or not to optimize for fast installation.
12189 fast_install=$enable_fast_install
12190
12191 # The host system.
12192 host_alias=$host_alias
12193 host=$host
12194 host_os=$host_os
12195
12196 # The build system.
12197 build_alias=$build_alias
12198 build=$build
12199 build_os=$build_os
12200
12201 # An echo program that does not interpret backslashes.
12202 echo=$lt_echo
12203
12204 # The archiver.
12205 AR=$lt_AR
12206 AR_FLAGS=$lt_AR_FLAGS
12207
12208 # A C compiler.
12209 LTCC=$lt_LTCC
12210
12211 # LTCC compiler flags.
12212 LTCFLAGS=$lt_LTCFLAGS
12213
12214 # A language-specific compiler.
12215 CC=$lt_compiler_CXX
12216
12217 # Is the compiler the GNU C compiler?
12218 with_gcc=$GCC_CXX
12219
12220 # An ERE matcher.
12221 EGREP=$lt_EGREP
12222
12223 # The linker used to build libraries.
12224 LD=$lt_LD_CXX
12225
12226 # Whether we need hard or soft links.
12227 LN_S=$lt_LN_S
12228
12229 # A BSD-compatible nm program.
12230 NM=$lt_NM
12231
12232 # A symbol stripping program
12233 STRIP=$lt_STRIP
12234
12235 # Used to examine libraries when file_magic_cmd begins "file"
12236 MAGIC_CMD=$MAGIC_CMD
12237
12238 # Used on cygwin: DLL creation program.
12239 DLLTOOL="$DLLTOOL"
12240
12241 # Used on cygwin: object dumper.
12242 OBJDUMP="$OBJDUMP"
12243
12244 # Used on cygwin: assembler.
12245 AS="$AS"
12246
12247 # The name of the directory that contains temporary libtool files.
12248 objdir=$objdir
12249
12250 # How to create reloadable object files.
12251 reload_flag=$lt_reload_flag
12252 reload_cmds=$lt_reload_cmds
12253
12254 # How to pass a linker flag through the compiler.
12255 wl=$lt_lt_prog_compiler_wl_CXX
12256
12257 # Object file suffix (normally "o").
12258 objext="$ac_objext"
12259
12260 # Old archive suffix (normally "a").
12261 libext="$libext"
12262
12263 # Shared library suffix (normally ".so").
12264 shrext_cmds='$shrext_cmds'
12265
12266 # Executable file suffix (normally "").
12267 exeext="$exeext"
12268
12269 # Additional compiler flags for building library objects.
12270 pic_flag=$lt_lt_prog_compiler_pic_CXX
12271 pic_mode=$pic_mode
12272
12273 # What is the maximum length of a command?
12274 max_cmd_len=$lt_cv_sys_max_cmd_len
12275
12276 # Does compiler simultaneously support -c and -o options?
12277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12278
12279 # Must we lock files when doing compilation?
12280 need_locks=$lt_need_locks
12281
12282 # Do we need the lib prefix for modules?
12283 need_lib_prefix=$need_lib_prefix
12284
12285 # Do we need a version for libraries?
12286 need_version=$need_version
12287
12288 # Whether dlopen is supported.
12289 dlopen_support=$enable_dlopen
12290
12291 # Whether dlopen of programs is supported.
12292 dlopen_self=$enable_dlopen_self
12293
12294 # Whether dlopen of statically linked programs is supported.
12295 dlopen_self_static=$enable_dlopen_self_static
12296
12297 # Compiler flag to prevent dynamic linking.
12298 link_static_flag=$lt_lt_prog_compiler_static_CXX
12299
12300 # Compiler flag to turn off builtin functions.
12301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12302
12303 # Compiler flag to allow reflexive dlopens.
12304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12305
12306 # Compiler flag to generate shared objects directly from archives.
12307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12308
12309 # Compiler flag to generate thread-safe objects.
12310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12311
12312 # Library versioning type.
12313 version_type=$version_type
12314
12315 # Format of library name prefix.
12316 libname_spec=$lt_libname_spec
12317
12318 # List of archive names.  First name is the real one, the rest are links.
12319 # The last name is the one that the linker finds with -lNAME.
12320 library_names_spec=$lt_library_names_spec
12321
12322 # The coded name of the library, if different from the real name.
12323 soname_spec=$lt_soname_spec
12324
12325 # Commands used to build and install an old-style archive.
12326 RANLIB=$lt_RANLIB
12327 old_archive_cmds=$lt_old_archive_cmds_CXX
12328 old_postinstall_cmds=$lt_old_postinstall_cmds
12329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12330
12331 # Create an old-style archive from a shared archive.
12332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12333
12334 # Create a temporary old-style archive to link instead of a shared archive.
12335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12336
12337 # Commands used to build and install a shared archive.
12338 archive_cmds=$lt_archive_cmds_CXX
12339 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12340 postinstall_cmds=$lt_postinstall_cmds
12341 postuninstall_cmds=$lt_postuninstall_cmds
12342
12343 # Commands used to build a loadable module (assumed same as above if empty)
12344 module_cmds=$lt_module_cmds_CXX
12345 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12346
12347 # Commands to strip libraries.
12348 old_striplib=$lt_old_striplib
12349 striplib=$lt_striplib
12350
12351 # Dependencies to place before the objects being linked to create a
12352 # shared library.
12353 predep_objects=$lt_predep_objects_CXX
12354
12355 # Dependencies to place after the objects being linked to create a
12356 # shared library.
12357 postdep_objects=$lt_postdep_objects_CXX
12358
12359 # Dependencies to place before the objects being linked to create a
12360 # shared library.
12361 predeps=$lt_predeps_CXX
12362
12363 # Dependencies to place after the objects being linked to create a
12364 # shared library.
12365 postdeps=$lt_postdeps_CXX
12366
12367 # The library search path used internally by the compiler when linking
12368 # a shared library.
12369 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12370
12371 # Method to check whether dependent libraries are shared objects.
12372 deplibs_check_method=$lt_deplibs_check_method
12373
12374 # Command to use when deplibs_check_method == file_magic.
12375 file_magic_cmd=$lt_file_magic_cmd
12376
12377 # Flag that allows shared libraries with undefined symbols to be built.
12378 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12379
12380 # Flag that forces no undefined symbols.
12381 no_undefined_flag=$lt_no_undefined_flag_CXX
12382
12383 # Commands used to finish a libtool library installation in a directory.
12384 finish_cmds=$lt_finish_cmds
12385
12386 # Same as above, but a single script fragment to be evaled but not shown.
12387 finish_eval=$lt_finish_eval
12388
12389 # Take the output of nm and produce a listing of raw symbols and C names.
12390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12391
12392 # Transform the output of nm in a proper C declaration
12393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12394
12395 # Transform the output of nm in a C name address pair
12396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12397
12398 # This is the shared library runtime path variable.
12399 runpath_var=$runpath_var
12400
12401 # This is the shared library path variable.
12402 shlibpath_var=$shlibpath_var
12403
12404 # Is shlibpath searched before the hard-coded library search path?
12405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12406
12407 # How to hardcode a shared library path into an executable.
12408 hardcode_action=$hardcode_action_CXX
12409
12410 # Whether we should hardcode library paths into libraries.
12411 hardcode_into_libs=$hardcode_into_libs
12412
12413 # Flag to hardcode \$libdir into a binary during linking.
12414 # This must work even if \$libdir does not exist.
12415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12416
12417 # If ld is used when linking, flag to hardcode \$libdir into
12418 # a binary during linking. This must work even if \$libdir does
12419 # not exist.
12420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12421
12422 # Whether we need a single -rpath flag with a separated argument.
12423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12424
12425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12426 # resulting binary.
12427 hardcode_direct=$hardcode_direct_CXX
12428
12429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12430 # resulting binary.
12431 hardcode_minus_L=$hardcode_minus_L_CXX
12432
12433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12434 # the resulting binary.
12435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12436
12437 # Set to yes if building a shared library automatically hardcodes DIR into the library
12438 # and all subsequent libraries and executables linked against it.
12439 hardcode_automatic=$hardcode_automatic_CXX
12440
12441 # Variables whose values should be saved in libtool wrapper scripts and
12442 # restored at relink time.
12443 variables_saved_for_relink="$variables_saved_for_relink"
12444
12445 # Whether libtool must link a program against all its dependency libraries.
12446 link_all_deplibs=$link_all_deplibs_CXX
12447
12448 # Compile-time system search path for libraries
12449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12450
12451 # Run-time system search path for libraries
12452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12453
12454 # Fix the shell variable \$srcfile for the compiler.
12455 fix_srcfile_path="$fix_srcfile_path_CXX"
12456
12457 # Set to yes if exported symbols are required.
12458 always_export_symbols=$always_export_symbols_CXX
12459
12460 # The commands to list exported symbols.
12461 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12462
12463 # The commands to extract the exported symbol list from a shared archive.
12464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12465
12466 # Symbols that should not be listed in the preloaded symbols.
12467 exclude_expsyms=$lt_exclude_expsyms_CXX
12468
12469 # Symbols that must always be exported.
12470 include_expsyms=$lt_include_expsyms_CXX
12471
12472 # ### END LIBTOOL TAG CONFIG: $tagname
12473
12474 __EOF__
12475
12476
12477 else
12478   # If there is no Makefile yet, we rely on a make rule to execute
12479   # `config.status --recheck' to rerun these tests and create the
12480   # libtool script then.
12481   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12482   if test -f "$ltmain_in"; then
12483     test -f Makefile && make "$ltmain"
12484   fi
12485 fi
12486
12487
12488 ac_ext=c
12489 ac_cpp='$CPP $CPPFLAGS'
12490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12493
12494 CC=$lt_save_CC
12495 LDCXX=$LD
12496 LD=$lt_save_LD
12497 GCC=$lt_save_GCC
12498 with_gnu_ldcxx=$with_gnu_ld
12499 with_gnu_ld=$lt_save_with_gnu_ld
12500 lt_cv_path_LDCXX=$lt_cv_path_LD
12501 lt_cv_path_LD=$lt_save_path_LD
12502 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12503 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12504
12505         else
12506           tagname=""
12507         fi
12508         ;;
12509
12510       F77)
12511         if test -n "$F77" && test "X$F77" != "Xno"; then
12512
12513 ac_ext=f
12514 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12515 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12517
12518
12519 archive_cmds_need_lc_F77=no
12520 allow_undefined_flag_F77=
12521 always_export_symbols_F77=no
12522 archive_expsym_cmds_F77=
12523 export_dynamic_flag_spec_F77=
12524 hardcode_direct_F77=no
12525 hardcode_libdir_flag_spec_F77=
12526 hardcode_libdir_flag_spec_ld_F77=
12527 hardcode_libdir_separator_F77=
12528 hardcode_minus_L_F77=no
12529 hardcode_automatic_F77=no
12530 module_cmds_F77=
12531 module_expsym_cmds_F77=
12532 link_all_deplibs_F77=unknown
12533 old_archive_cmds_F77=$old_archive_cmds
12534 no_undefined_flag_F77=
12535 whole_archive_flag_spec_F77=
12536 enable_shared_with_static_runtimes_F77=no
12537
12538 # Source file extension for f77 test sources.
12539 ac_ext=f
12540
12541 # Object file extension for compiled f77 test sources.
12542 objext=o
12543 objext_F77=$objext
12544
12545 # Code to be used in simple compile tests
12546 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12547
12548 # Code to be used in simple link tests
12549 lt_simple_link_test_code="      program t\n      end\n"
12550
12551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12552
12553 # If no C compiler was specified, use CC.
12554 LTCC=${LTCC-"$CC"}
12555
12556 # If no C compiler flags were specified, use CFLAGS.
12557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12558
12559 # Allow CC to be a program name with arguments.
12560 compiler=$CC
12561
12562
12563 # save warnings/boilerplate of simple test code
12564 ac_outfile=conftest.$ac_objext
12565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12567 _lt_compiler_boilerplate=`cat conftest.err`
12568 $rm conftest*
12569
12570 ac_outfile=conftest.$ac_objext
12571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12573 _lt_linker_boilerplate=`cat conftest.err`
12574 $rm conftest*
12575
12576
12577 # Allow CC to be a program name with arguments.
12578 lt_save_CC="$CC"
12579 CC=${F77-"f77"}
12580 compiler=$CC
12581 compiler_F77=$CC
12582 for cc_temp in $compiler""; do
12583   case $cc_temp in
12584     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12585     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12586     \-*) ;;
12587     *) break;;
12588   esac
12589 done
12590 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12591
12592
12593 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12594 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12595 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12596 echo "${ECHO_T}$can_build_shared" >&6
12597
12598 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12599 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12600 test "$can_build_shared" = "no" && enable_shared=no
12601
12602 # On AIX, shared libraries and static libraries use the same namespace, and
12603 # are all built from PIC.
12604 case $host_os in
12605 aix3*)
12606   test "$enable_shared" = yes && enable_static=no
12607   if test -n "$RANLIB"; then
12608     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12609     postinstall_cmds='$RANLIB $lib'
12610   fi
12611   ;;
12612 aix4* | aix5*)
12613   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12614     test "$enable_shared" = yes && enable_static=no
12615   fi
12616   ;;
12617 esac
12618 echo "$as_me:$LINENO: result: $enable_shared" >&5
12619 echo "${ECHO_T}$enable_shared" >&6
12620
12621 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12622 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12623 # Make sure either enable_shared or enable_static is yes.
12624 test "$enable_shared" = yes || enable_static=yes
12625 echo "$as_me:$LINENO: result: $enable_static" >&5
12626 echo "${ECHO_T}$enable_static" >&6
12627
12628 GCC_F77="$G77"
12629 LD_F77="$LD"
12630
12631 lt_prog_compiler_wl_F77=
12632 lt_prog_compiler_pic_F77=
12633 lt_prog_compiler_static_F77=
12634
12635 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12637
12638   if test "$GCC" = yes; then
12639     lt_prog_compiler_wl_F77='-Wl,'
12640     lt_prog_compiler_static_F77='-static'
12641
12642     case $host_os in
12643       aix*)
12644       # All AIX code is PIC.
12645       if test "$host_cpu" = ia64; then
12646         # AIX 5 now supports IA64 processor
12647         lt_prog_compiler_static_F77='-Bstatic'
12648       fi
12649       ;;
12650
12651     amigaos*)
12652       # FIXME: we need at least 68020 code to build shared libraries, but
12653       # adding the `-m68020' flag to GCC prevents building anything better,
12654       # like `-m68040'.
12655       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12656       ;;
12657
12658     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12659       # PIC is the default for these OSes.
12660       ;;
12661
12662     mingw* | pw32* | os2*)
12663       # This hack is so that the source file can tell whether it is being
12664       # built for inclusion in a dll (and should export symbols for example).
12665       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12666       ;;
12667
12668     darwin* | rhapsody*)
12669       # PIC is the default on this platform
12670       # Common symbols not allowed in MH_DYLIB files
12671       lt_prog_compiler_pic_F77='-fno-common'
12672       ;;
12673
12674     interix3*)
12675       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12676       # Instead, we relocate shared libraries at runtime.
12677       ;;
12678
12679     msdosdjgpp*)
12680       # Just because we use GCC doesn't mean we suddenly get shared libraries
12681       # on systems that don't support them.
12682       lt_prog_compiler_can_build_shared_F77=no
12683       enable_shared=no
12684       ;;
12685
12686     sysv4*MP*)
12687       if test -d /usr/nec; then
12688         lt_prog_compiler_pic_F77=-Kconform_pic
12689       fi
12690       ;;
12691
12692     hpux*)
12693       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12694       # not for PA HP-UX.
12695       case $host_cpu in
12696       hppa*64*|ia64*)
12697         # +Z the default
12698         ;;
12699       *)
12700         lt_prog_compiler_pic_F77='-fPIC'
12701         ;;
12702       esac
12703       ;;
12704
12705     *)
12706       lt_prog_compiler_pic_F77='-fPIC'
12707       ;;
12708     esac
12709   else
12710     # PORTME Check for flag to pass linker flags through the system compiler.
12711     case $host_os in
12712     aix*)
12713       lt_prog_compiler_wl_F77='-Wl,'
12714       if test "$host_cpu" = ia64; then
12715         # AIX 5 now supports IA64 processor
12716         lt_prog_compiler_static_F77='-Bstatic'
12717       else
12718         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12719       fi
12720       ;;
12721       darwin*)
12722         # PIC is the default on this platform
12723         # Common symbols not allowed in MH_DYLIB files
12724        case $cc_basename in
12725          xlc*)
12726          lt_prog_compiler_pic_F77='-qnocommon'
12727          lt_prog_compiler_wl_F77='-Wl,'
12728          ;;
12729        esac
12730        ;;
12731
12732     mingw* | pw32* | os2*)
12733       # This hack is so that the source file can tell whether it is being
12734       # built for inclusion in a dll (and should export symbols for example).
12735       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12736       ;;
12737
12738     hpux9* | hpux10* | hpux11*)
12739       lt_prog_compiler_wl_F77='-Wl,'
12740       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12741       # not for PA HP-UX.
12742       case $host_cpu in
12743       hppa*64*|ia64*)
12744         # +Z the default
12745         ;;
12746       *)
12747         lt_prog_compiler_pic_F77='+Z'
12748         ;;
12749       esac
12750       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12751       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12752       ;;
12753
12754     irix5* | irix6* | nonstopux*)
12755       lt_prog_compiler_wl_F77='-Wl,'
12756       # PIC (with -KPIC) is the default.
12757       lt_prog_compiler_static_F77='-non_shared'
12758       ;;
12759
12760     newsos6)
12761       lt_prog_compiler_pic_F77='-KPIC'
12762       lt_prog_compiler_static_F77='-Bstatic'
12763       ;;
12764
12765     linux*)
12766       case $cc_basename in
12767       icc* | ecc*)
12768         lt_prog_compiler_wl_F77='-Wl,'
12769         lt_prog_compiler_pic_F77='-KPIC'
12770         lt_prog_compiler_static_F77='-static'
12771         ;;
12772       pgcc* | pgf77* | pgf90* | pgf95*)
12773         # Portland Group compilers (*not* the Pentium gcc compiler,
12774         # which looks to be a dead project)
12775         lt_prog_compiler_wl_F77='-Wl,'
12776         lt_prog_compiler_pic_F77='-fpic'
12777         lt_prog_compiler_static_F77='-Bstatic'
12778         ;;
12779       ccc*)
12780         lt_prog_compiler_wl_F77='-Wl,'
12781         # All Alpha code is PIC.
12782         lt_prog_compiler_static_F77='-non_shared'
12783         ;;
12784       esac
12785       ;;
12786
12787     osf3* | osf4* | osf5*)
12788       lt_prog_compiler_wl_F77='-Wl,'
12789       # All OSF/1 code is PIC.
12790       lt_prog_compiler_static_F77='-non_shared'
12791       ;;
12792
12793     solaris*)
12794       lt_prog_compiler_pic_F77='-KPIC'
12795       lt_prog_compiler_static_F77='-Bstatic'
12796       case $cc_basename in
12797       f77* | f90* | f95*)
12798         lt_prog_compiler_wl_F77='-Qoption ld ';;
12799       *)
12800         lt_prog_compiler_wl_F77='-Wl,';;
12801       esac
12802       ;;
12803
12804     sunos4*)
12805       lt_prog_compiler_wl_F77='-Qoption ld '
12806       lt_prog_compiler_pic_F77='-PIC'
12807       lt_prog_compiler_static_F77='-Bstatic'
12808       ;;
12809
12810     sysv4 | sysv4.2uw2* | sysv4.3*)
12811       lt_prog_compiler_wl_F77='-Wl,'
12812       lt_prog_compiler_pic_F77='-KPIC'
12813       lt_prog_compiler_static_F77='-Bstatic'
12814       ;;
12815
12816     sysv4*MP*)
12817       if test -d /usr/nec ;then
12818         lt_prog_compiler_pic_F77='-Kconform_pic'
12819         lt_prog_compiler_static_F77='-Bstatic'
12820       fi
12821       ;;
12822
12823     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12824       lt_prog_compiler_wl_F77='-Wl,'
12825       lt_prog_compiler_pic_F77='-KPIC'
12826       lt_prog_compiler_static_F77='-Bstatic'
12827       ;;
12828
12829     unicos*)
12830       lt_prog_compiler_wl_F77='-Wl,'
12831       lt_prog_compiler_can_build_shared_F77=no
12832       ;;
12833
12834     uts4*)
12835       lt_prog_compiler_pic_F77='-pic'
12836       lt_prog_compiler_static_F77='-Bstatic'
12837       ;;
12838
12839     *)
12840       lt_prog_compiler_can_build_shared_F77=no
12841       ;;
12842     esac
12843   fi
12844
12845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12846 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12847
12848 #
12849 # Check to make sure the PIC flag actually works.
12850 #
12851 if test -n "$lt_prog_compiler_pic_F77"; then
12852
12853 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12854 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12855 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12856   echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858   lt_prog_compiler_pic_works_F77=no
12859   ac_outfile=conftest.$ac_objext
12860    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12861    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12862    # Insert the option either (1) after the last *FLAGS variable, or
12863    # (2) before a word containing "conftest.", or (3) at the end.
12864    # Note that $ac_compile itself does not contain backslashes and begins
12865    # with a dollar sign (not a hyphen), so the echo should work correctly.
12866    # The option is referenced via a variable to avoid confusing sed.
12867    lt_compile=`echo "$ac_compile" | $SED \
12868    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12869    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12870    -e 's:$: $lt_compiler_flag:'`
12871    (eval echo "\"\$as_me:12871: $lt_compile\"" >&5)
12872    (eval "$lt_compile" 2>conftest.err)
12873    ac_status=$?
12874    cat conftest.err >&5
12875    echo "$as_me:12875: \$? = $ac_status" >&5
12876    if (exit $ac_status) && test -s "$ac_outfile"; then
12877      # The compiler can only warn and ignore the option if not recognized
12878      # So say no if there are warnings other than the usual output.
12879      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12880      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12881      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12882        lt_prog_compiler_pic_works_F77=yes
12883      fi
12884    fi
12885    $rm conftest*
12886
12887 fi
12888 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12889 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12890
12891 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12892     case $lt_prog_compiler_pic_F77 in
12893      "" | " "*) ;;
12894      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12895      esac
12896 else
12897     lt_prog_compiler_pic_F77=
12898      lt_prog_compiler_can_build_shared_F77=no
12899 fi
12900
12901 fi
12902 case $host_os in
12903   # For platforms which do not support PIC, -DPIC is meaningless:
12904   *djgpp*)
12905     lt_prog_compiler_pic_F77=
12906     ;;
12907   *)
12908     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12909     ;;
12910 esac
12911
12912 #
12913 # Check to make sure the static flag actually works.
12914 #
12915 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12916 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12917 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12918 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   lt_prog_compiler_static_works_F77=no
12922    save_LDFLAGS="$LDFLAGS"
12923    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12924    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12925    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12926      # The linker can only warn and ignore the option if not recognized
12927      # So say no if there are warnings
12928      if test -s conftest.err; then
12929        # Append any errors to the config.log.
12930        cat conftest.err 1>&5
12931        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12932        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12933        if diff conftest.exp conftest.er2 >/dev/null; then
12934          lt_prog_compiler_static_works_F77=yes
12935        fi
12936      else
12937        lt_prog_compiler_static_works_F77=yes
12938      fi
12939    fi
12940    $rm conftest*
12941    LDFLAGS="$save_LDFLAGS"
12942
12943 fi
12944 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
12945 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
12946
12947 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
12948     :
12949 else
12950     lt_prog_compiler_static_F77=
12951 fi
12952
12953
12954 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12955 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12956 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12957   echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959   lt_cv_prog_compiler_c_o_F77=no
12960    $rm -r conftest 2>/dev/null
12961    mkdir conftest
12962    cd conftest
12963    mkdir out
12964    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12965
12966    lt_compiler_flag="-o out/conftest2.$ac_objext"
12967    # Insert the option either (1) after the last *FLAGS variable, or
12968    # (2) before a word containing "conftest.", or (3) at the end.
12969    # Note that $ac_compile itself does not contain backslashes and begins
12970    # with a dollar sign (not a hyphen), so the echo should work correctly.
12971    lt_compile=`echo "$ac_compile" | $SED \
12972    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12973    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12974    -e 's:$: $lt_compiler_flag:'`
12975    (eval echo "\"\$as_me:12975: $lt_compile\"" >&5)
12976    (eval "$lt_compile" 2>out/conftest.err)
12977    ac_status=$?
12978    cat out/conftest.err >&5
12979    echo "$as_me:12979: \$? = $ac_status" >&5
12980    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12981    then
12982      # The compiler can only warn and ignore the option if not recognized
12983      # So say no if there are warnings
12984      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12985      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12986      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12987        lt_cv_prog_compiler_c_o_F77=yes
12988      fi
12989    fi
12990    chmod u+w . 2>&5
12991    $rm conftest*
12992    # SGI C++ compiler will create directory out/ii_files/ for
12993    # template instantiation
12994    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12995    $rm out/* && rmdir out
12996    cd ..
12997    rmdir conftest
12998    $rm conftest*
12999
13000 fi
13001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13003
13004
13005 hard_links="nottested"
13006 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13007   # do not overwrite the value of need_locks provided by the user
13008   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13010   hard_links=yes
13011   $rm conftest*
13012   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13013   touch conftest.a
13014   ln conftest.a conftest.b 2>&5 || hard_links=no
13015   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13016   echo "$as_me:$LINENO: result: $hard_links" >&5
13017 echo "${ECHO_T}$hard_links" >&6
13018   if test "$hard_links" = no; then
13019     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13021     need_locks=warn
13022   fi
13023 else
13024   need_locks=no
13025 fi
13026
13027 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13029
13030   runpath_var=
13031   allow_undefined_flag_F77=
13032   enable_shared_with_static_runtimes_F77=no
13033   archive_cmds_F77=
13034   archive_expsym_cmds_F77=
13035   old_archive_From_new_cmds_F77=
13036   old_archive_from_expsyms_cmds_F77=
13037   export_dynamic_flag_spec_F77=
13038   whole_archive_flag_spec_F77=
13039   thread_safe_flag_spec_F77=
13040   hardcode_libdir_flag_spec_F77=
13041   hardcode_libdir_flag_spec_ld_F77=
13042   hardcode_libdir_separator_F77=
13043   hardcode_direct_F77=no
13044   hardcode_minus_L_F77=no
13045   hardcode_shlibpath_var_F77=unsupported
13046   link_all_deplibs_F77=unknown
13047   hardcode_automatic_F77=no
13048   module_cmds_F77=
13049   module_expsym_cmds_F77=
13050   always_export_symbols_F77=no
13051   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13052   # include_expsyms should be a list of space-separated symbols to be *always*
13053   # included in the symbol list
13054   include_expsyms_F77=
13055   # exclude_expsyms can be an extended regexp of symbols to exclude
13056   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13057   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13058   # as well as any symbol that contains `d'.
13059   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13060   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13061   # platforms (ab)use it in PIC code, but their linkers get confused if
13062   # the symbol is explicitly referenced.  Since portable code cannot
13063   # rely on this symbol name, it's probably fine to never include it in
13064   # preloaded symbol tables.
13065   extract_expsyms_cmds=
13066   # Just being paranoid about ensuring that cc_basename is set.
13067   for cc_temp in $compiler""; do
13068   case $cc_temp in
13069     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13070     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13071     \-*) ;;
13072     *) break;;
13073   esac
13074 done
13075 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13076
13077   case $host_os in
13078   cygwin* | mingw* | pw32*)
13079     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13080     # When not using gcc, we currently assume that we are using
13081     # Microsoft Visual C++.
13082     if test "$GCC" != yes; then
13083       with_gnu_ld=no
13084     fi
13085     ;;
13086   interix*)
13087     # we just hope/assume this is gcc and not c89 (= MSVC++)
13088     with_gnu_ld=yes
13089     ;;
13090   openbsd*)
13091     with_gnu_ld=no
13092     ;;
13093   esac
13094
13095   ld_shlibs_F77=yes
13096   if test "$with_gnu_ld" = yes; then
13097     # If archive_cmds runs LD, not CC, wlarc should be empty
13098     wlarc='${wl}'
13099
13100     # Set some defaults for GNU ld with shared library support. These
13101     # are reset later if shared libraries are not supported. Putting them
13102     # here allows them to be overridden if necessary.
13103     runpath_var=LD_RUN_PATH
13104     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13105     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13106     # ancient GNU ld didn't support --whole-archive et. al.
13107     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13108         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13109       else
13110         whole_archive_flag_spec_F77=
13111     fi
13112     supports_anon_versioning=no
13113     case `$LD -v 2>/dev/null` in
13114       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13115       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13116       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13117       *\ 2.11.*) ;; # other 2.11 versions
13118       *) supports_anon_versioning=yes ;;
13119     esac
13120
13121     # See if GNU ld supports shared libraries.
13122     case $host_os in
13123     aix3* | aix4* | aix5*)
13124       # On AIX/PPC, the GNU linker is very broken
13125       if test "$host_cpu" != ia64; then
13126         ld_shlibs_F77=no
13127         cat <<EOF 1>&2
13128
13129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13130 *** to be unable to reliably create shared libraries on AIX.
13131 *** Therefore, libtool is disabling shared libraries support.  If you
13132 *** really care for shared libraries, you may want to modify your PATH
13133 *** so that a non-GNU linker is found, and then restart.
13134
13135 EOF
13136       fi
13137       ;;
13138
13139     amigaos*)
13140       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)'
13141       hardcode_libdir_flag_spec_F77='-L$libdir'
13142       hardcode_minus_L_F77=yes
13143
13144       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13145       # that the semantics of dynamic libraries on AmigaOS, at least up
13146       # to version 4, is to share data among multiple programs linked
13147       # with the same dynamic library.  Since this doesn't match the
13148       # behavior of shared libraries on other platforms, we can't use
13149       # them.
13150       ld_shlibs_F77=no
13151       ;;
13152
13153     beos*)
13154       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13155         allow_undefined_flag_F77=unsupported
13156         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13157         # support --undefined.  This deserves some investigation.  FIXME
13158         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159       else
13160         ld_shlibs_F77=no
13161       fi
13162       ;;
13163
13164     cygwin* | mingw* | pw32*)
13165       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13166       # as there is no search path for DLLs.
13167       hardcode_libdir_flag_spec_F77='-L$libdir'
13168       allow_undefined_flag_F77=unsupported
13169       always_export_symbols_F77=no
13170       enable_shared_with_static_runtimes_F77=yes
13171       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13172
13173       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13174         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13175         # If the export-symbols file already is a .def file (1st line
13176         # is EXPORTS), use it as is; otherwise, prepend...
13177         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13178           cp $export_symbols $output_objdir/$soname.def;
13179         else
13180           echo EXPORTS > $output_objdir/$soname.def;
13181           cat $export_symbols >> $output_objdir/$soname.def;
13182         fi~
13183         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13184       else
13185         ld_shlibs_F77=no
13186       fi
13187       ;;
13188
13189     interix3*)
13190       hardcode_direct_F77=no
13191       hardcode_shlibpath_var_F77=no
13192       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13193       export_dynamic_flag_spec_F77='${wl}-E'
13194       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13195       # Instead, shared libraries are loaded at an image base (0x10000000 by
13196       # default) and relocated if they conflict, which is a slow very memory
13197       # consuming and fragmenting process.  To avoid this, we pick a random,
13198       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13199       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13200       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13201       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13202       ;;
13203
13204     linux*)
13205       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13206         tmp_addflag=
13207         case $cc_basename,$host_cpu in
13208         pgcc*)                          # Portland Group C compiler
13209           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13210           tmp_addflag=' $pic_flag'
13211           ;;
13212         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13213           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13214           tmp_addflag=' $pic_flag -Mnomain' ;;
13215         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13216           tmp_addflag=' -i_dynamic' ;;
13217         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13218           tmp_addflag=' -i_dynamic -nofor_main' ;;
13219         ifc* | ifort*)                  # Intel Fortran compiler
13220           tmp_addflag=' -nofor_main' ;;
13221         esac
13222         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223
13224         if test $supports_anon_versioning = yes; then
13225           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13226   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13227   $echo "local: *; };" >> $output_objdir/$libname.ver~
13228           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13229         fi
13230         link_all_deplibs_F77=no
13231       else
13232         ld_shlibs_F77=no
13233       fi
13234       ;;
13235
13236     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13237       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13238         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13239         wlarc=
13240       else
13241         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13242         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13243       fi
13244       ;;
13245
13246     solaris*)
13247       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13248         ld_shlibs_F77=no
13249         cat <<EOF 1>&2
13250
13251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13252 *** create shared libraries on Solaris systems.  Therefore, libtool
13253 *** is disabling shared libraries support.  We urge you to upgrade GNU
13254 *** binutils to release 2.9.1 or newer.  Another option is to modify
13255 *** your PATH or compiler configuration so that the native linker is
13256 *** used, and then restart.
13257
13258 EOF
13259       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13260         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13262       else
13263         ld_shlibs_F77=no
13264       fi
13265       ;;
13266
13267     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13268       case `$LD -v 2>&1` in
13269         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13270         ld_shlibs_F77=no
13271         cat <<_LT_EOF 1>&2
13272
13273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13274 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13275 *** is disabling shared libraries support.  We urge you to upgrade GNU
13276 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13277 *** your PATH or compiler configuration so that the native linker is
13278 *** used, and then restart.
13279
13280 _LT_EOF
13281         ;;
13282         *)
13283           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13284             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13285             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13286             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13287           else
13288             ld_shlibs_F77=no
13289           fi
13290         ;;
13291       esac
13292       ;;
13293
13294     sunos4*)
13295       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13296       wlarc=
13297       hardcode_direct_F77=yes
13298       hardcode_shlibpath_var_F77=no
13299       ;;
13300
13301     *)
13302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13303         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13304         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13305       else
13306         ld_shlibs_F77=no
13307       fi
13308       ;;
13309     esac
13310
13311     if test "$ld_shlibs_F77" = no; then
13312       runpath_var=
13313       hardcode_libdir_flag_spec_F77=
13314       export_dynamic_flag_spec_F77=
13315       whole_archive_flag_spec_F77=
13316     fi
13317   else
13318     # PORTME fill in a description of your system's linker (not GNU ld)
13319     case $host_os in
13320     aix3*)
13321       allow_undefined_flag_F77=unsupported
13322       always_export_symbols_F77=yes
13323       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'
13324       # Note: this linker hardcodes the directories in LIBPATH if there
13325       # are no directories specified by -L.
13326       hardcode_minus_L_F77=yes
13327       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13328         # Neither direct hardcoding nor static linking is supported with a
13329         # broken collect2.
13330         hardcode_direct_F77=unsupported
13331       fi
13332       ;;
13333
13334     aix4* | aix5*)
13335       if test "$host_cpu" = ia64; then
13336         # On IA64, the linker does run time linking by default, so we don't
13337         # have to do anything special.
13338         aix_use_runtimelinking=no
13339         exp_sym_flag='-Bexport'
13340         no_entry_flag=""
13341       else
13342         # If we're using GNU nm, then we don't want the "-C" option.
13343         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13344         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13345           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'
13346         else
13347           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'
13348         fi
13349         aix_use_runtimelinking=no
13350
13351         # Test if we are trying to use run time linking or normal
13352         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13353         # need to do runtime linking.
13354         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13355           for ld_flag in $LDFLAGS; do
13356           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13357             aix_use_runtimelinking=yes
13358             break
13359           fi
13360           done
13361           ;;
13362         esac
13363
13364         exp_sym_flag='-bexport'
13365         no_entry_flag='-bnoentry'
13366       fi
13367
13368       # When large executables or shared objects are built, AIX ld can
13369       # have problems creating the table of contents.  If linking a library
13370       # or program results in "error TOC overflow" add -mminimal-toc to
13371       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13372       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13373
13374       archive_cmds_F77=''
13375       hardcode_direct_F77=yes
13376       hardcode_libdir_separator_F77=':'
13377       link_all_deplibs_F77=yes
13378
13379       if test "$GCC" = yes; then
13380         case $host_os in aix4.[012]|aix4.[012].*)
13381         # We only want to do this on AIX 4.2 and lower, the check
13382         # below for broken collect2 doesn't work under 4.3+
13383           collect2name=`${CC} -print-prog-name=collect2`
13384           if test -f "$collect2name" && \
13385            strings "$collect2name" | grep resolve_lib_name >/dev/null
13386           then
13387           # We have reworked collect2
13388           hardcode_direct_F77=yes
13389           else
13390           # We have old collect2
13391           hardcode_direct_F77=unsupported
13392           # It fails to find uninstalled libraries when the uninstalled
13393           # path is not listed in the libpath.  Setting hardcode_minus_L
13394           # to unsupported forces relinking
13395           hardcode_minus_L_F77=yes
13396           hardcode_libdir_flag_spec_F77='-L$libdir'
13397           hardcode_libdir_separator_F77=
13398           fi
13399           ;;
13400         esac
13401         shared_flag='-shared'
13402         if test "$aix_use_runtimelinking" = yes; then
13403           shared_flag="$shared_flag "'${wl}-G'
13404         fi
13405       else
13406         # not using gcc
13407         if test "$host_cpu" = ia64; then
13408         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13409         # chokes on -Wl,-G. The following line is correct:
13410           shared_flag='-G'
13411         else
13412           if test "$aix_use_runtimelinking" = yes; then
13413             shared_flag='${wl}-G'
13414           else
13415             shared_flag='${wl}-bM:SRE'
13416           fi
13417         fi
13418       fi
13419
13420       # It seems that -bexpall does not export symbols beginning with
13421       # underscore (_), so it is better to generate a list of symbols to export.
13422       always_export_symbols_F77=yes
13423       if test "$aix_use_runtimelinking" = yes; then
13424         # Warning - without using the other runtime loading flags (-brtl),
13425         # -berok will link without error, but may produce a broken library.
13426         allow_undefined_flag_F77='-berok'
13427        # Determine the default libpath from the value encoded in an empty executable.
13428        cat >conftest.$ac_ext <<_ACEOF
13429       program main
13430
13431       end
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435   (eval $ac_link) 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest$ac_exeext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454
13455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13456 }'`
13457 # Check for a 64-bit object if we didn't find anything.
13458 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; }
13459 }'`; fi
13460 else
13461   echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 fi
13465 rm -f conftest.err conftest.$ac_objext \
13466       conftest$ac_exeext conftest.$ac_ext
13467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13468
13469        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13470         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13471        else
13472         if test "$host_cpu" = ia64; then
13473           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13474           allow_undefined_flag_F77="-z nodefs"
13475           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13476         else
13477          # Determine the default libpath from the value encoded in an empty executable.
13478          cat >conftest.$ac_ext <<_ACEOF
13479       program main
13480
13481       end
13482 _ACEOF
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485   (eval $ac_link) 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; } &&
13498          { ac_try='test -s conftest$ac_exeext'
13499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500   (eval $ac_try) 2>&5
13501   ac_status=$?
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); }; }; then
13504
13505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13506 }'`
13507 # Check for a 64-bit object if we didn't find anything.
13508 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; }
13509 }'`; fi
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 fi
13515 rm -f conftest.err conftest.$ac_objext \
13516       conftest$ac_exeext conftest.$ac_ext
13517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13518
13519          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13520           # Warning - without using the other run time loading flags,
13521           # -berok will link without error, but may produce a broken library.
13522           no_undefined_flag_F77=' ${wl}-bernotok'
13523           allow_undefined_flag_F77=' ${wl}-berok'
13524           # Exported symbols can be pulled into shared objects from archives
13525           whole_archive_flag_spec_F77='$convenience'
13526           archive_cmds_need_lc_F77=yes
13527           # This is similar to how AIX traditionally builds its shared libraries.
13528           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13529         fi
13530       fi
13531       ;;
13532
13533     amigaos*)
13534       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)'
13535       hardcode_libdir_flag_spec_F77='-L$libdir'
13536       hardcode_minus_L_F77=yes
13537       # see comment about different semantics on the GNU ld section
13538       ld_shlibs_F77=no
13539       ;;
13540
13541     bsdi[45]*)
13542       export_dynamic_flag_spec_F77=-rdynamic
13543       ;;
13544
13545     cygwin* | mingw* | pw32*)
13546       # When not using gcc, we currently assume that we are using
13547       # Microsoft Visual C++.
13548       # hardcode_libdir_flag_spec is actually meaningless, as there is
13549       # no search path for DLLs.
13550       hardcode_libdir_flag_spec_F77=' '
13551       allow_undefined_flag_F77=unsupported
13552       # Tell ltmain to make .lib files, not .a files.
13553       libext=lib
13554       # Tell ltmain to make .dll files, not .so files.
13555       shrext_cmds=".dll"
13556       # FIXME: Setting linknames here is a bad hack.
13557       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13558       # The linker will automatically build a .lib file if we build a DLL.
13559       old_archive_From_new_cmds_F77='true'
13560       # FIXME: Should let the user specify the lib program.
13561       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13562       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13563       enable_shared_with_static_runtimes_F77=yes
13564       ;;
13565
13566     darwin* | rhapsody*)
13567       case $host_os in
13568         rhapsody* | darwin1.[012])
13569          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13570          ;;
13571        *) # Darwin 1.3 on
13572          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13573            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13574          else
13575            case ${MACOSX_DEPLOYMENT_TARGET} in
13576              10.[012])
13577                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13578                ;;
13579              10.*)
13580                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13581                ;;
13582            esac
13583          fi
13584          ;;
13585       esac
13586       archive_cmds_need_lc_F77=no
13587       hardcode_direct_F77=no
13588       hardcode_automatic_F77=yes
13589       hardcode_shlibpath_var_F77=unsupported
13590       whole_archive_flag_spec_F77=''
13591       link_all_deplibs_F77=yes
13592     if test "$GCC" = yes ; then
13593         output_verbose_link_cmd='echo'
13594         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13595       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13596       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13597       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13598       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}'
13599     else
13600       case $cc_basename in
13601         xlc*)
13602          output_verbose_link_cmd='echo'
13603          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13604          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13605           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13606          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13607           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}'
13608           ;;
13609        *)
13610          ld_shlibs_F77=no
13611           ;;
13612       esac
13613     fi
13614       ;;
13615
13616     dgux*)
13617       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618       hardcode_libdir_flag_spec_F77='-L$libdir'
13619       hardcode_shlibpath_var_F77=no
13620       ;;
13621
13622     freebsd1*)
13623       ld_shlibs_F77=no
13624       ;;
13625
13626     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13627     # support.  Future versions do this automatically, but an explicit c++rt0.o
13628     # does not break anything, and helps significantly (at the cost of a little
13629     # extra space).
13630     freebsd2.2*)
13631       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13632       hardcode_libdir_flag_spec_F77='-R$libdir'
13633       hardcode_direct_F77=yes
13634       hardcode_shlibpath_var_F77=no
13635       ;;
13636
13637     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13638     freebsd2*)
13639       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13640       hardcode_direct_F77=yes
13641       hardcode_minus_L_F77=yes
13642       hardcode_shlibpath_var_F77=no
13643       ;;
13644
13645     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13646     freebsd* | dragonfly*)
13647       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13648       hardcode_libdir_flag_spec_F77='-R$libdir'
13649       hardcode_direct_F77=yes
13650       hardcode_shlibpath_var_F77=no
13651       ;;
13652
13653     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13654     kfreebsd*-gnu)
13655       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13656       hardcode_libdir_flag_spec_F77='-R$libdir'
13657       hardcode_direct_F77=yes
13658       hardcode_shlibpath_var_F77=no
13659       link_all_deplibs_F77=no
13660       ;;
13661
13662     hpux9*)
13663       if test "$GCC" = yes; then
13664         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'
13665       else
13666         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'
13667       fi
13668       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13669       hardcode_libdir_separator_F77=:
13670       hardcode_direct_F77=yes
13671
13672       # hardcode_minus_L: Not really in the search PATH,
13673       # but as the default location of the library.
13674       hardcode_minus_L_F77=yes
13675       export_dynamic_flag_spec_F77='${wl}-E'
13676       ;;
13677
13678     hpux10*)
13679       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13680         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13681       else
13682         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13683       fi
13684       if test "$with_gnu_ld" = no; then
13685         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13686         hardcode_libdir_separator_F77=:
13687
13688         hardcode_direct_F77=yes
13689         export_dynamic_flag_spec_F77='${wl}-E'
13690
13691         # hardcode_minus_L: Not really in the search PATH,
13692         # but as the default location of the library.
13693         hardcode_minus_L_F77=yes
13694       fi
13695       ;;
13696
13697     hpux11*)
13698       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13699         case $host_cpu in
13700         hppa*64*)
13701           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13702           ;;
13703         ia64*)
13704           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13705           ;;
13706         *)
13707           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13708           ;;
13709         esac
13710       else
13711         case $host_cpu in
13712         hppa*64*)
13713           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13714           ;;
13715         ia64*)
13716           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13717           ;;
13718         *)
13719           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13720           ;;
13721         esac
13722       fi
13723       if test "$with_gnu_ld" = no; then
13724         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13725         hardcode_libdir_separator_F77=:
13726
13727         case $host_cpu in
13728         hppa*64*|ia64*)
13729           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13730           hardcode_direct_F77=no
13731           hardcode_shlibpath_var_F77=no
13732           ;;
13733         *)
13734           hardcode_direct_F77=yes
13735           export_dynamic_flag_spec_F77='${wl}-E'
13736
13737           # hardcode_minus_L: Not really in the search PATH,
13738           # but as the default location of the library.
13739           hardcode_minus_L_F77=yes
13740           ;;
13741         esac
13742       fi
13743       ;;
13744
13745     irix5* | irix6* | nonstopux*)
13746       if test "$GCC" = yes; then
13747         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'
13748       else
13749         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'
13750         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13751       fi
13752       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13753       hardcode_libdir_separator_F77=:
13754       link_all_deplibs_F77=yes
13755       ;;
13756
13757     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13758       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13759         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13760       else
13761         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13762       fi
13763       hardcode_libdir_flag_spec_F77='-R$libdir'
13764       hardcode_direct_F77=yes
13765       hardcode_shlibpath_var_F77=no
13766       ;;
13767
13768     newsos6)
13769       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13770       hardcode_direct_F77=yes
13771       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13772       hardcode_libdir_separator_F77=:
13773       hardcode_shlibpath_var_F77=no
13774       ;;
13775
13776     openbsd*)
13777       hardcode_direct_F77=yes
13778       hardcode_shlibpath_var_F77=no
13779       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13780         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13781         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13782         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13783         export_dynamic_flag_spec_F77='${wl}-E'
13784       else
13785        case $host_os in
13786          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13787            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13788            hardcode_libdir_flag_spec_F77='-R$libdir'
13789            ;;
13790          *)
13791            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13792            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13793            ;;
13794        esac
13795       fi
13796       ;;
13797
13798     os2*)
13799       hardcode_libdir_flag_spec_F77='-L$libdir'
13800       hardcode_minus_L_F77=yes
13801       allow_undefined_flag_F77=unsupported
13802       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'
13803       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13804       ;;
13805
13806     osf3*)
13807       if test "$GCC" = yes; then
13808         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13809         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'
13810       else
13811         allow_undefined_flag_F77=' -expect_unresolved \*'
13812         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'
13813       fi
13814       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13815       hardcode_libdir_separator_F77=:
13816       ;;
13817
13818     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13819       if test "$GCC" = yes; then
13820         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13821         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'
13822         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13823       else
13824         allow_undefined_flag_F77=' -expect_unresolved \*'
13825         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'
13826         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~
13827         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13828
13829         # Both c and cxx compiler support -rpath directly
13830         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13831       fi
13832       hardcode_libdir_separator_F77=:
13833       ;;
13834
13835     solaris*)
13836       no_undefined_flag_F77=' -z text'
13837       if test "$GCC" = yes; then
13838         wlarc='${wl}'
13839         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13840         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13841           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13842       else
13843         wlarc=''
13844         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13845         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13846         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13847       fi
13848       hardcode_libdir_flag_spec_F77='-R$libdir'
13849       hardcode_shlibpath_var_F77=no
13850       case $host_os in
13851       solaris2.[0-5] | solaris2.[0-5].*) ;;
13852       *)
13853         # The compiler driver will combine linker options so we
13854         # cannot just pass the convience library names through
13855         # without $wl, iff we do not link with $LD.
13856         # Luckily, gcc supports the same syntax we need for Sun Studio.
13857         # Supported since Solaris 2.6 (maybe 2.5.1?)
13858         case $wlarc in
13859         '')
13860           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13861         *)
13862           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13863         esac ;;
13864       esac
13865       link_all_deplibs_F77=yes
13866       ;;
13867
13868     sunos4*)
13869       if test "x$host_vendor" = xsequent; then
13870         # Use $CC to link under sequent, because it throws in some extra .o
13871         # files that make .init and .fini sections work.
13872         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13873       else
13874         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13875       fi
13876       hardcode_libdir_flag_spec_F77='-L$libdir'
13877       hardcode_direct_F77=yes
13878       hardcode_minus_L_F77=yes
13879       hardcode_shlibpath_var_F77=no
13880       ;;
13881
13882     sysv4)
13883       case $host_vendor in
13884         sni)
13885           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886           hardcode_direct_F77=yes # is this really true???
13887         ;;
13888         siemens)
13889           ## LD is ld it makes a PLAMLIB
13890           ## CC just makes a GrossModule.
13891           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13892           reload_cmds_F77='$CC -r -o $output$reload_objs'
13893           hardcode_direct_F77=no
13894         ;;
13895         motorola)
13896           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13897           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13898         ;;
13899       esac
13900       runpath_var='LD_RUN_PATH'
13901       hardcode_shlibpath_var_F77=no
13902       ;;
13903
13904     sysv4.3*)
13905       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13906       hardcode_shlibpath_var_F77=no
13907       export_dynamic_flag_spec_F77='-Bexport'
13908       ;;
13909
13910     sysv4*MP*)
13911       if test -d /usr/nec; then
13912         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13913         hardcode_shlibpath_var_F77=no
13914         runpath_var=LD_RUN_PATH
13915         hardcode_runpath_var=yes
13916         ld_shlibs_F77=yes
13917       fi
13918       ;;
13919
13920     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13921       no_undefined_flag_F77='${wl}-z,text'
13922       archive_cmds_need_lc_F77=no
13923       hardcode_shlibpath_var_F77=no
13924       runpath_var='LD_RUN_PATH'
13925
13926       if test "$GCC" = yes; then
13927         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13929       else
13930         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13932       fi
13933       ;;
13934
13935     sysv5* | sco3.2v5* | sco5v6*)
13936       # Note: We can NOT use -z defs as we might desire, because we do not
13937       # link with -lc, and that would cause any symbols used from libc to
13938       # always be unresolved, which means just about no library would
13939       # ever link correctly.  If we're not using GNU ld we use -z text
13940       # though, which does catch some bad symbols but isn't as heavy-handed
13941       # as -z defs.
13942       no_undefined_flag_F77='${wl}-z,text'
13943       allow_undefined_flag_F77='${wl}-z,nodefs'
13944       archive_cmds_need_lc_F77=no
13945       hardcode_shlibpath_var_F77=no
13946       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13947       hardcode_libdir_separator_F77=':'
13948       link_all_deplibs_F77=yes
13949       export_dynamic_flag_spec_F77='${wl}-Bexport'
13950       runpath_var='LD_RUN_PATH'
13951
13952       if test "$GCC" = yes; then
13953         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13954         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13955       else
13956         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13957         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13958       fi
13959       ;;
13960
13961     uts4*)
13962       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13963       hardcode_libdir_flag_spec_F77='-L$libdir'
13964       hardcode_shlibpath_var_F77=no
13965       ;;
13966
13967     *)
13968       ld_shlibs_F77=no
13969       ;;
13970     esac
13971   fi
13972
13973 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13974 echo "${ECHO_T}$ld_shlibs_F77" >&6
13975 test "$ld_shlibs_F77" = no && can_build_shared=no
13976
13977 #
13978 # Do we need to explicitly link libc?
13979 #
13980 case "x$archive_cmds_need_lc_F77" in
13981 x|xyes)
13982   # Assume -lc should be added
13983   archive_cmds_need_lc_F77=yes
13984
13985   if test "$enable_shared" = yes && test "$GCC" = yes; then
13986     case $archive_cmds_F77 in
13987     *'~'*)
13988       # FIXME: we may have to deal with multi-command sequences.
13989       ;;
13990     '$CC '*)
13991       # Test whether the compiler implicitly links with -lc since on some
13992       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13993       # to ld, don't add -lc before -lgcc.
13994       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13995 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13996       $rm conftest*
13997       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13998
13999       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000   (eval $ac_compile) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } 2>conftest.err; then
14004         soname=conftest
14005         lib=conftest
14006         libobjs=conftest.$ac_objext
14007         deplibs=
14008         wl=$lt_prog_compiler_wl_F77
14009         pic_flag=$lt_prog_compiler_pic_F77
14010         compiler_flags=-v
14011         linker_flags=-v
14012         verstring=
14013         output_objdir=.
14014         libname=conftest
14015         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14016         allow_undefined_flag_F77=
14017         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14018   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }
14022         then
14023           archive_cmds_need_lc_F77=no
14024         else
14025           archive_cmds_need_lc_F77=yes
14026         fi
14027         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14028       else
14029         cat conftest.err 1>&5
14030       fi
14031       $rm conftest*
14032       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14033 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14034       ;;
14035     esac
14036   fi
14037   ;;
14038 esac
14039
14040 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14041 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14042 library_names_spec=
14043 libname_spec='lib$name'
14044 soname_spec=
14045 shrext_cmds=".so"
14046 postinstall_cmds=
14047 postuninstall_cmds=
14048 finish_cmds=
14049 finish_eval=
14050 shlibpath_var=
14051 shlibpath_overrides_runpath=unknown
14052 version_type=none
14053 dynamic_linker="$host_os ld.so"
14054 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14055 if test "$GCC" = yes; then
14056   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14057   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14058     # if the path contains ";" then we assume it to be the separator
14059     # otherwise default to the standard path separator (i.e. ":") - it is
14060     # assumed that no part of a normal pathname contains ";" but that should
14061     # okay in the real world where ";" in dirpaths is itself problematic.
14062     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14063   else
14064     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14065   fi
14066 else
14067   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14068 fi
14069 need_lib_prefix=unknown
14070 hardcode_into_libs=no
14071
14072 # when you set need_version to no, make sure it does not cause -set_version
14073 # flags to be left without arguments
14074 need_version=unknown
14075
14076 case $host_os in
14077 aix3*)
14078   version_type=linux
14079   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14080   shlibpath_var=LIBPATH
14081
14082   # AIX 3 has no versioning support, so we append a major version to the name.
14083   soname_spec='${libname}${release}${shared_ext}$major'
14084   ;;
14085
14086 aix4* | aix5*)
14087   version_type=linux
14088   need_lib_prefix=no
14089   need_version=no
14090   hardcode_into_libs=yes
14091   if test "$host_cpu" = ia64; then
14092     # AIX 5 supports IA64
14093     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14094     shlibpath_var=LD_LIBRARY_PATH
14095   else
14096     # With GCC up to 2.95.x, collect2 would create an import file
14097     # for dependence libraries.  The import file would start with
14098     # the line `#! .'.  This would cause the generated library to
14099     # depend on `.', always an invalid library.  This was fixed in
14100     # development snapshots of GCC prior to 3.0.
14101     case $host_os in
14102       aix4 | aix4.[01] | aix4.[01].*)
14103       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14104            echo ' yes '
14105            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14106         :
14107       else
14108         can_build_shared=no
14109       fi
14110       ;;
14111     esac
14112     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14113     # soname into executable. Probably we can add versioning support to
14114     # collect2, so additional links can be useful in future.
14115     if test "$aix_use_runtimelinking" = yes; then
14116       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14117       # instead of lib<name>.a to let people know that these are not
14118       # typical AIX shared libraries.
14119       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120     else
14121       # We preserve .a as extension for shared libraries through AIX4.2
14122       # and later when we are not doing run time linking.
14123       library_names_spec='${libname}${release}.a $libname.a'
14124       soname_spec='${libname}${release}${shared_ext}$major'
14125     fi
14126     shlibpath_var=LIBPATH
14127   fi
14128   ;;
14129
14130 amigaos*)
14131   library_names_spec='$libname.ixlibrary $libname.a'
14132   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14133   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'
14134   ;;
14135
14136 beos*)
14137   library_names_spec='${libname}${shared_ext}'
14138   dynamic_linker="$host_os ld.so"
14139   shlibpath_var=LIBRARY_PATH
14140   ;;
14141
14142 bsdi[45]*)
14143   version_type=linux
14144   need_version=no
14145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146   soname_spec='${libname}${release}${shared_ext}$major'
14147   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14148   shlibpath_var=LD_LIBRARY_PATH
14149   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14150   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14151   # the default ld.so.conf also contains /usr/contrib/lib and
14152   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14153   # libtool to hard-code these into programs
14154   ;;
14155
14156 cygwin* | mingw* | pw32*)
14157   version_type=windows
14158   shrext_cmds=".dll"
14159   need_version=no
14160   need_lib_prefix=no
14161
14162   case $GCC,$host_os in
14163   yes,cygwin* | yes,mingw* | yes,pw32*)
14164     library_names_spec='$libname.dll.a'
14165     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14166     postinstall_cmds='base_file=`basename \${file}`~
14167       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14168       dldir=$destdir/`dirname \$dlpath`~
14169       test -d \$dldir || mkdir -p \$dldir~
14170       $install_prog $dir/$dlname \$dldir/$dlname~
14171       chmod a+x \$dldir/$dlname'
14172     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14173       dlpath=$dir/\$dldll~
14174        $rm \$dlpath'
14175     shlibpath_overrides_runpath=yes
14176
14177     case $host_os in
14178     cygwin*)
14179       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14180       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14182       ;;
14183     mingw*)
14184       # MinGW DLLs use traditional 'lib' prefix
14185       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14186       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14187       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14188         # It is most probably a Windows format PATH printed by
14189         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14190         # path with ; separators, and with drive letters. We can handle the
14191         # drive letters (cygwin fileutils understands them), so leave them,
14192         # especially as we might pass files found there to a mingw objdump,
14193         # which wouldn't understand a cygwinified path. Ahh.
14194         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14195       else
14196         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14197       fi
14198       ;;
14199     pw32*)
14200       # pw32 DLLs use 'pw' prefix rather than 'lib'
14201       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14202       ;;
14203     esac
14204     ;;
14205
14206   *)
14207     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14208     ;;
14209   esac
14210   dynamic_linker='Win32 ld.exe'
14211   # FIXME: first we should search . and the directory the executable is in
14212   shlibpath_var=PATH
14213   ;;
14214
14215 darwin* | rhapsody*)
14216   dynamic_linker="$host_os dyld"
14217   version_type=darwin
14218   need_lib_prefix=no
14219   need_version=no
14220   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14221   soname_spec='${libname}${release}${major}$shared_ext'
14222   shlibpath_overrides_runpath=yes
14223   shlibpath_var=DYLD_LIBRARY_PATH
14224   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14225   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14226   if test "$GCC" = yes; then
14227     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"`
14228   else
14229     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14230   fi
14231   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14232   ;;
14233
14234 dgux*)
14235   version_type=linux
14236   need_lib_prefix=no
14237   need_version=no
14238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14239   soname_spec='${libname}${release}${shared_ext}$major'
14240   shlibpath_var=LD_LIBRARY_PATH
14241   ;;
14242
14243 freebsd1*)
14244   dynamic_linker=no
14245   ;;
14246
14247 kfreebsd*-gnu)
14248   version_type=linux
14249   need_lib_prefix=no
14250   need_version=no
14251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14252   soname_spec='${libname}${release}${shared_ext}$major'
14253   shlibpath_var=LD_LIBRARY_PATH
14254   shlibpath_overrides_runpath=no
14255   hardcode_into_libs=yes
14256   dynamic_linker='GNU ld.so'
14257   ;;
14258
14259 freebsd* | dragonfly*)
14260   # DragonFly does not have aout.  When/if they implement a new
14261   # versioning mechanism, adjust this.
14262   if test -x /usr/bin/objformat; then
14263     objformat=`/usr/bin/objformat`
14264   else
14265     case $host_os in
14266     freebsd[123]*) objformat=aout ;;
14267     *) objformat=elf ;;
14268     esac
14269   fi
14270   version_type=freebsd-$objformat
14271   case $version_type in
14272     freebsd-elf*)
14273       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14274       need_version=no
14275       need_lib_prefix=no
14276       ;;
14277     freebsd-*)
14278       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14279       need_version=yes
14280       ;;
14281   esac
14282   shlibpath_var=LD_LIBRARY_PATH
14283   case $host_os in
14284   freebsd2*)
14285     shlibpath_overrides_runpath=yes
14286     ;;
14287   freebsd3.[01]* | freebsdelf3.[01]*)
14288     shlibpath_overrides_runpath=yes
14289     hardcode_into_libs=yes
14290     ;;
14291   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14292   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14293     shlibpath_overrides_runpath=no
14294     hardcode_into_libs=yes
14295     ;;
14296   freebsd*) # from 4.6 on
14297     shlibpath_overrides_runpath=yes
14298     hardcode_into_libs=yes
14299     ;;
14300   esac
14301   ;;
14302
14303 gnu*)
14304   version_type=linux
14305   need_lib_prefix=no
14306   need_version=no
14307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14308   soname_spec='${libname}${release}${shared_ext}$major'
14309   shlibpath_var=LD_LIBRARY_PATH
14310   hardcode_into_libs=yes
14311   ;;
14312
14313 hpux9* | hpux10* | hpux11*)
14314   # Give a soname corresponding to the major version so that dld.sl refuses to
14315   # link against other versions.
14316   version_type=sunos
14317   need_lib_prefix=no
14318   need_version=no
14319   case $host_cpu in
14320   ia64*)
14321     shrext_cmds='.so'
14322     hardcode_into_libs=yes
14323     dynamic_linker="$host_os dld.so"
14324     shlibpath_var=LD_LIBRARY_PATH
14325     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327     soname_spec='${libname}${release}${shared_ext}$major'
14328     if test "X$HPUX_IA64_MODE" = X32; then
14329       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14330     else
14331       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14332     fi
14333     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14334     ;;
14335    hppa*64*)
14336      shrext_cmds='.sl'
14337      hardcode_into_libs=yes
14338      dynamic_linker="$host_os dld.sl"
14339      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14340      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14341      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342      soname_spec='${libname}${release}${shared_ext}$major'
14343      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14344      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14345      ;;
14346    *)
14347     shrext_cmds='.sl'
14348     dynamic_linker="$host_os dld.sl"
14349     shlibpath_var=SHLIB_PATH
14350     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14352     soname_spec='${libname}${release}${shared_ext}$major'
14353     ;;
14354   esac
14355   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14356   postinstall_cmds='chmod 555 $lib'
14357   ;;
14358
14359 interix3*)
14360   version_type=linux
14361   need_lib_prefix=no
14362   need_version=no
14363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14364   soname_spec='${libname}${release}${shared_ext}$major'
14365   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14366   shlibpath_var=LD_LIBRARY_PATH
14367   shlibpath_overrides_runpath=no
14368   hardcode_into_libs=yes
14369   ;;
14370
14371 irix5* | irix6* | nonstopux*)
14372   case $host_os in
14373     nonstopux*) version_type=nonstopux ;;
14374     *)
14375         if test "$lt_cv_prog_gnu_ld" = yes; then
14376                 version_type=linux
14377         else
14378                 version_type=irix
14379         fi ;;
14380   esac
14381   need_lib_prefix=no
14382   need_version=no
14383   soname_spec='${libname}${release}${shared_ext}$major'
14384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14385   case $host_os in
14386   irix5* | nonstopux*)
14387     libsuff= shlibsuff=
14388     ;;
14389   *)
14390     case $LD in # libtool.m4 will add one of these switches to LD
14391     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14392       libsuff= shlibsuff= libmagic=32-bit;;
14393     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14394       libsuff=32 shlibsuff=N32 libmagic=N32;;
14395     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14396       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14397     *) libsuff= shlibsuff= libmagic=never-match;;
14398     esac
14399     ;;
14400   esac
14401   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14402   shlibpath_overrides_runpath=no
14403   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14404   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14405   hardcode_into_libs=yes
14406   ;;
14407
14408 # No shared lib support for Linux oldld, aout, or coff.
14409 linux*oldld* | linux*aout* | linux*coff*)
14410   dynamic_linker=no
14411   ;;
14412
14413 # This must be Linux ELF.
14414 linux*)
14415   version_type=linux
14416   need_lib_prefix=no
14417   need_version=no
14418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419   soname_spec='${libname}${release}${shared_ext}$major'
14420   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14421   shlibpath_var=LD_LIBRARY_PATH
14422   shlibpath_overrides_runpath=no
14423   # This implies no fast_install, which is unacceptable.
14424   # Some rework will be needed to allow for fast_install
14425   # before this can be enabled.
14426   hardcode_into_libs=yes
14427
14428   # Append ld.so.conf contents to the search path
14429   if test -f /etc/ld.so.conf; then
14430     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14431     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14432   fi
14433
14434   # We used to test for /lib/ld.so.1 and disable shared libraries on
14435   # powerpc, because MkLinux only supported shared libraries with the
14436   # GNU dynamic linker.  Since this was broken with cross compilers,
14437   # most powerpc-linux boxes support dynamic linking these days and
14438   # people can always --disable-shared, the test was removed, and we
14439   # assume the GNU/Linux dynamic linker is in use.
14440   dynamic_linker='GNU/Linux ld.so'
14441   ;;
14442
14443 netbsdelf*-gnu)
14444   version_type=linux
14445   need_lib_prefix=no
14446   need_version=no
14447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14448   soname_spec='${libname}${release}${shared_ext}$major'
14449   shlibpath_var=LD_LIBRARY_PATH
14450   shlibpath_overrides_runpath=no
14451   hardcode_into_libs=yes
14452   dynamic_linker='NetBSD ld.elf_so'
14453   ;;
14454
14455 knetbsd*-gnu)
14456   version_type=linux
14457   need_lib_prefix=no
14458   need_version=no
14459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14460   soname_spec='${libname}${release}${shared_ext}$major'
14461   shlibpath_var=LD_LIBRARY_PATH
14462   shlibpath_overrides_runpath=no
14463   hardcode_into_libs=yes
14464   dynamic_linker='GNU ld.so'
14465   ;;
14466
14467 netbsd*)
14468   version_type=sunos
14469   need_lib_prefix=no
14470   need_version=no
14471   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14473     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14474     dynamic_linker='NetBSD (a.out) ld.so'
14475   else
14476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14477     soname_spec='${libname}${release}${shared_ext}$major'
14478     dynamic_linker='NetBSD ld.elf_so'
14479   fi
14480   shlibpath_var=LD_LIBRARY_PATH
14481   shlibpath_overrides_runpath=yes
14482   hardcode_into_libs=yes
14483   ;;
14484
14485 newsos6)
14486   version_type=linux
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488   shlibpath_var=LD_LIBRARY_PATH
14489   shlibpath_overrides_runpath=yes
14490   ;;
14491
14492 nto-qnx*)
14493   version_type=linux
14494   need_lib_prefix=no
14495   need_version=no
14496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497   soname_spec='${libname}${release}${shared_ext}$major'
14498   shlibpath_var=LD_LIBRARY_PATH
14499   shlibpath_overrides_runpath=yes
14500   ;;
14501
14502 openbsd*)
14503   version_type=sunos
14504   sys_lib_dlsearch_path_spec="/usr/lib"
14505   need_lib_prefix=no
14506   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14507   case $host_os in
14508     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14509     *)                         need_version=no  ;;
14510   esac
14511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14512   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14515     case $host_os in
14516       openbsd2.[89] | openbsd2.[89].*)
14517         shlibpath_overrides_runpath=no
14518         ;;
14519       *)
14520         shlibpath_overrides_runpath=yes
14521         ;;
14522       esac
14523   else
14524     shlibpath_overrides_runpath=yes
14525   fi
14526   ;;
14527
14528 os2*)
14529   libname_spec='$name'
14530   shrext_cmds=".dll"
14531   need_lib_prefix=no
14532   library_names_spec='$libname${shared_ext} $libname.a'
14533   dynamic_linker='OS/2 ld.exe'
14534   shlibpath_var=LIBPATH
14535   ;;
14536
14537 osf3* | osf4* | osf5*)
14538   version_type=osf
14539   need_lib_prefix=no
14540   need_version=no
14541   soname_spec='${libname}${release}${shared_ext}$major'
14542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543   shlibpath_var=LD_LIBRARY_PATH
14544   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14545   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14546   ;;
14547
14548 solaris*)
14549   version_type=linux
14550   need_lib_prefix=no
14551   need_version=no
14552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553   soname_spec='${libname}${release}${shared_ext}$major'
14554   shlibpath_var=LD_LIBRARY_PATH
14555   shlibpath_overrides_runpath=yes
14556   hardcode_into_libs=yes
14557   # ldd complains unless libraries are executable
14558   postinstall_cmds='chmod +x $lib'
14559   ;;
14560
14561 sunos4*)
14562   version_type=sunos
14563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14564   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14565   shlibpath_var=LD_LIBRARY_PATH
14566   shlibpath_overrides_runpath=yes
14567   if test "$with_gnu_ld" = yes; then
14568     need_lib_prefix=no
14569   fi
14570   need_version=yes
14571   ;;
14572
14573 sysv4 | sysv4.3*)
14574   version_type=linux
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576   soname_spec='${libname}${release}${shared_ext}$major'
14577   shlibpath_var=LD_LIBRARY_PATH
14578   case $host_vendor in
14579     sni)
14580       shlibpath_overrides_runpath=no
14581       need_lib_prefix=no
14582       export_dynamic_flag_spec='${wl}-Blargedynsym'
14583       runpath_var=LD_RUN_PATH
14584       ;;
14585     siemens)
14586       need_lib_prefix=no
14587       ;;
14588     motorola)
14589       need_lib_prefix=no
14590       need_version=no
14591       shlibpath_overrides_runpath=no
14592       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14593       ;;
14594   esac
14595   ;;
14596
14597 sysv4*MP*)
14598   if test -d /usr/nec ;then
14599     version_type=linux
14600     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14601     soname_spec='$libname${shared_ext}.$major'
14602     shlibpath_var=LD_LIBRARY_PATH
14603   fi
14604   ;;
14605
14606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14607   version_type=freebsd-elf
14608   need_lib_prefix=no
14609   need_version=no
14610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14611   soname_spec='${libname}${release}${shared_ext}$major'
14612   shlibpath_var=LD_LIBRARY_PATH
14613   hardcode_into_libs=yes
14614   if test "$with_gnu_ld" = yes; then
14615     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14616     shlibpath_overrides_runpath=no
14617   else
14618     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14619     shlibpath_overrides_runpath=yes
14620     case $host_os in
14621       sco3.2v5*)
14622         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14623         ;;
14624     esac
14625   fi
14626   sys_lib_dlsearch_path_spec='/usr/lib'
14627   ;;
14628
14629 uts4*)
14630   version_type=linux
14631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632   soname_spec='${libname}${release}${shared_ext}$major'
14633   shlibpath_var=LD_LIBRARY_PATH
14634   ;;
14635
14636 *)
14637   dynamic_linker=no
14638   ;;
14639 esac
14640 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14641 echo "${ECHO_T}$dynamic_linker" >&6
14642 test "$dynamic_linker" = no && can_build_shared=no
14643
14644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14645 if test "$GCC" = yes; then
14646   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14647 fi
14648
14649 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14651 hardcode_action_F77=
14652 if test -n "$hardcode_libdir_flag_spec_F77" || \
14653    test -n "$runpath_var_F77" || \
14654    test "X$hardcode_automatic_F77" = "Xyes" ; then
14655
14656   # We can hardcode non-existant directories.
14657   if test "$hardcode_direct_F77" != no &&
14658      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14659      # have to relink, otherwise we might link with an installed library
14660      # when we should be linking with a yet-to-be-installed one
14661      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14662      test "$hardcode_minus_L_F77" != no; then
14663     # Linking always hardcodes the temporary library directory.
14664     hardcode_action_F77=relink
14665   else
14666     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14667     hardcode_action_F77=immediate
14668   fi
14669 else
14670   # We cannot hardcode anything, or else we can only hardcode existing
14671   # directories.
14672   hardcode_action_F77=unsupported
14673 fi
14674 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14675 echo "${ECHO_T}$hardcode_action_F77" >&6
14676
14677 if test "$hardcode_action_F77" = relink; then
14678   # Fast installation is not supported
14679   enable_fast_install=no
14680 elif test "$shlibpath_overrides_runpath" = yes ||
14681      test "$enable_shared" = no; then
14682   # Fast installation is not necessary
14683   enable_fast_install=needless
14684 fi
14685
14686
14687 # The else clause should only fire when bootstrapping the
14688 # libtool distribution, otherwise you forgot to ship ltmain.sh
14689 # with your package, and you will get complaints that there are
14690 # no rules to generate ltmain.sh.
14691 if test -f "$ltmain"; then
14692   # See if we are running on zsh, and set the options which allow our commands through
14693   # without removal of \ escapes.
14694   if test -n "${ZSH_VERSION+set}" ; then
14695     setopt NO_GLOB_SUBST
14696   fi
14697   # Now quote all the things that may contain metacharacters while being
14698   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14699   # variables and quote the copies for generation of the libtool script.
14700   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14701     SED SHELL STRIP \
14702     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14703     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14704     deplibs_check_method reload_flag reload_cmds need_locks \
14705     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14706     lt_cv_sys_global_symbol_to_c_name_address \
14707     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14708     old_postinstall_cmds old_postuninstall_cmds \
14709     compiler_F77 \
14710     CC_F77 \
14711     LD_F77 \
14712     lt_prog_compiler_wl_F77 \
14713     lt_prog_compiler_pic_F77 \
14714     lt_prog_compiler_static_F77 \
14715     lt_prog_compiler_no_builtin_flag_F77 \
14716     export_dynamic_flag_spec_F77 \
14717     thread_safe_flag_spec_F77 \
14718     whole_archive_flag_spec_F77 \
14719     enable_shared_with_static_runtimes_F77 \
14720     old_archive_cmds_F77 \
14721     old_archive_from_new_cmds_F77 \
14722     predep_objects_F77 \
14723     postdep_objects_F77 \
14724     predeps_F77 \
14725     postdeps_F77 \
14726     compiler_lib_search_path_F77 \
14727     archive_cmds_F77 \
14728     archive_expsym_cmds_F77 \
14729     postinstall_cmds_F77 \
14730     postuninstall_cmds_F77 \
14731     old_archive_from_expsyms_cmds_F77 \
14732     allow_undefined_flag_F77 \
14733     no_undefined_flag_F77 \
14734     export_symbols_cmds_F77 \
14735     hardcode_libdir_flag_spec_F77 \
14736     hardcode_libdir_flag_spec_ld_F77 \
14737     hardcode_libdir_separator_F77 \
14738     hardcode_automatic_F77 \
14739     module_cmds_F77 \
14740     module_expsym_cmds_F77 \
14741     lt_cv_prog_compiler_c_o_F77 \
14742     exclude_expsyms_F77 \
14743     include_expsyms_F77; do
14744
14745     case $var in
14746     old_archive_cmds_F77 | \
14747     old_archive_from_new_cmds_F77 | \
14748     archive_cmds_F77 | \
14749     archive_expsym_cmds_F77 | \
14750     module_cmds_F77 | \
14751     module_expsym_cmds_F77 | \
14752     old_archive_from_expsyms_cmds_F77 | \
14753     export_symbols_cmds_F77 | \
14754     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14755     postinstall_cmds | postuninstall_cmds | \
14756     old_postinstall_cmds | old_postuninstall_cmds | \
14757     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14758       # Double-quote double-evaled strings.
14759       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14760       ;;
14761     *)
14762       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14763       ;;
14764     esac
14765   done
14766
14767   case $lt_echo in
14768   *'\$0 --fallback-echo"')
14769     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14770     ;;
14771   esac
14772
14773 cfgfile="$ofile"
14774
14775   cat <<__EOF__ >> "$cfgfile"
14776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14777
14778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14779
14780 # Shell to use when invoking shell scripts.
14781 SHELL=$lt_SHELL
14782
14783 # Whether or not to build shared libraries.
14784 build_libtool_libs=$enable_shared
14785
14786 # Whether or not to build static libraries.
14787 build_old_libs=$enable_static
14788
14789 # Whether or not to add -lc for building shared libraries.
14790 build_libtool_need_lc=$archive_cmds_need_lc_F77
14791
14792 # Whether or not to disallow shared libs when runtime libs are static
14793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14794
14795 # Whether or not to optimize for fast installation.
14796 fast_install=$enable_fast_install
14797
14798 # The host system.
14799 host_alias=$host_alias
14800 host=$host
14801 host_os=$host_os
14802
14803 # The build system.
14804 build_alias=$build_alias
14805 build=$build
14806 build_os=$build_os
14807
14808 # An echo program that does not interpret backslashes.
14809 echo=$lt_echo
14810
14811 # The archiver.
14812 AR=$lt_AR
14813 AR_FLAGS=$lt_AR_FLAGS
14814
14815 # A C compiler.
14816 LTCC=$lt_LTCC
14817
14818 # LTCC compiler flags.
14819 LTCFLAGS=$lt_LTCFLAGS
14820
14821 # A language-specific compiler.
14822 CC=$lt_compiler_F77
14823
14824 # Is the compiler the GNU C compiler?
14825 with_gcc=$GCC_F77
14826
14827 # An ERE matcher.
14828 EGREP=$lt_EGREP
14829
14830 # The linker used to build libraries.
14831 LD=$lt_LD_F77
14832
14833 # Whether we need hard or soft links.
14834 LN_S=$lt_LN_S
14835
14836 # A BSD-compatible nm program.
14837 NM=$lt_NM
14838
14839 # A symbol stripping program
14840 STRIP=$lt_STRIP
14841
14842 # Used to examine libraries when file_magic_cmd begins "file"
14843 MAGIC_CMD=$MAGIC_CMD
14844
14845 # Used on cygwin: DLL creation program.
14846 DLLTOOL="$DLLTOOL"
14847
14848 # Used on cygwin: object dumper.
14849 OBJDUMP="$OBJDUMP"
14850
14851 # Used on cygwin: assembler.
14852 AS="$AS"
14853
14854 # The name of the directory that contains temporary libtool files.
14855 objdir=$objdir
14856
14857 # How to create reloadable object files.
14858 reload_flag=$lt_reload_flag
14859 reload_cmds=$lt_reload_cmds
14860
14861 # How to pass a linker flag through the compiler.
14862 wl=$lt_lt_prog_compiler_wl_F77
14863
14864 # Object file suffix (normally "o").
14865 objext="$ac_objext"
14866
14867 # Old archive suffix (normally "a").
14868 libext="$libext"
14869
14870 # Shared library suffix (normally ".so").
14871 shrext_cmds='$shrext_cmds'
14872
14873 # Executable file suffix (normally "").
14874 exeext="$exeext"
14875
14876 # Additional compiler flags for building library objects.
14877 pic_flag=$lt_lt_prog_compiler_pic_F77
14878 pic_mode=$pic_mode
14879
14880 # What is the maximum length of a command?
14881 max_cmd_len=$lt_cv_sys_max_cmd_len
14882
14883 # Does compiler simultaneously support -c and -o options?
14884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14885
14886 # Must we lock files when doing compilation?
14887 need_locks=$lt_need_locks
14888
14889 # Do we need the lib prefix for modules?
14890 need_lib_prefix=$need_lib_prefix
14891
14892 # Do we need a version for libraries?
14893 need_version=$need_version
14894
14895 # Whether dlopen is supported.
14896 dlopen_support=$enable_dlopen
14897
14898 # Whether dlopen of programs is supported.
14899 dlopen_self=$enable_dlopen_self
14900
14901 # Whether dlopen of statically linked programs is supported.
14902 dlopen_self_static=$enable_dlopen_self_static
14903
14904 # Compiler flag to prevent dynamic linking.
14905 link_static_flag=$lt_lt_prog_compiler_static_F77
14906
14907 # Compiler flag to turn off builtin functions.
14908 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14909
14910 # Compiler flag to allow reflexive dlopens.
14911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14912
14913 # Compiler flag to generate shared objects directly from archives.
14914 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14915
14916 # Compiler flag to generate thread-safe objects.
14917 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14918
14919 # Library versioning type.
14920 version_type=$version_type
14921
14922 # Format of library name prefix.
14923 libname_spec=$lt_libname_spec
14924
14925 # List of archive names.  First name is the real one, the rest are links.
14926 # The last name is the one that the linker finds with -lNAME.
14927 library_names_spec=$lt_library_names_spec
14928
14929 # The coded name of the library, if different from the real name.
14930 soname_spec=$lt_soname_spec
14931
14932 # Commands used to build and install an old-style archive.
14933 RANLIB=$lt_RANLIB
14934 old_archive_cmds=$lt_old_archive_cmds_F77
14935 old_postinstall_cmds=$lt_old_postinstall_cmds
14936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14937
14938 # Create an old-style archive from a shared archive.
14939 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14940
14941 # Create a temporary old-style archive to link instead of a shared archive.
14942 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14943
14944 # Commands used to build and install a shared archive.
14945 archive_cmds=$lt_archive_cmds_F77
14946 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14947 postinstall_cmds=$lt_postinstall_cmds
14948 postuninstall_cmds=$lt_postuninstall_cmds
14949
14950 # Commands used to build a loadable module (assumed same as above if empty)
14951 module_cmds=$lt_module_cmds_F77
14952 module_expsym_cmds=$lt_module_expsym_cmds_F77
14953
14954 # Commands to strip libraries.
14955 old_striplib=$lt_old_striplib
14956 striplib=$lt_striplib
14957
14958 # Dependencies to place before the objects being linked to create a
14959 # shared library.
14960 predep_objects=$lt_predep_objects_F77
14961
14962 # Dependencies to place after the objects being linked to create a
14963 # shared library.
14964 postdep_objects=$lt_postdep_objects_F77
14965
14966 # Dependencies to place before the objects being linked to create a
14967 # shared library.
14968 predeps=$lt_predeps_F77
14969
14970 # Dependencies to place after the objects being linked to create a
14971 # shared library.
14972 postdeps=$lt_postdeps_F77
14973
14974 # The library search path used internally by the compiler when linking
14975 # a shared library.
14976 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14977
14978 # Method to check whether dependent libraries are shared objects.
14979 deplibs_check_method=$lt_deplibs_check_method
14980
14981 # Command to use when deplibs_check_method == file_magic.
14982 file_magic_cmd=$lt_file_magic_cmd
14983
14984 # Flag that allows shared libraries with undefined symbols to be built.
14985 allow_undefined_flag=$lt_allow_undefined_flag_F77
14986
14987 # Flag that forces no undefined symbols.
14988 no_undefined_flag=$lt_no_undefined_flag_F77
14989
14990 # Commands used to finish a libtool library installation in a directory.
14991 finish_cmds=$lt_finish_cmds
14992
14993 # Same as above, but a single script fragment to be evaled but not shown.
14994 finish_eval=$lt_finish_eval
14995
14996 # Take the output of nm and produce a listing of raw symbols and C names.
14997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14998
14999 # Transform the output of nm in a proper C declaration
15000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15001
15002 # Transform the output of nm in a C name address pair
15003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15004
15005 # This is the shared library runtime path variable.
15006 runpath_var=$runpath_var
15007
15008 # This is the shared library path variable.
15009 shlibpath_var=$shlibpath_var
15010
15011 # Is shlibpath searched before the hard-coded library search path?
15012 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15013
15014 # How to hardcode a shared library path into an executable.
15015 hardcode_action=$hardcode_action_F77
15016
15017 # Whether we should hardcode library paths into libraries.
15018 hardcode_into_libs=$hardcode_into_libs
15019
15020 # Flag to hardcode \$libdir into a binary during linking.
15021 # This must work even if \$libdir does not exist.
15022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15023
15024 # If ld is used when linking, flag to hardcode \$libdir into
15025 # a binary during linking. This must work even if \$libdir does
15026 # not exist.
15027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15028
15029 # Whether we need a single -rpath flag with a separated argument.
15030 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15031
15032 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15033 # resulting binary.
15034 hardcode_direct=$hardcode_direct_F77
15035
15036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15037 # resulting binary.
15038 hardcode_minus_L=$hardcode_minus_L_F77
15039
15040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15041 # the resulting binary.
15042 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15043
15044 # Set to yes if building a shared library automatically hardcodes DIR into the library
15045 # and all subsequent libraries and executables linked against it.
15046 hardcode_automatic=$hardcode_automatic_F77
15047
15048 # Variables whose values should be saved in libtool wrapper scripts and
15049 # restored at relink time.
15050 variables_saved_for_relink="$variables_saved_for_relink"
15051
15052 # Whether libtool must link a program against all its dependency libraries.
15053 link_all_deplibs=$link_all_deplibs_F77
15054
15055 # Compile-time system search path for libraries
15056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15057
15058 # Run-time system search path for libraries
15059 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15060
15061 # Fix the shell variable \$srcfile for the compiler.
15062 fix_srcfile_path="$fix_srcfile_path_F77"
15063
15064 # Set to yes if exported symbols are required.
15065 always_export_symbols=$always_export_symbols_F77
15066
15067 # The commands to list exported symbols.
15068 export_symbols_cmds=$lt_export_symbols_cmds_F77
15069
15070 # The commands to extract the exported symbol list from a shared archive.
15071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15072
15073 # Symbols that should not be listed in the preloaded symbols.
15074 exclude_expsyms=$lt_exclude_expsyms_F77
15075
15076 # Symbols that must always be exported.
15077 include_expsyms=$lt_include_expsyms_F77
15078
15079 # ### END LIBTOOL TAG CONFIG: $tagname
15080
15081 __EOF__
15082
15083
15084 else
15085   # If there is no Makefile yet, we rely on a make rule to execute
15086   # `config.status --recheck' to rerun these tests and create the
15087   # libtool script then.
15088   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15089   if test -f "$ltmain_in"; then
15090     test -f Makefile && make "$ltmain"
15091   fi
15092 fi
15093
15094
15095 ac_ext=c
15096 ac_cpp='$CPP $CPPFLAGS'
15097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15100
15101 CC="$lt_save_CC"
15102
15103         else
15104           tagname=""
15105         fi
15106         ;;
15107
15108       GCJ)
15109         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15110
15111
15112
15113 # Source file extension for Java test sources.
15114 ac_ext=java
15115
15116 # Object file extension for compiled Java test sources.
15117 objext=o
15118 objext_GCJ=$objext
15119
15120 # Code to be used in simple compile tests
15121 lt_simple_compile_test_code="class foo {}\n"
15122
15123 # Code to be used in simple link tests
15124 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15125
15126 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15127
15128 # If no C compiler was specified, use CC.
15129 LTCC=${LTCC-"$CC"}
15130
15131 # If no C compiler flags were specified, use CFLAGS.
15132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15133
15134 # Allow CC to be a program name with arguments.
15135 compiler=$CC
15136
15137
15138 # save warnings/boilerplate of simple test code
15139 ac_outfile=conftest.$ac_objext
15140 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15142 _lt_compiler_boilerplate=`cat conftest.err`
15143 $rm conftest*
15144
15145 ac_outfile=conftest.$ac_objext
15146 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15148 _lt_linker_boilerplate=`cat conftest.err`
15149 $rm conftest*
15150
15151
15152 # Allow CC to be a program name with arguments.
15153 lt_save_CC="$CC"
15154 CC=${GCJ-"gcj"}
15155 compiler=$CC
15156 compiler_GCJ=$CC
15157 for cc_temp in $compiler""; do
15158   case $cc_temp in
15159     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15160     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15161     \-*) ;;
15162     *) break;;
15163   esac
15164 done
15165 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15166
15167
15168 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15169 archive_cmds_need_lc_GCJ=no
15170
15171 old_archive_cmds_GCJ=$old_archive_cmds
15172
15173
15174 lt_prog_compiler_no_builtin_flag_GCJ=
15175
15176 if test "$GCC" = yes; then
15177   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15178
15179
15180 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   lt_cv_prog_compiler_rtti_exceptions=no
15186   ac_outfile=conftest.$ac_objext
15187    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15188    lt_compiler_flag="-fno-rtti -fno-exceptions"
15189    # Insert the option either (1) after the last *FLAGS variable, or
15190    # (2) before a word containing "conftest.", or (3) at the end.
15191    # Note that $ac_compile itself does not contain backslashes and begins
15192    # with a dollar sign (not a hyphen), so the echo should work correctly.
15193    # The option is referenced via a variable to avoid confusing sed.
15194    lt_compile=`echo "$ac_compile" | $SED \
15195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15197    -e 's:$: $lt_compiler_flag:'`
15198    (eval echo "\"\$as_me:15198: $lt_compile\"" >&5)
15199    (eval "$lt_compile" 2>conftest.err)
15200    ac_status=$?
15201    cat conftest.err >&5
15202    echo "$as_me:15202: \$? = $ac_status" >&5
15203    if (exit $ac_status) && test -s "$ac_outfile"; then
15204      # The compiler can only warn and ignore the option if not recognized
15205      # So say no if there are warnings other than the usual output.
15206      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15207      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15208      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15209        lt_cv_prog_compiler_rtti_exceptions=yes
15210      fi
15211    fi
15212    $rm conftest*
15213
15214 fi
15215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15217
15218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15219     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15220 else
15221     :
15222 fi
15223
15224 fi
15225
15226 lt_prog_compiler_wl_GCJ=
15227 lt_prog_compiler_pic_GCJ=
15228 lt_prog_compiler_static_GCJ=
15229
15230 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15232
15233   if test "$GCC" = yes; then
15234     lt_prog_compiler_wl_GCJ='-Wl,'
15235     lt_prog_compiler_static_GCJ='-static'
15236
15237     case $host_os in
15238       aix*)
15239       # All AIX code is PIC.
15240       if test "$host_cpu" = ia64; then
15241         # AIX 5 now supports IA64 processor
15242         lt_prog_compiler_static_GCJ='-Bstatic'
15243       fi
15244       ;;
15245
15246     amigaos*)
15247       # FIXME: we need at least 68020 code to build shared libraries, but
15248       # adding the `-m68020' flag to GCC prevents building anything better,
15249       # like `-m68040'.
15250       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15251       ;;
15252
15253     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15254       # PIC is the default for these OSes.
15255       ;;
15256
15257     mingw* | pw32* | os2*)
15258       # This hack is so that the source file can tell whether it is being
15259       # built for inclusion in a dll (and should export symbols for example).
15260       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15261       ;;
15262
15263     darwin* | rhapsody*)
15264       # PIC is the default on this platform
15265       # Common symbols not allowed in MH_DYLIB files
15266       lt_prog_compiler_pic_GCJ='-fno-common'
15267       ;;
15268
15269     interix3*)
15270       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15271       # Instead, we relocate shared libraries at runtime.
15272       ;;
15273
15274     msdosdjgpp*)
15275       # Just because we use GCC doesn't mean we suddenly get shared libraries
15276       # on systems that don't support them.
15277       lt_prog_compiler_can_build_shared_GCJ=no
15278       enable_shared=no
15279       ;;
15280
15281     sysv4*MP*)
15282       if test -d /usr/nec; then
15283         lt_prog_compiler_pic_GCJ=-Kconform_pic
15284       fi
15285       ;;
15286
15287     hpux*)
15288       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15289       # not for PA HP-UX.
15290       case $host_cpu in
15291       hppa*64*|ia64*)
15292         # +Z the default
15293         ;;
15294       *)
15295         lt_prog_compiler_pic_GCJ='-fPIC'
15296         ;;
15297       esac
15298       ;;
15299
15300     *)
15301       lt_prog_compiler_pic_GCJ='-fPIC'
15302       ;;
15303     esac
15304   else
15305     # PORTME Check for flag to pass linker flags through the system compiler.
15306     case $host_os in
15307     aix*)
15308       lt_prog_compiler_wl_GCJ='-Wl,'
15309       if test "$host_cpu" = ia64; then
15310         # AIX 5 now supports IA64 processor
15311         lt_prog_compiler_static_GCJ='-Bstatic'
15312       else
15313         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15314       fi
15315       ;;
15316       darwin*)
15317         # PIC is the default on this platform
15318         # Common symbols not allowed in MH_DYLIB files
15319        case $cc_basename in
15320          xlc*)
15321          lt_prog_compiler_pic_GCJ='-qnocommon'
15322          lt_prog_compiler_wl_GCJ='-Wl,'
15323          ;;
15324        esac
15325        ;;
15326
15327     mingw* | pw32* | os2*)
15328       # This hack is so that the source file can tell whether it is being
15329       # built for inclusion in a dll (and should export symbols for example).
15330       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15331       ;;
15332
15333     hpux9* | hpux10* | hpux11*)
15334       lt_prog_compiler_wl_GCJ='-Wl,'
15335       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15336       # not for PA HP-UX.
15337       case $host_cpu in
15338       hppa*64*|ia64*)
15339         # +Z the default
15340         ;;
15341       *)
15342         lt_prog_compiler_pic_GCJ='+Z'
15343         ;;
15344       esac
15345       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15346       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15347       ;;
15348
15349     irix5* | irix6* | nonstopux*)
15350       lt_prog_compiler_wl_GCJ='-Wl,'
15351       # PIC (with -KPIC) is the default.
15352       lt_prog_compiler_static_GCJ='-non_shared'
15353       ;;
15354
15355     newsos6)
15356       lt_prog_compiler_pic_GCJ='-KPIC'
15357       lt_prog_compiler_static_GCJ='-Bstatic'
15358       ;;
15359
15360     linux*)
15361       case $cc_basename in
15362       icc* | ecc*)
15363         lt_prog_compiler_wl_GCJ='-Wl,'
15364         lt_prog_compiler_pic_GCJ='-KPIC'
15365         lt_prog_compiler_static_GCJ='-static'
15366         ;;
15367       pgcc* | pgf77* | pgf90* | pgf95*)
15368         # Portland Group compilers (*not* the Pentium gcc compiler,
15369         # which looks to be a dead project)
15370         lt_prog_compiler_wl_GCJ='-Wl,'
15371         lt_prog_compiler_pic_GCJ='-fpic'
15372         lt_prog_compiler_static_GCJ='-Bstatic'
15373         ;;
15374       ccc*)
15375         lt_prog_compiler_wl_GCJ='-Wl,'
15376         # All Alpha code is PIC.
15377         lt_prog_compiler_static_GCJ='-non_shared'
15378         ;;
15379       esac
15380       ;;
15381
15382     osf3* | osf4* | osf5*)
15383       lt_prog_compiler_wl_GCJ='-Wl,'
15384       # All OSF/1 code is PIC.
15385       lt_prog_compiler_static_GCJ='-non_shared'
15386       ;;
15387
15388     solaris*)
15389       lt_prog_compiler_pic_GCJ='-KPIC'
15390       lt_prog_compiler_static_GCJ='-Bstatic'
15391       case $cc_basename in
15392       f77* | f90* | f95*)
15393         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15394       *)
15395         lt_prog_compiler_wl_GCJ='-Wl,';;
15396       esac
15397       ;;
15398
15399     sunos4*)
15400       lt_prog_compiler_wl_GCJ='-Qoption ld '
15401       lt_prog_compiler_pic_GCJ='-PIC'
15402       lt_prog_compiler_static_GCJ='-Bstatic'
15403       ;;
15404
15405     sysv4 | sysv4.2uw2* | sysv4.3*)
15406       lt_prog_compiler_wl_GCJ='-Wl,'
15407       lt_prog_compiler_pic_GCJ='-KPIC'
15408       lt_prog_compiler_static_GCJ='-Bstatic'
15409       ;;
15410
15411     sysv4*MP*)
15412       if test -d /usr/nec ;then
15413         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15414         lt_prog_compiler_static_GCJ='-Bstatic'
15415       fi
15416       ;;
15417
15418     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15419       lt_prog_compiler_wl_GCJ='-Wl,'
15420       lt_prog_compiler_pic_GCJ='-KPIC'
15421       lt_prog_compiler_static_GCJ='-Bstatic'
15422       ;;
15423
15424     unicos*)
15425       lt_prog_compiler_wl_GCJ='-Wl,'
15426       lt_prog_compiler_can_build_shared_GCJ=no
15427       ;;
15428
15429     uts4*)
15430       lt_prog_compiler_pic_GCJ='-pic'
15431       lt_prog_compiler_static_GCJ='-Bstatic'
15432       ;;
15433
15434     *)
15435       lt_prog_compiler_can_build_shared_GCJ=no
15436       ;;
15437     esac
15438   fi
15439
15440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15441 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15442
15443 #
15444 # Check to make sure the PIC flag actually works.
15445 #
15446 if test -n "$lt_prog_compiler_pic_GCJ"; then
15447
15448 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15450 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   lt_prog_compiler_pic_works_GCJ=no
15454   ac_outfile=conftest.$ac_objext
15455    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15456    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15457    # Insert the option either (1) after the last *FLAGS variable, or
15458    # (2) before a word containing "conftest.", or (3) at the end.
15459    # Note that $ac_compile itself does not contain backslashes and begins
15460    # with a dollar sign (not a hyphen), so the echo should work correctly.
15461    # The option is referenced via a variable to avoid confusing sed.
15462    lt_compile=`echo "$ac_compile" | $SED \
15463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15465    -e 's:$: $lt_compiler_flag:'`
15466    (eval echo "\"\$as_me:15466: $lt_compile\"" >&5)
15467    (eval "$lt_compile" 2>conftest.err)
15468    ac_status=$?
15469    cat conftest.err >&5
15470    echo "$as_me:15470: \$? = $ac_status" >&5
15471    if (exit $ac_status) && test -s "$ac_outfile"; then
15472      # The compiler can only warn and ignore the option if not recognized
15473      # So say no if there are warnings other than the usual output.
15474      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15475      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15476      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15477        lt_prog_compiler_pic_works_GCJ=yes
15478      fi
15479    fi
15480    $rm conftest*
15481
15482 fi
15483 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15484 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15485
15486 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15487     case $lt_prog_compiler_pic_GCJ in
15488      "" | " "*) ;;
15489      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15490      esac
15491 else
15492     lt_prog_compiler_pic_GCJ=
15493      lt_prog_compiler_can_build_shared_GCJ=no
15494 fi
15495
15496 fi
15497 case $host_os in
15498   # For platforms which do not support PIC, -DPIC is meaningless:
15499   *djgpp*)
15500     lt_prog_compiler_pic_GCJ=
15501     ;;
15502   *)
15503     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15504     ;;
15505 esac
15506
15507 #
15508 # Check to make sure the static flag actually works.
15509 #
15510 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15511 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15513 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15514   echo $ECHO_N "(cached) $ECHO_C" >&6
15515 else
15516   lt_prog_compiler_static_works_GCJ=no
15517    save_LDFLAGS="$LDFLAGS"
15518    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15519    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15520    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15521      # The linker can only warn and ignore the option if not recognized
15522      # So say no if there are warnings
15523      if test -s conftest.err; then
15524        # Append any errors to the config.log.
15525        cat conftest.err 1>&5
15526        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15527        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15528        if diff conftest.exp conftest.er2 >/dev/null; then
15529          lt_prog_compiler_static_works_GCJ=yes
15530        fi
15531      else
15532        lt_prog_compiler_static_works_GCJ=yes
15533      fi
15534    fi
15535    $rm conftest*
15536    LDFLAGS="$save_LDFLAGS"
15537
15538 fi
15539 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15540 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15541
15542 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15543     :
15544 else
15545     lt_prog_compiler_static_GCJ=
15546 fi
15547
15548
15549 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15551 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15552   echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554   lt_cv_prog_compiler_c_o_GCJ=no
15555    $rm -r conftest 2>/dev/null
15556    mkdir conftest
15557    cd conftest
15558    mkdir out
15559    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15560
15561    lt_compiler_flag="-o out/conftest2.$ac_objext"
15562    # Insert the option either (1) after the last *FLAGS variable, or
15563    # (2) before a word containing "conftest.", or (3) at the end.
15564    # Note that $ac_compile itself does not contain backslashes and begins
15565    # with a dollar sign (not a hyphen), so the echo should work correctly.
15566    lt_compile=`echo "$ac_compile" | $SED \
15567    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15568    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15569    -e 's:$: $lt_compiler_flag:'`
15570    (eval echo "\"\$as_me:15570: $lt_compile\"" >&5)
15571    (eval "$lt_compile" 2>out/conftest.err)
15572    ac_status=$?
15573    cat out/conftest.err >&5
15574    echo "$as_me:15574: \$? = $ac_status" >&5
15575    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15576    then
15577      # The compiler can only warn and ignore the option if not recognized
15578      # So say no if there are warnings
15579      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15580      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15581      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15582        lt_cv_prog_compiler_c_o_GCJ=yes
15583      fi
15584    fi
15585    chmod u+w . 2>&5
15586    $rm conftest*
15587    # SGI C++ compiler will create directory out/ii_files/ for
15588    # template instantiation
15589    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15590    $rm out/* && rmdir out
15591    cd ..
15592    rmdir conftest
15593    $rm conftest*
15594
15595 fi
15596 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15598
15599
15600 hard_links="nottested"
15601 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15602   # do not overwrite the value of need_locks provided by the user
15603   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15605   hard_links=yes
15606   $rm conftest*
15607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15608   touch conftest.a
15609   ln conftest.a conftest.b 2>&5 || hard_links=no
15610   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15611   echo "$as_me:$LINENO: result: $hard_links" >&5
15612 echo "${ECHO_T}$hard_links" >&6
15613   if test "$hard_links" = no; then
15614     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15616     need_locks=warn
15617   fi
15618 else
15619   need_locks=no
15620 fi
15621
15622 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15624
15625   runpath_var=
15626   allow_undefined_flag_GCJ=
15627   enable_shared_with_static_runtimes_GCJ=no
15628   archive_cmds_GCJ=
15629   archive_expsym_cmds_GCJ=
15630   old_archive_From_new_cmds_GCJ=
15631   old_archive_from_expsyms_cmds_GCJ=
15632   export_dynamic_flag_spec_GCJ=
15633   whole_archive_flag_spec_GCJ=
15634   thread_safe_flag_spec_GCJ=
15635   hardcode_libdir_flag_spec_GCJ=
15636   hardcode_libdir_flag_spec_ld_GCJ=
15637   hardcode_libdir_separator_GCJ=
15638   hardcode_direct_GCJ=no
15639   hardcode_minus_L_GCJ=no
15640   hardcode_shlibpath_var_GCJ=unsupported
15641   link_all_deplibs_GCJ=unknown
15642   hardcode_automatic_GCJ=no
15643   module_cmds_GCJ=
15644   module_expsym_cmds_GCJ=
15645   always_export_symbols_GCJ=no
15646   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15647   # include_expsyms should be a list of space-separated symbols to be *always*
15648   # included in the symbol list
15649   include_expsyms_GCJ=
15650   # exclude_expsyms can be an extended regexp of symbols to exclude
15651   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15652   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15653   # as well as any symbol that contains `d'.
15654   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15655   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15656   # platforms (ab)use it in PIC code, but their linkers get confused if
15657   # the symbol is explicitly referenced.  Since portable code cannot
15658   # rely on this symbol name, it's probably fine to never include it in
15659   # preloaded symbol tables.
15660   extract_expsyms_cmds=
15661   # Just being paranoid about ensuring that cc_basename is set.
15662   for cc_temp in $compiler""; do
15663   case $cc_temp in
15664     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15665     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15666     \-*) ;;
15667     *) break;;
15668   esac
15669 done
15670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15671
15672   case $host_os in
15673   cygwin* | mingw* | pw32*)
15674     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15675     # When not using gcc, we currently assume that we are using
15676     # Microsoft Visual C++.
15677     if test "$GCC" != yes; then
15678       with_gnu_ld=no
15679     fi
15680     ;;
15681   interix*)
15682     # we just hope/assume this is gcc and not c89 (= MSVC++)
15683     with_gnu_ld=yes
15684     ;;
15685   openbsd*)
15686     with_gnu_ld=no
15687     ;;
15688   esac
15689
15690   ld_shlibs_GCJ=yes
15691   if test "$with_gnu_ld" = yes; then
15692     # If archive_cmds runs LD, not CC, wlarc should be empty
15693     wlarc='${wl}'
15694
15695     # Set some defaults for GNU ld with shared library support. These
15696     # are reset later if shared libraries are not supported. Putting them
15697     # here allows them to be overridden if necessary.
15698     runpath_var=LD_RUN_PATH
15699     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15700     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15701     # ancient GNU ld didn't support --whole-archive et. al.
15702     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15703         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15704       else
15705         whole_archive_flag_spec_GCJ=
15706     fi
15707     supports_anon_versioning=no
15708     case `$LD -v 2>/dev/null` in
15709       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15710       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15711       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15712       *\ 2.11.*) ;; # other 2.11 versions
15713       *) supports_anon_versioning=yes ;;
15714     esac
15715
15716     # See if GNU ld supports shared libraries.
15717     case $host_os in
15718     aix3* | aix4* | aix5*)
15719       # On AIX/PPC, the GNU linker is very broken
15720       if test "$host_cpu" != ia64; then
15721         ld_shlibs_GCJ=no
15722         cat <<EOF 1>&2
15723
15724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15725 *** to be unable to reliably create shared libraries on AIX.
15726 *** Therefore, libtool is disabling shared libraries support.  If you
15727 *** really care for shared libraries, you may want to modify your PATH
15728 *** so that a non-GNU linker is found, and then restart.
15729
15730 EOF
15731       fi
15732       ;;
15733
15734     amigaos*)
15735       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)'
15736       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15737       hardcode_minus_L_GCJ=yes
15738
15739       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15740       # that the semantics of dynamic libraries on AmigaOS, at least up
15741       # to version 4, is to share data among multiple programs linked
15742       # with the same dynamic library.  Since this doesn't match the
15743       # behavior of shared libraries on other platforms, we can't use
15744       # them.
15745       ld_shlibs_GCJ=no
15746       ;;
15747
15748     beos*)
15749       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15750         allow_undefined_flag_GCJ=unsupported
15751         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15752         # support --undefined.  This deserves some investigation.  FIXME
15753         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754       else
15755         ld_shlibs_GCJ=no
15756       fi
15757       ;;
15758
15759     cygwin* | mingw* | pw32*)
15760       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15761       # as there is no search path for DLLs.
15762       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15763       allow_undefined_flag_GCJ=unsupported
15764       always_export_symbols_GCJ=no
15765       enable_shared_with_static_runtimes_GCJ=yes
15766       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15767
15768       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15769         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15770         # If the export-symbols file already is a .def file (1st line
15771         # is EXPORTS), use it as is; otherwise, prepend...
15772         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15773           cp $export_symbols $output_objdir/$soname.def;
15774         else
15775           echo EXPORTS > $output_objdir/$soname.def;
15776           cat $export_symbols >> $output_objdir/$soname.def;
15777         fi~
15778         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15779       else
15780         ld_shlibs_GCJ=no
15781       fi
15782       ;;
15783
15784     interix3*)
15785       hardcode_direct_GCJ=no
15786       hardcode_shlibpath_var_GCJ=no
15787       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15788       export_dynamic_flag_spec_GCJ='${wl}-E'
15789       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15790       # Instead, shared libraries are loaded at an image base (0x10000000 by
15791       # default) and relocated if they conflict, which is a slow very memory
15792       # consuming and fragmenting process.  To avoid this, we pick a random,
15793       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15794       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15795       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15796       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15797       ;;
15798
15799     linux*)
15800       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15801         tmp_addflag=
15802         case $cc_basename,$host_cpu in
15803         pgcc*)                          # Portland Group C compiler
15804           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15805           tmp_addflag=' $pic_flag'
15806           ;;
15807         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15808           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15809           tmp_addflag=' $pic_flag -Mnomain' ;;
15810         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15811           tmp_addflag=' -i_dynamic' ;;
15812         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15813           tmp_addflag=' -i_dynamic -nofor_main' ;;
15814         ifc* | ifort*)                  # Intel Fortran compiler
15815           tmp_addflag=' -nofor_main' ;;
15816         esac
15817         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15818
15819         if test $supports_anon_versioning = yes; then
15820           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15821   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15822   $echo "local: *; };" >> $output_objdir/$libname.ver~
15823           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15824         fi
15825         link_all_deplibs_GCJ=no
15826       else
15827         ld_shlibs_GCJ=no
15828       fi
15829       ;;
15830
15831     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15832       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15833         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15834         wlarc=
15835       else
15836         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15838       fi
15839       ;;
15840
15841     solaris*)
15842       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15843         ld_shlibs_GCJ=no
15844         cat <<EOF 1>&2
15845
15846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15847 *** create shared libraries on Solaris systems.  Therefore, libtool
15848 *** is disabling shared libraries support.  We urge you to upgrade GNU
15849 *** binutils to release 2.9.1 or newer.  Another option is to modify
15850 *** your PATH or compiler configuration so that the native linker is
15851 *** used, and then restart.
15852
15853 EOF
15854       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15857       else
15858         ld_shlibs_GCJ=no
15859       fi
15860       ;;
15861
15862     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15863       case `$LD -v 2>&1` in
15864         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15865         ld_shlibs_GCJ=no
15866         cat <<_LT_EOF 1>&2
15867
15868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15869 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15870 *** is disabling shared libraries support.  We urge you to upgrade GNU
15871 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15872 *** your PATH or compiler configuration so that the native linker is
15873 *** used, and then restart.
15874
15875 _LT_EOF
15876         ;;
15877         *)
15878           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15879             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15880             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15881             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15882           else
15883             ld_shlibs_GCJ=no
15884           fi
15885         ;;
15886       esac
15887       ;;
15888
15889     sunos4*)
15890       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15891       wlarc=
15892       hardcode_direct_GCJ=yes
15893       hardcode_shlibpath_var_GCJ=no
15894       ;;
15895
15896     *)
15897       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15898         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15899         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15900       else
15901         ld_shlibs_GCJ=no
15902       fi
15903       ;;
15904     esac
15905
15906     if test "$ld_shlibs_GCJ" = no; then
15907       runpath_var=
15908       hardcode_libdir_flag_spec_GCJ=
15909       export_dynamic_flag_spec_GCJ=
15910       whole_archive_flag_spec_GCJ=
15911     fi
15912   else
15913     # PORTME fill in a description of your system's linker (not GNU ld)
15914     case $host_os in
15915     aix3*)
15916       allow_undefined_flag_GCJ=unsupported
15917       always_export_symbols_GCJ=yes
15918       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'
15919       # Note: this linker hardcodes the directories in LIBPATH if there
15920       # are no directories specified by -L.
15921       hardcode_minus_L_GCJ=yes
15922       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15923         # Neither direct hardcoding nor static linking is supported with a
15924         # broken collect2.
15925         hardcode_direct_GCJ=unsupported
15926       fi
15927       ;;
15928
15929     aix4* | aix5*)
15930       if test "$host_cpu" = ia64; then
15931         # On IA64, the linker does run time linking by default, so we don't
15932         # have to do anything special.
15933         aix_use_runtimelinking=no
15934         exp_sym_flag='-Bexport'
15935         no_entry_flag=""
15936       else
15937         # If we're using GNU nm, then we don't want the "-C" option.
15938         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15939         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15940           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'
15941         else
15942           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'
15943         fi
15944         aix_use_runtimelinking=no
15945
15946         # Test if we are trying to use run time linking or normal
15947         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15948         # need to do runtime linking.
15949         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15950           for ld_flag in $LDFLAGS; do
15951           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15952             aix_use_runtimelinking=yes
15953             break
15954           fi
15955           done
15956           ;;
15957         esac
15958
15959         exp_sym_flag='-bexport'
15960         no_entry_flag='-bnoentry'
15961       fi
15962
15963       # When large executables or shared objects are built, AIX ld can
15964       # have problems creating the table of contents.  If linking a library
15965       # or program results in "error TOC overflow" add -mminimal-toc to
15966       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15967       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15968
15969       archive_cmds_GCJ=''
15970       hardcode_direct_GCJ=yes
15971       hardcode_libdir_separator_GCJ=':'
15972       link_all_deplibs_GCJ=yes
15973
15974       if test "$GCC" = yes; then
15975         case $host_os in aix4.[012]|aix4.[012].*)
15976         # We only want to do this on AIX 4.2 and lower, the check
15977         # below for broken collect2 doesn't work under 4.3+
15978           collect2name=`${CC} -print-prog-name=collect2`
15979           if test -f "$collect2name" && \
15980            strings "$collect2name" | grep resolve_lib_name >/dev/null
15981           then
15982           # We have reworked collect2
15983           hardcode_direct_GCJ=yes
15984           else
15985           # We have old collect2
15986           hardcode_direct_GCJ=unsupported
15987           # It fails to find uninstalled libraries when the uninstalled
15988           # path is not listed in the libpath.  Setting hardcode_minus_L
15989           # to unsupported forces relinking
15990           hardcode_minus_L_GCJ=yes
15991           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15992           hardcode_libdir_separator_GCJ=
15993           fi
15994           ;;
15995         esac
15996         shared_flag='-shared'
15997         if test "$aix_use_runtimelinking" = yes; then
15998           shared_flag="$shared_flag "'${wl}-G'
15999         fi
16000       else
16001         # not using gcc
16002         if test "$host_cpu" = ia64; then
16003         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16004         # chokes on -Wl,-G. The following line is correct:
16005           shared_flag='-G'
16006         else
16007           if test "$aix_use_runtimelinking" = yes; then
16008             shared_flag='${wl}-G'
16009           else
16010             shared_flag='${wl}-bM:SRE'
16011           fi
16012         fi
16013       fi
16014
16015       # It seems that -bexpall does not export symbols beginning with
16016       # underscore (_), so it is better to generate a list of symbols to export.
16017       always_export_symbols_GCJ=yes
16018       if test "$aix_use_runtimelinking" = yes; then
16019         # Warning - without using the other runtime loading flags (-brtl),
16020         # -berok will link without error, but may produce a broken library.
16021         allow_undefined_flag_GCJ='-berok'
16022        # Determine the default libpath from the value encoded in an empty executable.
16023        cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029
16030 int
16031 main ()
16032 {
16033
16034   ;
16035   return 0;
16036 }
16037 _ACEOF
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16040   (eval $ac_link) 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } &&
16047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049   (eval $ac_try) 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); }; } &&
16053          { ac_try='test -s conftest$ac_exeext'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; }; then
16059
16060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16061 }'`
16062 # Check for a 64-bit object if we didn't find anything.
16063 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; }
16064 }'`; fi
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 fi
16070 rm -f conftest.err conftest.$ac_objext \
16071       conftest$ac_exeext conftest.$ac_ext
16072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16073
16074        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16075         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16076        else
16077         if test "$host_cpu" = ia64; then
16078           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16079           allow_undefined_flag_GCJ="-z nodefs"
16080           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16081         else
16082          # Determine the default libpath from the value encoded in an empty executable.
16083          cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089
16090 int
16091 main ()
16092 {
16093
16094   ;
16095   return 0;
16096 }
16097 _ACEOF
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16100   (eval $ac_link) 2>conftest.er1
16101   ac_status=$?
16102   grep -v '^ *+' conftest.er1 >conftest.err
16103   rm -f conftest.er1
16104   cat conftest.err >&5
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); } &&
16107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109   (eval $ac_try) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; } &&
16113          { ac_try='test -s conftest$ac_exeext'
16114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115   (eval $ac_try) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; }; then
16119
16120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16121 }'`
16122 # Check for a 64-bit object if we didn't find anything.
16123 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; }
16124 }'`; fi
16125 else
16126   echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 fi
16130 rm -f conftest.err conftest.$ac_objext \
16131       conftest$ac_exeext conftest.$ac_ext
16132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16133
16134          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16135           # Warning - without using the other run time loading flags,
16136           # -berok will link without error, but may produce a broken library.
16137           no_undefined_flag_GCJ=' ${wl}-bernotok'
16138           allow_undefined_flag_GCJ=' ${wl}-berok'
16139           # Exported symbols can be pulled into shared objects from archives
16140           whole_archive_flag_spec_GCJ='$convenience'
16141           archive_cmds_need_lc_GCJ=yes
16142           # This is similar to how AIX traditionally builds its shared libraries.
16143           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16144         fi
16145       fi
16146       ;;
16147
16148     amigaos*)
16149       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)'
16150       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16151       hardcode_minus_L_GCJ=yes
16152       # see comment about different semantics on the GNU ld section
16153       ld_shlibs_GCJ=no
16154       ;;
16155
16156     bsdi[45]*)
16157       export_dynamic_flag_spec_GCJ=-rdynamic
16158       ;;
16159
16160     cygwin* | mingw* | pw32*)
16161       # When not using gcc, we currently assume that we are using
16162       # Microsoft Visual C++.
16163       # hardcode_libdir_flag_spec is actually meaningless, as there is
16164       # no search path for DLLs.
16165       hardcode_libdir_flag_spec_GCJ=' '
16166       allow_undefined_flag_GCJ=unsupported
16167       # Tell ltmain to make .lib files, not .a files.
16168       libext=lib
16169       # Tell ltmain to make .dll files, not .so files.
16170       shrext_cmds=".dll"
16171       # FIXME: Setting linknames here is a bad hack.
16172       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16173       # The linker will automatically build a .lib file if we build a DLL.
16174       old_archive_From_new_cmds_GCJ='true'
16175       # FIXME: Should let the user specify the lib program.
16176       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16177       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16178       enable_shared_with_static_runtimes_GCJ=yes
16179       ;;
16180
16181     darwin* | rhapsody*)
16182       case $host_os in
16183         rhapsody* | darwin1.[012])
16184          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16185          ;;
16186        *) # Darwin 1.3 on
16187          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16188            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16189          else
16190            case ${MACOSX_DEPLOYMENT_TARGET} in
16191              10.[012])
16192                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16193                ;;
16194              10.*)
16195                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16196                ;;
16197            esac
16198          fi
16199          ;;
16200       esac
16201       archive_cmds_need_lc_GCJ=no
16202       hardcode_direct_GCJ=no
16203       hardcode_automatic_GCJ=yes
16204       hardcode_shlibpath_var_GCJ=unsupported
16205       whole_archive_flag_spec_GCJ=''
16206       link_all_deplibs_GCJ=yes
16207     if test "$GCC" = yes ; then
16208         output_verbose_link_cmd='echo'
16209         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16210       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16211       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16212       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16213       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}'
16214     else
16215       case $cc_basename in
16216         xlc*)
16217          output_verbose_link_cmd='echo'
16218          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16219          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16220           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16221          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16222           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}'
16223           ;;
16224        *)
16225          ld_shlibs_GCJ=no
16226           ;;
16227       esac
16228     fi
16229       ;;
16230
16231     dgux*)
16232       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16233       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16234       hardcode_shlibpath_var_GCJ=no
16235       ;;
16236
16237     freebsd1*)
16238       ld_shlibs_GCJ=no
16239       ;;
16240
16241     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16242     # support.  Future versions do this automatically, but an explicit c++rt0.o
16243     # does not break anything, and helps significantly (at the cost of a little
16244     # extra space).
16245     freebsd2.2*)
16246       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16247       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16248       hardcode_direct_GCJ=yes
16249       hardcode_shlibpath_var_GCJ=no
16250       ;;
16251
16252     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16253     freebsd2*)
16254       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16255       hardcode_direct_GCJ=yes
16256       hardcode_minus_L_GCJ=yes
16257       hardcode_shlibpath_var_GCJ=no
16258       ;;
16259
16260     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16261     freebsd* | dragonfly*)
16262       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16263       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16264       hardcode_direct_GCJ=yes
16265       hardcode_shlibpath_var_GCJ=no
16266       ;;
16267
16268     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16269     kfreebsd*-gnu)
16270       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16271       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16272       hardcode_direct_GCJ=yes
16273       hardcode_shlibpath_var_GCJ=no
16274       link_all_deplibs_GCJ=no
16275       ;;
16276
16277     hpux9*)
16278       if test "$GCC" = yes; then
16279         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'
16280       else
16281         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'
16282       fi
16283       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284       hardcode_libdir_separator_GCJ=:
16285       hardcode_direct_GCJ=yes
16286
16287       # hardcode_minus_L: Not really in the search PATH,
16288       # but as the default location of the library.
16289       hardcode_minus_L_GCJ=yes
16290       export_dynamic_flag_spec_GCJ='${wl}-E'
16291       ;;
16292
16293     hpux10*)
16294       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16295         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16296       else
16297         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16298       fi
16299       if test "$with_gnu_ld" = no; then
16300         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16301         hardcode_libdir_separator_GCJ=:
16302
16303         hardcode_direct_GCJ=yes
16304         export_dynamic_flag_spec_GCJ='${wl}-E'
16305
16306         # hardcode_minus_L: Not really in the search PATH,
16307         # but as the default location of the library.
16308         hardcode_minus_L_GCJ=yes
16309       fi
16310       ;;
16311
16312     hpux11*)
16313       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16314         case $host_cpu in
16315         hppa*64*)
16316           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16317           ;;
16318         ia64*)
16319           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16320           ;;
16321         *)
16322           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16323           ;;
16324         esac
16325       else
16326         case $host_cpu in
16327         hppa*64*)
16328           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16329           ;;
16330         ia64*)
16331           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16332           ;;
16333         *)
16334           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16335           ;;
16336         esac
16337       fi
16338       if test "$with_gnu_ld" = no; then
16339         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16340         hardcode_libdir_separator_GCJ=:
16341
16342         case $host_cpu in
16343         hppa*64*|ia64*)
16344           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16345           hardcode_direct_GCJ=no
16346           hardcode_shlibpath_var_GCJ=no
16347           ;;
16348         *)
16349           hardcode_direct_GCJ=yes
16350           export_dynamic_flag_spec_GCJ='${wl}-E'
16351
16352           # hardcode_minus_L: Not really in the search PATH,
16353           # but as the default location of the library.
16354           hardcode_minus_L_GCJ=yes
16355           ;;
16356         esac
16357       fi
16358       ;;
16359
16360     irix5* | irix6* | nonstopux*)
16361       if test "$GCC" = yes; then
16362         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'
16363       else
16364         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'
16365         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16366       fi
16367       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16368       hardcode_libdir_separator_GCJ=:
16369       link_all_deplibs_GCJ=yes
16370       ;;
16371
16372     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16373       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16374         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16375       else
16376         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16377       fi
16378       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16379       hardcode_direct_GCJ=yes
16380       hardcode_shlibpath_var_GCJ=no
16381       ;;
16382
16383     newsos6)
16384       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16385       hardcode_direct_GCJ=yes
16386       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16387       hardcode_libdir_separator_GCJ=:
16388       hardcode_shlibpath_var_GCJ=no
16389       ;;
16390
16391     openbsd*)
16392       hardcode_direct_GCJ=yes
16393       hardcode_shlibpath_var_GCJ=no
16394       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16395         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16396         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16397         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16398         export_dynamic_flag_spec_GCJ='${wl}-E'
16399       else
16400        case $host_os in
16401          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16402            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16403            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16404            ;;
16405          *)
16406            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16407            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16408            ;;
16409        esac
16410       fi
16411       ;;
16412
16413     os2*)
16414       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16415       hardcode_minus_L_GCJ=yes
16416       allow_undefined_flag_GCJ=unsupported
16417       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'
16418       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16419       ;;
16420
16421     osf3*)
16422       if test "$GCC" = yes; then
16423         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16424         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'
16425       else
16426         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16427         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'
16428       fi
16429       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16430       hardcode_libdir_separator_GCJ=:
16431       ;;
16432
16433     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16434       if test "$GCC" = yes; then
16435         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16436         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'
16437         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16438       else
16439         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16440         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'
16441         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~
16442         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16443
16444         # Both c and cxx compiler support -rpath directly
16445         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16446       fi
16447       hardcode_libdir_separator_GCJ=:
16448       ;;
16449
16450     solaris*)
16451       no_undefined_flag_GCJ=' -z text'
16452       if test "$GCC" = yes; then
16453         wlarc='${wl}'
16454         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16455         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16456           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16457       else
16458         wlarc=''
16459         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16461         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16462       fi
16463       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16464       hardcode_shlibpath_var_GCJ=no
16465       case $host_os in
16466       solaris2.[0-5] | solaris2.[0-5].*) ;;
16467       *)
16468         # The compiler driver will combine linker options so we
16469         # cannot just pass the convience library names through
16470         # without $wl, iff we do not link with $LD.
16471         # Luckily, gcc supports the same syntax we need for Sun Studio.
16472         # Supported since Solaris 2.6 (maybe 2.5.1?)
16473         case $wlarc in
16474         '')
16475           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16476         *)
16477           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16478         esac ;;
16479       esac
16480       link_all_deplibs_GCJ=yes
16481       ;;
16482
16483     sunos4*)
16484       if test "x$host_vendor" = xsequent; then
16485         # Use $CC to link under sequent, because it throws in some extra .o
16486         # files that make .init and .fini sections work.
16487         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16488       else
16489         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16490       fi
16491       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16492       hardcode_direct_GCJ=yes
16493       hardcode_minus_L_GCJ=yes
16494       hardcode_shlibpath_var_GCJ=no
16495       ;;
16496
16497     sysv4)
16498       case $host_vendor in
16499         sni)
16500           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501           hardcode_direct_GCJ=yes # is this really true???
16502         ;;
16503         siemens)
16504           ## LD is ld it makes a PLAMLIB
16505           ## CC just makes a GrossModule.
16506           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16507           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16508           hardcode_direct_GCJ=no
16509         ;;
16510         motorola)
16511           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16513         ;;
16514       esac
16515       runpath_var='LD_RUN_PATH'
16516       hardcode_shlibpath_var_GCJ=no
16517       ;;
16518
16519     sysv4.3*)
16520       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521       hardcode_shlibpath_var_GCJ=no
16522       export_dynamic_flag_spec_GCJ='-Bexport'
16523       ;;
16524
16525     sysv4*MP*)
16526       if test -d /usr/nec; then
16527         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16528         hardcode_shlibpath_var_GCJ=no
16529         runpath_var=LD_RUN_PATH
16530         hardcode_runpath_var=yes
16531         ld_shlibs_GCJ=yes
16532       fi
16533       ;;
16534
16535     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16536       no_undefined_flag_GCJ='${wl}-z,text'
16537       archive_cmds_need_lc_GCJ=no
16538       hardcode_shlibpath_var_GCJ=no
16539       runpath_var='LD_RUN_PATH'
16540
16541       if test "$GCC" = yes; then
16542         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16544       else
16545         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16547       fi
16548       ;;
16549
16550     sysv5* | sco3.2v5* | sco5v6*)
16551       # Note: We can NOT use -z defs as we might desire, because we do not
16552       # link with -lc, and that would cause any symbols used from libc to
16553       # always be unresolved, which means just about no library would
16554       # ever link correctly.  If we're not using GNU ld we use -z text
16555       # though, which does catch some bad symbols but isn't as heavy-handed
16556       # as -z defs.
16557       no_undefined_flag_GCJ='${wl}-z,text'
16558       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16559       archive_cmds_need_lc_GCJ=no
16560       hardcode_shlibpath_var_GCJ=no
16561       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16562       hardcode_libdir_separator_GCJ=':'
16563       link_all_deplibs_GCJ=yes
16564       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16565       runpath_var='LD_RUN_PATH'
16566
16567       if test "$GCC" = yes; then
16568         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16569         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16570       else
16571         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16572         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16573       fi
16574       ;;
16575
16576     uts4*)
16577       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16579       hardcode_shlibpath_var_GCJ=no
16580       ;;
16581
16582     *)
16583       ld_shlibs_GCJ=no
16584       ;;
16585     esac
16586   fi
16587
16588 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16589 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16590 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16591
16592 #
16593 # Do we need to explicitly link libc?
16594 #
16595 case "x$archive_cmds_need_lc_GCJ" in
16596 x|xyes)
16597   # Assume -lc should be added
16598   archive_cmds_need_lc_GCJ=yes
16599
16600   if test "$enable_shared" = yes && test "$GCC" = yes; then
16601     case $archive_cmds_GCJ in
16602     *'~'*)
16603       # FIXME: we may have to deal with multi-command sequences.
16604       ;;
16605     '$CC '*)
16606       # Test whether the compiler implicitly links with -lc since on some
16607       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16608       # to ld, don't add -lc before -lgcc.
16609       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16610 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16611       $rm conftest*
16612       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16613
16614       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615   (eval $ac_compile) 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } 2>conftest.err; then
16619         soname=conftest
16620         lib=conftest
16621         libobjs=conftest.$ac_objext
16622         deplibs=
16623         wl=$lt_prog_compiler_wl_GCJ
16624         pic_flag=$lt_prog_compiler_pic_GCJ
16625         compiler_flags=-v
16626         linker_flags=-v
16627         verstring=
16628         output_objdir=.
16629         libname=conftest
16630         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16631         allow_undefined_flag_GCJ=
16632         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16633   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16634   ac_status=$?
16635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636   (exit $ac_status); }
16637         then
16638           archive_cmds_need_lc_GCJ=no
16639         else
16640           archive_cmds_need_lc_GCJ=yes
16641         fi
16642         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16643       else
16644         cat conftest.err 1>&5
16645       fi
16646       $rm conftest*
16647       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16648 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16649       ;;
16650     esac
16651   fi
16652   ;;
16653 esac
16654
16655 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16656 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16657 library_names_spec=
16658 libname_spec='lib$name'
16659 soname_spec=
16660 shrext_cmds=".so"
16661 postinstall_cmds=
16662 postuninstall_cmds=
16663 finish_cmds=
16664 finish_eval=
16665 shlibpath_var=
16666 shlibpath_overrides_runpath=unknown
16667 version_type=none
16668 dynamic_linker="$host_os ld.so"
16669 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16670 if test "$GCC" = yes; then
16671   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16672   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16673     # if the path contains ";" then we assume it to be the separator
16674     # otherwise default to the standard path separator (i.e. ":") - it is
16675     # assumed that no part of a normal pathname contains ";" but that should
16676     # okay in the real world where ";" in dirpaths is itself problematic.
16677     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16678   else
16679     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16680   fi
16681 else
16682   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16683 fi
16684 need_lib_prefix=unknown
16685 hardcode_into_libs=no
16686
16687 # when you set need_version to no, make sure it does not cause -set_version
16688 # flags to be left without arguments
16689 need_version=unknown
16690
16691 case $host_os in
16692 aix3*)
16693   version_type=linux
16694   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16695   shlibpath_var=LIBPATH
16696
16697   # AIX 3 has no versioning support, so we append a major version to the name.
16698   soname_spec='${libname}${release}${shared_ext}$major'
16699   ;;
16700
16701 aix4* | aix5*)
16702   version_type=linux
16703   need_lib_prefix=no
16704   need_version=no
16705   hardcode_into_libs=yes
16706   if test "$host_cpu" = ia64; then
16707     # AIX 5 supports IA64
16708     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16709     shlibpath_var=LD_LIBRARY_PATH
16710   else
16711     # With GCC up to 2.95.x, collect2 would create an import file
16712     # for dependence libraries.  The import file would start with
16713     # the line `#! .'.  This would cause the generated library to
16714     # depend on `.', always an invalid library.  This was fixed in
16715     # development snapshots of GCC prior to 3.0.
16716     case $host_os in
16717       aix4 | aix4.[01] | aix4.[01].*)
16718       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16719            echo ' yes '
16720            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16721         :
16722       else
16723         can_build_shared=no
16724       fi
16725       ;;
16726     esac
16727     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16728     # soname into executable. Probably we can add versioning support to
16729     # collect2, so additional links can be useful in future.
16730     if test "$aix_use_runtimelinking" = yes; then
16731       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16732       # instead of lib<name>.a to let people know that these are not
16733       # typical AIX shared libraries.
16734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735     else
16736       # We preserve .a as extension for shared libraries through AIX4.2
16737       # and later when we are not doing run time linking.
16738       library_names_spec='${libname}${release}.a $libname.a'
16739       soname_spec='${libname}${release}${shared_ext}$major'
16740     fi
16741     shlibpath_var=LIBPATH
16742   fi
16743   ;;
16744
16745 amigaos*)
16746   library_names_spec='$libname.ixlibrary $libname.a'
16747   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16748   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'
16749   ;;
16750
16751 beos*)
16752   library_names_spec='${libname}${shared_ext}'
16753   dynamic_linker="$host_os ld.so"
16754   shlibpath_var=LIBRARY_PATH
16755   ;;
16756
16757 bsdi[45]*)
16758   version_type=linux
16759   need_version=no
16760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16761   soname_spec='${libname}${release}${shared_ext}$major'
16762   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16763   shlibpath_var=LD_LIBRARY_PATH
16764   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16765   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16766   # the default ld.so.conf also contains /usr/contrib/lib and
16767   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16768   # libtool to hard-code these into programs
16769   ;;
16770
16771 cygwin* | mingw* | pw32*)
16772   version_type=windows
16773   shrext_cmds=".dll"
16774   need_version=no
16775   need_lib_prefix=no
16776
16777   case $GCC,$host_os in
16778   yes,cygwin* | yes,mingw* | yes,pw32*)
16779     library_names_spec='$libname.dll.a'
16780     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16781     postinstall_cmds='base_file=`basename \${file}`~
16782       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16783       dldir=$destdir/`dirname \$dlpath`~
16784       test -d \$dldir || mkdir -p \$dldir~
16785       $install_prog $dir/$dlname \$dldir/$dlname~
16786       chmod a+x \$dldir/$dlname'
16787     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16788       dlpath=$dir/\$dldll~
16789        $rm \$dlpath'
16790     shlibpath_overrides_runpath=yes
16791
16792     case $host_os in
16793     cygwin*)
16794       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16795       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16796       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16797       ;;
16798     mingw*)
16799       # MinGW DLLs use traditional 'lib' prefix
16800       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16801       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16802       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16803         # It is most probably a Windows format PATH printed by
16804         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16805         # path with ; separators, and with drive letters. We can handle the
16806         # drive letters (cygwin fileutils understands them), so leave them,
16807         # especially as we might pass files found there to a mingw objdump,
16808         # which wouldn't understand a cygwinified path. Ahh.
16809         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16810       else
16811         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16812       fi
16813       ;;
16814     pw32*)
16815       # pw32 DLLs use 'pw' prefix rather than 'lib'
16816       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16817       ;;
16818     esac
16819     ;;
16820
16821   *)
16822     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16823     ;;
16824   esac
16825   dynamic_linker='Win32 ld.exe'
16826   # FIXME: first we should search . and the directory the executable is in
16827   shlibpath_var=PATH
16828   ;;
16829
16830 darwin* | rhapsody*)
16831   dynamic_linker="$host_os dyld"
16832   version_type=darwin
16833   need_lib_prefix=no
16834   need_version=no
16835   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16836   soname_spec='${libname}${release}${major}$shared_ext'
16837   shlibpath_overrides_runpath=yes
16838   shlibpath_var=DYLD_LIBRARY_PATH
16839   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16840   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16841   if test "$GCC" = yes; then
16842     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"`
16843   else
16844     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16845   fi
16846   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16847   ;;
16848
16849 dgux*)
16850   version_type=linux
16851   need_lib_prefix=no
16852   need_version=no
16853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16854   soname_spec='${libname}${release}${shared_ext}$major'
16855   shlibpath_var=LD_LIBRARY_PATH
16856   ;;
16857
16858 freebsd1*)
16859   dynamic_linker=no
16860   ;;
16861
16862 kfreebsd*-gnu)
16863   version_type=linux
16864   need_lib_prefix=no
16865   need_version=no
16866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16867   soname_spec='${libname}${release}${shared_ext}$major'
16868   shlibpath_var=LD_LIBRARY_PATH
16869   shlibpath_overrides_runpath=no
16870   hardcode_into_libs=yes
16871   dynamic_linker='GNU ld.so'
16872   ;;
16873
16874 freebsd* | dragonfly*)
16875   # DragonFly does not have aout.  When/if they implement a new
16876   # versioning mechanism, adjust this.
16877   if test -x /usr/bin/objformat; then
16878     objformat=`/usr/bin/objformat`
16879   else
16880     case $host_os in
16881     freebsd[123]*) objformat=aout ;;
16882     *) objformat=elf ;;
16883     esac
16884   fi
16885   version_type=freebsd-$objformat
16886   case $version_type in
16887     freebsd-elf*)
16888       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16889       need_version=no
16890       need_lib_prefix=no
16891       ;;
16892     freebsd-*)
16893       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16894       need_version=yes
16895       ;;
16896   esac
16897   shlibpath_var=LD_LIBRARY_PATH
16898   case $host_os in
16899   freebsd2*)
16900     shlibpath_overrides_runpath=yes
16901     ;;
16902   freebsd3.[01]* | freebsdelf3.[01]*)
16903     shlibpath_overrides_runpath=yes
16904     hardcode_into_libs=yes
16905     ;;
16906   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16907   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16908     shlibpath_overrides_runpath=no
16909     hardcode_into_libs=yes
16910     ;;
16911   freebsd*) # from 4.6 on
16912     shlibpath_overrides_runpath=yes
16913     hardcode_into_libs=yes
16914     ;;
16915   esac
16916   ;;
16917
16918 gnu*)
16919   version_type=linux
16920   need_lib_prefix=no
16921   need_version=no
16922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16923   soname_spec='${libname}${release}${shared_ext}$major'
16924   shlibpath_var=LD_LIBRARY_PATH
16925   hardcode_into_libs=yes
16926   ;;
16927
16928 hpux9* | hpux10* | hpux11*)
16929   # Give a soname corresponding to the major version so that dld.sl refuses to
16930   # link against other versions.
16931   version_type=sunos
16932   need_lib_prefix=no
16933   need_version=no
16934   case $host_cpu in
16935   ia64*)
16936     shrext_cmds='.so'
16937     hardcode_into_libs=yes
16938     dynamic_linker="$host_os dld.so"
16939     shlibpath_var=LD_LIBRARY_PATH
16940     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942     soname_spec='${libname}${release}${shared_ext}$major'
16943     if test "X$HPUX_IA64_MODE" = X32; then
16944       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16945     else
16946       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16947     fi
16948     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16949     ;;
16950    hppa*64*)
16951      shrext_cmds='.sl'
16952      hardcode_into_libs=yes
16953      dynamic_linker="$host_os dld.sl"
16954      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16955      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16956      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16957      soname_spec='${libname}${release}${shared_ext}$major'
16958      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16959      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16960      ;;
16961    *)
16962     shrext_cmds='.sl'
16963     dynamic_linker="$host_os dld.sl"
16964     shlibpath_var=SHLIB_PATH
16965     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967     soname_spec='${libname}${release}${shared_ext}$major'
16968     ;;
16969   esac
16970   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16971   postinstall_cmds='chmod 555 $lib'
16972   ;;
16973
16974 interix3*)
16975   version_type=linux
16976   need_lib_prefix=no
16977   need_version=no
16978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16979   soname_spec='${libname}${release}${shared_ext}$major'
16980   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16981   shlibpath_var=LD_LIBRARY_PATH
16982   shlibpath_overrides_runpath=no
16983   hardcode_into_libs=yes
16984   ;;
16985
16986 irix5* | irix6* | nonstopux*)
16987   case $host_os in
16988     nonstopux*) version_type=nonstopux ;;
16989     *)
16990         if test "$lt_cv_prog_gnu_ld" = yes; then
16991                 version_type=linux
16992         else
16993                 version_type=irix
16994         fi ;;
16995   esac
16996   need_lib_prefix=no
16997   need_version=no
16998   soname_spec='${libname}${release}${shared_ext}$major'
16999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17000   case $host_os in
17001   irix5* | nonstopux*)
17002     libsuff= shlibsuff=
17003     ;;
17004   *)
17005     case $LD in # libtool.m4 will add one of these switches to LD
17006     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17007       libsuff= shlibsuff= libmagic=32-bit;;
17008     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17009       libsuff=32 shlibsuff=N32 libmagic=N32;;
17010     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17011       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17012     *) libsuff= shlibsuff= libmagic=never-match;;
17013     esac
17014     ;;
17015   esac
17016   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17017   shlibpath_overrides_runpath=no
17018   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17019   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17020   hardcode_into_libs=yes
17021   ;;
17022
17023 # No shared lib support for Linux oldld, aout, or coff.
17024 linux*oldld* | linux*aout* | linux*coff*)
17025   dynamic_linker=no
17026   ;;
17027
17028 # This must be Linux ELF.
17029 linux*)
17030   version_type=linux
17031   need_lib_prefix=no
17032   need_version=no
17033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034   soname_spec='${libname}${release}${shared_ext}$major'
17035   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17036   shlibpath_var=LD_LIBRARY_PATH
17037   shlibpath_overrides_runpath=no
17038   # This implies no fast_install, which is unacceptable.
17039   # Some rework will be needed to allow for fast_install
17040   # before this can be enabled.
17041   hardcode_into_libs=yes
17042
17043   # Append ld.so.conf contents to the search path
17044   if test -f /etc/ld.so.conf; then
17045     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17046     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17047   fi
17048
17049   # We used to test for /lib/ld.so.1 and disable shared libraries on
17050   # powerpc, because MkLinux only supported shared libraries with the
17051   # GNU dynamic linker.  Since this was broken with cross compilers,
17052   # most powerpc-linux boxes support dynamic linking these days and
17053   # people can always --disable-shared, the test was removed, and we
17054   # assume the GNU/Linux dynamic linker is in use.
17055   dynamic_linker='GNU/Linux ld.so'
17056   ;;
17057
17058 netbsdelf*-gnu)
17059   version_type=linux
17060   need_lib_prefix=no
17061   need_version=no
17062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17063   soname_spec='${libname}${release}${shared_ext}$major'
17064   shlibpath_var=LD_LIBRARY_PATH
17065   shlibpath_overrides_runpath=no
17066   hardcode_into_libs=yes
17067   dynamic_linker='NetBSD ld.elf_so'
17068   ;;
17069
17070 knetbsd*-gnu)
17071   version_type=linux
17072   need_lib_prefix=no
17073   need_version=no
17074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17075   soname_spec='${libname}${release}${shared_ext}$major'
17076   shlibpath_var=LD_LIBRARY_PATH
17077   shlibpath_overrides_runpath=no
17078   hardcode_into_libs=yes
17079   dynamic_linker='GNU ld.so'
17080   ;;
17081
17082 netbsd*)
17083   version_type=sunos
17084   need_lib_prefix=no
17085   need_version=no
17086   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17088     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17089     dynamic_linker='NetBSD (a.out) ld.so'
17090   else
17091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17092     soname_spec='${libname}${release}${shared_ext}$major'
17093     dynamic_linker='NetBSD ld.elf_so'
17094   fi
17095   shlibpath_var=LD_LIBRARY_PATH
17096   shlibpath_overrides_runpath=yes
17097   hardcode_into_libs=yes
17098   ;;
17099
17100 newsos6)
17101   version_type=linux
17102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17103   shlibpath_var=LD_LIBRARY_PATH
17104   shlibpath_overrides_runpath=yes
17105   ;;
17106
17107 nto-qnx*)
17108   version_type=linux
17109   need_lib_prefix=no
17110   need_version=no
17111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17112   soname_spec='${libname}${release}${shared_ext}$major'
17113   shlibpath_var=LD_LIBRARY_PATH
17114   shlibpath_overrides_runpath=yes
17115   ;;
17116
17117 openbsd*)
17118   version_type=sunos
17119   sys_lib_dlsearch_path_spec="/usr/lib"
17120   need_lib_prefix=no
17121   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17122   case $host_os in
17123     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17124     *)                         need_version=no  ;;
17125   esac
17126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17128   shlibpath_var=LD_LIBRARY_PATH
17129   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17130     case $host_os in
17131       openbsd2.[89] | openbsd2.[89].*)
17132         shlibpath_overrides_runpath=no
17133         ;;
17134       *)
17135         shlibpath_overrides_runpath=yes
17136         ;;
17137       esac
17138   else
17139     shlibpath_overrides_runpath=yes
17140   fi
17141   ;;
17142
17143 os2*)
17144   libname_spec='$name'
17145   shrext_cmds=".dll"
17146   need_lib_prefix=no
17147   library_names_spec='$libname${shared_ext} $libname.a'
17148   dynamic_linker='OS/2 ld.exe'
17149   shlibpath_var=LIBPATH
17150   ;;
17151
17152 osf3* | osf4* | osf5*)
17153   version_type=osf
17154   need_lib_prefix=no
17155   need_version=no
17156   soname_spec='${libname}${release}${shared_ext}$major'
17157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158   shlibpath_var=LD_LIBRARY_PATH
17159   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17160   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17161   ;;
17162
17163 solaris*)
17164   version_type=linux
17165   need_lib_prefix=no
17166   need_version=no
17167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168   soname_spec='${libname}${release}${shared_ext}$major'
17169   shlibpath_var=LD_LIBRARY_PATH
17170   shlibpath_overrides_runpath=yes
17171   hardcode_into_libs=yes
17172   # ldd complains unless libraries are executable
17173   postinstall_cmds='chmod +x $lib'
17174   ;;
17175
17176 sunos4*)
17177   version_type=sunos
17178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17179   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17180   shlibpath_var=LD_LIBRARY_PATH
17181   shlibpath_overrides_runpath=yes
17182   if test "$with_gnu_ld" = yes; then
17183     need_lib_prefix=no
17184   fi
17185   need_version=yes
17186   ;;
17187
17188 sysv4 | sysv4.3*)
17189   version_type=linux
17190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17191   soname_spec='${libname}${release}${shared_ext}$major'
17192   shlibpath_var=LD_LIBRARY_PATH
17193   case $host_vendor in
17194     sni)
17195       shlibpath_overrides_runpath=no
17196       need_lib_prefix=no
17197       export_dynamic_flag_spec='${wl}-Blargedynsym'
17198       runpath_var=LD_RUN_PATH
17199       ;;
17200     siemens)
17201       need_lib_prefix=no
17202       ;;
17203     motorola)
17204       need_lib_prefix=no
17205       need_version=no
17206       shlibpath_overrides_runpath=no
17207       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17208       ;;
17209   esac
17210   ;;
17211
17212 sysv4*MP*)
17213   if test -d /usr/nec ;then
17214     version_type=linux
17215     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17216     soname_spec='$libname${shared_ext}.$major'
17217     shlibpath_var=LD_LIBRARY_PATH
17218   fi
17219   ;;
17220
17221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17222   version_type=freebsd-elf
17223   need_lib_prefix=no
17224   need_version=no
17225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17226   soname_spec='${libname}${release}${shared_ext}$major'
17227   shlibpath_var=LD_LIBRARY_PATH
17228   hardcode_into_libs=yes
17229   if test "$with_gnu_ld" = yes; then
17230     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17231     shlibpath_overrides_runpath=no
17232   else
17233     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17234     shlibpath_overrides_runpath=yes
17235     case $host_os in
17236       sco3.2v5*)
17237         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17238         ;;
17239     esac
17240   fi
17241   sys_lib_dlsearch_path_spec='/usr/lib'
17242   ;;
17243
17244 uts4*)
17245   version_type=linux
17246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247   soname_spec='${libname}${release}${shared_ext}$major'
17248   shlibpath_var=LD_LIBRARY_PATH
17249   ;;
17250
17251 *)
17252   dynamic_linker=no
17253   ;;
17254 esac
17255 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17256 echo "${ECHO_T}$dynamic_linker" >&6
17257 test "$dynamic_linker" = no && can_build_shared=no
17258
17259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17260 if test "$GCC" = yes; then
17261   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17262 fi
17263
17264 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17265 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17266 hardcode_action_GCJ=
17267 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17268    test -n "$runpath_var_GCJ" || \
17269    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17270
17271   # We can hardcode non-existant directories.
17272   if test "$hardcode_direct_GCJ" != no &&
17273      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17274      # have to relink, otherwise we might link with an installed library
17275      # when we should be linking with a yet-to-be-installed one
17276      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17277      test "$hardcode_minus_L_GCJ" != no; then
17278     # Linking always hardcodes the temporary library directory.
17279     hardcode_action_GCJ=relink
17280   else
17281     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17282     hardcode_action_GCJ=immediate
17283   fi
17284 else
17285   # We cannot hardcode anything, or else we can only hardcode existing
17286   # directories.
17287   hardcode_action_GCJ=unsupported
17288 fi
17289 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17290 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17291
17292 if test "$hardcode_action_GCJ" = relink; then
17293   # Fast installation is not supported
17294   enable_fast_install=no
17295 elif test "$shlibpath_overrides_runpath" = yes ||
17296      test "$enable_shared" = no; then
17297   # Fast installation is not necessary
17298   enable_fast_install=needless
17299 fi
17300
17301
17302 # The else clause should only fire when bootstrapping the
17303 # libtool distribution, otherwise you forgot to ship ltmain.sh
17304 # with your package, and you will get complaints that there are
17305 # no rules to generate ltmain.sh.
17306 if test -f "$ltmain"; then
17307   # See if we are running on zsh, and set the options which allow our commands through
17308   # without removal of \ escapes.
17309   if test -n "${ZSH_VERSION+set}" ; then
17310     setopt NO_GLOB_SUBST
17311   fi
17312   # Now quote all the things that may contain metacharacters while being
17313   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17314   # variables and quote the copies for generation of the libtool script.
17315   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17316     SED SHELL STRIP \
17317     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17318     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17319     deplibs_check_method reload_flag reload_cmds need_locks \
17320     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17321     lt_cv_sys_global_symbol_to_c_name_address \
17322     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17323     old_postinstall_cmds old_postuninstall_cmds \
17324     compiler_GCJ \
17325     CC_GCJ \
17326     LD_GCJ \
17327     lt_prog_compiler_wl_GCJ \
17328     lt_prog_compiler_pic_GCJ \
17329     lt_prog_compiler_static_GCJ \
17330     lt_prog_compiler_no_builtin_flag_GCJ \
17331     export_dynamic_flag_spec_GCJ \
17332     thread_safe_flag_spec_GCJ \
17333     whole_archive_flag_spec_GCJ \
17334     enable_shared_with_static_runtimes_GCJ \
17335     old_archive_cmds_GCJ \
17336     old_archive_from_new_cmds_GCJ \
17337     predep_objects_GCJ \
17338     postdep_objects_GCJ \
17339     predeps_GCJ \
17340     postdeps_GCJ \
17341     compiler_lib_search_path_GCJ \
17342     archive_cmds_GCJ \
17343     archive_expsym_cmds_GCJ \
17344     postinstall_cmds_GCJ \
17345     postuninstall_cmds_GCJ \
17346     old_archive_from_expsyms_cmds_GCJ \
17347     allow_undefined_flag_GCJ \
17348     no_undefined_flag_GCJ \
17349     export_symbols_cmds_GCJ \
17350     hardcode_libdir_flag_spec_GCJ \
17351     hardcode_libdir_flag_spec_ld_GCJ \
17352     hardcode_libdir_separator_GCJ \
17353     hardcode_automatic_GCJ \
17354     module_cmds_GCJ \
17355     module_expsym_cmds_GCJ \
17356     lt_cv_prog_compiler_c_o_GCJ \
17357     exclude_expsyms_GCJ \
17358     include_expsyms_GCJ; do
17359
17360     case $var in
17361     old_archive_cmds_GCJ | \
17362     old_archive_from_new_cmds_GCJ | \
17363     archive_cmds_GCJ | \
17364     archive_expsym_cmds_GCJ | \
17365     module_cmds_GCJ | \
17366     module_expsym_cmds_GCJ | \
17367     old_archive_from_expsyms_cmds_GCJ | \
17368     export_symbols_cmds_GCJ | \
17369     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17370     postinstall_cmds | postuninstall_cmds | \
17371     old_postinstall_cmds | old_postuninstall_cmds | \
17372     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17373       # Double-quote double-evaled strings.
17374       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17375       ;;
17376     *)
17377       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17378       ;;
17379     esac
17380   done
17381
17382   case $lt_echo in
17383   *'\$0 --fallback-echo"')
17384     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17385     ;;
17386   esac
17387
17388 cfgfile="$ofile"
17389
17390   cat <<__EOF__ >> "$cfgfile"
17391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17392
17393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17394
17395 # Shell to use when invoking shell scripts.
17396 SHELL=$lt_SHELL
17397
17398 # Whether or not to build shared libraries.
17399 build_libtool_libs=$enable_shared
17400
17401 # Whether or not to build static libraries.
17402 build_old_libs=$enable_static
17403
17404 # Whether or not to add -lc for building shared libraries.
17405 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17406
17407 # Whether or not to disallow shared libs when runtime libs are static
17408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17409
17410 # Whether or not to optimize for fast installation.
17411 fast_install=$enable_fast_install
17412
17413 # The host system.
17414 host_alias=$host_alias
17415 host=$host
17416 host_os=$host_os
17417
17418 # The build system.
17419 build_alias=$build_alias
17420 build=$build
17421 build_os=$build_os
17422
17423 # An echo program that does not interpret backslashes.
17424 echo=$lt_echo
17425
17426 # The archiver.
17427 AR=$lt_AR
17428 AR_FLAGS=$lt_AR_FLAGS
17429
17430 # A C compiler.
17431 LTCC=$lt_LTCC
17432
17433 # LTCC compiler flags.
17434 LTCFLAGS=$lt_LTCFLAGS
17435
17436 # A language-specific compiler.
17437 CC=$lt_compiler_GCJ
17438
17439 # Is the compiler the GNU C compiler?
17440 with_gcc=$GCC_GCJ
17441
17442 # An ERE matcher.
17443 EGREP=$lt_EGREP
17444
17445 # The linker used to build libraries.
17446 LD=$lt_LD_GCJ
17447
17448 # Whether we need hard or soft links.
17449 LN_S=$lt_LN_S
17450
17451 # A BSD-compatible nm program.
17452 NM=$lt_NM
17453
17454 # A symbol stripping program
17455 STRIP=$lt_STRIP
17456
17457 # Used to examine libraries when file_magic_cmd begins "file"
17458 MAGIC_CMD=$MAGIC_CMD
17459
17460 # Used on cygwin: DLL creation program.
17461 DLLTOOL="$DLLTOOL"
17462
17463 # Used on cygwin: object dumper.
17464 OBJDUMP="$OBJDUMP"
17465
17466 # Used on cygwin: assembler.
17467 AS="$AS"
17468
17469 # The name of the directory that contains temporary libtool files.
17470 objdir=$objdir
17471
17472 # How to create reloadable object files.
17473 reload_flag=$lt_reload_flag
17474 reload_cmds=$lt_reload_cmds
17475
17476 # How to pass a linker flag through the compiler.
17477 wl=$lt_lt_prog_compiler_wl_GCJ
17478
17479 # Object file suffix (normally "o").
17480 objext="$ac_objext"
17481
17482 # Old archive suffix (normally "a").
17483 libext="$libext"
17484
17485 # Shared library suffix (normally ".so").
17486 shrext_cmds='$shrext_cmds'
17487
17488 # Executable file suffix (normally "").
17489 exeext="$exeext"
17490
17491 # Additional compiler flags for building library objects.
17492 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17493 pic_mode=$pic_mode
17494
17495 # What is the maximum length of a command?
17496 max_cmd_len=$lt_cv_sys_max_cmd_len
17497
17498 # Does compiler simultaneously support -c and -o options?
17499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17500
17501 # Must we lock files when doing compilation?
17502 need_locks=$lt_need_locks
17503
17504 # Do we need the lib prefix for modules?
17505 need_lib_prefix=$need_lib_prefix
17506
17507 # Do we need a version for libraries?
17508 need_version=$need_version
17509
17510 # Whether dlopen is supported.
17511 dlopen_support=$enable_dlopen
17512
17513 # Whether dlopen of programs is supported.
17514 dlopen_self=$enable_dlopen_self
17515
17516 # Whether dlopen of statically linked programs is supported.
17517 dlopen_self_static=$enable_dlopen_self_static
17518
17519 # Compiler flag to prevent dynamic linking.
17520 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17521
17522 # Compiler flag to turn off builtin functions.
17523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17524
17525 # Compiler flag to allow reflexive dlopens.
17526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17527
17528 # Compiler flag to generate shared objects directly from archives.
17529 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17530
17531 # Compiler flag to generate thread-safe objects.
17532 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17533
17534 # Library versioning type.
17535 version_type=$version_type
17536
17537 # Format of library name prefix.
17538 libname_spec=$lt_libname_spec
17539
17540 # List of archive names.  First name is the real one, the rest are links.
17541 # The last name is the one that the linker finds with -lNAME.
17542 library_names_spec=$lt_library_names_spec
17543
17544 # The coded name of the library, if different from the real name.
17545 soname_spec=$lt_soname_spec
17546
17547 # Commands used to build and install an old-style archive.
17548 RANLIB=$lt_RANLIB
17549 old_archive_cmds=$lt_old_archive_cmds_GCJ
17550 old_postinstall_cmds=$lt_old_postinstall_cmds
17551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17552
17553 # Create an old-style archive from a shared archive.
17554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17555
17556 # Create a temporary old-style archive to link instead of a shared archive.
17557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17558
17559 # Commands used to build and install a shared archive.
17560 archive_cmds=$lt_archive_cmds_GCJ
17561 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17562 postinstall_cmds=$lt_postinstall_cmds
17563 postuninstall_cmds=$lt_postuninstall_cmds
17564
17565 # Commands used to build a loadable module (assumed same as above if empty)
17566 module_cmds=$lt_module_cmds_GCJ
17567 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17568
17569 # Commands to strip libraries.
17570 old_striplib=$lt_old_striplib
17571 striplib=$lt_striplib
17572
17573 # Dependencies to place before the objects being linked to create a
17574 # shared library.
17575 predep_objects=$lt_predep_objects_GCJ
17576
17577 # Dependencies to place after the objects being linked to create a
17578 # shared library.
17579 postdep_objects=$lt_postdep_objects_GCJ
17580
17581 # Dependencies to place before the objects being linked to create a
17582 # shared library.
17583 predeps=$lt_predeps_GCJ
17584
17585 # Dependencies to place after the objects being linked to create a
17586 # shared library.
17587 postdeps=$lt_postdeps_GCJ
17588
17589 # The library search path used internally by the compiler when linking
17590 # a shared library.
17591 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17592
17593 # Method to check whether dependent libraries are shared objects.
17594 deplibs_check_method=$lt_deplibs_check_method
17595
17596 # Command to use when deplibs_check_method == file_magic.
17597 file_magic_cmd=$lt_file_magic_cmd
17598
17599 # Flag that allows shared libraries with undefined symbols to be built.
17600 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17601
17602 # Flag that forces no undefined symbols.
17603 no_undefined_flag=$lt_no_undefined_flag_GCJ
17604
17605 # Commands used to finish a libtool library installation in a directory.
17606 finish_cmds=$lt_finish_cmds
17607
17608 # Same as above, but a single script fragment to be evaled but not shown.
17609 finish_eval=$lt_finish_eval
17610
17611 # Take the output of nm and produce a listing of raw symbols and C names.
17612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17613
17614 # Transform the output of nm in a proper C declaration
17615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17616
17617 # Transform the output of nm in a C name address pair
17618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17619
17620 # This is the shared library runtime path variable.
17621 runpath_var=$runpath_var
17622
17623 # This is the shared library path variable.
17624 shlibpath_var=$shlibpath_var
17625
17626 # Is shlibpath searched before the hard-coded library search path?
17627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17628
17629 # How to hardcode a shared library path into an executable.
17630 hardcode_action=$hardcode_action_GCJ
17631
17632 # Whether we should hardcode library paths into libraries.
17633 hardcode_into_libs=$hardcode_into_libs
17634
17635 # Flag to hardcode \$libdir into a binary during linking.
17636 # This must work even if \$libdir does not exist.
17637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17638
17639 # If ld is used when linking, flag to hardcode \$libdir into
17640 # a binary during linking. This must work even if \$libdir does
17641 # not exist.
17642 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17643
17644 # Whether we need a single -rpath flag with a separated argument.
17645 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17646
17647 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17648 # resulting binary.
17649 hardcode_direct=$hardcode_direct_GCJ
17650
17651 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17652 # resulting binary.
17653 hardcode_minus_L=$hardcode_minus_L_GCJ
17654
17655 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17656 # the resulting binary.
17657 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17658
17659 # Set to yes if building a shared library automatically hardcodes DIR into the library
17660 # and all subsequent libraries and executables linked against it.
17661 hardcode_automatic=$hardcode_automatic_GCJ
17662
17663 # Variables whose values should be saved in libtool wrapper scripts and
17664 # restored at relink time.
17665 variables_saved_for_relink="$variables_saved_for_relink"
17666
17667 # Whether libtool must link a program against all its dependency libraries.
17668 link_all_deplibs=$link_all_deplibs_GCJ
17669
17670 # Compile-time system search path for libraries
17671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17672
17673 # Run-time system search path for libraries
17674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17675
17676 # Fix the shell variable \$srcfile for the compiler.
17677 fix_srcfile_path="$fix_srcfile_path_GCJ"
17678
17679 # Set to yes if exported symbols are required.
17680 always_export_symbols=$always_export_symbols_GCJ
17681
17682 # The commands to list exported symbols.
17683 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17684
17685 # The commands to extract the exported symbol list from a shared archive.
17686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17687
17688 # Symbols that should not be listed in the preloaded symbols.
17689 exclude_expsyms=$lt_exclude_expsyms_GCJ
17690
17691 # Symbols that must always be exported.
17692 include_expsyms=$lt_include_expsyms_GCJ
17693
17694 # ### END LIBTOOL TAG CONFIG: $tagname
17695
17696 __EOF__
17697
17698
17699 else
17700   # If there is no Makefile yet, we rely on a make rule to execute
17701   # `config.status --recheck' to rerun these tests and create the
17702   # libtool script then.
17703   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17704   if test -f "$ltmain_in"; then
17705     test -f Makefile && make "$ltmain"
17706   fi
17707 fi
17708
17709
17710 ac_ext=c
17711 ac_cpp='$CPP $CPPFLAGS'
17712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715
17716 CC="$lt_save_CC"
17717
17718         else
17719           tagname=""
17720         fi
17721         ;;
17722
17723       RC)
17724
17725
17726
17727 # Source file extension for RC test sources.
17728 ac_ext=rc
17729
17730 # Object file extension for compiled RC test sources.
17731 objext=o
17732 objext_RC=$objext
17733
17734 # Code to be used in simple compile tests
17735 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17736
17737 # Code to be used in simple link tests
17738 lt_simple_link_test_code="$lt_simple_compile_test_code"
17739
17740 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17741
17742 # If no C compiler was specified, use CC.
17743 LTCC=${LTCC-"$CC"}
17744
17745 # If no C compiler flags were specified, use CFLAGS.
17746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17747
17748 # Allow CC to be a program name with arguments.
17749 compiler=$CC
17750
17751
17752 # save warnings/boilerplate of simple test code
17753 ac_outfile=conftest.$ac_objext
17754 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17756 _lt_compiler_boilerplate=`cat conftest.err`
17757 $rm conftest*
17758
17759 ac_outfile=conftest.$ac_objext
17760 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17762 _lt_linker_boilerplate=`cat conftest.err`
17763 $rm conftest*
17764
17765
17766 # Allow CC to be a program name with arguments.
17767 lt_save_CC="$CC"
17768 CC=${RC-"windres"}
17769 compiler=$CC
17770 compiler_RC=$CC
17771 for cc_temp in $compiler""; do
17772   case $cc_temp in
17773     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17774     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17775     \-*) ;;
17776     *) break;;
17777   esac
17778 done
17779 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17780
17781 lt_cv_prog_compiler_c_o_RC=yes
17782
17783 # The else clause should only fire when bootstrapping the
17784 # libtool distribution, otherwise you forgot to ship ltmain.sh
17785 # with your package, and you will get complaints that there are
17786 # no rules to generate ltmain.sh.
17787 if test -f "$ltmain"; then
17788   # See if we are running on zsh, and set the options which allow our commands through
17789   # without removal of \ escapes.
17790   if test -n "${ZSH_VERSION+set}" ; then
17791     setopt NO_GLOB_SUBST
17792   fi
17793   # Now quote all the things that may contain metacharacters while being
17794   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17795   # variables and quote the copies for generation of the libtool script.
17796   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17797     SED SHELL STRIP \
17798     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17799     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17800     deplibs_check_method reload_flag reload_cmds need_locks \
17801     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17802     lt_cv_sys_global_symbol_to_c_name_address \
17803     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17804     old_postinstall_cmds old_postuninstall_cmds \
17805     compiler_RC \
17806     CC_RC \
17807     LD_RC \
17808     lt_prog_compiler_wl_RC \
17809     lt_prog_compiler_pic_RC \
17810     lt_prog_compiler_static_RC \
17811     lt_prog_compiler_no_builtin_flag_RC \
17812     export_dynamic_flag_spec_RC \
17813     thread_safe_flag_spec_RC \
17814     whole_archive_flag_spec_RC \
17815     enable_shared_with_static_runtimes_RC \
17816     old_archive_cmds_RC \
17817     old_archive_from_new_cmds_RC \
17818     predep_objects_RC \
17819     postdep_objects_RC \
17820     predeps_RC \
17821     postdeps_RC \
17822     compiler_lib_search_path_RC \
17823     archive_cmds_RC \
17824     archive_expsym_cmds_RC \
17825     postinstall_cmds_RC \
17826     postuninstall_cmds_RC \
17827     old_archive_from_expsyms_cmds_RC \
17828     allow_undefined_flag_RC \
17829     no_undefined_flag_RC \
17830     export_symbols_cmds_RC \
17831     hardcode_libdir_flag_spec_RC \
17832     hardcode_libdir_flag_spec_ld_RC \
17833     hardcode_libdir_separator_RC \
17834     hardcode_automatic_RC \
17835     module_cmds_RC \
17836     module_expsym_cmds_RC \
17837     lt_cv_prog_compiler_c_o_RC \
17838     exclude_expsyms_RC \
17839     include_expsyms_RC; do
17840
17841     case $var in
17842     old_archive_cmds_RC | \
17843     old_archive_from_new_cmds_RC | \
17844     archive_cmds_RC | \
17845     archive_expsym_cmds_RC | \
17846     module_cmds_RC | \
17847     module_expsym_cmds_RC | \
17848     old_archive_from_expsyms_cmds_RC | \
17849     export_symbols_cmds_RC | \
17850     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17851     postinstall_cmds | postuninstall_cmds | \
17852     old_postinstall_cmds | old_postuninstall_cmds | \
17853     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17854       # Double-quote double-evaled strings.
17855       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17856       ;;
17857     *)
17858       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17859       ;;
17860     esac
17861   done
17862
17863   case $lt_echo in
17864   *'\$0 --fallback-echo"')
17865     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17866     ;;
17867   esac
17868
17869 cfgfile="$ofile"
17870
17871   cat <<__EOF__ >> "$cfgfile"
17872 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17873
17874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17875
17876 # Shell to use when invoking shell scripts.
17877 SHELL=$lt_SHELL
17878
17879 # Whether or not to build shared libraries.
17880 build_libtool_libs=$enable_shared
17881
17882 # Whether or not to build static libraries.
17883 build_old_libs=$enable_static
17884
17885 # Whether or not to add -lc for building shared libraries.
17886 build_libtool_need_lc=$archive_cmds_need_lc_RC
17887
17888 # Whether or not to disallow shared libs when runtime libs are static
17889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17890
17891 # Whether or not to optimize for fast installation.
17892 fast_install=$enable_fast_install
17893
17894 # The host system.
17895 host_alias=$host_alias
17896 host=$host
17897 host_os=$host_os
17898
17899 # The build system.
17900 build_alias=$build_alias
17901 build=$build
17902 build_os=$build_os
17903
17904 # An echo program that does not interpret backslashes.
17905 echo=$lt_echo
17906
17907 # The archiver.
17908 AR=$lt_AR
17909 AR_FLAGS=$lt_AR_FLAGS
17910
17911 # A C compiler.
17912 LTCC=$lt_LTCC
17913
17914 # LTCC compiler flags.
17915 LTCFLAGS=$lt_LTCFLAGS
17916
17917 # A language-specific compiler.
17918 CC=$lt_compiler_RC
17919
17920 # Is the compiler the GNU C compiler?
17921 with_gcc=$GCC_RC
17922
17923 # An ERE matcher.
17924 EGREP=$lt_EGREP
17925
17926 # The linker used to build libraries.
17927 LD=$lt_LD_RC
17928
17929 # Whether we need hard or soft links.
17930 LN_S=$lt_LN_S
17931
17932 # A BSD-compatible nm program.
17933 NM=$lt_NM
17934
17935 # A symbol stripping program
17936 STRIP=$lt_STRIP
17937
17938 # Used to examine libraries when file_magic_cmd begins "file"
17939 MAGIC_CMD=$MAGIC_CMD
17940
17941 # Used on cygwin: DLL creation program.
17942 DLLTOOL="$DLLTOOL"
17943
17944 # Used on cygwin: object dumper.
17945 OBJDUMP="$OBJDUMP"
17946
17947 # Used on cygwin: assembler.
17948 AS="$AS"
17949
17950 # The name of the directory that contains temporary libtool files.
17951 objdir=$objdir
17952
17953 # How to create reloadable object files.
17954 reload_flag=$lt_reload_flag
17955 reload_cmds=$lt_reload_cmds
17956
17957 # How to pass a linker flag through the compiler.
17958 wl=$lt_lt_prog_compiler_wl_RC
17959
17960 # Object file suffix (normally "o").
17961 objext="$ac_objext"
17962
17963 # Old archive suffix (normally "a").
17964 libext="$libext"
17965
17966 # Shared library suffix (normally ".so").
17967 shrext_cmds='$shrext_cmds'
17968
17969 # Executable file suffix (normally "").
17970 exeext="$exeext"
17971
17972 # Additional compiler flags for building library objects.
17973 pic_flag=$lt_lt_prog_compiler_pic_RC
17974 pic_mode=$pic_mode
17975
17976 # What is the maximum length of a command?
17977 max_cmd_len=$lt_cv_sys_max_cmd_len
17978
17979 # Does compiler simultaneously support -c and -o options?
17980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17981
17982 # Must we lock files when doing compilation?
17983 need_locks=$lt_need_locks
17984
17985 # Do we need the lib prefix for modules?
17986 need_lib_prefix=$need_lib_prefix
17987
17988 # Do we need a version for libraries?
17989 need_version=$need_version
17990
17991 # Whether dlopen is supported.
17992 dlopen_support=$enable_dlopen
17993
17994 # Whether dlopen of programs is supported.
17995 dlopen_self=$enable_dlopen_self
17996
17997 # Whether dlopen of statically linked programs is supported.
17998 dlopen_self_static=$enable_dlopen_self_static
17999
18000 # Compiler flag to prevent dynamic linking.
18001 link_static_flag=$lt_lt_prog_compiler_static_RC
18002
18003 # Compiler flag to turn off builtin functions.
18004 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18005
18006 # Compiler flag to allow reflexive dlopens.
18007 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18008
18009 # Compiler flag to generate shared objects directly from archives.
18010 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18011
18012 # Compiler flag to generate thread-safe objects.
18013 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18014
18015 # Library versioning type.
18016 version_type=$version_type
18017
18018 # Format of library name prefix.
18019 libname_spec=$lt_libname_spec
18020
18021 # List of archive names.  First name is the real one, the rest are links.
18022 # The last name is the one that the linker finds with -lNAME.
18023 library_names_spec=$lt_library_names_spec
18024
18025 # The coded name of the library, if different from the real name.
18026 soname_spec=$lt_soname_spec
18027
18028 # Commands used to build and install an old-style archive.
18029 RANLIB=$lt_RANLIB
18030 old_archive_cmds=$lt_old_archive_cmds_RC
18031 old_postinstall_cmds=$lt_old_postinstall_cmds
18032 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18033
18034 # Create an old-style archive from a shared archive.
18035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18036
18037 # Create a temporary old-style archive to link instead of a shared archive.
18038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18039
18040 # Commands used to build and install a shared archive.
18041 archive_cmds=$lt_archive_cmds_RC
18042 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18043 postinstall_cmds=$lt_postinstall_cmds
18044 postuninstall_cmds=$lt_postuninstall_cmds
18045
18046 # Commands used to build a loadable module (assumed same as above if empty)
18047 module_cmds=$lt_module_cmds_RC
18048 module_expsym_cmds=$lt_module_expsym_cmds_RC
18049
18050 # Commands to strip libraries.
18051 old_striplib=$lt_old_striplib
18052 striplib=$lt_striplib
18053
18054 # Dependencies to place before the objects being linked to create a
18055 # shared library.
18056 predep_objects=$lt_predep_objects_RC
18057
18058 # Dependencies to place after the objects being linked to create a
18059 # shared library.
18060 postdep_objects=$lt_postdep_objects_RC
18061
18062 # Dependencies to place before the objects being linked to create a
18063 # shared library.
18064 predeps=$lt_predeps_RC
18065
18066 # Dependencies to place after the objects being linked to create a
18067 # shared library.
18068 postdeps=$lt_postdeps_RC
18069
18070 # The library search path used internally by the compiler when linking
18071 # a shared library.
18072 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18073
18074 # Method to check whether dependent libraries are shared objects.
18075 deplibs_check_method=$lt_deplibs_check_method
18076
18077 # Command to use when deplibs_check_method == file_magic.
18078 file_magic_cmd=$lt_file_magic_cmd
18079
18080 # Flag that allows shared libraries with undefined symbols to be built.
18081 allow_undefined_flag=$lt_allow_undefined_flag_RC
18082
18083 # Flag that forces no undefined symbols.
18084 no_undefined_flag=$lt_no_undefined_flag_RC
18085
18086 # Commands used to finish a libtool library installation in a directory.
18087 finish_cmds=$lt_finish_cmds
18088
18089 # Same as above, but a single script fragment to be evaled but not shown.
18090 finish_eval=$lt_finish_eval
18091
18092 # Take the output of nm and produce a listing of raw symbols and C names.
18093 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18094
18095 # Transform the output of nm in a proper C declaration
18096 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18097
18098 # Transform the output of nm in a C name address pair
18099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18100
18101 # This is the shared library runtime path variable.
18102 runpath_var=$runpath_var
18103
18104 # This is the shared library path variable.
18105 shlibpath_var=$shlibpath_var
18106
18107 # Is shlibpath searched before the hard-coded library search path?
18108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18109
18110 # How to hardcode a shared library path into an executable.
18111 hardcode_action=$hardcode_action_RC
18112
18113 # Whether we should hardcode library paths into libraries.
18114 hardcode_into_libs=$hardcode_into_libs
18115
18116 # Flag to hardcode \$libdir into a binary during linking.
18117 # This must work even if \$libdir does not exist.
18118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18119
18120 # If ld is used when linking, flag to hardcode \$libdir into
18121 # a binary during linking. This must work even if \$libdir does
18122 # not exist.
18123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18124
18125 # Whether we need a single -rpath flag with a separated argument.
18126 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18127
18128 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18129 # resulting binary.
18130 hardcode_direct=$hardcode_direct_RC
18131
18132 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18133 # resulting binary.
18134 hardcode_minus_L=$hardcode_minus_L_RC
18135
18136 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18137 # the resulting binary.
18138 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18139
18140 # Set to yes if building a shared library automatically hardcodes DIR into the library
18141 # and all subsequent libraries and executables linked against it.
18142 hardcode_automatic=$hardcode_automatic_RC
18143
18144 # Variables whose values should be saved in libtool wrapper scripts and
18145 # restored at relink time.
18146 variables_saved_for_relink="$variables_saved_for_relink"
18147
18148 # Whether libtool must link a program against all its dependency libraries.
18149 link_all_deplibs=$link_all_deplibs_RC
18150
18151 # Compile-time system search path for libraries
18152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18153
18154 # Run-time system search path for libraries
18155 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18156
18157 # Fix the shell variable \$srcfile for the compiler.
18158 fix_srcfile_path="$fix_srcfile_path_RC"
18159
18160 # Set to yes if exported symbols are required.
18161 always_export_symbols=$always_export_symbols_RC
18162
18163 # The commands to list exported symbols.
18164 export_symbols_cmds=$lt_export_symbols_cmds_RC
18165
18166 # The commands to extract the exported symbol list from a shared archive.
18167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18168
18169 # Symbols that should not be listed in the preloaded symbols.
18170 exclude_expsyms=$lt_exclude_expsyms_RC
18171
18172 # Symbols that must always be exported.
18173 include_expsyms=$lt_include_expsyms_RC
18174
18175 # ### END LIBTOOL TAG CONFIG: $tagname
18176
18177 __EOF__
18178
18179
18180 else
18181   # If there is no Makefile yet, we rely on a make rule to execute
18182   # `config.status --recheck' to rerun these tests and create the
18183   # libtool script then.
18184   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18185   if test -f "$ltmain_in"; then
18186     test -f Makefile && make "$ltmain"
18187   fi
18188 fi
18189
18190
18191 ac_ext=c
18192 ac_cpp='$CPP $CPPFLAGS'
18193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18196
18197 CC="$lt_save_CC"
18198
18199         ;;
18200
18201       *)
18202         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18203 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18204    { (exit 1); exit 1; }; }
18205         ;;
18206       esac
18207
18208       # Append the new tag name to the list of available tags.
18209       if test -n "$tagname" ; then
18210       available_tags="$available_tags $tagname"
18211     fi
18212     fi
18213   done
18214   IFS="$lt_save_ifs"
18215
18216   # Now substitute the updated list of available tags.
18217   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18218     mv "${ofile}T" "$ofile"
18219     chmod +x "$ofile"
18220   else
18221     rm -f "${ofile}T"
18222     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18223 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18224    { (exit 1); exit 1; }; }
18225   fi
18226 fi
18227
18228
18229
18230 # This can be used to rebuild libtool when needed
18231 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18232
18233 # Always use our own libtool.
18234 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18235
18236 # Prevent multiple expansion
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258 # Checks for libraries.
18259
18260 echo "$as_me:$LINENO: checking for main in -lapr-0" >&5
18261 echo $ECHO_N "checking for main in -lapr-0... $ECHO_C" >&6
18262 if test "${ac_cv_lib_apr_0_main+set}" = set; then
18263   echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
18265   ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-lapr-0  $LIBS"
18267 cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273
18274
18275 int
18276 main ()
18277 {
18278 main ();
18279   ;
18280   return 0;
18281 }
18282 _ACEOF
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18285   (eval $ac_link) 2>conftest.er1
18286   ac_status=$?
18287   grep -v '^ *+' conftest.er1 >conftest.err
18288   rm -f conftest.er1
18289   cat conftest.err >&5
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); } &&
18292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294   (eval $ac_try) 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; } &&
18298          { ac_try='test -s conftest$ac_exeext'
18299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300   (eval $ac_try) 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); }; }; then
18304   ac_cv_lib_apr_0_main=yes
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309 ac_cv_lib_apr_0_main=no
18310 fi
18311 rm -f conftest.err conftest.$ac_objext \
18312       conftest$ac_exeext conftest.$ac_ext
18313 LIBS=$ac_check_lib_save_LIBS
18314 fi
18315 echo "$as_me:$LINENO: result: $ac_cv_lib_apr_0_main" >&5
18316 echo "${ECHO_T}$ac_cv_lib_apr_0_main" >&6
18317 if test $ac_cv_lib_apr_0_main = yes; then
18318   cat >>confdefs.h <<_ACEOF
18319 #define HAVE_LIBAPR_0 1
18320 _ACEOF
18321
18322   LIBS="-lapr-0 $LIBS"
18323
18324 fi
18325
18326
18327
18328 # Check whether --with-apache-header or --without-apache-header was given.
18329 if test "${with_apache_header+set}" = set; then
18330   withval="$with_apache_header"
18331
18332 fi;
18333 #[, ACTION-IF-GIVEN[, ACTION-IF-NOT-GIVEN]])
18334 if test "x$with_apache_header" = "x"; then
18335     { { echo "$as_me:$LINENO: error:
18336 Please specify the --with-apache-header option.
18337 " >&5
18338 echo "$as_me: error:
18339 Please specify the --with-apache-header option.
18340 " >&2;}
18341    { (exit 1); exit 1; }; }
18342 fi
18343 if test "x$with_apache_header" = "xyes"; then
18344     { { echo "$as_me:$LINENO: error:
18345 Please specify the --with-apache-header option. And, please specify the place of the header file.
18346
18347 " >&5
18348 echo "$as_me: error:
18349 Please specify the --with-apache-header option. And, please specify the place of the header file.
18350
18351 " >&2;}
18352    { (exit 1); exit 1; }; }
18353 fi
18354
18355
18356 # Check whether --with-apxs or --without-apxs was given.
18357 if test "${with_apxs+set}" = set; then
18358   withval="$with_apxs"
18359
18360 fi;
18361 if test "x$with_apxs" = "x" ; then
18362   APXS=""
18363 fi
18364 if test "x$with_apxs" = "xyes" ; then
18365     { { echo "$as_me:$LINENO: error:
18366 Please specify the --with-apxs option. And, please specify the place of the apxs program.
18367 " >&5
18368 echo "$as_me: error:
18369 Please specify the --with-apxs option. And, please specify the place of the apxs program.
18370 " >&2;}
18371    { (exit 1); exit 1; }; }
18372 fi
18373
18374
18375 # Check whether --with-apr-config or --without-apr-config was given.
18376 if test "${with_apr_config+set}" = set; then
18377   withval="$with_apr_config"
18378
18379 fi;
18380 if test "x$with_apr_config" = "xyes" ; then
18381     { { echo "$as_me:$LINENO: error:
18382 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
18383 " >&5
18384 echo "$as_me: error:
18385 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
18386 " >&2;}
18387    { (exit 1); exit 1; }; }
18388 fi
18389
18390
18391 # Check whether --enable-img-conv-f or --disable-img-conv-f was given.
18392 if test "${enable_img_conv_f+set}" = set; then
18393   enableval="$enable_img_conv_f"
18394
18395 fi;
18396 if test "x$enable_img_conv_f" = "xyes"; then
18397   QDEFS=""
18398 else
18399   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
18400 fi
18401
18402 # Check whether --enable-dump-log or --disable-dump-log was given.
18403 if test "${enable_dump_log+set}" = set; then
18404   enableval="$enable_dump_log"
18405
18406 fi;
18407 if test "x$enable_dump_log" = "xyes"; then
18408   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
18409 else
18410     if test "x$enable_dump_log" != "x" ; then
18411         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
18412     fi
18413 fi
18414
18415
18416 if test "x$with_apxs" = "x" ; then
18417   # Extract the first word of "apxs", so it can be a program name with args.
18418 set dummy apxs; ac_word=$2
18419 echo "$as_me:$LINENO: checking for $ac_word" >&5
18420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18421 if test "${ac_cv_path_APXS+set}" = set; then
18422   echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424   case $APXS in
18425   [\\/]* | ?:[\\/]*)
18426   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
18427   ;;
18428   *)
18429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18430 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
18431 for as_dir in $as_dummy
18432 do
18433   IFS=$as_save_IFS
18434   test -z "$as_dir" && as_dir=.
18435   for ac_exec_ext in '' $ac_executable_extensions; do
18436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18437     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
18438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18439     break 2
18440   fi
18441 done
18442 done
18443
18444   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
18445   ;;
18446 esac
18447 fi
18448 APXS=$ac_cv_path_APXS
18449
18450 if test -n "$APXS"; then
18451   echo "$as_me:$LINENO: result: $APXS" >&5
18452 echo "${ECHO_T}$APXS" >&6
18453 else
18454   echo "$as_me:$LINENO: result: no" >&5
18455 echo "${ECHO_T}no" >&6
18456 fi
18457
18458   if test "x$APXS" = "xno"; then
18459       { { echo "$as_me:$LINENO: error: apxs not found." >&5
18460 echo "$as_me: error: apxs not found." >&2;}
18461    { (exit 1); exit 1; }; }
18462   fi
18463 fi
18464 if test "x$with_apxs" != "x" ; then
18465   APXS=$with_apxs
18466 fi
18467
18468 # Extract the first word of "libtool", so it can be a program name with args.
18469 set dummy libtool; ac_word=$2
18470 echo "$as_me:$LINENO: checking for $ac_word" >&5
18471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18472 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475   case $LIBTOOL in
18476   [\\/]* | ?:[\\/]*)
18477   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18478   ;;
18479   *)
18480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18481 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
18482 for as_dir in $as_dummy
18483 do
18484   IFS=$as_save_IFS
18485   test -z "$as_dir" && as_dir=.
18486   for ac_exec_ext in '' $ac_executable_extensions; do
18487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18488     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18490     break 2
18491   fi
18492 done
18493 done
18494
18495   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
18496   ;;
18497 esac
18498 fi
18499 LIBTOOL=$ac_cv_path_LIBTOOL
18500
18501 if test -n "$LIBTOOL"; then
18502   echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18503 echo "${ECHO_T}$LIBTOOL" >&6
18504 else
18505   echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6
18507 fi
18508
18509 if test "x$LIBTOOL" = "xno"; then
18510     { { echo "$as_me:$LINENO: error: libtool not found." >&5
18511 echo "$as_me: error: libtool not found." >&2;}
18512    { (exit 1); exit 1; }; }
18513 fi
18514
18515
18516 # Extract the first word of "Wand-config", so it can be a program name with args.
18517 set dummy Wand-config; ac_word=$2
18518 echo "$as_me:$LINENO: checking for $ac_word" >&5
18519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   case $WAND_CONFIG in
18524   [\\/]* | ?:[\\/]*)
18525   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
18526   ;;
18527   *)
18528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
18530 for as_dir in $as_dummy
18531 do
18532   IFS=$as_save_IFS
18533   test -z "$as_dir" && as_dir=.
18534   for ac_exec_ext in '' $ac_executable_extensions; do
18535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18536     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18538     break 2
18539   fi
18540 done
18541 done
18542
18543   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
18544   ;;
18545 esac
18546 fi
18547 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
18548
18549 if test -n "$WAND_CONFIG"; then
18550   echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
18551 echo "${ECHO_T}$WAND_CONFIG" >&6
18552 else
18553   echo "$as_me:$LINENO: result: no" >&5
18554 echo "${ECHO_T}no" >&6
18555 fi
18556
18557 if test "x$WAND_CONFIG" = "xno" ; then
18558     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
18559 echo "$as_me: error: wand-config not found." >&2;}
18560    { (exit 1); exit 1; }; }
18561 fi
18562
18563 if test "x$with_apr_config" = "x" ; then
18564   # Extract the first word of "apr-config", so it can be a program name with args.
18565 set dummy apr-config; ac_word=$2
18566 echo "$as_me:$LINENO: checking for $ac_word" >&5
18567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18568 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571   case $APR_CONFIG in
18572   [\\/]* | ?:[\\/]*)
18573   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
18574   ;;
18575   *)
18576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18577 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
18578 for as_dir in $as_dummy
18579 do
18580   IFS=$as_save_IFS
18581   test -z "$as_dir" && as_dir=.
18582   for ac_exec_ext in '' $ac_executable_extensions; do
18583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18584     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18586     break 2
18587   fi
18588 done
18589 done
18590
18591   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
18592   ;;
18593 esac
18594 fi
18595 APR_CONFIG=$ac_cv_path_APR_CONFIG
18596
18597 if test -n "$APR_CONFIG"; then
18598   echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
18599 echo "${ECHO_T}$APR_CONFIG" >&6
18600 else
18601   echo "$as_me:$LINENO: result: no" >&5
18602 echo "${ECHO_T}no" >&6
18603 fi
18604
18605   if test "x$APR_CONFIG" = "xno" ; then
18606       { { echo "$as_me:$LINENO: error: apr-config not found." >&5
18607 echo "$as_me: error: apr-config not found." >&2;}
18608    { (exit 1); exit 1; }; }
18609   fi
18610 fi
18611 if test "x$with_apr_config" != "x" ; then
18612   APR_CONFIG=$with_apr_config
18613 fi
18614
18615
18616 # Check whether --with-iconv or --without-iconv was given.
18617 if test "${with_iconv+set}" = set; then
18618   withval="$with_iconv"
18619
18620 fi;
18621
18622 # Check whether --with-iconv_hook or --without-iconv_hook was given.
18623 if test "${with_iconv_hook+set}" = set; then
18624   withval="$with_iconv_hook"
18625
18626 fi;
18627 if test "x$with_iconv" = "x" -a "x$with_iconv_hook" = "x" ; then
18628   echo "$as_me:$LINENO: checking for iconv_open in -liconv_hook" >&5
18629 echo $ECHO_N "checking for iconv_open in -liconv_hook... $ECHO_C" >&6
18630 if test "${ac_cv_lib_iconv_hook_iconv_open+set}" = set; then
18631   echo $ECHO_N "(cached) $ECHO_C" >&6
18632 else
18633   ac_check_lib_save_LIBS=$LIBS
18634 LIBS="-liconv_hook  $LIBS"
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h.  */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h.  */
18641
18642 /* Override any gcc2 internal prototype to avoid an error.  */
18643 #ifdef __cplusplus
18644 extern "C"
18645 #endif
18646 /* We use char because int might match the return type of a gcc2
18647    builtin and then its argument prototype would still apply.  */
18648 char iconv_open ();
18649 int
18650 main ()
18651 {
18652 iconv_open ();
18653   ;
18654   return 0;
18655 }
18656 _ACEOF
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18659   (eval $ac_link) 2>conftest.er1
18660   ac_status=$?
18661   grep -v '^ *+' conftest.er1 >conftest.err
18662   rm -f conftest.er1
18663   cat conftest.err >&5
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } &&
18666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668   (eval $ac_try) 2>&5
18669   ac_status=$?
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); }; } &&
18672          { ac_try='test -s conftest$ac_exeext'
18673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674   (eval $ac_try) 2>&5
18675   ac_status=$?
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); }; }; then
18678   ac_cv_lib_iconv_hook_iconv_open=yes
18679 else
18680   echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18682
18683 ac_cv_lib_iconv_hook_iconv_open=no
18684 fi
18685 rm -f conftest.err conftest.$ac_objext \
18686       conftest$ac_exeext conftest.$ac_ext
18687 LIBS=$ac_check_lib_save_LIBS
18688 fi
18689 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_hook_iconv_open" >&5
18690 echo "${ECHO_T}$ac_cv_lib_iconv_hook_iconv_open" >&6
18691 if test $ac_cv_lib_iconv_hook_iconv_open = yes; then
18692
18693       with_iconv="ok"
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE_LIBICONV_HOOK
18697 _ACEOF
18698
18699
18700 else
18701
18702     echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18703 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18704 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18705   echo $ECHO_N "(cached) $ECHO_C" >&6
18706 else
18707   ac_check_lib_save_LIBS=$LIBS
18708 LIBS="-liconv  $LIBS"
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715
18716 /* Override any gcc2 internal prototype to avoid an error.  */
18717 #ifdef __cplusplus
18718 extern "C"
18719 #endif
18720 /* We use char because int might match the return type of a gcc2
18721    builtin and then its argument prototype would still apply.  */
18722 char iconv_open ();
18723 int
18724 main ()
18725 {
18726 iconv_open ();
18727   ;
18728   return 0;
18729 }
18730 _ACEOF
18731 rm -f conftest.$ac_objext conftest$ac_exeext
18732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18733   (eval $ac_link) 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } &&
18740          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742   (eval $ac_try) 2>&5
18743   ac_status=$?
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); }; } &&
18746          { ac_try='test -s conftest$ac_exeext'
18747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748   (eval $ac_try) 2>&5
18749   ac_status=$?
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); }; }; then
18752   ac_cv_lib_iconv_iconv_open=yes
18753 else
18754   echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18756
18757 ac_cv_lib_iconv_iconv_open=no
18758 fi
18759 rm -f conftest.err conftest.$ac_objext \
18760       conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18762 fi
18763 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18764 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18765 if test $ac_cv_lib_iconv_iconv_open = yes; then
18766
18767       with_iconv="ok"
18768
18769 cat >>confdefs.h <<\_ACEOF
18770 #define HAVE_LIBICONV
18771 _ACEOF
18772
18773
18774 else
18775
18776       witn_iconv=""
18777
18778 fi
18779
18780
18781 fi
18782
18783 fi
18784
18785 if test "x$with_iconv" != "xok" ; then
18786   if test "x$with_iconv" = "xyes" ; then
18787       { { echo "$as_me:$LINENO: error:
18788   Please specify the --with-iconv option. And, please specify the place of the libiconv program.
18789   " >&5
18790 echo "$as_me: error:
18791   Please specify the --with-iconv option. And, please specify the place of the libiconv program.
18792   " >&2;}
18793    { (exit 1); exit 1; }; }
18794   fi
18795   if test "x$with_iconv" != "x" ; then
18796     LIBS="${LIBS} -L$with_iconv -liconv "
18797
18798 cat >>confdefs.h <<\_ACEOF
18799 #define HAVE_LIBICONV
18800 _ACEOF
18801
18802   fi
18803 fi
18804 if test "x$with_iconv" = "x" ; then
18805   if test "x$with_iconv_hook" = "xyes" ; then
18806       { { echo "$as_me:$LINENO: error:
18807   Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
18808   " >&5
18809 echo "$as_me: error:
18810   Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
18811   " >&2;}
18812    { (exit 1); exit 1; }; }
18813   fi
18814   if test "x$with_iconv_hook" != "x" ; then
18815     LIBS="${LIBS} -L${with_iconv_hook} -liconv_hook "
18816
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_LIBICONV_HOOK
18819 _ACEOF
18820
18821   fi
18822   if test "x$with_iconv_hook" = "x" ; then
18823       { { echo "$as_me:$LINENO: error:
18824   Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
18825   " >&5
18826 echo "$as_me: error:
18827   Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
18828   " >&2;}
18829    { (exit 1); exit 1; }; }
18830   fi
18831 fi
18832
18833
18834 case $host_os in
18835   freebsd*)
18836     CFLAGS="${CFLAGS} -I/usr/local/include "
18837     ;;
18838 esac
18839
18840
18841 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
18842 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
18843 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
18844 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
18845
18846
18847
18848
18849
18850
18851
18852 # Checks for header files.
18853 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18854 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18855 if test "${ac_cv_header_stdc+set}" = set; then
18856   echo $ECHO_N "(cached) $ECHO_C" >&6
18857 else
18858   cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h.  */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h.  */
18864 #include <stdlib.h>
18865 #include <stdarg.h>
18866 #include <string.h>
18867 #include <float.h>
18868
18869 int
18870 main ()
18871 {
18872
18873   ;
18874   return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest.$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879   (eval $ac_compile) 2>conftest.er1
18880   ac_status=$?
18881   grep -v '^ *+' conftest.er1 >conftest.err
18882   rm -f conftest.er1
18883   cat conftest.err >&5
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); } &&
18886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888   (eval $ac_try) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; } &&
18892          { ac_try='test -s conftest.$ac_objext'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   ac_cv_header_stdc=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 ac_cv_header_stdc=no
18904 fi
18905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18906
18907 if test $ac_cv_header_stdc = yes; then
18908   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18909   cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h.  */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h.  */
18915 #include <string.h>
18916
18917 _ACEOF
18918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18919   $EGREP "memchr" >/dev/null 2>&1; then
18920   :
18921 else
18922   ac_cv_header_stdc=no
18923 fi
18924 rm -f conftest*
18925
18926 fi
18927
18928 if test $ac_cv_header_stdc = yes; then
18929   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18930   cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936 #include <stdlib.h>
18937
18938 _ACEOF
18939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18940   $EGREP "free" >/dev/null 2>&1; then
18941   :
18942 else
18943   ac_cv_header_stdc=no
18944 fi
18945 rm -f conftest*
18946
18947 fi
18948
18949 if test $ac_cv_header_stdc = yes; then
18950   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18951   if test "$cross_compiling" = yes; then
18952   :
18953 else
18954   cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960 #include <ctype.h>
18961 #if ((' ' & 0x0FF) == 0x020)
18962 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18963 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18964 #else
18965 # define ISLOWER(c) \
18966                    (('a' <= (c) && (c) <= 'i') \
18967                      || ('j' <= (c) && (c) <= 'r') \
18968                      || ('s' <= (c) && (c) <= 'z'))
18969 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18970 #endif
18971
18972 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18973 int
18974 main ()
18975 {
18976   int i;
18977   for (i = 0; i < 256; i++)
18978     if (XOR (islower (i), ISLOWER (i))
18979         || toupper (i) != TOUPPER (i))
18980       exit(2);
18981   exit (0);
18982 }
18983 _ACEOF
18984 rm -f conftest$ac_exeext
18985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18986   (eval $ac_link) 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991   (eval $ac_try) 2>&5
18992   ac_status=$?
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); }; }; then
18995   :
18996 else
18997   echo "$as_me: program exited with status $ac_status" >&5
18998 echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19000
19001 ( exit $ac_status )
19002 ac_cv_header_stdc=no
19003 fi
19004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19005 fi
19006 fi
19007 fi
19008 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19009 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19010 if test $ac_cv_header_stdc = yes; then
19011
19012 cat >>confdefs.h <<\_ACEOF
19013 #define STDC_HEADERS 1
19014 _ACEOF
19015
19016 fi
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
19027 do
19028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030   echo "$as_me:$LINENO: checking for $ac_header" >&5
19031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 fi
19035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19037 else
19038   # Is the header compilable?
19039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047 $ac_includes_default
19048 #include <$ac_header>
19049 _ACEOF
19050 rm -f conftest.$ac_objext
19051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19052   (eval $ac_compile) 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } &&
19059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061   (eval $ac_try) 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; } &&
19065          { ac_try='test -s conftest.$ac_objext'
19066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067   (eval $ac_try) 2>&5
19068   ac_status=$?
19069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070   (exit $ac_status); }; }; then
19071   ac_header_compiler=yes
19072 else
19073   echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076 ac_header_compiler=no
19077 fi
19078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19080 echo "${ECHO_T}$ac_header_compiler" >&6
19081
19082 # Is the header present?
19083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091 #include <$ac_header>
19092 _ACEOF
19093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19095   ac_status=$?
19096   grep -v '^ *+' conftest.er1 >conftest.err
19097   rm -f conftest.er1
19098   cat conftest.err >&5
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); } >/dev/null; then
19101   if test -s conftest.err; then
19102     ac_cpp_err=$ac_c_preproc_warn_flag
19103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19104   else
19105     ac_cpp_err=
19106   fi
19107 else
19108   ac_cpp_err=yes
19109 fi
19110 if test -z "$ac_cpp_err"; then
19111   ac_header_preproc=yes
19112 else
19113   echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19115
19116   ac_header_preproc=no
19117 fi
19118 rm -f conftest.err conftest.$ac_ext
19119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19120 echo "${ECHO_T}$ac_header_preproc" >&6
19121
19122 # So?  What about this header?
19123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19124   yes:no: )
19125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19129     ac_header_preproc=yes
19130     ;;
19131   no:yes:* )
19132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19144     (
19145       cat <<\_ASBOX
19146 ## ----------------------------------- ##
19147 ## Report this to the mod_chxj lists.  ##
19148 ## ----------------------------------- ##
19149 _ASBOX
19150     ) |
19151       sed "s/^/$as_me: WARNING:     /" >&2
19152     ;;
19153 esac
19154 echo "$as_me:$LINENO: checking for $ac_header" >&5
19155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   eval "$as_ac_Header=\$ac_header_preproc"
19160 fi
19161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19163
19164 fi
19165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19166   cat >>confdefs.h <<_ACEOF
19167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19168 _ACEOF
19169
19170 fi
19171
19172 done
19173
19174 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
19175
19176
19177 for ac_header in $APR_HEADER_DIR/apr_shm.h $APR_HEADER_DIR/apr_global_mutex.h
19178 do
19179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19181   echo "$as_me:$LINENO: checking for $ac_header" >&5
19182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184   echo $ECHO_N "(cached) $ECHO_C" >&6
19185 fi
19186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19188 else
19189   # Is the header compilable?
19190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198 $ac_includes_default
19199 #include <$ac_header>
19200 _ACEOF
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203   (eval $ac_compile) 2>conftest.er1
19204   ac_status=$?
19205   grep -v '^ *+' conftest.er1 >conftest.err
19206   rm -f conftest.er1
19207   cat conftest.err >&5
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } &&
19210          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212   (eval $ac_try) 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; } &&
19216          { ac_try='test -s conftest.$ac_objext'
19217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218   (eval $ac_try) 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); }; }; then
19222   ac_header_compiler=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227 ac_header_compiler=no
19228 fi
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19231 echo "${ECHO_T}$ac_header_compiler" >&6
19232
19233 # Is the header present?
19234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 #include <$ac_header>
19243 _ACEOF
19244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } >/dev/null; then
19252   if test -s conftest.err; then
19253     ac_cpp_err=$ac_c_preproc_warn_flag
19254     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19255   else
19256     ac_cpp_err=
19257   fi
19258 else
19259   ac_cpp_err=yes
19260 fi
19261 if test -z "$ac_cpp_err"; then
19262   ac_header_preproc=yes
19263 else
19264   echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267   ac_header_preproc=no
19268 fi
19269 rm -f conftest.err conftest.$ac_ext
19270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19271 echo "${ECHO_T}$ac_header_preproc" >&6
19272
19273 # So?  What about this header?
19274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19275   yes:no: )
19276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19280     ac_header_preproc=yes
19281     ;;
19282   no:yes:* )
19283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19295     (
19296       cat <<\_ASBOX
19297 ## ----------------------------------- ##
19298 ## Report this to the mod_chxj lists.  ##
19299 ## ----------------------------------- ##
19300 _ASBOX
19301     ) |
19302       sed "s/^/$as_me: WARNING:     /" >&2
19303     ;;
19304 esac
19305 echo "$as_me:$LINENO: checking for $ac_header" >&5
19306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   eval "$as_ac_Header=\$ac_header_preproc"
19311 fi
19312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19314
19315 fi
19316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19317   cat >>confdefs.h <<_ACEOF
19318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19319 _ACEOF
19320
19321 fi
19322
19323 done
19324
19325
19326 for ac_header in $with_apache_header/ap_regex.h
19327 do
19328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19330   echo "$as_me:$LINENO: checking for $ac_header" >&5
19331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 fi
19335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19337 else
19338   # Is the header compilable?
19339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347 $ac_includes_default
19348 #include <$ac_header>
19349 _ACEOF
19350 rm -f conftest.$ac_objext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19352   (eval $ac_compile) 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } &&
19359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361   (eval $ac_try) 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; } &&
19365          { ac_try='test -s conftest.$ac_objext'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; }; then
19371   ac_header_compiler=yes
19372 else
19373   echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376 ac_header_compiler=no
19377 fi
19378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19380 echo "${ECHO_T}$ac_header_compiler" >&6
19381
19382 # Is the header present?
19383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391 #include <$ac_header>
19392 _ACEOF
19393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19395   ac_status=$?
19396   grep -v '^ *+' conftest.er1 >conftest.err
19397   rm -f conftest.er1
19398   cat conftest.err >&5
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); } >/dev/null; then
19401   if test -s conftest.err; then
19402     ac_cpp_err=$ac_c_preproc_warn_flag
19403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19404   else
19405     ac_cpp_err=
19406   fi
19407 else
19408   ac_cpp_err=yes
19409 fi
19410 if test -z "$ac_cpp_err"; then
19411   ac_header_preproc=yes
19412 else
19413   echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416   ac_header_preproc=no
19417 fi
19418 rm -f conftest.err conftest.$ac_ext
19419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19420 echo "${ECHO_T}$ac_header_preproc" >&6
19421
19422 # So?  What about this header?
19423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19424   yes:no: )
19425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19429     ac_header_preproc=yes
19430     ;;
19431   no:yes:* )
19432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19444     (
19445       cat <<\_ASBOX
19446 ## ----------------------------------- ##
19447 ## Report this to the mod_chxj lists.  ##
19448 ## ----------------------------------- ##
19449 _ASBOX
19450     ) |
19451       sed "s/^/$as_me: WARNING:     /" >&2
19452     ;;
19453 esac
19454 echo "$as_me:$LINENO: checking for $ac_header" >&5
19455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19457   echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459   eval "$as_ac_Header=\$ac_header_preproc"
19460 fi
19461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19463
19464 fi
19465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19466   cat >>confdefs.h <<_ACEOF
19467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19468 _ACEOF
19469
19470 cat >>confdefs.h <<\_ACEOF
19471 #define HAVE_AP_REGEX_H
19472 _ACEOF
19473
19474 fi
19475
19476 done
19477
19478
19479 # Checks for typedefs, structures, and compiler characteristics.
19480 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19481 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19482 if test "${ac_cv_c_const+set}" = set; then
19483   echo $ECHO_N "(cached) $ECHO_C" >&6
19484 else
19485   cat >conftest.$ac_ext <<_ACEOF
19486 /* confdefs.h.  */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h.  */
19491
19492 int
19493 main ()
19494 {
19495 /* FIXME: Include the comments suggested by Paul. */
19496 #ifndef __cplusplus
19497   /* Ultrix mips cc rejects this.  */
19498   typedef int charset[2];
19499   const charset x;
19500   /* SunOS 4.1.1 cc rejects this.  */
19501   char const *const *ccp;
19502   char **p;
19503   /* NEC SVR4.0.2 mips cc rejects this.  */
19504   struct point {int x, y;};
19505   static struct point const zero = {0,0};
19506   /* AIX XL C 1.02.0.0 rejects this.
19507      It does not let you subtract one const X* pointer from another in
19508      an arm of an if-expression whose if-part is not a constant
19509      expression */
19510   const char *g = "string";
19511   ccp = &g + (g ? g-g : 0);
19512   /* HPUX 7.0 cc rejects these. */
19513   ++ccp;
19514   p = (char**) ccp;
19515   ccp = (char const *const *) p;
19516   { /* SCO 3.2v4 cc rejects this.  */
19517     char *t;
19518     char const *s = 0 ? (char *) 0 : (char const *) 0;
19519
19520     *t++ = 0;
19521   }
19522   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19523     int x[] = {25, 17};
19524     const int *foo = &x[0];
19525     ++foo;
19526   }
19527   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19528     typedef const int *iptr;
19529     iptr p = 0;
19530     ++p;
19531   }
19532   { /* AIX XL C 1.02.0.0 rejects this saying
19533        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19534     struct s { int j; const int *ap[3]; };
19535     struct s *b; b->j = 5;
19536   }
19537   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19538     const int foo = 10;
19539   }
19540 #endif
19541
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 rm -f conftest.$ac_objext
19547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548   (eval $ac_compile) 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } &&
19555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557   (eval $ac_try) 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; } &&
19561          { ac_try='test -s conftest.$ac_objext'
19562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563   (eval $ac_try) 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; }; then
19567   ac_cv_c_const=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572 ac_cv_c_const=no
19573 fi
19574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19575 fi
19576 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19577 echo "${ECHO_T}$ac_cv_c_const" >&6
19578 if test $ac_cv_c_const = no; then
19579
19580 cat >>confdefs.h <<\_ACEOF
19581 #define const
19582 _ACEOF
19583
19584 fi
19585
19586
19587 # Checks for library functions.
19588
19589 for ac_header in stdlib.h
19590 do
19591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19593   echo "$as_me:$LINENO: checking for $ac_header" >&5
19594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19596   echo $ECHO_N "(cached) $ECHO_C" >&6
19597 fi
19598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19600 else
19601   # Is the header compilable?
19602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 $ac_includes_default
19611 #include <$ac_header>
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19615   (eval $ac_compile) 2>conftest.er1
19616   ac_status=$?
19617   grep -v '^ *+' conftest.er1 >conftest.err
19618   rm -f conftest.er1
19619   cat conftest.err >&5
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); } &&
19622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624   (eval $ac_try) 2>&5
19625   ac_status=$?
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; } &&
19628          { ac_try='test -s conftest.$ac_objext'
19629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630   (eval $ac_try) 2>&5
19631   ac_status=$?
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); }; }; then
19634   ac_header_compiler=yes
19635 else
19636   echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_header_compiler=no
19640 fi
19641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19643 echo "${ECHO_T}$ac_header_compiler" >&6
19644
19645 # Is the header present?
19646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654 #include <$ac_header>
19655 _ACEOF
19656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19658   ac_status=$?
19659   grep -v '^ *+' conftest.er1 >conftest.err
19660   rm -f conftest.er1
19661   cat conftest.err >&5
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); } >/dev/null; then
19664   if test -s conftest.err; then
19665     ac_cpp_err=$ac_c_preproc_warn_flag
19666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19667   else
19668     ac_cpp_err=
19669   fi
19670 else
19671   ac_cpp_err=yes
19672 fi
19673 if test -z "$ac_cpp_err"; then
19674   ac_header_preproc=yes
19675 else
19676   echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679   ac_header_preproc=no
19680 fi
19681 rm -f conftest.err conftest.$ac_ext
19682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19683 echo "${ECHO_T}$ac_header_preproc" >&6
19684
19685 # So?  What about this header?
19686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19687   yes:no: )
19688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19692     ac_header_preproc=yes
19693     ;;
19694   no:yes:* )
19695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19697     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19698 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19699     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19701     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19702 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19705     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19707     (
19708       cat <<\_ASBOX
19709 ## ----------------------------------- ##
19710 ## Report this to the mod_chxj lists.  ##
19711 ## ----------------------------------- ##
19712 _ASBOX
19713     ) |
19714       sed "s/^/$as_me: WARNING:     /" >&2
19715     ;;
19716 esac
19717 echo "$as_me:$LINENO: checking for $ac_header" >&5
19718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19720   echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722   eval "$as_ac_Header=\$ac_header_preproc"
19723 fi
19724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19726
19727 fi
19728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19729   cat >>confdefs.h <<_ACEOF
19730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19731 _ACEOF
19732
19733 fi
19734
19735 done
19736
19737 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
19738 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
19739 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
19740   echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742   if test "$cross_compiling" = yes; then
19743   ac_cv_func_malloc_0_nonnull=no
19744 else
19745   cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h.  */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h.  */
19751 #if STDC_HEADERS || HAVE_STDLIB_H
19752 # include <stdlib.h>
19753 #else
19754 char *malloc ();
19755 #endif
19756
19757 int
19758 main ()
19759 {
19760 exit (malloc (0) ? 0 : 1);
19761   ;
19762   return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest$ac_exeext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19767   (eval $ac_link) 2>&5
19768   ac_status=$?
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772   (eval $ac_try) 2>&5
19773   ac_status=$?
19774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775   (exit $ac_status); }; }; then
19776   ac_cv_func_malloc_0_nonnull=yes
19777 else
19778   echo "$as_me: program exited with status $ac_status" >&5
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782 ( exit $ac_status )
19783 ac_cv_func_malloc_0_nonnull=no
19784 fi
19785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19786 fi
19787 fi
19788 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
19789 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
19790 if test $ac_cv_func_malloc_0_nonnull = yes; then
19791
19792 cat >>confdefs.h <<\_ACEOF
19793 #define HAVE_MALLOC 1
19794 _ACEOF
19795
19796 else
19797   cat >>confdefs.h <<\_ACEOF
19798 #define HAVE_MALLOC 0
19799 _ACEOF
19800
19801    case $LIBOBJS in
19802     "malloc.$ac_objext"   | \
19803   *" malloc.$ac_objext"   | \
19804     "malloc.$ac_objext "* | \
19805   *" malloc.$ac_objext "* ) ;;
19806   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
19807 esac
19808
19809
19810 cat >>confdefs.h <<\_ACEOF
19811 #define malloc rpl_malloc
19812 _ACEOF
19813
19814 fi
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
19827 do
19828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19829 echo "$as_me:$LINENO: checking for $ac_func" >&5
19830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19831 if eval "test \"\${$as_ac_var+set}\" = set"; then
19832   echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834   cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19842 #define $ac_func innocuous_$ac_func
19843
19844 /* System header to define __stub macros and hopefully few prototypes,
19845     which can conflict with char $ac_func (); below.
19846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19847     <limits.h> exists even on freestanding compilers.  */
19848
19849 #ifdef __STDC__
19850 # include <limits.h>
19851 #else
19852 # include <assert.h>
19853 #endif
19854
19855 #undef $ac_func
19856
19857 /* Override any gcc2 internal prototype to avoid an error.  */
19858 #ifdef __cplusplus
19859 extern "C"
19860 {
19861 #endif
19862 /* We use char because int might match the return type of a gcc2
19863    builtin and then its argument prototype would still apply.  */
19864 char $ac_func ();
19865 /* The GNU C library defines this for functions which it implements
19866     to always fail with ENOSYS.  Some functions are actually named
19867     something starting with __ and the normal name is an alias.  */
19868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19869 choke me
19870 #else
19871 char (*f) () = $ac_func;
19872 #endif
19873 #ifdef __cplusplus
19874 }
19875 #endif
19876
19877 int
19878 main ()
19879 {
19880 return f != $ac_func;
19881   ;
19882   return 0;
19883 }
19884 _ACEOF
19885 rm -f conftest.$ac_objext conftest$ac_exeext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19887   (eval $ac_link) 2>conftest.er1
19888   ac_status=$?
19889   grep -v '^ *+' conftest.er1 >conftest.err
19890   rm -f conftest.er1
19891   cat conftest.err >&5
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } &&
19894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896   (eval $ac_try) 2>&5
19897   ac_status=$?
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); }; } &&
19900          { ac_try='test -s conftest$ac_exeext'
19901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902   (eval $ac_try) 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; }; then
19906   eval "$as_ac_var=yes"
19907 else
19908   echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911 eval "$as_ac_var=no"
19912 fi
19913 rm -f conftest.err conftest.$ac_objext \
19914       conftest$ac_exeext conftest.$ac_ext
19915 fi
19916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19918 if test `eval echo '${'$as_ac_var'}'` = yes; then
19919   cat >>confdefs.h <<_ACEOF
19920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19921 _ACEOF
19922
19923 fi
19924 done
19925
19926
19927
19928
19929                     ac_config_files="$ac_config_files Makefile src/Makefile"
19930
19931 cat >confcache <<\_ACEOF
19932 # This file is a shell script that caches the results of configure
19933 # tests run on this system so they can be shared between configure
19934 # scripts and configure runs, see configure's option --config-cache.
19935 # It is not useful on other systems.  If it contains results you don't
19936 # want to keep, you may remove or edit it.
19937 #
19938 # config.status only pays attention to the cache file if you give it
19939 # the --recheck option to rerun configure.
19940 #
19941 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19942 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19943 # following values.
19944
19945 _ACEOF
19946
19947 # The following way of writing the cache mishandles newlines in values,
19948 # but we know of no workaround that is simple, portable, and efficient.
19949 # So, don't put newlines in cache variables' values.
19950 # Ultrix sh set writes to stderr and can't be redirected directly,
19951 # and sets the high bit in the cache file unless we assign to the vars.
19952 {
19953   (set) 2>&1 |
19954     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19955     *ac_space=\ *)
19956       # `set' does not quote correctly, so add quotes (double-quote
19957       # substitution turns \\\\ into \\, and sed turns \\ into \).
19958       sed -n \
19959         "s/'/'\\\\''/g;
19960           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19961       ;;
19962     *)
19963       # `set' quotes correctly as required by POSIX, so do not add quotes.
19964       sed -n \
19965         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19966       ;;
19967     esac;
19968 } |
19969   sed '
19970      t clear
19971      : clear
19972      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19973      t end
19974      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19975      : end' >>confcache
19976 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19977   if test -w $cache_file; then
19978     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19979     cat confcache >$cache_file
19980   else
19981     echo "not updating unwritable cache $cache_file"
19982   fi
19983 fi
19984 rm -f confcache
19985
19986 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19987 # Let make expand exec_prefix.
19988 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19989
19990 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19991 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19992 # trailing colons and then remove the whole line if VPATH becomes empty
19993 # (actually we leave an empty line to preserve line numbers).
19994 if test "x$srcdir" = x.; then
19995   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19996 s/:*\$(srcdir):*/:/;
19997 s/:*\${srcdir}:*/:/;
19998 s/:*@srcdir@:*/:/;
19999 s/^\([^=]*=[     ]*\):*/\1/;
20000 s/:*$//;
20001 s/^[^=]*=[       ]*$//;
20002 }'
20003 fi
20004
20005 DEFS=-DHAVE_CONFIG_H
20006
20007 ac_libobjs=
20008 ac_ltlibobjs=
20009 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20010   # 1. Remove the extension, and $U if already installed.
20011   ac_i=`echo "$ac_i" |
20012          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20013   # 2. Add them.
20014   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20015   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20016 done
20017 LIBOBJS=$ac_libobjs
20018
20019 LTLIBOBJS=$ac_ltlibobjs
20020
20021
20022
20023 : ${CONFIG_STATUS=./config.status}
20024 ac_clean_files_save=$ac_clean_files
20025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20026 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20027 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20028 cat >$CONFIG_STATUS <<_ACEOF
20029 #! $SHELL
20030 # Generated by $as_me.
20031 # Run this file to recreate the current configuration.
20032 # Compiler output produced by configure, useful for debugging
20033 # configure, is in config.log if it exists.
20034
20035 debug=false
20036 ac_cs_recheck=false
20037 ac_cs_silent=false
20038 SHELL=\${CONFIG_SHELL-$SHELL}
20039 _ACEOF
20040
20041 cat >>$CONFIG_STATUS <<\_ACEOF
20042 ## --------------------- ##
20043 ## M4sh Initialization.  ##
20044 ## --------------------- ##
20045
20046 # Be Bourne compatible
20047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20048   emulate sh
20049   NULLCMD=:
20050   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20051   # is contrary to our usage.  Disable this feature.
20052   alias -g '${1+"$@"}'='"$@"'
20053 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20054   set -o posix
20055 fi
20056 DUALCASE=1; export DUALCASE # for MKS sh
20057
20058 # Support unset when possible.
20059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20060   as_unset=unset
20061 else
20062   as_unset=false
20063 fi
20064
20065
20066 # Work around bugs in pre-3.0 UWIN ksh.
20067 $as_unset ENV MAIL MAILPATH
20068 PS1='$ '
20069 PS2='> '
20070 PS4='+ '
20071
20072 # NLS nuisances.
20073 for as_var in \
20074   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20075   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20076   LC_TELEPHONE LC_TIME
20077 do
20078   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20079     eval $as_var=C; export $as_var
20080   else
20081     $as_unset $as_var
20082   fi
20083 done
20084
20085 # Required to use basename.
20086 if expr a : '\(a\)' >/dev/null 2>&1; then
20087   as_expr=expr
20088 else
20089   as_expr=false
20090 fi
20091
20092 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20093   as_basename=basename
20094 else
20095   as_basename=false
20096 fi
20097
20098
20099 # Name of the executable.
20100 as_me=`$as_basename "$0" ||
20101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20102          X"$0" : 'X\(//\)$' \| \
20103          X"$0" : 'X\(/\)$' \| \
20104          .     : '\(.\)' 2>/dev/null ||
20105 echo X/"$0" |
20106     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20107           /^X\/\(\/\/\)$/{ s//\1/; q; }
20108           /^X\/\(\/\).*/{ s//\1/; q; }
20109           s/.*/./; q'`
20110
20111
20112 # PATH needs CR, and LINENO needs CR and PATH.
20113 # Avoid depending upon Character Ranges.
20114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20117 as_cr_digits='0123456789'
20118 as_cr_alnum=$as_cr_Letters$as_cr_digits
20119
20120 # The user is always right.
20121 if test "${PATH_SEPARATOR+set}" != set; then
20122   echo "#! /bin/sh" >conf$$.sh
20123   echo  "exit 0"   >>conf$$.sh
20124   chmod +x conf$$.sh
20125   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20126     PATH_SEPARATOR=';'
20127   else
20128     PATH_SEPARATOR=:
20129   fi
20130   rm -f conf$$.sh
20131 fi
20132
20133
20134   as_lineno_1=$LINENO
20135   as_lineno_2=$LINENO
20136   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20137   test "x$as_lineno_1" != "x$as_lineno_2" &&
20138   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20139   # Find who we are.  Look in the path if we contain no path at all
20140   # relative or not.
20141   case $0 in
20142     *[\\/]* ) as_myself=$0 ;;
20143     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20144 for as_dir in $PATH
20145 do
20146   IFS=$as_save_IFS
20147   test -z "$as_dir" && as_dir=.
20148   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20149 done
20150
20151        ;;
20152   esac
20153   # We did not find ourselves, most probably we were run as `sh COMMAND'
20154   # in which case we are not to be found in the path.
20155   if test "x$as_myself" = x; then
20156     as_myself=$0
20157   fi
20158   if test ! -f "$as_myself"; then
20159     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20160 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20161    { (exit 1); exit 1; }; }
20162   fi
20163   case $CONFIG_SHELL in
20164   '')
20165     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20167 do
20168   IFS=$as_save_IFS
20169   test -z "$as_dir" && as_dir=.
20170   for as_base in sh bash ksh sh5; do
20171          case $as_dir in
20172          /*)
20173            if ("$as_dir/$as_base" -c '
20174   as_lineno_1=$LINENO
20175   as_lineno_2=$LINENO
20176   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20177   test "x$as_lineno_1" != "x$as_lineno_2" &&
20178   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20179              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20180              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20181              CONFIG_SHELL=$as_dir/$as_base
20182              export CONFIG_SHELL
20183              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20184            fi;;
20185          esac
20186        done
20187 done
20188 ;;
20189   esac
20190
20191   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20192   # uniformly replaced by the line number.  The first 'sed' inserts a
20193   # line-number line before each line; the second 'sed' does the real
20194   # work.  The second script uses 'N' to pair each line-number line
20195   # with the numbered line, and appends trailing '-' during
20196   # substitution so that $LINENO is not a special case at line end.
20197   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20198   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20199   sed '=' <$as_myself |
20200     sed '
20201       N
20202       s,$,-,
20203       : loop
20204       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20205       t loop
20206       s,-$,,
20207       s,^['$as_cr_digits']*\n,,
20208     ' >$as_me.lineno &&
20209   chmod +x $as_me.lineno ||
20210     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20211 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20212    { (exit 1); exit 1; }; }
20213
20214   # Don't try to exec as it changes $[0], causing all sort of problems
20215   # (the dirname of $[0] is not the place where we might find the
20216   # original and so on.  Autoconf is especially sensible to this).
20217   . ./$as_me.lineno
20218   # Exit status is that of the last command.
20219   exit
20220 }
20221
20222
20223 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20224   *c*,-n*) ECHO_N= ECHO_C='
20225 ' ECHO_T='      ' ;;
20226   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20227   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20228 esac
20229
20230 if expr a : '\(a\)' >/dev/null 2>&1; then
20231   as_expr=expr
20232 else
20233   as_expr=false
20234 fi
20235
20236 rm -f conf$$ conf$$.exe conf$$.file
20237 echo >conf$$.file
20238 if ln -s conf$$.file conf$$ 2>/dev/null; then
20239   # We could just check for DJGPP; but this test a) works b) is more generic
20240   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20241   if test -f conf$$.exe; then
20242     # Don't use ln at all; we don't have any links
20243     as_ln_s='cp -p'
20244   else
20245     as_ln_s='ln -s'
20246   fi
20247 elif ln conf$$.file conf$$ 2>/dev/null; then
20248   as_ln_s=ln
20249 else
20250   as_ln_s='cp -p'
20251 fi
20252 rm -f conf$$ conf$$.exe conf$$.file
20253
20254 if mkdir -p . 2>/dev/null; then
20255   as_mkdir_p=:
20256 else
20257   test -d ./-p && rmdir ./-p
20258   as_mkdir_p=false
20259 fi
20260
20261 as_executable_p="test -f"
20262
20263 # Sed expression to map a string onto a valid CPP name.
20264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20265
20266 # Sed expression to map a string onto a valid variable name.
20267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20268
20269
20270 # IFS
20271 # We need space, tab and new line, in precisely that order.
20272 as_nl='
20273 '
20274 IFS="   $as_nl"
20275
20276 # CDPATH.
20277 $as_unset CDPATH
20278
20279 exec 6>&1
20280
20281 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20282 # report actual input values of CONFIG_FILES etc. instead of their
20283 # values after options handling.  Logging --version etc. is OK.
20284 exec 5>>config.log
20285 {
20286   echo
20287   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20288 ## Running $as_me. ##
20289 _ASBOX
20290 } >&5
20291 cat >&5 <<_CSEOF
20292
20293 This file was extended by mod_chxj $as_me 0.6.0-stable, which was
20294 generated by GNU Autoconf 2.59.  Invocation command line was
20295
20296   CONFIG_FILES    = $CONFIG_FILES
20297   CONFIG_HEADERS  = $CONFIG_HEADERS
20298   CONFIG_LINKS    = $CONFIG_LINKS
20299   CONFIG_COMMANDS = $CONFIG_COMMANDS
20300   $ $0 $@
20301
20302 _CSEOF
20303 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20304 echo >&5
20305 _ACEOF
20306
20307 # Files that config.status was made for.
20308 if test -n "$ac_config_files"; then
20309   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20310 fi
20311
20312 if test -n "$ac_config_headers"; then
20313   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20314 fi
20315
20316 if test -n "$ac_config_links"; then
20317   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20318 fi
20319
20320 if test -n "$ac_config_commands"; then
20321   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20322 fi
20323
20324 cat >>$CONFIG_STATUS <<\_ACEOF
20325
20326 ac_cs_usage="\
20327 \`$as_me' instantiates files from templates according to the
20328 current configuration.
20329
20330 Usage: $0 [OPTIONS] [FILE]...
20331
20332   -h, --help       print this help, then exit
20333   -V, --version    print version number, then exit
20334   -q, --quiet      do not print progress messages
20335   -d, --debug      don't remove temporary files
20336       --recheck    update $as_me by reconfiguring in the same conditions
20337   --file=FILE[:TEMPLATE]
20338                    instantiate the configuration file FILE
20339   --header=FILE[:TEMPLATE]
20340                    instantiate the configuration header FILE
20341
20342 Configuration files:
20343 $config_files
20344
20345 Configuration headers:
20346 $config_headers
20347
20348 Configuration commands:
20349 $config_commands
20350
20351 Report bugs to <bug-autoconf@gnu.org>."
20352 _ACEOF
20353
20354 cat >>$CONFIG_STATUS <<_ACEOF
20355 ac_cs_version="\\
20356 mod_chxj config.status 0.6.0-stable
20357 configured by $0, generated by GNU Autoconf 2.59,
20358   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20359
20360 Copyright (C) 2003 Free Software Foundation, Inc.
20361 This config.status script is free software; the Free Software Foundation
20362 gives unlimited permission to copy, distribute and modify it."
20363 srcdir=$srcdir
20364 INSTALL="$INSTALL"
20365 _ACEOF
20366
20367 cat >>$CONFIG_STATUS <<\_ACEOF
20368 # If no file are specified by the user, then we need to provide default
20369 # value.  By we need to know if files were specified by the user.
20370 ac_need_defaults=:
20371 while test $# != 0
20372 do
20373   case $1 in
20374   --*=*)
20375     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20376     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20377     ac_shift=:
20378     ;;
20379   -*)
20380     ac_option=$1
20381     ac_optarg=$2
20382     ac_shift=shift
20383     ;;
20384   *) # This is not an option, so the user has probably given explicit
20385      # arguments.
20386      ac_option=$1
20387      ac_need_defaults=false;;
20388   esac
20389
20390   case $ac_option in
20391   # Handling of the options.
20392 _ACEOF
20393 cat >>$CONFIG_STATUS <<\_ACEOF
20394   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20395     ac_cs_recheck=: ;;
20396   --version | --vers* | -V )
20397     echo "$ac_cs_version"; exit 0 ;;
20398   --he | --h)
20399     # Conflict between --help and --header
20400     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20401 Try \`$0 --help' for more information." >&5
20402 echo "$as_me: error: ambiguous option: $1
20403 Try \`$0 --help' for more information." >&2;}
20404    { (exit 1); exit 1; }; };;
20405   --help | --hel | -h )
20406     echo "$ac_cs_usage"; exit 0 ;;
20407   --debug | --d* | -d )
20408     debug=: ;;
20409   --file | --fil | --fi | --f )
20410     $ac_shift
20411     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20412     ac_need_defaults=false;;
20413   --header | --heade | --head | --hea )
20414     $ac_shift
20415     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20416     ac_need_defaults=false;;
20417   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20418   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20419     ac_cs_silent=: ;;
20420
20421   # This is an error.
20422   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20423 Try \`$0 --help' for more information." >&5
20424 echo "$as_me: error: unrecognized option: $1
20425 Try \`$0 --help' for more information." >&2;}
20426    { (exit 1); exit 1; }; } ;;
20427
20428   *) ac_config_targets="$ac_config_targets $1" ;;
20429
20430   esac
20431   shift
20432 done
20433
20434 ac_configure_extra_args=
20435
20436 if $ac_cs_silent; then
20437   exec 6>/dev/null
20438   ac_configure_extra_args="$ac_configure_extra_args --silent"
20439 fi
20440
20441 _ACEOF
20442 cat >>$CONFIG_STATUS <<_ACEOF
20443 if \$ac_cs_recheck; then
20444   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20445   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20446 fi
20447
20448 _ACEOF
20449
20450 cat >>$CONFIG_STATUS <<_ACEOF
20451 #
20452 # INIT-COMMANDS section.
20453 #
20454
20455
20456
20457 _ACEOF
20458
20459
20460
20461 cat >>$CONFIG_STATUS <<\_ACEOF
20462 for ac_config_target in $ac_config_targets
20463 do
20464   case "$ac_config_target" in
20465   # Handling of arguments.
20466   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20467   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20468   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20469   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20470   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20471 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20472    { (exit 1); exit 1; }; };;
20473   esac
20474 done
20475
20476 # If the user did not use the arguments to specify the items to instantiate,
20477 # then the envvar interface is used.  Set only those that are not.
20478 # We use the long form for the default assignment because of an extremely
20479 # bizarre bug on SunOS 4.1.3.
20480 if $ac_need_defaults; then
20481   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20482   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20483   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20484 fi
20485
20486 # Have a temporary directory for convenience.  Make it in the build tree
20487 # simply because there is no reason to put it here, and in addition,
20488 # creating and moving files from /tmp can sometimes cause problems.
20489 # Create a temporary directory, and hook for its removal unless debugging.
20490 $debug ||
20491 {
20492   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20493   trap '{ (exit 1); exit 1; }' 1 2 13 15
20494 }
20495
20496 # Create a (secure) tmp directory for tmp files.
20497
20498 {
20499   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20500   test -n "$tmp" && test -d "$tmp"
20501 }  ||
20502 {
20503   tmp=./confstat$$-$RANDOM
20504   (umask 077 && mkdir $tmp)
20505 } ||
20506 {
20507    echo "$me: cannot create a temporary directory in ." >&2
20508    { (exit 1); exit 1; }
20509 }
20510
20511 _ACEOF
20512
20513 cat >>$CONFIG_STATUS <<_ACEOF
20514
20515 #
20516 # CONFIG_FILES section.
20517 #
20518
20519 # No need to generate the scripts if there are no CONFIG_FILES.
20520 # This happens for instance when ./config.status config.h
20521 if test -n "\$CONFIG_FILES"; then
20522   # Protect against being on the right side of a sed subst in config.status.
20523   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20524    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20525 s,@SHELL@,$SHELL,;t t
20526 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20527 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20528 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20529 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20530 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20531 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20532 s,@exec_prefix@,$exec_prefix,;t t
20533 s,@prefix@,$prefix,;t t
20534 s,@program_transform_name@,$program_transform_name,;t t
20535 s,@bindir@,$bindir,;t t
20536 s,@sbindir@,$sbindir,;t t
20537 s,@libexecdir@,$libexecdir,;t t
20538 s,@datadir@,$datadir,;t t
20539 s,@sysconfdir@,$sysconfdir,;t t
20540 s,@sharedstatedir@,$sharedstatedir,;t t
20541 s,@localstatedir@,$localstatedir,;t t
20542 s,@libdir@,$libdir,;t t
20543 s,@includedir@,$includedir,;t t
20544 s,@oldincludedir@,$oldincludedir,;t t
20545 s,@infodir@,$infodir,;t t
20546 s,@mandir@,$mandir,;t t
20547 s,@build_alias@,$build_alias,;t t
20548 s,@host_alias@,$host_alias,;t t
20549 s,@target_alias@,$target_alias,;t t
20550 s,@DEFS@,$DEFS,;t t
20551 s,@ECHO_C@,$ECHO_C,;t t
20552 s,@ECHO_N@,$ECHO_N,;t t
20553 s,@ECHO_T@,$ECHO_T,;t t
20554 s,@LIBS@,$LIBS,;t t
20555 s,@build@,$build,;t t
20556 s,@build_cpu@,$build_cpu,;t t
20557 s,@build_vendor@,$build_vendor,;t t
20558 s,@build_os@,$build_os,;t t
20559 s,@host@,$host,;t t
20560 s,@host_cpu@,$host_cpu,;t t
20561 s,@host_vendor@,$host_vendor,;t t
20562 s,@host_os@,$host_os,;t t
20563 s,@target@,$target,;t t
20564 s,@target_cpu@,$target_cpu,;t t
20565 s,@target_vendor@,$target_vendor,;t t
20566 s,@target_os@,$target_os,;t t
20567 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20568 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20569 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20570 s,@PACKAGE@,$PACKAGE,;t t
20571 s,@VERSION@,$VERSION,;t t
20572 s,@ACLOCAL@,$ACLOCAL,;t t
20573 s,@AUTOCONF@,$AUTOCONF,;t t
20574 s,@AUTOMAKE@,$AUTOMAKE,;t t
20575 s,@AUTOHEADER@,$AUTOHEADER,;t t
20576 s,@MAKEINFO@,$MAKEINFO,;t t
20577 s,@SET_MAKE@,$SET_MAKE,;t t
20578 s,@CC@,$CC,;t t
20579 s,@CFLAGS@,$CFLAGS,;t t
20580 s,@LDFLAGS@,$LDFLAGS,;t t
20581 s,@CPPFLAGS@,$CPPFLAGS,;t t
20582 s,@ac_ct_CC@,$ac_ct_CC,;t t
20583 s,@EXEEXT@,$EXEEXT,;t t
20584 s,@OBJEXT@,$OBJEXT,;t t
20585 s,@EGREP@,$EGREP,;t t
20586 s,@LN_S@,$LN_S,;t t
20587 s,@ECHO@,$ECHO,;t t
20588 s,@AR@,$AR,;t t
20589 s,@ac_ct_AR@,$ac_ct_AR,;t t
20590 s,@RANLIB@,$RANLIB,;t t
20591 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20592 s,@STRIP@,$STRIP,;t t
20593 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20594 s,@CPP@,$CPP,;t t
20595 s,@CXX@,$CXX,;t t
20596 s,@CXXFLAGS@,$CXXFLAGS,;t t
20597 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20598 s,@CXXCPP@,$CXXCPP,;t t
20599 s,@F77@,$F77,;t t
20600 s,@FFLAGS@,$FFLAGS,;t t
20601 s,@ac_ct_F77@,$ac_ct_F77,;t t
20602 s,@LIBTOOL@,$LIBTOOL,;t t
20603 s,@APXS@,$APXS,;t t
20604 s,@WAND_CONFIG@,$WAND_CONFIG,;t t
20605 s,@APR_CONFIG@,$APR_CONFIG,;t t
20606 s,@with_apache_header@,$with_apache_header,;t t
20607 s,@QDEFS@,$QDEFS,;t t
20608 s,@DDEFS@,$DDEFS,;t t
20609 s,@LIBOBJS@,$LIBOBJS,;t t
20610 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20611 CEOF
20612
20613 _ACEOF
20614
20615   cat >>$CONFIG_STATUS <<\_ACEOF
20616   # Split the substitutions into bite-sized pieces for seds with
20617   # small command number limits, like on Digital OSF/1 and HP-UX.
20618   ac_max_sed_lines=48
20619   ac_sed_frag=1 # Number of current file.
20620   ac_beg=1 # First line for current file.
20621   ac_end=$ac_max_sed_lines # Line after last line for current file.
20622   ac_more_lines=:
20623   ac_sed_cmds=
20624   while $ac_more_lines; do
20625     if test $ac_beg -gt 1; then
20626       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20627     else
20628       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20629     fi
20630     if test ! -s $tmp/subs.frag; then
20631       ac_more_lines=false
20632     else
20633       # The purpose of the label and of the branching condition is to
20634       # speed up the sed processing (if there are no `@' at all, there
20635       # is no need to browse any of the substitutions).
20636       # These are the two extra sed commands mentioned above.
20637       (echo ':t
20638   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20639       if test -z "$ac_sed_cmds"; then
20640         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20641       else
20642         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20643       fi
20644       ac_sed_frag=`expr $ac_sed_frag + 1`
20645       ac_beg=$ac_end
20646       ac_end=`expr $ac_end + $ac_max_sed_lines`
20647     fi
20648   done
20649   if test -z "$ac_sed_cmds"; then
20650     ac_sed_cmds=cat
20651   fi
20652 fi # test -n "$CONFIG_FILES"
20653
20654 _ACEOF
20655 cat >>$CONFIG_STATUS <<\_ACEOF
20656 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20657   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20658   case $ac_file in
20659   - | *:- | *:-:* ) # input from stdin
20660         cat >$tmp/stdin
20661         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20662         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20663   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20664         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20665   * )   ac_file_in=$ac_file.in ;;
20666   esac
20667
20668   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20669   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20671          X"$ac_file" : 'X\(//\)[^/]' \| \
20672          X"$ac_file" : 'X\(//\)$' \| \
20673          X"$ac_file" : 'X\(/\)' \| \
20674          .     : '\(.\)' 2>/dev/null ||
20675 echo X"$ac_file" |
20676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20678           /^X\(\/\/\)$/{ s//\1/; q; }
20679           /^X\(\/\).*/{ s//\1/; q; }
20680           s/.*/./; q'`
20681   { if $as_mkdir_p; then
20682     mkdir -p "$ac_dir"
20683   else
20684     as_dir="$ac_dir"
20685     as_dirs=
20686     while test ! -d "$as_dir"; do
20687       as_dirs="$as_dir $as_dirs"
20688       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20690          X"$as_dir" : 'X\(//\)[^/]' \| \
20691          X"$as_dir" : 'X\(//\)$' \| \
20692          X"$as_dir" : 'X\(/\)' \| \
20693          .     : '\(.\)' 2>/dev/null ||
20694 echo X"$as_dir" |
20695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20696           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20697           /^X\(\/\/\)$/{ s//\1/; q; }
20698           /^X\(\/\).*/{ s//\1/; q; }
20699           s/.*/./; q'`
20700     done
20701     test ! -n "$as_dirs" || mkdir $as_dirs
20702   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20703 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20704    { (exit 1); exit 1; }; }; }
20705
20706   ac_builddir=.
20707
20708 if test "$ac_dir" != .; then
20709   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20710   # A "../" for each directory in $ac_dir_suffix.
20711   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20712 else
20713   ac_dir_suffix= ac_top_builddir=
20714 fi
20715
20716 case $srcdir in
20717   .)  # No --srcdir option.  We are building in place.
20718     ac_srcdir=.
20719     if test -z "$ac_top_builddir"; then
20720        ac_top_srcdir=.
20721     else
20722        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20723     fi ;;
20724   [\\/]* | ?:[\\/]* )  # Absolute path.
20725     ac_srcdir=$srcdir$ac_dir_suffix;
20726     ac_top_srcdir=$srcdir ;;
20727   *) # Relative path.
20728     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20729     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20730 esac
20731
20732 # Do not use `cd foo && pwd` to compute absolute paths, because
20733 # the directories may not exist.
20734 case `pwd` in
20735 .) ac_abs_builddir="$ac_dir";;
20736 *)
20737   case "$ac_dir" in
20738   .) ac_abs_builddir=`pwd`;;
20739   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20740   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20741   esac;;
20742 esac
20743 case $ac_abs_builddir in
20744 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20745 *)
20746   case ${ac_top_builddir}. in
20747   .) ac_abs_top_builddir=$ac_abs_builddir;;
20748   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20749   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20750   esac;;
20751 esac
20752 case $ac_abs_builddir in
20753 .) ac_abs_srcdir=$ac_srcdir;;
20754 *)
20755   case $ac_srcdir in
20756   .) ac_abs_srcdir=$ac_abs_builddir;;
20757   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20758   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20759   esac;;
20760 esac
20761 case $ac_abs_builddir in
20762 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20763 *)
20764   case $ac_top_srcdir in
20765   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20766   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20767   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20768   esac;;
20769 esac
20770
20771
20772   case $INSTALL in
20773   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20774   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20775   esac
20776
20777   # Let's still pretend it is `configure' which instantiates (i.e., don't
20778   # use $as_me), people would be surprised to read:
20779   #    /* config.h.  Generated by config.status.  */
20780   if test x"$ac_file" = x-; then
20781     configure_input=
20782   else
20783     configure_input="$ac_file.  "
20784   fi
20785   configure_input=$configure_input"Generated from `echo $ac_file_in |
20786                                      sed 's,.*/,,'` by configure."
20787
20788   # First look for the input files in the build tree, otherwise in the
20789   # src tree.
20790   ac_file_inputs=`IFS=:
20791     for f in $ac_file_in; do
20792       case $f in
20793       -) echo $tmp/stdin ;;
20794       [\\/$]*)
20795          # Absolute (can't be DOS-style, as IFS=:)
20796          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20797 echo "$as_me: error: cannot find input file: $f" >&2;}
20798    { (exit 1); exit 1; }; }
20799          echo "$f";;
20800       *) # Relative
20801          if test -f "$f"; then
20802            # Build tree
20803            echo "$f"
20804          elif test -f "$srcdir/$f"; then
20805            # Source tree
20806            echo "$srcdir/$f"
20807          else
20808            # /dev/null tree
20809            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20810 echo "$as_me: error: cannot find input file: $f" >&2;}
20811    { (exit 1); exit 1; }; }
20812          fi;;
20813       esac
20814     done` || { (exit 1); exit 1; }
20815
20816   if test x"$ac_file" != x-; then
20817     { echo "$as_me:$LINENO: creating $ac_file" >&5
20818 echo "$as_me: creating $ac_file" >&6;}
20819     rm -f "$ac_file"
20820   fi
20821 _ACEOF
20822 cat >>$CONFIG_STATUS <<_ACEOF
20823   sed "$ac_vpsub
20824 $extrasub
20825 _ACEOF
20826 cat >>$CONFIG_STATUS <<\_ACEOF
20827 :t
20828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20829 s,@configure_input@,$configure_input,;t t
20830 s,@srcdir@,$ac_srcdir,;t t
20831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20832 s,@top_srcdir@,$ac_top_srcdir,;t t
20833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20834 s,@builddir@,$ac_builddir,;t t
20835 s,@abs_builddir@,$ac_abs_builddir,;t t
20836 s,@top_builddir@,$ac_top_builddir,;t t
20837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20838 s,@INSTALL@,$ac_INSTALL,;t t
20839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20840   rm -f $tmp/stdin
20841   if test x"$ac_file" != x-; then
20842     mv $tmp/out $ac_file
20843   else
20844     cat $tmp/out
20845     rm -f $tmp/out
20846   fi
20847
20848 done
20849 _ACEOF
20850 cat >>$CONFIG_STATUS <<\_ACEOF
20851
20852 #
20853 # CONFIG_HEADER section.
20854 #
20855
20856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20858 #
20859 # ac_d sets the value in "#define NAME VALUE" lines.
20860 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20861 ac_dB='[         ].*$,\1#\2'
20862 ac_dC=' '
20863 ac_dD=',;t'
20864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20865 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20866 ac_uB='$,\1#\2define\3'
20867 ac_uC=' '
20868 ac_uD=',;t'
20869
20870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20871   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20872   case $ac_file in
20873   - | *:- | *:-:* ) # input from stdin
20874         cat >$tmp/stdin
20875         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20876         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20877   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20878         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20879   * )   ac_file_in=$ac_file.in ;;
20880   esac
20881
20882   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20883 echo "$as_me: creating $ac_file" >&6;}
20884
20885   # First look for the input files in the build tree, otherwise in the
20886   # src tree.
20887   ac_file_inputs=`IFS=:
20888     for f in $ac_file_in; do
20889       case $f in
20890       -) echo $tmp/stdin ;;
20891       [\\/$]*)
20892          # Absolute (can't be DOS-style, as IFS=:)
20893          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20894 echo "$as_me: error: cannot find input file: $f" >&2;}
20895    { (exit 1); exit 1; }; }
20896          # Do quote $f, to prevent DOS paths from being IFS'd.
20897          echo "$f";;
20898       *) # Relative
20899          if test -f "$f"; then
20900            # Build tree
20901            echo "$f"
20902          elif test -f "$srcdir/$f"; then
20903            # Source tree
20904            echo "$srcdir/$f"
20905          else
20906            # /dev/null tree
20907            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20908 echo "$as_me: error: cannot find input file: $f" >&2;}
20909    { (exit 1); exit 1; }; }
20910          fi;;
20911       esac
20912     done` || { (exit 1); exit 1; }
20913   # Remove the trailing spaces.
20914   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20915
20916 _ACEOF
20917
20918 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20919 # `conftest.undefs', that substitutes the proper values into
20920 # config.h.in to produce config.h.  The first handles `#define'
20921 # templates, and the second `#undef' templates.
20922 # And first: Protect against being on the right side of a sed subst in
20923 # config.status.  Protect against being in an unquoted here document
20924 # in config.status.
20925 rm -f conftest.defines conftest.undefs
20926 # Using a here document instead of a string reduces the quoting nightmare.
20927 # Putting comments in sed scripts is not portable.
20928 #
20929 # `end' is used to avoid that the second main sed command (meant for
20930 # 0-ary CPP macros) applies to n-ary macro definitions.
20931 # See the Autoconf documentation for `clear'.
20932 cat >confdef2sed.sed <<\_ACEOF
20933 s/[\\&,]/\\&/g
20934 s,[\\$`],\\&,g
20935 t clear
20936 : clear
20937 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20938 t end
20939 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20940 : end
20941 _ACEOF
20942 # If some macros were called several times there might be several times
20943 # the same #defines, which is useless.  Nevertheless, we may not want to
20944 # sort them, since we want the *last* AC-DEFINE to be honored.
20945 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20946 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20947 rm -f confdef2sed.sed
20948
20949 # This sed command replaces #undef with comments.  This is necessary, for
20950 # example, in the case of _POSIX_SOURCE, which is predefined and required
20951 # on some systems where configure will not decide to define it.
20952 cat >>conftest.undefs <<\_ACEOF
20953 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20954 _ACEOF
20955
20956 # Break up conftest.defines because some shells have a limit on the size
20957 # of here documents, and old seds have small limits too (100 cmds).
20958 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20959 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20960 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20961 echo '  :' >>$CONFIG_STATUS
20962 rm -f conftest.tail
20963 while grep . conftest.defines >/dev/null
20964 do
20965   # Write a limited-size here document to $tmp/defines.sed.
20966   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20967   # Speed up: don't consider the non `#define' lines.
20968   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20969   # Work around the forget-to-reset-the-flag bug.
20970   echo 't clr' >>$CONFIG_STATUS
20971   echo ': clr' >>$CONFIG_STATUS
20972   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20973   echo 'CEOF
20974   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20975   rm -f $tmp/in
20976   mv $tmp/out $tmp/in
20977 ' >>$CONFIG_STATUS
20978   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20979   rm -f conftest.defines
20980   mv conftest.tail conftest.defines
20981 done
20982 rm -f conftest.defines
20983 echo '  fi # grep' >>$CONFIG_STATUS
20984 echo >>$CONFIG_STATUS
20985
20986 # Break up conftest.undefs because some shells have a limit on the size
20987 # of here documents, and old seds have small limits too (100 cmds).
20988 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20989 rm -f conftest.tail
20990 while grep . conftest.undefs >/dev/null
20991 do
20992   # Write a limited-size here document to $tmp/undefs.sed.
20993   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20994   # Speed up: don't consider the non `#undef'
20995   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20996   # Work around the forget-to-reset-the-flag bug.
20997   echo 't clr' >>$CONFIG_STATUS
20998   echo ': clr' >>$CONFIG_STATUS
20999   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21000   echo 'CEOF
21001   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21002   rm -f $tmp/in
21003   mv $tmp/out $tmp/in
21004 ' >>$CONFIG_STATUS
21005   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21006   rm -f conftest.undefs
21007   mv conftest.tail conftest.undefs
21008 done
21009 rm -f conftest.undefs
21010
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21012   # Let's still pretend it is `configure' which instantiates (i.e., don't
21013   # use $as_me), people would be surprised to read:
21014   #    /* config.h.  Generated by config.status.  */
21015   if test x"$ac_file" = x-; then
21016     echo "/* Generated by configure.  */" >$tmp/config.h
21017   else
21018     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21019   fi
21020   cat $tmp/in >>$tmp/config.h
21021   rm -f $tmp/in
21022   if test x"$ac_file" != x-; then
21023     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21024       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21025 echo "$as_me: $ac_file is unchanged" >&6;}
21026     else
21027       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21029          X"$ac_file" : 'X\(//\)[^/]' \| \
21030          X"$ac_file" : 'X\(//\)$' \| \
21031          X"$ac_file" : 'X\(/\)' \| \
21032          .     : '\(.\)' 2>/dev/null ||
21033 echo X"$ac_file" |
21034     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21035           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21036           /^X\(\/\/\)$/{ s//\1/; q; }
21037           /^X\(\/\).*/{ s//\1/; q; }
21038           s/.*/./; q'`
21039       { if $as_mkdir_p; then
21040     mkdir -p "$ac_dir"
21041   else
21042     as_dir="$ac_dir"
21043     as_dirs=
21044     while test ! -d "$as_dir"; do
21045       as_dirs="$as_dir $as_dirs"
21046       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048          X"$as_dir" : 'X\(//\)[^/]' \| \
21049          X"$as_dir" : 'X\(//\)$' \| \
21050          X"$as_dir" : 'X\(/\)' \| \
21051          .     : '\(.\)' 2>/dev/null ||
21052 echo X"$as_dir" |
21053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21054           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21055           /^X\(\/\/\)$/{ s//\1/; q; }
21056           /^X\(\/\).*/{ s//\1/; q; }
21057           s/.*/./; q'`
21058     done
21059     test ! -n "$as_dirs" || mkdir $as_dirs
21060   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21062    { (exit 1); exit 1; }; }; }
21063
21064       rm -f $ac_file
21065       mv $tmp/config.h $ac_file
21066     fi
21067   else
21068     cat $tmp/config.h
21069     rm -f $tmp/config.h
21070   fi
21071 done
21072 _ACEOF
21073 cat >>$CONFIG_STATUS <<\_ACEOF
21074
21075 #
21076 # CONFIG_COMMANDS section.
21077 #
21078 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21079   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21080   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21081   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21082 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21083          X"$ac_dest" : 'X\(//\)[^/]' \| \
21084          X"$ac_dest" : 'X\(//\)$' \| \
21085          X"$ac_dest" : 'X\(/\)' \| \
21086          .     : '\(.\)' 2>/dev/null ||
21087 echo X"$ac_dest" |
21088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21089           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21090           /^X\(\/\/\)$/{ s//\1/; q; }
21091           /^X\(\/\).*/{ s//\1/; q; }
21092           s/.*/./; q'`
21093   { if $as_mkdir_p; then
21094     mkdir -p "$ac_dir"
21095   else
21096     as_dir="$ac_dir"
21097     as_dirs=
21098     while test ! -d "$as_dir"; do
21099       as_dirs="$as_dir $as_dirs"
21100       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21102          X"$as_dir" : 'X\(//\)[^/]' \| \
21103          X"$as_dir" : 'X\(//\)$' \| \
21104          X"$as_dir" : 'X\(/\)' \| \
21105          .     : '\(.\)' 2>/dev/null ||
21106 echo X"$as_dir" |
21107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21108           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21109           /^X\(\/\/\)$/{ s//\1/; q; }
21110           /^X\(\/\).*/{ s//\1/; q; }
21111           s/.*/./; q'`
21112     done
21113     test ! -n "$as_dirs" || mkdir $as_dirs
21114   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21115 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21116    { (exit 1); exit 1; }; }; }
21117
21118   ac_builddir=.
21119
21120 if test "$ac_dir" != .; then
21121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21122   # A "../" for each directory in $ac_dir_suffix.
21123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21124 else
21125   ac_dir_suffix= ac_top_builddir=
21126 fi
21127
21128 case $srcdir in
21129   .)  # No --srcdir option.  We are building in place.
21130     ac_srcdir=.
21131     if test -z "$ac_top_builddir"; then
21132        ac_top_srcdir=.
21133     else
21134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21135     fi ;;
21136   [\\/]* | ?:[\\/]* )  # Absolute path.
21137     ac_srcdir=$srcdir$ac_dir_suffix;
21138     ac_top_srcdir=$srcdir ;;
21139   *) # Relative path.
21140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21142 esac
21143
21144 # Do not use `cd foo && pwd` to compute absolute paths, because
21145 # the directories may not exist.
21146 case `pwd` in
21147 .) ac_abs_builddir="$ac_dir";;
21148 *)
21149   case "$ac_dir" in
21150   .) ac_abs_builddir=`pwd`;;
21151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21153   esac;;
21154 esac
21155 case $ac_abs_builddir in
21156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21157 *)
21158   case ${ac_top_builddir}. in
21159   .) ac_abs_top_builddir=$ac_abs_builddir;;
21160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21162   esac;;
21163 esac
21164 case $ac_abs_builddir in
21165 .) ac_abs_srcdir=$ac_srcdir;;
21166 *)
21167   case $ac_srcdir in
21168   .) ac_abs_srcdir=$ac_abs_builddir;;
21169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21171   esac;;
21172 esac
21173 case $ac_abs_builddir in
21174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21175 *)
21176   case $ac_top_srcdir in
21177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21180   esac;;
21181 esac
21182
21183
21184   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21185 echo "$as_me: executing $ac_dest commands" >&6;}
21186   case $ac_dest in
21187     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
21188   esac
21189 done
21190 _ACEOF
21191
21192 cat >>$CONFIG_STATUS <<\_ACEOF
21193
21194 { (exit 0); exit 0; }
21195 _ACEOF
21196 chmod +x $CONFIG_STATUS
21197 ac_clean_files=$ac_clean_files_save
21198
21199
21200 # configure is writing to config.log, and then calls config.status.
21201 # config.status does its own redirection, appending to config.log.
21202 # Unfortunately, on DOS this fails, as config.log is still kept open
21203 # by configure, so config.status won't be able to write to it; its
21204 # output is simply discarded.  So we exec the FD to /dev/null,
21205 # effectively closing config.log, so it can be properly (re)opened and
21206 # appended to by config.status.  When coming back to configure, we
21207 # need to make the FD available again.
21208 if test "$no_create" != yes; then
21209   ac_cs_success=:
21210   ac_config_status_args=
21211   test "$silent" = yes &&
21212     ac_config_status_args="$ac_config_status_args --quiet"
21213   exec 5>/dev/null
21214   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21215   exec 5>>config.log
21216   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21217   # would make configure fail if this is the last instruction.
21218   $ac_cs_success || { (exit 1); exit 1; }
21219 fi
21220