0.6.1-1 release
[manu/suphp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for suPHP 0.6.1.
4 #
5 # Report bugs to <sebastian.marsching@suphp.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291        echo_test_string=`eval $cmd` &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='suPHP'
425 PACKAGE_TARNAME='suphp'
426 PACKAGE_VERSION='0.6.1'
427 PACKAGE_STRING='suPHP 0.6.1'
428 PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
429
430 ac_unique_file="src/Application.cpp"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL APXS APACHE_VERSION_1_3 APACHE_VERSION_2 APXS_INCLUDEDIR APXS_LIBEXECDIR APXS_EXTRA_CFLAGS APR_INCLUDEDIR OPT_APACHEMOD_USERGROUP_DEF COND_AP13_TRUE COND_AP13_FALSE COND_AP20_TRUE COND_AP20_FALSE COND_APUSERGROUP_TRUE COND_APUSERGROUP_FALSE LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures suPHP 0.6.1 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of suPHP 0.6.1:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037   --enable-checkpath      Check if script resides in DOCUMENT_ROOT (default is
1038                           ENABLED)
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-apr=DIR|FILE     prefix for installed APR, path to APR build tree,
1049                           or the full path to apr-config
1050   --with-apxs=FILE        Build shared Apache module. FILE is the optional
1051                           pathname to the Apache apxs tool; defaults to
1052                           "apxs".
1053   --with-setid-mode=MODE  Mode to use for setting UID/GID. MODE can be on of
1054                           "owner", "config" or "paranoid"; defaults to
1055                           "paranoid".
1056   --with-min-uid=UID      Minimum UID, which is allowed to run scripts
1057                           (default=100)
1058   --with-min-gid=GID      Minimum GID, which is allowed to run scripts
1059                           (default=100)
1060   --with-apache-user=USERNAME
1061                           Name of the user Apache is running as (default is
1062                           "wwwrun"
1063   --with-logfile=FILE     Path to suPHP logfile (default is
1064                           "/var/log/httpd/suphp_log"
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CXX         C++ compiler command
1074   CXXFLAGS    C++ compiler flags
1075   CPP         C preprocessor
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <sebastian.marsching@suphp.org>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd "$ac_popdir"
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 suPHP configure 0.6.1
1180 generated by GNU Autoconf 2.59
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185 _ACEOF
1186   exit 0
1187 fi
1188 exec 5>config.log
1189 cat >&5 <<_ACEOF
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1192
1193 It was created by suPHP $as_me 0.6.1, which was
1194 generated by GNU Autoconf 2.59.  Invocation command line was
1195
1196   $ $0 $@
1197
1198 _ACEOF
1199 {
1200 cat <<_ASUNAME
1201 ## --------- ##
1202 ## Platform. ##
1203 ## --------- ##
1204
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1213
1214 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1215 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1218 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1219 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1220 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1221
1222 _ASUNAME
1223
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 for as_dir in $PATH
1226 do
1227   IFS=$as_save_IFS
1228   test -z "$as_dir" && as_dir=.
1229   echo "PATH: $as_dir"
1230 done
1231
1232 } >&5
1233
1234 cat >&5 <<_ACEOF
1235
1236
1237 ## ----------- ##
1238 ## Core tests. ##
1239 ## ----------- ##
1240
1241 _ACEOF
1242
1243
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_configure_args=
1250 ac_configure_args0=
1251 ac_configure_args1=
1252 ac_sep=
1253 ac_must_keep_next=false
1254 for ac_pass in 1 2
1255 do
1256   for ac_arg
1257   do
1258     case $ac_arg in
1259     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261     | -silent | --silent | --silen | --sile | --sil)
1262       continue ;;
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     esac
1266     case $ac_pass in
1267     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268     2)
1269       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270       if test $ac_must_keep_next = true; then
1271         ac_must_keep_next=false # Got value, back to normal.
1272       else
1273         case $ac_arg in
1274           *=* | --config-cache | -C | -disable-* | --disable-* \
1275           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277           | -with-* | --with-* | -without-* | --without-* | --x)
1278             case "$ac_configure_args0 " in
1279               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280             esac
1281             ;;
1282           -* ) ac_must_keep_next=true ;;
1283         esac
1284       fi
1285       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286       # Get rid of the leading space.
1287       ac_sep=" "
1288       ;;
1289     esac
1290   done
1291 done
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log.  We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301   # Save into config.log some information that might help in debugging.
1302   {
1303     echo
1304
1305     cat <<\_ASBOX
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1309 _ASBOX
1310     echo
1311     # The following way of writing the cache mishandles newlines in values,
1312 {
1313   (set) 2>&1 |
1314     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315     *ac_space=\ *)
1316       sed -n \
1317         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319       ;;
1320     *)
1321       sed -n \
1322         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323       ;;
1324     esac;
1325 }
1326     echo
1327
1328     cat <<\_ASBOX
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1332 _ASBOX
1333     echo
1334     for ac_var in $ac_subst_vars
1335     do
1336       eval ac_val=$`echo $ac_var`
1337       echo "$ac_var='"'"'$ac_val'"'"'"
1338     done | sort
1339     echo
1340
1341     if test -n "$ac_subst_files"; then
1342       cat <<\_ASBOX
1343 ## ------------- ##
1344 ## Output files. ##
1345 ## ------------- ##
1346 _ASBOX
1347       echo
1348       for ac_var in $ac_subst_files
1349       do
1350         eval ac_val=$`echo $ac_var`
1351         echo "$ac_var='"'"'$ac_val'"'"'"
1352       done | sort
1353       echo
1354     fi
1355
1356     if test -s confdefs.h; then
1357       cat <<\_ASBOX
1358 ## ----------- ##
1359 ## confdefs.h. ##
1360 ## ----------- ##
1361 _ASBOX
1362       echo
1363       sed "/^$/d" confdefs.h | sort
1364       echo
1365     fi
1366     test "$ac_signal" != 0 &&
1367       echo "$as_me: caught signal $ac_signal"
1368     echo "$as_me: exit $exit_status"
1369   } >&5
1370   rm -f core *.core &&
1371   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372     exit $exit_status
1373      ' 0
1374 for ac_signal in 1 2 13 15; do
1375   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 done
1377 ac_signal=0
1378
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 echo >confdefs.h
1383
1384 # Predefined preprocessor variables.
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 _ACEOF
1409
1410
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414   if test "x$prefix" != xNONE; then
1415     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416   else
1417     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418   fi
1419 fi
1420 for ac_site_file in $CONFIG_SITE; do
1421   if test -r "$ac_site_file"; then
1422     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424     sed 's/^/| /' "$ac_site_file" >&5
1425     . "$ac_site_file"
1426   fi
1427 done
1428
1429 if test -r "$cache_file"; then
1430   # Some versions of bash will fail to source /dev/null (special
1431   # files actually), so we avoid doing that.
1432   if test -f "$cache_file"; then
1433     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1435     case $cache_file in
1436       [\\/]* | ?:[\\/]* ) . $cache_file;;
1437       *)                      . ./$cache_file;;
1438     esac
1439   fi
1440 else
1441   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1443   >$cache_file
1444 fi
1445
1446 # Check that the precious variables saved in the cache have kept the same
1447 # value.
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452   eval ac_new_set=\$ac_env_${ac_var}_set
1453   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454   eval ac_new_val="\$ac_env_${ac_var}_value"
1455   case $ac_old_set,$ac_new_set in
1456     set,)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,set)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,);;
1465     *)
1466       if test "x$ac_old_val" != "x$ac_new_val"; then
1467         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1470 echo "$as_me:   former value:  $ac_old_val" >&2;}
1471         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1472 echo "$as_me:   current value: $ac_new_val" >&2;}
1473         ac_cache_corrupted=:
1474       fi;;
1475   esac
1476   # Pass precious variables to config.status.
1477   if test "$ac_new_set" = set; then
1478     case $ac_new_val in
1479     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481     *) ac_arg=$ac_var=$ac_new_val ;;
1482     esac
1483     case " $ac_configure_args " in
1484       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1485       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486     esac
1487   fi
1488 done
1489 if $ac_cache_corrupted; then
1490   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494    { (exit 1); exit 1; }; }
1495 fi
1496
1497 ac_ext=c
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530 # Auxiliary tools
1531 ac_aux_dir=
1532 for ac_dir in config $srcdir/config; do
1533   if test -f $ac_dir/install-sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install-sh -c"
1536     break
1537   elif test -f $ac_dir/install.sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install.sh -c"
1540     break
1541   elif test -f $ac_dir/shtool; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/shtool install -c"
1544     break
1545   fi
1546 done
1547 if test -z "$ac_aux_dir"; then
1548   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556
1557 am__api_version="1.4"
1558 # Find a good install program.  We prefer a C program (faster),
1559 # so one script is as good as another.  But avoid the broken or
1560 # incompatible versions:
1561 # SysV /etc/install, /usr/sbin/install
1562 # SunOS /usr/etc/install
1563 # IRIX /sbin/install
1564 # AIX /bin/install
1565 # AmigaOS /C/install, which installs bootblocks on floppy discs
1566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1569 # OS/2's system install, which has a completely different semantic
1570 # ./install, which can be erroneously created by make from ./install.sh.
1571 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1572 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1573 if test -z "$INSTALL"; then
1574 if test "${ac_cv_path_install+set}" = set; then
1575   echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1579 do
1580   IFS=$as_save_IFS
1581   test -z "$as_dir" && as_dir=.
1582   # Account for people who put trailing slashes in PATH elements.
1583 case $as_dir/ in
1584   ./ | .// | /cC/* | \
1585   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1586   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1587   /usr/ucb/* ) ;;
1588   *)
1589     # OSF1 and SCO ODT 3.0 have their own names for install.
1590     # Don't use installbsd from OSF since it installs stuff as root
1591     # by default.
1592     for ac_prog in ginstall scoinst install; do
1593       for ac_exec_ext in '' $ac_executable_extensions; do
1594         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1595           if test $ac_prog = install &&
1596             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1597             # AIX install.  It has an incompatible calling convention.
1598             :
1599           elif test $ac_prog = install &&
1600             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601             # program-specific install script used by HP pwplus--don't use.
1602             :
1603           else
1604             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1605             break 3
1606           fi
1607         fi
1608       done
1609     done
1610     ;;
1611 esac
1612 done
1613
1614
1615 fi
1616   if test "${ac_cv_path_install+set}" = set; then
1617     INSTALL=$ac_cv_path_install
1618   else
1619     # As a last resort, use the slow shell script.  We don't cache a
1620     # path for INSTALL within a source directory, because that will
1621     # break other packages using the cache if that directory is
1622     # removed, or if the path is relative.
1623     INSTALL=$ac_install_sh
1624   fi
1625 fi
1626 echo "$as_me:$LINENO: result: $INSTALL" >&5
1627 echo "${ECHO_T}$INSTALL" >&6
1628
1629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1630 # It thinks the first close brace ends the variable substitution.
1631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1632
1633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1634
1635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1636
1637 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1638 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1639 # Just in case
1640 sleep 1
1641 echo timestamp > conftestfile
1642 # Do `set' in a subshell so we don't clobber the current shell's
1643 # arguments.  Must try -L first in case configure is actually a
1644 # symlink; some systems play weird games with the mod time of symlinks
1645 # (eg FreeBSD returns the mod time of the symlink's containing
1646 # directory).
1647 if (
1648    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1649    if test "$*" = "X"; then
1650       # -L didn't work.
1651       set X `ls -t $srcdir/configure conftestfile`
1652    fi
1653    if test "$*" != "X $srcdir/configure conftestfile" \
1654       && test "$*" != "X conftestfile $srcdir/configure"; then
1655
1656       # If neither matched, then we have a broken ls.  This can happen
1657       # if, for instance, CONFIG_SHELL is bash and it inherits a
1658       # broken ls alias from the environment.  This has actually
1659       # happened.  Such a system could not be considered "sane".
1660       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1661 alias in your environment" >&5
1662 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1663 alias in your environment" >&2;}
1664    { (exit 1); exit 1; }; }
1665    fi
1666
1667    test "$2" = conftestfile
1668    )
1669 then
1670    # Ok.
1671    :
1672 else
1673    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1674 Check your system clock" >&5
1675 echo "$as_me: error: newly created file is older than distributed files!
1676 Check your system clock" >&2;}
1677    { (exit 1); exit 1; }; }
1678 fi
1679 rm -f conftest*
1680 echo "$as_me:$LINENO: result: yes" >&5
1681 echo "${ECHO_T}yes" >&6
1682 test "$program_prefix" != NONE &&
1683   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1684 # Use a double $ so make ignores it.
1685 test "$program_suffix" != NONE &&
1686   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1687 # Double any \ or $.  echo might interpret backslashes.
1688 # By default was `s,x,x', remove it if useless.
1689 cat <<\_ACEOF >conftest.sed
1690 s/[\\$]/&&/g;s/;s,x,x,$//
1691 _ACEOF
1692 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1693 rm conftest.sed
1694
1695 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1696 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1697 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1698 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   cat >conftest.make <<\_ACEOF
1702 all:
1703         @echo 'ac_maketemp="$(MAKE)"'
1704 _ACEOF
1705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1706 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1707 if test -n "$ac_maketemp"; then
1708   eval ac_cv_prog_make_${ac_make}_set=yes
1709 else
1710   eval ac_cv_prog_make_${ac_make}_set=no
1711 fi
1712 rm -f conftest.make
1713 fi
1714 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1715   echo "$as_me:$LINENO: result: yes" >&5
1716 echo "${ECHO_T}yes" >&6
1717   SET_MAKE=
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721   SET_MAKE="MAKE=${MAKE-make}"
1722 fi
1723
1724
1725 PACKAGE=suPHP
1726
1727 VERSION=0.6.0-pre1
1728
1729 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1730   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1731 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1732    { (exit 1); exit 1; }; }
1733 fi
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define PACKAGE "$PACKAGE"
1737 _ACEOF
1738
1739
1740 cat >>confdefs.h <<_ACEOF
1741 #define VERSION "$VERSION"
1742 _ACEOF
1743
1744
1745
1746 missing_dir=`cd $ac_aux_dir && pwd`
1747 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1748 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1749 # Run test in a subshell; some versions of sh will print an error if
1750 # an executable is not found, even if stderr is redirected.
1751 # Redirect stdin to placate older versions of autoconf.  Sigh.
1752 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1753    ACLOCAL=aclocal-${am__api_version}
1754    echo "$as_me:$LINENO: result: found" >&5
1755 echo "${ECHO_T}found" >&6
1756 else
1757    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1758    echo "$as_me:$LINENO: result: missing" >&5
1759 echo "${ECHO_T}missing" >&6
1760 fi
1761
1762 echo "$as_me:$LINENO: checking for working autoconf" >&5
1763 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1764 # Run test in a subshell; some versions of sh will print an error if
1765 # an executable is not found, even if stderr is redirected.
1766 # Redirect stdin to placate older versions of autoconf.  Sigh.
1767 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1768    AUTOCONF=autoconf
1769    echo "$as_me:$LINENO: result: found" >&5
1770 echo "${ECHO_T}found" >&6
1771 else
1772    AUTOCONF="$missing_dir/missing autoconf"
1773    echo "$as_me:$LINENO: result: missing" >&5
1774 echo "${ECHO_T}missing" >&6
1775 fi
1776
1777 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1778 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1779 # Run test in a subshell; some versions of sh will print an error if
1780 # an executable is not found, even if stderr is redirected.
1781 # Redirect stdin to placate older versions of autoconf.  Sigh.
1782 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1783    AUTOMAKE=automake-${am__api_version}
1784    echo "$as_me:$LINENO: result: found" >&5
1785 echo "${ECHO_T}found" >&6
1786 else
1787    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1788    echo "$as_me:$LINENO: result: missing" >&5
1789 echo "${ECHO_T}missing" >&6
1790 fi
1791
1792 echo "$as_me:$LINENO: checking for working autoheader" >&5
1793 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1794 # Run test in a subshell; some versions of sh will print an error if
1795 # an executable is not found, even if stderr is redirected.
1796 # Redirect stdin to placate older versions of autoconf.  Sigh.
1797 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1798    AUTOHEADER=autoheader
1799    echo "$as_me:$LINENO: result: found" >&5
1800 echo "${ECHO_T}found" >&6
1801 else
1802    AUTOHEADER="$missing_dir/missing autoheader"
1803    echo "$as_me:$LINENO: result: missing" >&5
1804 echo "${ECHO_T}missing" >&6
1805 fi
1806
1807 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1808 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1809 # Run test in a subshell; some versions of sh will print an error if
1810 # an executable is not found, even if stderr is redirected.
1811 # Redirect stdin to placate older versions of autoconf.  Sigh.
1812 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1813    MAKEINFO=makeinfo
1814    echo "$as_me:$LINENO: result: found" >&5
1815 echo "${ECHO_T}found" >&6
1816 else
1817    MAKEINFO="$missing_dir/missing makeinfo"
1818    echo "$as_me:$LINENO: result: missing" >&5
1819 echo "${ECHO_T}missing" >&6
1820 fi
1821
1822
1823 # Check for right directory
1824
1825 # Config headers for automake
1826
1827           ac_config_headers="$ac_config_headers src/config.h"
1828
1829           ac_config_commands="$ac_config_commands default-1"
1830
1831
1832 # Build time sanity check
1833 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1834 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1835 # Just in case
1836 sleep 1
1837 echo timestamp > conftestfile
1838 # Do `set' in a subshell so we don't clobber the current shell's
1839 # arguments.  Must try -L first in case configure is actually a
1840 # symlink; some systems play weird games with the mod time of symlinks
1841 # (eg FreeBSD returns the mod time of the symlink's containing
1842 # directory).
1843 if (
1844    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1845    if test "$*" = "X"; then
1846       # -L didn't work.
1847       set X `ls -t $srcdir/configure conftestfile`
1848    fi
1849    if test "$*" != "X $srcdir/configure conftestfile" \
1850       && test "$*" != "X conftestfile $srcdir/configure"; then
1851
1852       # If neither matched, then we have a broken ls.  This can happen
1853       # if, for instance, CONFIG_SHELL is bash and it inherits a
1854       # broken ls alias from the environment.  This has actually
1855       # happened.  Such a system could not be considered "sane".
1856       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1857 alias in your environment" >&5
1858 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1859 alias in your environment" >&2;}
1860    { (exit 1); exit 1; }; }
1861    fi
1862
1863    test "$2" = conftestfile
1864    )
1865 then
1866    # Ok.
1867    :
1868 else
1869    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1870 Check your system clock" >&5
1871 echo "$as_me: error: newly created file is older than distributed files!
1872 Check your system clock" >&2;}
1873    { (exit 1); exit 1; }; }
1874 fi
1875 rm -f conftest*
1876 echo "$as_me:$LINENO: result: yes" >&5
1877 echo "${ECHO_T}yes" >&6
1878
1879 # Look for install program
1880 # Find a good install program.  We prefer a C program (faster),
1881 # so one script is as good as another.  But avoid the broken or
1882 # incompatible versions:
1883 # SysV /etc/install, /usr/sbin/install
1884 # SunOS /usr/etc/install
1885 # IRIX /sbin/install
1886 # AIX /bin/install
1887 # AmigaOS /C/install, which installs bootblocks on floppy discs
1888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1891 # OS/2's system install, which has a completely different semantic
1892 # ./install, which can be erroneously created by make from ./install.sh.
1893 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1894 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1895 if test -z "$INSTALL"; then
1896 if test "${ac_cv_path_install+set}" = set; then
1897   echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904   # Account for people who put trailing slashes in PATH elements.
1905 case $as_dir/ in
1906   ./ | .// | /cC/* | \
1907   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1908   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1909   /usr/ucb/* ) ;;
1910   *)
1911     # OSF1 and SCO ODT 3.0 have their own names for install.
1912     # Don't use installbsd from OSF since it installs stuff as root
1913     # by default.
1914     for ac_prog in ginstall scoinst install; do
1915       for ac_exec_ext in '' $ac_executable_extensions; do
1916         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1917           if test $ac_prog = install &&
1918             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1919             # AIX install.  It has an incompatible calling convention.
1920             :
1921           elif test $ac_prog = install &&
1922             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1923             # program-specific install script used by HP pwplus--don't use.
1924             :
1925           else
1926             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1927             break 3
1928           fi
1929         fi
1930       done
1931     done
1932     ;;
1933 esac
1934 done
1935
1936
1937 fi
1938   if test "${ac_cv_path_install+set}" = set; then
1939     INSTALL=$ac_cv_path_install
1940   else
1941     # As a last resort, use the slow shell script.  We don't cache a
1942     # path for INSTALL within a source directory, because that will
1943     # break other packages using the cache if that directory is
1944     # removed, or if the path is relative.
1945     INSTALL=$ac_install_sh
1946   fi
1947 fi
1948 echo "$as_me:$LINENO: result: $INSTALL" >&5
1949 echo "${ECHO_T}$INSTALL" >&6
1950
1951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1952 # It thinks the first close brace ends the variable substitution.
1953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1954
1955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1956
1957 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1958
1959
1960 # Look for compiler
1961 ac_ext=c
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 if test -n "$ac_tool_prefix"; then
1967   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995   echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1997 else
1998   echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002 fi
2003 if test -z "$ac_cv_prog_CC"; then
2004   ac_ct_CC=$CC
2005   # Extract the first word of "gcc", so it can be a program name with args.
2006 set dummy gcc; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$ac_ct_CC"; then
2013   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022     ac_cv_prog_ac_ct_CC="gcc"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028
2029 fi
2030 fi
2031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6
2035 else
2036   echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2038 fi
2039
2040   CC=$ac_ct_CC
2041 else
2042   CC="$ac_cv_prog_CC"
2043 fi
2044
2045 if test -z "$CC"; then
2046   if test -n "$ac_tool_prefix"; then
2047   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}cc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$CC"; then
2055   ac_cv_prog_CC="$CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064     ac_cv_prog_CC="${ac_tool_prefix}cc"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 CC=$ac_cv_prog_CC
2074 if test -n "$CC"; then
2075   echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082 fi
2083 if test -z "$ac_cv_prog_CC"; then
2084   ac_ct_CC=$CC
2085   # Extract the first word of "cc", so it can be a program name with args.
2086 set dummy cc; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   if test -n "$ac_ct_CC"; then
2093   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100   for ac_exec_ext in '' $ac_executable_extensions; do
2101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102     ac_cv_prog_ac_ct_CC="cc"
2103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104     break 2
2105   fi
2106 done
2107 done
2108
2109 fi
2110 fi
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2115 else
2116   echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2118 fi
2119
2120   CC=$ac_ct_CC
2121 else
2122   CC="$ac_cv_prog_CC"
2123 fi
2124
2125 fi
2126 if test -z "$CC"; then
2127   # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$CC"; then
2135   ac_cv_prog_CC="$CC" # Let the user override the test.
2136 else
2137   ac_prog_rejected=no
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2140 do
2141   IFS=$as_save_IFS
2142   test -z "$as_dir" && as_dir=.
2143   for ac_exec_ext in '' $ac_executable_extensions; do
2144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2146        ac_prog_rejected=yes
2147        continue
2148      fi
2149     ac_cv_prog_CC="cc"
2150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151     break 2
2152   fi
2153 done
2154 done
2155
2156 if test $ac_prog_rejected = yes; then
2157   # We found a bogon in the path, so make sure we never use it.
2158   set dummy $ac_cv_prog_CC
2159   shift
2160   if test $# != 0; then
2161     # We chose a different compiler from the bogus one.
2162     # However, it has the same basename, so the bogon will be chosen
2163     # first if we set CC to just the basename; use the full file name.
2164     shift
2165     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2166   fi
2167 fi
2168 fi
2169 fi
2170 CC=$ac_cv_prog_CC
2171 if test -n "$CC"; then
2172   echo "$as_me:$LINENO: result: $CC" >&5
2173 echo "${ECHO_T}$CC" >&6
2174 else
2175   echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2177 fi
2178
2179 fi
2180 if test -z "$CC"; then
2181   if test -n "$ac_tool_prefix"; then
2182   for ac_prog in cl
2183   do
2184     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_CC+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$CC"; then
2192   ac_cv_prog_CC="$CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199   for ac_exec_ext in '' $ac_executable_extensions; do
2200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207
2208 fi
2209 fi
2210 CC=$ac_cv_prog_CC
2211 if test -n "$CC"; then
2212   echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6
2214 else
2215   echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2217 fi
2218
2219     test -n "$CC" && break
2220   done
2221 fi
2222 if test -z "$CC"; then
2223   ac_ct_CC=$CC
2224   for ac_prog in cl
2225 do
2226   # Extract the first word of "$ac_prog", so it can be a program name with args.
2227 set dummy $ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$ac_ct_CC"; then
2234   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243     ac_cv_prog_ac_ct_CC="$ac_prog"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249
2250 fi
2251 fi
2252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2253 if test -n "$ac_ct_CC"; then
2254   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2255 echo "${ECHO_T}$ac_ct_CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261   test -n "$ac_ct_CC" && break
2262 done
2263
2264   CC=$ac_ct_CC
2265 fi
2266
2267 fi
2268
2269
2270 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: no acceptable C compiler found in \$PATH
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275
2276 # Provide some information about the compiler.
2277 echo "$as_me:$LINENO:" \
2278      "checking for C compiler version" >&5
2279 ac_compiler=`set X $ac_compile; echo $2`
2280 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2281   (eval $ac_compiler --version </dev/null >&5) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }
2285 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2286   (eval $ac_compiler -v </dev/null >&5) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }
2290 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2291   (eval $ac_compiler -V </dev/null >&5) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }
2295
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302
2303 int
2304 main ()
2305 {
2306
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 ac_clean_files_save=$ac_clean_files
2312 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2313 # Try to create an executable without -o first, disregard a.out.
2314 # It will help us diagnose broken compilers, and finding out an intuition
2315 # of exeext.
2316 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2317 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2318 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2320   (eval $ac_link_default) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; then
2324   # Find the output, starting from the most likely.  This scheme is
2325 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2326 # resort.
2327
2328 # Be careful to initialize this variable, since it used to be cached.
2329 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2330 ac_cv_exeext=
2331 # b.out is created by i960 compilers.
2332 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2333 do
2334   test -f "$ac_file" || continue
2335   case $ac_file in
2336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2337         ;;
2338     conftest.$ac_ext )
2339         # This is the source file.
2340         ;;
2341     [ab].out )
2342         # We found the default executable, but exeext='' is most
2343         # certainly right.
2344         break;;
2345     *.* )
2346         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347         # FIXME: I believe we export ac_cv_exeext for Libtool,
2348         # but it would be cool to find out if it's true.  Does anybody
2349         # maintain Libtool? --akim.
2350         export ac_cv_exeext
2351         break;;
2352     * )
2353         break;;
2354   esac
2355 done
2356 else
2357   echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2359
2360 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: C compiler cannot create executables
2363 See \`config.log' for more details." >&2;}
2364    { (exit 77); exit 77; }; }
2365 fi
2366
2367 ac_exeext=$ac_cv_exeext
2368 echo "$as_me:$LINENO: result: $ac_file" >&5
2369 echo "${ECHO_T}$ac_file" >&6
2370
2371 # Check the compiler produces executables we can run.  If not, either
2372 # the compiler is broken, or we cross compile.
2373 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2374 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2375 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2376 # If not cross compiling, check that we can run a simple program.
2377 if test "$cross_compiling" != yes; then
2378   if { ac_try='./$ac_file'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; }; then
2384     cross_compiling=no
2385   else
2386     if test "$cross_compiling" = maybe; then
2387         cross_compiling=yes
2388     else
2389         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2390 If you meant to cross compile, use \`--host'.
2391 See \`config.log' for more details." >&5
2392 echo "$as_me: error: cannot run C compiled programs.
2393 If you meant to cross compile, use \`--host'.
2394 See \`config.log' for more details." >&2;}
2395    { (exit 1); exit 1; }; }
2396     fi
2397   fi
2398 fi
2399 echo "$as_me:$LINENO: result: yes" >&5
2400 echo "${ECHO_T}yes" >&6
2401
2402 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2403 ac_clean_files=$ac_clean_files_save
2404 # Check the compiler produces executables we can run.  If not, either
2405 # the compiler is broken, or we cross compile.
2406 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2407 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2408 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2409 echo "${ECHO_T}$cross_compiling" >&6
2410
2411 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2412 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2414   (eval $ac_link) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; then
2418   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2419 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2420 # work properly (i.e., refer to `conftest.exe'), while it won't with
2421 # `rm'.
2422 for ac_file in conftest.exe conftest conftest.*; do
2423   test -f "$ac_file" || continue
2424   case $ac_file in
2425     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2426     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2427           export ac_cv_exeext
2428           break;;
2429     * ) break;;
2430   esac
2431 done
2432 else
2433   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }
2438 fi
2439
2440 rm -f conftest$ac_cv_exeext
2441 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2442 echo "${ECHO_T}$ac_cv_exeext" >&6
2443
2444 rm -f conftest.$ac_ext
2445 EXEEXT=$ac_cv_exeext
2446 ac_exeext=$EXEEXT
2447 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2448 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2449 if test "${ac_cv_objext+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   cat >conftest.$ac_ext <<_ACEOF
2453 /* confdefs.h.  */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h.  */
2458
2459 int
2460 main ()
2461 {
2462
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.o conftest.obj
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469   (eval $ac_compile) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; then
2473   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2474   case $ac_file in
2475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2476     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2477        break;;
2478   esac
2479 done
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2492 fi
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2496 ac_objext=$OBJEXT
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512 #ifndef __GNUC__
2513        choke me
2514 #endif
2515
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522   (eval $ac_compile) 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; } &&
2535          { ac_try='test -s conftest.$ac_objext'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; }; then
2541   ac_compiler_gnu=yes
2542 else
2543   echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 ac_compiler_gnu=no
2547 fi
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2550
2551 fi
2552 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2553 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2554 GCC=`test $ac_compiler_gnu = yes && echo yes`
2555 ac_test_CFLAGS=${CFLAGS+set}
2556 ac_save_CFLAGS=$CFLAGS
2557 CFLAGS="-g"
2558 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2559 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2560 if test "${ac_cv_prog_cc_g+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569
2570 int
2571 main ()
2572 {
2573
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580   (eval $ac_compile) 2>conftest.er1
2581   ac_status=$?
2582   grep -v '^ *+' conftest.er1 >conftest.err
2583   rm -f conftest.er1
2584   cat conftest.err >&5
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); } &&
2587          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589   (eval $ac_try) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); }; } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   ac_cv_prog_cc_g=yes
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 ac_cv_prog_cc_g=no
2605 fi
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 fi
2608 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2610 if test "$ac_test_CFLAGS" = set; then
2611   CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613   if test "$GCC" = yes; then
2614     CFLAGS="-g -O2"
2615   else
2616     CFLAGS="-g"
2617   fi
2618 else
2619   if test "$GCC" = yes; then
2620     CFLAGS="-O2"
2621   else
2622     CFLAGS=
2623   fi
2624 fi
2625 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2626 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2627 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   ac_cv_prog_cc_stdc=no
2631 ac_save_CC=$CC
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638 #include <stdarg.h>
2639 #include <stdio.h>
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2646      char **p;
2647      int i;
2648 {
2649   return p[i];
2650 }
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2652 {
2653   char *s;
2654   va_list v;
2655   va_start (v,p);
2656   s = g (p, va_arg (v,int));
2657   va_end (v);
2658   return s;
2659 }
2660
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2662    function prototypes and stuff, but not '\xHH' hex character constants.
2663    These don't provoke an error unfortunately, instead are silently treated
2664    as 'x'.  The following induces an error, until -std1 is added to get
2665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2666    array size at least.  It's necessary to write '\x00'==0 to get something
2667    that's true only with -std1.  */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674 int argc;
2675 char **argv;
2676 int
2677 main ()
2678 {
2679 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Don't try gcc -ansi; that turns off useful extensions and
2685 # breaks some systems' header files.
2686 # AIX                   -qlanglvl=ansi
2687 # Ultrix and OSF/1      -std1
2688 # HP-UX 10.20 and later -Ae
2689 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2690 # SVR4                  -Xc -D__EXTENSIONS__
2691 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692 do
2693   CC="$ac_save_CC $ac_arg"
2694   rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696   (eval $ac_compile) 2>conftest.er1
2697   ac_status=$?
2698   grep -v '^ *+' conftest.er1 >conftest.err
2699   rm -f conftest.er1
2700   cat conftest.err >&5
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); } &&
2703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; } &&
2709          { ac_try='test -s conftest.$ac_objext'
2710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); }; }; then
2715   ac_cv_prog_cc_stdc=$ac_arg
2716 break
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 fi
2722 rm -f conftest.err conftest.$ac_objext
2723 done
2724 rm -f conftest.$ac_ext conftest.$ac_objext
2725 CC=$ac_save_CC
2726
2727 fi
2728
2729 case "x$ac_cv_prog_cc_stdc" in
2730   x|xno)
2731     echo "$as_me:$LINENO: result: none needed" >&5
2732 echo "${ECHO_T}none needed" >&6 ;;
2733   *)
2734     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2735 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2736     CC="$CC $ac_cv_prog_cc_stdc" ;;
2737 esac
2738
2739 # Some people use a C++ compiler to compile C.  Since we use `exit',
2740 # in C++ we need to declare it.  In case someone uses the same compiler
2741 # for both compiling C and C++ we need to have the C++ compiler decide
2742 # the declaration of exit, since it's the most demanding environment.
2743 cat >conftest.$ac_ext <<_ACEOF
2744 #ifndef __cplusplus
2745   choke me
2746 #endif
2747 _ACEOF
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750   (eval $ac_compile) 2>conftest.er1
2751   ac_status=$?
2752   grep -v '^ *+' conftest.er1 >conftest.err
2753   rm -f conftest.er1
2754   cat conftest.err >&5
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); } &&
2757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; } &&
2763          { ac_try='test -s conftest.$ac_objext'
2764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; }; then
2769   for ac_declaration in \
2770    '' \
2771    'extern "C" void std::exit (int) throw (); using std::exit;' \
2772    'extern "C" void std::exit (int); using std::exit;' \
2773    'extern "C" void exit (int) throw ();' \
2774    'extern "C" void exit (int);' \
2775    'void exit (int);'
2776 do
2777   cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h.  */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h.  */
2783 $ac_declaration
2784 #include <stdlib.h>
2785 int
2786 main ()
2787 {
2788 exit (42);
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795   (eval $ac_compile) 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   :
2815 else
2816   echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819 continue
2820 fi
2821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2822   cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 $ac_declaration
2829 int
2830 main ()
2831 {
2832 exit (42);
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839   (eval $ac_compile) 2>conftest.er1
2840   ac_status=$?
2841   grep -v '^ *+' conftest.er1 >conftest.err
2842   rm -f conftest.er1
2843   cat conftest.err >&5
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } &&
2846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848   (eval $ac_try) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; } &&
2852          { ac_try='test -s conftest.$ac_objext'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858   break
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 fi
2864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865 done
2866 rm -f conftest*
2867 if test -n "$ac_declaration"; then
2868   echo '#ifdef __cplusplus' >>confdefs.h
2869   echo $ac_declaration      >>confdefs.h
2870   echo '#endif'             >>confdefs.h
2871 fi
2872
2873 else
2874   echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877 fi
2878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884
2885 ac_ext=cc
2886 ac_cpp='$CXXCPP $CPPFLAGS'
2887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2892   do
2893     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895 echo "$as_me:$LINENO: checking for $ac_word" >&5
2896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2897 if test "${ac_cv_prog_CXX+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   if test -n "$CXX"; then
2901   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906   IFS=$as_save_IFS
2907   test -z "$as_dir" && as_dir=.
2908   for ac_exec_ext in '' $ac_executable_extensions; do
2909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912     break 2
2913   fi
2914 done
2915 done
2916
2917 fi
2918 fi
2919 CXX=$ac_cv_prog_CXX
2920 if test -n "$CXX"; then
2921   echo "$as_me:$LINENO: result: $CXX" >&5
2922 echo "${ECHO_T}$CXX" >&6
2923 else
2924   echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2926 fi
2927
2928     test -n "$CXX" && break
2929   done
2930 fi
2931 if test -z "$CXX"; then
2932   ac_ct_CXX=$CXX
2933   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2934 do
2935   # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2939 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   if test -n "$ac_ct_CXX"; then
2943   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950   for ac_exec_ext in '' $ac_executable_extensions; do
2951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952     ac_cv_prog_ac_ct_CXX="$ac_prog"
2953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954     break 2
2955   fi
2956 done
2957 done
2958
2959 fi
2960 fi
2961 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2962 if test -n "$ac_ct_CXX"; then
2963   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2964 echo "${ECHO_T}$ac_ct_CXX" >&6
2965 else
2966   echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968 fi
2969
2970   test -n "$ac_ct_CXX" && break
2971 done
2972 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2973
2974   CXX=$ac_ct_CXX
2975 fi
2976
2977
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO:" \
2980      "checking for C++ compiler version" >&5
2981 ac_compiler=`set X $ac_compile; echo $2`
2982 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2983   (eval $ac_compiler --version </dev/null >&5) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }
2987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2988   (eval $ac_compiler -v </dev/null >&5) 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }
2992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2993   (eval $ac_compiler -V </dev/null >&5) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }
2997
2998 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2999 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3000 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003   cat >conftest.$ac_ext <<_ACEOF
3004 /* confdefs.h.  */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h.  */
3009
3010 int
3011 main ()
3012 {
3013 #ifndef __GNUC__
3014        choke me
3015 #endif
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023   (eval $ac_compile) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } &&
3030          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032   (eval $ac_try) 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; } &&
3036          { ac_try='test -s conftest.$ac_objext'
3037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038   (eval $ac_try) 2>&5
3039   ac_status=$?
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); }; }; then
3042   ac_compiler_gnu=yes
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 ac_compiler_gnu=no
3048 fi
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3051
3052 fi
3053 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3054 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3055 GXX=`test $ac_compiler_gnu = yes && echo yes`
3056 ac_test_CXXFLAGS=${CXXFLAGS+set}
3057 ac_save_CXXFLAGS=$CXXFLAGS
3058 CXXFLAGS="-g"
3059 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3060 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3061 if test "${ac_cv_prog_cxx_g+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3081   (eval $ac_compile) 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } &&
3088          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090   (eval $ac_try) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; } &&
3094          { ac_try='test -s conftest.$ac_objext'
3095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096   (eval $ac_try) 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   ac_cv_prog_cxx_g=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 ac_cv_prog_cxx_g=no
3106 fi
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108 fi
3109 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3110 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3111 if test "$ac_test_CXXFLAGS" = set; then
3112   CXXFLAGS=$ac_save_CXXFLAGS
3113 elif test $ac_cv_prog_cxx_g = yes; then
3114   if test "$GXX" = yes; then
3115     CXXFLAGS="-g -O2"
3116   else
3117     CXXFLAGS="-g"
3118   fi
3119 else
3120   if test "$GXX" = yes; then
3121     CXXFLAGS="-O2"
3122   else
3123     CXXFLAGS=
3124   fi
3125 fi
3126 for ac_declaration in \
3127    '' \
3128    'extern "C" void std::exit (int) throw (); using std::exit;' \
3129    'extern "C" void std::exit (int); using std::exit;' \
3130    'extern "C" void exit (int) throw ();' \
3131    'extern "C" void exit (int);' \
3132    'void exit (int);'
3133 do
3134   cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h.  */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h.  */
3140 $ac_declaration
3141 #include <stdlib.h>
3142 int
3143 main ()
3144 {
3145 exit (42);
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152   (eval $ac_compile) 2>conftest.er1
3153   ac_status=$?
3154   grep -v '^ *+' conftest.er1 >conftest.err
3155   rm -f conftest.er1
3156   cat conftest.err >&5
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } &&
3159          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161   (eval $ac_try) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; } &&
3165          { ac_try='test -s conftest.$ac_objext'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; }; then
3171   :
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 continue
3177 fi
3178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179   cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h.  */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h.  */
3185 $ac_declaration
3186 int
3187 main ()
3188 {
3189 exit (42);
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3196   (eval $ac_compile) 2>conftest.er1
3197   ac_status=$?
3198   grep -v '^ *+' conftest.er1 >conftest.err
3199   rm -f conftest.er1
3200   cat conftest.err >&5
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); } &&
3203          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205   (eval $ac_try) 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; } &&
3209          { ac_try='test -s conftest.$ac_objext'
3210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211   (eval $ac_try) 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }; }; then
3215   break
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 fi
3221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3222 done
3223 rm -f conftest*
3224 if test -n "$ac_declaration"; then
3225   echo '#ifdef __cplusplus' >>confdefs.h
3226   echo $ac_declaration      >>confdefs.h
3227   echo '#endif'             >>confdefs.h
3228 fi
3229
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235
3236 # Check whether --enable-shared or --disable-shared was given.
3237 if test "${enable_shared+set}" = set; then
3238   enableval="$enable_shared"
3239   p=${PACKAGE-default}
3240     case $enableval in
3241     yes) enable_shared=yes ;;
3242     no) enable_shared=no ;;
3243     *)
3244       enable_shared=no
3245       # Look at the argument we got.  We use all the common list separators.
3246       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3247       for pkg in $enableval; do
3248         IFS="$lt_save_ifs"
3249         if test "X$pkg" = "X$p"; then
3250           enable_shared=yes
3251         fi
3252       done
3253       IFS="$lt_save_ifs"
3254       ;;
3255     esac
3256 else
3257   enable_shared=yes
3258 fi;
3259
3260 # Check whether --enable-static or --disable-static was given.
3261 if test "${enable_static+set}" = set; then
3262   enableval="$enable_static"
3263   p=${PACKAGE-default}
3264     case $enableval in
3265     yes) enable_static=yes ;;
3266     no) enable_static=no ;;
3267     *)
3268      enable_static=no
3269       # Look at the argument we got.  We use all the common list separators.
3270       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3271       for pkg in $enableval; do
3272         IFS="$lt_save_ifs"
3273         if test "X$pkg" = "X$p"; then
3274           enable_static=yes
3275         fi
3276       done
3277       IFS="$lt_save_ifs"
3278       ;;
3279     esac
3280 else
3281   enable_static=yes
3282 fi;
3283
3284 # Check whether --enable-fast-install or --disable-fast-install was given.
3285 if test "${enable_fast_install+set}" = set; then
3286   enableval="$enable_fast_install"
3287   p=${PACKAGE-default}
3288     case $enableval in
3289     yes) enable_fast_install=yes ;;
3290     no) enable_fast_install=no ;;
3291     *)
3292       enable_fast_install=no
3293       # Look at the argument we got.  We use all the common list separators.
3294       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3295       for pkg in $enableval; do
3296         IFS="$lt_save_ifs"
3297         if test "X$pkg" = "X$p"; then
3298           enable_fast_install=yes
3299         fi
3300       done
3301       IFS="$lt_save_ifs"
3302       ;;
3303     esac
3304 else
3305   enable_fast_install=yes
3306 fi;
3307
3308 # Make sure we can run config.sub.
3309 $ac_config_sub sun4 >/dev/null 2>&1 ||
3310   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3311 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3312    { (exit 1); exit 1; }; }
3313
3314 echo "$as_me:$LINENO: checking build system type" >&5
3315 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3316 if test "${ac_cv_build+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   ac_cv_build_alias=$build_alias
3320 test -z "$ac_cv_build_alias" &&
3321   ac_cv_build_alias=`$ac_config_guess`
3322 test -z "$ac_cv_build_alias" &&
3323   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3324 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3325    { (exit 1); exit 1; }; }
3326 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3327   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3328 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3329    { (exit 1); exit 1; }; }
3330
3331 fi
3332 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3333 echo "${ECHO_T}$ac_cv_build" >&6
3334 build=$ac_cv_build
3335 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3336 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3337 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3338
3339
3340 echo "$as_me:$LINENO: checking host system type" >&5
3341 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3342 if test "${ac_cv_host+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   ac_cv_host_alias=$host_alias
3346 test -z "$ac_cv_host_alias" &&
3347   ac_cv_host_alias=$ac_cv_build_alias
3348 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3349   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3350 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3351    { (exit 1); exit 1; }; }
3352
3353 fi
3354 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3355 echo "${ECHO_T}$ac_cv_host" >&6
3356 host=$ac_cv_host
3357 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3358 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3359 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3360
3361
3362 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3363 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3364 if test "${lt_cv_path_SED+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   # Loop through the user's path and test for sed and gsed.
3368 # Then use that list of sed's as ones to test for truncation.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374   for lt_ac_prog in sed gsed; do
3375     for ac_exec_ext in '' $ac_executable_extensions; do
3376       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3377         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3378       fi
3379     done
3380   done
3381 done
3382 lt_ac_max=0
3383 lt_ac_count=0
3384 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3385 # along with /bin/sed that truncates output.
3386 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3387   test ! -f $lt_ac_sed && continue
3388   cat /dev/null > conftest.in
3389   lt_ac_count=0
3390   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3391   # Check for GNU sed and select it if it is found.
3392   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3393     lt_cv_path_SED=$lt_ac_sed
3394     break
3395   fi
3396   while true; do
3397     cat conftest.in conftest.in >conftest.tmp
3398     mv conftest.tmp conftest.in
3399     cp conftest.in conftest.nl
3400     echo >>conftest.nl
3401     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3402     cmp -s conftest.out conftest.nl || break
3403     # 10000 chars as input seems more than enough
3404     test $lt_ac_count -gt 10 && break
3405     lt_ac_count=`expr $lt_ac_count + 1`
3406     if test $lt_ac_count -gt $lt_ac_max; then
3407       lt_ac_max=$lt_ac_count
3408       lt_cv_path_SED=$lt_ac_sed
3409     fi
3410   done
3411 done
3412
3413 fi
3414
3415 SED=$lt_cv_path_SED
3416 echo "$as_me:$LINENO: result: $SED" >&5
3417 echo "${ECHO_T}$SED" >&6
3418
3419 echo "$as_me:$LINENO: checking for egrep" >&5
3420 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3421 if test "${ac_cv_prog_egrep+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3425     then ac_cv_prog_egrep='grep -E'
3426     else ac_cv_prog_egrep='egrep'
3427     fi
3428 fi
3429 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3430 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3431  EGREP=$ac_cv_prog_egrep
3432
3433
3434
3435 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3436 if test "${with_gnu_ld+set}" = set; then
3437   withval="$with_gnu_ld"
3438   test "$withval" = no || with_gnu_ld=yes
3439 else
3440   with_gnu_ld=no
3441 fi;
3442 ac_prog=ld
3443 if test "$GCC" = yes; then
3444   # Check if gcc -print-prog-name=ld gives a path.
3445   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3446 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3447   case $host in
3448   *-*-mingw*)
3449     # gcc leaves a trailing carriage return which upsets mingw
3450     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3451   *)
3452     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3453   esac
3454   case $ac_prog in
3455     # Accept absolute paths.
3456     [\\/]* | ?:[\\/]*)
3457       re_direlt='/[^/][^/]*/\.\./'
3458       # Canonicalize the pathname of ld
3459       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3460       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3461         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3462       done
3463       test -z "$LD" && LD="$ac_prog"
3464       ;;
3465   "")
3466     # If it fails, then pretend we aren't using GCC.
3467     ac_prog=ld
3468     ;;
3469   *)
3470     # If it is relative, then search for the first ld in PATH.
3471     with_gnu_ld=unknown
3472     ;;
3473   esac
3474 elif test "$with_gnu_ld" = yes; then
3475   echo "$as_me:$LINENO: checking for GNU ld" >&5
3476 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3477 else
3478   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3479 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3480 fi
3481 if test "${lt_cv_path_LD+set}" = set; then
3482   echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484   if test -z "$LD"; then
3485   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3486   for ac_dir in $PATH; do
3487     IFS="$lt_save_ifs"
3488     test -z "$ac_dir" && ac_dir=.
3489     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3490       lt_cv_path_LD="$ac_dir/$ac_prog"
3491       # Check to see if the program is GNU ld.  I'd rather use --version,
3492       # but apparently some variants of GNU ld only accept -v.
3493       # Break only if it was the GNU/non-GNU ld that we prefer.
3494       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3495       *GNU* | *'with BFD'*)
3496         test "$with_gnu_ld" != no && break
3497         ;;
3498       *)
3499         test "$with_gnu_ld" != yes && break
3500         ;;
3501       esac
3502     fi
3503   done
3504   IFS="$lt_save_ifs"
3505 else
3506   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3507 fi
3508 fi
3509
3510 LD="$lt_cv_path_LD"
3511 if test -n "$LD"; then
3512   echo "$as_me:$LINENO: result: $LD" >&5
3513 echo "${ECHO_T}$LD" >&6
3514 else
3515   echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3517 fi
3518 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3519 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3520    { (exit 1); exit 1; }; }
3521 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3522 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3523 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3524   echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3527 case `$LD -v 2>&1 </dev/null` in
3528 *GNU* | *'with BFD'*)
3529   lt_cv_prog_gnu_ld=yes
3530   ;;
3531 *)
3532   lt_cv_prog_gnu_ld=no
3533   ;;
3534 esac
3535 fi
3536 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3537 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3538 with_gnu_ld=$lt_cv_prog_gnu_ld
3539
3540
3541 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3542 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3543 if test "${lt_cv_ld_reload_flag+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   lt_cv_ld_reload_flag='-r'
3547 fi
3548 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3549 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3550 reload_flag=$lt_cv_ld_reload_flag
3551 case $reload_flag in
3552 "" | " "*) ;;
3553 *) reload_flag=" $reload_flag" ;;
3554 esac
3555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3556 case $host_os in
3557   darwin*)
3558     if test "$GCC" = yes; then
3559       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3560     else
3561       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3562     fi
3563     ;;
3564 esac
3565
3566 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3567 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3568 if test "${lt_cv_path_NM+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   if test -n "$NM"; then
3572   # Let the user override the test.
3573   lt_cv_path_NM="$NM"
3574 else
3575   lt_nm_to_check="${ac_tool_prefix}nm"
3576   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3577     lt_nm_to_check="$lt_nm_to_check nm"
3578   fi
3579   for lt_tmp_nm in $lt_nm_to_check; do
3580     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3581     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3582       IFS="$lt_save_ifs"
3583       test -z "$ac_dir" && ac_dir=.
3584       tmp_nm="$ac_dir/$lt_tmp_nm"
3585       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3586         # Check to see if the nm accepts a BSD-compat flag.
3587         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3588         #   nm: unknown option "B" ignored
3589         # Tru64's nm complains that /dev/null is an invalid object file
3590         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3591         */dev/null* | *'Invalid file or object type'*)
3592           lt_cv_path_NM="$tmp_nm -B"
3593           break
3594           ;;
3595         *)
3596           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3597           */dev/null*)
3598             lt_cv_path_NM="$tmp_nm -p"
3599             break
3600             ;;
3601           *)
3602             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3603             continue # so that we can try to find one that supports BSD flags
3604             ;;
3605           esac
3606           ;;
3607         esac
3608       fi
3609     done
3610     IFS="$lt_save_ifs"
3611   done
3612   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3613 fi
3614 fi
3615 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3616 echo "${ECHO_T}$lt_cv_path_NM" >&6
3617 NM="$lt_cv_path_NM"
3618
3619 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3620 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3621 LN_S=$as_ln_s
3622 if test "$LN_S" = "ln -s"; then
3623   echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6
3625 else
3626   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3627 echo "${ECHO_T}no, using $LN_S" >&6
3628 fi
3629
3630 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3631 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3632 if test "${lt_cv_deplibs_check_method+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   lt_cv_file_magic_cmd='$MAGIC_CMD'
3636 lt_cv_file_magic_test_file=
3637 lt_cv_deplibs_check_method='unknown'
3638 # Need to set the preceding variable on all platforms that support
3639 # interlibrary dependencies.
3640 # 'none' -- dependencies not supported.
3641 # `unknown' -- same as none, but documents that we really don't know.
3642 # 'pass_all' -- all dependencies passed with no checks.
3643 # 'test_compile' -- check by making test program.
3644 # 'file_magic [[regex]]' -- check by looking for files in library path
3645 # which responds to the $file_magic_cmd with a given extended regex.
3646 # If you have `file' or equivalent on your system and you're not sure
3647 # whether `pass_all' will *always* work, you probably want this one.
3648
3649 case $host_os in
3650 aix4* | aix5*)
3651   lt_cv_deplibs_check_method=pass_all
3652   ;;
3653
3654 beos*)
3655   lt_cv_deplibs_check_method=pass_all
3656   ;;
3657
3658 bsdi[45]*)
3659   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3660   lt_cv_file_magic_cmd='/usr/bin/file -L'
3661   lt_cv_file_magic_test_file=/shlib/libc.so
3662   ;;
3663
3664 cygwin*)
3665   # func_win32_libid is a shell function defined in ltmain.sh
3666   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3667   lt_cv_file_magic_cmd='func_win32_libid'
3668   ;;
3669
3670 mingw* | pw32*)
3671   # Base MSYS/MinGW do not provide the 'file' command needed by
3672   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3673   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3674   lt_cv_file_magic_cmd='$OBJDUMP -f'
3675   ;;
3676
3677 darwin* | rhapsody*)
3678   lt_cv_deplibs_check_method=pass_all
3679   ;;
3680
3681 freebsd* | kfreebsd*-gnu | dragonfly*)
3682   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3683     case $host_cpu in
3684     i*86 )
3685       # Not sure whether the presence of OpenBSD here was a mistake.
3686       # Let's accept both of them until this is cleared up.
3687       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3688       lt_cv_file_magic_cmd=/usr/bin/file
3689       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3690       ;;
3691     esac
3692   else
3693     lt_cv_deplibs_check_method=pass_all
3694   fi
3695   ;;
3696
3697 gnu*)
3698   lt_cv_deplibs_check_method=pass_all
3699   ;;
3700
3701 hpux10.20* | hpux11*)
3702   lt_cv_file_magic_cmd=/usr/bin/file
3703   case $host_cpu in
3704   ia64*)
3705     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3706     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3707     ;;
3708   hppa*64*)
3709     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]'
3710     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3711     ;;
3712   *)
3713     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3714     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3715     ;;
3716   esac
3717   ;;
3718
3719 interix3*)
3720   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3721   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3722   ;;
3723
3724 irix5* | irix6* | nonstopux*)
3725   case $LD in
3726   *-32|*"-32 ") libmagic=32-bit;;
3727   *-n32|*"-n32 ") libmagic=N32;;
3728   *-64|*"-64 ") libmagic=64-bit;;
3729   *) libmagic=never-match;;
3730   esac
3731   lt_cv_deplibs_check_method=pass_all
3732   ;;
3733
3734 # This must be Linux ELF.
3735 linux*)
3736   lt_cv_deplibs_check_method=pass_all
3737   ;;
3738
3739 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3740   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3741     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3742   else
3743     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3744   fi
3745   ;;
3746
3747 newos6*)
3748   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3749   lt_cv_file_magic_cmd=/usr/bin/file
3750   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3751   ;;
3752
3753 nto-qnx*)
3754   lt_cv_deplibs_check_method=unknown
3755   ;;
3756
3757 openbsd*)
3758   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3759     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3760   else
3761     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3762   fi
3763   ;;
3764
3765 osf3* | osf4* | osf5*)
3766   lt_cv_deplibs_check_method=pass_all
3767   ;;
3768
3769 solaris*)
3770   lt_cv_deplibs_check_method=pass_all
3771   ;;
3772
3773 sysv4 | sysv4.3*)
3774   case $host_vendor in
3775   motorola)
3776     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]'
3777     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3778     ;;
3779   ncr)
3780     lt_cv_deplibs_check_method=pass_all
3781     ;;
3782   sequent)
3783     lt_cv_file_magic_cmd='/bin/file'
3784     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3785     ;;
3786   sni)
3787     lt_cv_file_magic_cmd='/bin/file'
3788     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3789     lt_cv_file_magic_test_file=/lib/libc.so
3790     ;;
3791   siemens)
3792     lt_cv_deplibs_check_method=pass_all
3793     ;;
3794   pc)
3795     lt_cv_deplibs_check_method=pass_all
3796     ;;
3797   esac
3798   ;;
3799
3800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3801   lt_cv_deplibs_check_method=pass_all
3802   ;;
3803 esac
3804
3805 fi
3806 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3807 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3808 file_magic_cmd=$lt_cv_file_magic_cmd
3809 deplibs_check_method=$lt_cv_deplibs_check_method
3810 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3811
3812
3813
3814
3815 # If no C compiler was specified, use CC.
3816 LTCC=${LTCC-"$CC"}
3817
3818 # If no C compiler flags were specified, use CFLAGS.
3819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3820
3821 # Allow CC to be a program name with arguments.
3822 compiler=$CC
3823
3824
3825 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3826 if test "${enable_libtool_lock+set}" = set; then
3827   enableval="$enable_libtool_lock"
3828
3829 fi;
3830 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3831
3832 # Some flags need to be propagated to the compiler or linker for good
3833 # libtool support.
3834 case $host in
3835 ia64-*-hpux*)
3836   # Find out which ABI we are using.
3837   echo 'int i;' > conftest.$ac_ext
3838   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3839   (eval $ac_compile) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; then
3843     case `/usr/bin/file conftest.$ac_objext` in
3844     *ELF-32*)
3845       HPUX_IA64_MODE="32"
3846       ;;
3847     *ELF-64*)
3848       HPUX_IA64_MODE="64"
3849       ;;
3850     esac
3851   fi
3852   rm -rf conftest*
3853   ;;
3854 *-*-irix6*)
3855   # Find out which ABI we are using.
3856   echo '#line 3856 "configure"' > conftest.$ac_ext
3857   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858   (eval $ac_compile) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; then
3862    if test "$lt_cv_prog_gnu_ld" = yes; then
3863     case `/usr/bin/file conftest.$ac_objext` in
3864     *32-bit*)
3865       LD="${LD-ld} -melf32bsmip"
3866       ;;
3867     *N32*)
3868       LD="${LD-ld} -melf32bmipn32"
3869       ;;
3870     *64-bit*)
3871       LD="${LD-ld} -melf64bmip"
3872       ;;
3873     esac
3874    else
3875     case `/usr/bin/file conftest.$ac_objext` in
3876     *32-bit*)
3877       LD="${LD-ld} -32"
3878       ;;
3879     *N32*)
3880       LD="${LD-ld} -n32"
3881       ;;
3882     *64-bit*)
3883       LD="${LD-ld} -64"
3884       ;;
3885     esac
3886    fi
3887   fi
3888   rm -rf conftest*
3889   ;;
3890
3891 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3892   # Find out which ABI we are using.
3893   echo 'int i;' > conftest.$ac_ext
3894   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895   (eval $ac_compile) 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }; then
3899     case `/usr/bin/file conftest.o` in
3900     *32-bit*)
3901       case $host in
3902         x86_64-*linux*)
3903           LD="${LD-ld} -m elf_i386"
3904           ;;
3905         ppc64-*linux*|powerpc64-*linux*)
3906           LD="${LD-ld} -m elf32ppclinux"
3907           ;;
3908         s390x-*linux*)
3909           LD="${LD-ld} -m elf_s390"
3910           ;;
3911         sparc64-*linux*)
3912           LD="${LD-ld} -m elf32_sparc"
3913           ;;
3914       esac
3915       ;;
3916     *64-bit*)
3917       case $host in
3918         x86_64-*linux*)
3919           LD="${LD-ld} -m elf_x86_64"
3920           ;;
3921         ppc*-*linux*|powerpc*-*linux*)
3922           LD="${LD-ld} -m elf64ppc"
3923           ;;
3924         s390*-*linux*)
3925           LD="${LD-ld} -m elf64_s390"
3926           ;;
3927         sparc*-*linux*)
3928           LD="${LD-ld} -m elf64_sparc"
3929           ;;
3930       esac
3931       ;;
3932     esac
3933   fi
3934   rm -rf conftest*
3935   ;;
3936
3937 *-*-sco3.2v5*)
3938   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3939   SAVE_CFLAGS="$CFLAGS"
3940   CFLAGS="$CFLAGS -belf"
3941   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3942 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3943 if test "${lt_cv_cc_needs_belf+set}" = set; then
3944   echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946   ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951
3952      cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h.  */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h.  */
3958
3959 int
3960 main ()
3961 {
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967 rm -f conftest.$ac_objext conftest$ac_exeext
3968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3969   (eval $ac_link) 2>conftest.er1
3970   ac_status=$?
3971   grep -v '^ *+' conftest.er1 >conftest.err
3972   rm -f conftest.er1
3973   cat conftest.err >&5
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } &&
3976          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978   (eval $ac_try) 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; } &&
3982          { ac_try='test -s conftest$ac_exeext'
3983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984   (eval $ac_try) 2>&5
3985   ac_status=$?
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); }; }; then
3988   lt_cv_cc_needs_belf=yes
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 lt_cv_cc_needs_belf=no
3994 fi
3995 rm -f conftest.err conftest.$ac_objext \
3996       conftest$ac_exeext conftest.$ac_ext
3997      ac_ext=c
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003 fi
4004 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4005 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4006   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4007     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4008     CFLAGS="$SAVE_CFLAGS"
4009   fi
4010   ;;
4011 sparc*-*solaris*)
4012   # Find out which ABI we are using.
4013   echo 'int i;' > conftest.$ac_ext
4014   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015   (eval $ac_compile) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; then
4019     case `/usr/bin/file conftest.o` in
4020     *64-bit*)
4021       case $lt_cv_prog_gnu_ld in
4022       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4023       *)    LD="${LD-ld} -64" ;;
4024       esac
4025       ;;
4026     esac
4027   fi
4028   rm -rf conftest*
4029   ;;
4030
4031
4032 esac
4033
4034 need_locks="$enable_libtool_lock"
4035
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4043 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4044 # On Suns, sometimes $CPP names a directory.
4045 if test -n "$CPP" && test -d "$CPP"; then
4046   CPP=
4047 fi
4048 if test -z "$CPP"; then
4049   if test "${ac_cv_prog_CPP+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052       # Double quotes because CPP needs to be expanded
4053     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4054     do
4055       ac_preproc_ok=false
4056 for ac_c_preproc_warn_flag in '' yes
4057 do
4058   # Use a header file that comes with gcc, so configuring glibc
4059   # with a fresh cross-compiler works.
4060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4061   # <limits.h> exists even on freestanding compilers.
4062   # On the NeXT, cc -E runs the code through the compiler's parser,
4063   # not just through cpp. "Syntax error" is here to catch this case.
4064   cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 #ifdef __STDC__
4071 # include <limits.h>
4072 #else
4073 # include <assert.h>
4074 #endif
4075                      Syntax error
4076 _ACEOF
4077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4079   ac_status=$?
4080   grep -v '^ *+' conftest.er1 >conftest.err
4081   rm -f conftest.er1
4082   cat conftest.err >&5
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); } >/dev/null; then
4085   if test -s conftest.err; then
4086     ac_cpp_err=$ac_c_preproc_warn_flag
4087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4088   else
4089     ac_cpp_err=
4090   fi
4091 else
4092   ac_cpp_err=yes
4093 fi
4094 if test -z "$ac_cpp_err"; then
4095   :
4096 else
4097   echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100   # Broken: fails on valid input.
4101 continue
4102 fi
4103 rm -f conftest.err conftest.$ac_ext
4104
4105   # OK, works on sane cases.  Now check whether non-existent headers
4106   # can be detected and how.
4107   cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113 #include <ac_nonexistent.h>
4114 _ACEOF
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4117   ac_status=$?
4118   grep -v '^ *+' conftest.er1 >conftest.err
4119   rm -f conftest.er1
4120   cat conftest.err >&5
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); } >/dev/null; then
4123   if test -s conftest.err; then
4124     ac_cpp_err=$ac_c_preproc_warn_flag
4125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4126   else
4127     ac_cpp_err=
4128   fi
4129 else
4130   ac_cpp_err=yes
4131 fi
4132 if test -z "$ac_cpp_err"; then
4133   # Broken: success on invalid input.
4134 continue
4135 else
4136   echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4138
4139   # Passes both tests.
4140 ac_preproc_ok=:
4141 break
4142 fi
4143 rm -f conftest.err conftest.$ac_ext
4144
4145 done
4146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4147 rm -f conftest.err conftest.$ac_ext
4148 if $ac_preproc_ok; then
4149   break
4150 fi
4151
4152     done
4153     ac_cv_prog_CPP=$CPP
4154
4155 fi
4156   CPP=$ac_cv_prog_CPP
4157 else
4158   ac_cv_prog_CPP=$CPP
4159 fi
4160 echo "$as_me:$LINENO: result: $CPP" >&5
4161 echo "${ECHO_T}$CPP" >&6
4162 ac_preproc_ok=false
4163 for ac_c_preproc_warn_flag in '' yes
4164 do
4165   # Use a header file that comes with gcc, so configuring glibc
4166   # with a fresh cross-compiler works.
4167   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168   # <limits.h> exists even on freestanding compilers.
4169   # On the NeXT, cc -E runs the code through the compiler's parser,
4170   # not just through cpp. "Syntax error" is here to catch this case.
4171   cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h.  */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h.  */
4177 #ifdef __STDC__
4178 # include <limits.h>
4179 #else
4180 # include <assert.h>
4181 #endif
4182                      Syntax error
4183 _ACEOF
4184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } >/dev/null; then
4192   if test -s conftest.err; then
4193     ac_cpp_err=$ac_c_preproc_warn_flag
4194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4195   else
4196     ac_cpp_err=
4197   fi
4198 else
4199   ac_cpp_err=yes
4200 fi
4201 if test -z "$ac_cpp_err"; then
4202   :
4203 else
4204   echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207   # Broken: fails on valid input.
4208 continue
4209 fi
4210 rm -f conftest.err conftest.$ac_ext
4211
4212   # OK, works on sane cases.  Now check whether non-existent headers
4213   # can be detected and how.
4214   cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220 #include <ac_nonexistent.h>
4221 _ACEOF
4222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4224   ac_status=$?
4225   grep -v '^ *+' conftest.er1 >conftest.err
4226   rm -f conftest.er1
4227   cat conftest.err >&5
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); } >/dev/null; then
4230   if test -s conftest.err; then
4231     ac_cpp_err=$ac_c_preproc_warn_flag
4232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4233   else
4234     ac_cpp_err=
4235   fi
4236 else
4237   ac_cpp_err=yes
4238 fi
4239 if test -z "$ac_cpp_err"; then
4240   # Broken: success on invalid input.
4241 continue
4242 else
4243   echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246   # Passes both tests.
4247 ac_preproc_ok=:
4248 break
4249 fi
4250 rm -f conftest.err conftest.$ac_ext
4251
4252 done
4253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4254 rm -f conftest.err conftest.$ac_ext
4255 if $ac_preproc_ok; then
4256   :
4257 else
4258   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4259 See \`config.log' for more details." >&5
4260 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4261 See \`config.log' for more details." >&2;}
4262    { (exit 1); exit 1; }; }
4263 fi
4264
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271
4272 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4273 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4274 if test "${ac_cv_header_stdc+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h.  */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h.  */
4283 #include <stdlib.h>
4284 #include <stdarg.h>
4285 #include <string.h>
4286 #include <float.h>
4287
4288 int
4289 main ()
4290 {
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298   (eval $ac_compile) 2>conftest.er1
4299   ac_status=$?
4300   grep -v '^ *+' conftest.er1 >conftest.err
4301   rm -f conftest.er1
4302   cat conftest.err >&5
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } &&
4305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; } &&
4311          { ac_try='test -s conftest.$ac_objext'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; }; then
4317   ac_cv_header_stdc=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 ac_cv_header_stdc=no
4323 fi
4324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4325
4326 if test $ac_cv_header_stdc = yes; then
4327   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4328   cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334 #include <string.h>
4335
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338   $EGREP "memchr" >/dev/null 2>&1; then
4339   :
4340 else
4341   ac_cv_header_stdc=no
4342 fi
4343 rm -f conftest*
4344
4345 fi
4346
4347 if test $ac_cv_header_stdc = yes; then
4348   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4349   cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 #include <stdlib.h>
4356
4357 _ACEOF
4358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4359   $EGREP "free" >/dev/null 2>&1; then
4360   :
4361 else
4362   ac_cv_header_stdc=no
4363 fi
4364 rm -f conftest*
4365
4366 fi
4367
4368 if test $ac_cv_header_stdc = yes; then
4369   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4370   if test "$cross_compiling" = yes; then
4371   :
4372 else
4373   cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379 #include <ctype.h>
4380 #if ((' ' & 0x0FF) == 0x020)
4381 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4382 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4383 #else
4384 # define ISLOWER(c) \
4385                    (('a' <= (c) && (c) <= 'i') \
4386                      || ('j' <= (c) && (c) <= 'r') \
4387                      || ('s' <= (c) && (c) <= 'z'))
4388 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4389 #endif
4390
4391 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4392 int
4393 main ()
4394 {
4395   int i;
4396   for (i = 0; i < 256; i++)
4397     if (XOR (islower (i), ISLOWER (i))
4398         || toupper (i) != TOUPPER (i))
4399       exit(2);
4400   exit (0);
4401 }
4402 _ACEOF
4403 rm -f conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405   (eval $ac_link) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   :
4415 else
4416   echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 ( exit $ac_status )
4421 ac_cv_header_stdc=no
4422 fi
4423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4424 fi
4425 fi
4426 fi
4427 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4428 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4429 if test $ac_cv_header_stdc = yes; then
4430
4431 cat >>confdefs.h <<\_ACEOF
4432 #define STDC_HEADERS 1
4433 _ACEOF
4434
4435 fi
4436
4437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448                   inttypes.h stdint.h unistd.h
4449 do
4450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451 echo "$as_me:$LINENO: checking for $ac_header" >&5
4452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462 $ac_includes_default
4463
4464 #include <$ac_header>
4465 _ACEOF
4466 rm -f conftest.$ac_objext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468   (eval $ac_compile) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } &&
4475          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477   (eval $ac_try) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; } &&
4481          { ac_try='test -s conftest.$ac_objext'
4482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483   (eval $ac_try) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }; }; then
4487   eval "$as_ac_Header=yes"
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492 eval "$as_ac_Header=no"
4493 fi
4494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4495 fi
4496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4499   cat >>confdefs.h <<_ACEOF
4500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4501 _ACEOF
4502
4503 fi
4504
4505 done
4506
4507
4508
4509 for ac_header in dlfcn.h
4510 do
4511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513   echo "$as_me:$LINENO: checking for $ac_header" >&5
4514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 fi
4518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4520 else
4521   # Is the header compilable?
4522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 $ac_includes_default
4531 #include <$ac_header>
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535   (eval $ac_compile) 2>conftest.er1
4536   ac_status=$?
4537   grep -v '^ *+' conftest.er1 >conftest.err
4538   rm -f conftest.er1
4539   cat conftest.err >&5
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } &&
4542          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544   (eval $ac_try) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }; } &&
4548          { ac_try='test -s conftest.$ac_objext'
4549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550   (eval $ac_try) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; }; then
4554   ac_header_compiler=yes
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 ac_header_compiler=no
4560 fi
4561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4563 echo "${ECHO_T}$ac_header_compiler" >&6
4564
4565 # Is the header present?
4566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4568 cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h.  */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h.  */
4574 #include <$ac_header>
4575 _ACEOF
4576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4578   ac_status=$?
4579   grep -v '^ *+' conftest.er1 >conftest.err
4580   rm -f conftest.er1
4581   cat conftest.err >&5
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } >/dev/null; then
4584   if test -s conftest.err; then
4585     ac_cpp_err=$ac_c_preproc_warn_flag
4586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4587   else
4588     ac_cpp_err=
4589   fi
4590 else
4591   ac_cpp_err=yes
4592 fi
4593 if test -z "$ac_cpp_err"; then
4594   ac_header_preproc=yes
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599   ac_header_preproc=no
4600 fi
4601 rm -f conftest.err conftest.$ac_ext
4602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4603 echo "${ECHO_T}$ac_header_preproc" >&6
4604
4605 # So?  What about this header?
4606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4607   yes:no: )
4608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4612     ac_header_preproc=yes
4613     ;;
4614   no:yes:* )
4615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4627     (
4628       cat <<\_ASBOX
4629 ## -------------------------------------------- ##
4630 ## Report this to sebastian.marsching@suphp.org ##
4631 ## -------------------------------------------- ##
4632 _ASBOX
4633     ) |
4634       sed "s/^/$as_me: WARNING:     /" >&2
4635     ;;
4636 esac
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   eval "$as_ac_Header=\$ac_header_preproc"
4643 fi
4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646
4647 fi
4648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4649   cat >>confdefs.h <<_ACEOF
4650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4651 _ACEOF
4652
4653 fi
4654
4655 done
4656
4657
4658
4659 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4660     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4661     (test "X$CXX" != "Xg++"))) ; then
4662   ac_ext=cc
4663 ac_cpp='$CXXCPP $CPPFLAGS'
4664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4667 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4668 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4669 if test -z "$CXXCPP"; then
4670   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673       # Double quotes because CXXCPP needs to be expanded
4674     for CXXCPP in "$CXX -E" "/lib/cpp"
4675     do
4676       ac_preproc_ok=false
4677 for ac_cxx_preproc_warn_flag in '' yes
4678 do
4679   # Use a header file that comes with gcc, so configuring glibc
4680   # with a fresh cross-compiler works.
4681   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682   # <limits.h> exists even on freestanding compilers.
4683   # On the NeXT, cc -E runs the code through the compiler's parser,
4684   # not just through cpp. "Syntax error" is here to catch this case.
4685   cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h.  */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h.  */
4691 #ifdef __STDC__
4692 # include <limits.h>
4693 #else
4694 # include <assert.h>
4695 #endif
4696                      Syntax error
4697 _ACEOF
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } >/dev/null; then
4706   if test -s conftest.err; then
4707     ac_cpp_err=$ac_cxx_preproc_warn_flag
4708     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4709   else
4710     ac_cpp_err=
4711   fi
4712 else
4713   ac_cpp_err=yes
4714 fi
4715 if test -z "$ac_cpp_err"; then
4716   :
4717 else
4718   echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721   # Broken: fails on valid input.
4722 continue
4723 fi
4724 rm -f conftest.err conftest.$ac_ext
4725
4726   # OK, works on sane cases.  Now check whether non-existent headers
4727   # can be detected and how.
4728   cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734 #include <ac_nonexistent.h>
4735 _ACEOF
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738   ac_status=$?
4739   grep -v '^ *+' conftest.er1 >conftest.err
4740   rm -f conftest.er1
4741   cat conftest.err >&5
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); } >/dev/null; then
4744   if test -s conftest.err; then
4745     ac_cpp_err=$ac_cxx_preproc_warn_flag
4746     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4747   else
4748     ac_cpp_err=
4749   fi
4750 else
4751   ac_cpp_err=yes
4752 fi
4753 if test -z "$ac_cpp_err"; then
4754   # Broken: success on invalid input.
4755 continue
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760   # Passes both tests.
4761 ac_preproc_ok=:
4762 break
4763 fi
4764 rm -f conftest.err conftest.$ac_ext
4765
4766 done
4767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4768 rm -f conftest.err conftest.$ac_ext
4769 if $ac_preproc_ok; then
4770   break
4771 fi
4772
4773     done
4774     ac_cv_prog_CXXCPP=$CXXCPP
4775
4776 fi
4777   CXXCPP=$ac_cv_prog_CXXCPP
4778 else
4779   ac_cv_prog_CXXCPP=$CXXCPP
4780 fi
4781 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4782 echo "${ECHO_T}$CXXCPP" >&6
4783 ac_preproc_ok=false
4784 for ac_cxx_preproc_warn_flag in '' yes
4785 do
4786   # Use a header file that comes with gcc, so configuring glibc
4787   # with a fresh cross-compiler works.
4788   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4789   # <limits.h> exists even on freestanding compilers.
4790   # On the NeXT, cc -E runs the code through the compiler's parser,
4791   # not just through cpp. "Syntax error" is here to catch this case.
4792   cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798 #ifdef __STDC__
4799 # include <limits.h>
4800 #else
4801 # include <assert.h>
4802 #endif
4803                      Syntax error
4804 _ACEOF
4805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4807   ac_status=$?
4808   grep -v '^ *+' conftest.er1 >conftest.err
4809   rm -f conftest.er1
4810   cat conftest.err >&5
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); } >/dev/null; then
4813   if test -s conftest.err; then
4814     ac_cpp_err=$ac_cxx_preproc_warn_flag
4815     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4816   else
4817     ac_cpp_err=
4818   fi
4819 else
4820   ac_cpp_err=yes
4821 fi
4822 if test -z "$ac_cpp_err"; then
4823   :
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828   # Broken: fails on valid input.
4829 continue
4830 fi
4831 rm -f conftest.err conftest.$ac_ext
4832
4833   # OK, works on sane cases.  Now check whether non-existent headers
4834   # can be detected and how.
4835   cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841 #include <ac_nonexistent.h>
4842 _ACEOF
4843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845   ac_status=$?
4846   grep -v '^ *+' conftest.er1 >conftest.err
4847   rm -f conftest.er1
4848   cat conftest.err >&5
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); } >/dev/null; then
4851   if test -s conftest.err; then
4852     ac_cpp_err=$ac_cxx_preproc_warn_flag
4853     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4854   else
4855     ac_cpp_err=
4856   fi
4857 else
4858   ac_cpp_err=yes
4859 fi
4860 if test -z "$ac_cpp_err"; then
4861   # Broken: success on invalid input.
4862 continue
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867   # Passes both tests.
4868 ac_preproc_ok=:
4869 break
4870 fi
4871 rm -f conftest.err conftest.$ac_ext
4872
4873 done
4874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875 rm -f conftest.err conftest.$ac_ext
4876 if $ac_preproc_ok; then
4877   :
4878 else
4879   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4880 See \`config.log' for more details." >&5
4881 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4882 See \`config.log' for more details." >&2;}
4883    { (exit 1); exit 1; }; }
4884 fi
4885
4886 ac_ext=cc
4887 ac_cpp='$CXXCPP $CPPFLAGS'
4888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4891
4892 fi
4893
4894
4895 ac_ext=f
4896 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4897 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4899 if test -n "$ac_tool_prefix"; then
4900   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4901   do
4902     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_F77+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$F77"; then
4910   ac_cv_prog_F77="$F77" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925
4926 fi
4927 fi
4928 F77=$ac_cv_prog_F77
4929 if test -n "$F77"; then
4930   echo "$as_me:$LINENO: result: $F77" >&5
4931 echo "${ECHO_T}$F77" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937     test -n "$F77" && break
4938   done
4939 fi
4940 if test -z "$F77"; then
4941   ac_ct_F77=$F77
4942   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4943 do
4944   # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   if test -n "$ac_ct_F77"; then
4952   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961     ac_cv_prog_ac_ct_F77="$ac_prog"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967
4968 fi
4969 fi
4970 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4971 if test -n "$ac_ct_F77"; then
4972   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4973 echo "${ECHO_T}$ac_ct_F77" >&6
4974 else
4975   echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6
4977 fi
4978
4979   test -n "$ac_ct_F77" && break
4980 done
4981
4982   F77=$ac_ct_F77
4983 fi
4984
4985
4986 # Provide some information about the compiler.
4987 echo "$as_me:4987:" \
4988      "checking for Fortran 77 compiler version" >&5
4989 ac_compiler=`set X $ac_compile; echo $2`
4990 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4991   (eval $ac_compiler --version </dev/null >&5) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }
4995 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4996   (eval $ac_compiler -v </dev/null >&5) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }
5000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5001   (eval $ac_compiler -V </dev/null >&5) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }
5005 rm -f a.out
5006
5007 # If we don't use `.F' as extension, the preprocessor is not run on the
5008 # input file.  (Note that this only needs to work for GNU compilers.)
5009 ac_save_ext=$ac_ext
5010 ac_ext=F
5011 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5012 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5013 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   cat >conftest.$ac_ext <<_ACEOF
5017       program main
5018 #ifndef __GNUC__
5019        choke me
5020 #endif
5021
5022       end
5023 _ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026   (eval $ac_compile) 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } &&
5033          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035   (eval $ac_try) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); }; } &&
5039          { ac_try='test -s conftest.$ac_objext'
5040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041   (eval $ac_try) 2>&5
5042   ac_status=$?
5043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); }; }; then
5045   ac_compiler_gnu=yes
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_compiler_gnu=no
5051 fi
5052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5054
5055 fi
5056 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5057 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5058 ac_ext=$ac_save_ext
5059 ac_test_FFLAGS=${FFLAGS+set}
5060 ac_save_FFLAGS=$FFLAGS
5061 FFLAGS=
5062 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5063 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5064 if test "${ac_cv_prog_f77_g+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   FFLAGS=-g
5068 cat >conftest.$ac_ext <<_ACEOF
5069       program main
5070
5071       end
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075   (eval $ac_compile) 2>conftest.er1
5076   ac_status=$?
5077   grep -v '^ *+' conftest.er1 >conftest.err
5078   rm -f conftest.er1
5079   cat conftest.err >&5
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } &&
5082          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; } &&
5088          { ac_try='test -s conftest.$ac_objext'
5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090   (eval $ac_try) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }; }; then
5094   ac_cv_prog_f77_g=yes
5095 else
5096   echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 ac_cv_prog_f77_g=no
5100 fi
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102
5103 fi
5104 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5105 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5106 if test "$ac_test_FFLAGS" = set; then
5107   FFLAGS=$ac_save_FFLAGS
5108 elif test $ac_cv_prog_f77_g = yes; then
5109   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5110     FFLAGS="-g -O2"
5111   else
5112     FFLAGS="-g"
5113   fi
5114 else
5115   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5116     FFLAGS="-O2"
5117   else
5118     FFLAGS=
5119   fi
5120 fi
5121
5122 G77=`test $ac_compiler_gnu = yes && echo yes`
5123 ac_ext=c
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128
5129
5130
5131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5132
5133 # find the maximum length of command line arguments
5134 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5135 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5136 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139     i=0
5140   teststring="ABCD"
5141
5142   case $build_os in
5143   msdosdjgpp*)
5144     # On DJGPP, this test can blow up pretty badly due to problems in libc
5145     # (any single argument exceeding 2000 bytes causes a buffer overrun
5146     # during glob expansion).  Even if it were fixed, the result of this
5147     # check would be larger than it should be.
5148     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5149     ;;
5150
5151   gnu*)
5152     # Under GNU Hurd, this test is not required because there is
5153     # no limit to the length of command line arguments.
5154     # Libtool will interpret -1 as no limit whatsoever
5155     lt_cv_sys_max_cmd_len=-1;
5156     ;;
5157
5158   cygwin* | mingw*)
5159     # On Win9x/ME, this test blows up -- it succeeds, but takes
5160     # about 5 minutes as the teststring grows exponentially.
5161     # Worse, since 9x/ME are not pre-emptively multitasking,
5162     # you end up with a "frozen" computer, even though with patience
5163     # the test eventually succeeds (with a max line length of 256k).
5164     # Instead, let's just punt: use the minimum linelength reported by
5165     # all of the supported platforms: 8192 (on NT/2K/XP).
5166     lt_cv_sys_max_cmd_len=8192;
5167     ;;
5168
5169   amigaos*)
5170     # On AmigaOS with pdksh, this test takes hours, literally.
5171     # So we just punt and use a minimum line length of 8192.
5172     lt_cv_sys_max_cmd_len=8192;
5173     ;;
5174
5175   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5176     # This has been around since 386BSD, at least.  Likely further.
5177     if test -x /sbin/sysctl; then
5178       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5179     elif test -x /usr/sbin/sysctl; then
5180       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5181     else
5182       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5183     fi
5184     # And add a safety zone
5185     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5186     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5187     ;;
5188
5189   interix*)
5190     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5191     lt_cv_sys_max_cmd_len=196608
5192     ;;
5193
5194   osf*)
5195     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5196     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5197     # nice to cause kernel panics so lets avoid the loop below.
5198     # First set a reasonable default.
5199     lt_cv_sys_max_cmd_len=16384
5200     #
5201     if test -x /sbin/sysconfig; then
5202       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5203         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5204       esac
5205     fi
5206     ;;
5207   sco3.2v5*)
5208     lt_cv_sys_max_cmd_len=102400
5209     ;;
5210   sysv5* | sco5v6* | sysv4.2uw2*)
5211     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5212     if test -n "$kargmax"; then
5213       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5214     else
5215       lt_cv_sys_max_cmd_len=32768
5216     fi
5217     ;;
5218   *)
5219     # If test is not a shell built-in, we'll probably end up computing a
5220     # maximum length that is only half of the actual maximum length, but
5221     # we can't tell.
5222     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5223     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5224                = "XX$teststring") >/dev/null 2>&1 &&
5225             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5226             lt_cv_sys_max_cmd_len=$new_result &&
5227             test $i != 17 # 1/2 MB should be enough
5228     do
5229       i=`expr $i + 1`
5230       teststring=$teststring$teststring
5231     done
5232     teststring=
5233     # Add a significant safety factor because C++ compilers can tack on massive
5234     # amounts of additional arguments before passing them to the linker.
5235     # It appears as though 1/2 is a usable value.
5236     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5237     ;;
5238   esac
5239
5240 fi
5241
5242 if test -n $lt_cv_sys_max_cmd_len ; then
5243   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5244 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5245 else
5246   echo "$as_me:$LINENO: result: none" >&5
5247 echo "${ECHO_T}none" >&6
5248 fi
5249
5250
5251
5252
5253 # Check for command to grab the raw symbol name followed by C symbol from nm.
5254 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5256 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259
5260 # These are sane defaults that work on at least a few old systems.
5261 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5262
5263 # Character class describing NM global symbol codes.
5264 symcode='[BCDEGRST]'
5265
5266 # Regexp to match symbols that can be accessed directly from C.
5267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5268
5269 # Transform an extracted symbol line into a proper C declaration
5270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5271
5272 # Transform an extracted symbol line into symbol name and symbol address
5273 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'"
5274
5275 # Define system-specific variables.
5276 case $host_os in
5277 aix*)
5278   symcode='[BCDT]'
5279   ;;
5280 cygwin* | mingw* | pw32*)
5281   symcode='[ABCDGISTW]'
5282   ;;
5283 hpux*) # Its linker distinguishes data from code symbols
5284   if test "$host_cpu" = ia64; then
5285     symcode='[ABCDEGRST]'
5286   fi
5287   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5288   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'"
5289   ;;
5290 linux*)
5291   if test "$host_cpu" = ia64; then
5292     symcode='[ABCDGIRSTW]'
5293     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5294     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'"
5295   fi
5296   ;;
5297 irix* | nonstopux*)
5298   symcode='[BCDEGRST]'
5299   ;;
5300 osf*)
5301   symcode='[BCDEGQRST]'
5302   ;;
5303 solaris*)
5304   symcode='[BDRT]'
5305   ;;
5306 sco3.2v5*)
5307   symcode='[DT]'
5308   ;;
5309 sysv4.2uw2*)
5310   symcode='[DT]'
5311   ;;
5312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5313   symcode='[ABDT]'
5314   ;;
5315 sysv4)
5316   symcode='[DFNSTU]'
5317   ;;
5318 esac
5319
5320 # Handle CRLF in mingw tool chain
5321 opt_cr=
5322 case $build_os in
5323 mingw*)
5324   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5325   ;;
5326 esac
5327
5328 # If we're using GNU nm, then use its standard symbol codes.
5329 case `$NM -V 2>&1` in
5330 *GNU* | *'with BFD'*)
5331   symcode='[ABCDGIRSTW]' ;;
5332 esac
5333
5334 # Try without a prefix undercore, then with it.
5335 for ac_symprfx in "" "_"; do
5336
5337   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5338   symxfrm="\\1 $ac_symprfx\\2 \\2"
5339
5340   # Write the raw and C identifiers.
5341   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5342
5343   # Check to see that the pipe works correctly.
5344   pipe_works=no
5345
5346   rm -f conftest*
5347   cat > conftest.$ac_ext <<EOF
5348 #ifdef __cplusplus
5349 extern "C" {
5350 #endif
5351 char nm_test_var;
5352 void nm_test_func(){}
5353 #ifdef __cplusplus
5354 }
5355 #endif
5356 int main(){nm_test_var='a';nm_test_func();return(0);}
5357 EOF
5358
5359   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360   (eval $ac_compile) 2>&5
5361   ac_status=$?
5362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363   (exit $ac_status); }; then
5364     # Now try to grab the symbols.
5365     nlist=conftest.nm
5366     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5367   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } && test -s "$nlist"; then
5371       # Try sorting and uniquifying the output.
5372       if sort "$nlist" | uniq > "$nlist"T; then
5373         mv -f "$nlist"T "$nlist"
5374       else
5375         rm -f "$nlist"T
5376       fi
5377
5378       # Make sure that we snagged all the symbols we need.
5379       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5380         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5381           cat <<EOF > conftest.$ac_ext
5382 #ifdef __cplusplus
5383 extern "C" {
5384 #endif
5385
5386 EOF
5387           # Now generate the symbol file.
5388           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5389
5390           cat <<EOF >> conftest.$ac_ext
5391 #if defined (__STDC__) && __STDC__
5392 # define lt_ptr_t void *
5393 #else
5394 # define lt_ptr_t char *
5395 # define const
5396 #endif
5397
5398 /* The mapping between symbol names and symbols. */
5399 const struct {
5400   const char *name;
5401   lt_ptr_t address;
5402 }
5403 lt_preloaded_symbols[] =
5404 {
5405 EOF
5406           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5407           cat <<\EOF >> conftest.$ac_ext
5408   {0, (lt_ptr_t) 0}
5409 };
5410
5411 #ifdef __cplusplus
5412 }
5413 #endif
5414 EOF
5415           # Now try linking the two files.
5416           mv conftest.$ac_objext conftstm.$ac_objext
5417           lt_save_LIBS="$LIBS"
5418           lt_save_CFLAGS="$CFLAGS"
5419           LIBS="conftstm.$ac_objext"
5420           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5421           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422   (eval $ac_link) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5426             pipe_works=yes
5427           fi
5428           LIBS="$lt_save_LIBS"
5429           CFLAGS="$lt_save_CFLAGS"
5430         else
5431           echo "cannot find nm_test_func in $nlist" >&5
5432         fi
5433       else
5434         echo "cannot find nm_test_var in $nlist" >&5
5435       fi
5436     else
5437       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5438     fi
5439   else
5440     echo "$progname: failed program was:" >&5
5441     cat conftest.$ac_ext >&5
5442   fi
5443   rm -f conftest* conftst*
5444
5445   # Do not use the global_symbol_pipe unless it works.
5446   if test "$pipe_works" = yes; then
5447     break
5448   else
5449     lt_cv_sys_global_symbol_pipe=
5450   fi
5451 done
5452
5453 fi
5454
5455 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5456   lt_cv_sys_global_symbol_to_cdecl=
5457 fi
5458 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5459   echo "$as_me:$LINENO: result: failed" >&5
5460 echo "${ECHO_T}failed" >&6
5461 else
5462   echo "$as_me:$LINENO: result: ok" >&5
5463 echo "${ECHO_T}ok" >&6
5464 fi
5465
5466 echo "$as_me:$LINENO: checking for objdir" >&5
5467 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5468 if test "${lt_cv_objdir+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   rm -f .libs 2>/dev/null
5472 mkdir .libs 2>/dev/null
5473 if test -d .libs; then
5474   lt_cv_objdir=.libs
5475 else
5476   # MS-DOS does not allow filenames that begin with a dot.
5477   lt_cv_objdir=_libs
5478 fi
5479 rmdir .libs 2>/dev/null
5480 fi
5481 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5482 echo "${ECHO_T}$lt_cv_objdir" >&6
5483 objdir=$lt_cv_objdir
5484
5485
5486
5487
5488
5489 case $host_os in
5490 aix3*)
5491   # AIX sometimes has problems with the GCC collect2 program.  For some
5492   # reason, if we set the COLLECT_NAMES environment variable, the problems
5493   # vanish in a puff of smoke.
5494   if test "X${COLLECT_NAMES+set}" != Xset; then
5495     COLLECT_NAMES=
5496     export COLLECT_NAMES
5497   fi
5498   ;;
5499 esac
5500
5501 # Sed substitution that helps us do robust quoting.  It backslashifies
5502 # metacharacters that are still active within double-quoted strings.
5503 Xsed='sed -e 1s/^X//'
5504 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5505
5506 # Same as above, but do not quote variable references.
5507 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5508
5509 # Sed substitution to delay expansion of an escaped shell variable in a
5510 # double_quote_subst'ed string.
5511 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5512
5513 # Sed substitution to avoid accidental globbing in evaled expressions
5514 no_glob_subst='s/\*/\\\*/g'
5515
5516 # Constants:
5517 rm="rm -f"
5518
5519 # Global variables:
5520 default_ofile=libtool
5521 can_build_shared=yes
5522
5523 # All known linkers require a `.a' archive for static linking (except MSVC,
5524 # which needs '.lib').
5525 libext=a
5526 ltmain="$ac_aux_dir/ltmain.sh"
5527 ofile="$default_ofile"
5528 with_gnu_ld="$lt_cv_prog_gnu_ld"
5529
5530 if test -n "$ac_tool_prefix"; then
5531   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}ar; ac_word=$2
5533 echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535 if test "${ac_cv_prog_AR+set}" = set; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538   if test -n "$AR"; then
5539   ac_cv_prog_AR="$AR" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544   IFS=$as_save_IFS
5545   test -z "$as_dir" && as_dir=.
5546   for ac_exec_ext in '' $ac_executable_extensions; do
5547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548     ac_cv_prog_AR="${ac_tool_prefix}ar"
5549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550     break 2
5551   fi
5552 done
5553 done
5554
5555 fi
5556 fi
5557 AR=$ac_cv_prog_AR
5558 if test -n "$AR"; then
5559   echo "$as_me:$LINENO: result: $AR" >&5
5560 echo "${ECHO_T}$AR" >&6
5561 else
5562   echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5564 fi
5565
5566 fi
5567 if test -z "$ac_cv_prog_AR"; then
5568   ac_ct_AR=$AR
5569   # Extract the first word of "ar", so it can be a program name with args.
5570 set dummy ar; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576   if test -n "$ac_ct_AR"; then
5577   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582   IFS=$as_save_IFS
5583   test -z "$as_dir" && as_dir=.
5584   for ac_exec_ext in '' $ac_executable_extensions; do
5585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586     ac_cv_prog_ac_ct_AR="ar"
5587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588     break 2
5589   fi
5590 done
5591 done
5592
5593   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5594 fi
5595 fi
5596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5597 if test -n "$ac_ct_AR"; then
5598   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5599 echo "${ECHO_T}$ac_ct_AR" >&6
5600 else
5601   echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5603 fi
5604
5605   AR=$ac_ct_AR
5606 else
5607   AR="$ac_cv_prog_AR"
5608 fi
5609
5610 if test -n "$ac_tool_prefix"; then
5611   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5613 echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5615 if test "${ac_cv_prog_RANLIB+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   if test -n "$RANLIB"; then
5619   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626   for ac_exec_ext in '' $ac_executable_extensions; do
5627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630     break 2
5631   fi
5632 done
5633 done
5634
5635 fi
5636 fi
5637 RANLIB=$ac_cv_prog_RANLIB
5638 if test -n "$RANLIB"; then
5639   echo "$as_me:$LINENO: result: $RANLIB" >&5
5640 echo "${ECHO_T}$RANLIB" >&6
5641 else
5642   echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644 fi
5645
5646 fi
5647 if test -z "$ac_cv_prog_RANLIB"; then
5648   ac_ct_RANLIB=$RANLIB
5649   # Extract the first word of "ranlib", so it can be a program name with args.
5650 set dummy ranlib; ac_word=$2
5651 echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5653 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   if test -n "$ac_ct_RANLIB"; then
5657   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662   IFS=$as_save_IFS
5663   test -z "$as_dir" && as_dir=.
5664   for ac_exec_ext in '' $ac_executable_extensions; do
5665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666     ac_cv_prog_ac_ct_RANLIB="ranlib"
5667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668     break 2
5669   fi
5670 done
5671 done
5672
5673   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5674 fi
5675 fi
5676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5677 if test -n "$ac_ct_RANLIB"; then
5678   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5679 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5680 else
5681   echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6
5683 fi
5684
5685   RANLIB=$ac_ct_RANLIB
5686 else
5687   RANLIB="$ac_cv_prog_RANLIB"
5688 fi
5689
5690 if test -n "$ac_tool_prefix"; then
5691   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}strip; ac_word=$2
5693 echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5695 if test "${ac_cv_prog_STRIP+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   if test -n "$STRIP"; then
5699   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706   for ac_exec_ext in '' $ac_executable_extensions; do
5707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713 done
5714
5715 fi
5716 fi
5717 STRIP=$ac_cv_prog_STRIP
5718 if test -n "$STRIP"; then
5719   echo "$as_me:$LINENO: result: $STRIP" >&5
5720 echo "${ECHO_T}$STRIP" >&6
5721 else
5722   echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5724 fi
5725
5726 fi
5727 if test -z "$ac_cv_prog_STRIP"; then
5728   ac_ct_STRIP=$STRIP
5729   # Extract the first word of "strip", so it can be a program name with args.
5730 set dummy strip; ac_word=$2
5731 echo "$as_me:$LINENO: checking for $ac_word" >&5
5732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   if test -n "$ac_ct_STRIP"; then
5737   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742   IFS=$as_save_IFS
5743   test -z "$as_dir" && as_dir=.
5744   for ac_exec_ext in '' $ac_executable_extensions; do
5745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746     ac_cv_prog_ac_ct_STRIP="strip"
5747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748     break 2
5749   fi
5750 done
5751 done
5752
5753   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5754 fi
5755 fi
5756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5757 if test -n "$ac_ct_STRIP"; then
5758   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5759 echo "${ECHO_T}$ac_ct_STRIP" >&6
5760 else
5761   echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5763 fi
5764
5765   STRIP=$ac_ct_STRIP
5766 else
5767   STRIP="$ac_cv_prog_STRIP"
5768 fi
5769
5770
5771 old_CC="$CC"
5772 old_CFLAGS="$CFLAGS"
5773
5774 # Set sane defaults for various variables
5775 test -z "$AR" && AR=ar
5776 test -z "$AR_FLAGS" && AR_FLAGS=cru
5777 test -z "$AS" && AS=as
5778 test -z "$CC" && CC=cc
5779 test -z "$LTCC" && LTCC=$CC
5780 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5781 test -z "$DLLTOOL" && DLLTOOL=dlltool
5782 test -z "$LD" && LD=ld
5783 test -z "$LN_S" && LN_S="ln -s"
5784 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5785 test -z "$NM" && NM=nm
5786 test -z "$SED" && SED=sed
5787 test -z "$OBJDUMP" && OBJDUMP=objdump
5788 test -z "$RANLIB" && RANLIB=:
5789 test -z "$STRIP" && STRIP=:
5790 test -z "$ac_objext" && ac_objext=o
5791
5792 # Determine commands to create old-style static archives.
5793 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5794 old_postinstall_cmds='chmod 644 $oldlib'
5795 old_postuninstall_cmds=
5796
5797 if test -n "$RANLIB"; then
5798   case $host_os in
5799   openbsd*)
5800     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5801     ;;
5802   *)
5803     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5804     ;;
5805   esac
5806   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5807 fi
5808
5809 for cc_temp in $compiler""; do
5810   case $cc_temp in
5811     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5812     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5813     \-*) ;;
5814     *) break;;
5815   esac
5816 done
5817 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5818
5819
5820 # Only perform the check for file, if the check method requires it
5821 case $deplibs_check_method in
5822 file_magic*)
5823   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5824     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5825 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   case $MAGIC_CMD in
5830 [\\/*] |  ?:[\\/]*)
5831   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5832   ;;
5833 *)
5834   lt_save_MAGIC_CMD="$MAGIC_CMD"
5835   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5836   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5837   for ac_dir in $ac_dummy; do
5838     IFS="$lt_save_ifs"
5839     test -z "$ac_dir" && ac_dir=.
5840     if test -f $ac_dir/${ac_tool_prefix}file; then
5841       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5842       if test -n "$file_magic_test_file"; then
5843         case $deplibs_check_method in
5844         "file_magic "*)
5845           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5846           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5847           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5848             $EGREP "$file_magic_regex" > /dev/null; then
5849             :
5850           else
5851             cat <<EOF 1>&2
5852
5853 *** Warning: the command libtool uses to detect shared libraries,
5854 *** $file_magic_cmd, produces output that libtool cannot recognize.
5855 *** The result is that libtool may fail to recognize shared libraries
5856 *** as such.  This will affect the creation of libtool libraries that
5857 *** depend on shared libraries, but programs linked with such libtool
5858 *** libraries will work regardless of this problem.  Nevertheless, you
5859 *** may want to report the problem to your system manager and/or to
5860 *** bug-libtool@gnu.org
5861
5862 EOF
5863           fi ;;
5864         esac
5865       fi
5866       break
5867     fi
5868   done
5869   IFS="$lt_save_ifs"
5870   MAGIC_CMD="$lt_save_MAGIC_CMD"
5871   ;;
5872 esac
5873 fi
5874
5875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5876 if test -n "$MAGIC_CMD"; then
5877   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5878 echo "${ECHO_T}$MAGIC_CMD" >&6
5879 else
5880   echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5882 fi
5883
5884 if test -z "$lt_cv_path_MAGIC_CMD"; then
5885   if test -n "$ac_tool_prefix"; then
5886     echo "$as_me:$LINENO: checking for file" >&5
5887 echo $ECHO_N "checking for file... $ECHO_C" >&6
5888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   case $MAGIC_CMD in
5892 [\\/*] |  ?:[\\/]*)
5893   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5894   ;;
5895 *)
5896   lt_save_MAGIC_CMD="$MAGIC_CMD"
5897   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5898   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5899   for ac_dir in $ac_dummy; do
5900     IFS="$lt_save_ifs"
5901     test -z "$ac_dir" && ac_dir=.
5902     if test -f $ac_dir/file; then
5903       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5904       if test -n "$file_magic_test_file"; then
5905         case $deplibs_check_method in
5906         "file_magic "*)
5907           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5908           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5909           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5910             $EGREP "$file_magic_regex" > /dev/null; then
5911             :
5912           else
5913             cat <<EOF 1>&2
5914
5915 *** Warning: the command libtool uses to detect shared libraries,
5916 *** $file_magic_cmd, produces output that libtool cannot recognize.
5917 *** The result is that libtool may fail to recognize shared libraries
5918 *** as such.  This will affect the creation of libtool libraries that
5919 *** depend on shared libraries, but programs linked with such libtool
5920 *** libraries will work regardless of this problem.  Nevertheless, you
5921 *** may want to report the problem to your system manager and/or to
5922 *** bug-libtool@gnu.org
5923
5924 EOF
5925           fi ;;
5926         esac
5927       fi
5928       break
5929     fi
5930   done
5931   IFS="$lt_save_ifs"
5932   MAGIC_CMD="$lt_save_MAGIC_CMD"
5933   ;;
5934 esac
5935 fi
5936
5937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5938 if test -n "$MAGIC_CMD"; then
5939   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5940 echo "${ECHO_T}$MAGIC_CMD" >&6
5941 else
5942   echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5944 fi
5945
5946   else
5947     MAGIC_CMD=:
5948   fi
5949 fi
5950
5951   fi
5952   ;;
5953 esac
5954
5955 enable_dlopen=no
5956 enable_win32_dll=no
5957
5958 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5959 if test "${enable_libtool_lock+set}" = set; then
5960   enableval="$enable_libtool_lock"
5961
5962 fi;
5963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5964
5965
5966 # Check whether --with-pic or --without-pic was given.
5967 if test "${with_pic+set}" = set; then
5968   withval="$with_pic"
5969   pic_mode="$withval"
5970 else
5971   pic_mode=default
5972 fi;
5973 test -z "$pic_mode" && pic_mode=default
5974
5975 # Use C for the default configuration in the libtool script
5976 tagname=
5977 lt_save_CC="$CC"
5978 ac_ext=c
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984
5985 # Source file extension for C test sources.
5986 ac_ext=c
5987
5988 # Object file extension for compiled C test sources.
5989 objext=o
5990 objext=$objext
5991
5992 # Code to be used in simple compile tests
5993 lt_simple_compile_test_code="int some_variable = 0;\n"
5994
5995 # Code to be used in simple link tests
5996 lt_simple_link_test_code='int main(){return(0);}\n'
5997
5998
5999 # If no C compiler was specified, use CC.
6000 LTCC=${LTCC-"$CC"}
6001
6002 # If no C compiler flags were specified, use CFLAGS.
6003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6004
6005 # Allow CC to be a program name with arguments.
6006 compiler=$CC
6007
6008
6009 # save warnings/boilerplate of simple test code
6010 ac_outfile=conftest.$ac_objext
6011 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6013 _lt_compiler_boilerplate=`cat conftest.err`
6014 $rm conftest*
6015
6016 ac_outfile=conftest.$ac_objext
6017 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6019 _lt_linker_boilerplate=`cat conftest.err`
6020 $rm conftest*
6021
6022
6023
6024 lt_prog_compiler_no_builtin_flag=
6025
6026 if test "$GCC" = yes; then
6027   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6028
6029
6030 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6031 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6032 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   lt_cv_prog_compiler_rtti_exceptions=no
6036   ac_outfile=conftest.$ac_objext
6037    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6038    lt_compiler_flag="-fno-rtti -fno-exceptions"
6039    # Insert the option either (1) after the last *FLAGS variable, or
6040    # (2) before a word containing "conftest.", or (3) at the end.
6041    # Note that $ac_compile itself does not contain backslashes and begins
6042    # with a dollar sign (not a hyphen), so the echo should work correctly.
6043    # The option is referenced via a variable to avoid confusing sed.
6044    lt_compile=`echo "$ac_compile" | $SED \
6045    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6047    -e 's:$: $lt_compiler_flag:'`
6048    (eval echo "\"\$as_me:6048: $lt_compile\"" >&5)
6049    (eval "$lt_compile" 2>conftest.err)
6050    ac_status=$?
6051    cat conftest.err >&5
6052    echo "$as_me:6052: \$? = $ac_status" >&5
6053    if (exit $ac_status) && test -s "$ac_outfile"; then
6054      # The compiler can only warn and ignore the option if not recognized
6055      # So say no if there are warnings other than the usual output.
6056      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6057      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6058      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6059        lt_cv_prog_compiler_rtti_exceptions=yes
6060      fi
6061    fi
6062    $rm conftest*
6063
6064 fi
6065 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6066 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6067
6068 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6069     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6070 else
6071     :
6072 fi
6073
6074 fi
6075
6076 lt_prog_compiler_wl=
6077 lt_prog_compiler_pic=
6078 lt_prog_compiler_static=
6079
6080 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6081 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6082
6083   if test "$GCC" = yes; then
6084     lt_prog_compiler_wl='-Wl,'
6085     lt_prog_compiler_static='-static'
6086
6087     case $host_os in
6088       aix*)
6089       # All AIX code is PIC.
6090       if test "$host_cpu" = ia64; then
6091         # AIX 5 now supports IA64 processor
6092         lt_prog_compiler_static='-Bstatic'
6093       fi
6094       ;;
6095
6096     amigaos*)
6097       # FIXME: we need at least 68020 code to build shared libraries, but
6098       # adding the `-m68020' flag to GCC prevents building anything better,
6099       # like `-m68040'.
6100       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6101       ;;
6102
6103     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6104       # PIC is the default for these OSes.
6105       ;;
6106
6107     mingw* | pw32* | os2*)
6108       # This hack is so that the source file can tell whether it is being
6109       # built for inclusion in a dll (and should export symbols for example).
6110       lt_prog_compiler_pic='-DDLL_EXPORT'
6111       ;;
6112
6113     darwin* | rhapsody*)
6114       # PIC is the default on this platform
6115       # Common symbols not allowed in MH_DYLIB files
6116       lt_prog_compiler_pic='-fno-common'
6117       ;;
6118
6119     interix3*)
6120       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6121       # Instead, we relocate shared libraries at runtime.
6122       ;;
6123
6124     msdosdjgpp*)
6125       # Just because we use GCC doesn't mean we suddenly get shared libraries
6126       # on systems that don't support them.
6127       lt_prog_compiler_can_build_shared=no
6128       enable_shared=no
6129       ;;
6130
6131     sysv4*MP*)
6132       if test -d /usr/nec; then
6133         lt_prog_compiler_pic=-Kconform_pic
6134       fi
6135       ;;
6136
6137     hpux*)
6138       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6139       # not for PA HP-UX.
6140       case $host_cpu in
6141       hppa*64*|ia64*)
6142         # +Z the default
6143         ;;
6144       *)
6145         lt_prog_compiler_pic='-fPIC'
6146         ;;
6147       esac
6148       ;;
6149
6150     *)
6151       lt_prog_compiler_pic='-fPIC'
6152       ;;
6153     esac
6154   else
6155     # PORTME Check for flag to pass linker flags through the system compiler.
6156     case $host_os in
6157     aix*)
6158       lt_prog_compiler_wl='-Wl,'
6159       if test "$host_cpu" = ia64; then
6160         # AIX 5 now supports IA64 processor
6161         lt_prog_compiler_static='-Bstatic'
6162       else
6163         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6164       fi
6165       ;;
6166       darwin*)
6167         # PIC is the default on this platform
6168         # Common symbols not allowed in MH_DYLIB files
6169        case $cc_basename in
6170          xlc*)
6171          lt_prog_compiler_pic='-qnocommon'
6172          lt_prog_compiler_wl='-Wl,'
6173          ;;
6174        esac
6175        ;;
6176
6177     mingw* | pw32* | os2*)
6178       # This hack is so that the source file can tell whether it is being
6179       # built for inclusion in a dll (and should export symbols for example).
6180       lt_prog_compiler_pic='-DDLL_EXPORT'
6181       ;;
6182
6183     hpux9* | hpux10* | hpux11*)
6184       lt_prog_compiler_wl='-Wl,'
6185       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6186       # not for PA HP-UX.
6187       case $host_cpu in
6188       hppa*64*|ia64*)
6189         # +Z the default
6190         ;;
6191       *)
6192         lt_prog_compiler_pic='+Z'
6193         ;;
6194       esac
6195       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6196       lt_prog_compiler_static='${wl}-a ${wl}archive'
6197       ;;
6198
6199     irix5* | irix6* | nonstopux*)
6200       lt_prog_compiler_wl='-Wl,'
6201       # PIC (with -KPIC) is the default.
6202       lt_prog_compiler_static='-non_shared'
6203       ;;
6204
6205     newsos6)
6206       lt_prog_compiler_pic='-KPIC'
6207       lt_prog_compiler_static='-Bstatic'
6208       ;;
6209
6210     linux*)
6211       case $cc_basename in
6212       icc* | ecc*)
6213         lt_prog_compiler_wl='-Wl,'
6214         lt_prog_compiler_pic='-KPIC'
6215         lt_prog_compiler_static='-static'
6216         ;;
6217       pgcc* | pgf77* | pgf90* | pgf95*)
6218         # Portland Group compilers (*not* the Pentium gcc compiler,
6219         # which looks to be a dead project)
6220         lt_prog_compiler_wl='-Wl,'
6221         lt_prog_compiler_pic='-fpic'
6222         lt_prog_compiler_static='-Bstatic'
6223         ;;
6224       ccc*)
6225         lt_prog_compiler_wl='-Wl,'
6226         # All Alpha code is PIC.
6227         lt_prog_compiler_static='-non_shared'
6228         ;;
6229       esac
6230       ;;
6231
6232     osf3* | osf4* | osf5*)
6233       lt_prog_compiler_wl='-Wl,'
6234       # All OSF/1 code is PIC.
6235       lt_prog_compiler_static='-non_shared'
6236       ;;
6237
6238     solaris*)
6239       lt_prog_compiler_pic='-KPIC'
6240       lt_prog_compiler_static='-Bstatic'
6241       case $cc_basename in
6242       f77* | f90* | f95*)
6243         lt_prog_compiler_wl='-Qoption ld ';;
6244       *)
6245         lt_prog_compiler_wl='-Wl,';;
6246       esac
6247       ;;
6248
6249     sunos4*)
6250       lt_prog_compiler_wl='-Qoption ld '
6251       lt_prog_compiler_pic='-PIC'
6252       lt_prog_compiler_static='-Bstatic'
6253       ;;
6254
6255     sysv4 | sysv4.2uw2* | sysv4.3*)
6256       lt_prog_compiler_wl='-Wl,'
6257       lt_prog_compiler_pic='-KPIC'
6258       lt_prog_compiler_static='-Bstatic'
6259       ;;
6260
6261     sysv4*MP*)
6262       if test -d /usr/nec ;then
6263         lt_prog_compiler_pic='-Kconform_pic'
6264         lt_prog_compiler_static='-Bstatic'
6265       fi
6266       ;;
6267
6268     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6269       lt_prog_compiler_wl='-Wl,'
6270       lt_prog_compiler_pic='-KPIC'
6271       lt_prog_compiler_static='-Bstatic'
6272       ;;
6273
6274     unicos*)
6275       lt_prog_compiler_wl='-Wl,'
6276       lt_prog_compiler_can_build_shared=no
6277       ;;
6278
6279     uts4*)
6280       lt_prog_compiler_pic='-pic'
6281       lt_prog_compiler_static='-Bstatic'
6282       ;;
6283
6284     *)
6285       lt_prog_compiler_can_build_shared=no
6286       ;;
6287     esac
6288   fi
6289
6290 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6291 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6292
6293 #
6294 # Check to make sure the PIC flag actually works.
6295 #
6296 if test -n "$lt_prog_compiler_pic"; then
6297
6298 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6299 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6300 if test "${lt_prog_compiler_pic_works+set}" = set; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 else
6303   lt_prog_compiler_pic_works=no
6304   ac_outfile=conftest.$ac_objext
6305    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6306    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6307    # Insert the option either (1) after the last *FLAGS variable, or
6308    # (2) before a word containing "conftest.", or (3) at the end.
6309    # Note that $ac_compile itself does not contain backslashes and begins
6310    # with a dollar sign (not a hyphen), so the echo should work correctly.
6311    # The option is referenced via a variable to avoid confusing sed.
6312    lt_compile=`echo "$ac_compile" | $SED \
6313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6315    -e 's:$: $lt_compiler_flag:'`
6316    (eval echo "\"\$as_me:6316: $lt_compile\"" >&5)
6317    (eval "$lt_compile" 2>conftest.err)
6318    ac_status=$?
6319    cat conftest.err >&5
6320    echo "$as_me:6320: \$? = $ac_status" >&5
6321    if (exit $ac_status) && test -s "$ac_outfile"; then
6322      # The compiler can only warn and ignore the option if not recognized
6323      # So say no if there are warnings other than the usual output.
6324      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6325      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6326      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6327        lt_prog_compiler_pic_works=yes
6328      fi
6329    fi
6330    $rm conftest*
6331
6332 fi
6333 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6334 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6335
6336 if test x"$lt_prog_compiler_pic_works" = xyes; then
6337     case $lt_prog_compiler_pic in
6338      "" | " "*) ;;
6339      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6340      esac
6341 else
6342     lt_prog_compiler_pic=
6343      lt_prog_compiler_can_build_shared=no
6344 fi
6345
6346 fi
6347 case $host_os in
6348   # For platforms which do not support PIC, -DPIC is meaningless:
6349   *djgpp*)
6350     lt_prog_compiler_pic=
6351     ;;
6352   *)
6353     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6354     ;;
6355 esac
6356
6357 #
6358 # Check to make sure the static flag actually works.
6359 #
6360 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6361 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6362 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6363 if test "${lt_prog_compiler_static_works+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   lt_prog_compiler_static_works=no
6367    save_LDFLAGS="$LDFLAGS"
6368    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6369    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6370    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6371      # The linker can only warn and ignore the option if not recognized
6372      # So say no if there are warnings
6373      if test -s conftest.err; then
6374        # Append any errors to the config.log.
6375        cat conftest.err 1>&5
6376        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6377        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6378        if diff conftest.exp conftest.er2 >/dev/null; then
6379          lt_prog_compiler_static_works=yes
6380        fi
6381      else
6382        lt_prog_compiler_static_works=yes
6383      fi
6384    fi
6385    $rm conftest*
6386    LDFLAGS="$save_LDFLAGS"
6387
6388 fi
6389 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6390 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6391
6392 if test x"$lt_prog_compiler_static_works" = xyes; then
6393     :
6394 else
6395     lt_prog_compiler_static=
6396 fi
6397
6398
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   lt_cv_prog_compiler_c_o=no
6405    $rm -r conftest 2>/dev/null
6406    mkdir conftest
6407    cd conftest
6408    mkdir out
6409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6410
6411    lt_compiler_flag="-o out/conftest2.$ac_objext"
6412    # Insert the option either (1) after the last *FLAGS variable, or
6413    # (2) before a word containing "conftest.", or (3) at the end.
6414    # Note that $ac_compile itself does not contain backslashes and begins
6415    # with a dollar sign (not a hyphen), so the echo should work correctly.
6416    lt_compile=`echo "$ac_compile" | $SED \
6417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419    -e 's:$: $lt_compiler_flag:'`
6420    (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421    (eval "$lt_compile" 2>out/conftest.err)
6422    ac_status=$?
6423    cat out/conftest.err >&5
6424    echo "$as_me:6424: \$? = $ac_status" >&5
6425    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6426    then
6427      # The compiler can only warn and ignore the option if not recognized
6428      # So say no if there are warnings
6429      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6430      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6431      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6432        lt_cv_prog_compiler_c_o=yes
6433      fi
6434    fi
6435    chmod u+w . 2>&5
6436    $rm conftest*
6437    # SGI C++ compiler will create directory out/ii_files/ for
6438    # template instantiation
6439    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6440    $rm out/* && rmdir out
6441    cd ..
6442    rmdir conftest
6443    $rm conftest*
6444
6445 fi
6446 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6447 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6448
6449
6450 hard_links="nottested"
6451 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6452   # do not overwrite the value of need_locks provided by the user
6453   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6454 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6455   hard_links=yes
6456   $rm conftest*
6457   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6458   touch conftest.a
6459   ln conftest.a conftest.b 2>&5 || hard_links=no
6460   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6461   echo "$as_me:$LINENO: result: $hard_links" >&5
6462 echo "${ECHO_T}$hard_links" >&6
6463   if test "$hard_links" = no; then
6464     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6465 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6466     need_locks=warn
6467   fi
6468 else
6469   need_locks=no
6470 fi
6471
6472 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6473 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6474
6475   runpath_var=
6476   allow_undefined_flag=
6477   enable_shared_with_static_runtimes=no
6478   archive_cmds=
6479   archive_expsym_cmds=
6480   old_archive_From_new_cmds=
6481   old_archive_from_expsyms_cmds=
6482   export_dynamic_flag_spec=
6483   whole_archive_flag_spec=
6484   thread_safe_flag_spec=
6485   hardcode_libdir_flag_spec=
6486   hardcode_libdir_flag_spec_ld=
6487   hardcode_libdir_separator=
6488   hardcode_direct=no
6489   hardcode_minus_L=no
6490   hardcode_shlibpath_var=unsupported
6491   link_all_deplibs=unknown
6492   hardcode_automatic=no
6493   module_cmds=
6494   module_expsym_cmds=
6495   always_export_symbols=no
6496   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6497   # include_expsyms should be a list of space-separated symbols to be *always*
6498   # included in the symbol list
6499   include_expsyms=
6500   # exclude_expsyms can be an extended regexp of symbols to exclude
6501   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6502   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6503   # as well as any symbol that contains `d'.
6504   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6505   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6506   # platforms (ab)use it in PIC code, but their linkers get confused if
6507   # the symbol is explicitly referenced.  Since portable code cannot
6508   # rely on this symbol name, it's probably fine to never include it in
6509   # preloaded symbol tables.
6510   extract_expsyms_cmds=
6511   # Just being paranoid about ensuring that cc_basename is set.
6512   for cc_temp in $compiler""; do
6513   case $cc_temp in
6514     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6515     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6516     \-*) ;;
6517     *) break;;
6518   esac
6519 done
6520 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6521
6522   case $host_os in
6523   cygwin* | mingw* | pw32*)
6524     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6525     # When not using gcc, we currently assume that we are using
6526     # Microsoft Visual C++.
6527     if test "$GCC" != yes; then
6528       with_gnu_ld=no
6529     fi
6530     ;;
6531   interix*)
6532     # we just hope/assume this is gcc and not c89 (= MSVC++)
6533     with_gnu_ld=yes
6534     ;;
6535   openbsd*)
6536     with_gnu_ld=no
6537     ;;
6538   esac
6539
6540   ld_shlibs=yes
6541   if test "$with_gnu_ld" = yes; then
6542     # If archive_cmds runs LD, not CC, wlarc should be empty
6543     wlarc='${wl}'
6544
6545     # Set some defaults for GNU ld with shared library support. These
6546     # are reset later if shared libraries are not supported. Putting them
6547     # here allows them to be overridden if necessary.
6548     runpath_var=LD_RUN_PATH
6549     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6550     export_dynamic_flag_spec='${wl}--export-dynamic'
6551     # ancient GNU ld didn't support --whole-archive et. al.
6552     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6553         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6554       else
6555         whole_archive_flag_spec=
6556     fi
6557     supports_anon_versioning=no
6558     case `$LD -v 2>/dev/null` in
6559       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6560       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6561       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6562       *\ 2.11.*) ;; # other 2.11 versions
6563       *) supports_anon_versioning=yes ;;
6564     esac
6565
6566     # See if GNU ld supports shared libraries.
6567     case $host_os in
6568     aix3* | aix4* | aix5*)
6569       # On AIX/PPC, the GNU linker is very broken
6570       if test "$host_cpu" != ia64; then
6571         ld_shlibs=no
6572         cat <<EOF 1>&2
6573
6574 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6575 *** to be unable to reliably create shared libraries on AIX.
6576 *** Therefore, libtool is disabling shared libraries support.  If you
6577 *** really care for shared libraries, you may want to modify your PATH
6578 *** so that a non-GNU linker is found, and then restart.
6579
6580 EOF
6581       fi
6582       ;;
6583
6584     amigaos*)
6585       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)'
6586       hardcode_libdir_flag_spec='-L$libdir'
6587       hardcode_minus_L=yes
6588
6589       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6590       # that the semantics of dynamic libraries on AmigaOS, at least up
6591       # to version 4, is to share data among multiple programs linked
6592       # with the same dynamic library.  Since this doesn't match the
6593       # behavior of shared libraries on other platforms, we can't use
6594       # them.
6595       ld_shlibs=no
6596       ;;
6597
6598     beos*)
6599       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6600         allow_undefined_flag=unsupported
6601         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6602         # support --undefined.  This deserves some investigation.  FIXME
6603         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6604       else
6605         ld_shlibs=no
6606       fi
6607       ;;
6608
6609     cygwin* | mingw* | pw32*)
6610       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6611       # as there is no search path for DLLs.
6612       hardcode_libdir_flag_spec='-L$libdir'
6613       allow_undefined_flag=unsupported
6614       always_export_symbols=no
6615       enable_shared_with_static_runtimes=yes
6616       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6617
6618       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6619         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6620         # If the export-symbols file already is a .def file (1st line
6621         # is EXPORTS), use it as is; otherwise, prepend...
6622         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6623           cp $export_symbols $output_objdir/$soname.def;
6624         else
6625           echo EXPORTS > $output_objdir/$soname.def;
6626           cat $export_symbols >> $output_objdir/$soname.def;
6627         fi~
6628         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6629       else
6630         ld_shlibs=no
6631       fi
6632       ;;
6633
6634     interix3*)
6635       hardcode_direct=no
6636       hardcode_shlibpath_var=no
6637       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6638       export_dynamic_flag_spec='${wl}-E'
6639       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6640       # Instead, shared libraries are loaded at an image base (0x10000000 by
6641       # default) and relocated if they conflict, which is a slow very memory
6642       # consuming and fragmenting process.  To avoid this, we pick a random,
6643       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6644       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6645       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6646       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'
6647       ;;
6648
6649     linux*)
6650       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6651         tmp_addflag=
6652         case $cc_basename,$host_cpu in
6653         pgcc*)                          # Portland Group C compiler
6654           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'
6655           tmp_addflag=' $pic_flag'
6656           ;;
6657         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6658           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'
6659           tmp_addflag=' $pic_flag -Mnomain' ;;
6660         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6661           tmp_addflag=' -i_dynamic' ;;
6662         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6663           tmp_addflag=' -i_dynamic -nofor_main' ;;
6664         ifc* | ifort*)                  # Intel Fortran compiler
6665           tmp_addflag=' -nofor_main' ;;
6666         esac
6667         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6668
6669         if test $supports_anon_versioning = yes; then
6670           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6671   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6672   $echo "local: *; };" >> $output_objdir/$libname.ver~
6673           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6674         fi
6675         link_all_deplibs=no
6676       else
6677         ld_shlibs=no
6678       fi
6679       ;;
6680
6681     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6682       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6683         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6684         wlarc=
6685       else
6686         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6687         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6688       fi
6689       ;;
6690
6691     solaris*)
6692       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6693         ld_shlibs=no
6694         cat <<EOF 1>&2
6695
6696 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6697 *** create shared libraries on Solaris systems.  Therefore, libtool
6698 *** is disabling shared libraries support.  We urge you to upgrade GNU
6699 *** binutils to release 2.9.1 or newer.  Another option is to modify
6700 *** your PATH or compiler configuration so that the native linker is
6701 *** used, and then restart.
6702
6703 EOF
6704       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6705         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6707       else
6708         ld_shlibs=no
6709       fi
6710       ;;
6711
6712     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6713       case `$LD -v 2>&1` in
6714         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6715         ld_shlibs=no
6716         cat <<_LT_EOF 1>&2
6717
6718 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6719 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6720 *** is disabling shared libraries support.  We urge you to upgrade GNU
6721 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6722 *** your PATH or compiler configuration so that the native linker is
6723 *** used, and then restart.
6724
6725 _LT_EOF
6726         ;;
6727         *)
6728           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6729             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6730             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6731             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6732           else
6733             ld_shlibs=no
6734           fi
6735         ;;
6736       esac
6737       ;;
6738
6739     sunos4*)
6740       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6741       wlarc=
6742       hardcode_direct=yes
6743       hardcode_shlibpath_var=no
6744       ;;
6745
6746     *)
6747       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6749         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6750       else
6751         ld_shlibs=no
6752       fi
6753       ;;
6754     esac
6755
6756     if test "$ld_shlibs" = no; then
6757       runpath_var=
6758       hardcode_libdir_flag_spec=
6759       export_dynamic_flag_spec=
6760       whole_archive_flag_spec=
6761     fi
6762   else
6763     # PORTME fill in a description of your system's linker (not GNU ld)
6764     case $host_os in
6765     aix3*)
6766       allow_undefined_flag=unsupported
6767       always_export_symbols=yes
6768       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'
6769       # Note: this linker hardcodes the directories in LIBPATH if there
6770       # are no directories specified by -L.
6771       hardcode_minus_L=yes
6772       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6773         # Neither direct hardcoding nor static linking is supported with a
6774         # broken collect2.
6775         hardcode_direct=unsupported
6776       fi
6777       ;;
6778
6779     aix4* | aix5*)
6780       if test "$host_cpu" = ia64; then
6781         # On IA64, the linker does run time linking by default, so we don't
6782         # have to do anything special.
6783         aix_use_runtimelinking=no
6784         exp_sym_flag='-Bexport'
6785         no_entry_flag=""
6786       else
6787         # If we're using GNU nm, then we don't want the "-C" option.
6788         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6789         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6790           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'
6791         else
6792           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'
6793         fi
6794         aix_use_runtimelinking=no
6795
6796         # Test if we are trying to use run time linking or normal
6797         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6798         # need to do runtime linking.
6799         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6800           for ld_flag in $LDFLAGS; do
6801           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6802             aix_use_runtimelinking=yes
6803             break
6804           fi
6805           done
6806           ;;
6807         esac
6808
6809         exp_sym_flag='-bexport'
6810         no_entry_flag='-bnoentry'
6811       fi
6812
6813       # When large executables or shared objects are built, AIX ld can
6814       # have problems creating the table of contents.  If linking a library
6815       # or program results in "error TOC overflow" add -mminimal-toc to
6816       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6817       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6818
6819       archive_cmds=''
6820       hardcode_direct=yes
6821       hardcode_libdir_separator=':'
6822       link_all_deplibs=yes
6823
6824       if test "$GCC" = yes; then
6825         case $host_os in aix4.[012]|aix4.[012].*)
6826         # We only want to do this on AIX 4.2 and lower, the check
6827         # below for broken collect2 doesn't work under 4.3+
6828           collect2name=`${CC} -print-prog-name=collect2`
6829           if test -f "$collect2name" && \
6830            strings "$collect2name" | grep resolve_lib_name >/dev/null
6831           then
6832           # We have reworked collect2
6833           hardcode_direct=yes
6834           else
6835           # We have old collect2
6836           hardcode_direct=unsupported
6837           # It fails to find uninstalled libraries when the uninstalled
6838           # path is not listed in the libpath.  Setting hardcode_minus_L
6839           # to unsupported forces relinking
6840           hardcode_minus_L=yes
6841           hardcode_libdir_flag_spec='-L$libdir'
6842           hardcode_libdir_separator=
6843           fi
6844           ;;
6845         esac
6846         shared_flag='-shared'
6847         if test "$aix_use_runtimelinking" = yes; then
6848           shared_flag="$shared_flag "'${wl}-G'
6849         fi
6850       else
6851         # not using gcc
6852         if test "$host_cpu" = ia64; then
6853         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6854         # chokes on -Wl,-G. The following line is correct:
6855           shared_flag='-G'
6856         else
6857           if test "$aix_use_runtimelinking" = yes; then
6858             shared_flag='${wl}-G'
6859           else
6860             shared_flag='${wl}-bM:SRE'
6861           fi
6862         fi
6863       fi
6864
6865       # It seems that -bexpall does not export symbols beginning with
6866       # underscore (_), so it is better to generate a list of symbols to export.
6867       always_export_symbols=yes
6868       if test "$aix_use_runtimelinking" = yes; then
6869         # Warning - without using the other runtime loading flags (-brtl),
6870         # -berok will link without error, but may produce a broken library.
6871         allow_undefined_flag='-berok'
6872        # Determine the default libpath from the value encoded in an empty executable.
6873        cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h.  */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h.  */
6879
6880 int
6881 main ()
6882 {
6883
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890   (eval $ac_link) 2>conftest.er1
6891   ac_status=$?
6892   grep -v '^ *+' conftest.er1 >conftest.err
6893   rm -f conftest.er1
6894   cat conftest.err >&5
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); } &&
6897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; } &&
6903          { ac_try='test -s conftest$ac_exeext'
6904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905   (eval $ac_try) 2>&5
6906   ac_status=$?
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); }; }; then
6909
6910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6911 }'`
6912 # Check for a 64-bit object if we didn't find anything.
6913 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; }
6914 }'`; fi
6915 else
6916   echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6918
6919 fi
6920 rm -f conftest.err conftest.$ac_objext \
6921       conftest$ac_exeext conftest.$ac_ext
6922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6923
6924        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6925         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"
6926        else
6927         if test "$host_cpu" = ia64; then
6928           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6929           allow_undefined_flag="-z nodefs"
6930           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"
6931         else
6932          # Determine the default libpath from the value encoded in an empty executable.
6933          cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939
6940 int
6941 main ()
6942 {
6943
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950   (eval $ac_link) 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } &&
6957          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959   (eval $ac_try) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); }; } &&
6963          { ac_try='test -s conftest$ac_exeext'
6964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965   (eval $ac_try) 2>&5
6966   ac_status=$?
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); }; }; then
6969
6970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6971 }'`
6972 # Check for a 64-bit object if we didn't find anything.
6973 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; }
6974 }'`; fi
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979 fi
6980 rm -f conftest.err conftest.$ac_objext \
6981       conftest$ac_exeext conftest.$ac_ext
6982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6983
6984          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6985           # Warning - without using the other run time loading flags,
6986           # -berok will link without error, but may produce a broken library.
6987           no_undefined_flag=' ${wl}-bernotok'
6988           allow_undefined_flag=' ${wl}-berok'
6989           # Exported symbols can be pulled into shared objects from archives
6990           whole_archive_flag_spec='$convenience'
6991           archive_cmds_need_lc=yes
6992           # This is similar to how AIX traditionally builds its shared libraries.
6993           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'
6994         fi
6995       fi
6996       ;;
6997
6998     amigaos*)
6999       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)'
7000       hardcode_libdir_flag_spec='-L$libdir'
7001       hardcode_minus_L=yes
7002       # see comment about different semantics on the GNU ld section
7003       ld_shlibs=no
7004       ;;
7005
7006     bsdi[45]*)
7007       export_dynamic_flag_spec=-rdynamic
7008       ;;
7009
7010     cygwin* | mingw* | pw32*)
7011       # When not using gcc, we currently assume that we are using
7012       # Microsoft Visual C++.
7013       # hardcode_libdir_flag_spec is actually meaningless, as there is
7014       # no search path for DLLs.
7015       hardcode_libdir_flag_spec=' '
7016       allow_undefined_flag=unsupported
7017       # Tell ltmain to make .lib files, not .a files.
7018       libext=lib
7019       # Tell ltmain to make .dll files, not .so files.
7020       shrext_cmds=".dll"
7021       # FIXME: Setting linknames here is a bad hack.
7022       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7023       # The linker will automatically build a .lib file if we build a DLL.
7024       old_archive_From_new_cmds='true'
7025       # FIXME: Should let the user specify the lib program.
7026       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7027       fix_srcfile_path='`cygpath -w "$srcfile"`'
7028       enable_shared_with_static_runtimes=yes
7029       ;;
7030
7031     darwin* | rhapsody*)
7032       case $host_os in
7033         rhapsody* | darwin1.[012])
7034          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7035          ;;
7036        *) # Darwin 1.3 on
7037          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7038            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7039          else
7040            case ${MACOSX_DEPLOYMENT_TARGET} in
7041              10.[012])
7042                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7043                ;;
7044              10.*)
7045                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7046                ;;
7047            esac
7048          fi
7049          ;;
7050       esac
7051       archive_cmds_need_lc=no
7052       hardcode_direct=no
7053       hardcode_automatic=yes
7054       hardcode_shlibpath_var=unsupported
7055       whole_archive_flag_spec=''
7056       link_all_deplibs=yes
7057     if test "$GCC" = yes ; then
7058         output_verbose_link_cmd='echo'
7059         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7060       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7061       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7062       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}'
7063       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}'
7064     else
7065       case $cc_basename in
7066         xlc*)
7067          output_verbose_link_cmd='echo'
7068          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7069          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7070           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7071          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}'
7072           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}'
7073           ;;
7074        *)
7075          ld_shlibs=no
7076           ;;
7077       esac
7078     fi
7079       ;;
7080
7081     dgux*)
7082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7083       hardcode_libdir_flag_spec='-L$libdir'
7084       hardcode_shlibpath_var=no
7085       ;;
7086
7087     freebsd1*)
7088       ld_shlibs=no
7089       ;;
7090
7091     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7092     # support.  Future versions do this automatically, but an explicit c++rt0.o
7093     # does not break anything, and helps significantly (at the cost of a little
7094     # extra space).
7095     freebsd2.2*)
7096       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7097       hardcode_libdir_flag_spec='-R$libdir'
7098       hardcode_direct=yes
7099       hardcode_shlibpath_var=no
7100       ;;
7101
7102     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7103     freebsd2*)
7104       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7105       hardcode_direct=yes
7106       hardcode_minus_L=yes
7107       hardcode_shlibpath_var=no
7108       ;;
7109
7110     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7111     freebsd* | dragonfly*)
7112       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7113       hardcode_libdir_flag_spec='-R$libdir'
7114       hardcode_direct=yes
7115       hardcode_shlibpath_var=no
7116       ;;
7117
7118     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7119     kfreebsd*-gnu)
7120       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7121       hardcode_libdir_flag_spec='-R$libdir'
7122       hardcode_direct=yes
7123       hardcode_shlibpath_var=no
7124       link_all_deplibs=no
7125       ;;
7126
7127     hpux9*)
7128       if test "$GCC" = yes; then
7129         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'
7130       else
7131         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'
7132       fi
7133       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7134       hardcode_libdir_separator=:
7135       hardcode_direct=yes
7136
7137       # hardcode_minus_L: Not really in the search PATH,
7138       # but as the default location of the library.
7139       hardcode_minus_L=yes
7140       export_dynamic_flag_spec='${wl}-E'
7141       ;;
7142
7143     hpux10*)
7144       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7145         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7146       else
7147         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7148       fi
7149       if test "$with_gnu_ld" = no; then
7150         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7151         hardcode_libdir_separator=:
7152
7153         hardcode_direct=yes
7154         export_dynamic_flag_spec='${wl}-E'
7155
7156         # hardcode_minus_L: Not really in the search PATH,
7157         # but as the default location of the library.
7158         hardcode_minus_L=yes
7159       fi
7160       ;;
7161
7162     hpux11*)
7163       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7164         case $host_cpu in
7165         hppa*64*)
7166           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7167           ;;
7168         ia64*)
7169           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7170           ;;
7171         *)
7172           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7173           ;;
7174         esac
7175       else
7176         case $host_cpu in
7177         hppa*64*)
7178           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7179           ;;
7180         ia64*)
7181           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7182           ;;
7183         *)
7184           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7185           ;;
7186         esac
7187       fi
7188       if test "$with_gnu_ld" = no; then
7189         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7190         hardcode_libdir_separator=:
7191
7192         case $host_cpu in
7193         hppa*64*|ia64*)
7194           hardcode_libdir_flag_spec_ld='+b $libdir'
7195           hardcode_direct=no
7196           hardcode_shlibpath_var=no
7197           ;;
7198         *)
7199           hardcode_direct=yes
7200           export_dynamic_flag_spec='${wl}-E'
7201
7202           # hardcode_minus_L: Not really in the search PATH,
7203           # but as the default location of the library.
7204           hardcode_minus_L=yes
7205           ;;
7206         esac
7207       fi
7208       ;;
7209
7210     irix5* | irix6* | nonstopux*)
7211       if test "$GCC" = yes; then
7212         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'
7213       else
7214         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'
7215         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7216       fi
7217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7218       hardcode_libdir_separator=:
7219       link_all_deplibs=yes
7220       ;;
7221
7222     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7223       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7224         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7225       else
7226         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7227       fi
7228       hardcode_libdir_flag_spec='-R$libdir'
7229       hardcode_direct=yes
7230       hardcode_shlibpath_var=no
7231       ;;
7232
7233     newsos6)
7234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7235       hardcode_direct=yes
7236       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7237       hardcode_libdir_separator=:
7238       hardcode_shlibpath_var=no
7239       ;;
7240
7241     openbsd*)
7242       hardcode_direct=yes
7243       hardcode_shlibpath_var=no
7244       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7245         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7246         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7247         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7248         export_dynamic_flag_spec='${wl}-E'
7249       else
7250        case $host_os in
7251          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7252            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7253            hardcode_libdir_flag_spec='-R$libdir'
7254            ;;
7255          *)
7256            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7257            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7258            ;;
7259        esac
7260       fi
7261       ;;
7262
7263     os2*)
7264       hardcode_libdir_flag_spec='-L$libdir'
7265       hardcode_minus_L=yes
7266       allow_undefined_flag=unsupported
7267       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'
7268       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7269       ;;
7270
7271     osf3*)
7272       if test "$GCC" = yes; then
7273         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7274         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'
7275       else
7276         allow_undefined_flag=' -expect_unresolved \*'
7277         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'
7278       fi
7279       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7280       hardcode_libdir_separator=:
7281       ;;
7282
7283     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7284       if test "$GCC" = yes; then
7285         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7286         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'
7287         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7288       else
7289         allow_undefined_flag=' -expect_unresolved \*'
7290         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'
7291         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7292         $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'
7293
7294         # Both c and cxx compiler support -rpath directly
7295         hardcode_libdir_flag_spec='-rpath $libdir'
7296       fi
7297       hardcode_libdir_separator=:
7298       ;;
7299
7300     solaris*)
7301       no_undefined_flag=' -z text'
7302       if test "$GCC" = yes; then
7303         wlarc='${wl}'
7304         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7305         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7306           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7307       else
7308         wlarc=''
7309         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7310         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7311         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7312       fi
7313       hardcode_libdir_flag_spec='-R$libdir'
7314       hardcode_shlibpath_var=no
7315       case $host_os in
7316       solaris2.[0-5] | solaris2.[0-5].*) ;;
7317       *)
7318         # The compiler driver will combine linker options so we
7319         # cannot just pass the convience library names through
7320         # without $wl, iff we do not link with $LD.
7321         # Luckily, gcc supports the same syntax we need for Sun Studio.
7322         # Supported since Solaris 2.6 (maybe 2.5.1?)
7323         case $wlarc in
7324         '')
7325           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7326         *)
7327           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' ;;
7328         esac ;;
7329       esac
7330       link_all_deplibs=yes
7331       ;;
7332
7333     sunos4*)
7334       if test "x$host_vendor" = xsequent; then
7335         # Use $CC to link under sequent, because it throws in some extra .o
7336         # files that make .init and .fini sections work.
7337         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7338       else
7339         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7340       fi
7341       hardcode_libdir_flag_spec='-L$libdir'
7342       hardcode_direct=yes
7343       hardcode_minus_L=yes
7344       hardcode_shlibpath_var=no
7345       ;;
7346
7347     sysv4)
7348       case $host_vendor in
7349         sni)
7350           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7351           hardcode_direct=yes # is this really true???
7352         ;;
7353         siemens)
7354           ## LD is ld it makes a PLAMLIB
7355           ## CC just makes a GrossModule.
7356           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7357           reload_cmds='$CC -r -o $output$reload_objs'
7358           hardcode_direct=no
7359         ;;
7360         motorola)
7361           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7362           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7363         ;;
7364       esac
7365       runpath_var='LD_RUN_PATH'
7366       hardcode_shlibpath_var=no
7367       ;;
7368
7369     sysv4.3*)
7370       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371       hardcode_shlibpath_var=no
7372       export_dynamic_flag_spec='-Bexport'
7373       ;;
7374
7375     sysv4*MP*)
7376       if test -d /usr/nec; then
7377         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378         hardcode_shlibpath_var=no
7379         runpath_var=LD_RUN_PATH
7380         hardcode_runpath_var=yes
7381         ld_shlibs=yes
7382       fi
7383       ;;
7384
7385     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7386       no_undefined_flag='${wl}-z,text'
7387       archive_cmds_need_lc=no
7388       hardcode_shlibpath_var=no
7389       runpath_var='LD_RUN_PATH'
7390
7391       if test "$GCC" = yes; then
7392         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7393         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7394       else
7395         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7396         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7397       fi
7398       ;;
7399
7400     sysv5* | sco3.2v5* | sco5v6*)
7401       # Note: We can NOT use -z defs as we might desire, because we do not
7402       # link with -lc, and that would cause any symbols used from libc to
7403       # always be unresolved, which means just about no library would
7404       # ever link correctly.  If we're not using GNU ld we use -z text
7405       # though, which does catch some bad symbols but isn't as heavy-handed
7406       # as -z defs.
7407       no_undefined_flag='${wl}-z,text'
7408       allow_undefined_flag='${wl}-z,nodefs'
7409       archive_cmds_need_lc=no
7410       hardcode_shlibpath_var=no
7411       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7412       hardcode_libdir_separator=':'
7413       link_all_deplibs=yes
7414       export_dynamic_flag_spec='${wl}-Bexport'
7415       runpath_var='LD_RUN_PATH'
7416
7417       if test "$GCC" = yes; then
7418         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7419         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7420       else
7421         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7423       fi
7424       ;;
7425
7426     uts4*)
7427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7428       hardcode_libdir_flag_spec='-L$libdir'
7429       hardcode_shlibpath_var=no
7430       ;;
7431
7432     *)
7433       ld_shlibs=no
7434       ;;
7435     esac
7436   fi
7437
7438 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7439 echo "${ECHO_T}$ld_shlibs" >&6
7440 test "$ld_shlibs" = no && can_build_shared=no
7441
7442 #
7443 # Do we need to explicitly link libc?
7444 #
7445 case "x$archive_cmds_need_lc" in
7446 x|xyes)
7447   # Assume -lc should be added
7448   archive_cmds_need_lc=yes
7449
7450   if test "$enable_shared" = yes && test "$GCC" = yes; then
7451     case $archive_cmds in
7452     *'~'*)
7453       # FIXME: we may have to deal with multi-command sequences.
7454       ;;
7455     '$CC '*)
7456       # Test whether the compiler implicitly links with -lc since on some
7457       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7458       # to ld, don't add -lc before -lgcc.
7459       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7460 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7461       $rm conftest*
7462       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7463
7464       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465   (eval $ac_compile) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } 2>conftest.err; then
7469         soname=conftest
7470         lib=conftest
7471         libobjs=conftest.$ac_objext
7472         deplibs=
7473         wl=$lt_prog_compiler_wl
7474         pic_flag=$lt_prog_compiler_pic
7475         compiler_flags=-v
7476         linker_flags=-v
7477         verstring=
7478         output_objdir=.
7479         libname=conftest
7480         lt_save_allow_undefined_flag=$allow_undefined_flag
7481         allow_undefined_flag=
7482         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7483   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); }
7487         then
7488           archive_cmds_need_lc=no
7489         else
7490           archive_cmds_need_lc=yes
7491         fi
7492         allow_undefined_flag=$lt_save_allow_undefined_flag
7493       else
7494         cat conftest.err 1>&5
7495       fi
7496       $rm conftest*
7497       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7498 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7499       ;;
7500     esac
7501   fi
7502   ;;
7503 esac
7504
7505 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7506 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7507 library_names_spec=
7508 libname_spec='lib$name'
7509 soname_spec=
7510 shrext_cmds=".so"
7511 postinstall_cmds=
7512 postuninstall_cmds=
7513 finish_cmds=
7514 finish_eval=
7515 shlibpath_var=
7516 shlibpath_overrides_runpath=unknown
7517 version_type=none
7518 dynamic_linker="$host_os ld.so"
7519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7520 if test "$GCC" = yes; then
7521   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7522   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7523     # if the path contains ";" then we assume it to be the separator
7524     # otherwise default to the standard path separator (i.e. ":") - it is
7525     # assumed that no part of a normal pathname contains ";" but that should
7526     # okay in the real world where ";" in dirpaths is itself problematic.
7527     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7528   else
7529     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7530   fi
7531 else
7532   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7533 fi
7534 need_lib_prefix=unknown
7535 hardcode_into_libs=no
7536
7537 # when you set need_version to no, make sure it does not cause -set_version
7538 # flags to be left without arguments
7539 need_version=unknown
7540
7541 case $host_os in
7542 aix3*)
7543   version_type=linux
7544   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7545   shlibpath_var=LIBPATH
7546
7547   # AIX 3 has no versioning support, so we append a major version to the name.
7548   soname_spec='${libname}${release}${shared_ext}$major'
7549   ;;
7550
7551 aix4* | aix5*)
7552   version_type=linux
7553   need_lib_prefix=no
7554   need_version=no
7555   hardcode_into_libs=yes
7556   if test "$host_cpu" = ia64; then
7557     # AIX 5 supports IA64
7558     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7559     shlibpath_var=LD_LIBRARY_PATH
7560   else
7561     # With GCC up to 2.95.x, collect2 would create an import file
7562     # for dependence libraries.  The import file would start with
7563     # the line `#! .'.  This would cause the generated library to
7564     # depend on `.', always an invalid library.  This was fixed in
7565     # development snapshots of GCC prior to 3.0.
7566     case $host_os in
7567       aix4 | aix4.[01] | aix4.[01].*)
7568       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7569            echo ' yes '
7570            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7571         :
7572       else
7573         can_build_shared=no
7574       fi
7575       ;;
7576     esac
7577     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7578     # soname into executable. Probably we can add versioning support to
7579     # collect2, so additional links can be useful in future.
7580     if test "$aix_use_runtimelinking" = yes; then
7581       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7582       # instead of lib<name>.a to let people know that these are not
7583       # typical AIX shared libraries.
7584       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7585     else
7586       # We preserve .a as extension for shared libraries through AIX4.2
7587       # and later when we are not doing run time linking.
7588       library_names_spec='${libname}${release}.a $libname.a'
7589       soname_spec='${libname}${release}${shared_ext}$major'
7590     fi
7591     shlibpath_var=LIBPATH
7592   fi
7593   ;;
7594
7595 amigaos*)
7596   library_names_spec='$libname.ixlibrary $libname.a'
7597   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7598   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'
7599   ;;
7600
7601 beos*)
7602   library_names_spec='${libname}${shared_ext}'
7603   dynamic_linker="$host_os ld.so"
7604   shlibpath_var=LIBRARY_PATH
7605   ;;
7606
7607 bsdi[45]*)
7608   version_type=linux
7609   need_version=no
7610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7611   soname_spec='${libname}${release}${shared_ext}$major'
7612   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7613   shlibpath_var=LD_LIBRARY_PATH
7614   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7615   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7616   # the default ld.so.conf also contains /usr/contrib/lib and
7617   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7618   # libtool to hard-code these into programs
7619   ;;
7620
7621 cygwin* | mingw* | pw32*)
7622   version_type=windows
7623   shrext_cmds=".dll"
7624   need_version=no
7625   need_lib_prefix=no
7626
7627   case $GCC,$host_os in
7628   yes,cygwin* | yes,mingw* | yes,pw32*)
7629     library_names_spec='$libname.dll.a'
7630     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7631     postinstall_cmds='base_file=`basename \${file}`~
7632       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7633       dldir=$destdir/`dirname \$dlpath`~
7634       test -d \$dldir || mkdir -p \$dldir~
7635       $install_prog $dir/$dlname \$dldir/$dlname~
7636       chmod a+x \$dldir/$dlname'
7637     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7638       dlpath=$dir/\$dldll~
7639        $rm \$dlpath'
7640     shlibpath_overrides_runpath=yes
7641
7642     case $host_os in
7643     cygwin*)
7644       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7645       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7646       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7647       ;;
7648     mingw*)
7649       # MinGW DLLs use traditional 'lib' prefix
7650       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7651       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7652       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7653         # It is most probably a Windows format PATH printed by
7654         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7655         # path with ; separators, and with drive letters. We can handle the
7656         # drive letters (cygwin fileutils understands them), so leave them,
7657         # especially as we might pass files found there to a mingw objdump,
7658         # which wouldn't understand a cygwinified path. Ahh.
7659         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7660       else
7661         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7662       fi
7663       ;;
7664     pw32*)
7665       # pw32 DLLs use 'pw' prefix rather than 'lib'
7666       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7667       ;;
7668     esac
7669     ;;
7670
7671   *)
7672     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7673     ;;
7674   esac
7675   dynamic_linker='Win32 ld.exe'
7676   # FIXME: first we should search . and the directory the executable is in
7677   shlibpath_var=PATH
7678   ;;
7679
7680 darwin* | rhapsody*)
7681   dynamic_linker="$host_os dyld"
7682   version_type=darwin
7683   need_lib_prefix=no
7684   need_version=no
7685   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7686   soname_spec='${libname}${release}${major}$shared_ext'
7687   shlibpath_overrides_runpath=yes
7688   shlibpath_var=DYLD_LIBRARY_PATH
7689   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7690   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7691   if test "$GCC" = yes; then
7692     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"`
7693   else
7694     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7695   fi
7696   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7697   ;;
7698
7699 dgux*)
7700   version_type=linux
7701   need_lib_prefix=no
7702   need_version=no
7703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7704   soname_spec='${libname}${release}${shared_ext}$major'
7705   shlibpath_var=LD_LIBRARY_PATH
7706   ;;
7707
7708 freebsd1*)
7709   dynamic_linker=no
7710   ;;
7711
7712 kfreebsd*-gnu)
7713   version_type=linux
7714   need_lib_prefix=no
7715   need_version=no
7716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7717   soname_spec='${libname}${release}${shared_ext}$major'
7718   shlibpath_var=LD_LIBRARY_PATH
7719   shlibpath_overrides_runpath=no
7720   hardcode_into_libs=yes
7721   dynamic_linker='GNU ld.so'
7722   ;;
7723
7724 freebsd* | dragonfly*)
7725   # DragonFly does not have aout.  When/if they implement a new
7726   # versioning mechanism, adjust this.
7727   if test -x /usr/bin/objformat; then
7728     objformat=`/usr/bin/objformat`
7729   else
7730     case $host_os in
7731     freebsd[123]*) objformat=aout ;;
7732     *) objformat=elf ;;
7733     esac
7734   fi
7735   version_type=freebsd-$objformat
7736   case $version_type in
7737     freebsd-elf*)
7738       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7739       need_version=no
7740       need_lib_prefix=no
7741       ;;
7742     freebsd-*)
7743       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7744       need_version=yes
7745       ;;
7746   esac
7747   shlibpath_var=LD_LIBRARY_PATH
7748   case $host_os in
7749   freebsd2*)
7750     shlibpath_overrides_runpath=yes
7751     ;;
7752   freebsd3.[01]* | freebsdelf3.[01]*)
7753     shlibpath_overrides_runpath=yes
7754     hardcode_into_libs=yes
7755     ;;
7756   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7757   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7758     shlibpath_overrides_runpath=no
7759     hardcode_into_libs=yes
7760     ;;
7761   freebsd*) # from 4.6 on
7762     shlibpath_overrides_runpath=yes
7763     hardcode_into_libs=yes
7764     ;;
7765   esac
7766   ;;
7767
7768 gnu*)
7769   version_type=linux
7770   need_lib_prefix=no
7771   need_version=no
7772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7773   soname_spec='${libname}${release}${shared_ext}$major'
7774   shlibpath_var=LD_LIBRARY_PATH
7775   hardcode_into_libs=yes
7776   ;;
7777
7778 hpux9* | hpux10* | hpux11*)
7779   # Give a soname corresponding to the major version so that dld.sl refuses to
7780   # link against other versions.
7781   version_type=sunos
7782   need_lib_prefix=no
7783   need_version=no
7784   case $host_cpu in
7785   ia64*)
7786     shrext_cmds='.so'
7787     hardcode_into_libs=yes
7788     dynamic_linker="$host_os dld.so"
7789     shlibpath_var=LD_LIBRARY_PATH
7790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
7794       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7795     else
7796       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7797     fi
7798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7799     ;;
7800    hppa*64*)
7801      shrext_cmds='.sl'
7802      hardcode_into_libs=yes
7803      dynamic_linker="$host_os dld.sl"
7804      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7805      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7806      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807      soname_spec='${libname}${release}${shared_ext}$major'
7808      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7809      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7810      ;;
7811    *)
7812     shrext_cmds='.sl'
7813     dynamic_linker="$host_os dld.sl"
7814     shlibpath_var=SHLIB_PATH
7815     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817     soname_spec='${libname}${release}${shared_ext}$major'
7818     ;;
7819   esac
7820   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7821   postinstall_cmds='chmod 555 $lib'
7822   ;;
7823
7824 interix3*)
7825   version_type=linux
7826   need_lib_prefix=no
7827   need_version=no
7828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7829   soname_spec='${libname}${release}${shared_ext}$major'
7830   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7831   shlibpath_var=LD_LIBRARY_PATH
7832   shlibpath_overrides_runpath=no
7833   hardcode_into_libs=yes
7834   ;;
7835
7836 irix5* | irix6* | nonstopux*)
7837   case $host_os in
7838     nonstopux*) version_type=nonstopux ;;
7839     *)
7840         if test "$lt_cv_prog_gnu_ld" = yes; then
7841                 version_type=linux
7842         else
7843                 version_type=irix
7844         fi ;;
7845   esac
7846   need_lib_prefix=no
7847   need_version=no
7848   soname_spec='${libname}${release}${shared_ext}$major'
7849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7850   case $host_os in
7851   irix5* | nonstopux*)
7852     libsuff= shlibsuff=
7853     ;;
7854   *)
7855     case $LD in # libtool.m4 will add one of these switches to LD
7856     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7857       libsuff= shlibsuff= libmagic=32-bit;;
7858     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7859       libsuff=32 shlibsuff=N32 libmagic=N32;;
7860     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7861       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7862     *) libsuff= shlibsuff= libmagic=never-match;;
7863     esac
7864     ;;
7865   esac
7866   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7867   shlibpath_overrides_runpath=no
7868   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7869   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7870   hardcode_into_libs=yes
7871   ;;
7872
7873 # No shared lib support for Linux oldld, aout, or coff.
7874 linux*oldld* | linux*aout* | linux*coff*)
7875   dynamic_linker=no
7876   ;;
7877
7878 # This must be Linux ELF.
7879 linux*)
7880   version_type=linux
7881   need_lib_prefix=no
7882   need_version=no
7883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7884   soname_spec='${libname}${release}${shared_ext}$major'
7885   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7886   shlibpath_var=LD_LIBRARY_PATH
7887   shlibpath_overrides_runpath=no
7888   # This implies no fast_install, which is unacceptable.
7889   # Some rework will be needed to allow for fast_install
7890   # before this can be enabled.
7891   hardcode_into_libs=yes
7892
7893   # Append ld.so.conf contents to the search path
7894   if test -f /etc/ld.so.conf; then
7895     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' ' '`
7896     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7897   fi
7898
7899   # We used to test for /lib/ld.so.1 and disable shared libraries on
7900   # powerpc, because MkLinux only supported shared libraries with the
7901   # GNU dynamic linker.  Since this was broken with cross compilers,
7902   # most powerpc-linux boxes support dynamic linking these days and
7903   # people can always --disable-shared, the test was removed, and we
7904   # assume the GNU/Linux dynamic linker is in use.
7905   dynamic_linker='GNU/Linux ld.so'
7906   ;;
7907
7908 netbsdelf*-gnu)
7909   version_type=linux
7910   need_lib_prefix=no
7911   need_version=no
7912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7913   soname_spec='${libname}${release}${shared_ext}$major'
7914   shlibpath_var=LD_LIBRARY_PATH
7915   shlibpath_overrides_runpath=no
7916   hardcode_into_libs=yes
7917   dynamic_linker='NetBSD ld.elf_so'
7918   ;;
7919
7920 knetbsd*-gnu)
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=no
7928   hardcode_into_libs=yes
7929   dynamic_linker='GNU ld.so'
7930   ;;
7931
7932 netbsd*)
7933   version_type=sunos
7934   need_lib_prefix=no
7935   need_version=no
7936   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7938     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7939     dynamic_linker='NetBSD (a.out) ld.so'
7940   else
7941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7942     soname_spec='${libname}${release}${shared_ext}$major'
7943     dynamic_linker='NetBSD ld.elf_so'
7944   fi
7945   shlibpath_var=LD_LIBRARY_PATH
7946   shlibpath_overrides_runpath=yes
7947   hardcode_into_libs=yes
7948   ;;
7949
7950 newsos6)
7951   version_type=linux
7952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7953   shlibpath_var=LD_LIBRARY_PATH
7954   shlibpath_overrides_runpath=yes
7955   ;;
7956
7957 nto-qnx*)
7958   version_type=linux
7959   need_lib_prefix=no
7960   need_version=no
7961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7962   soname_spec='${libname}${release}${shared_ext}$major'
7963   shlibpath_var=LD_LIBRARY_PATH
7964   shlibpath_overrides_runpath=yes
7965   ;;
7966
7967 openbsd*)
7968   version_type=sunos
7969   sys_lib_dlsearch_path_spec="/usr/lib"
7970   need_lib_prefix=no
7971   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7972   case $host_os in
7973     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7974     *)                         need_version=no  ;;
7975   esac
7976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7978   shlibpath_var=LD_LIBRARY_PATH
7979   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7980     case $host_os in
7981       openbsd2.[89] | openbsd2.[89].*)
7982         shlibpath_overrides_runpath=no
7983         ;;
7984       *)
7985         shlibpath_overrides_runpath=yes
7986         ;;
7987       esac
7988   else
7989     shlibpath_overrides_runpath=yes
7990   fi
7991   ;;
7992
7993 os2*)
7994   libname_spec='$name'
7995   shrext_cmds=".dll"
7996   need_lib_prefix=no
7997   library_names_spec='$libname${shared_ext} $libname.a'
7998   dynamic_linker='OS/2 ld.exe'
7999   shlibpath_var=LIBPATH
8000   ;;
8001
8002 osf3* | osf4* | osf5*)
8003   version_type=osf
8004   need_lib_prefix=no
8005   need_version=no
8006   soname_spec='${libname}${release}${shared_ext}$major'
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008   shlibpath_var=LD_LIBRARY_PATH
8009   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8010   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8011   ;;
8012
8013 solaris*)
8014   version_type=linux
8015   need_lib_prefix=no
8016   need_version=no
8017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8018   soname_spec='${libname}${release}${shared_ext}$major'
8019   shlibpath_var=LD_LIBRARY_PATH
8020   shlibpath_overrides_runpath=yes
8021   hardcode_into_libs=yes
8022   # ldd complains unless libraries are executable
8023   postinstall_cmds='chmod +x $lib'
8024   ;;
8025
8026 sunos4*)
8027   version_type=sunos
8028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8029   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8030   shlibpath_var=LD_LIBRARY_PATH
8031   shlibpath_overrides_runpath=yes
8032   if test "$with_gnu_ld" = yes; then
8033     need_lib_prefix=no
8034   fi
8035   need_version=yes
8036   ;;
8037
8038 sysv4 | sysv4.3*)
8039   version_type=linux
8040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8041   soname_spec='${libname}${release}${shared_ext}$major'
8042   shlibpath_var=LD_LIBRARY_PATH
8043   case $host_vendor in
8044     sni)
8045       shlibpath_overrides_runpath=no
8046       need_lib_prefix=no
8047       export_dynamic_flag_spec='${wl}-Blargedynsym'
8048       runpath_var=LD_RUN_PATH
8049       ;;
8050     siemens)
8051       need_lib_prefix=no
8052       ;;
8053     motorola)
8054       need_lib_prefix=no
8055       need_version=no
8056       shlibpath_overrides_runpath=no
8057       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8058       ;;
8059   esac
8060   ;;
8061
8062 sysv4*MP*)
8063   if test -d /usr/nec ;then
8064     version_type=linux
8065     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8066     soname_spec='$libname${shared_ext}.$major'
8067     shlibpath_var=LD_LIBRARY_PATH
8068   fi
8069   ;;
8070
8071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8072   version_type=freebsd-elf
8073   need_lib_prefix=no
8074   need_version=no
8075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8076   soname_spec='${libname}${release}${shared_ext}$major'
8077   shlibpath_var=LD_LIBRARY_PATH
8078   hardcode_into_libs=yes
8079   if test "$with_gnu_ld" = yes; then
8080     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8081     shlibpath_overrides_runpath=no
8082   else
8083     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8084     shlibpath_overrides_runpath=yes
8085     case $host_os in
8086       sco3.2v5*)
8087         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8088         ;;
8089     esac
8090   fi
8091   sys_lib_dlsearch_path_spec='/usr/lib'
8092   ;;
8093
8094 uts4*)
8095   version_type=linux
8096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8097   soname_spec='${libname}${release}${shared_ext}$major'
8098   shlibpath_var=LD_LIBRARY_PATH
8099   ;;
8100
8101 *)
8102   dynamic_linker=no
8103   ;;
8104 esac
8105 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8106 echo "${ECHO_T}$dynamic_linker" >&6
8107 test "$dynamic_linker" = no && can_build_shared=no
8108
8109 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8110 if test "$GCC" = yes; then
8111   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8112 fi
8113
8114 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8115 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8116 hardcode_action=
8117 if test -n "$hardcode_libdir_flag_spec" || \
8118    test -n "$runpath_var" || \
8119    test "X$hardcode_automatic" = "Xyes" ; then
8120
8121   # We can hardcode non-existant directories.
8122   if test "$hardcode_direct" != no &&
8123      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8124      # have to relink, otherwise we might link with an installed library
8125      # when we should be linking with a yet-to-be-installed one
8126      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8127      test "$hardcode_minus_L" != no; then
8128     # Linking always hardcodes the temporary library directory.
8129     hardcode_action=relink
8130   else
8131     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8132     hardcode_action=immediate
8133   fi
8134 else
8135   # We cannot hardcode anything, or else we can only hardcode existing
8136   # directories.
8137   hardcode_action=unsupported
8138 fi
8139 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8140 echo "${ECHO_T}$hardcode_action" >&6
8141
8142 if test "$hardcode_action" = relink; then
8143   # Fast installation is not supported
8144   enable_fast_install=no
8145 elif test "$shlibpath_overrides_runpath" = yes ||
8146      test "$enable_shared" = no; then
8147   # Fast installation is not necessary
8148   enable_fast_install=needless
8149 fi
8150
8151 striplib=
8152 old_striplib=
8153 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8154 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8155 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8156   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8157   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8158   echo "$as_me:$LINENO: result: yes" >&5
8159 echo "${ECHO_T}yes" >&6
8160 else
8161 # FIXME - insert some real tests, host_os isn't really good enough
8162   case $host_os in
8163    darwin*)
8164        if test -n "$STRIP" ; then
8165          striplib="$STRIP -x"
8166          echo "$as_me:$LINENO: result: yes" >&5
8167 echo "${ECHO_T}yes" >&6
8168        else
8169   echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6
8171 fi
8172        ;;
8173    *)
8174   echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8176     ;;
8177   esac
8178 fi
8179
8180 if test "x$enable_dlopen" != xyes; then
8181   enable_dlopen=unknown
8182   enable_dlopen_self=unknown
8183   enable_dlopen_self_static=unknown
8184 else
8185   lt_cv_dlopen=no
8186   lt_cv_dlopen_libs=
8187
8188   case $host_os in
8189   beos*)
8190     lt_cv_dlopen="load_add_on"
8191     lt_cv_dlopen_libs=
8192     lt_cv_dlopen_self=yes
8193     ;;
8194
8195   mingw* | pw32*)
8196     lt_cv_dlopen="LoadLibrary"
8197     lt_cv_dlopen_libs=
8198    ;;
8199
8200   cygwin*)
8201     lt_cv_dlopen="dlopen"
8202     lt_cv_dlopen_libs=
8203    ;;
8204
8205   darwin*)
8206   # if libdl is installed we need to link against it
8207     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8208 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8210   echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212   ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-ldl  $LIBS"
8214 cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220
8221 /* Override any gcc2 internal prototype to avoid an error.  */
8222 #ifdef __cplusplus
8223 extern "C"
8224 #endif
8225 /* We use char because int might match the return type of a gcc2
8226    builtin and then its argument prototype would still apply.  */
8227 char dlopen ();
8228 int
8229 main ()
8230 {
8231 dlopen ();
8232   ;
8233   return 0;
8234 }
8235 _ACEOF
8236 rm -f conftest.$ac_objext conftest$ac_exeext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8238   (eval $ac_link) 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } &&
8245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247   (eval $ac_try) 2>&5
8248   ac_status=$?
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); }; } &&
8251          { ac_try='test -s conftest$ac_exeext'
8252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253   (eval $ac_try) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); }; }; then
8257   ac_cv_lib_dl_dlopen=yes
8258 else
8259   echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262 ac_cv_lib_dl_dlopen=no
8263 fi
8264 rm -f conftest.err conftest.$ac_objext \
8265       conftest$ac_exeext conftest.$ac_ext
8266 LIBS=$ac_check_lib_save_LIBS
8267 fi
8268 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8269 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8270 if test $ac_cv_lib_dl_dlopen = yes; then
8271   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8272 else
8273
8274     lt_cv_dlopen="dyld"
8275     lt_cv_dlopen_libs=
8276     lt_cv_dlopen_self=yes
8277
8278 fi
8279
8280    ;;
8281
8282   *)
8283     echo "$as_me:$LINENO: checking for shl_load" >&5
8284 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8285 if test "${ac_cv_func_shl_load+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h.  */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h.  */
8294 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8296 #define shl_load innocuous_shl_load
8297
8298 /* System header to define __stub macros and hopefully few prototypes,
8299     which can conflict with char shl_load (); below.
8300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8301     <limits.h> exists even on freestanding compilers.  */
8302
8303 #ifdef __STDC__
8304 # include <limits.h>
8305 #else
8306 # include <assert.h>
8307 #endif
8308
8309 #undef shl_load
8310
8311 /* Override any gcc2 internal prototype to avoid an error.  */
8312 #ifdef __cplusplus
8313 extern "C"
8314 {
8315 #endif
8316 /* We use char because int might match the return type of a gcc2
8317    builtin and then its argument prototype would still apply.  */
8318 char shl_load ();
8319 /* The GNU C library defines this for functions which it implements
8320     to always fail with ENOSYS.  Some functions are actually named
8321     something starting with __ and the normal name is an alias.  */
8322 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8323 choke me
8324 #else
8325 char (*f) () = shl_load;
8326 #endif
8327 #ifdef __cplusplus
8328 }
8329 #endif
8330
8331 int
8332 main ()
8333 {
8334 return f != shl_load;
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341   (eval $ac_link) 2>conftest.er1
8342   ac_status=$?
8343   grep -v '^ *+' conftest.er1 >conftest.err
8344   rm -f conftest.er1
8345   cat conftest.err >&5
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; } &&
8354          { ac_try='test -s conftest$ac_exeext'
8355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356   (eval $ac_try) 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   ac_cv_func_shl_load=yes
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365 ac_cv_func_shl_load=no
8366 fi
8367 rm -f conftest.err conftest.$ac_objext \
8368       conftest$ac_exeext conftest.$ac_ext
8369 fi
8370 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8371 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8372 if test $ac_cv_func_shl_load = yes; then
8373   lt_cv_dlopen="shl_load"
8374 else
8375   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8376 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8377 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8378   echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380   ac_check_lib_save_LIBS=$LIBS
8381 LIBS="-ldld  $LIBS"
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388
8389 /* Override any gcc2 internal prototype to avoid an error.  */
8390 #ifdef __cplusplus
8391 extern "C"
8392 #endif
8393 /* We use char because int might match the return type of a gcc2
8394    builtin and then its argument prototype would still apply.  */
8395 char shl_load ();
8396 int
8397 main ()
8398 {
8399 shl_load ();
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406   (eval $ac_link) 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; } &&
8419          { ac_try='test -s conftest$ac_exeext'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   ac_cv_lib_dld_shl_load=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_cv_lib_dld_shl_load=no
8431 fi
8432 rm -f conftest.err conftest.$ac_objext \
8433       conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8437 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8438 if test $ac_cv_lib_dld_shl_load = yes; then
8439   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8440 else
8441   echo "$as_me:$LINENO: checking for dlopen" >&5
8442 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8443 if test "${ac_cv_func_dlopen+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   cat >conftest.$ac_ext <<_ACEOF
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8454 #define dlopen innocuous_dlopen
8455
8456 /* System header to define __stub macros and hopefully few prototypes,
8457     which can conflict with char dlopen (); below.
8458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459     <limits.h> exists even on freestanding compilers.  */
8460
8461 #ifdef __STDC__
8462 # include <limits.h>
8463 #else
8464 # include <assert.h>
8465 #endif
8466
8467 #undef dlopen
8468
8469 /* Override any gcc2 internal prototype to avoid an error.  */
8470 #ifdef __cplusplus
8471 extern "C"
8472 {
8473 #endif
8474 /* We use char because int might match the return type of a gcc2
8475    builtin and then its argument prototype would still apply.  */
8476 char dlopen ();
8477 /* The GNU C library defines this for functions which it implements
8478     to always fail with ENOSYS.  Some functions are actually named
8479     something starting with __ and the normal name is an alias.  */
8480 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8481 choke me
8482 #else
8483 char (*f) () = dlopen;
8484 #endif
8485 #ifdef __cplusplus
8486 }
8487 #endif
8488
8489 int
8490 main ()
8491 {
8492 return f != dlopen;
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499   (eval $ac_link) 2>conftest.er1
8500   ac_status=$?
8501   grep -v '^ *+' conftest.er1 >conftest.err
8502   rm -f conftest.er1
8503   cat conftest.err >&5
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508   (eval $ac_try) 2>&5
8509   ac_status=$?
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); }; } &&
8512          { ac_try='test -s conftest$ac_exeext'
8513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514   (eval $ac_try) 2>&5
8515   ac_status=$?
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); }; }; then
8518   ac_cv_func_dlopen=yes
8519 else
8520   echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8522
8523 ac_cv_func_dlopen=no
8524 fi
8525 rm -f conftest.err conftest.$ac_objext \
8526       conftest$ac_exeext conftest.$ac_ext
8527 fi
8528 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8529 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8530 if test $ac_cv_func_dlopen = yes; then
8531   lt_cv_dlopen="dlopen"
8532 else
8533   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8534 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8535 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8536   echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538   ac_check_lib_save_LIBS=$LIBS
8539 LIBS="-ldl  $LIBS"
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546
8547 /* Override any gcc2 internal prototype to avoid an error.  */
8548 #ifdef __cplusplus
8549 extern "C"
8550 #endif
8551 /* We use char because int might match the return type of a gcc2
8552    builtin and then its argument prototype would still apply.  */
8553 char dlopen ();
8554 int
8555 main ()
8556 {
8557 dlopen ();
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564   (eval $ac_link) 2>conftest.er1
8565   ac_status=$?
8566   grep -v '^ *+' conftest.er1 >conftest.err
8567   rm -f conftest.er1
8568   cat conftest.err >&5
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); } &&
8571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; } &&
8577          { ac_try='test -s conftest$ac_exeext'
8578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579   (eval $ac_try) 2>&5
8580   ac_status=$?
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); }; }; then
8583   ac_cv_lib_dl_dlopen=yes
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ac_cv_lib_dl_dlopen=no
8589 fi
8590 rm -f conftest.err conftest.$ac_objext \
8591       conftest$ac_exeext conftest.$ac_ext
8592 LIBS=$ac_check_lib_save_LIBS
8593 fi
8594 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8595 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8596 if test $ac_cv_lib_dl_dlopen = yes; then
8597   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8598 else
8599   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8600 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8601 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   ac_check_lib_save_LIBS=$LIBS
8605 LIBS="-lsvld  $LIBS"
8606 cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612
8613 /* Override any gcc2 internal prototype to avoid an error.  */
8614 #ifdef __cplusplus
8615 extern "C"
8616 #endif
8617 /* We use char because int might match the return type of a gcc2
8618    builtin and then its argument prototype would still apply.  */
8619 char dlopen ();
8620 int
8621 main ()
8622 {
8623 dlopen ();
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630   (eval $ac_link) 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
8634   cat conftest.err >&5
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } &&
8637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639   (eval $ac_try) 2>&5
8640   ac_status=$?
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); }; } &&
8643          { ac_try='test -s conftest$ac_exeext'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; }; then
8649   ac_cv_lib_svld_dlopen=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654 ac_cv_lib_svld_dlopen=no
8655 fi
8656 rm -f conftest.err conftest.$ac_objext \
8657       conftest$ac_exeext conftest.$ac_ext
8658 LIBS=$ac_check_lib_save_LIBS
8659 fi
8660 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8661 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8662 if test $ac_cv_lib_svld_dlopen = yes; then
8663   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8664 else
8665   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8666 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8668   echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670   ac_check_lib_save_LIBS=$LIBS
8671 LIBS="-ldld  $LIBS"
8672 cat >conftest.$ac_ext <<_ACEOF
8673 /* confdefs.h.  */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h.  */
8678
8679 /* Override any gcc2 internal prototype to avoid an error.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 /* We use char because int might match the return type of a gcc2
8684    builtin and then its argument prototype would still apply.  */
8685 char dld_link ();
8686 int
8687 main ()
8688 {
8689 dld_link ();
8690   ;
8691   return 0;
8692 }
8693 _ACEOF
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696   (eval $ac_link) 2>conftest.er1
8697   ac_status=$?
8698   grep -v '^ *+' conftest.er1 >conftest.err
8699   rm -f conftest.er1
8700   cat conftest.err >&5
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } &&
8703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705   (eval $ac_try) 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; } &&
8709          { ac_try='test -s conftest$ac_exeext'
8710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711   (eval $ac_try) 2>&5
8712   ac_status=$?
8713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714   (exit $ac_status); }; }; then
8715   ac_cv_lib_dld_dld_link=yes
8716 else
8717   echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 ac_cv_lib_dld_dld_link=no
8721 fi
8722 rm -f conftest.err conftest.$ac_objext \
8723       conftest$ac_exeext conftest.$ac_ext
8724 LIBS=$ac_check_lib_save_LIBS
8725 fi
8726 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8727 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8728 if test $ac_cv_lib_dld_dld_link = yes; then
8729   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8730 fi
8731
8732
8733 fi
8734
8735
8736 fi
8737
8738
8739 fi
8740
8741
8742 fi
8743
8744
8745 fi
8746
8747     ;;
8748   esac
8749
8750   if test "x$lt_cv_dlopen" != xno; then
8751     enable_dlopen=yes
8752   else
8753     enable_dlopen=no
8754   fi
8755
8756   case $lt_cv_dlopen in
8757   dlopen)
8758     save_CPPFLAGS="$CPPFLAGS"
8759     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8760
8761     save_LDFLAGS="$LDFLAGS"
8762     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8763
8764     save_LIBS="$LIBS"
8765     LIBS="$lt_cv_dlopen_libs $LIBS"
8766
8767     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8768 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8769 if test "${lt_cv_dlopen_self+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772           if test "$cross_compiling" = yes; then :
8773   lt_cv_dlopen_self=cross
8774 else
8775   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8776   lt_status=$lt_dlunknown
8777   cat > conftest.$ac_ext <<EOF
8778 #line 8778 "configure"
8779 #include "confdefs.h"
8780
8781 #if HAVE_DLFCN_H
8782 #include <dlfcn.h>
8783 #endif
8784
8785 #include <stdio.h>
8786
8787 #ifdef RTLD_GLOBAL
8788 #  define LT_DLGLOBAL           RTLD_GLOBAL
8789 #else
8790 #  ifdef DL_GLOBAL
8791 #    define LT_DLGLOBAL         DL_GLOBAL
8792 #  else
8793 #    define LT_DLGLOBAL         0
8794 #  endif
8795 #endif
8796
8797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8798    find out it does not work in some platform. */
8799 #ifndef LT_DLLAZY_OR_NOW
8800 #  ifdef RTLD_LAZY
8801 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8802 #  else
8803 #    ifdef DL_LAZY
8804 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8805 #    else
8806 #      ifdef RTLD_NOW
8807 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8808 #      else
8809 #        ifdef DL_NOW
8810 #          define LT_DLLAZY_OR_NOW      DL_NOW
8811 #        else
8812 #          define LT_DLLAZY_OR_NOW      0
8813 #        endif
8814 #      endif
8815 #    endif
8816 #  endif
8817 #endif
8818
8819 #ifdef __cplusplus
8820 extern "C" void exit (int);
8821 #endif
8822
8823 void fnord() { int i=42;}
8824 int main ()
8825 {
8826   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8827   int status = $lt_dlunknown;
8828
8829   if (self)
8830     {
8831       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8832       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8833       /* dlclose (self); */
8834     }
8835   else
8836     puts (dlerror ());
8837
8838     exit (status);
8839 }
8840 EOF
8841   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8846     (./conftest; exit; ) >&5 2>/dev/null
8847     lt_status=$?
8848     case x$lt_status in
8849       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8850       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8851       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8852     esac
8853   else :
8854     # compilation failed
8855     lt_cv_dlopen_self=no
8856   fi
8857 fi
8858 rm -fr conftest*
8859
8860
8861 fi
8862 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8863 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8864
8865     if test "x$lt_cv_dlopen_self" = xyes; then
8866       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8867       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8868 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8869 if test "${lt_cv_dlopen_self_static+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872           if test "$cross_compiling" = yes; then :
8873   lt_cv_dlopen_self_static=cross
8874 else
8875   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8876   lt_status=$lt_dlunknown
8877   cat > conftest.$ac_ext <<EOF
8878 #line 8878 "configure"
8879 #include "confdefs.h"
8880
8881 #if HAVE_DLFCN_H
8882 #include <dlfcn.h>
8883 #endif
8884
8885 #include <stdio.h>
8886
8887 #ifdef RTLD_GLOBAL
8888 #  define LT_DLGLOBAL           RTLD_GLOBAL
8889 #else
8890 #  ifdef DL_GLOBAL
8891 #    define LT_DLGLOBAL         DL_GLOBAL
8892 #  else
8893 #    define LT_DLGLOBAL         0
8894 #  endif
8895 #endif
8896
8897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8898    find out it does not work in some platform. */
8899 #ifndef LT_DLLAZY_OR_NOW
8900 #  ifdef RTLD_LAZY
8901 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8902 #  else
8903 #    ifdef DL_LAZY
8904 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8905 #    else
8906 #      ifdef RTLD_NOW
8907 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8908 #      else
8909 #        ifdef DL_NOW
8910 #          define LT_DLLAZY_OR_NOW      DL_NOW
8911 #        else
8912 #          define LT_DLLAZY_OR_NOW      0
8913 #        endif
8914 #      endif
8915 #    endif
8916 #  endif
8917 #endif
8918
8919 #ifdef __cplusplus
8920 extern "C" void exit (int);
8921 #endif
8922
8923 void fnord() { int i=42;}
8924 int main ()
8925 {
8926   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8927   int status = $lt_dlunknown;
8928
8929   if (self)
8930     {
8931       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8932       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8933       /* dlclose (self); */
8934     }
8935   else
8936     puts (dlerror ());
8937
8938     exit (status);
8939 }
8940 EOF
8941   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942   (eval $ac_link) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8946     (./conftest; exit; ) >&5 2>/dev/null
8947     lt_status=$?
8948     case x$lt_status in
8949       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8950       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8951       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8952     esac
8953   else :
8954     # compilation failed
8955     lt_cv_dlopen_self_static=no
8956   fi
8957 fi
8958 rm -fr conftest*
8959
8960
8961 fi
8962 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8963 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8964     fi
8965
8966     CPPFLAGS="$save_CPPFLAGS"
8967     LDFLAGS="$save_LDFLAGS"
8968     LIBS="$save_LIBS"
8969     ;;
8970   esac
8971
8972   case $lt_cv_dlopen_self in
8973   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8974   *) enable_dlopen_self=unknown ;;
8975   esac
8976
8977   case $lt_cv_dlopen_self_static in
8978   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8979   *) enable_dlopen_self_static=unknown ;;
8980   esac
8981 fi
8982
8983
8984 # Report which library types will actually be built
8985 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8986 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8987 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8988 echo "${ECHO_T}$can_build_shared" >&6
8989
8990 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8991 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8992 test "$can_build_shared" = "no" && enable_shared=no
8993
8994 # On AIX, shared libraries and static libraries use the same namespace, and
8995 # are all built from PIC.
8996 case $host_os in
8997 aix3*)
8998   test "$enable_shared" = yes && enable_static=no
8999   if test -n "$RANLIB"; then
9000     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9001     postinstall_cmds='$RANLIB $lib'
9002   fi
9003   ;;
9004
9005 aix4* | aix5*)
9006   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9007     test "$enable_shared" = yes && enable_static=no
9008   fi
9009     ;;
9010 esac
9011 echo "$as_me:$LINENO: result: $enable_shared" >&5
9012 echo "${ECHO_T}$enable_shared" >&6
9013
9014 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9015 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9016 # Make sure either enable_shared or enable_static is yes.
9017 test "$enable_shared" = yes || enable_static=yes
9018 echo "$as_me:$LINENO: result: $enable_static" >&5
9019 echo "${ECHO_T}$enable_static" >&6
9020
9021 # The else clause should only fire when bootstrapping the
9022 # libtool distribution, otherwise you forgot to ship ltmain.sh
9023 # with your package, and you will get complaints that there are
9024 # no rules to generate ltmain.sh.
9025 if test -f "$ltmain"; then
9026   # See if we are running on zsh, and set the options which allow our commands through
9027   # without removal of \ escapes.
9028   if test -n "${ZSH_VERSION+set}" ; then
9029     setopt NO_GLOB_SUBST
9030   fi
9031   # Now quote all the things that may contain metacharacters while being
9032   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9033   # variables and quote the copies for generation of the libtool script.
9034   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9035     SED SHELL STRIP \
9036     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9037     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9038     deplibs_check_method reload_flag reload_cmds need_locks \
9039     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9040     lt_cv_sys_global_symbol_to_c_name_address \
9041     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9042     old_postinstall_cmds old_postuninstall_cmds \
9043     compiler \
9044     CC \
9045     LD \
9046     lt_prog_compiler_wl \
9047     lt_prog_compiler_pic \
9048     lt_prog_compiler_static \
9049     lt_prog_compiler_no_builtin_flag \
9050     export_dynamic_flag_spec \
9051     thread_safe_flag_spec \
9052     whole_archive_flag_spec \
9053     enable_shared_with_static_runtimes \
9054     old_archive_cmds \
9055     old_archive_from_new_cmds \
9056     predep_objects \
9057     postdep_objects \
9058     predeps \
9059     postdeps \
9060     compiler_lib_search_path \
9061     archive_cmds \
9062     archive_expsym_cmds \
9063     postinstall_cmds \
9064     postuninstall_cmds \
9065     old_archive_from_expsyms_cmds \
9066     allow_undefined_flag \
9067     no_undefined_flag \
9068     export_symbols_cmds \
9069     hardcode_libdir_flag_spec \
9070     hardcode_libdir_flag_spec_ld \
9071     hardcode_libdir_separator \
9072     hardcode_automatic \
9073     module_cmds \
9074     module_expsym_cmds \
9075     lt_cv_prog_compiler_c_o \
9076     exclude_expsyms \
9077     include_expsyms; do
9078
9079     case $var in
9080     old_archive_cmds | \
9081     old_archive_from_new_cmds | \
9082     archive_cmds | \
9083     archive_expsym_cmds | \
9084     module_cmds | \
9085     module_expsym_cmds | \
9086     old_archive_from_expsyms_cmds | \
9087     export_symbols_cmds | \
9088     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9089     postinstall_cmds | postuninstall_cmds | \
9090     old_postinstall_cmds | old_postuninstall_cmds | \
9091     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9092       # Double-quote double-evaled strings.
9093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9094       ;;
9095     *)
9096       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9097       ;;
9098     esac
9099   done
9100
9101   case $lt_echo in
9102   *'\$0 --fallback-echo"')
9103     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9104     ;;
9105   esac
9106
9107 cfgfile="${ofile}T"
9108   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9109   $rm -f "$cfgfile"
9110   { echo "$as_me:$LINENO: creating $ofile" >&5
9111 echo "$as_me: creating $ofile" >&6;}
9112
9113   cat <<__EOF__ >> "$cfgfile"
9114 #! $SHELL
9115
9116 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9117 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9118 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9119 #
9120 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9121 # Free Software Foundation, Inc.
9122 #
9123 # This file is part of GNU Libtool:
9124 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9125 #
9126 # This program is free software; you can redistribute it and/or modify
9127 # it under the terms of the GNU General Public License as published by
9128 # the Free Software Foundation; either version 2 of the License, or
9129 # (at your option) any later version.
9130 #
9131 # This program is distributed in the hope that it will be useful, but
9132 # WITHOUT ANY WARRANTY; without even the implied warranty of
9133 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9134 # General Public License for more details.
9135 #
9136 # You should have received a copy of the GNU General Public License
9137 # along with this program; if not, write to the Free Software
9138 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9139 #
9140 # As a special exception to the GNU General Public License, if you
9141 # distribute this file as part of a program that contains a
9142 # configuration script generated by Autoconf, you may include it under
9143 # the same distribution terms that you use for the rest of that program.
9144
9145 # A sed program that does not truncate output.
9146 SED=$lt_SED
9147
9148 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9149 Xsed="$SED -e 1s/^X//"
9150
9151 # The HP-UX ksh and POSIX shell print the target directory to stdout
9152 # if CDPATH is set.
9153 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9154
9155 # The names of the tagged configurations supported by this script.
9156 available_tags=
9157
9158 # ### BEGIN LIBTOOL CONFIG
9159
9160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9161
9162 # Shell to use when invoking shell scripts.
9163 SHELL=$lt_SHELL
9164
9165 # Whether or not to build shared libraries.
9166 build_libtool_libs=$enable_shared
9167
9168 # Whether or not to build static libraries.
9169 build_old_libs=$enable_static
9170
9171 # Whether or not to add -lc for building shared libraries.
9172 build_libtool_need_lc=$archive_cmds_need_lc
9173
9174 # Whether or not to disallow shared libs when runtime libs are static
9175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9176
9177 # Whether or not to optimize for fast installation.
9178 fast_install=$enable_fast_install
9179
9180 # The host system.
9181 host_alias=$host_alias
9182 host=$host
9183 host_os=$host_os
9184
9185 # The build system.
9186 build_alias=$build_alias
9187 build=$build
9188 build_os=$build_os
9189
9190 # An echo program that does not interpret backslashes.
9191 echo=$lt_echo
9192
9193 # The archiver.
9194 AR=$lt_AR
9195 AR_FLAGS=$lt_AR_FLAGS
9196
9197 # A C compiler.
9198 LTCC=$lt_LTCC
9199
9200 # LTCC compiler flags.
9201 LTCFLAGS=$lt_LTCFLAGS
9202
9203 # A language-specific compiler.
9204 CC=$lt_compiler
9205
9206 # Is the compiler the GNU C compiler?
9207 with_gcc=$GCC
9208
9209 # An ERE matcher.
9210 EGREP=$lt_EGREP
9211
9212 # The linker used to build libraries.
9213 LD=$lt_LD
9214
9215 # Whether we need hard or soft links.
9216 LN_S=$lt_LN_S
9217
9218 # A BSD-compatible nm program.
9219 NM=$lt_NM
9220
9221 # A symbol stripping program
9222 STRIP=$lt_STRIP
9223
9224 # Used to examine libraries when file_magic_cmd begins "file"
9225 MAGIC_CMD=$MAGIC_CMD
9226
9227 # Used on cygwin: DLL creation program.
9228 DLLTOOL="$DLLTOOL"
9229
9230 # Used on cygwin: object dumper.
9231 OBJDUMP="$OBJDUMP"
9232
9233 # Used on cygwin: assembler.
9234 AS="$AS"
9235
9236 # The name of the directory that contains temporary libtool files.
9237 objdir=$objdir
9238
9239 # How to create reloadable object files.
9240 reload_flag=$lt_reload_flag
9241 reload_cmds=$lt_reload_cmds
9242
9243 # How to pass a linker flag through the compiler.
9244 wl=$lt_lt_prog_compiler_wl
9245
9246 # Object file suffix (normally "o").
9247 objext="$ac_objext"
9248
9249 # Old archive suffix (normally "a").
9250 libext="$libext"
9251
9252 # Shared library suffix (normally ".so").
9253 shrext_cmds='$shrext_cmds'
9254
9255 # Executable file suffix (normally "").
9256 exeext="$exeext"
9257
9258 # Additional compiler flags for building library objects.
9259 pic_flag=$lt_lt_prog_compiler_pic
9260 pic_mode=$pic_mode
9261
9262 # What is the maximum length of a command?
9263 max_cmd_len=$lt_cv_sys_max_cmd_len
9264
9265 # Does compiler simultaneously support -c and -o options?
9266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9267
9268 # Must we lock files when doing compilation?
9269 need_locks=$lt_need_locks
9270
9271 # Do we need the lib prefix for modules?
9272 need_lib_prefix=$need_lib_prefix
9273
9274 # Do we need a version for libraries?
9275 need_version=$need_version
9276
9277 # Whether dlopen is supported.
9278 dlopen_support=$enable_dlopen
9279
9280 # Whether dlopen of programs is supported.
9281 dlopen_self=$enable_dlopen_self
9282
9283 # Whether dlopen of statically linked programs is supported.
9284 dlopen_self_static=$enable_dlopen_self_static
9285
9286 # Compiler flag to prevent dynamic linking.
9287 link_static_flag=$lt_lt_prog_compiler_static
9288
9289 # Compiler flag to turn off builtin functions.
9290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9291
9292 # Compiler flag to allow reflexive dlopens.
9293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9294
9295 # Compiler flag to generate shared objects directly from archives.
9296 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9297
9298 # Compiler flag to generate thread-safe objects.
9299 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9300
9301 # Library versioning type.
9302 version_type=$version_type
9303
9304 # Format of library name prefix.
9305 libname_spec=$lt_libname_spec
9306
9307 # List of archive names.  First name is the real one, the rest are links.
9308 # The last name is the one that the linker finds with -lNAME.
9309 library_names_spec=$lt_library_names_spec
9310
9311 # The coded name of the library, if different from the real name.
9312 soname_spec=$lt_soname_spec
9313
9314 # Commands used to build and install an old-style archive.
9315 RANLIB=$lt_RANLIB
9316 old_archive_cmds=$lt_old_archive_cmds
9317 old_postinstall_cmds=$lt_old_postinstall_cmds
9318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9319
9320 # Create an old-style archive from a shared archive.
9321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9322
9323 # Create a temporary old-style archive to link instead of a shared archive.
9324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9325
9326 # Commands used to build and install a shared archive.
9327 archive_cmds=$lt_archive_cmds
9328 archive_expsym_cmds=$lt_archive_expsym_cmds
9329 postinstall_cmds=$lt_postinstall_cmds
9330 postuninstall_cmds=$lt_postuninstall_cmds
9331
9332 # Commands used to build a loadable module (assumed same as above if empty)
9333 module_cmds=$lt_module_cmds
9334 module_expsym_cmds=$lt_module_expsym_cmds
9335
9336 # Commands to strip libraries.
9337 old_striplib=$lt_old_striplib
9338 striplib=$lt_striplib
9339
9340 # Dependencies to place before the objects being linked to create a
9341 # shared library.
9342 predep_objects=$lt_predep_objects
9343
9344 # Dependencies to place after the objects being linked to create a
9345 # shared library.
9346 postdep_objects=$lt_postdep_objects
9347
9348 # Dependencies to place before the objects being linked to create a
9349 # shared library.
9350 predeps=$lt_predeps
9351
9352 # Dependencies to place after the objects being linked to create a
9353 # shared library.
9354 postdeps=$lt_postdeps
9355
9356 # The library search path used internally by the compiler when linking
9357 # a shared library.
9358 compiler_lib_search_path=$lt_compiler_lib_search_path
9359
9360 # Method to check whether dependent libraries are shared objects.
9361 deplibs_check_method=$lt_deplibs_check_method
9362
9363 # Command to use when deplibs_check_method == file_magic.
9364 file_magic_cmd=$lt_file_magic_cmd
9365
9366 # Flag that allows shared libraries with undefined symbols to be built.
9367 allow_undefined_flag=$lt_allow_undefined_flag
9368
9369 # Flag that forces no undefined symbols.
9370 no_undefined_flag=$lt_no_undefined_flag
9371
9372 # Commands used to finish a libtool library installation in a directory.
9373 finish_cmds=$lt_finish_cmds
9374
9375 # Same as above, but a single script fragment to be evaled but not shown.
9376 finish_eval=$lt_finish_eval
9377
9378 # Take the output of nm and produce a listing of raw symbols and C names.
9379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9380
9381 # Transform the output of nm in a proper C declaration
9382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9383
9384 # Transform the output of nm in a C name address pair
9385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9386
9387 # This is the shared library runtime path variable.
9388 runpath_var=$runpath_var
9389
9390 # This is the shared library path variable.
9391 shlibpath_var=$shlibpath_var
9392
9393 # Is shlibpath searched before the hard-coded library search path?
9394 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9395
9396 # How to hardcode a shared library path into an executable.
9397 hardcode_action=$hardcode_action
9398
9399 # Whether we should hardcode library paths into libraries.
9400 hardcode_into_libs=$hardcode_into_libs
9401
9402 # Flag to hardcode \$libdir into a binary during linking.
9403 # This must work even if \$libdir does not exist.
9404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9405
9406 # If ld is used when linking, flag to hardcode \$libdir into
9407 # a binary during linking. This must work even if \$libdir does
9408 # not exist.
9409 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9410
9411 # Whether we need a single -rpath flag with a separated argument.
9412 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9413
9414 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9415 # resulting binary.
9416 hardcode_direct=$hardcode_direct
9417
9418 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9419 # resulting binary.
9420 hardcode_minus_L=$hardcode_minus_L
9421
9422 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9423 # the resulting binary.
9424 hardcode_shlibpath_var=$hardcode_shlibpath_var
9425
9426 # Set to yes if building a shared library automatically hardcodes DIR into the library
9427 # and all subsequent libraries and executables linked against it.
9428 hardcode_automatic=$hardcode_automatic
9429
9430 # Variables whose values should be saved in libtool wrapper scripts and
9431 # restored at relink time.
9432 variables_saved_for_relink="$variables_saved_for_relink"
9433
9434 # Whether libtool must link a program against all its dependency libraries.
9435 link_all_deplibs=$link_all_deplibs
9436
9437 # Compile-time system search path for libraries
9438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9439
9440 # Run-time system search path for libraries
9441 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9442
9443 # Fix the shell variable \$srcfile for the compiler.
9444 fix_srcfile_path="$fix_srcfile_path"
9445
9446 # Set to yes if exported symbols are required.
9447 always_export_symbols=$always_export_symbols
9448
9449 # The commands to list exported symbols.
9450 export_symbols_cmds=$lt_export_symbols_cmds
9451
9452 # The commands to extract the exported symbol list from a shared archive.
9453 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9454
9455 # Symbols that should not be listed in the preloaded symbols.
9456 exclude_expsyms=$lt_exclude_expsyms
9457
9458 # Symbols that must always be exported.
9459 include_expsyms=$lt_include_expsyms
9460
9461 # ### END LIBTOOL CONFIG
9462
9463 __EOF__
9464
9465
9466   case $host_os in
9467   aix3*)
9468     cat <<\EOF >> "$cfgfile"
9469
9470 # AIX sometimes has problems with the GCC collect2 program.  For some
9471 # reason, if we set the COLLECT_NAMES environment variable, the problems
9472 # vanish in a puff of smoke.
9473 if test "X${COLLECT_NAMES+set}" != Xset; then
9474   COLLECT_NAMES=
9475   export COLLECT_NAMES
9476 fi
9477 EOF
9478     ;;
9479   esac
9480
9481   # We use sed instead of cat because bash on DJGPP gets confused if
9482   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9483   # text mode, it properly converts lines to CR/LF.  This bash problem
9484   # is reportedly fixed, but why not run on old versions too?
9485   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9486
9487   mv -f "$cfgfile" "$ofile" || \
9488     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9489   chmod +x "$ofile"
9490
9491 else
9492   # If there is no Makefile yet, we rely on a make rule to execute
9493   # `config.status --recheck' to rerun these tests and create the
9494   # libtool script then.
9495   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9496   if test -f "$ltmain_in"; then
9497     test -f Makefile && make "$ltmain"
9498   fi
9499 fi
9500
9501
9502 ac_ext=c
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508 CC="$lt_save_CC"
9509
9510
9511 # Check whether --with-tags or --without-tags was given.
9512 if test "${with_tags+set}" = set; then
9513   withval="$with_tags"
9514   tagnames="$withval"
9515 fi;
9516
9517 if test -f "$ltmain" && test -n "$tagnames"; then
9518   if test ! -f "${ofile}"; then
9519     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9520 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9521   fi
9522
9523   if test -z "$LTCC"; then
9524     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9525     if test -z "$LTCC"; then
9526       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9527 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9528     else
9529       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9530 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9531     fi
9532   fi
9533   if test -z "$LTCFLAGS"; then
9534     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9535   fi
9536
9537   # Extract list of available tagged configurations in $ofile.
9538   # Note that this assumes the entire list is on one line.
9539   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9540
9541   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9542   for tagname in $tagnames; do
9543     IFS="$lt_save_ifs"
9544     # Check whether tagname contains only valid characters
9545     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9546     "") ;;
9547     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9548 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9549    { (exit 1); exit 1; }; }
9550         ;;
9551     esac
9552
9553     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9554     then
9555       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9556 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9557    { (exit 1); exit 1; }; }
9558     fi
9559
9560     # Update the list of available tags.
9561     if test -n "$tagname"; then
9562       echo appending configuration tag \"$tagname\" to $ofile
9563
9564       case $tagname in
9565       CXX)
9566         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9567             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9568             (test "X$CXX" != "Xg++"))) ; then
9569           ac_ext=cc
9570 ac_cpp='$CXXCPP $CPPFLAGS'
9571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9574
9575
9576
9577
9578 archive_cmds_need_lc_CXX=no
9579 allow_undefined_flag_CXX=
9580 always_export_symbols_CXX=no
9581 archive_expsym_cmds_CXX=
9582 export_dynamic_flag_spec_CXX=
9583 hardcode_direct_CXX=no
9584 hardcode_libdir_flag_spec_CXX=
9585 hardcode_libdir_flag_spec_ld_CXX=
9586 hardcode_libdir_separator_CXX=
9587 hardcode_minus_L_CXX=no
9588 hardcode_shlibpath_var_CXX=unsupported
9589 hardcode_automatic_CXX=no
9590 module_cmds_CXX=
9591 module_expsym_cmds_CXX=
9592 link_all_deplibs_CXX=unknown
9593 old_archive_cmds_CXX=$old_archive_cmds
9594 no_undefined_flag_CXX=
9595 whole_archive_flag_spec_CXX=
9596 enable_shared_with_static_runtimes_CXX=no
9597
9598 # Dependencies to place before and after the object being linked:
9599 predep_objects_CXX=
9600 postdep_objects_CXX=
9601 predeps_CXX=
9602 postdeps_CXX=
9603 compiler_lib_search_path_CXX=
9604
9605 # Source file extension for C++ test sources.
9606 ac_ext=cpp
9607
9608 # Object file extension for compiled C++ test sources.
9609 objext=o
9610 objext_CXX=$objext
9611
9612 # Code to be used in simple compile tests
9613 lt_simple_compile_test_code="int some_variable = 0;\n"
9614
9615 # Code to be used in simple link tests
9616 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9617
9618 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9619
9620 # If no C compiler was specified, use CC.
9621 LTCC=${LTCC-"$CC"}
9622
9623 # If no C compiler flags were specified, use CFLAGS.
9624 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9625
9626 # Allow CC to be a program name with arguments.
9627 compiler=$CC
9628
9629
9630 # save warnings/boilerplate of simple test code
9631 ac_outfile=conftest.$ac_objext
9632 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9633 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9634 _lt_compiler_boilerplate=`cat conftest.err`
9635 $rm conftest*
9636
9637 ac_outfile=conftest.$ac_objext
9638 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9639 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9640 _lt_linker_boilerplate=`cat conftest.err`
9641 $rm conftest*
9642
9643
9644 # Allow CC to be a program name with arguments.
9645 lt_save_CC=$CC
9646 lt_save_LD=$LD
9647 lt_save_GCC=$GCC
9648 GCC=$GXX
9649 lt_save_with_gnu_ld=$with_gnu_ld
9650 lt_save_path_LD=$lt_cv_path_LD
9651 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9652   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9653 else
9654   $as_unset lt_cv_prog_gnu_ld
9655 fi
9656 if test -n "${lt_cv_path_LDCXX+set}"; then
9657   lt_cv_path_LD=$lt_cv_path_LDCXX
9658 else
9659   $as_unset lt_cv_path_LD
9660 fi
9661 test -z "${LDCXX+set}" || LD=$LDCXX
9662 CC=${CXX-"c++"}
9663 compiler=$CC
9664 compiler_CXX=$CC
9665 for cc_temp in $compiler""; do
9666   case $cc_temp in
9667     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9668     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9669     \-*) ;;
9670     *) break;;
9671   esac
9672 done
9673 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9674
9675
9676 # We don't want -fno-exception wen compiling C++ code, so set the
9677 # no_builtin_flag separately
9678 if test "$GXX" = yes; then
9679   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9680 else
9681   lt_prog_compiler_no_builtin_flag_CXX=
9682 fi
9683
9684 if test "$GXX" = yes; then
9685   # Set up default GNU C++ configuration
9686
9687
9688 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9689 if test "${with_gnu_ld+set}" = set; then
9690   withval="$with_gnu_ld"
9691   test "$withval" = no || with_gnu_ld=yes
9692 else
9693   with_gnu_ld=no
9694 fi;
9695 ac_prog=ld
9696 if test "$GCC" = yes; then
9697   # Check if gcc -print-prog-name=ld gives a path.
9698   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9699 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9700   case $host in
9701   *-*-mingw*)
9702     # gcc leaves a trailing carriage return which upsets mingw
9703     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9704   *)
9705     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9706   esac
9707   case $ac_prog in
9708     # Accept absolute paths.
9709     [\\/]* | ?:[\\/]*)
9710       re_direlt='/[^/][^/]*/\.\./'
9711       # Canonicalize the pathname of ld
9712       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9713       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9714         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9715       done
9716       test -z "$LD" && LD="$ac_prog"
9717       ;;
9718   "")
9719     # If it fails, then pretend we aren't using GCC.
9720     ac_prog=ld
9721     ;;
9722   *)
9723     # If it is relative, then search for the first ld in PATH.
9724     with_gnu_ld=unknown
9725     ;;
9726   esac
9727 elif test "$with_gnu_ld" = yes; then
9728   echo "$as_me:$LINENO: checking for GNU ld" >&5
9729 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9730 else
9731   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9732 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9733 fi
9734 if test "${lt_cv_path_LD+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   if test -z "$LD"; then
9738   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9739   for ac_dir in $PATH; do
9740     IFS="$lt_save_ifs"
9741     test -z "$ac_dir" && ac_dir=.
9742     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9743       lt_cv_path_LD="$ac_dir/$ac_prog"
9744       # Check to see if the program is GNU ld.  I'd rather use --version,
9745       # but apparently some variants of GNU ld only accept -v.
9746       # Break only if it was the GNU/non-GNU ld that we prefer.
9747       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9748       *GNU* | *'with BFD'*)
9749         test "$with_gnu_ld" != no && break
9750         ;;
9751       *)
9752         test "$with_gnu_ld" != yes && break
9753         ;;
9754       esac
9755     fi
9756   done
9757   IFS="$lt_save_ifs"
9758 else
9759   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9760 fi
9761 fi
9762
9763 LD="$lt_cv_path_LD"
9764 if test -n "$LD"; then
9765   echo "$as_me:$LINENO: result: $LD" >&5
9766 echo "${ECHO_T}$LD" >&6
9767 else
9768   echo "$as_me:$LINENO: result: no" >&5
9769 echo "${ECHO_T}no" >&6
9770 fi
9771 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9772 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9773    { (exit 1); exit 1; }; }
9774 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9775 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9776 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9780 case `$LD -v 2>&1 </dev/null` in
9781 *GNU* | *'with BFD'*)
9782   lt_cv_prog_gnu_ld=yes
9783   ;;
9784 *)
9785   lt_cv_prog_gnu_ld=no
9786   ;;
9787 esac
9788 fi
9789 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9790 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9791 with_gnu_ld=$lt_cv_prog_gnu_ld
9792
9793
9794
9795   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9796   # archiving commands below assume that GNU ld is being used.
9797   if test "$with_gnu_ld" = yes; then
9798     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9799     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'
9800
9801     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9802     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9803
9804     # If archive_cmds runs LD, not CC, wlarc should be empty
9805     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9806     #     investigate it a little bit more. (MM)
9807     wlarc='${wl}'
9808
9809     # ancient GNU ld didn't support --whole-archive et. al.
9810     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9811         grep 'no-whole-archive' > /dev/null; then
9812       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9813     else
9814       whole_archive_flag_spec_CXX=
9815     fi
9816   else
9817     with_gnu_ld=no
9818     wlarc=
9819
9820     # A generic and very simple default shared library creation
9821     # command for GNU C++ for the case where it uses the native
9822     # linker, instead of GNU ld.  If possible, this setting should
9823     # overridden to take advantage of the native linker features on
9824     # the platform it is being used on.
9825     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9826   fi
9827
9828   # Commands to make compiler produce verbose output that lists
9829   # what "hidden" libraries, object files and flags are used when
9830   # linking a shared library.
9831   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9832
9833 else
9834   GXX=no
9835   with_gnu_ld=no
9836   wlarc=
9837 fi
9838
9839 # PORTME: fill in a description of your system's C++ link characteristics
9840 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9841 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9842 ld_shlibs_CXX=yes
9843 case $host_os in
9844   aix3*)
9845     # FIXME: insert proper C++ library support
9846     ld_shlibs_CXX=no
9847     ;;
9848   aix4* | aix5*)
9849     if test "$host_cpu" = ia64; then
9850       # On IA64, the linker does run time linking by default, so we don't
9851       # have to do anything special.
9852       aix_use_runtimelinking=no
9853       exp_sym_flag='-Bexport'
9854       no_entry_flag=""
9855     else
9856       aix_use_runtimelinking=no
9857
9858       # Test if we are trying to use run time linking or normal
9859       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9860       # need to do runtime linking.
9861       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9862         for ld_flag in $LDFLAGS; do
9863           case $ld_flag in
9864           *-brtl*)
9865             aix_use_runtimelinking=yes
9866             break
9867             ;;
9868           esac
9869         done
9870         ;;
9871       esac
9872
9873       exp_sym_flag='-bexport'
9874       no_entry_flag='-bnoentry'
9875     fi
9876
9877     # When large executables or shared objects are built, AIX ld can
9878     # have problems creating the table of contents.  If linking a library
9879     # or program results in "error TOC overflow" add -mminimal-toc to
9880     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9881     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9882
9883     archive_cmds_CXX=''
9884     hardcode_direct_CXX=yes
9885     hardcode_libdir_separator_CXX=':'
9886     link_all_deplibs_CXX=yes
9887
9888     if test "$GXX" = yes; then
9889       case $host_os in aix4.[012]|aix4.[012].*)
9890       # We only want to do this on AIX 4.2 and lower, the check
9891       # below for broken collect2 doesn't work under 4.3+
9892         collect2name=`${CC} -print-prog-name=collect2`
9893         if test -f "$collect2name" && \
9894            strings "$collect2name" | grep resolve_lib_name >/dev/null
9895         then
9896           # We have reworked collect2
9897           hardcode_direct_CXX=yes
9898         else
9899           # We have old collect2
9900           hardcode_direct_CXX=unsupported
9901           # It fails to find uninstalled libraries when the uninstalled
9902           # path is not listed in the libpath.  Setting hardcode_minus_L
9903           # to unsupported forces relinking
9904           hardcode_minus_L_CXX=yes
9905           hardcode_libdir_flag_spec_CXX='-L$libdir'
9906           hardcode_libdir_separator_CXX=
9907         fi
9908         ;;
9909       esac
9910       shared_flag='-shared'
9911       if test "$aix_use_runtimelinking" = yes; then
9912         shared_flag="$shared_flag "'${wl}-G'
9913       fi
9914     else
9915       # not using gcc
9916       if test "$host_cpu" = ia64; then
9917         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9918         # chokes on -Wl,-G. The following line is correct:
9919         shared_flag='-G'
9920       else
9921         if test "$aix_use_runtimelinking" = yes; then
9922           shared_flag='${wl}-G'
9923         else
9924           shared_flag='${wl}-bM:SRE'
9925         fi
9926       fi
9927     fi
9928
9929     # It seems that -bexpall does not export symbols beginning with
9930     # underscore (_), so it is better to generate a list of symbols to export.
9931     always_export_symbols_CXX=yes
9932     if test "$aix_use_runtimelinking" = yes; then
9933       # Warning - without using the other runtime loading flags (-brtl),
9934       # -berok will link without error, but may produce a broken library.
9935       allow_undefined_flag_CXX='-berok'
9936       # Determine the default libpath from the value encoded in an empty executable.
9937       cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943
9944 int
9945 main ()
9946 {
9947
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954   (eval $ac_link) 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } &&
9961          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; } &&
9967          { ac_try='test -s conftest$ac_exeext'
9968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969   (eval $ac_try) 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; }; then
9973
9974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9975 }'`
9976 # Check for a 64-bit object if we didn't find anything.
9977 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; }
9978 }'`; fi
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 fi
9984 rm -f conftest.err conftest.$ac_objext \
9985       conftest$ac_exeext conftest.$ac_ext
9986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9987
9988       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9989
9990       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"
9991      else
9992       if test "$host_cpu" = ia64; then
9993         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9994         allow_undefined_flag_CXX="-z nodefs"
9995         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"
9996       else
9997         # Determine the default libpath from the value encoded in an empty executable.
9998         cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h.  */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h.  */
10004
10005 int
10006 main ()
10007 {
10008
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015   (eval $ac_link) 2>conftest.er1
10016   ac_status=$?
10017   grep -v '^ *+' conftest.er1 >conftest.err
10018   rm -f conftest.er1
10019   cat conftest.err >&5
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } &&
10022          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024   (eval $ac_try) 2>&5
10025   ac_status=$?
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); }; } &&
10028          { ac_try='test -s conftest$ac_exeext'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; }; then
10034
10035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10036 }'`
10037 # Check for a 64-bit object if we didn't find anything.
10038 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; }
10039 }'`; fi
10040 else
10041   echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 fi
10045 rm -f conftest.err conftest.$ac_objext \
10046       conftest$ac_exeext conftest.$ac_ext
10047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10048
10049         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10050         # Warning - without using the other run time loading flags,
10051         # -berok will link without error, but may produce a broken library.
10052         no_undefined_flag_CXX=' ${wl}-bernotok'
10053         allow_undefined_flag_CXX=' ${wl}-berok'
10054         # Exported symbols can be pulled into shared objects from archives
10055         whole_archive_flag_spec_CXX='$convenience'
10056         archive_cmds_need_lc_CXX=yes
10057         # This is similar to how AIX traditionally builds its shared libraries.
10058         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'
10059       fi
10060     fi
10061     ;;
10062
10063   beos*)
10064     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10065       allow_undefined_flag_CXX=unsupported
10066       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10067       # support --undefined.  This deserves some investigation.  FIXME
10068       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069     else
10070       ld_shlibs_CXX=no
10071     fi
10072     ;;
10073
10074   chorus*)
10075     case $cc_basename in
10076       *)
10077         # FIXME: insert proper C++ library support
10078         ld_shlibs_CXX=no
10079         ;;
10080     esac
10081     ;;
10082
10083   cygwin* | mingw* | pw32*)
10084     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10085     # as there is no search path for DLLs.
10086     hardcode_libdir_flag_spec_CXX='-L$libdir'
10087     allow_undefined_flag_CXX=unsupported
10088     always_export_symbols_CXX=no
10089     enable_shared_with_static_runtimes_CXX=yes
10090
10091     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10092       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'
10093       # If the export-symbols file already is a .def file (1st line
10094       # is EXPORTS), use it as is; otherwise, prepend...
10095       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10096         cp $export_symbols $output_objdir/$soname.def;
10097       else
10098         echo EXPORTS > $output_objdir/$soname.def;
10099         cat $export_symbols >> $output_objdir/$soname.def;
10100       fi~
10101       $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'
10102     else
10103       ld_shlibs_CXX=no
10104     fi
10105   ;;
10106       darwin* | rhapsody*)
10107         case $host_os in
10108         rhapsody* | darwin1.[012])
10109          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10110          ;;
10111        *) # Darwin 1.3 on
10112          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10113            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10114          else
10115            case ${MACOSX_DEPLOYMENT_TARGET} in
10116              10.[012])
10117                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10118                ;;
10119              10.*)
10120                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10121                ;;
10122            esac
10123          fi
10124          ;;
10125         esac
10126       archive_cmds_need_lc_CXX=no
10127       hardcode_direct_CXX=no
10128       hardcode_automatic_CXX=yes
10129       hardcode_shlibpath_var_CXX=unsupported
10130       whole_archive_flag_spec_CXX=''
10131       link_all_deplibs_CXX=yes
10132
10133     if test "$GXX" = yes ; then
10134       lt_int_apple_cc_single_mod=no
10135       output_verbose_link_cmd='echo'
10136       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10137        lt_int_apple_cc_single_mod=yes
10138       fi
10139       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10140        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10141       else
10142           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'
10143         fi
10144         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10145         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10146           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10147             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}'
10148           else
10149             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}'
10150           fi
10151             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}'
10152       else
10153       case $cc_basename in
10154         xlc*)
10155          output_verbose_link_cmd='echo'
10156           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'
10157           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10158           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10159           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}'
10160           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}'
10161           ;;
10162        *)
10163          ld_shlibs_CXX=no
10164           ;;
10165       esac
10166       fi
10167         ;;
10168
10169   dgux*)
10170     case $cc_basename in
10171       ec++*)
10172         # FIXME: insert proper C++ library support
10173         ld_shlibs_CXX=no
10174         ;;
10175       ghcx*)
10176         # Green Hills C++ Compiler
10177         # FIXME: insert proper C++ library support
10178         ld_shlibs_CXX=no
10179         ;;
10180       *)
10181         # FIXME: insert proper C++ library support
10182         ld_shlibs_CXX=no
10183         ;;
10184     esac
10185     ;;
10186   freebsd[12]*)
10187     # C++ shared libraries reported to be fairly broken before switch to ELF
10188     ld_shlibs_CXX=no
10189     ;;
10190   freebsd-elf*)
10191     archive_cmds_need_lc_CXX=no
10192     ;;
10193   freebsd* | kfreebsd*-gnu | dragonfly*)
10194     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10195     # conventions
10196     ld_shlibs_CXX=yes
10197     ;;
10198   gnu*)
10199     ;;
10200   hpux9*)
10201     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10202     hardcode_libdir_separator_CXX=:
10203     export_dynamic_flag_spec_CXX='${wl}-E'
10204     hardcode_direct_CXX=yes
10205     hardcode_minus_L_CXX=yes # Not in the search PATH,
10206                                 # but as the default
10207                                 # location of the library.
10208
10209     case $cc_basename in
10210     CC*)
10211       # FIXME: insert proper C++ library support
10212       ld_shlibs_CXX=no
10213       ;;
10214     aCC*)
10215       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'
10216       # Commands to make compiler produce verbose output that lists
10217       # what "hidden" libraries, object files and flags are used when
10218       # linking a shared library.
10219       #
10220       # There doesn't appear to be a way to prevent this compiler from
10221       # explicitly linking system object files so we need to strip them
10222       # from the output so that they don't get included in the library
10223       # dependencies.
10224       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'
10225       ;;
10226     *)
10227       if test "$GXX" = yes; then
10228         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'
10229       else
10230         # FIXME: insert proper C++ library support
10231         ld_shlibs_CXX=no
10232       fi
10233       ;;
10234     esac
10235     ;;
10236   hpux10*|hpux11*)
10237     if test $with_gnu_ld = no; then
10238       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10239       hardcode_libdir_separator_CXX=:
10240
10241       case $host_cpu in
10242       hppa*64*|ia64*)
10243         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10244         ;;
10245       *)
10246         export_dynamic_flag_spec_CXX='${wl}-E'
10247         ;;
10248       esac
10249     fi
10250     case $host_cpu in
10251     hppa*64*|ia64*)
10252       hardcode_direct_CXX=no
10253       hardcode_shlibpath_var_CXX=no
10254       ;;
10255     *)
10256       hardcode_direct_CXX=yes
10257       hardcode_minus_L_CXX=yes # Not in the search PATH,
10258                                               # but as the default
10259                                               # location of the library.
10260       ;;
10261     esac
10262
10263     case $cc_basename in
10264       CC*)
10265         # FIXME: insert proper C++ library support
10266         ld_shlibs_CXX=no
10267         ;;
10268       aCC*)
10269         case $host_cpu in
10270         hppa*64*)
10271           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10272           ;;
10273         ia64*)
10274           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10275           ;;
10276         *)
10277           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10278           ;;
10279         esac
10280         # Commands to make compiler produce verbose output that lists
10281         # what "hidden" libraries, object files and flags are used when
10282         # linking a shared library.
10283         #
10284         # There doesn't appear to be a way to prevent this compiler from
10285         # explicitly linking system object files so we need to strip them
10286         # from the output so that they don't get included in the library
10287         # dependencies.
10288         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'
10289         ;;
10290       *)
10291         if test "$GXX" = yes; then
10292           if test $with_gnu_ld = no; then
10293             case $host_cpu in
10294             hppa*64*)
10295               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10296               ;;
10297             ia64*)
10298               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10299               ;;
10300             *)
10301               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'
10302               ;;
10303             esac
10304           fi
10305         else
10306           # FIXME: insert proper C++ library support
10307           ld_shlibs_CXX=no
10308         fi
10309         ;;
10310     esac
10311     ;;
10312   interix3*)
10313     hardcode_direct_CXX=no
10314     hardcode_shlibpath_var_CXX=no
10315     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10316     export_dynamic_flag_spec_CXX='${wl}-E'
10317     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10318     # Instead, shared libraries are loaded at an image base (0x10000000 by
10319     # default) and relocated if they conflict, which is a slow very memory
10320     # consuming and fragmenting process.  To avoid this, we pick a random,
10321     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10322     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10323     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'
10324     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'
10325     ;;
10326   irix5* | irix6*)
10327     case $cc_basename in
10328       CC*)
10329         # SGI C++
10330         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'
10331
10332         # Archives containing C++ object files must be created using
10333         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10334         # necessary to make sure instantiated templates are included
10335         # in the archive.
10336         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10337         ;;
10338       *)
10339         if test "$GXX" = yes; then
10340           if test "$with_gnu_ld" = no; then
10341             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'
10342           else
10343             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'
10344           fi
10345         fi
10346         link_all_deplibs_CXX=yes
10347         ;;
10348     esac
10349     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10350     hardcode_libdir_separator_CXX=:
10351     ;;
10352   linux*)
10353     case $cc_basename in
10354       KCC*)
10355         # Kuck and Associates, Inc. (KAI) C++ Compiler
10356
10357         # KCC will only create a shared library if the output file
10358         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10359         # to its proper name (with version) after linking.
10360         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'
10361         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'
10362         # Commands to make compiler produce verbose output that lists
10363         # what "hidden" libraries, object files and flags are used when
10364         # linking a shared library.
10365         #
10366         # There doesn't appear to be a way to prevent this compiler from
10367         # explicitly linking system object files so we need to strip them
10368         # from the output so that they don't get included in the library
10369         # dependencies.
10370         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'
10371
10372         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10373         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10374
10375         # Archives containing C++ object files must be created using
10376         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10377         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10378         ;;
10379       icpc*)
10380         # Intel C++
10381         with_gnu_ld=yes
10382         # version 8.0 and above of icpc choke on multiply defined symbols
10383         # if we add $predep_objects and $postdep_objects, however 7.1 and
10384         # earlier do not add the objects themselves.
10385         case `$CC -V 2>&1` in
10386         *"Version 7."*)
10387           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10388           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'
10389           ;;
10390         *)  # Version 8.0 or newer
10391           tmp_idyn=
10392           case $host_cpu in
10393             ia64*) tmp_idyn=' -i_dynamic';;
10394           esac
10395           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10396           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'
10397           ;;
10398         esac
10399         archive_cmds_need_lc_CXX=no
10400         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10401         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10402         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10403         ;;
10404       pgCC*)
10405         # Portland Group C++ compiler
10406         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10407         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'
10408
10409         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10410         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10411         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'
10412         ;;
10413       cxx*)
10414         # Compaq C++
10415         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416         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'
10417
10418         runpath_var=LD_RUN_PATH
10419         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10420         hardcode_libdir_separator_CXX=:
10421
10422         # Commands to make compiler produce verbose output that lists
10423         # what "hidden" libraries, object files and flags are used when
10424         # linking a shared library.
10425         #
10426         # There doesn't appear to be a way to prevent this compiler from
10427         # explicitly linking system object files so we need to strip them
10428         # from the output so that they don't get included in the library
10429         # dependencies.
10430         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'
10431         ;;
10432     esac
10433     ;;
10434   lynxos*)
10435     # FIXME: insert proper C++ library support
10436     ld_shlibs_CXX=no
10437     ;;
10438   m88k*)
10439     # FIXME: insert proper C++ library support
10440     ld_shlibs_CXX=no
10441     ;;
10442   mvs*)
10443     case $cc_basename in
10444       cxx*)
10445         # FIXME: insert proper C++ library support
10446         ld_shlibs_CXX=no
10447         ;;
10448       *)
10449         # FIXME: insert proper C++ library support
10450         ld_shlibs_CXX=no
10451         ;;
10452     esac
10453     ;;
10454   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10455     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10456       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10457       wlarc=
10458       hardcode_libdir_flag_spec_CXX='-R$libdir'
10459       hardcode_direct_CXX=yes
10460       hardcode_shlibpath_var_CXX=no
10461     fi
10462     # Workaround some broken pre-1.5 toolchains
10463     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10464     ;;
10465   openbsd2*)
10466     # C++ shared libraries are fairly broken
10467     ld_shlibs_CXX=no
10468     ;;
10469   openbsd*)
10470     hardcode_direct_CXX=yes
10471     hardcode_shlibpath_var_CXX=no
10472     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10473     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10474     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10475       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10476       export_dynamic_flag_spec_CXX='${wl}-E'
10477       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10478     fi
10479     output_verbose_link_cmd='echo'
10480     ;;
10481   osf3*)
10482     case $cc_basename in
10483       KCC*)
10484         # Kuck and Associates, Inc. (KAI) C++ Compiler
10485
10486         # KCC will only create a shared library if the output file
10487         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10488         # to its proper name (with version) after linking.
10489         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'
10490
10491         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10492         hardcode_libdir_separator_CXX=:
10493
10494         # Archives containing C++ object files must be created using
10495         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10496         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10497
10498         ;;
10499       RCC*)
10500         # Rational C++ 2.4.1
10501         # FIXME: insert proper C++ library support
10502         ld_shlibs_CXX=no
10503         ;;
10504       cxx*)
10505         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10506         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'
10507
10508         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10509         hardcode_libdir_separator_CXX=:
10510
10511         # Commands to make compiler produce verbose output that lists
10512         # what "hidden" libraries, object files and flags are used when
10513         # linking a shared library.
10514         #
10515         # There doesn't appear to be a way to prevent this compiler from
10516         # explicitly linking system object files so we need to strip them
10517         # from the output so that they don't get included in the library
10518         # dependencies.
10519         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'
10520         ;;
10521       *)
10522         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10523           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10524           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'
10525
10526           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10527           hardcode_libdir_separator_CXX=:
10528
10529           # Commands to make compiler produce verbose output that lists
10530           # what "hidden" libraries, object files and flags are used when
10531           # linking a shared library.
10532           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10533
10534         else
10535           # FIXME: insert proper C++ library support
10536           ld_shlibs_CXX=no
10537         fi
10538         ;;
10539     esac
10540     ;;
10541   osf4* | osf5*)
10542     case $cc_basename in
10543       KCC*)
10544         # Kuck and Associates, Inc. (KAI) C++ Compiler
10545
10546         # KCC will only create a shared library if the output file
10547         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10548         # to its proper name (with version) after linking.
10549         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'
10550
10551         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10552         hardcode_libdir_separator_CXX=:
10553
10554         # Archives containing C++ object files must be created using
10555         # the KAI C++ compiler.
10556         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10557         ;;
10558       RCC*)
10559         # Rational C++ 2.4.1
10560         # FIXME: insert proper C++ library support
10561         ld_shlibs_CXX=no
10562         ;;
10563       cxx*)
10564         allow_undefined_flag_CXX=' -expect_unresolved \*'
10565         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'
10566         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10567           echo "-hidden">> $lib.exp~
10568           $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~
10569           $rm $lib.exp'
10570
10571         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10572         hardcode_libdir_separator_CXX=:
10573
10574         # Commands to make compiler produce verbose output that lists
10575         # what "hidden" libraries, object files and flags are used when
10576         # linking a shared library.
10577         #
10578         # There doesn't appear to be a way to prevent this compiler from
10579         # explicitly linking system object files so we need to strip them
10580         # from the output so that they don't get included in the library
10581         # dependencies.
10582         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'
10583         ;;
10584       *)
10585         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10586           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10587          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'
10588
10589           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10590           hardcode_libdir_separator_CXX=:
10591
10592           # Commands to make compiler produce verbose output that lists
10593           # what "hidden" libraries, object files and flags are used when
10594           # linking a shared library.
10595           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10596
10597         else
10598           # FIXME: insert proper C++ library support
10599           ld_shlibs_CXX=no
10600         fi
10601         ;;
10602     esac
10603     ;;
10604   psos*)
10605     # FIXME: insert proper C++ library support
10606     ld_shlibs_CXX=no
10607     ;;
10608   sunos4*)
10609     case $cc_basename in
10610       CC*)
10611         # Sun C++ 4.x
10612         # FIXME: insert proper C++ library support
10613         ld_shlibs_CXX=no
10614         ;;
10615       lcc*)
10616         # Lucid
10617         # FIXME: insert proper C++ library support
10618         ld_shlibs_CXX=no
10619         ;;
10620       *)
10621         # FIXME: insert proper C++ library support
10622         ld_shlibs_CXX=no
10623         ;;
10624     esac
10625     ;;
10626   solaris*)
10627     case $cc_basename in
10628       CC*)
10629         # Sun C++ 4.2, 5.x and Centerline C++
10630         archive_cmds_need_lc_CXX=yes
10631         no_undefined_flag_CXX=' -zdefs'
10632         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10633         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10634         $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'
10635
10636         hardcode_libdir_flag_spec_CXX='-R$libdir'
10637         hardcode_shlibpath_var_CXX=no
10638         case $host_os in
10639           solaris2.[0-5] | solaris2.[0-5].*) ;;
10640           *)
10641             # The C++ compiler is used as linker so we must use $wl
10642             # flag to pass the commands to the underlying system
10643             # linker. We must also pass each convience library through
10644             # to the system linker between allextract/defaultextract.
10645             # The C++ compiler will combine linker options so we
10646             # cannot just pass the convience library names through
10647             # without $wl.
10648             # Supported since Solaris 2.6 (maybe 2.5.1?)
10649             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'
10650             ;;
10651         esac
10652         link_all_deplibs_CXX=yes
10653
10654         output_verbose_link_cmd='echo'
10655
10656         # Archives containing C++ object files must be created using
10657         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10658         # necessary to make sure instantiated templates are included
10659         # in the archive.
10660         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10661         ;;
10662       gcx*)
10663         # Green Hills C++ Compiler
10664         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10665
10666         # The C++ compiler must be used to create the archive.
10667         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10668         ;;
10669       *)
10670         # GNU C++ compiler with Solaris linker
10671         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10672           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10673           if $CC --version | grep -v '^2\.7' > /dev/null; then
10674             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10675             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10676                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10677
10678             # Commands to make compiler produce verbose output that lists
10679             # what "hidden" libraries, object files and flags are used when
10680             # linking a shared library.
10681             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10682           else
10683             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10684             # platform.
10685             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10686             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10687                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10688
10689             # Commands to make compiler produce verbose output that lists
10690             # what "hidden" libraries, object files and flags are used when
10691             # linking a shared library.
10692             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10693           fi
10694
10695           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10696         fi
10697         ;;
10698     esac
10699     ;;
10700   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10701     no_undefined_flag_CXX='${wl}-z,text'
10702     archive_cmds_need_lc_CXX=no
10703     hardcode_shlibpath_var_CXX=no
10704     runpath_var='LD_RUN_PATH'
10705
10706     case $cc_basename in
10707       CC*)
10708         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10710         ;;
10711       *)
10712         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10713         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10714         ;;
10715     esac
10716     ;;
10717   sysv5* | sco3.2v5* | sco5v6*)
10718     # Note: We can NOT use -z defs as we might desire, because we do not
10719     # link with -lc, and that would cause any symbols used from libc to
10720     # always be unresolved, which means just about no library would
10721     # ever link correctly.  If we're not using GNU ld we use -z text
10722     # though, which does catch some bad symbols but isn't as heavy-handed
10723     # as -z defs.
10724     # For security reasons, it is highly recommended that you always
10725     # use absolute paths for naming shared libraries, and exclude the
10726     # DT_RUNPATH tag from executables and libraries.  But doing so
10727     # requires that you compile everything twice, which is a pain.
10728     # So that behaviour is only enabled if SCOABSPATH is set to a
10729     # non-empty value in the environment.  Most likely only useful for
10730     # creating official distributions of packages.
10731     # This is a hack until libtool officially supports absolute path
10732     # names for shared libraries.
10733     no_undefined_flag_CXX='${wl}-z,text'
10734     allow_undefined_flag_CXX='${wl}-z,nodefs'
10735     archive_cmds_need_lc_CXX=no
10736     hardcode_shlibpath_var_CXX=no
10737     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10738     hardcode_libdir_separator_CXX=':'
10739     link_all_deplibs_CXX=yes
10740     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10741     runpath_var='LD_RUN_PATH'
10742
10743     case $cc_basename in
10744       CC*)
10745         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10746         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10747         ;;
10748       *)
10749         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10750         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10751         ;;
10752     esac
10753     ;;
10754   tandem*)
10755     case $cc_basename in
10756       NCC*)
10757         # NonStop-UX NCC 3.20
10758         # FIXME: insert proper C++ library support
10759         ld_shlibs_CXX=no
10760         ;;
10761       *)
10762         # FIXME: insert proper C++ library support
10763         ld_shlibs_CXX=no
10764         ;;
10765     esac
10766     ;;
10767   vxworks*)
10768     # FIXME: insert proper C++ library support
10769     ld_shlibs_CXX=no
10770     ;;
10771   *)
10772     # FIXME: insert proper C++ library support
10773     ld_shlibs_CXX=no
10774     ;;
10775 esac
10776 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10777 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10778 test "$ld_shlibs_CXX" = no && can_build_shared=no
10779
10780 GCC_CXX="$GXX"
10781 LD_CXX="$LD"
10782
10783
10784 cat > conftest.$ac_ext <<EOF
10785 class Foo
10786 {
10787 public:
10788   Foo (void) { a = 0; }
10789 private:
10790   int a;
10791 };
10792 EOF
10793
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795   (eval $ac_compile) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; then
10799   # Parse the compiler output and extract the necessary
10800   # objects, libraries and library flags.
10801
10802   # Sentinel used to keep track of whether or not we are before
10803   # the conftest object file.
10804   pre_test_object_deps_done=no
10805
10806   # The `*' in the case matches for architectures that use `case' in
10807   # $output_verbose_cmd can trigger glob expansion during the loop
10808   # eval without this substitution.
10809   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10810
10811   for p in `eval $output_verbose_link_cmd`; do
10812     case $p in
10813
10814     -L* | -R* | -l*)
10815        # Some compilers place space between "-{L,R}" and the path.
10816        # Remove the space.
10817        if test $p = "-L" \
10818           || test $p = "-R"; then
10819          prev=$p
10820          continue
10821        else
10822          prev=
10823        fi
10824
10825        if test "$pre_test_object_deps_done" = no; then
10826          case $p in
10827          -L* | -R*)
10828            # Internal compiler library paths should come after those
10829            # provided the user.  The postdeps already come after the
10830            # user supplied libs so there is no need to process them.
10831            if test -z "$compiler_lib_search_path_CXX"; then
10832              compiler_lib_search_path_CXX="${prev}${p}"
10833            else
10834              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10835            fi
10836            ;;
10837          # The "-l" case would never come before the object being
10838          # linked, so don't bother handling this case.
10839          esac
10840        else
10841          if test -z "$postdeps_CXX"; then
10842            postdeps_CXX="${prev}${p}"
10843          else
10844            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10845          fi
10846        fi
10847        ;;
10848
10849     *.$objext)
10850        # This assumes that the test object file only shows up
10851        # once in the compiler output.
10852        if test "$p" = "conftest.$objext"; then
10853          pre_test_object_deps_done=yes
10854          continue
10855        fi
10856
10857        if test "$pre_test_object_deps_done" = no; then
10858          if test -z "$predep_objects_CXX"; then
10859            predep_objects_CXX="$p"
10860          else
10861            predep_objects_CXX="$predep_objects_CXX $p"
10862          fi
10863        else
10864          if test -z "$postdep_objects_CXX"; then
10865            postdep_objects_CXX="$p"
10866          else
10867            postdep_objects_CXX="$postdep_objects_CXX $p"
10868          fi
10869        fi
10870        ;;
10871
10872     *) ;; # Ignore the rest.
10873
10874     esac
10875   done
10876
10877   # Clean up.
10878   rm -f a.out a.exe
10879 else
10880   echo "libtool.m4: error: problem compiling CXX test program"
10881 fi
10882
10883 $rm -f confest.$objext
10884
10885 # PORTME: override above test on systems where it is broken
10886 case $host_os in
10887 interix3*)
10888   # Interix 3.5 installs completely hosed .la files for C++, so rather than
10889   # hack all around it, let's just trust "g++" to DTRT.
10890   predep_objects_CXX=
10891   postdep_objects_CXX=
10892   postdeps_CXX=
10893   ;;
10894
10895 solaris*)
10896   case $cc_basename in
10897   CC*)
10898     # Adding this requires a known-good setup of shared libraries for
10899     # Sun compiler versions before 5.6, else PIC objects from an old
10900     # archive will be linked into the output, leading to subtle bugs.
10901     postdeps_CXX='-lCstd -lCrun'
10902     ;;
10903   esac
10904   ;;
10905 esac
10906
10907
10908 case " $postdeps_CXX " in
10909 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10910 esac
10911
10912 lt_prog_compiler_wl_CXX=
10913 lt_prog_compiler_pic_CXX=
10914 lt_prog_compiler_static_CXX=
10915
10916 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10917 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10918
10919   # C++ specific cases for pic, static, wl, etc.
10920   if test "$GXX" = yes; then
10921     lt_prog_compiler_wl_CXX='-Wl,'
10922     lt_prog_compiler_static_CXX='-static'
10923
10924     case $host_os in
10925     aix*)
10926       # All AIX code is PIC.
10927       if test "$host_cpu" = ia64; then
10928         # AIX 5 now supports IA64 processor
10929         lt_prog_compiler_static_CXX='-Bstatic'
10930       fi
10931       ;;
10932     amigaos*)
10933       # FIXME: we need at least 68020 code to build shared libraries, but
10934       # adding the `-m68020' flag to GCC prevents building anything better,
10935       # like `-m68040'.
10936       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10937       ;;
10938     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10939       # PIC is the default for these OSes.
10940       ;;
10941     mingw* | os2* | pw32*)
10942       # This hack is so that the source file can tell whether it is being
10943       # built for inclusion in a dll (and should export symbols for example).
10944       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10945       ;;
10946     darwin* | rhapsody*)
10947       # PIC is the default on this platform
10948       # Common symbols not allowed in MH_DYLIB files
10949       lt_prog_compiler_pic_CXX='-fno-common'
10950       ;;
10951     *djgpp*)
10952       # DJGPP does not support shared libraries at all
10953       lt_prog_compiler_pic_CXX=
10954       ;;
10955     interix3*)
10956       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10957       # Instead, we relocate shared libraries at runtime.
10958       ;;
10959     sysv4*MP*)
10960       if test -d /usr/nec; then
10961         lt_prog_compiler_pic_CXX=-Kconform_pic
10962       fi
10963       ;;
10964     hpux*)
10965       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10966       # not for PA HP-UX.
10967       case $host_cpu in
10968       hppa*64*|ia64*)
10969         ;;
10970       *)
10971         lt_prog_compiler_pic_CXX='-fPIC'
10972         ;;
10973       esac
10974       ;;
10975     *)
10976       lt_prog_compiler_pic_CXX='-fPIC'
10977       ;;
10978     esac
10979   else
10980     case $host_os in
10981       aix4* | aix5*)
10982         # All AIX code is PIC.
10983         if test "$host_cpu" = ia64; then
10984           # AIX 5 now supports IA64 processor
10985           lt_prog_compiler_static_CXX='-Bstatic'
10986         else
10987           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10988         fi
10989         ;;
10990       chorus*)
10991         case $cc_basename in
10992         cxch68*)
10993           # Green Hills C++ Compiler
10994           # _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"
10995           ;;
10996         esac
10997         ;;
10998        darwin*)
10999          # PIC is the default on this platform
11000          # Common symbols not allowed in MH_DYLIB files
11001          case $cc_basename in
11002            xlc*)
11003            lt_prog_compiler_pic_CXX='-qnocommon'
11004            lt_prog_compiler_wl_CXX='-Wl,'
11005            ;;
11006          esac
11007        ;;
11008       dgux*)
11009         case $cc_basename in
11010           ec++*)
11011             lt_prog_compiler_pic_CXX='-KPIC'
11012             ;;
11013           ghcx*)
11014             # Green Hills C++ Compiler
11015             lt_prog_compiler_pic_CXX='-pic'
11016             ;;
11017           *)
11018             ;;
11019         esac
11020         ;;
11021       freebsd* | kfreebsd*-gnu | dragonfly*)
11022         # FreeBSD uses GNU C++
11023         ;;
11024       hpux9* | hpux10* | hpux11*)
11025         case $cc_basename in
11026           CC*)
11027             lt_prog_compiler_wl_CXX='-Wl,'
11028             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11029             if test "$host_cpu" != ia64; then
11030               lt_prog_compiler_pic_CXX='+Z'
11031             fi
11032             ;;
11033           aCC*)
11034             lt_prog_compiler_wl_CXX='-Wl,'
11035             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11036             case $host_cpu in
11037             hppa*64*|ia64*)
11038               # +Z the default
11039               ;;
11040             *)
11041               lt_prog_compiler_pic_CXX='+Z'
11042               ;;
11043             esac
11044             ;;
11045           *)
11046             ;;
11047         esac
11048         ;;
11049       interix*)
11050         # This is c89, which is MS Visual C++ (no shared libs)
11051         # Anyone wants to do a port?
11052         ;;
11053       irix5* | irix6* | nonstopux*)
11054         case $cc_basename in
11055           CC*)
11056             lt_prog_compiler_wl_CXX='-Wl,'
11057             lt_prog_compiler_static_CXX='-non_shared'
11058             # CC pic flag -KPIC is the default.
11059             ;;
11060           *)
11061             ;;
11062         esac
11063         ;;
11064       linux*)
11065         case $cc_basename in
11066           KCC*)
11067             # KAI C++ Compiler
11068             lt_prog_compiler_wl_CXX='--backend -Wl,'
11069             lt_prog_compiler_pic_CXX='-fPIC'
11070             ;;
11071           icpc* | ecpc*)
11072             # Intel C++
11073             lt_prog_compiler_wl_CXX='-Wl,'
11074             lt_prog_compiler_pic_CXX='-KPIC'
11075             lt_prog_compiler_static_CXX='-static'
11076             ;;
11077           pgCC*)
11078             # Portland Group C++ compiler.
11079             lt_prog_compiler_wl_CXX='-Wl,'
11080             lt_prog_compiler_pic_CXX='-fpic'
11081             lt_prog_compiler_static_CXX='-Bstatic'
11082             ;;
11083           cxx*)
11084             # Compaq C++
11085             # Make sure the PIC flag is empty.  It appears that all Alpha
11086             # Linux and Compaq Tru64 Unix objects are PIC.
11087             lt_prog_compiler_pic_CXX=
11088             lt_prog_compiler_static_CXX='-non_shared'
11089             ;;
11090           *)
11091             ;;
11092         esac
11093         ;;
11094       lynxos*)
11095         ;;
11096       m88k*)
11097         ;;
11098       mvs*)
11099         case $cc_basename in
11100           cxx*)
11101             lt_prog_compiler_pic_CXX='-W c,exportall'
11102             ;;
11103           *)
11104             ;;
11105         esac
11106         ;;
11107       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11108         ;;
11109       osf3* | osf4* | osf5*)
11110         case $cc_basename in
11111           KCC*)
11112             lt_prog_compiler_wl_CXX='--backend -Wl,'
11113             ;;
11114           RCC*)
11115             # Rational C++ 2.4.1
11116             lt_prog_compiler_pic_CXX='-pic'
11117             ;;
11118           cxx*)
11119             # Digital/Compaq C++
11120             lt_prog_compiler_wl_CXX='-Wl,'
11121             # Make sure the PIC flag is empty.  It appears that all Alpha
11122             # Linux and Compaq Tru64 Unix objects are PIC.
11123             lt_prog_compiler_pic_CXX=
11124             lt_prog_compiler_static_CXX='-non_shared'
11125             ;;
11126           *)
11127             ;;
11128         esac
11129         ;;
11130       psos*)
11131         ;;
11132       solaris*)
11133         case $cc_basename in
11134           CC*)
11135             # Sun C++ 4.2, 5.x and Centerline C++
11136             lt_prog_compiler_pic_CXX='-KPIC'
11137             lt_prog_compiler_static_CXX='-Bstatic'
11138             lt_prog_compiler_wl_CXX='-Qoption ld '
11139             ;;
11140           gcx*)
11141             # Green Hills C++ Compiler
11142             lt_prog_compiler_pic_CXX='-PIC'
11143             ;;
11144           *)
11145             ;;
11146         esac
11147         ;;
11148       sunos4*)
11149         case $cc_basename in
11150           CC*)
11151             # Sun C++ 4.x
11152             lt_prog_compiler_pic_CXX='-pic'
11153             lt_prog_compiler_static_CXX='-Bstatic'
11154             ;;
11155           lcc*)
11156             # Lucid
11157             lt_prog_compiler_pic_CXX='-pic'
11158             ;;
11159           *)
11160             ;;
11161         esac
11162         ;;
11163       tandem*)
11164         case $cc_basename in
11165           NCC*)
11166             # NonStop-UX NCC 3.20
11167             lt_prog_compiler_pic_CXX='-KPIC'
11168             ;;
11169           *)
11170             ;;
11171         esac
11172         ;;
11173       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11174         case $cc_basename in
11175           CC*)
11176             lt_prog_compiler_wl_CXX='-Wl,'
11177             lt_prog_compiler_pic_CXX='-KPIC'
11178             lt_prog_compiler_static_CXX='-Bstatic'
11179             ;;
11180         esac
11181         ;;
11182       vxworks*)
11183         ;;
11184       *)
11185         lt_prog_compiler_can_build_shared_CXX=no
11186         ;;
11187     esac
11188   fi
11189
11190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11191 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11192
11193 #
11194 # Check to make sure the PIC flag actually works.
11195 #
11196 if test -n "$lt_prog_compiler_pic_CXX"; then
11197
11198 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11200 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   lt_prog_compiler_pic_works_CXX=no
11204   ac_outfile=conftest.$ac_objext
11205    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11206    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11207    # Insert the option either (1) after the last *FLAGS variable, or
11208    # (2) before a word containing "conftest.", or (3) at the end.
11209    # Note that $ac_compile itself does not contain backslashes and begins
11210    # with a dollar sign (not a hyphen), so the echo should work correctly.
11211    # The option is referenced via a variable to avoid confusing sed.
11212    lt_compile=`echo "$ac_compile" | $SED \
11213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11215    -e 's:$: $lt_compiler_flag:'`
11216    (eval echo "\"\$as_me:11216: $lt_compile\"" >&5)
11217    (eval "$lt_compile" 2>conftest.err)
11218    ac_status=$?
11219    cat conftest.err >&5
11220    echo "$as_me:11220: \$? = $ac_status" >&5
11221    if (exit $ac_status) && test -s "$ac_outfile"; then
11222      # The compiler can only warn and ignore the option if not recognized
11223      # So say no if there are warnings other than the usual output.
11224      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11225      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11226      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11227        lt_prog_compiler_pic_works_CXX=yes
11228      fi
11229    fi
11230    $rm conftest*
11231
11232 fi
11233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11234 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11235
11236 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11237     case $lt_prog_compiler_pic_CXX in
11238      "" | " "*) ;;
11239      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11240      esac
11241 else
11242     lt_prog_compiler_pic_CXX=
11243      lt_prog_compiler_can_build_shared_CXX=no
11244 fi
11245
11246 fi
11247 case $host_os in
11248   # For platforms which do not support PIC, -DPIC is meaningless:
11249   *djgpp*)
11250     lt_prog_compiler_pic_CXX=
11251     ;;
11252   *)
11253     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11254     ;;
11255 esac
11256
11257 #
11258 # Check to make sure the static flag actually works.
11259 #
11260 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11261 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11262 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11263 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   lt_prog_compiler_static_works_CXX=no
11267    save_LDFLAGS="$LDFLAGS"
11268    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11269    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11270    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11271      # The linker can only warn and ignore the option if not recognized
11272      # So say no if there are warnings
11273      if test -s conftest.err; then
11274        # Append any errors to the config.log.
11275        cat conftest.err 1>&5
11276        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11277        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11278        if diff conftest.exp conftest.er2 >/dev/null; then
11279          lt_prog_compiler_static_works_CXX=yes
11280        fi
11281      else
11282        lt_prog_compiler_static_works_CXX=yes
11283      fi
11284    fi
11285    $rm conftest*
11286    LDFLAGS="$save_LDFLAGS"
11287
11288 fi
11289 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11290 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11291
11292 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11293     :
11294 else
11295     lt_prog_compiler_static_CXX=
11296 fi
11297
11298
11299 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11300 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11301 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   lt_cv_prog_compiler_c_o_CXX=no
11305    $rm -r conftest 2>/dev/null
11306    mkdir conftest
11307    cd conftest
11308    mkdir out
11309    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11310
11311    lt_compiler_flag="-o out/conftest2.$ac_objext"
11312    # Insert the option either (1) after the last *FLAGS variable, or
11313    # (2) before a word containing "conftest.", or (3) at the end.
11314    # Note that $ac_compile itself does not contain backslashes and begins
11315    # with a dollar sign (not a hyphen), so the echo should work correctly.
11316    lt_compile=`echo "$ac_compile" | $SED \
11317    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11318    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11319    -e 's:$: $lt_compiler_flag:'`
11320    (eval echo "\"\$as_me:11320: $lt_compile\"" >&5)
11321    (eval "$lt_compile" 2>out/conftest.err)
11322    ac_status=$?
11323    cat out/conftest.err >&5
11324    echo "$as_me:11324: \$? = $ac_status" >&5
11325    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11326    then
11327      # The compiler can only warn and ignore the option if not recognized
11328      # So say no if there are warnings
11329      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11330      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11331      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11332        lt_cv_prog_compiler_c_o_CXX=yes
11333      fi
11334    fi
11335    chmod u+w . 2>&5
11336    $rm conftest*
11337    # SGI C++ compiler will create directory out/ii_files/ for
11338    # template instantiation
11339    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11340    $rm out/* && rmdir out
11341    cd ..
11342    rmdir conftest
11343    $rm conftest*
11344
11345 fi
11346 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11347 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11348
11349
11350 hard_links="nottested"
11351 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11352   # do not overwrite the value of need_locks provided by the user
11353   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11354 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11355   hard_links=yes
11356   $rm conftest*
11357   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11358   touch conftest.a
11359   ln conftest.a conftest.b 2>&5 || hard_links=no
11360   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11361   echo "$as_me:$LINENO: result: $hard_links" >&5
11362 echo "${ECHO_T}$hard_links" >&6
11363   if test "$hard_links" = no; then
11364     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11365 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11366     need_locks=warn
11367   fi
11368 else
11369   need_locks=no
11370 fi
11371
11372 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11374
11375   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11376   case $host_os in
11377   aix4* | aix5*)
11378     # If we're using GNU nm, then we don't want the "-C" option.
11379     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11380     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11381       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'
11382     else
11383       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'
11384     fi
11385     ;;
11386   pw32*)
11387     export_symbols_cmds_CXX="$ltdll_cmds"
11388   ;;
11389   cygwin* | mingw*)
11390     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'
11391   ;;
11392   kfreebsd*-gnu)
11393     link_all_deplibs_CXX=no
11394   ;;
11395   linux*)
11396     link_all_deplibs_CXX=no
11397   ;;
11398   *)
11399     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11400   ;;
11401   esac
11402
11403 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11404 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11405 test "$ld_shlibs_CXX" = no && can_build_shared=no
11406
11407 #
11408 # Do we need to explicitly link libc?
11409 #
11410 case "x$archive_cmds_need_lc_CXX" in
11411 x|xyes)
11412   # Assume -lc should be added
11413   archive_cmds_need_lc_CXX=yes
11414
11415   if test "$enable_shared" = yes && test "$GCC" = yes; then
11416     case $archive_cmds_CXX in
11417     *'~'*)
11418       # FIXME: we may have to deal with multi-command sequences.
11419       ;;
11420     '$CC '*)
11421       # Test whether the compiler implicitly links with -lc since on some
11422       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11423       # to ld, don't add -lc before -lgcc.
11424       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11425 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11426       $rm conftest*
11427       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11428
11429       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430   (eval $ac_compile) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } 2>conftest.err; then
11434         soname=conftest
11435         lib=conftest
11436         libobjs=conftest.$ac_objext
11437         deplibs=
11438         wl=$lt_prog_compiler_wl_CXX
11439         pic_flag=$lt_prog_compiler_pic_CXX
11440         compiler_flags=-v
11441         linker_flags=-v
11442         verstring=
11443         output_objdir=.
11444         libname=conftest
11445         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11446         allow_undefined_flag_CXX=
11447         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11448   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }
11452         then
11453           archive_cmds_need_lc_CXX=no
11454         else
11455           archive_cmds_need_lc_CXX=yes
11456         fi
11457         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11458       else
11459         cat conftest.err 1>&5
11460       fi
11461       $rm conftest*
11462       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11463 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11464       ;;
11465     esac
11466   fi
11467   ;;
11468 esac
11469
11470 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11471 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11472 library_names_spec=
11473 libname_spec='lib$name'
11474 soname_spec=
11475 shrext_cmds=".so"
11476 postinstall_cmds=
11477 postuninstall_cmds=
11478 finish_cmds=
11479 finish_eval=
11480 shlibpath_var=
11481 shlibpath_overrides_runpath=unknown
11482 version_type=none
11483 dynamic_linker="$host_os ld.so"
11484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11485 if test "$GCC" = yes; then
11486   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11487   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11488     # if the path contains ";" then we assume it to be the separator
11489     # otherwise default to the standard path separator (i.e. ":") - it is
11490     # assumed that no part of a normal pathname contains ";" but that should
11491     # okay in the real world where ";" in dirpaths is itself problematic.
11492     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11493   else
11494     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11495   fi
11496 else
11497   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11498 fi
11499 need_lib_prefix=unknown
11500 hardcode_into_libs=no
11501
11502 # when you set need_version to no, make sure it does not cause -set_version
11503 # flags to be left without arguments
11504 need_version=unknown
11505
11506 case $host_os in
11507 aix3*)
11508   version_type=linux
11509   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11510   shlibpath_var=LIBPATH
11511
11512   # AIX 3 has no versioning support, so we append a major version to the name.
11513   soname_spec='${libname}${release}${shared_ext}$major'
11514   ;;
11515
11516 aix4* | aix5*)
11517   version_type=linux
11518   need_lib_prefix=no
11519   need_version=no
11520   hardcode_into_libs=yes
11521   if test "$host_cpu" = ia64; then
11522     # AIX 5 supports IA64
11523     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11524     shlibpath_var=LD_LIBRARY_PATH
11525   else
11526     # With GCC up to 2.95.x, collect2 would create an import file
11527     # for dependence libraries.  The import file would start with
11528     # the line `#! .'.  This would cause the generated library to
11529     # depend on `.', always an invalid library.  This was fixed in
11530     # development snapshots of GCC prior to 3.0.
11531     case $host_os in
11532       aix4 | aix4.[01] | aix4.[01].*)
11533       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11534            echo ' yes '
11535            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11536         :
11537       else
11538         can_build_shared=no
11539       fi
11540       ;;
11541     esac
11542     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11543     # soname into executable. Probably we can add versioning support to
11544     # collect2, so additional links can be useful in future.
11545     if test "$aix_use_runtimelinking" = yes; then
11546       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11547       # instead of lib<name>.a to let people know that these are not
11548       # typical AIX shared libraries.
11549       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550     else
11551       # We preserve .a as extension for shared libraries through AIX4.2
11552       # and later when we are not doing run time linking.
11553       library_names_spec='${libname}${release}.a $libname.a'
11554       soname_spec='${libname}${release}${shared_ext}$major'
11555     fi
11556     shlibpath_var=LIBPATH
11557   fi
11558   ;;
11559
11560 amigaos*)
11561   library_names_spec='$libname.ixlibrary $libname.a'
11562   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11563   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'
11564   ;;
11565
11566 beos*)
11567   library_names_spec='${libname}${shared_ext}'
11568   dynamic_linker="$host_os ld.so"
11569   shlibpath_var=LIBRARY_PATH
11570   ;;
11571
11572 bsdi[45]*)
11573   version_type=linux
11574   need_version=no
11575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576   soname_spec='${libname}${release}${shared_ext}$major'
11577   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11578   shlibpath_var=LD_LIBRARY_PATH
11579   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11580   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11581   # the default ld.so.conf also contains /usr/contrib/lib and
11582   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11583   # libtool to hard-code these into programs
11584   ;;
11585
11586 cygwin* | mingw* | pw32*)
11587   version_type=windows
11588   shrext_cmds=".dll"
11589   need_version=no
11590   need_lib_prefix=no
11591
11592   case $GCC,$host_os in
11593   yes,cygwin* | yes,mingw* | yes,pw32*)
11594     library_names_spec='$libname.dll.a'
11595     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11596     postinstall_cmds='base_file=`basename \${file}`~
11597       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11598       dldir=$destdir/`dirname \$dlpath`~
11599       test -d \$dldir || mkdir -p \$dldir~
11600       $install_prog $dir/$dlname \$dldir/$dlname~
11601       chmod a+x \$dldir/$dlname'
11602     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11603       dlpath=$dir/\$dldll~
11604        $rm \$dlpath'
11605     shlibpath_overrides_runpath=yes
11606
11607     case $host_os in
11608     cygwin*)
11609       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11610       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11611       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11612       ;;
11613     mingw*)
11614       # MinGW DLLs use traditional 'lib' prefix
11615       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11616       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11617       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11618         # It is most probably a Windows format PATH printed by
11619         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11620         # path with ; separators, and with drive letters. We can handle the
11621         # drive letters (cygwin fileutils understands them), so leave them,
11622         # especially as we might pass files found there to a mingw objdump,
11623         # which wouldn't understand a cygwinified path. Ahh.
11624         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11625       else
11626         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11627       fi
11628       ;;
11629     pw32*)
11630       # pw32 DLLs use 'pw' prefix rather than 'lib'
11631       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11632       ;;
11633     esac
11634     ;;
11635
11636   *)
11637     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11638     ;;
11639   esac
11640   dynamic_linker='Win32 ld.exe'
11641   # FIXME: first we should search . and the directory the executable is in
11642   shlibpath_var=PATH
11643   ;;
11644
11645 darwin* | rhapsody*)
11646   dynamic_linker="$host_os dyld"
11647   version_type=darwin
11648   need_lib_prefix=no
11649   need_version=no
11650   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11651   soname_spec='${libname}${release}${major}$shared_ext'
11652   shlibpath_overrides_runpath=yes
11653   shlibpath_var=DYLD_LIBRARY_PATH
11654   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11655   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11656   if test "$GCC" = yes; then
11657     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"`
11658   else
11659     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11660   fi
11661   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11662   ;;
11663
11664 dgux*)
11665   version_type=linux
11666   need_lib_prefix=no
11667   need_version=no
11668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11669   soname_spec='${libname}${release}${shared_ext}$major'
11670   shlibpath_var=LD_LIBRARY_PATH
11671   ;;
11672
11673 freebsd1*)
11674   dynamic_linker=no
11675   ;;
11676
11677 kfreebsd*-gnu)
11678   version_type=linux
11679   need_lib_prefix=no
11680   need_version=no
11681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11682   soname_spec='${libname}${release}${shared_ext}$major'
11683   shlibpath_var=LD_LIBRARY_PATH
11684   shlibpath_overrides_runpath=no
11685   hardcode_into_libs=yes
11686   dynamic_linker='GNU ld.so'
11687   ;;
11688
11689 freebsd* | dragonfly*)
11690   # DragonFly does not have aout.  When/if they implement a new
11691   # versioning mechanism, adjust this.
11692   if test -x /usr/bin/objformat; then
11693     objformat=`/usr/bin/objformat`
11694   else
11695     case $host_os in
11696     freebsd[123]*) objformat=aout ;;
11697     *) objformat=elf ;;
11698     esac
11699   fi
11700   version_type=freebsd-$objformat
11701   case $version_type in
11702     freebsd-elf*)
11703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11704       need_version=no
11705       need_lib_prefix=no
11706       ;;
11707     freebsd-*)
11708       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11709       need_version=yes
11710       ;;
11711   esac
11712   shlibpath_var=LD_LIBRARY_PATH
11713   case $host_os in
11714   freebsd2*)
11715     shlibpath_overrides_runpath=yes
11716     ;;
11717   freebsd3.[01]* | freebsdelf3.[01]*)
11718     shlibpath_overrides_runpath=yes
11719     hardcode_into_libs=yes
11720     ;;
11721   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11722   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11723     shlibpath_overrides_runpath=no
11724     hardcode_into_libs=yes
11725     ;;
11726   freebsd*) # from 4.6 on
11727     shlibpath_overrides_runpath=yes
11728     hardcode_into_libs=yes
11729     ;;
11730   esac
11731   ;;
11732
11733 gnu*)
11734   version_type=linux
11735   need_lib_prefix=no
11736   need_version=no
11737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11738   soname_spec='${libname}${release}${shared_ext}$major'
11739   shlibpath_var=LD_LIBRARY_PATH
11740   hardcode_into_libs=yes
11741   ;;
11742
11743 hpux9* | hpux10* | hpux11*)
11744   # Give a soname corresponding to the major version so that dld.sl refuses to
11745   # link against other versions.
11746   version_type=sunos
11747   need_lib_prefix=no
11748   need_version=no
11749   case $host_cpu in
11750   ia64*)
11751     shrext_cmds='.so'
11752     hardcode_into_libs=yes
11753     dynamic_linker="$host_os dld.so"
11754     shlibpath_var=LD_LIBRARY_PATH
11755     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
11759       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11760     else
11761       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11762     fi
11763     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11764     ;;
11765    hppa*64*)
11766      shrext_cmds='.sl'
11767      hardcode_into_libs=yes
11768      dynamic_linker="$host_os dld.sl"
11769      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11770      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11771      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772      soname_spec='${libname}${release}${shared_ext}$major'
11773      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11774      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11775      ;;
11776    *)
11777     shrext_cmds='.sl'
11778     dynamic_linker="$host_os dld.sl"
11779     shlibpath_var=SHLIB_PATH
11780     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782     soname_spec='${libname}${release}${shared_ext}$major'
11783     ;;
11784   esac
11785   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11786   postinstall_cmds='chmod 555 $lib'
11787   ;;
11788
11789 interix3*)
11790   version_type=linux
11791   need_lib_prefix=no
11792   need_version=no
11793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11794   soname_spec='${libname}${release}${shared_ext}$major'
11795   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11796   shlibpath_var=LD_LIBRARY_PATH
11797   shlibpath_overrides_runpath=no
11798   hardcode_into_libs=yes
11799   ;;
11800
11801 irix5* | irix6* | nonstopux*)
11802   case $host_os in
11803     nonstopux*) version_type=nonstopux ;;
11804     *)
11805         if test "$lt_cv_prog_gnu_ld" = yes; then
11806                 version_type=linux
11807         else
11808                 version_type=irix
11809         fi ;;
11810   esac
11811   need_lib_prefix=no
11812   need_version=no
11813   soname_spec='${libname}${release}${shared_ext}$major'
11814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11815   case $host_os in
11816   irix5* | nonstopux*)
11817     libsuff= shlibsuff=
11818     ;;
11819   *)
11820     case $LD in # libtool.m4 will add one of these switches to LD
11821     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11822       libsuff= shlibsuff= libmagic=32-bit;;
11823     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11824       libsuff=32 shlibsuff=N32 libmagic=N32;;
11825     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11826       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11827     *) libsuff= shlibsuff= libmagic=never-match;;
11828     esac
11829     ;;
11830   esac
11831   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11832   shlibpath_overrides_runpath=no
11833   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11834   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11835   hardcode_into_libs=yes
11836   ;;
11837
11838 # No shared lib support for Linux oldld, aout, or coff.
11839 linux*oldld* | linux*aout* | linux*coff*)
11840   dynamic_linker=no
11841   ;;
11842
11843 # This must be Linux ELF.
11844 linux*)
11845   version_type=linux
11846   need_lib_prefix=no
11847   need_version=no
11848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849   soname_spec='${libname}${release}${shared_ext}$major'
11850   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11851   shlibpath_var=LD_LIBRARY_PATH
11852   shlibpath_overrides_runpath=no
11853   # This implies no fast_install, which is unacceptable.
11854   # Some rework will be needed to allow for fast_install
11855   # before this can be enabled.
11856   hardcode_into_libs=yes
11857
11858   # Append ld.so.conf contents to the search path
11859   if test -f /etc/ld.so.conf; then
11860     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' ' '`
11861     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11862   fi
11863
11864   # We used to test for /lib/ld.so.1 and disable shared libraries on
11865   # powerpc, because MkLinux only supported shared libraries with the
11866   # GNU dynamic linker.  Since this was broken with cross compilers,
11867   # most powerpc-linux boxes support dynamic linking these days and
11868   # people can always --disable-shared, the test was removed, and we
11869   # assume the GNU/Linux dynamic linker is in use.
11870   dynamic_linker='GNU/Linux ld.so'
11871   ;;
11872
11873 netbsdelf*-gnu)
11874   version_type=linux
11875   need_lib_prefix=no
11876   need_version=no
11877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11878   soname_spec='${libname}${release}${shared_ext}$major'
11879   shlibpath_var=LD_LIBRARY_PATH
11880   shlibpath_overrides_runpath=no
11881   hardcode_into_libs=yes
11882   dynamic_linker='NetBSD ld.elf_so'
11883   ;;
11884
11885 knetbsd*-gnu)
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=no
11893   hardcode_into_libs=yes
11894   dynamic_linker='GNU ld.so'
11895   ;;
11896
11897 netbsd*)
11898   version_type=sunos
11899   need_lib_prefix=no
11900   need_version=no
11901   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11903     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11904     dynamic_linker='NetBSD (a.out) ld.so'
11905   else
11906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11907     soname_spec='${libname}${release}${shared_ext}$major'
11908     dynamic_linker='NetBSD ld.elf_so'
11909   fi
11910   shlibpath_var=LD_LIBRARY_PATH
11911   shlibpath_overrides_runpath=yes
11912   hardcode_into_libs=yes
11913   ;;
11914
11915 newsos6)
11916   version_type=linux
11917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918   shlibpath_var=LD_LIBRARY_PATH
11919   shlibpath_overrides_runpath=yes
11920   ;;
11921
11922 nto-qnx*)
11923   version_type=linux
11924   need_lib_prefix=no
11925   need_version=no
11926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927   soname_spec='${libname}${release}${shared_ext}$major'
11928   shlibpath_var=LD_LIBRARY_PATH
11929   shlibpath_overrides_runpath=yes
11930   ;;
11931
11932 openbsd*)
11933   version_type=sunos
11934   sys_lib_dlsearch_path_spec="/usr/lib"
11935   need_lib_prefix=no
11936   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11937   case $host_os in
11938     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11939     *)                         need_version=no  ;;
11940   esac
11941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11942   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11943   shlibpath_var=LD_LIBRARY_PATH
11944   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11945     case $host_os in
11946       openbsd2.[89] | openbsd2.[89].*)
11947         shlibpath_overrides_runpath=no
11948         ;;
11949       *)
11950         shlibpath_overrides_runpath=yes
11951         ;;
11952       esac
11953   else
11954     shlibpath_overrides_runpath=yes
11955   fi
11956   ;;
11957
11958 os2*)
11959   libname_spec='$name'
11960   shrext_cmds=".dll"
11961   need_lib_prefix=no
11962   library_names_spec='$libname${shared_ext} $libname.a'
11963   dynamic_linker='OS/2 ld.exe'
11964   shlibpath_var=LIBPATH
11965   ;;
11966
11967 osf3* | osf4* | osf5*)
11968   version_type=osf
11969   need_lib_prefix=no
11970   need_version=no
11971   soname_spec='${libname}${release}${shared_ext}$major'
11972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11975   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11976   ;;
11977
11978 solaris*)
11979   version_type=linux
11980   need_lib_prefix=no
11981   need_version=no
11982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11983   soname_spec='${libname}${release}${shared_ext}$major'
11984   shlibpath_var=LD_LIBRARY_PATH
11985   shlibpath_overrides_runpath=yes
11986   hardcode_into_libs=yes
11987   # ldd complains unless libraries are executable
11988   postinstall_cmds='chmod +x $lib'
11989   ;;
11990
11991 sunos4*)
11992   version_type=sunos
11993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11994   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11995   shlibpath_var=LD_LIBRARY_PATH
11996   shlibpath_overrides_runpath=yes
11997   if test "$with_gnu_ld" = yes; then
11998     need_lib_prefix=no
11999   fi
12000   need_version=yes
12001   ;;
12002
12003 sysv4 | sysv4.3*)
12004   version_type=linux
12005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006   soname_spec='${libname}${release}${shared_ext}$major'
12007   shlibpath_var=LD_LIBRARY_PATH
12008   case $host_vendor in
12009     sni)
12010       shlibpath_overrides_runpath=no
12011       need_lib_prefix=no
12012       export_dynamic_flag_spec='${wl}-Blargedynsym'
12013       runpath_var=LD_RUN_PATH
12014       ;;
12015     siemens)
12016       need_lib_prefix=no
12017       ;;
12018     motorola)
12019       need_lib_prefix=no
12020       need_version=no
12021       shlibpath_overrides_runpath=no
12022       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12023       ;;
12024   esac
12025   ;;
12026
12027 sysv4*MP*)
12028   if test -d /usr/nec ;then
12029     version_type=linux
12030     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12031     soname_spec='$libname${shared_ext}.$major'
12032     shlibpath_var=LD_LIBRARY_PATH
12033   fi
12034   ;;
12035
12036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12037   version_type=freebsd-elf
12038   need_lib_prefix=no
12039   need_version=no
12040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12041   soname_spec='${libname}${release}${shared_ext}$major'
12042   shlibpath_var=LD_LIBRARY_PATH
12043   hardcode_into_libs=yes
12044   if test "$with_gnu_ld" = yes; then
12045     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12046     shlibpath_overrides_runpath=no
12047   else
12048     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12049     shlibpath_overrides_runpath=yes
12050     case $host_os in
12051       sco3.2v5*)
12052         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12053         ;;
12054     esac
12055   fi
12056   sys_lib_dlsearch_path_spec='/usr/lib'
12057   ;;
12058
12059 uts4*)
12060   version_type=linux
12061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062   soname_spec='${libname}${release}${shared_ext}$major'
12063   shlibpath_var=LD_LIBRARY_PATH
12064   ;;
12065
12066 *)
12067   dynamic_linker=no
12068   ;;
12069 esac
12070 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12071 echo "${ECHO_T}$dynamic_linker" >&6
12072 test "$dynamic_linker" = no && can_build_shared=no
12073
12074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12075 if test "$GCC" = yes; then
12076   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12077 fi
12078
12079 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12081 hardcode_action_CXX=
12082 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12083    test -n "$runpath_var_CXX" || \
12084    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12085
12086   # We can hardcode non-existant directories.
12087   if test "$hardcode_direct_CXX" != no &&
12088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089      # have to relink, otherwise we might link with an installed library
12090      # when we should be linking with a yet-to-be-installed one
12091      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12092      test "$hardcode_minus_L_CXX" != no; then
12093     # Linking always hardcodes the temporary library directory.
12094     hardcode_action_CXX=relink
12095   else
12096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097     hardcode_action_CXX=immediate
12098   fi
12099 else
12100   # We cannot hardcode anything, or else we can only hardcode existing
12101   # directories.
12102   hardcode_action_CXX=unsupported
12103 fi
12104 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12105 echo "${ECHO_T}$hardcode_action_CXX" >&6
12106
12107 if test "$hardcode_action_CXX" = relink; then
12108   # Fast installation is not supported
12109   enable_fast_install=no
12110 elif test "$shlibpath_overrides_runpath" = yes ||
12111      test "$enable_shared" = no; then
12112   # Fast installation is not necessary
12113   enable_fast_install=needless
12114 fi
12115
12116
12117 # The else clause should only fire when bootstrapping the
12118 # libtool distribution, otherwise you forgot to ship ltmain.sh
12119 # with your package, and you will get complaints that there are
12120 # no rules to generate ltmain.sh.
12121 if test -f "$ltmain"; then
12122   # See if we are running on zsh, and set the options which allow our commands through
12123   # without removal of \ escapes.
12124   if test -n "${ZSH_VERSION+set}" ; then
12125     setopt NO_GLOB_SUBST
12126   fi
12127   # Now quote all the things that may contain metacharacters while being
12128   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12129   # variables and quote the copies for generation of the libtool script.
12130   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12131     SED SHELL STRIP \
12132     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12133     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12134     deplibs_check_method reload_flag reload_cmds need_locks \
12135     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12136     lt_cv_sys_global_symbol_to_c_name_address \
12137     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12138     old_postinstall_cmds old_postuninstall_cmds \
12139     compiler_CXX \
12140     CC_CXX \
12141     LD_CXX \
12142     lt_prog_compiler_wl_CXX \
12143     lt_prog_compiler_pic_CXX \
12144     lt_prog_compiler_static_CXX \
12145     lt_prog_compiler_no_builtin_flag_CXX \
12146     export_dynamic_flag_spec_CXX \
12147     thread_safe_flag_spec_CXX \
12148     whole_archive_flag_spec_CXX \
12149     enable_shared_with_static_runtimes_CXX \
12150     old_archive_cmds_CXX \
12151     old_archive_from_new_cmds_CXX \
12152     predep_objects_CXX \
12153     postdep_objects_CXX \
12154     predeps_CXX \
12155     postdeps_CXX \
12156     compiler_lib_search_path_CXX \
12157     archive_cmds_CXX \
12158     archive_expsym_cmds_CXX \
12159     postinstall_cmds_CXX \
12160     postuninstall_cmds_CXX \
12161     old_archive_from_expsyms_cmds_CXX \
12162     allow_undefined_flag_CXX \
12163     no_undefined_flag_CXX \
12164     export_symbols_cmds_CXX \
12165     hardcode_libdir_flag_spec_CXX \
12166     hardcode_libdir_flag_spec_ld_CXX \
12167     hardcode_libdir_separator_CXX \
12168     hardcode_automatic_CXX \
12169     module_cmds_CXX \
12170     module_expsym_cmds_CXX \
12171     lt_cv_prog_compiler_c_o_CXX \
12172     exclude_expsyms_CXX \
12173     include_expsyms_CXX; do
12174
12175     case $var in
12176     old_archive_cmds_CXX | \
12177     old_archive_from_new_cmds_CXX | \
12178     archive_cmds_CXX | \
12179     archive_expsym_cmds_CXX | \
12180     module_cmds_CXX | \
12181     module_expsym_cmds_CXX | \
12182     old_archive_from_expsyms_cmds_CXX | \
12183     export_symbols_cmds_CXX | \
12184     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12185     postinstall_cmds | postuninstall_cmds | \
12186     old_postinstall_cmds | old_postuninstall_cmds | \
12187     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12188       # Double-quote double-evaled strings.
12189       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12190       ;;
12191     *)
12192       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12193       ;;
12194     esac
12195   done
12196
12197   case $lt_echo in
12198   *'\$0 --fallback-echo"')
12199     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12200     ;;
12201   esac
12202
12203 cfgfile="$ofile"
12204
12205   cat <<__EOF__ >> "$cfgfile"
12206 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12207
12208 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12209
12210 # Shell to use when invoking shell scripts.
12211 SHELL=$lt_SHELL
12212
12213 # Whether or not to build shared libraries.
12214 build_libtool_libs=$enable_shared
12215
12216 # Whether or not to build static libraries.
12217 build_old_libs=$enable_static
12218
12219 # Whether or not to add -lc for building shared libraries.
12220 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12221
12222 # Whether or not to disallow shared libs when runtime libs are static
12223 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12224
12225 # Whether or not to optimize for fast installation.
12226 fast_install=$enable_fast_install
12227
12228 # The host system.
12229 host_alias=$host_alias
12230 host=$host
12231 host_os=$host_os
12232
12233 # The build system.
12234 build_alias=$build_alias
12235 build=$build
12236 build_os=$build_os
12237
12238 # An echo program that does not interpret backslashes.
12239 echo=$lt_echo
12240
12241 # The archiver.
12242 AR=$lt_AR
12243 AR_FLAGS=$lt_AR_FLAGS
12244
12245 # A C compiler.
12246 LTCC=$lt_LTCC
12247
12248 # LTCC compiler flags.
12249 LTCFLAGS=$lt_LTCFLAGS
12250
12251 # A language-specific compiler.
12252 CC=$lt_compiler_CXX
12253
12254 # Is the compiler the GNU C compiler?
12255 with_gcc=$GCC_CXX
12256
12257 # An ERE matcher.
12258 EGREP=$lt_EGREP
12259
12260 # The linker used to build libraries.
12261 LD=$lt_LD_CXX
12262
12263 # Whether we need hard or soft links.
12264 LN_S=$lt_LN_S
12265
12266 # A BSD-compatible nm program.
12267 NM=$lt_NM
12268
12269 # A symbol stripping program
12270 STRIP=$lt_STRIP
12271
12272 # Used to examine libraries when file_magic_cmd begins "file"
12273 MAGIC_CMD=$MAGIC_CMD
12274
12275 # Used on cygwin: DLL creation program.
12276 DLLTOOL="$DLLTOOL"
12277
12278 # Used on cygwin: object dumper.
12279 OBJDUMP="$OBJDUMP"
12280
12281 # Used on cygwin: assembler.
12282 AS="$AS"
12283
12284 # The name of the directory that contains temporary libtool files.
12285 objdir=$objdir
12286
12287 # How to create reloadable object files.
12288 reload_flag=$lt_reload_flag
12289 reload_cmds=$lt_reload_cmds
12290
12291 # How to pass a linker flag through the compiler.
12292 wl=$lt_lt_prog_compiler_wl_CXX
12293
12294 # Object file suffix (normally "o").
12295 objext="$ac_objext"
12296
12297 # Old archive suffix (normally "a").
12298 libext="$libext"
12299
12300 # Shared library suffix (normally ".so").
12301 shrext_cmds='$shrext_cmds'
12302
12303 # Executable file suffix (normally "").
12304 exeext="$exeext"
12305
12306 # Additional compiler flags for building library objects.
12307 pic_flag=$lt_lt_prog_compiler_pic_CXX
12308 pic_mode=$pic_mode
12309
12310 # What is the maximum length of a command?
12311 max_cmd_len=$lt_cv_sys_max_cmd_len
12312
12313 # Does compiler simultaneously support -c and -o options?
12314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12315
12316 # Must we lock files when doing compilation?
12317 need_locks=$lt_need_locks
12318
12319 # Do we need the lib prefix for modules?
12320 need_lib_prefix=$need_lib_prefix
12321
12322 # Do we need a version for libraries?
12323 need_version=$need_version
12324
12325 # Whether dlopen is supported.
12326 dlopen_support=$enable_dlopen
12327
12328 # Whether dlopen of programs is supported.
12329 dlopen_self=$enable_dlopen_self
12330
12331 # Whether dlopen of statically linked programs is supported.
12332 dlopen_self_static=$enable_dlopen_self_static
12333
12334 # Compiler flag to prevent dynamic linking.
12335 link_static_flag=$lt_lt_prog_compiler_static_CXX
12336
12337 # Compiler flag to turn off builtin functions.
12338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12339
12340 # Compiler flag to allow reflexive dlopens.
12341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12342
12343 # Compiler flag to generate shared objects directly from archives.
12344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12345
12346 # Compiler flag to generate thread-safe objects.
12347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12348
12349 # Library versioning type.
12350 version_type=$version_type
12351
12352 # Format of library name prefix.
12353 libname_spec=$lt_libname_spec
12354
12355 # List of archive names.  First name is the real one, the rest are links.
12356 # The last name is the one that the linker finds with -lNAME.
12357 library_names_spec=$lt_library_names_spec
12358
12359 # The coded name of the library, if different from the real name.
12360 soname_spec=$lt_soname_spec
12361
12362 # Commands used to build and install an old-style archive.
12363 RANLIB=$lt_RANLIB
12364 old_archive_cmds=$lt_old_archive_cmds_CXX
12365 old_postinstall_cmds=$lt_old_postinstall_cmds
12366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12367
12368 # Create an old-style archive from a shared archive.
12369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12370
12371 # Create a temporary old-style archive to link instead of a shared archive.
12372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12373
12374 # Commands used to build and install a shared archive.
12375 archive_cmds=$lt_archive_cmds_CXX
12376 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12377 postinstall_cmds=$lt_postinstall_cmds
12378 postuninstall_cmds=$lt_postuninstall_cmds
12379
12380 # Commands used to build a loadable module (assumed same as above if empty)
12381 module_cmds=$lt_module_cmds_CXX
12382 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12383
12384 # Commands to strip libraries.
12385 old_striplib=$lt_old_striplib
12386 striplib=$lt_striplib
12387
12388 # Dependencies to place before the objects being linked to create a
12389 # shared library.
12390 predep_objects=$lt_predep_objects_CXX
12391
12392 # Dependencies to place after the objects being linked to create a
12393 # shared library.
12394 postdep_objects=$lt_postdep_objects_CXX
12395
12396 # Dependencies to place before the objects being linked to create a
12397 # shared library.
12398 predeps=$lt_predeps_CXX
12399
12400 # Dependencies to place after the objects being linked to create a
12401 # shared library.
12402 postdeps=$lt_postdeps_CXX
12403
12404 # The library search path used internally by the compiler when linking
12405 # a shared library.
12406 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12407
12408 # Method to check whether dependent libraries are shared objects.
12409 deplibs_check_method=$lt_deplibs_check_method
12410
12411 # Command to use when deplibs_check_method == file_magic.
12412 file_magic_cmd=$lt_file_magic_cmd
12413
12414 # Flag that allows shared libraries with undefined symbols to be built.
12415 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12416
12417 # Flag that forces no undefined symbols.
12418 no_undefined_flag=$lt_no_undefined_flag_CXX
12419
12420 # Commands used to finish a libtool library installation in a directory.
12421 finish_cmds=$lt_finish_cmds
12422
12423 # Same as above, but a single script fragment to be evaled but not shown.
12424 finish_eval=$lt_finish_eval
12425
12426 # Take the output of nm and produce a listing of raw symbols and C names.
12427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12428
12429 # Transform the output of nm in a proper C declaration
12430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12431
12432 # Transform the output of nm in a C name address pair
12433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12434
12435 # This is the shared library runtime path variable.
12436 runpath_var=$runpath_var
12437
12438 # This is the shared library path variable.
12439 shlibpath_var=$shlibpath_var
12440
12441 # Is shlibpath searched before the hard-coded library search path?
12442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12443
12444 # How to hardcode a shared library path into an executable.
12445 hardcode_action=$hardcode_action_CXX
12446
12447 # Whether we should hardcode library paths into libraries.
12448 hardcode_into_libs=$hardcode_into_libs
12449
12450 # Flag to hardcode \$libdir into a binary during linking.
12451 # This must work even if \$libdir does not exist.
12452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12453
12454 # If ld is used when linking, flag to hardcode \$libdir into
12455 # a binary during linking. This must work even if \$libdir does
12456 # not exist.
12457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12458
12459 # Whether we need a single -rpath flag with a separated argument.
12460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12461
12462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12463 # resulting binary.
12464 hardcode_direct=$hardcode_direct_CXX
12465
12466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12467 # resulting binary.
12468 hardcode_minus_L=$hardcode_minus_L_CXX
12469
12470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12471 # the resulting binary.
12472 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12473
12474 # Set to yes if building a shared library automatically hardcodes DIR into the library
12475 # and all subsequent libraries and executables linked against it.
12476 hardcode_automatic=$hardcode_automatic_CXX
12477
12478 # Variables whose values should be saved in libtool wrapper scripts and
12479 # restored at relink time.
12480 variables_saved_for_relink="$variables_saved_for_relink"
12481
12482 # Whether libtool must link a program against all its dependency libraries.
12483 link_all_deplibs=$link_all_deplibs_CXX
12484
12485 # Compile-time system search path for libraries
12486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12487
12488 # Run-time system search path for libraries
12489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12490
12491 # Fix the shell variable \$srcfile for the compiler.
12492 fix_srcfile_path="$fix_srcfile_path_CXX"
12493
12494 # Set to yes if exported symbols are required.
12495 always_export_symbols=$always_export_symbols_CXX
12496
12497 # The commands to list exported symbols.
12498 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12499
12500 # The commands to extract the exported symbol list from a shared archive.
12501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12502
12503 # Symbols that should not be listed in the preloaded symbols.
12504 exclude_expsyms=$lt_exclude_expsyms_CXX
12505
12506 # Symbols that must always be exported.
12507 include_expsyms=$lt_include_expsyms_CXX
12508
12509 # ### END LIBTOOL TAG CONFIG: $tagname
12510
12511 __EOF__
12512
12513
12514 else
12515   # If there is no Makefile yet, we rely on a make rule to execute
12516   # `config.status --recheck' to rerun these tests and create the
12517   # libtool script then.
12518   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12519   if test -f "$ltmain_in"; then
12520     test -f Makefile && make "$ltmain"
12521   fi
12522 fi
12523
12524
12525 ac_ext=c
12526 ac_cpp='$CPP $CPPFLAGS'
12527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12530
12531 CC=$lt_save_CC
12532 LDCXX=$LD
12533 LD=$lt_save_LD
12534 GCC=$lt_save_GCC
12535 with_gnu_ldcxx=$with_gnu_ld
12536 with_gnu_ld=$lt_save_with_gnu_ld
12537 lt_cv_path_LDCXX=$lt_cv_path_LD
12538 lt_cv_path_LD=$lt_save_path_LD
12539 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12540 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12541
12542         else
12543           tagname=""
12544         fi
12545         ;;
12546
12547       F77)
12548         if test -n "$F77" && test "X$F77" != "Xno"; then
12549
12550 ac_ext=f
12551 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12552 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12553 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12554
12555
12556 archive_cmds_need_lc_F77=no
12557 allow_undefined_flag_F77=
12558 always_export_symbols_F77=no
12559 archive_expsym_cmds_F77=
12560 export_dynamic_flag_spec_F77=
12561 hardcode_direct_F77=no
12562 hardcode_libdir_flag_spec_F77=
12563 hardcode_libdir_flag_spec_ld_F77=
12564 hardcode_libdir_separator_F77=
12565 hardcode_minus_L_F77=no
12566 hardcode_automatic_F77=no
12567 module_cmds_F77=
12568 module_expsym_cmds_F77=
12569 link_all_deplibs_F77=unknown
12570 old_archive_cmds_F77=$old_archive_cmds
12571 no_undefined_flag_F77=
12572 whole_archive_flag_spec_F77=
12573 enable_shared_with_static_runtimes_F77=no
12574
12575 # Source file extension for f77 test sources.
12576 ac_ext=f
12577
12578 # Object file extension for compiled f77 test sources.
12579 objext=o
12580 objext_F77=$objext
12581
12582 # Code to be used in simple compile tests
12583 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12584
12585 # Code to be used in simple link tests
12586 lt_simple_link_test_code="      program t\n      end\n"
12587
12588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12589
12590 # If no C compiler was specified, use CC.
12591 LTCC=${LTCC-"$CC"}
12592
12593 # If no C compiler flags were specified, use CFLAGS.
12594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12595
12596 # Allow CC to be a program name with arguments.
12597 compiler=$CC
12598
12599
12600 # save warnings/boilerplate of simple test code
12601 ac_outfile=conftest.$ac_objext
12602 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12603 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604 _lt_compiler_boilerplate=`cat conftest.err`
12605 $rm conftest*
12606
12607 ac_outfile=conftest.$ac_objext
12608 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12609 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12610 _lt_linker_boilerplate=`cat conftest.err`
12611 $rm conftest*
12612
12613
12614 # Allow CC to be a program name with arguments.
12615 lt_save_CC="$CC"
12616 CC=${F77-"f77"}
12617 compiler=$CC
12618 compiler_F77=$CC
12619 for cc_temp in $compiler""; do
12620   case $cc_temp in
12621     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12622     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12623     \-*) ;;
12624     *) break;;
12625   esac
12626 done
12627 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12628
12629
12630 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12631 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12632 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12633 echo "${ECHO_T}$can_build_shared" >&6
12634
12635 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12636 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12637 test "$can_build_shared" = "no" && enable_shared=no
12638
12639 # On AIX, shared libraries and static libraries use the same namespace, and
12640 # are all built from PIC.
12641 case $host_os in
12642 aix3*)
12643   test "$enable_shared" = yes && enable_static=no
12644   if test -n "$RANLIB"; then
12645     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12646     postinstall_cmds='$RANLIB $lib'
12647   fi
12648   ;;
12649 aix4* | aix5*)
12650   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12651     test "$enable_shared" = yes && enable_static=no
12652   fi
12653   ;;
12654 esac
12655 echo "$as_me:$LINENO: result: $enable_shared" >&5
12656 echo "${ECHO_T}$enable_shared" >&6
12657
12658 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12659 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12660 # Make sure either enable_shared or enable_static is yes.
12661 test "$enable_shared" = yes || enable_static=yes
12662 echo "$as_me:$LINENO: result: $enable_static" >&5
12663 echo "${ECHO_T}$enable_static" >&6
12664
12665 GCC_F77="$G77"
12666 LD_F77="$LD"
12667
12668 lt_prog_compiler_wl_F77=
12669 lt_prog_compiler_pic_F77=
12670 lt_prog_compiler_static_F77=
12671
12672 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12673 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12674
12675   if test "$GCC" = yes; then
12676     lt_prog_compiler_wl_F77='-Wl,'
12677     lt_prog_compiler_static_F77='-static'
12678
12679     case $host_os in
12680       aix*)
12681       # All AIX code is PIC.
12682       if test "$host_cpu" = ia64; then
12683         # AIX 5 now supports IA64 processor
12684         lt_prog_compiler_static_F77='-Bstatic'
12685       fi
12686       ;;
12687
12688     amigaos*)
12689       # FIXME: we need at least 68020 code to build shared libraries, but
12690       # adding the `-m68020' flag to GCC prevents building anything better,
12691       # like `-m68040'.
12692       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12693       ;;
12694
12695     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12696       # PIC is the default for these OSes.
12697       ;;
12698
12699     mingw* | pw32* | os2*)
12700       # This hack is so that the source file can tell whether it is being
12701       # built for inclusion in a dll (and should export symbols for example).
12702       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12703       ;;
12704
12705     darwin* | rhapsody*)
12706       # PIC is the default on this platform
12707       # Common symbols not allowed in MH_DYLIB files
12708       lt_prog_compiler_pic_F77='-fno-common'
12709       ;;
12710
12711     interix3*)
12712       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12713       # Instead, we relocate shared libraries at runtime.
12714       ;;
12715
12716     msdosdjgpp*)
12717       # Just because we use GCC doesn't mean we suddenly get shared libraries
12718       # on systems that don't support them.
12719       lt_prog_compiler_can_build_shared_F77=no
12720       enable_shared=no
12721       ;;
12722
12723     sysv4*MP*)
12724       if test -d /usr/nec; then
12725         lt_prog_compiler_pic_F77=-Kconform_pic
12726       fi
12727       ;;
12728
12729     hpux*)
12730       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12731       # not for PA HP-UX.
12732       case $host_cpu in
12733       hppa*64*|ia64*)
12734         # +Z the default
12735         ;;
12736       *)
12737         lt_prog_compiler_pic_F77='-fPIC'
12738         ;;
12739       esac
12740       ;;
12741
12742     *)
12743       lt_prog_compiler_pic_F77='-fPIC'
12744       ;;
12745     esac
12746   else
12747     # PORTME Check for flag to pass linker flags through the system compiler.
12748     case $host_os in
12749     aix*)
12750       lt_prog_compiler_wl_F77='-Wl,'
12751       if test "$host_cpu" = ia64; then
12752         # AIX 5 now supports IA64 processor
12753         lt_prog_compiler_static_F77='-Bstatic'
12754       else
12755         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12756       fi
12757       ;;
12758       darwin*)
12759         # PIC is the default on this platform
12760         # Common symbols not allowed in MH_DYLIB files
12761        case $cc_basename in
12762          xlc*)
12763          lt_prog_compiler_pic_F77='-qnocommon'
12764          lt_prog_compiler_wl_F77='-Wl,'
12765          ;;
12766        esac
12767        ;;
12768
12769     mingw* | pw32* | os2*)
12770       # This hack is so that the source file can tell whether it is being
12771       # built for inclusion in a dll (and should export symbols for example).
12772       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12773       ;;
12774
12775     hpux9* | hpux10* | hpux11*)
12776       lt_prog_compiler_wl_F77='-Wl,'
12777       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12778       # not for PA HP-UX.
12779       case $host_cpu in
12780       hppa*64*|ia64*)
12781         # +Z the default
12782         ;;
12783       *)
12784         lt_prog_compiler_pic_F77='+Z'
12785         ;;
12786       esac
12787       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12788       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12789       ;;
12790
12791     irix5* | irix6* | nonstopux*)
12792       lt_prog_compiler_wl_F77='-Wl,'
12793       # PIC (with -KPIC) is the default.
12794       lt_prog_compiler_static_F77='-non_shared'
12795       ;;
12796
12797     newsos6)
12798       lt_prog_compiler_pic_F77='-KPIC'
12799       lt_prog_compiler_static_F77='-Bstatic'
12800       ;;
12801
12802     linux*)
12803       case $cc_basename in
12804       icc* | ecc*)
12805         lt_prog_compiler_wl_F77='-Wl,'
12806         lt_prog_compiler_pic_F77='-KPIC'
12807         lt_prog_compiler_static_F77='-static'
12808         ;;
12809       pgcc* | pgf77* | pgf90* | pgf95*)
12810         # Portland Group compilers (*not* the Pentium gcc compiler,
12811         # which looks to be a dead project)
12812         lt_prog_compiler_wl_F77='-Wl,'
12813         lt_prog_compiler_pic_F77='-fpic'
12814         lt_prog_compiler_static_F77='-Bstatic'
12815         ;;
12816       ccc*)
12817         lt_prog_compiler_wl_F77='-Wl,'
12818         # All Alpha code is PIC.
12819         lt_prog_compiler_static_F77='-non_shared'
12820         ;;
12821       esac
12822       ;;
12823
12824     osf3* | osf4* | osf5*)
12825       lt_prog_compiler_wl_F77='-Wl,'
12826       # All OSF/1 code is PIC.
12827       lt_prog_compiler_static_F77='-non_shared'
12828       ;;
12829
12830     solaris*)
12831       lt_prog_compiler_pic_F77='-KPIC'
12832       lt_prog_compiler_static_F77='-Bstatic'
12833       case $cc_basename in
12834       f77* | f90* | f95*)
12835         lt_prog_compiler_wl_F77='-Qoption ld ';;
12836       *)
12837         lt_prog_compiler_wl_F77='-Wl,';;
12838       esac
12839       ;;
12840
12841     sunos4*)
12842       lt_prog_compiler_wl_F77='-Qoption ld '
12843       lt_prog_compiler_pic_F77='-PIC'
12844       lt_prog_compiler_static_F77='-Bstatic'
12845       ;;
12846
12847     sysv4 | sysv4.2uw2* | sysv4.3*)
12848       lt_prog_compiler_wl_F77='-Wl,'
12849       lt_prog_compiler_pic_F77='-KPIC'
12850       lt_prog_compiler_static_F77='-Bstatic'
12851       ;;
12852
12853     sysv4*MP*)
12854       if test -d /usr/nec ;then
12855         lt_prog_compiler_pic_F77='-Kconform_pic'
12856         lt_prog_compiler_static_F77='-Bstatic'
12857       fi
12858       ;;
12859
12860     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12861       lt_prog_compiler_wl_F77='-Wl,'
12862       lt_prog_compiler_pic_F77='-KPIC'
12863       lt_prog_compiler_static_F77='-Bstatic'
12864       ;;
12865
12866     unicos*)
12867       lt_prog_compiler_wl_F77='-Wl,'
12868       lt_prog_compiler_can_build_shared_F77=no
12869       ;;
12870
12871     uts4*)
12872       lt_prog_compiler_pic_F77='-pic'
12873       lt_prog_compiler_static_F77='-Bstatic'
12874       ;;
12875
12876     *)
12877       lt_prog_compiler_can_build_shared_F77=no
12878       ;;
12879     esac
12880   fi
12881
12882 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12883 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12884
12885 #
12886 # Check to make sure the PIC flag actually works.
12887 #
12888 if test -n "$lt_prog_compiler_pic_F77"; then
12889
12890 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12891 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12892 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   lt_prog_compiler_pic_works_F77=no
12896   ac_outfile=conftest.$ac_objext
12897    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12898    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12899    # Insert the option either (1) after the last *FLAGS variable, or
12900    # (2) before a word containing "conftest.", or (3) at the end.
12901    # Note that $ac_compile itself does not contain backslashes and begins
12902    # with a dollar sign (not a hyphen), so the echo should work correctly.
12903    # The option is referenced via a variable to avoid confusing sed.
12904    lt_compile=`echo "$ac_compile" | $SED \
12905    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12906    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12907    -e 's:$: $lt_compiler_flag:'`
12908    (eval echo "\"\$as_me:12908: $lt_compile\"" >&5)
12909    (eval "$lt_compile" 2>conftest.err)
12910    ac_status=$?
12911    cat conftest.err >&5
12912    echo "$as_me:12912: \$? = $ac_status" >&5
12913    if (exit $ac_status) && test -s "$ac_outfile"; then
12914      # The compiler can only warn and ignore the option if not recognized
12915      # So say no if there are warnings other than the usual output.
12916      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12917      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12918      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12919        lt_prog_compiler_pic_works_F77=yes
12920      fi
12921    fi
12922    $rm conftest*
12923
12924 fi
12925 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12926 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12927
12928 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12929     case $lt_prog_compiler_pic_F77 in
12930      "" | " "*) ;;
12931      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12932      esac
12933 else
12934     lt_prog_compiler_pic_F77=
12935      lt_prog_compiler_can_build_shared_F77=no
12936 fi
12937
12938 fi
12939 case $host_os in
12940   # For platforms which do not support PIC, -DPIC is meaningless:
12941   *djgpp*)
12942     lt_prog_compiler_pic_F77=
12943     ;;
12944   *)
12945     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12946     ;;
12947 esac
12948
12949 #
12950 # Check to make sure the static flag actually works.
12951 #
12952 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12953 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12954 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12955 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12956   echo $ECHO_N "(cached) $ECHO_C" >&6
12957 else
12958   lt_prog_compiler_static_works_F77=no
12959    save_LDFLAGS="$LDFLAGS"
12960    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12961    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12962    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12963      # The linker can only warn and ignore the option if not recognized
12964      # So say no if there are warnings
12965      if test -s conftest.err; then
12966        # Append any errors to the config.log.
12967        cat conftest.err 1>&5
12968        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12969        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12970        if diff conftest.exp conftest.er2 >/dev/null; then
12971          lt_prog_compiler_static_works_F77=yes
12972        fi
12973      else
12974        lt_prog_compiler_static_works_F77=yes
12975      fi
12976    fi
12977    $rm conftest*
12978    LDFLAGS="$save_LDFLAGS"
12979
12980 fi
12981 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
12982 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
12983
12984 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
12985     :
12986 else
12987     lt_prog_compiler_static_F77=
12988 fi
12989
12990
12991 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12992 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12993 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12994   echo $ECHO_N "(cached) $ECHO_C" >&6
12995 else
12996   lt_cv_prog_compiler_c_o_F77=no
12997    $rm -r conftest 2>/dev/null
12998    mkdir conftest
12999    cd conftest
13000    mkdir out
13001    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13002
13003    lt_compiler_flag="-o out/conftest2.$ac_objext"
13004    # Insert the option either (1) after the last *FLAGS variable, or
13005    # (2) before a word containing "conftest.", or (3) at the end.
13006    # Note that $ac_compile itself does not contain backslashes and begins
13007    # with a dollar sign (not a hyphen), so the echo should work correctly.
13008    lt_compile=`echo "$ac_compile" | $SED \
13009    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13010    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13011    -e 's:$: $lt_compiler_flag:'`
13012    (eval echo "\"\$as_me:13012: $lt_compile\"" >&5)
13013    (eval "$lt_compile" 2>out/conftest.err)
13014    ac_status=$?
13015    cat out/conftest.err >&5
13016    echo "$as_me:13016: \$? = $ac_status" >&5
13017    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13018    then
13019      # The compiler can only warn and ignore the option if not recognized
13020      # So say no if there are warnings
13021      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13022      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13023      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13024        lt_cv_prog_compiler_c_o_F77=yes
13025      fi
13026    fi
13027    chmod u+w . 2>&5
13028    $rm conftest*
13029    # SGI C++ compiler will create directory out/ii_files/ for
13030    # template instantiation
13031    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13032    $rm out/* && rmdir out
13033    cd ..
13034    rmdir conftest
13035    $rm conftest*
13036
13037 fi
13038 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13039 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13040
13041
13042 hard_links="nottested"
13043 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13044   # do not overwrite the value of need_locks provided by the user
13045   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13046 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13047   hard_links=yes
13048   $rm conftest*
13049   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13050   touch conftest.a
13051   ln conftest.a conftest.b 2>&5 || hard_links=no
13052   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13053   echo "$as_me:$LINENO: result: $hard_links" >&5
13054 echo "${ECHO_T}$hard_links" >&6
13055   if test "$hard_links" = no; then
13056     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13057 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13058     need_locks=warn
13059   fi
13060 else
13061   need_locks=no
13062 fi
13063
13064 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13065 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13066
13067   runpath_var=
13068   allow_undefined_flag_F77=
13069   enable_shared_with_static_runtimes_F77=no
13070   archive_cmds_F77=
13071   archive_expsym_cmds_F77=
13072   old_archive_From_new_cmds_F77=
13073   old_archive_from_expsyms_cmds_F77=
13074   export_dynamic_flag_spec_F77=
13075   whole_archive_flag_spec_F77=
13076   thread_safe_flag_spec_F77=
13077   hardcode_libdir_flag_spec_F77=
13078   hardcode_libdir_flag_spec_ld_F77=
13079   hardcode_libdir_separator_F77=
13080   hardcode_direct_F77=no
13081   hardcode_minus_L_F77=no
13082   hardcode_shlibpath_var_F77=unsupported
13083   link_all_deplibs_F77=unknown
13084   hardcode_automatic_F77=no
13085   module_cmds_F77=
13086   module_expsym_cmds_F77=
13087   always_export_symbols_F77=no
13088   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13089   # include_expsyms should be a list of space-separated symbols to be *always*
13090   # included in the symbol list
13091   include_expsyms_F77=
13092   # exclude_expsyms can be an extended regexp of symbols to exclude
13093   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13094   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13095   # as well as any symbol that contains `d'.
13096   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13097   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13098   # platforms (ab)use it in PIC code, but their linkers get confused if
13099   # the symbol is explicitly referenced.  Since portable code cannot
13100   # rely on this symbol name, it's probably fine to never include it in
13101   # preloaded symbol tables.
13102   extract_expsyms_cmds=
13103   # Just being paranoid about ensuring that cc_basename is set.
13104   for cc_temp in $compiler""; do
13105   case $cc_temp in
13106     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13107     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13108     \-*) ;;
13109     *) break;;
13110   esac
13111 done
13112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13113
13114   case $host_os in
13115   cygwin* | mingw* | pw32*)
13116     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13117     # When not using gcc, we currently assume that we are using
13118     # Microsoft Visual C++.
13119     if test "$GCC" != yes; then
13120       with_gnu_ld=no
13121     fi
13122     ;;
13123   interix*)
13124     # we just hope/assume this is gcc and not c89 (= MSVC++)
13125     with_gnu_ld=yes
13126     ;;
13127   openbsd*)
13128     with_gnu_ld=no
13129     ;;
13130   esac
13131
13132   ld_shlibs_F77=yes
13133   if test "$with_gnu_ld" = yes; then
13134     # If archive_cmds runs LD, not CC, wlarc should be empty
13135     wlarc='${wl}'
13136
13137     # Set some defaults for GNU ld with shared library support. These
13138     # are reset later if shared libraries are not supported. Putting them
13139     # here allows them to be overridden if necessary.
13140     runpath_var=LD_RUN_PATH
13141     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13142     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13143     # ancient GNU ld didn't support --whole-archive et. al.
13144     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13145         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13146       else
13147         whole_archive_flag_spec_F77=
13148     fi
13149     supports_anon_versioning=no
13150     case `$LD -v 2>/dev/null` in
13151       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13152       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13153       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13154       *\ 2.11.*) ;; # other 2.11 versions
13155       *) supports_anon_versioning=yes ;;
13156     esac
13157
13158     # See if GNU ld supports shared libraries.
13159     case $host_os in
13160     aix3* | aix4* | aix5*)
13161       # On AIX/PPC, the GNU linker is very broken
13162       if test "$host_cpu" != ia64; then
13163         ld_shlibs_F77=no
13164         cat <<EOF 1>&2
13165
13166 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13167 *** to be unable to reliably create shared libraries on AIX.
13168 *** Therefore, libtool is disabling shared libraries support.  If you
13169 *** really care for shared libraries, you may want to modify your PATH
13170 *** so that a non-GNU linker is found, and then restart.
13171
13172 EOF
13173       fi
13174       ;;
13175
13176     amigaos*)
13177       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)'
13178       hardcode_libdir_flag_spec_F77='-L$libdir'
13179       hardcode_minus_L_F77=yes
13180
13181       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13182       # that the semantics of dynamic libraries on AmigaOS, at least up
13183       # to version 4, is to share data among multiple programs linked
13184       # with the same dynamic library.  Since this doesn't match the
13185       # behavior of shared libraries on other platforms, we can't use
13186       # them.
13187       ld_shlibs_F77=no
13188       ;;
13189
13190     beos*)
13191       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13192         allow_undefined_flag_F77=unsupported
13193         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13194         # support --undefined.  This deserves some investigation.  FIXME
13195         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13196       else
13197         ld_shlibs_F77=no
13198       fi
13199       ;;
13200
13201     cygwin* | mingw* | pw32*)
13202       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13203       # as there is no search path for DLLs.
13204       hardcode_libdir_flag_spec_F77='-L$libdir'
13205       allow_undefined_flag_F77=unsupported
13206       always_export_symbols_F77=no
13207       enable_shared_with_static_runtimes_F77=yes
13208       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13209
13210       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13211         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13212         # If the export-symbols file already is a .def file (1st line
13213         # is EXPORTS), use it as is; otherwise, prepend...
13214         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13215           cp $export_symbols $output_objdir/$soname.def;
13216         else
13217           echo EXPORTS > $output_objdir/$soname.def;
13218           cat $export_symbols >> $output_objdir/$soname.def;
13219         fi~
13220         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13221       else
13222         ld_shlibs_F77=no
13223       fi
13224       ;;
13225
13226     interix3*)
13227       hardcode_direct_F77=no
13228       hardcode_shlibpath_var_F77=no
13229       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13230       export_dynamic_flag_spec_F77='${wl}-E'
13231       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13232       # Instead, shared libraries are loaded at an image base (0x10000000 by
13233       # default) and relocated if they conflict, which is a slow very memory
13234       # consuming and fragmenting process.  To avoid this, we pick a random,
13235       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13236       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13237       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'
13238       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'
13239       ;;
13240
13241     linux*)
13242       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13243         tmp_addflag=
13244         case $cc_basename,$host_cpu in
13245         pgcc*)                          # Portland Group C compiler
13246           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'
13247           tmp_addflag=' $pic_flag'
13248           ;;
13249         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13250           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'
13251           tmp_addflag=' $pic_flag -Mnomain' ;;
13252         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13253           tmp_addflag=' -i_dynamic' ;;
13254         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13255           tmp_addflag=' -i_dynamic -nofor_main' ;;
13256         ifc* | ifort*)                  # Intel Fortran compiler
13257           tmp_addflag=' -nofor_main' ;;
13258         esac
13259         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260
13261         if test $supports_anon_versioning = yes; then
13262           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13263   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264   $echo "local: *; };" >> $output_objdir/$libname.ver~
13265           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13266         fi
13267         link_all_deplibs_F77=no
13268       else
13269         ld_shlibs_F77=no
13270       fi
13271       ;;
13272
13273     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13274       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13275         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13276         wlarc=
13277       else
13278         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13280       fi
13281       ;;
13282
13283     solaris*)
13284       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13285         ld_shlibs_F77=no
13286         cat <<EOF 1>&2
13287
13288 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13289 *** create shared libraries on Solaris systems.  Therefore, libtool
13290 *** is disabling shared libraries support.  We urge you to upgrade GNU
13291 *** binutils to release 2.9.1 or newer.  Another option is to modify
13292 *** your PATH or compiler configuration so that the native linker is
13293 *** used, and then restart.
13294
13295 EOF
13296       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13297         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13299       else
13300         ld_shlibs_F77=no
13301       fi
13302       ;;
13303
13304     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13305       case `$LD -v 2>&1` in
13306         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13307         ld_shlibs_F77=no
13308         cat <<_LT_EOF 1>&2
13309
13310 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13311 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13312 *** is disabling shared libraries support.  We urge you to upgrade GNU
13313 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13314 *** your PATH or compiler configuration so that the native linker is
13315 *** used, and then restart.
13316
13317 _LT_EOF
13318         ;;
13319         *)
13320           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13321             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13322             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13323             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13324           else
13325             ld_shlibs_F77=no
13326           fi
13327         ;;
13328       esac
13329       ;;
13330
13331     sunos4*)
13332       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13333       wlarc=
13334       hardcode_direct_F77=yes
13335       hardcode_shlibpath_var_F77=no
13336       ;;
13337
13338     *)
13339       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13340         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13342       else
13343         ld_shlibs_F77=no
13344       fi
13345       ;;
13346     esac
13347
13348     if test "$ld_shlibs_F77" = no; then
13349       runpath_var=
13350       hardcode_libdir_flag_spec_F77=
13351       export_dynamic_flag_spec_F77=
13352       whole_archive_flag_spec_F77=
13353     fi
13354   else
13355     # PORTME fill in a description of your system's linker (not GNU ld)
13356     case $host_os in
13357     aix3*)
13358       allow_undefined_flag_F77=unsupported
13359       always_export_symbols_F77=yes
13360       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'
13361       # Note: this linker hardcodes the directories in LIBPATH if there
13362       # are no directories specified by -L.
13363       hardcode_minus_L_F77=yes
13364       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13365         # Neither direct hardcoding nor static linking is supported with a
13366         # broken collect2.
13367         hardcode_direct_F77=unsupported
13368       fi
13369       ;;
13370
13371     aix4* | aix5*)
13372       if test "$host_cpu" = ia64; then
13373         # On IA64, the linker does run time linking by default, so we don't
13374         # have to do anything special.
13375         aix_use_runtimelinking=no
13376         exp_sym_flag='-Bexport'
13377         no_entry_flag=""
13378       else
13379         # If we're using GNU nm, then we don't want the "-C" option.
13380         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13381         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13382           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'
13383         else
13384           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'
13385         fi
13386         aix_use_runtimelinking=no
13387
13388         # Test if we are trying to use run time linking or normal
13389         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13390         # need to do runtime linking.
13391         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13392           for ld_flag in $LDFLAGS; do
13393           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13394             aix_use_runtimelinking=yes
13395             break
13396           fi
13397           done
13398           ;;
13399         esac
13400
13401         exp_sym_flag='-bexport'
13402         no_entry_flag='-bnoentry'
13403       fi
13404
13405       # When large executables or shared objects are built, AIX ld can
13406       # have problems creating the table of contents.  If linking a library
13407       # or program results in "error TOC overflow" add -mminimal-toc to
13408       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13409       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13410
13411       archive_cmds_F77=''
13412       hardcode_direct_F77=yes
13413       hardcode_libdir_separator_F77=':'
13414       link_all_deplibs_F77=yes
13415
13416       if test "$GCC" = yes; then
13417         case $host_os in aix4.[012]|aix4.[012].*)
13418         # We only want to do this on AIX 4.2 and lower, the check
13419         # below for broken collect2 doesn't work under 4.3+
13420           collect2name=`${CC} -print-prog-name=collect2`
13421           if test -f "$collect2name" && \
13422            strings "$collect2name" | grep resolve_lib_name >/dev/null
13423           then
13424           # We have reworked collect2
13425           hardcode_direct_F77=yes
13426           else
13427           # We have old collect2
13428           hardcode_direct_F77=unsupported
13429           # It fails to find uninstalled libraries when the uninstalled
13430           # path is not listed in the libpath.  Setting hardcode_minus_L
13431           # to unsupported forces relinking
13432           hardcode_minus_L_F77=yes
13433           hardcode_libdir_flag_spec_F77='-L$libdir'
13434           hardcode_libdir_separator_F77=
13435           fi
13436           ;;
13437         esac
13438         shared_flag='-shared'
13439         if test "$aix_use_runtimelinking" = yes; then
13440           shared_flag="$shared_flag "'${wl}-G'
13441         fi
13442       else
13443         # not using gcc
13444         if test "$host_cpu" = ia64; then
13445         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13446         # chokes on -Wl,-G. The following line is correct:
13447           shared_flag='-G'
13448         else
13449           if test "$aix_use_runtimelinking" = yes; then
13450             shared_flag='${wl}-G'
13451           else
13452             shared_flag='${wl}-bM:SRE'
13453           fi
13454         fi
13455       fi
13456
13457       # It seems that -bexpall does not export symbols beginning with
13458       # underscore (_), so it is better to generate a list of symbols to export.
13459       always_export_symbols_F77=yes
13460       if test "$aix_use_runtimelinking" = yes; then
13461         # Warning - without using the other runtime loading flags (-brtl),
13462         # -berok will link without error, but may produce a broken library.
13463         allow_undefined_flag_F77='-berok'
13464        # Determine the default libpath from the value encoded in an empty executable.
13465        cat >conftest.$ac_ext <<_ACEOF
13466       program main
13467
13468       end
13469 _ACEOF
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472   (eval $ac_link) 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } &&
13479          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481   (eval $ac_try) 2>&5
13482   ac_status=$?
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); }; } &&
13485          { ac_try='test -s conftest$ac_exeext'
13486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487   (eval $ac_try) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491
13492 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13493 }'`
13494 # Check for a 64-bit object if we didn't find anything.
13495 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; }
13496 }'`; fi
13497 else
13498   echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501 fi
13502 rm -f conftest.err conftest.$ac_objext \
13503       conftest$ac_exeext conftest.$ac_ext
13504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505
13506        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13507         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"
13508        else
13509         if test "$host_cpu" = ia64; then
13510           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13511           allow_undefined_flag_F77="-z nodefs"
13512           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"
13513         else
13514          # Determine the default libpath from the value encoded in an empty executable.
13515          cat >conftest.$ac_ext <<_ACEOF
13516       program main
13517
13518       end
13519 _ACEOF
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522   (eval $ac_link) 2>conftest.er1
13523   ac_status=$?
13524   grep -v '^ *+' conftest.er1 >conftest.err
13525   rm -f conftest.er1
13526   cat conftest.err >&5
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531   (eval $ac_try) 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; } &&
13535          { ac_try='test -s conftest$ac_exeext'
13536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537   (eval $ac_try) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); }; }; then
13541
13542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13543 }'`
13544 # Check for a 64-bit object if we didn't find anything.
13545 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; }
13546 }'`; fi
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 fi
13552 rm -f conftest.err conftest.$ac_objext \
13553       conftest$ac_exeext conftest.$ac_ext
13554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13555
13556          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13557           # Warning - without using the other run time loading flags,
13558           # -berok will link without error, but may produce a broken library.
13559           no_undefined_flag_F77=' ${wl}-bernotok'
13560           allow_undefined_flag_F77=' ${wl}-berok'
13561           # Exported symbols can be pulled into shared objects from archives
13562           whole_archive_flag_spec_F77='$convenience'
13563           archive_cmds_need_lc_F77=yes
13564           # This is similar to how AIX traditionally builds its shared libraries.
13565           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'
13566         fi
13567       fi
13568       ;;
13569
13570     amigaos*)
13571       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)'
13572       hardcode_libdir_flag_spec_F77='-L$libdir'
13573       hardcode_minus_L_F77=yes
13574       # see comment about different semantics on the GNU ld section
13575       ld_shlibs_F77=no
13576       ;;
13577
13578     bsdi[45]*)
13579       export_dynamic_flag_spec_F77=-rdynamic
13580       ;;
13581
13582     cygwin* | mingw* | pw32*)
13583       # When not using gcc, we currently assume that we are using
13584       # Microsoft Visual C++.
13585       # hardcode_libdir_flag_spec is actually meaningless, as there is
13586       # no search path for DLLs.
13587       hardcode_libdir_flag_spec_F77=' '
13588       allow_undefined_flag_F77=unsupported
13589       # Tell ltmain to make .lib files, not .a files.
13590       libext=lib
13591       # Tell ltmain to make .dll files, not .so files.
13592       shrext_cmds=".dll"
13593       # FIXME: Setting linknames here is a bad hack.
13594       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13595       # The linker will automatically build a .lib file if we build a DLL.
13596       old_archive_From_new_cmds_F77='true'
13597       # FIXME: Should let the user specify the lib program.
13598       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13599       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13600       enable_shared_with_static_runtimes_F77=yes
13601       ;;
13602
13603     darwin* | rhapsody*)
13604       case $host_os in
13605         rhapsody* | darwin1.[012])
13606          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13607          ;;
13608        *) # Darwin 1.3 on
13609          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13610            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13611          else
13612            case ${MACOSX_DEPLOYMENT_TARGET} in
13613              10.[012])
13614                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13615                ;;
13616              10.*)
13617                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13618                ;;
13619            esac
13620          fi
13621          ;;
13622       esac
13623       archive_cmds_need_lc_F77=no
13624       hardcode_direct_F77=no
13625       hardcode_automatic_F77=yes
13626       hardcode_shlibpath_var_F77=unsupported
13627       whole_archive_flag_spec_F77=''
13628       link_all_deplibs_F77=yes
13629     if test "$GCC" = yes ; then
13630         output_verbose_link_cmd='echo'
13631         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13632       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13633       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13634       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}'
13635       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}'
13636     else
13637       case $cc_basename in
13638         xlc*)
13639          output_verbose_link_cmd='echo'
13640          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13641          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13642           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13643          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}'
13644           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}'
13645           ;;
13646        *)
13647          ld_shlibs_F77=no
13648           ;;
13649       esac
13650     fi
13651       ;;
13652
13653     dgux*)
13654       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13655       hardcode_libdir_flag_spec_F77='-L$libdir'
13656       hardcode_shlibpath_var_F77=no
13657       ;;
13658
13659     freebsd1*)
13660       ld_shlibs_F77=no
13661       ;;
13662
13663     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13664     # support.  Future versions do this automatically, but an explicit c++rt0.o
13665     # does not break anything, and helps significantly (at the cost of a little
13666     # extra space).
13667     freebsd2.2*)
13668       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13669       hardcode_libdir_flag_spec_F77='-R$libdir'
13670       hardcode_direct_F77=yes
13671       hardcode_shlibpath_var_F77=no
13672       ;;
13673
13674     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13675     freebsd2*)
13676       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13677       hardcode_direct_F77=yes
13678       hardcode_minus_L_F77=yes
13679       hardcode_shlibpath_var_F77=no
13680       ;;
13681
13682     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13683     freebsd* | dragonfly*)
13684       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13685       hardcode_libdir_flag_spec_F77='-R$libdir'
13686       hardcode_direct_F77=yes
13687       hardcode_shlibpath_var_F77=no
13688       ;;
13689
13690     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
13691     kfreebsd*-gnu)
13692       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13693       hardcode_libdir_flag_spec_F77='-R$libdir'
13694       hardcode_direct_F77=yes
13695       hardcode_shlibpath_var_F77=no
13696       link_all_deplibs_F77=no
13697       ;;
13698
13699     hpux9*)
13700       if test "$GCC" = yes; then
13701         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'
13702       else
13703         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'
13704       fi
13705       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13706       hardcode_libdir_separator_F77=:
13707       hardcode_direct_F77=yes
13708
13709       # hardcode_minus_L: Not really in the search PATH,
13710       # but as the default location of the library.
13711       hardcode_minus_L_F77=yes
13712       export_dynamic_flag_spec_F77='${wl}-E'
13713       ;;
13714
13715     hpux10*)
13716       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13717         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13718       else
13719         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13720       fi
13721       if test "$with_gnu_ld" = no; then
13722         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13723         hardcode_libdir_separator_F77=:
13724
13725         hardcode_direct_F77=yes
13726         export_dynamic_flag_spec_F77='${wl}-E'
13727
13728         # hardcode_minus_L: Not really in the search PATH,
13729         # but as the default location of the library.
13730         hardcode_minus_L_F77=yes
13731       fi
13732       ;;
13733
13734     hpux11*)
13735       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13736         case $host_cpu in
13737         hppa*64*)
13738           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13739           ;;
13740         ia64*)
13741           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13742           ;;
13743         *)
13744           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13745           ;;
13746         esac
13747       else
13748         case $host_cpu in
13749         hppa*64*)
13750           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13751           ;;
13752         ia64*)
13753           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13754           ;;
13755         *)
13756           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13757           ;;
13758         esac
13759       fi
13760       if test "$with_gnu_ld" = no; then
13761         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13762         hardcode_libdir_separator_F77=:
13763
13764         case $host_cpu in
13765         hppa*64*|ia64*)
13766           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13767           hardcode_direct_F77=no
13768           hardcode_shlibpath_var_F77=no
13769           ;;
13770         *)
13771           hardcode_direct_F77=yes
13772           export_dynamic_flag_spec_F77='${wl}-E'
13773
13774           # hardcode_minus_L: Not really in the search PATH,
13775           # but as the default location of the library.
13776           hardcode_minus_L_F77=yes
13777           ;;
13778         esac
13779       fi
13780       ;;
13781
13782     irix5* | irix6* | nonstopux*)
13783       if test "$GCC" = yes; then
13784         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'
13785       else
13786         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'
13787         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13788       fi
13789       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13790       hardcode_libdir_separator_F77=:
13791       link_all_deplibs_F77=yes
13792       ;;
13793
13794     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13795       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13796         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13797       else
13798         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13799       fi
13800       hardcode_libdir_flag_spec_F77='-R$libdir'
13801       hardcode_direct_F77=yes
13802       hardcode_shlibpath_var_F77=no
13803       ;;
13804
13805     newsos6)
13806       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807       hardcode_direct_F77=yes
13808       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13809       hardcode_libdir_separator_F77=:
13810       hardcode_shlibpath_var_F77=no
13811       ;;
13812
13813     openbsd*)
13814       hardcode_direct_F77=yes
13815       hardcode_shlibpath_var_F77=no
13816       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13817         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13818         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13819         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13820         export_dynamic_flag_spec_F77='${wl}-E'
13821       else
13822        case $host_os in
13823          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13824            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13825            hardcode_libdir_flag_spec_F77='-R$libdir'
13826            ;;
13827          *)
13828            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13829            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13830            ;;
13831        esac
13832       fi
13833       ;;
13834
13835     os2*)
13836       hardcode_libdir_flag_spec_F77='-L$libdir'
13837       hardcode_minus_L_F77=yes
13838       allow_undefined_flag_F77=unsupported
13839       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'
13840       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13841       ;;
13842
13843     osf3*)
13844       if test "$GCC" = yes; then
13845         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13846         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'
13847       else
13848         allow_undefined_flag_F77=' -expect_unresolved \*'
13849         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'
13850       fi
13851       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13852       hardcode_libdir_separator_F77=:
13853       ;;
13854
13855     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13856       if test "$GCC" = yes; then
13857         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13858         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'
13859         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13860       else
13861         allow_undefined_flag_F77=' -expect_unresolved \*'
13862         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'
13863         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~
13864         $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'
13865
13866         # Both c and cxx compiler support -rpath directly
13867         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13868       fi
13869       hardcode_libdir_separator_F77=:
13870       ;;
13871
13872     solaris*)
13873       no_undefined_flag_F77=' -z text'
13874       if test "$GCC" = yes; then
13875         wlarc='${wl}'
13876         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13877         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13878           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13879       else
13880         wlarc=''
13881         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13883         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13884       fi
13885       hardcode_libdir_flag_spec_F77='-R$libdir'
13886       hardcode_shlibpath_var_F77=no
13887       case $host_os in
13888       solaris2.[0-5] | solaris2.[0-5].*) ;;
13889       *)
13890         # The compiler driver will combine linker options so we
13891         # cannot just pass the convience library names through
13892         # without $wl, iff we do not link with $LD.
13893         # Luckily, gcc supports the same syntax we need for Sun Studio.
13894         # Supported since Solaris 2.6 (maybe 2.5.1?)
13895         case $wlarc in
13896         '')
13897           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13898         *)
13899           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' ;;
13900         esac ;;
13901       esac
13902       link_all_deplibs_F77=yes
13903       ;;
13904
13905     sunos4*)
13906       if test "x$host_vendor" = xsequent; then
13907         # Use $CC to link under sequent, because it throws in some extra .o
13908         # files that make .init and .fini sections work.
13909         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13910       else
13911         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13912       fi
13913       hardcode_libdir_flag_spec_F77='-L$libdir'
13914       hardcode_direct_F77=yes
13915       hardcode_minus_L_F77=yes
13916       hardcode_shlibpath_var_F77=no
13917       ;;
13918
13919     sysv4)
13920       case $host_vendor in
13921         sni)
13922           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13923           hardcode_direct_F77=yes # is this really true???
13924         ;;
13925         siemens)
13926           ## LD is ld it makes a PLAMLIB
13927           ## CC just makes a GrossModule.
13928           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13929           reload_cmds_F77='$CC -r -o $output$reload_objs'
13930           hardcode_direct_F77=no
13931         ;;
13932         motorola)
13933           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13935         ;;
13936       esac
13937       runpath_var='LD_RUN_PATH'
13938       hardcode_shlibpath_var_F77=no
13939       ;;
13940
13941     sysv4.3*)
13942       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13943       hardcode_shlibpath_var_F77=no
13944       export_dynamic_flag_spec_F77='-Bexport'
13945       ;;
13946
13947     sysv4*MP*)
13948       if test -d /usr/nec; then
13949         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950         hardcode_shlibpath_var_F77=no
13951         runpath_var=LD_RUN_PATH
13952         hardcode_runpath_var=yes
13953         ld_shlibs_F77=yes
13954       fi
13955       ;;
13956
13957     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13958       no_undefined_flag_F77='${wl}-z,text'
13959       archive_cmds_need_lc_F77=no
13960       hardcode_shlibpath_var_F77=no
13961       runpath_var='LD_RUN_PATH'
13962
13963       if test "$GCC" = yes; then
13964         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13965         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13966       else
13967         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13968         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13969       fi
13970       ;;
13971
13972     sysv5* | sco3.2v5* | sco5v6*)
13973       # Note: We can NOT use -z defs as we might desire, because we do not
13974       # link with -lc, and that would cause any symbols used from libc to
13975       # always be unresolved, which means just about no library would
13976       # ever link correctly.  If we're not using GNU ld we use -z text
13977       # though, which does catch some bad symbols but isn't as heavy-handed
13978       # as -z defs.
13979       no_undefined_flag_F77='${wl}-z,text'
13980       allow_undefined_flag_F77='${wl}-z,nodefs'
13981       archive_cmds_need_lc_F77=no
13982       hardcode_shlibpath_var_F77=no
13983       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13984       hardcode_libdir_separator_F77=':'
13985       link_all_deplibs_F77=yes
13986       export_dynamic_flag_spec_F77='${wl}-Bexport'
13987       runpath_var='LD_RUN_PATH'
13988
13989       if test "$GCC" = yes; then
13990         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13991         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13992       else
13993         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13994         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13995       fi
13996       ;;
13997
13998     uts4*)
13999       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14000       hardcode_libdir_flag_spec_F77='-L$libdir'
14001       hardcode_shlibpath_var_F77=no
14002       ;;
14003
14004     *)
14005       ld_shlibs_F77=no
14006       ;;
14007     esac
14008   fi
14009
14010 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14011 echo "${ECHO_T}$ld_shlibs_F77" >&6
14012 test "$ld_shlibs_F77" = no && can_build_shared=no
14013
14014 #
14015 # Do we need to explicitly link libc?
14016 #
14017 case "x$archive_cmds_need_lc_F77" in
14018 x|xyes)
14019   # Assume -lc should be added
14020   archive_cmds_need_lc_F77=yes
14021
14022   if test "$enable_shared" = yes && test "$GCC" = yes; then
14023     case $archive_cmds_F77 in
14024     *'~'*)
14025       # FIXME: we may have to deal with multi-command sequences.
14026       ;;
14027     '$CC '*)
14028       # Test whether the compiler implicitly links with -lc since on some
14029       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14030       # to ld, don't add -lc before -lgcc.
14031       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14032 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14033       $rm conftest*
14034       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14035
14036       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037   (eval $ac_compile) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } 2>conftest.err; then
14041         soname=conftest
14042         lib=conftest
14043         libobjs=conftest.$ac_objext
14044         deplibs=
14045         wl=$lt_prog_compiler_wl_F77
14046         pic_flag=$lt_prog_compiler_pic_F77
14047         compiler_flags=-v
14048         linker_flags=-v
14049         verstring=
14050         output_objdir=.
14051         libname=conftest
14052         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14053         allow_undefined_flag_F77=
14054         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14055   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }
14059         then
14060           archive_cmds_need_lc_F77=no
14061         else
14062           archive_cmds_need_lc_F77=yes
14063         fi
14064         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14065       else
14066         cat conftest.err 1>&5
14067       fi
14068       $rm conftest*
14069       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14070 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14071       ;;
14072     esac
14073   fi
14074   ;;
14075 esac
14076
14077 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14078 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14079 library_names_spec=
14080 libname_spec='lib$name'
14081 soname_spec=
14082 shrext_cmds=".so"
14083 postinstall_cmds=
14084 postuninstall_cmds=
14085 finish_cmds=
14086 finish_eval=
14087 shlibpath_var=
14088 shlibpath_overrides_runpath=unknown
14089 version_type=none
14090 dynamic_linker="$host_os ld.so"
14091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14092 if test "$GCC" = yes; then
14093   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14094   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14095     # if the path contains ";" then we assume it to be the separator
14096     # otherwise default to the standard path separator (i.e. ":") - it is
14097     # assumed that no part of a normal pathname contains ";" but that should
14098     # okay in the real world where ";" in dirpaths is itself problematic.
14099     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14100   else
14101     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14102   fi
14103 else
14104   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14105 fi
14106 need_lib_prefix=unknown
14107 hardcode_into_libs=no
14108
14109 # when you set need_version to no, make sure it does not cause -set_version
14110 # flags to be left without arguments
14111 need_version=unknown
14112
14113 case $host_os in
14114 aix3*)
14115   version_type=linux
14116   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14117   shlibpath_var=LIBPATH
14118
14119   # AIX 3 has no versioning support, so we append a major version to the name.
14120   soname_spec='${libname}${release}${shared_ext}$major'
14121   ;;
14122
14123 aix4* | aix5*)
14124   version_type=linux
14125   need_lib_prefix=no
14126   need_version=no
14127   hardcode_into_libs=yes
14128   if test "$host_cpu" = ia64; then
14129     # AIX 5 supports IA64
14130     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14131     shlibpath_var=LD_LIBRARY_PATH
14132   else
14133     # With GCC up to 2.95.x, collect2 would create an import file
14134     # for dependence libraries.  The import file would start with
14135     # the line `#! .'.  This would cause the generated library to
14136     # depend on `.', always an invalid library.  This was fixed in
14137     # development snapshots of GCC prior to 3.0.
14138     case $host_os in
14139       aix4 | aix4.[01] | aix4.[01].*)
14140       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14141            echo ' yes '
14142            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14143         :
14144       else
14145         can_build_shared=no
14146       fi
14147       ;;
14148     esac
14149     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14150     # soname into executable. Probably we can add versioning support to
14151     # collect2, so additional links can be useful in future.
14152     if test "$aix_use_runtimelinking" = yes; then
14153       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14154       # instead of lib<name>.a to let people know that these are not
14155       # typical AIX shared libraries.
14156       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14157     else
14158       # We preserve .a as extension for shared libraries through AIX4.2
14159       # and later when we are not doing run time linking.
14160       library_names_spec='${libname}${release}.a $libname.a'
14161       soname_spec='${libname}${release}${shared_ext}$major'
14162     fi
14163     shlibpath_var=LIBPATH
14164   fi
14165   ;;
14166
14167 amigaos*)
14168   library_names_spec='$libname.ixlibrary $libname.a'
14169   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14170   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'
14171   ;;
14172
14173 beos*)
14174   library_names_spec='${libname}${shared_ext}'
14175   dynamic_linker="$host_os ld.so"
14176   shlibpath_var=LIBRARY_PATH
14177   ;;
14178
14179 bsdi[45]*)
14180   version_type=linux
14181   need_version=no
14182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183   soname_spec='${libname}${release}${shared_ext}$major'
14184   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14185   shlibpath_var=LD_LIBRARY_PATH
14186   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14187   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14188   # the default ld.so.conf also contains /usr/contrib/lib and
14189   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14190   # libtool to hard-code these into programs
14191   ;;
14192
14193 cygwin* | mingw* | pw32*)
14194   version_type=windows
14195   shrext_cmds=".dll"
14196   need_version=no
14197   need_lib_prefix=no
14198
14199   case $GCC,$host_os in
14200   yes,cygwin* | yes,mingw* | yes,pw32*)
14201     library_names_spec='$libname.dll.a'
14202     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14203     postinstall_cmds='base_file=`basename \${file}`~
14204       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14205       dldir=$destdir/`dirname \$dlpath`~
14206       test -d \$dldir || mkdir -p \$dldir~
14207       $install_prog $dir/$dlname \$dldir/$dlname~
14208       chmod a+x \$dldir/$dlname'
14209     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14210       dlpath=$dir/\$dldll~
14211        $rm \$dlpath'
14212     shlibpath_overrides_runpath=yes
14213
14214     case $host_os in
14215     cygwin*)
14216       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14217       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14218       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14219       ;;
14220     mingw*)
14221       # MinGW DLLs use traditional 'lib' prefix
14222       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14223       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14224       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14225         # It is most probably a Windows format PATH printed by
14226         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14227         # path with ; separators, and with drive letters. We can handle the
14228         # drive letters (cygwin fileutils understands them), so leave them,
14229         # especially as we might pass files found there to a mingw objdump,
14230         # which wouldn't understand a cygwinified path. Ahh.
14231         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14232       else
14233         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14234       fi
14235       ;;
14236     pw32*)
14237       # pw32 DLLs use 'pw' prefix rather than 'lib'
14238       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14239       ;;
14240     esac
14241     ;;
14242
14243   *)
14244     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14245     ;;
14246   esac
14247   dynamic_linker='Win32 ld.exe'
14248   # FIXME: first we should search . and the directory the executable is in
14249   shlibpath_var=PATH
14250   ;;
14251
14252 darwin* | rhapsody*)
14253   dynamic_linker="$host_os dyld"
14254   version_type=darwin
14255   need_lib_prefix=no
14256   need_version=no
14257   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14258   soname_spec='${libname}${release}${major}$shared_ext'
14259   shlibpath_overrides_runpath=yes
14260   shlibpath_var=DYLD_LIBRARY_PATH
14261   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14262   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14263   if test "$GCC" = yes; then
14264     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"`
14265   else
14266     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14267   fi
14268   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14269   ;;
14270
14271 dgux*)
14272   version_type=linux
14273   need_lib_prefix=no
14274   need_version=no
14275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14276   soname_spec='${libname}${release}${shared_ext}$major'
14277   shlibpath_var=LD_LIBRARY_PATH
14278   ;;
14279
14280 freebsd1*)
14281   dynamic_linker=no
14282   ;;
14283
14284 kfreebsd*-gnu)
14285   version_type=linux
14286   need_lib_prefix=no
14287   need_version=no
14288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14289   soname_spec='${libname}${release}${shared_ext}$major'
14290   shlibpath_var=LD_LIBRARY_PATH
14291   shlibpath_overrides_runpath=no
14292   hardcode_into_libs=yes
14293   dynamic_linker='GNU ld.so'
14294   ;;
14295
14296 freebsd* | dragonfly*)
14297   # DragonFly does not have aout.  When/if they implement a new
14298   # versioning mechanism, adjust this.
14299   if test -x /usr/bin/objformat; then
14300     objformat=`/usr/bin/objformat`
14301   else
14302     case $host_os in
14303     freebsd[123]*) objformat=aout ;;
14304     *) objformat=elf ;;
14305     esac
14306   fi
14307   version_type=freebsd-$objformat
14308   case $version_type in
14309     freebsd-elf*)
14310       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14311       need_version=no
14312       need_lib_prefix=no
14313       ;;
14314     freebsd-*)
14315       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14316       need_version=yes
14317       ;;
14318   esac
14319   shlibpath_var=LD_LIBRARY_PATH
14320   case $host_os in
14321   freebsd2*)
14322     shlibpath_overrides_runpath=yes
14323     ;;
14324   freebsd3.[01]* | freebsdelf3.[01]*)
14325     shlibpath_overrides_runpath=yes
14326     hardcode_into_libs=yes
14327     ;;
14328   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14329   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14330     shlibpath_overrides_runpath=no
14331     hardcode_into_libs=yes
14332     ;;
14333   freebsd*) # from 4.6 on
14334     shlibpath_overrides_runpath=yes
14335     hardcode_into_libs=yes
14336     ;;
14337   esac
14338   ;;
14339
14340 gnu*)
14341   version_type=linux
14342   need_lib_prefix=no
14343   need_version=no
14344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14345   soname_spec='${libname}${release}${shared_ext}$major'
14346   shlibpath_var=LD_LIBRARY_PATH
14347   hardcode_into_libs=yes
14348   ;;
14349
14350 hpux9* | hpux10* | hpux11*)
14351   # Give a soname corresponding to the major version so that dld.sl refuses to
14352   # link against other versions.
14353   version_type=sunos
14354   need_lib_prefix=no
14355   need_version=no
14356   case $host_cpu in
14357   ia64*)
14358     shrext_cmds='.so'
14359     hardcode_into_libs=yes
14360     dynamic_linker="$host_os dld.so"
14361     shlibpath_var=LD_LIBRARY_PATH
14362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
14366       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14367     else
14368       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14369     fi
14370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14371     ;;
14372    hppa*64*)
14373      shrext_cmds='.sl'
14374      hardcode_into_libs=yes
14375      dynamic_linker="$host_os dld.sl"
14376      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14377      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379      soname_spec='${libname}${release}${shared_ext}$major'
14380      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14381      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14382      ;;
14383    *)
14384     shrext_cmds='.sl'
14385     dynamic_linker="$host_os dld.sl"
14386     shlibpath_var=SHLIB_PATH
14387     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389     soname_spec='${libname}${release}${shared_ext}$major'
14390     ;;
14391   esac
14392   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14393   postinstall_cmds='chmod 555 $lib'
14394   ;;
14395
14396 interix3*)
14397   version_type=linux
14398   need_lib_prefix=no
14399   need_version=no
14400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14401   soname_spec='${libname}${release}${shared_ext}$major'
14402   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14403   shlibpath_var=LD_LIBRARY_PATH
14404   shlibpath_overrides_runpath=no
14405   hardcode_into_libs=yes
14406   ;;
14407
14408 irix5* | irix6* | nonstopux*)
14409   case $host_os in
14410     nonstopux*) version_type=nonstopux ;;
14411     *)
14412         if test "$lt_cv_prog_gnu_ld" = yes; then
14413                 version_type=linux
14414         else
14415                 version_type=irix
14416         fi ;;
14417   esac
14418   need_lib_prefix=no
14419   need_version=no
14420   soname_spec='${libname}${release}${shared_ext}$major'
14421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14422   case $host_os in
14423   irix5* | nonstopux*)
14424     libsuff= shlibsuff=
14425     ;;
14426   *)
14427     case $LD in # libtool.m4 will add one of these switches to LD
14428     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14429       libsuff= shlibsuff= libmagic=32-bit;;
14430     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14431       libsuff=32 shlibsuff=N32 libmagic=N32;;
14432     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14433       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14434     *) libsuff= shlibsuff= libmagic=never-match;;
14435     esac
14436     ;;
14437   esac
14438   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14439   shlibpath_overrides_runpath=no
14440   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14441   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14442   hardcode_into_libs=yes
14443   ;;
14444
14445 # No shared lib support for Linux oldld, aout, or coff.
14446 linux*oldld* | linux*aout* | linux*coff*)
14447   dynamic_linker=no
14448   ;;
14449
14450 # This must be Linux ELF.
14451 linux*)
14452   version_type=linux
14453   need_lib_prefix=no
14454   need_version=no
14455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14456   soname_spec='${libname}${release}${shared_ext}$major'
14457   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14458   shlibpath_var=LD_LIBRARY_PATH
14459   shlibpath_overrides_runpath=no
14460   # This implies no fast_install, which is unacceptable.
14461   # Some rework will be needed to allow for fast_install
14462   # before this can be enabled.
14463   hardcode_into_libs=yes
14464
14465   # Append ld.so.conf contents to the search path
14466   if test -f /etc/ld.so.conf; then
14467     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' ' '`
14468     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14469   fi
14470
14471   # We used to test for /lib/ld.so.1 and disable shared libraries on
14472   # powerpc, because MkLinux only supported shared libraries with the
14473   # GNU dynamic linker.  Since this was broken with cross compilers,
14474   # most powerpc-linux boxes support dynamic linking these days and
14475   # people can always --disable-shared, the test was removed, and we
14476   # assume the GNU/Linux dynamic linker is in use.
14477   dynamic_linker='GNU/Linux ld.so'
14478   ;;
14479
14480 netbsdelf*-gnu)
14481   version_type=linux
14482   need_lib_prefix=no
14483   need_version=no
14484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14485   soname_spec='${libname}${release}${shared_ext}$major'
14486   shlibpath_var=LD_LIBRARY_PATH
14487   shlibpath_overrides_runpath=no
14488   hardcode_into_libs=yes
14489   dynamic_linker='NetBSD ld.elf_so'
14490   ;;
14491
14492 knetbsd*-gnu)
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=no
14500   hardcode_into_libs=yes
14501   dynamic_linker='GNU ld.so'
14502   ;;
14503
14504 netbsd*)
14505   version_type=sunos
14506   need_lib_prefix=no
14507   need_version=no
14508   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14509     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14510     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14511     dynamic_linker='NetBSD (a.out) ld.so'
14512   else
14513     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14514     soname_spec='${libname}${release}${shared_ext}$major'
14515     dynamic_linker='NetBSD ld.elf_so'
14516   fi
14517   shlibpath_var=LD_LIBRARY_PATH
14518   shlibpath_overrides_runpath=yes
14519   hardcode_into_libs=yes
14520   ;;
14521
14522 newsos6)
14523   version_type=linux
14524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525   shlibpath_var=LD_LIBRARY_PATH
14526   shlibpath_overrides_runpath=yes
14527   ;;
14528
14529 nto-qnx*)
14530   version_type=linux
14531   need_lib_prefix=no
14532   need_version=no
14533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534   soname_spec='${libname}${release}${shared_ext}$major'
14535   shlibpath_var=LD_LIBRARY_PATH
14536   shlibpath_overrides_runpath=yes
14537   ;;
14538
14539 openbsd*)
14540   version_type=sunos
14541   sys_lib_dlsearch_path_spec="/usr/lib"
14542   need_lib_prefix=no
14543   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14544   case $host_os in
14545     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14546     *)                         need_version=no  ;;
14547   esac
14548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14549   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14550   shlibpath_var=LD_LIBRARY_PATH
14551   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14552     case $host_os in
14553       openbsd2.[89] | openbsd2.[89].*)
14554         shlibpath_overrides_runpath=no
14555         ;;
14556       *)
14557         shlibpath_overrides_runpath=yes
14558         ;;
14559       esac
14560   else
14561     shlibpath_overrides_runpath=yes
14562   fi
14563   ;;
14564
14565 os2*)
14566   libname_spec='$name'
14567   shrext_cmds=".dll"
14568   need_lib_prefix=no
14569   library_names_spec='$libname${shared_ext} $libname.a'
14570   dynamic_linker='OS/2 ld.exe'
14571   shlibpath_var=LIBPATH
14572   ;;
14573
14574 osf3* | osf4* | osf5*)
14575   version_type=osf
14576   need_lib_prefix=no
14577   need_version=no
14578   soname_spec='${libname}${release}${shared_ext}$major'
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580   shlibpath_var=LD_LIBRARY_PATH
14581   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14582   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14583   ;;
14584
14585 solaris*)
14586   version_type=linux
14587   need_lib_prefix=no
14588   need_version=no
14589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14590   soname_spec='${libname}${release}${shared_ext}$major'
14591   shlibpath_var=LD_LIBRARY_PATH
14592   shlibpath_overrides_runpath=yes
14593   hardcode_into_libs=yes
14594   # ldd complains unless libraries are executable
14595   postinstall_cmds='chmod +x $lib'
14596   ;;
14597
14598 sunos4*)
14599   version_type=sunos
14600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14601   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14602   shlibpath_var=LD_LIBRARY_PATH
14603   shlibpath_overrides_runpath=yes
14604   if test "$with_gnu_ld" = yes; then
14605     need_lib_prefix=no
14606   fi
14607   need_version=yes
14608   ;;
14609
14610 sysv4 | sysv4.3*)
14611   version_type=linux
14612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613   soname_spec='${libname}${release}${shared_ext}$major'
14614   shlibpath_var=LD_LIBRARY_PATH
14615   case $host_vendor in
14616     sni)
14617       shlibpath_overrides_runpath=no
14618       need_lib_prefix=no
14619       export_dynamic_flag_spec='${wl}-Blargedynsym'
14620       runpath_var=LD_RUN_PATH
14621       ;;
14622     siemens)
14623       need_lib_prefix=no
14624       ;;
14625     motorola)
14626       need_lib_prefix=no
14627       need_version=no
14628       shlibpath_overrides_runpath=no
14629       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14630       ;;
14631   esac
14632   ;;
14633
14634 sysv4*MP*)
14635   if test -d /usr/nec ;then
14636     version_type=linux
14637     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14638     soname_spec='$libname${shared_ext}.$major'
14639     shlibpath_var=LD_LIBRARY_PATH
14640   fi
14641   ;;
14642
14643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14644   version_type=freebsd-elf
14645   need_lib_prefix=no
14646   need_version=no
14647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14648   soname_spec='${libname}${release}${shared_ext}$major'
14649   shlibpath_var=LD_LIBRARY_PATH
14650   hardcode_into_libs=yes
14651   if test "$with_gnu_ld" = yes; then
14652     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14653     shlibpath_overrides_runpath=no
14654   else
14655     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14656     shlibpath_overrides_runpath=yes
14657     case $host_os in
14658       sco3.2v5*)
14659         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14660         ;;
14661     esac
14662   fi
14663   sys_lib_dlsearch_path_spec='/usr/lib'
14664   ;;
14665
14666 uts4*)
14667   version_type=linux
14668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669   soname_spec='${libname}${release}${shared_ext}$major'
14670   shlibpath_var=LD_LIBRARY_PATH
14671   ;;
14672
14673 *)
14674   dynamic_linker=no
14675   ;;
14676 esac
14677 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14678 echo "${ECHO_T}$dynamic_linker" >&6
14679 test "$dynamic_linker" = no && can_build_shared=no
14680
14681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14682 if test "$GCC" = yes; then
14683   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14684 fi
14685
14686 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14687 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14688 hardcode_action_F77=
14689 if test -n "$hardcode_libdir_flag_spec_F77" || \
14690    test -n "$runpath_var_F77" || \
14691    test "X$hardcode_automatic_F77" = "Xyes" ; then
14692
14693   # We can hardcode non-existant directories.
14694   if test "$hardcode_direct_F77" != no &&
14695      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14696      # have to relink, otherwise we might link with an installed library
14697      # when we should be linking with a yet-to-be-installed one
14698      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14699      test "$hardcode_minus_L_F77" != no; then
14700     # Linking always hardcodes the temporary library directory.
14701     hardcode_action_F77=relink
14702   else
14703     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14704     hardcode_action_F77=immediate
14705   fi
14706 else
14707   # We cannot hardcode anything, or else we can only hardcode existing
14708   # directories.
14709   hardcode_action_F77=unsupported
14710 fi
14711 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14712 echo "${ECHO_T}$hardcode_action_F77" >&6
14713
14714 if test "$hardcode_action_F77" = relink; then
14715   # Fast installation is not supported
14716   enable_fast_install=no
14717 elif test "$shlibpath_overrides_runpath" = yes ||
14718      test "$enable_shared" = no; then
14719   # Fast installation is not necessary
14720   enable_fast_install=needless
14721 fi
14722
14723
14724 # The else clause should only fire when bootstrapping the
14725 # libtool distribution, otherwise you forgot to ship ltmain.sh
14726 # with your package, and you will get complaints that there are
14727 # no rules to generate ltmain.sh.
14728 if test -f "$ltmain"; then
14729   # See if we are running on zsh, and set the options which allow our commands through
14730   # without removal of \ escapes.
14731   if test -n "${ZSH_VERSION+set}" ; then
14732     setopt NO_GLOB_SUBST
14733   fi
14734   # Now quote all the things that may contain metacharacters while being
14735   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14736   # variables and quote the copies for generation of the libtool script.
14737   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14738     SED SHELL STRIP \
14739     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14740     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14741     deplibs_check_method reload_flag reload_cmds need_locks \
14742     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14743     lt_cv_sys_global_symbol_to_c_name_address \
14744     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14745     old_postinstall_cmds old_postuninstall_cmds \
14746     compiler_F77 \
14747     CC_F77 \
14748     LD_F77 \
14749     lt_prog_compiler_wl_F77 \
14750     lt_prog_compiler_pic_F77 \
14751     lt_prog_compiler_static_F77 \
14752     lt_prog_compiler_no_builtin_flag_F77 \
14753     export_dynamic_flag_spec_F77 \
14754     thread_safe_flag_spec_F77 \
14755     whole_archive_flag_spec_F77 \
14756     enable_shared_with_static_runtimes_F77 \
14757     old_archive_cmds_F77 \
14758     old_archive_from_new_cmds_F77 \
14759     predep_objects_F77 \
14760     postdep_objects_F77 \
14761     predeps_F77 \
14762     postdeps_F77 \
14763     compiler_lib_search_path_F77 \
14764     archive_cmds_F77 \
14765     archive_expsym_cmds_F77 \
14766     postinstall_cmds_F77 \
14767     postuninstall_cmds_F77 \
14768     old_archive_from_expsyms_cmds_F77 \
14769     allow_undefined_flag_F77 \
14770     no_undefined_flag_F77 \
14771     export_symbols_cmds_F77 \
14772     hardcode_libdir_flag_spec_F77 \
14773     hardcode_libdir_flag_spec_ld_F77 \
14774     hardcode_libdir_separator_F77 \
14775     hardcode_automatic_F77 \
14776     module_cmds_F77 \
14777     module_expsym_cmds_F77 \
14778     lt_cv_prog_compiler_c_o_F77 \
14779     exclude_expsyms_F77 \
14780     include_expsyms_F77; do
14781
14782     case $var in
14783     old_archive_cmds_F77 | \
14784     old_archive_from_new_cmds_F77 | \
14785     archive_cmds_F77 | \
14786     archive_expsym_cmds_F77 | \
14787     module_cmds_F77 | \
14788     module_expsym_cmds_F77 | \
14789     old_archive_from_expsyms_cmds_F77 | \
14790     export_symbols_cmds_F77 | \
14791     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14792     postinstall_cmds | postuninstall_cmds | \
14793     old_postinstall_cmds | old_postuninstall_cmds | \
14794     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14795       # Double-quote double-evaled strings.
14796       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14797       ;;
14798     *)
14799       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14800       ;;
14801     esac
14802   done
14803
14804   case $lt_echo in
14805   *'\$0 --fallback-echo"')
14806     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14807     ;;
14808   esac
14809
14810 cfgfile="$ofile"
14811
14812   cat <<__EOF__ >> "$cfgfile"
14813 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14814
14815 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14816
14817 # Shell to use when invoking shell scripts.
14818 SHELL=$lt_SHELL
14819
14820 # Whether or not to build shared libraries.
14821 build_libtool_libs=$enable_shared
14822
14823 # Whether or not to build static libraries.
14824 build_old_libs=$enable_static
14825
14826 # Whether or not to add -lc for building shared libraries.
14827 build_libtool_need_lc=$archive_cmds_need_lc_F77
14828
14829 # Whether or not to disallow shared libs when runtime libs are static
14830 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14831
14832 # Whether or not to optimize for fast installation.
14833 fast_install=$enable_fast_install
14834
14835 # The host system.
14836 host_alias=$host_alias
14837 host=$host
14838 host_os=$host_os
14839
14840 # The build system.
14841 build_alias=$build_alias
14842 build=$build
14843 build_os=$build_os
14844
14845 # An echo program that does not interpret backslashes.
14846 echo=$lt_echo
14847
14848 # The archiver.
14849 AR=$lt_AR
14850 AR_FLAGS=$lt_AR_FLAGS
14851
14852 # A C compiler.
14853 LTCC=$lt_LTCC
14854
14855 # LTCC compiler flags.
14856 LTCFLAGS=$lt_LTCFLAGS
14857
14858 # A language-specific compiler.
14859 CC=$lt_compiler_F77
14860
14861 # Is the compiler the GNU C compiler?
14862 with_gcc=$GCC_F77
14863
14864 # An ERE matcher.
14865 EGREP=$lt_EGREP
14866
14867 # The linker used to build libraries.
14868 LD=$lt_LD_F77
14869
14870 # Whether we need hard or soft links.
14871 LN_S=$lt_LN_S
14872
14873 # A BSD-compatible nm program.
14874 NM=$lt_NM
14875
14876 # A symbol stripping program
14877 STRIP=$lt_STRIP
14878
14879 # Used to examine libraries when file_magic_cmd begins "file"
14880 MAGIC_CMD=$MAGIC_CMD
14881
14882 # Used on cygwin: DLL creation program.
14883 DLLTOOL="$DLLTOOL"
14884
14885 # Used on cygwin: object dumper.
14886 OBJDUMP="$OBJDUMP"
14887
14888 # Used on cygwin: assembler.
14889 AS="$AS"
14890
14891 # The name of the directory that contains temporary libtool files.
14892 objdir=$objdir
14893
14894 # How to create reloadable object files.
14895 reload_flag=$lt_reload_flag
14896 reload_cmds=$lt_reload_cmds
14897
14898 # How to pass a linker flag through the compiler.
14899 wl=$lt_lt_prog_compiler_wl_F77
14900
14901 # Object file suffix (normally "o").
14902 objext="$ac_objext"
14903
14904 # Old archive suffix (normally "a").
14905 libext="$libext"
14906
14907 # Shared library suffix (normally ".so").
14908 shrext_cmds='$shrext_cmds'
14909
14910 # Executable file suffix (normally "").
14911 exeext="$exeext"
14912
14913 # Additional compiler flags for building library objects.
14914 pic_flag=$lt_lt_prog_compiler_pic_F77
14915 pic_mode=$pic_mode
14916
14917 # What is the maximum length of a command?
14918 max_cmd_len=$lt_cv_sys_max_cmd_len
14919
14920 # Does compiler simultaneously support -c and -o options?
14921 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14922
14923 # Must we lock files when doing compilation?
14924 need_locks=$lt_need_locks
14925
14926 # Do we need the lib prefix for modules?
14927 need_lib_prefix=$need_lib_prefix
14928
14929 # Do we need a version for libraries?
14930 need_version=$need_version
14931
14932 # Whether dlopen is supported.
14933 dlopen_support=$enable_dlopen
14934
14935 # Whether dlopen of programs is supported.
14936 dlopen_self=$enable_dlopen_self
14937
14938 # Whether dlopen of statically linked programs is supported.
14939 dlopen_self_static=$enable_dlopen_self_static
14940
14941 # Compiler flag to prevent dynamic linking.
14942 link_static_flag=$lt_lt_prog_compiler_static_F77
14943
14944 # Compiler flag to turn off builtin functions.
14945 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14946
14947 # Compiler flag to allow reflexive dlopens.
14948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14949
14950 # Compiler flag to generate shared objects directly from archives.
14951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14952
14953 # Compiler flag to generate thread-safe objects.
14954 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14955
14956 # Library versioning type.
14957 version_type=$version_type
14958
14959 # Format of library name prefix.
14960 libname_spec=$lt_libname_spec
14961
14962 # List of archive names.  First name is the real one, the rest are links.
14963 # The last name is the one that the linker finds with -lNAME.
14964 library_names_spec=$lt_library_names_spec
14965
14966 # The coded name of the library, if different from the real name.
14967 soname_spec=$lt_soname_spec
14968
14969 # Commands used to build and install an old-style archive.
14970 RANLIB=$lt_RANLIB
14971 old_archive_cmds=$lt_old_archive_cmds_F77
14972 old_postinstall_cmds=$lt_old_postinstall_cmds
14973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14974
14975 # Create an old-style archive from a shared archive.
14976 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14977
14978 # Create a temporary old-style archive to link instead of a shared archive.
14979 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14980
14981 # Commands used to build and install a shared archive.
14982 archive_cmds=$lt_archive_cmds_F77
14983 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14984 postinstall_cmds=$lt_postinstall_cmds
14985 postuninstall_cmds=$lt_postuninstall_cmds
14986
14987 # Commands used to build a loadable module (assumed same as above if empty)
14988 module_cmds=$lt_module_cmds_F77
14989 module_expsym_cmds=$lt_module_expsym_cmds_F77
14990
14991 # Commands to strip libraries.
14992 old_striplib=$lt_old_striplib
14993 striplib=$lt_striplib
14994
14995 # Dependencies to place before the objects being linked to create a
14996 # shared library.
14997 predep_objects=$lt_predep_objects_F77
14998
14999 # Dependencies to place after the objects being linked to create a
15000 # shared library.
15001 postdep_objects=$lt_postdep_objects_F77
15002
15003 # Dependencies to place before the objects being linked to create a
15004 # shared library.
15005 predeps=$lt_predeps_F77
15006
15007 # Dependencies to place after the objects being linked to create a
15008 # shared library.
15009 postdeps=$lt_postdeps_F77
15010
15011 # The library search path used internally by the compiler when linking
15012 # a shared library.
15013 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15014
15015 # Method to check whether dependent libraries are shared objects.
15016 deplibs_check_method=$lt_deplibs_check_method
15017
15018 # Command to use when deplibs_check_method == file_magic.
15019 file_magic_cmd=$lt_file_magic_cmd
15020
15021 # Flag that allows shared libraries with undefined symbols to be built.
15022 allow_undefined_flag=$lt_allow_undefined_flag_F77
15023
15024 # Flag that forces no undefined symbols.
15025 no_undefined_flag=$lt_no_undefined_flag_F77
15026
15027 # Commands used to finish a libtool library installation in a directory.
15028 finish_cmds=$lt_finish_cmds
15029
15030 # Same as above, but a single script fragment to be evaled but not shown.
15031 finish_eval=$lt_finish_eval
15032
15033 # Take the output of nm and produce a listing of raw symbols and C names.
15034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15035
15036 # Transform the output of nm in a proper C declaration
15037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15038
15039 # Transform the output of nm in a C name address pair
15040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15041
15042 # This is the shared library runtime path variable.
15043 runpath_var=$runpath_var
15044
15045 # This is the shared library path variable.
15046 shlibpath_var=$shlibpath_var
15047
15048 # Is shlibpath searched before the hard-coded library search path?
15049 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15050
15051 # How to hardcode a shared library path into an executable.
15052 hardcode_action=$hardcode_action_F77
15053
15054 # Whether we should hardcode library paths into libraries.
15055 hardcode_into_libs=$hardcode_into_libs
15056
15057 # Flag to hardcode \$libdir into a binary during linking.
15058 # This must work even if \$libdir does not exist.
15059 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15060
15061 # If ld is used when linking, flag to hardcode \$libdir into
15062 # a binary during linking. This must work even if \$libdir does
15063 # not exist.
15064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15065
15066 # Whether we need a single -rpath flag with a separated argument.
15067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15068
15069 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15070 # resulting binary.
15071 hardcode_direct=$hardcode_direct_F77
15072
15073 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15074 # resulting binary.
15075 hardcode_minus_L=$hardcode_minus_L_F77
15076
15077 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15078 # the resulting binary.
15079 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15080
15081 # Set to yes if building a shared library automatically hardcodes DIR into the library
15082 # and all subsequent libraries and executables linked against it.
15083 hardcode_automatic=$hardcode_automatic_F77
15084
15085 # Variables whose values should be saved in libtool wrapper scripts and
15086 # restored at relink time.
15087 variables_saved_for_relink="$variables_saved_for_relink"
15088
15089 # Whether libtool must link a program against all its dependency libraries.
15090 link_all_deplibs=$link_all_deplibs_F77
15091
15092 # Compile-time system search path for libraries
15093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15094
15095 # Run-time system search path for libraries
15096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15097
15098 # Fix the shell variable \$srcfile for the compiler.
15099 fix_srcfile_path="$fix_srcfile_path_F77"
15100
15101 # Set to yes if exported symbols are required.
15102 always_export_symbols=$always_export_symbols_F77
15103
15104 # The commands to list exported symbols.
15105 export_symbols_cmds=$lt_export_symbols_cmds_F77
15106
15107 # The commands to extract the exported symbol list from a shared archive.
15108 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15109
15110 # Symbols that should not be listed in the preloaded symbols.
15111 exclude_expsyms=$lt_exclude_expsyms_F77
15112
15113 # Symbols that must always be exported.
15114 include_expsyms=$lt_include_expsyms_F77
15115
15116 # ### END LIBTOOL TAG CONFIG: $tagname
15117
15118 __EOF__
15119
15120
15121 else
15122   # If there is no Makefile yet, we rely on a make rule to execute
15123   # `config.status --recheck' to rerun these tests and create the
15124   # libtool script then.
15125   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15126   if test -f "$ltmain_in"; then
15127     test -f Makefile && make "$ltmain"
15128   fi
15129 fi
15130
15131
15132 ac_ext=c
15133 ac_cpp='$CPP $CPPFLAGS'
15134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15137
15138 CC="$lt_save_CC"
15139
15140         else
15141           tagname=""
15142         fi
15143         ;;
15144
15145       GCJ)
15146         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15147
15148
15149
15150 # Source file extension for Java test sources.
15151 ac_ext=java
15152
15153 # Object file extension for compiled Java test sources.
15154 objext=o
15155 objext_GCJ=$objext
15156
15157 # Code to be used in simple compile tests
15158 lt_simple_compile_test_code="class foo {}\n"
15159
15160 # Code to be used in simple link tests
15161 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15162
15163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15164
15165 # If no C compiler was specified, use CC.
15166 LTCC=${LTCC-"$CC"}
15167
15168 # If no C compiler flags were specified, use CFLAGS.
15169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15170
15171 # Allow CC to be a program name with arguments.
15172 compiler=$CC
15173
15174
15175 # save warnings/boilerplate of simple test code
15176 ac_outfile=conftest.$ac_objext
15177 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15178 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15179 _lt_compiler_boilerplate=`cat conftest.err`
15180 $rm conftest*
15181
15182 ac_outfile=conftest.$ac_objext
15183 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15184 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15185 _lt_linker_boilerplate=`cat conftest.err`
15186 $rm conftest*
15187
15188
15189 # Allow CC to be a program name with arguments.
15190 lt_save_CC="$CC"
15191 CC=${GCJ-"gcj"}
15192 compiler=$CC
15193 compiler_GCJ=$CC
15194 for cc_temp in $compiler""; do
15195   case $cc_temp in
15196     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15197     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15198     \-*) ;;
15199     *) break;;
15200   esac
15201 done
15202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15203
15204
15205 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15206 archive_cmds_need_lc_GCJ=no
15207
15208 old_archive_cmds_GCJ=$old_archive_cmds
15209
15210
15211 lt_prog_compiler_no_builtin_flag_GCJ=
15212
15213 if test "$GCC" = yes; then
15214   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15215
15216
15217 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222   lt_cv_prog_compiler_rtti_exceptions=no
15223   ac_outfile=conftest.$ac_objext
15224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15225    lt_compiler_flag="-fno-rtti -fno-exceptions"
15226    # Insert the option either (1) after the last *FLAGS variable, or
15227    # (2) before a word containing "conftest.", or (3) at the end.
15228    # Note that $ac_compile itself does not contain backslashes and begins
15229    # with a dollar sign (not a hyphen), so the echo should work correctly.
15230    # The option is referenced via a variable to avoid confusing sed.
15231    lt_compile=`echo "$ac_compile" | $SED \
15232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234    -e 's:$: $lt_compiler_flag:'`
15235    (eval echo "\"\$as_me:15235: $lt_compile\"" >&5)
15236    (eval "$lt_compile" 2>conftest.err)
15237    ac_status=$?
15238    cat conftest.err >&5
15239    echo "$as_me:15239: \$? = $ac_status" >&5
15240    if (exit $ac_status) && test -s "$ac_outfile"; then
15241      # The compiler can only warn and ignore the option if not recognized
15242      # So say no if there are warnings other than the usual output.
15243      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15244      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15245      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15246        lt_cv_prog_compiler_rtti_exceptions=yes
15247      fi
15248    fi
15249    $rm conftest*
15250
15251 fi
15252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15253 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15254
15255 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15256     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15257 else
15258     :
15259 fi
15260
15261 fi
15262
15263 lt_prog_compiler_wl_GCJ=
15264 lt_prog_compiler_pic_GCJ=
15265 lt_prog_compiler_static_GCJ=
15266
15267 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15268 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15269
15270   if test "$GCC" = yes; then
15271     lt_prog_compiler_wl_GCJ='-Wl,'
15272     lt_prog_compiler_static_GCJ='-static'
15273
15274     case $host_os in
15275       aix*)
15276       # All AIX code is PIC.
15277       if test "$host_cpu" = ia64; then
15278         # AIX 5 now supports IA64 processor
15279         lt_prog_compiler_static_GCJ='-Bstatic'
15280       fi
15281       ;;
15282
15283     amigaos*)
15284       # FIXME: we need at least 68020 code to build shared libraries, but
15285       # adding the `-m68020' flag to GCC prevents building anything better,
15286       # like `-m68040'.
15287       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15288       ;;
15289
15290     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15291       # PIC is the default for these OSes.
15292       ;;
15293
15294     mingw* | pw32* | os2*)
15295       # This hack is so that the source file can tell whether it is being
15296       # built for inclusion in a dll (and should export symbols for example).
15297       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15298       ;;
15299
15300     darwin* | rhapsody*)
15301       # PIC is the default on this platform
15302       # Common symbols not allowed in MH_DYLIB files
15303       lt_prog_compiler_pic_GCJ='-fno-common'
15304       ;;
15305
15306     interix3*)
15307       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15308       # Instead, we relocate shared libraries at runtime.
15309       ;;
15310
15311     msdosdjgpp*)
15312       # Just because we use GCC doesn't mean we suddenly get shared libraries
15313       # on systems that don't support them.
15314       lt_prog_compiler_can_build_shared_GCJ=no
15315       enable_shared=no
15316       ;;
15317
15318     sysv4*MP*)
15319       if test -d /usr/nec; then
15320         lt_prog_compiler_pic_GCJ=-Kconform_pic
15321       fi
15322       ;;
15323
15324     hpux*)
15325       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15326       # not for PA HP-UX.
15327       case $host_cpu in
15328       hppa*64*|ia64*)
15329         # +Z the default
15330         ;;
15331       *)
15332         lt_prog_compiler_pic_GCJ='-fPIC'
15333         ;;
15334       esac
15335       ;;
15336
15337     *)
15338       lt_prog_compiler_pic_GCJ='-fPIC'
15339       ;;
15340     esac
15341   else
15342     # PORTME Check for flag to pass linker flags through the system compiler.
15343     case $host_os in
15344     aix*)
15345       lt_prog_compiler_wl_GCJ='-Wl,'
15346       if test "$host_cpu" = ia64; then
15347         # AIX 5 now supports IA64 processor
15348         lt_prog_compiler_static_GCJ='-Bstatic'
15349       else
15350         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15351       fi
15352       ;;
15353       darwin*)
15354         # PIC is the default on this platform
15355         # Common symbols not allowed in MH_DYLIB files
15356        case $cc_basename in
15357          xlc*)
15358          lt_prog_compiler_pic_GCJ='-qnocommon'
15359          lt_prog_compiler_wl_GCJ='-Wl,'
15360          ;;
15361        esac
15362        ;;
15363
15364     mingw* | pw32* | os2*)
15365       # This hack is so that the source file can tell whether it is being
15366       # built for inclusion in a dll (and should export symbols for example).
15367       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15368       ;;
15369
15370     hpux9* | hpux10* | hpux11*)
15371       lt_prog_compiler_wl_GCJ='-Wl,'
15372       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15373       # not for PA HP-UX.
15374       case $host_cpu in
15375       hppa*64*|ia64*)
15376         # +Z the default
15377         ;;
15378       *)
15379         lt_prog_compiler_pic_GCJ='+Z'
15380         ;;
15381       esac
15382       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15383       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15384       ;;
15385
15386     irix5* | irix6* | nonstopux*)
15387       lt_prog_compiler_wl_GCJ='-Wl,'
15388       # PIC (with -KPIC) is the default.
15389       lt_prog_compiler_static_GCJ='-non_shared'
15390       ;;
15391
15392     newsos6)
15393       lt_prog_compiler_pic_GCJ='-KPIC'
15394       lt_prog_compiler_static_GCJ='-Bstatic'
15395       ;;
15396
15397     linux*)
15398       case $cc_basename in
15399       icc* | ecc*)
15400         lt_prog_compiler_wl_GCJ='-Wl,'
15401         lt_prog_compiler_pic_GCJ='-KPIC'
15402         lt_prog_compiler_static_GCJ='-static'
15403         ;;
15404       pgcc* | pgf77* | pgf90* | pgf95*)
15405         # Portland Group compilers (*not* the Pentium gcc compiler,
15406         # which looks to be a dead project)
15407         lt_prog_compiler_wl_GCJ='-Wl,'
15408         lt_prog_compiler_pic_GCJ='-fpic'
15409         lt_prog_compiler_static_GCJ='-Bstatic'
15410         ;;
15411       ccc*)
15412         lt_prog_compiler_wl_GCJ='-Wl,'
15413         # All Alpha code is PIC.
15414         lt_prog_compiler_static_GCJ='-non_shared'
15415         ;;
15416       esac
15417       ;;
15418
15419     osf3* | osf4* | osf5*)
15420       lt_prog_compiler_wl_GCJ='-Wl,'
15421       # All OSF/1 code is PIC.
15422       lt_prog_compiler_static_GCJ='-non_shared'
15423       ;;
15424
15425     solaris*)
15426       lt_prog_compiler_pic_GCJ='-KPIC'
15427       lt_prog_compiler_static_GCJ='-Bstatic'
15428       case $cc_basename in
15429       f77* | f90* | f95*)
15430         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15431       *)
15432         lt_prog_compiler_wl_GCJ='-Wl,';;
15433       esac
15434       ;;
15435
15436     sunos4*)
15437       lt_prog_compiler_wl_GCJ='-Qoption ld '
15438       lt_prog_compiler_pic_GCJ='-PIC'
15439       lt_prog_compiler_static_GCJ='-Bstatic'
15440       ;;
15441
15442     sysv4 | sysv4.2uw2* | sysv4.3*)
15443       lt_prog_compiler_wl_GCJ='-Wl,'
15444       lt_prog_compiler_pic_GCJ='-KPIC'
15445       lt_prog_compiler_static_GCJ='-Bstatic'
15446       ;;
15447
15448     sysv4*MP*)
15449       if test -d /usr/nec ;then
15450         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15451         lt_prog_compiler_static_GCJ='-Bstatic'
15452       fi
15453       ;;
15454
15455     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15456       lt_prog_compiler_wl_GCJ='-Wl,'
15457       lt_prog_compiler_pic_GCJ='-KPIC'
15458       lt_prog_compiler_static_GCJ='-Bstatic'
15459       ;;
15460
15461     unicos*)
15462       lt_prog_compiler_wl_GCJ='-Wl,'
15463       lt_prog_compiler_can_build_shared_GCJ=no
15464       ;;
15465
15466     uts4*)
15467       lt_prog_compiler_pic_GCJ='-pic'
15468       lt_prog_compiler_static_GCJ='-Bstatic'
15469       ;;
15470
15471     *)
15472       lt_prog_compiler_can_build_shared_GCJ=no
15473       ;;
15474     esac
15475   fi
15476
15477 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15478 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15479
15480 #
15481 # Check to make sure the PIC flag actually works.
15482 #
15483 if test -n "$lt_prog_compiler_pic_GCJ"; then
15484
15485 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15487 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15488   echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490   lt_prog_compiler_pic_works_GCJ=no
15491   ac_outfile=conftest.$ac_objext
15492    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15493    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15494    # Insert the option either (1) after the last *FLAGS variable, or
15495    # (2) before a word containing "conftest.", or (3) at the end.
15496    # Note that $ac_compile itself does not contain backslashes and begins
15497    # with a dollar sign (not a hyphen), so the echo should work correctly.
15498    # The option is referenced via a variable to avoid confusing sed.
15499    lt_compile=`echo "$ac_compile" | $SED \
15500    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15501    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15502    -e 's:$: $lt_compiler_flag:'`
15503    (eval echo "\"\$as_me:15503: $lt_compile\"" >&5)
15504    (eval "$lt_compile" 2>conftest.err)
15505    ac_status=$?
15506    cat conftest.err >&5
15507    echo "$as_me:15507: \$? = $ac_status" >&5
15508    if (exit $ac_status) && test -s "$ac_outfile"; then
15509      # The compiler can only warn and ignore the option if not recognized
15510      # So say no if there are warnings other than the usual output.
15511      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15512      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15513      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15514        lt_prog_compiler_pic_works_GCJ=yes
15515      fi
15516    fi
15517    $rm conftest*
15518
15519 fi
15520 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15521 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15522
15523 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15524     case $lt_prog_compiler_pic_GCJ in
15525      "" | " "*) ;;
15526      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15527      esac
15528 else
15529     lt_prog_compiler_pic_GCJ=
15530      lt_prog_compiler_can_build_shared_GCJ=no
15531 fi
15532
15533 fi
15534 case $host_os in
15535   # For platforms which do not support PIC, -DPIC is meaningless:
15536   *djgpp*)
15537     lt_prog_compiler_pic_GCJ=
15538     ;;
15539   *)
15540     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15541     ;;
15542 esac
15543
15544 #
15545 # Check to make sure the static flag actually works.
15546 #
15547 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15548 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15549 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15550 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15551   echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553   lt_prog_compiler_static_works_GCJ=no
15554    save_LDFLAGS="$LDFLAGS"
15555    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15556    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15557    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15558      # The linker can only warn and ignore the option if not recognized
15559      # So say no if there are warnings
15560      if test -s conftest.err; then
15561        # Append any errors to the config.log.
15562        cat conftest.err 1>&5
15563        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15564        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15565        if diff conftest.exp conftest.er2 >/dev/null; then
15566          lt_prog_compiler_static_works_GCJ=yes
15567        fi
15568      else
15569        lt_prog_compiler_static_works_GCJ=yes
15570      fi
15571    fi
15572    $rm conftest*
15573    LDFLAGS="$save_LDFLAGS"
15574
15575 fi
15576 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15577 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15578
15579 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15580     :
15581 else
15582     lt_prog_compiler_static_GCJ=
15583 fi
15584
15585
15586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15588 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15589   echo $ECHO_N "(cached) $ECHO_C" >&6
15590 else
15591   lt_cv_prog_compiler_c_o_GCJ=no
15592    $rm -r conftest 2>/dev/null
15593    mkdir conftest
15594    cd conftest
15595    mkdir out
15596    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15597
15598    lt_compiler_flag="-o out/conftest2.$ac_objext"
15599    # Insert the option either (1) after the last *FLAGS variable, or
15600    # (2) before a word containing "conftest.", or (3) at the end.
15601    # Note that $ac_compile itself does not contain backslashes and begins
15602    # with a dollar sign (not a hyphen), so the echo should work correctly.
15603    lt_compile=`echo "$ac_compile" | $SED \
15604    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15605    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15606    -e 's:$: $lt_compiler_flag:'`
15607    (eval echo "\"\$as_me:15607: $lt_compile\"" >&5)
15608    (eval "$lt_compile" 2>out/conftest.err)
15609    ac_status=$?
15610    cat out/conftest.err >&5
15611    echo "$as_me:15611: \$? = $ac_status" >&5
15612    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15613    then
15614      # The compiler can only warn and ignore the option if not recognized
15615      # So say no if there are warnings
15616      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15617      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15618      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15619        lt_cv_prog_compiler_c_o_GCJ=yes
15620      fi
15621    fi
15622    chmod u+w . 2>&5
15623    $rm conftest*
15624    # SGI C++ compiler will create directory out/ii_files/ for
15625    # template instantiation
15626    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15627    $rm out/* && rmdir out
15628    cd ..
15629    rmdir conftest
15630    $rm conftest*
15631
15632 fi
15633 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15634 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15635
15636
15637 hard_links="nottested"
15638 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15639   # do not overwrite the value of need_locks provided by the user
15640   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15641 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15642   hard_links=yes
15643   $rm conftest*
15644   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15645   touch conftest.a
15646   ln conftest.a conftest.b 2>&5 || hard_links=no
15647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15648   echo "$as_me:$LINENO: result: $hard_links" >&5
15649 echo "${ECHO_T}$hard_links" >&6
15650   if test "$hard_links" = no; then
15651     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15652 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15653     need_locks=warn
15654   fi
15655 else
15656   need_locks=no
15657 fi
15658
15659 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15660 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15661
15662   runpath_var=
15663   allow_undefined_flag_GCJ=
15664   enable_shared_with_static_runtimes_GCJ=no
15665   archive_cmds_GCJ=
15666   archive_expsym_cmds_GCJ=
15667   old_archive_From_new_cmds_GCJ=
15668   old_archive_from_expsyms_cmds_GCJ=
15669   export_dynamic_flag_spec_GCJ=
15670   whole_archive_flag_spec_GCJ=
15671   thread_safe_flag_spec_GCJ=
15672   hardcode_libdir_flag_spec_GCJ=
15673   hardcode_libdir_flag_spec_ld_GCJ=
15674   hardcode_libdir_separator_GCJ=
15675   hardcode_direct_GCJ=no
15676   hardcode_minus_L_GCJ=no
15677   hardcode_shlibpath_var_GCJ=unsupported
15678   link_all_deplibs_GCJ=unknown
15679   hardcode_automatic_GCJ=no
15680   module_cmds_GCJ=
15681   module_expsym_cmds_GCJ=
15682   always_export_symbols_GCJ=no
15683   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15684   # include_expsyms should be a list of space-separated symbols to be *always*
15685   # included in the symbol list
15686   include_expsyms_GCJ=
15687   # exclude_expsyms can be an extended regexp of symbols to exclude
15688   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15689   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15690   # as well as any symbol that contains `d'.
15691   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15692   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15693   # platforms (ab)use it in PIC code, but their linkers get confused if
15694   # the symbol is explicitly referenced.  Since portable code cannot
15695   # rely on this symbol name, it's probably fine to never include it in
15696   # preloaded symbol tables.
15697   extract_expsyms_cmds=
15698   # Just being paranoid about ensuring that cc_basename is set.
15699   for cc_temp in $compiler""; do
15700   case $cc_temp in
15701     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15702     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15703     \-*) ;;
15704     *) break;;
15705   esac
15706 done
15707 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15708
15709   case $host_os in
15710   cygwin* | mingw* | pw32*)
15711     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15712     # When not using gcc, we currently assume that we are using
15713     # Microsoft Visual C++.
15714     if test "$GCC" != yes; then
15715       with_gnu_ld=no
15716     fi
15717     ;;
15718   interix*)
15719     # we just hope/assume this is gcc and not c89 (= MSVC++)
15720     with_gnu_ld=yes
15721     ;;
15722   openbsd*)
15723     with_gnu_ld=no
15724     ;;
15725   esac
15726
15727   ld_shlibs_GCJ=yes
15728   if test "$with_gnu_ld" = yes; then
15729     # If archive_cmds runs LD, not CC, wlarc should be empty
15730     wlarc='${wl}'
15731
15732     # Set some defaults for GNU ld with shared library support. These
15733     # are reset later if shared libraries are not supported. Putting them
15734     # here allows them to be overridden if necessary.
15735     runpath_var=LD_RUN_PATH
15736     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15737     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15738     # ancient GNU ld didn't support --whole-archive et. al.
15739     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15740         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15741       else
15742         whole_archive_flag_spec_GCJ=
15743     fi
15744     supports_anon_versioning=no
15745     case `$LD -v 2>/dev/null` in
15746       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15747       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15748       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15749       *\ 2.11.*) ;; # other 2.11 versions
15750       *) supports_anon_versioning=yes ;;
15751     esac
15752
15753     # See if GNU ld supports shared libraries.
15754     case $host_os in
15755     aix3* | aix4* | aix5*)
15756       # On AIX/PPC, the GNU linker is very broken
15757       if test "$host_cpu" != ia64; then
15758         ld_shlibs_GCJ=no
15759         cat <<EOF 1>&2
15760
15761 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15762 *** to be unable to reliably create shared libraries on AIX.
15763 *** Therefore, libtool is disabling shared libraries support.  If you
15764 *** really care for shared libraries, you may want to modify your PATH
15765 *** so that a non-GNU linker is found, and then restart.
15766
15767 EOF
15768       fi
15769       ;;
15770
15771     amigaos*)
15772       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)'
15773       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15774       hardcode_minus_L_GCJ=yes
15775
15776       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15777       # that the semantics of dynamic libraries on AmigaOS, at least up
15778       # to version 4, is to share data among multiple programs linked
15779       # with the same dynamic library.  Since this doesn't match the
15780       # behavior of shared libraries on other platforms, we can't use
15781       # them.
15782       ld_shlibs_GCJ=no
15783       ;;
15784
15785     beos*)
15786       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15787         allow_undefined_flag_GCJ=unsupported
15788         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15789         # support --undefined.  This deserves some investigation.  FIXME
15790         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791       else
15792         ld_shlibs_GCJ=no
15793       fi
15794       ;;
15795
15796     cygwin* | mingw* | pw32*)
15797       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15798       # as there is no search path for DLLs.
15799       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800       allow_undefined_flag_GCJ=unsupported
15801       always_export_symbols_GCJ=no
15802       enable_shared_with_static_runtimes_GCJ=yes
15803       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15804
15805       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15806         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15807         # If the export-symbols file already is a .def file (1st line
15808         # is EXPORTS), use it as is; otherwise, prepend...
15809         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15810           cp $export_symbols $output_objdir/$soname.def;
15811         else
15812           echo EXPORTS > $output_objdir/$soname.def;
15813           cat $export_symbols >> $output_objdir/$soname.def;
15814         fi~
15815         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15816       else
15817         ld_shlibs_GCJ=no
15818       fi
15819       ;;
15820
15821     interix3*)
15822       hardcode_direct_GCJ=no
15823       hardcode_shlibpath_var_GCJ=no
15824       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15825       export_dynamic_flag_spec_GCJ='${wl}-E'
15826       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15827       # Instead, shared libraries are loaded at an image base (0x10000000 by
15828       # default) and relocated if they conflict, which is a slow very memory
15829       # consuming and fragmenting process.  To avoid this, we pick a random,
15830       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15831       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15832       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'
15833       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'
15834       ;;
15835
15836     linux*)
15837       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15838         tmp_addflag=
15839         case $cc_basename,$host_cpu in
15840         pgcc*)                          # Portland Group C compiler
15841           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'
15842           tmp_addflag=' $pic_flag'
15843           ;;
15844         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15845           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'
15846           tmp_addflag=' $pic_flag -Mnomain' ;;
15847         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15848           tmp_addflag=' -i_dynamic' ;;
15849         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15850           tmp_addflag=' -i_dynamic -nofor_main' ;;
15851         ifc* | ifort*)                  # Intel Fortran compiler
15852           tmp_addflag=' -nofor_main' ;;
15853         esac
15854         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15855
15856         if test $supports_anon_versioning = yes; then
15857           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15858   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15859   $echo "local: *; };" >> $output_objdir/$libname.ver~
15860           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15861         fi
15862         link_all_deplibs_GCJ=no
15863       else
15864         ld_shlibs_GCJ=no
15865       fi
15866       ;;
15867
15868     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15869       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15870         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15871         wlarc=
15872       else
15873         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15874         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15875       fi
15876       ;;
15877
15878     solaris*)
15879       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15880         ld_shlibs_GCJ=no
15881         cat <<EOF 1>&2
15882
15883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15884 *** create shared libraries on Solaris systems.  Therefore, libtool
15885 *** is disabling shared libraries support.  We urge you to upgrade GNU
15886 *** binutils to release 2.9.1 or newer.  Another option is to modify
15887 *** your PATH or compiler configuration so that the native linker is
15888 *** used, and then restart.
15889
15890 EOF
15891       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15892         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15893         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15894       else
15895         ld_shlibs_GCJ=no
15896       fi
15897       ;;
15898
15899     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15900       case `$LD -v 2>&1` in
15901         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15902         ld_shlibs_GCJ=no
15903         cat <<_LT_EOF 1>&2
15904
15905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15906 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15907 *** is disabling shared libraries support.  We urge you to upgrade GNU
15908 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15909 *** your PATH or compiler configuration so that the native linker is
15910 *** used, and then restart.
15911
15912 _LT_EOF
15913         ;;
15914         *)
15915           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15916             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15917             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15918             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15919           else
15920             ld_shlibs_GCJ=no
15921           fi
15922         ;;
15923       esac
15924       ;;
15925
15926     sunos4*)
15927       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15928       wlarc=
15929       hardcode_direct_GCJ=yes
15930       hardcode_shlibpath_var_GCJ=no
15931       ;;
15932
15933     *)
15934       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15935         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15936         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15937       else
15938         ld_shlibs_GCJ=no
15939       fi
15940       ;;
15941     esac
15942
15943     if test "$ld_shlibs_GCJ" = no; then
15944       runpath_var=
15945       hardcode_libdir_flag_spec_GCJ=
15946       export_dynamic_flag_spec_GCJ=
15947       whole_archive_flag_spec_GCJ=
15948     fi
15949   else
15950     # PORTME fill in a description of your system's linker (not GNU ld)
15951     case $host_os in
15952     aix3*)
15953       allow_undefined_flag_GCJ=unsupported
15954       always_export_symbols_GCJ=yes
15955       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'
15956       # Note: this linker hardcodes the directories in LIBPATH if there
15957       # are no directories specified by -L.
15958       hardcode_minus_L_GCJ=yes
15959       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15960         # Neither direct hardcoding nor static linking is supported with a
15961         # broken collect2.
15962         hardcode_direct_GCJ=unsupported
15963       fi
15964       ;;
15965
15966     aix4* | aix5*)
15967       if test "$host_cpu" = ia64; then
15968         # On IA64, the linker does run time linking by default, so we don't
15969         # have to do anything special.
15970         aix_use_runtimelinking=no
15971         exp_sym_flag='-Bexport'
15972         no_entry_flag=""
15973       else
15974         # If we're using GNU nm, then we don't want the "-C" option.
15975         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15976         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15977           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'
15978         else
15979           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'
15980         fi
15981         aix_use_runtimelinking=no
15982
15983         # Test if we are trying to use run time linking or normal
15984         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15985         # need to do runtime linking.
15986         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15987           for ld_flag in $LDFLAGS; do
15988           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15989             aix_use_runtimelinking=yes
15990             break
15991           fi
15992           done
15993           ;;
15994         esac
15995
15996         exp_sym_flag='-bexport'
15997         no_entry_flag='-bnoentry'
15998       fi
15999
16000       # When large executables or shared objects are built, AIX ld can
16001       # have problems creating the table of contents.  If linking a library
16002       # or program results in "error TOC overflow" add -mminimal-toc to
16003       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16004       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16005
16006       archive_cmds_GCJ=''
16007       hardcode_direct_GCJ=yes
16008       hardcode_libdir_separator_GCJ=':'
16009       link_all_deplibs_GCJ=yes
16010
16011       if test "$GCC" = yes; then
16012         case $host_os in aix4.[012]|aix4.[012].*)
16013         # We only want to do this on AIX 4.2 and lower, the check
16014         # below for broken collect2 doesn't work under 4.3+
16015           collect2name=`${CC} -print-prog-name=collect2`
16016           if test -f "$collect2name" && \
16017            strings "$collect2name" | grep resolve_lib_name >/dev/null
16018           then
16019           # We have reworked collect2
16020           hardcode_direct_GCJ=yes
16021           else
16022           # We have old collect2
16023           hardcode_direct_GCJ=unsupported
16024           # It fails to find uninstalled libraries when the uninstalled
16025           # path is not listed in the libpath.  Setting hardcode_minus_L
16026           # to unsupported forces relinking
16027           hardcode_minus_L_GCJ=yes
16028           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16029           hardcode_libdir_separator_GCJ=
16030           fi
16031           ;;
16032         esac
16033         shared_flag='-shared'
16034         if test "$aix_use_runtimelinking" = yes; then
16035           shared_flag="$shared_flag "'${wl}-G'
16036         fi
16037       else
16038         # not using gcc
16039         if test "$host_cpu" = ia64; then
16040         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16041         # chokes on -Wl,-G. The following line is correct:
16042           shared_flag='-G'
16043         else
16044           if test "$aix_use_runtimelinking" = yes; then
16045             shared_flag='${wl}-G'
16046           else
16047             shared_flag='${wl}-bM:SRE'
16048           fi
16049         fi
16050       fi
16051
16052       # It seems that -bexpall does not export symbols beginning with
16053       # underscore (_), so it is better to generate a list of symbols to export.
16054       always_export_symbols_GCJ=yes
16055       if test "$aix_use_runtimelinking" = yes; then
16056         # Warning - without using the other runtime loading flags (-brtl),
16057         # -berok will link without error, but may produce a broken library.
16058         allow_undefined_flag_GCJ='-berok'
16059        # Determine the default libpath from the value encoded in an empty executable.
16060        cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h.  */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h.  */
16066
16067 int
16068 main ()
16069 {
16070
16071   ;
16072   return 0;
16073 }
16074 _ACEOF
16075 rm -f conftest.$ac_objext conftest$ac_exeext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077   (eval $ac_link) 2>conftest.er1
16078   ac_status=$?
16079   grep -v '^ *+' conftest.er1 >conftest.err
16080   rm -f conftest.er1
16081   cat conftest.err >&5
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); } &&
16084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086   (eval $ac_try) 2>&5
16087   ac_status=$?
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); }; } &&
16090          { ac_try='test -s conftest$ac_exeext'
16091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092   (eval $ac_try) 2>&5
16093   ac_status=$?
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); }; }; then
16096
16097 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16098 }'`
16099 # Check for a 64-bit object if we didn't find anything.
16100 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; }
16101 }'`; fi
16102 else
16103   echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16105
16106 fi
16107 rm -f conftest.err conftest.$ac_objext \
16108       conftest$ac_exeext conftest.$ac_ext
16109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16110
16111        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16112         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"
16113        else
16114         if test "$host_cpu" = ia64; then
16115           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16116           allow_undefined_flag_GCJ="-z nodefs"
16117           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"
16118         else
16119          # Determine the default libpath from the value encoded in an empty executable.
16120          cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h.  */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h.  */
16126
16127 int
16128 main ()
16129 {
16130
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137   (eval $ac_link) 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } &&
16144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146   (eval $ac_try) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; } &&
16150          { ac_try='test -s conftest$ac_exeext'
16151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152   (eval $ac_try) 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); }; }; then
16156
16157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16158 }'`
16159 # Check for a 64-bit object if we didn't find anything.
16160 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; }
16161 }'`; fi
16162 else
16163   echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166 fi
16167 rm -f conftest.err conftest.$ac_objext \
16168       conftest$ac_exeext conftest.$ac_ext
16169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16170
16171          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16172           # Warning - without using the other run time loading flags,
16173           # -berok will link without error, but may produce a broken library.
16174           no_undefined_flag_GCJ=' ${wl}-bernotok'
16175           allow_undefined_flag_GCJ=' ${wl}-berok'
16176           # Exported symbols can be pulled into shared objects from archives
16177           whole_archive_flag_spec_GCJ='$convenience'
16178           archive_cmds_need_lc_GCJ=yes
16179           # This is similar to how AIX traditionally builds its shared libraries.
16180           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'
16181         fi
16182       fi
16183       ;;
16184
16185     amigaos*)
16186       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)'
16187       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188       hardcode_minus_L_GCJ=yes
16189       # see comment about different semantics on the GNU ld section
16190       ld_shlibs_GCJ=no
16191       ;;
16192
16193     bsdi[45]*)
16194       export_dynamic_flag_spec_GCJ=-rdynamic
16195       ;;
16196
16197     cygwin* | mingw* | pw32*)
16198       # When not using gcc, we currently assume that we are using
16199       # Microsoft Visual C++.
16200       # hardcode_libdir_flag_spec is actually meaningless, as there is
16201       # no search path for DLLs.
16202       hardcode_libdir_flag_spec_GCJ=' '
16203       allow_undefined_flag_GCJ=unsupported
16204       # Tell ltmain to make .lib files, not .a files.
16205       libext=lib
16206       # Tell ltmain to make .dll files, not .so files.
16207       shrext_cmds=".dll"
16208       # FIXME: Setting linknames here is a bad hack.
16209       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16210       # The linker will automatically build a .lib file if we build a DLL.
16211       old_archive_From_new_cmds_GCJ='true'
16212       # FIXME: Should let the user specify the lib program.
16213       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16214       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16215       enable_shared_with_static_runtimes_GCJ=yes
16216       ;;
16217
16218     darwin* | rhapsody*)
16219       case $host_os in
16220         rhapsody* | darwin1.[012])
16221          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16222          ;;
16223        *) # Darwin 1.3 on
16224          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16225            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16226          else
16227            case ${MACOSX_DEPLOYMENT_TARGET} in
16228              10.[012])
16229                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16230                ;;
16231              10.*)
16232                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16233                ;;
16234            esac
16235          fi
16236          ;;
16237       esac
16238       archive_cmds_need_lc_GCJ=no
16239       hardcode_direct_GCJ=no
16240       hardcode_automatic_GCJ=yes
16241       hardcode_shlibpath_var_GCJ=unsupported
16242       whole_archive_flag_spec_GCJ=''
16243       link_all_deplibs_GCJ=yes
16244     if test "$GCC" = yes ; then
16245         output_verbose_link_cmd='echo'
16246         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16247       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16248       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16249       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}'
16250       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}'
16251     else
16252       case $cc_basename in
16253         xlc*)
16254          output_verbose_link_cmd='echo'
16255          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16256          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16257           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16258          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}'
16259           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}'
16260           ;;
16261        *)
16262          ld_shlibs_GCJ=no
16263           ;;
16264       esac
16265     fi
16266       ;;
16267
16268     dgux*)
16269       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16270       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16271       hardcode_shlibpath_var_GCJ=no
16272       ;;
16273
16274     freebsd1*)
16275       ld_shlibs_GCJ=no
16276       ;;
16277
16278     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16279     # support.  Future versions do this automatically, but an explicit c++rt0.o
16280     # does not break anything, and helps significantly (at the cost of a little
16281     # extra space).
16282     freebsd2.2*)
16283       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16284       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16285       hardcode_direct_GCJ=yes
16286       hardcode_shlibpath_var_GCJ=no
16287       ;;
16288
16289     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16290     freebsd2*)
16291       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16292       hardcode_direct_GCJ=yes
16293       hardcode_minus_L_GCJ=yes
16294       hardcode_shlibpath_var_GCJ=no
16295       ;;
16296
16297     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16298     freebsd* | dragonfly*)
16299       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16300       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16301       hardcode_direct_GCJ=yes
16302       hardcode_shlibpath_var_GCJ=no
16303       ;;
16304
16305     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16306     kfreebsd*-gnu)
16307       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16308       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16309       hardcode_direct_GCJ=yes
16310       hardcode_shlibpath_var_GCJ=no
16311       link_all_deplibs_GCJ=no
16312       ;;
16313
16314     hpux9*)
16315       if test "$GCC" = yes; then
16316         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'
16317       else
16318         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'
16319       fi
16320       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16321       hardcode_libdir_separator_GCJ=:
16322       hardcode_direct_GCJ=yes
16323
16324       # hardcode_minus_L: Not really in the search PATH,
16325       # but as the default location of the library.
16326       hardcode_minus_L_GCJ=yes
16327       export_dynamic_flag_spec_GCJ='${wl}-E'
16328       ;;
16329
16330     hpux10*)
16331       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16332         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16333       else
16334         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16335       fi
16336       if test "$with_gnu_ld" = no; then
16337         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16338         hardcode_libdir_separator_GCJ=:
16339
16340         hardcode_direct_GCJ=yes
16341         export_dynamic_flag_spec_GCJ='${wl}-E'
16342
16343         # hardcode_minus_L: Not really in the search PATH,
16344         # but as the default location of the library.
16345         hardcode_minus_L_GCJ=yes
16346       fi
16347       ;;
16348
16349     hpux11*)
16350       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16351         case $host_cpu in
16352         hppa*64*)
16353           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16354           ;;
16355         ia64*)
16356           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16357           ;;
16358         *)
16359           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16360           ;;
16361         esac
16362       else
16363         case $host_cpu in
16364         hppa*64*)
16365           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16366           ;;
16367         ia64*)
16368           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16369           ;;
16370         *)
16371           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16372           ;;
16373         esac
16374       fi
16375       if test "$with_gnu_ld" = no; then
16376         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16377         hardcode_libdir_separator_GCJ=:
16378
16379         case $host_cpu in
16380         hppa*64*|ia64*)
16381           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16382           hardcode_direct_GCJ=no
16383           hardcode_shlibpath_var_GCJ=no
16384           ;;
16385         *)
16386           hardcode_direct_GCJ=yes
16387           export_dynamic_flag_spec_GCJ='${wl}-E'
16388
16389           # hardcode_minus_L: Not really in the search PATH,
16390           # but as the default location of the library.
16391           hardcode_minus_L_GCJ=yes
16392           ;;
16393         esac
16394       fi
16395       ;;
16396
16397     irix5* | irix6* | nonstopux*)
16398       if test "$GCC" = yes; then
16399         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'
16400       else
16401         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'
16402         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16403       fi
16404       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16405       hardcode_libdir_separator_GCJ=:
16406       link_all_deplibs_GCJ=yes
16407       ;;
16408
16409     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16410       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16411         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16412       else
16413         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16414       fi
16415       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16416       hardcode_direct_GCJ=yes
16417       hardcode_shlibpath_var_GCJ=no
16418       ;;
16419
16420     newsos6)
16421       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16422       hardcode_direct_GCJ=yes
16423       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16424       hardcode_libdir_separator_GCJ=:
16425       hardcode_shlibpath_var_GCJ=no
16426       ;;
16427
16428     openbsd*)
16429       hardcode_direct_GCJ=yes
16430       hardcode_shlibpath_var_GCJ=no
16431       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16432         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16433         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16434         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16435         export_dynamic_flag_spec_GCJ='${wl}-E'
16436       else
16437        case $host_os in
16438          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16439            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16440            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16441            ;;
16442          *)
16443            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16444            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16445            ;;
16446        esac
16447       fi
16448       ;;
16449
16450     os2*)
16451       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16452       hardcode_minus_L_GCJ=yes
16453       allow_undefined_flag_GCJ=unsupported
16454       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'
16455       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16456       ;;
16457
16458     osf3*)
16459       if test "$GCC" = yes; then
16460         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16461         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'
16462       else
16463         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16464         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'
16465       fi
16466       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16467       hardcode_libdir_separator_GCJ=:
16468       ;;
16469
16470     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16471       if test "$GCC" = yes; then
16472         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16473         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'
16474         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16475       else
16476         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16477         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'
16478         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~
16479         $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'
16480
16481         # Both c and cxx compiler support -rpath directly
16482         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16483       fi
16484       hardcode_libdir_separator_GCJ=:
16485       ;;
16486
16487     solaris*)
16488       no_undefined_flag_GCJ=' -z text'
16489       if test "$GCC" = yes; then
16490         wlarc='${wl}'
16491         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16492         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16493           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16494       else
16495         wlarc=''
16496         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16497         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16498         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16499       fi
16500       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16501       hardcode_shlibpath_var_GCJ=no
16502       case $host_os in
16503       solaris2.[0-5] | solaris2.[0-5].*) ;;
16504       *)
16505         # The compiler driver will combine linker options so we
16506         # cannot just pass the convience library names through
16507         # without $wl, iff we do not link with $LD.
16508         # Luckily, gcc supports the same syntax we need for Sun Studio.
16509         # Supported since Solaris 2.6 (maybe 2.5.1?)
16510         case $wlarc in
16511         '')
16512           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16513         *)
16514           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' ;;
16515         esac ;;
16516       esac
16517       link_all_deplibs_GCJ=yes
16518       ;;
16519
16520     sunos4*)
16521       if test "x$host_vendor" = xsequent; then
16522         # Use $CC to link under sequent, because it throws in some extra .o
16523         # files that make .init and .fini sections work.
16524         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16525       else
16526         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16527       fi
16528       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16529       hardcode_direct_GCJ=yes
16530       hardcode_minus_L_GCJ=yes
16531       hardcode_shlibpath_var_GCJ=no
16532       ;;
16533
16534     sysv4)
16535       case $host_vendor in
16536         sni)
16537           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16538           hardcode_direct_GCJ=yes # is this really true???
16539         ;;
16540         siemens)
16541           ## LD is ld it makes a PLAMLIB
16542           ## CC just makes a GrossModule.
16543           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16544           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16545           hardcode_direct_GCJ=no
16546         ;;
16547         motorola)
16548           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16549           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16550         ;;
16551       esac
16552       runpath_var='LD_RUN_PATH'
16553       hardcode_shlibpath_var_GCJ=no
16554       ;;
16555
16556     sysv4.3*)
16557       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16558       hardcode_shlibpath_var_GCJ=no
16559       export_dynamic_flag_spec_GCJ='-Bexport'
16560       ;;
16561
16562     sysv4*MP*)
16563       if test -d /usr/nec; then
16564         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16565         hardcode_shlibpath_var_GCJ=no
16566         runpath_var=LD_RUN_PATH
16567         hardcode_runpath_var=yes
16568         ld_shlibs_GCJ=yes
16569       fi
16570       ;;
16571
16572     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16573       no_undefined_flag_GCJ='${wl}-z,text'
16574       archive_cmds_need_lc_GCJ=no
16575       hardcode_shlibpath_var_GCJ=no
16576       runpath_var='LD_RUN_PATH'
16577
16578       if test "$GCC" = yes; then
16579         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16580         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16581       else
16582         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16583         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16584       fi
16585       ;;
16586
16587     sysv5* | sco3.2v5* | sco5v6*)
16588       # Note: We can NOT use -z defs as we might desire, because we do not
16589       # link with -lc, and that would cause any symbols used from libc to
16590       # always be unresolved, which means just about no library would
16591       # ever link correctly.  If we're not using GNU ld we use -z text
16592       # though, which does catch some bad symbols but isn't as heavy-handed
16593       # as -z defs.
16594       no_undefined_flag_GCJ='${wl}-z,text'
16595       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16596       archive_cmds_need_lc_GCJ=no
16597       hardcode_shlibpath_var_GCJ=no
16598       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16599       hardcode_libdir_separator_GCJ=':'
16600       link_all_deplibs_GCJ=yes
16601       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16602       runpath_var='LD_RUN_PATH'
16603
16604       if test "$GCC" = yes; then
16605         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16606         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16607       else
16608         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16609         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16610       fi
16611       ;;
16612
16613     uts4*)
16614       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16615       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616       hardcode_shlibpath_var_GCJ=no
16617       ;;
16618
16619     *)
16620       ld_shlibs_GCJ=no
16621       ;;
16622     esac
16623   fi
16624
16625 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16626 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16627 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16628
16629 #
16630 # Do we need to explicitly link libc?
16631 #
16632 case "x$archive_cmds_need_lc_GCJ" in
16633 x|xyes)
16634   # Assume -lc should be added
16635   archive_cmds_need_lc_GCJ=yes
16636
16637   if test "$enable_shared" = yes && test "$GCC" = yes; then
16638     case $archive_cmds_GCJ in
16639     *'~'*)
16640       # FIXME: we may have to deal with multi-command sequences.
16641       ;;
16642     '$CC '*)
16643       # Test whether the compiler implicitly links with -lc since on some
16644       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16645       # to ld, don't add -lc before -lgcc.
16646       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16648       $rm conftest*
16649       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16650
16651       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16652   (eval $ac_compile) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); } 2>conftest.err; then
16656         soname=conftest
16657         lib=conftest
16658         libobjs=conftest.$ac_objext
16659         deplibs=
16660         wl=$lt_prog_compiler_wl_GCJ
16661         pic_flag=$lt_prog_compiler_pic_GCJ
16662         compiler_flags=-v
16663         linker_flags=-v
16664         verstring=
16665         output_objdir=.
16666         libname=conftest
16667         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16668         allow_undefined_flag_GCJ=
16669         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16670   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }
16674         then
16675           archive_cmds_need_lc_GCJ=no
16676         else
16677           archive_cmds_need_lc_GCJ=yes
16678         fi
16679         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16680       else
16681         cat conftest.err 1>&5
16682       fi
16683       $rm conftest*
16684       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16685 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16686       ;;
16687     esac
16688   fi
16689   ;;
16690 esac
16691
16692 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16694 library_names_spec=
16695 libname_spec='lib$name'
16696 soname_spec=
16697 shrext_cmds=".so"
16698 postinstall_cmds=
16699 postuninstall_cmds=
16700 finish_cmds=
16701 finish_eval=
16702 shlibpath_var=
16703 shlibpath_overrides_runpath=unknown
16704 version_type=none
16705 dynamic_linker="$host_os ld.so"
16706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16707 if test "$GCC" = yes; then
16708   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16709   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16710     # if the path contains ";" then we assume it to be the separator
16711     # otherwise default to the standard path separator (i.e. ":") - it is
16712     # assumed that no part of a normal pathname contains ";" but that should
16713     # okay in the real world where ";" in dirpaths is itself problematic.
16714     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16715   else
16716     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16717   fi
16718 else
16719   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16720 fi
16721 need_lib_prefix=unknown
16722 hardcode_into_libs=no
16723
16724 # when you set need_version to no, make sure it does not cause -set_version
16725 # flags to be left without arguments
16726 need_version=unknown
16727
16728 case $host_os in
16729 aix3*)
16730   version_type=linux
16731   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16732   shlibpath_var=LIBPATH
16733
16734   # AIX 3 has no versioning support, so we append a major version to the name.
16735   soname_spec='${libname}${release}${shared_ext}$major'
16736   ;;
16737
16738 aix4* | aix5*)
16739   version_type=linux
16740   need_lib_prefix=no
16741   need_version=no
16742   hardcode_into_libs=yes
16743   if test "$host_cpu" = ia64; then
16744     # AIX 5 supports IA64
16745     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16746     shlibpath_var=LD_LIBRARY_PATH
16747   else
16748     # With GCC up to 2.95.x, collect2 would create an import file
16749     # for dependence libraries.  The import file would start with
16750     # the line `#! .'.  This would cause the generated library to
16751     # depend on `.', always an invalid library.  This was fixed in
16752     # development snapshots of GCC prior to 3.0.
16753     case $host_os in
16754       aix4 | aix4.[01] | aix4.[01].*)
16755       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16756            echo ' yes '
16757            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16758         :
16759       else
16760         can_build_shared=no
16761       fi
16762       ;;
16763     esac
16764     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16765     # soname into executable. Probably we can add versioning support to
16766     # collect2, so additional links can be useful in future.
16767     if test "$aix_use_runtimelinking" = yes; then
16768       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16769       # instead of lib<name>.a to let people know that these are not
16770       # typical AIX shared libraries.
16771       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772     else
16773       # We preserve .a as extension for shared libraries through AIX4.2
16774       # and later when we are not doing run time linking.
16775       library_names_spec='${libname}${release}.a $libname.a'
16776       soname_spec='${libname}${release}${shared_ext}$major'
16777     fi
16778     shlibpath_var=LIBPATH
16779   fi
16780   ;;
16781
16782 amigaos*)
16783   library_names_spec='$libname.ixlibrary $libname.a'
16784   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16785   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'
16786   ;;
16787
16788 beos*)
16789   library_names_spec='${libname}${shared_ext}'
16790   dynamic_linker="$host_os ld.so"
16791   shlibpath_var=LIBRARY_PATH
16792   ;;
16793
16794 bsdi[45]*)
16795   version_type=linux
16796   need_version=no
16797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16798   soname_spec='${libname}${release}${shared_ext}$major'
16799   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16800   shlibpath_var=LD_LIBRARY_PATH
16801   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16802   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16803   # the default ld.so.conf also contains /usr/contrib/lib and
16804   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16805   # libtool to hard-code these into programs
16806   ;;
16807
16808 cygwin* | mingw* | pw32*)
16809   version_type=windows
16810   shrext_cmds=".dll"
16811   need_version=no
16812   need_lib_prefix=no
16813
16814   case $GCC,$host_os in
16815   yes,cygwin* | yes,mingw* | yes,pw32*)
16816     library_names_spec='$libname.dll.a'
16817     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16818     postinstall_cmds='base_file=`basename \${file}`~
16819       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16820       dldir=$destdir/`dirname \$dlpath`~
16821       test -d \$dldir || mkdir -p \$dldir~
16822       $install_prog $dir/$dlname \$dldir/$dlname~
16823       chmod a+x \$dldir/$dlname'
16824     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16825       dlpath=$dir/\$dldll~
16826        $rm \$dlpath'
16827     shlibpath_overrides_runpath=yes
16828
16829     case $host_os in
16830     cygwin*)
16831       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16832       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16833       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16834       ;;
16835     mingw*)
16836       # MinGW DLLs use traditional 'lib' prefix
16837       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16838       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16839       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16840         # It is most probably a Windows format PATH printed by
16841         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16842         # path with ; separators, and with drive letters. We can handle the
16843         # drive letters (cygwin fileutils understands them), so leave them,
16844         # especially as we might pass files found there to a mingw objdump,
16845         # which wouldn't understand a cygwinified path. Ahh.
16846         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16847       else
16848         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16849       fi
16850       ;;
16851     pw32*)
16852       # pw32 DLLs use 'pw' prefix rather than 'lib'
16853       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16854       ;;
16855     esac
16856     ;;
16857
16858   *)
16859     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16860     ;;
16861   esac
16862   dynamic_linker='Win32 ld.exe'
16863   # FIXME: first we should search . and the directory the executable is in
16864   shlibpath_var=PATH
16865   ;;
16866
16867 darwin* | rhapsody*)
16868   dynamic_linker="$host_os dyld"
16869   version_type=darwin
16870   need_lib_prefix=no
16871   need_version=no
16872   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16873   soname_spec='${libname}${release}${major}$shared_ext'
16874   shlibpath_overrides_runpath=yes
16875   shlibpath_var=DYLD_LIBRARY_PATH
16876   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16877   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16878   if test "$GCC" = yes; then
16879     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"`
16880   else
16881     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16882   fi
16883   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16884   ;;
16885
16886 dgux*)
16887   version_type=linux
16888   need_lib_prefix=no
16889   need_version=no
16890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16891   soname_spec='${libname}${release}${shared_ext}$major'
16892   shlibpath_var=LD_LIBRARY_PATH
16893   ;;
16894
16895 freebsd1*)
16896   dynamic_linker=no
16897   ;;
16898
16899 kfreebsd*-gnu)
16900   version_type=linux
16901   need_lib_prefix=no
16902   need_version=no
16903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16904   soname_spec='${libname}${release}${shared_ext}$major'
16905   shlibpath_var=LD_LIBRARY_PATH
16906   shlibpath_overrides_runpath=no
16907   hardcode_into_libs=yes
16908   dynamic_linker='GNU ld.so'
16909   ;;
16910
16911 freebsd* | dragonfly*)
16912   # DragonFly does not have aout.  When/if they implement a new
16913   # versioning mechanism, adjust this.
16914   if test -x /usr/bin/objformat; then
16915     objformat=`/usr/bin/objformat`
16916   else
16917     case $host_os in
16918     freebsd[123]*) objformat=aout ;;
16919     *) objformat=elf ;;
16920     esac
16921   fi
16922   version_type=freebsd-$objformat
16923   case $version_type in
16924     freebsd-elf*)
16925       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16926       need_version=no
16927       need_lib_prefix=no
16928       ;;
16929     freebsd-*)
16930       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16931       need_version=yes
16932       ;;
16933   esac
16934   shlibpath_var=LD_LIBRARY_PATH
16935   case $host_os in
16936   freebsd2*)
16937     shlibpath_overrides_runpath=yes
16938     ;;
16939   freebsd3.[01]* | freebsdelf3.[01]*)
16940     shlibpath_overrides_runpath=yes
16941     hardcode_into_libs=yes
16942     ;;
16943   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16944   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16945     shlibpath_overrides_runpath=no
16946     hardcode_into_libs=yes
16947     ;;
16948   freebsd*) # from 4.6 on
16949     shlibpath_overrides_runpath=yes
16950     hardcode_into_libs=yes
16951     ;;
16952   esac
16953   ;;
16954
16955 gnu*)
16956   version_type=linux
16957   need_lib_prefix=no
16958   need_version=no
16959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16960   soname_spec='${libname}${release}${shared_ext}$major'
16961   shlibpath_var=LD_LIBRARY_PATH
16962   hardcode_into_libs=yes
16963   ;;
16964
16965 hpux9* | hpux10* | hpux11*)
16966   # Give a soname corresponding to the major version so that dld.sl refuses to
16967   # link against other versions.
16968   version_type=sunos
16969   need_lib_prefix=no
16970   need_version=no
16971   case $host_cpu in
16972   ia64*)
16973     shrext_cmds='.so'
16974     hardcode_into_libs=yes
16975     dynamic_linker="$host_os dld.so"
16976     shlibpath_var=LD_LIBRARY_PATH
16977     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
16981       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16982     else
16983       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16984     fi
16985     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16986     ;;
16987    hppa*64*)
16988      shrext_cmds='.sl'
16989      hardcode_into_libs=yes
16990      dynamic_linker="$host_os dld.sl"
16991      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16992      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16993      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16994      soname_spec='${libname}${release}${shared_ext}$major'
16995      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16996      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16997      ;;
16998    *)
16999     shrext_cmds='.sl'
17000     dynamic_linker="$host_os dld.sl"
17001     shlibpath_var=SHLIB_PATH
17002     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004     soname_spec='${libname}${release}${shared_ext}$major'
17005     ;;
17006   esac
17007   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17008   postinstall_cmds='chmod 555 $lib'
17009   ;;
17010
17011 interix3*)
17012   version_type=linux
17013   need_lib_prefix=no
17014   need_version=no
17015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17016   soname_spec='${libname}${release}${shared_ext}$major'
17017   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17018   shlibpath_var=LD_LIBRARY_PATH
17019   shlibpath_overrides_runpath=no
17020   hardcode_into_libs=yes
17021   ;;
17022
17023 irix5* | irix6* | nonstopux*)
17024   case $host_os in
17025     nonstopux*) version_type=nonstopux ;;
17026     *)
17027         if test "$lt_cv_prog_gnu_ld" = yes; then
17028                 version_type=linux
17029         else
17030                 version_type=irix
17031         fi ;;
17032   esac
17033   need_lib_prefix=no
17034   need_version=no
17035   soname_spec='${libname}${release}${shared_ext}$major'
17036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17037   case $host_os in
17038   irix5* | nonstopux*)
17039     libsuff= shlibsuff=
17040     ;;
17041   *)
17042     case $LD in # libtool.m4 will add one of these switches to LD
17043     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17044       libsuff= shlibsuff= libmagic=32-bit;;
17045     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17046       libsuff=32 shlibsuff=N32 libmagic=N32;;
17047     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17048       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17049     *) libsuff= shlibsuff= libmagic=never-match;;
17050     esac
17051     ;;
17052   esac
17053   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17054   shlibpath_overrides_runpath=no
17055   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17056   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17057   hardcode_into_libs=yes
17058   ;;
17059
17060 # No shared lib support for Linux oldld, aout, or coff.
17061 linux*oldld* | linux*aout* | linux*coff*)
17062   dynamic_linker=no
17063   ;;
17064
17065 # This must be Linux ELF.
17066 linux*)
17067   version_type=linux
17068   need_lib_prefix=no
17069   need_version=no
17070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071   soname_spec='${libname}${release}${shared_ext}$major'
17072   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17073   shlibpath_var=LD_LIBRARY_PATH
17074   shlibpath_overrides_runpath=no
17075   # This implies no fast_install, which is unacceptable.
17076   # Some rework will be needed to allow for fast_install
17077   # before this can be enabled.
17078   hardcode_into_libs=yes
17079
17080   # Append ld.so.conf contents to the search path
17081   if test -f /etc/ld.so.conf; then
17082     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' ' '`
17083     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17084   fi
17085
17086   # We used to test for /lib/ld.so.1 and disable shared libraries on
17087   # powerpc, because MkLinux only supported shared libraries with the
17088   # GNU dynamic linker.  Since this was broken with cross compilers,
17089   # most powerpc-linux boxes support dynamic linking these days and
17090   # people can always --disable-shared, the test was removed, and we
17091   # assume the GNU/Linux dynamic linker is in use.
17092   dynamic_linker='GNU/Linux ld.so'
17093   ;;
17094
17095 netbsdelf*-gnu)
17096   version_type=linux
17097   need_lib_prefix=no
17098   need_version=no
17099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17100   soname_spec='${libname}${release}${shared_ext}$major'
17101   shlibpath_var=LD_LIBRARY_PATH
17102   shlibpath_overrides_runpath=no
17103   hardcode_into_libs=yes
17104   dynamic_linker='NetBSD ld.elf_so'
17105   ;;
17106
17107 knetbsd*-gnu)
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=no
17115   hardcode_into_libs=yes
17116   dynamic_linker='GNU ld.so'
17117   ;;
17118
17119 netbsd*)
17120   version_type=sunos
17121   need_lib_prefix=no
17122   need_version=no
17123   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17125     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17126     dynamic_linker='NetBSD (a.out) ld.so'
17127   else
17128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17129     soname_spec='${libname}${release}${shared_ext}$major'
17130     dynamic_linker='NetBSD ld.elf_so'
17131   fi
17132   shlibpath_var=LD_LIBRARY_PATH
17133   shlibpath_overrides_runpath=yes
17134   hardcode_into_libs=yes
17135   ;;
17136
17137 newsos6)
17138   version_type=linux
17139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140   shlibpath_var=LD_LIBRARY_PATH
17141   shlibpath_overrides_runpath=yes
17142   ;;
17143
17144 nto-qnx*)
17145   version_type=linux
17146   need_lib_prefix=no
17147   need_version=no
17148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149   soname_spec='${libname}${release}${shared_ext}$major'
17150   shlibpath_var=LD_LIBRARY_PATH
17151   shlibpath_overrides_runpath=yes
17152   ;;
17153
17154 openbsd*)
17155   version_type=sunos
17156   sys_lib_dlsearch_path_spec="/usr/lib"
17157   need_lib_prefix=no
17158   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17159   case $host_os in
17160     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17161     *)                         need_version=no  ;;
17162   esac
17163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17165   shlibpath_var=LD_LIBRARY_PATH
17166   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17167     case $host_os in
17168       openbsd2.[89] | openbsd2.[89].*)
17169         shlibpath_overrides_runpath=no
17170         ;;
17171       *)
17172         shlibpath_overrides_runpath=yes
17173         ;;
17174       esac
17175   else
17176     shlibpath_overrides_runpath=yes
17177   fi
17178   ;;
17179
17180 os2*)
17181   libname_spec='$name'
17182   shrext_cmds=".dll"
17183   need_lib_prefix=no
17184   library_names_spec='$libname${shared_ext} $libname.a'
17185   dynamic_linker='OS/2 ld.exe'
17186   shlibpath_var=LIBPATH
17187   ;;
17188
17189 osf3* | osf4* | osf5*)
17190   version_type=osf
17191   need_lib_prefix=no
17192   need_version=no
17193   soname_spec='${libname}${release}${shared_ext}$major'
17194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195   shlibpath_var=LD_LIBRARY_PATH
17196   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17197   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17198   ;;
17199
17200 solaris*)
17201   version_type=linux
17202   need_lib_prefix=no
17203   need_version=no
17204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205   soname_spec='${libname}${release}${shared_ext}$major'
17206   shlibpath_var=LD_LIBRARY_PATH
17207   shlibpath_overrides_runpath=yes
17208   hardcode_into_libs=yes
17209   # ldd complains unless libraries are executable
17210   postinstall_cmds='chmod +x $lib'
17211   ;;
17212
17213 sunos4*)
17214   version_type=sunos
17215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17216   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17217   shlibpath_var=LD_LIBRARY_PATH
17218   shlibpath_overrides_runpath=yes
17219   if test "$with_gnu_ld" = yes; then
17220     need_lib_prefix=no
17221   fi
17222   need_version=yes
17223   ;;
17224
17225 sysv4 | sysv4.3*)
17226   version_type=linux
17227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17228   soname_spec='${libname}${release}${shared_ext}$major'
17229   shlibpath_var=LD_LIBRARY_PATH
17230   case $host_vendor in
17231     sni)
17232       shlibpath_overrides_runpath=no
17233       need_lib_prefix=no
17234       export_dynamic_flag_spec='${wl}-Blargedynsym'
17235       runpath_var=LD_RUN_PATH
17236       ;;
17237     siemens)
17238       need_lib_prefix=no
17239       ;;
17240     motorola)
17241       need_lib_prefix=no
17242       need_version=no
17243       shlibpath_overrides_runpath=no
17244       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17245       ;;
17246   esac
17247   ;;
17248
17249 sysv4*MP*)
17250   if test -d /usr/nec ;then
17251     version_type=linux
17252     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17253     soname_spec='$libname${shared_ext}.$major'
17254     shlibpath_var=LD_LIBRARY_PATH
17255   fi
17256   ;;
17257
17258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17259   version_type=freebsd-elf
17260   need_lib_prefix=no
17261   need_version=no
17262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17263   soname_spec='${libname}${release}${shared_ext}$major'
17264   shlibpath_var=LD_LIBRARY_PATH
17265   hardcode_into_libs=yes
17266   if test "$with_gnu_ld" = yes; then
17267     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17268     shlibpath_overrides_runpath=no
17269   else
17270     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17271     shlibpath_overrides_runpath=yes
17272     case $host_os in
17273       sco3.2v5*)
17274         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17275         ;;
17276     esac
17277   fi
17278   sys_lib_dlsearch_path_spec='/usr/lib'
17279   ;;
17280
17281 uts4*)
17282   version_type=linux
17283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284   soname_spec='${libname}${release}${shared_ext}$major'
17285   shlibpath_var=LD_LIBRARY_PATH
17286   ;;
17287
17288 *)
17289   dynamic_linker=no
17290   ;;
17291 esac
17292 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17293 echo "${ECHO_T}$dynamic_linker" >&6
17294 test "$dynamic_linker" = no && can_build_shared=no
17295
17296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17297 if test "$GCC" = yes; then
17298   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17299 fi
17300
17301 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17303 hardcode_action_GCJ=
17304 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17305    test -n "$runpath_var_GCJ" || \
17306    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17307
17308   # We can hardcode non-existant directories.
17309   if test "$hardcode_direct_GCJ" != no &&
17310      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17311      # have to relink, otherwise we might link with an installed library
17312      # when we should be linking with a yet-to-be-installed one
17313      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17314      test "$hardcode_minus_L_GCJ" != no; then
17315     # Linking always hardcodes the temporary library directory.
17316     hardcode_action_GCJ=relink
17317   else
17318     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17319     hardcode_action_GCJ=immediate
17320   fi
17321 else
17322   # We cannot hardcode anything, or else we can only hardcode existing
17323   # directories.
17324   hardcode_action_GCJ=unsupported
17325 fi
17326 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17327 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17328
17329 if test "$hardcode_action_GCJ" = relink; then
17330   # Fast installation is not supported
17331   enable_fast_install=no
17332 elif test "$shlibpath_overrides_runpath" = yes ||
17333      test "$enable_shared" = no; then
17334   # Fast installation is not necessary
17335   enable_fast_install=needless
17336 fi
17337
17338
17339 # The else clause should only fire when bootstrapping the
17340 # libtool distribution, otherwise you forgot to ship ltmain.sh
17341 # with your package, and you will get complaints that there are
17342 # no rules to generate ltmain.sh.
17343 if test -f "$ltmain"; then
17344   # See if we are running on zsh, and set the options which allow our commands through
17345   # without removal of \ escapes.
17346   if test -n "${ZSH_VERSION+set}" ; then
17347     setopt NO_GLOB_SUBST
17348   fi
17349   # Now quote all the things that may contain metacharacters while being
17350   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17351   # variables and quote the copies for generation of the libtool script.
17352   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17353     SED SHELL STRIP \
17354     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17355     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17356     deplibs_check_method reload_flag reload_cmds need_locks \
17357     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17358     lt_cv_sys_global_symbol_to_c_name_address \
17359     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17360     old_postinstall_cmds old_postuninstall_cmds \
17361     compiler_GCJ \
17362     CC_GCJ \
17363     LD_GCJ \
17364     lt_prog_compiler_wl_GCJ \
17365     lt_prog_compiler_pic_GCJ \
17366     lt_prog_compiler_static_GCJ \
17367     lt_prog_compiler_no_builtin_flag_GCJ \
17368     export_dynamic_flag_spec_GCJ \
17369     thread_safe_flag_spec_GCJ \
17370     whole_archive_flag_spec_GCJ \
17371     enable_shared_with_static_runtimes_GCJ \
17372     old_archive_cmds_GCJ \
17373     old_archive_from_new_cmds_GCJ \
17374     predep_objects_GCJ \
17375     postdep_objects_GCJ \
17376     predeps_GCJ \
17377     postdeps_GCJ \
17378     compiler_lib_search_path_GCJ \
17379     archive_cmds_GCJ \
17380     archive_expsym_cmds_GCJ \
17381     postinstall_cmds_GCJ \
17382     postuninstall_cmds_GCJ \
17383     old_archive_from_expsyms_cmds_GCJ \
17384     allow_undefined_flag_GCJ \
17385     no_undefined_flag_GCJ \
17386     export_symbols_cmds_GCJ \
17387     hardcode_libdir_flag_spec_GCJ \
17388     hardcode_libdir_flag_spec_ld_GCJ \
17389     hardcode_libdir_separator_GCJ \
17390     hardcode_automatic_GCJ \
17391     module_cmds_GCJ \
17392     module_expsym_cmds_GCJ \
17393     lt_cv_prog_compiler_c_o_GCJ \
17394     exclude_expsyms_GCJ \
17395     include_expsyms_GCJ; do
17396
17397     case $var in
17398     old_archive_cmds_GCJ | \
17399     old_archive_from_new_cmds_GCJ | \
17400     archive_cmds_GCJ | \
17401     archive_expsym_cmds_GCJ | \
17402     module_cmds_GCJ | \
17403     module_expsym_cmds_GCJ | \
17404     old_archive_from_expsyms_cmds_GCJ | \
17405     export_symbols_cmds_GCJ | \
17406     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17407     postinstall_cmds | postuninstall_cmds | \
17408     old_postinstall_cmds | old_postuninstall_cmds | \
17409     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17410       # Double-quote double-evaled strings.
17411       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17412       ;;
17413     *)
17414       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17415       ;;
17416     esac
17417   done
17418
17419   case $lt_echo in
17420   *'\$0 --fallback-echo"')
17421     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17422     ;;
17423   esac
17424
17425 cfgfile="$ofile"
17426
17427   cat <<__EOF__ >> "$cfgfile"
17428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17429
17430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17431
17432 # Shell to use when invoking shell scripts.
17433 SHELL=$lt_SHELL
17434
17435 # Whether or not to build shared libraries.
17436 build_libtool_libs=$enable_shared
17437
17438 # Whether or not to build static libraries.
17439 build_old_libs=$enable_static
17440
17441 # Whether or not to add -lc for building shared libraries.
17442 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17443
17444 # Whether or not to disallow shared libs when runtime libs are static
17445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17446
17447 # Whether or not to optimize for fast installation.
17448 fast_install=$enable_fast_install
17449
17450 # The host system.
17451 host_alias=$host_alias
17452 host=$host
17453 host_os=$host_os
17454
17455 # The build system.
17456 build_alias=$build_alias
17457 build=$build
17458 build_os=$build_os
17459
17460 # An echo program that does not interpret backslashes.
17461 echo=$lt_echo
17462
17463 # The archiver.
17464 AR=$lt_AR
17465 AR_FLAGS=$lt_AR_FLAGS
17466
17467 # A C compiler.
17468 LTCC=$lt_LTCC
17469
17470 # LTCC compiler flags.
17471 LTCFLAGS=$lt_LTCFLAGS
17472
17473 # A language-specific compiler.
17474 CC=$lt_compiler_GCJ
17475
17476 # Is the compiler the GNU C compiler?
17477 with_gcc=$GCC_GCJ
17478
17479 # An ERE matcher.
17480 EGREP=$lt_EGREP
17481
17482 # The linker used to build libraries.
17483 LD=$lt_LD_GCJ
17484
17485 # Whether we need hard or soft links.
17486 LN_S=$lt_LN_S
17487
17488 # A BSD-compatible nm program.
17489 NM=$lt_NM
17490
17491 # A symbol stripping program
17492 STRIP=$lt_STRIP
17493
17494 # Used to examine libraries when file_magic_cmd begins "file"
17495 MAGIC_CMD=$MAGIC_CMD
17496
17497 # Used on cygwin: DLL creation program.
17498 DLLTOOL="$DLLTOOL"
17499
17500 # Used on cygwin: object dumper.
17501 OBJDUMP="$OBJDUMP"
17502
17503 # Used on cygwin: assembler.
17504 AS="$AS"
17505
17506 # The name of the directory that contains temporary libtool files.
17507 objdir=$objdir
17508
17509 # How to create reloadable object files.
17510 reload_flag=$lt_reload_flag
17511 reload_cmds=$lt_reload_cmds
17512
17513 # How to pass a linker flag through the compiler.
17514 wl=$lt_lt_prog_compiler_wl_GCJ
17515
17516 # Object file suffix (normally "o").
17517 objext="$ac_objext"
17518
17519 # Old archive suffix (normally "a").
17520 libext="$libext"
17521
17522 # Shared library suffix (normally ".so").
17523 shrext_cmds='$shrext_cmds'
17524
17525 # Executable file suffix (normally "").
17526 exeext="$exeext"
17527
17528 # Additional compiler flags for building library objects.
17529 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17530 pic_mode=$pic_mode
17531
17532 # What is the maximum length of a command?
17533 max_cmd_len=$lt_cv_sys_max_cmd_len
17534
17535 # Does compiler simultaneously support -c and -o options?
17536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17537
17538 # Must we lock files when doing compilation?
17539 need_locks=$lt_need_locks
17540
17541 # Do we need the lib prefix for modules?
17542 need_lib_prefix=$need_lib_prefix
17543
17544 # Do we need a version for libraries?
17545 need_version=$need_version
17546
17547 # Whether dlopen is supported.
17548 dlopen_support=$enable_dlopen
17549
17550 # Whether dlopen of programs is supported.
17551 dlopen_self=$enable_dlopen_self
17552
17553 # Whether dlopen of statically linked programs is supported.
17554 dlopen_self_static=$enable_dlopen_self_static
17555
17556 # Compiler flag to prevent dynamic linking.
17557 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17558
17559 # Compiler flag to turn off builtin functions.
17560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17561
17562 # Compiler flag to allow reflexive dlopens.
17563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17564
17565 # Compiler flag to generate shared objects directly from archives.
17566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17567
17568 # Compiler flag to generate thread-safe objects.
17569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17570
17571 # Library versioning type.
17572 version_type=$version_type
17573
17574 # Format of library name prefix.
17575 libname_spec=$lt_libname_spec
17576
17577 # List of archive names.  First name is the real one, the rest are links.
17578 # The last name is the one that the linker finds with -lNAME.
17579 library_names_spec=$lt_library_names_spec
17580
17581 # The coded name of the library, if different from the real name.
17582 soname_spec=$lt_soname_spec
17583
17584 # Commands used to build and install an old-style archive.
17585 RANLIB=$lt_RANLIB
17586 old_archive_cmds=$lt_old_archive_cmds_GCJ
17587 old_postinstall_cmds=$lt_old_postinstall_cmds
17588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17589
17590 # Create an old-style archive from a shared archive.
17591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17592
17593 # Create a temporary old-style archive to link instead of a shared archive.
17594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17595
17596 # Commands used to build and install a shared archive.
17597 archive_cmds=$lt_archive_cmds_GCJ
17598 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17599 postinstall_cmds=$lt_postinstall_cmds
17600 postuninstall_cmds=$lt_postuninstall_cmds
17601
17602 # Commands used to build a loadable module (assumed same as above if empty)
17603 module_cmds=$lt_module_cmds_GCJ
17604 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17605
17606 # Commands to strip libraries.
17607 old_striplib=$lt_old_striplib
17608 striplib=$lt_striplib
17609
17610 # Dependencies to place before the objects being linked to create a
17611 # shared library.
17612 predep_objects=$lt_predep_objects_GCJ
17613
17614 # Dependencies to place after the objects being linked to create a
17615 # shared library.
17616 postdep_objects=$lt_postdep_objects_GCJ
17617
17618 # Dependencies to place before the objects being linked to create a
17619 # shared library.
17620 predeps=$lt_predeps_GCJ
17621
17622 # Dependencies to place after the objects being linked to create a
17623 # shared library.
17624 postdeps=$lt_postdeps_GCJ
17625
17626 # The library search path used internally by the compiler when linking
17627 # a shared library.
17628 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17629
17630 # Method to check whether dependent libraries are shared objects.
17631 deplibs_check_method=$lt_deplibs_check_method
17632
17633 # Command to use when deplibs_check_method == file_magic.
17634 file_magic_cmd=$lt_file_magic_cmd
17635
17636 # Flag that allows shared libraries with undefined symbols to be built.
17637 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17638
17639 # Flag that forces no undefined symbols.
17640 no_undefined_flag=$lt_no_undefined_flag_GCJ
17641
17642 # Commands used to finish a libtool library installation in a directory.
17643 finish_cmds=$lt_finish_cmds
17644
17645 # Same as above, but a single script fragment to be evaled but not shown.
17646 finish_eval=$lt_finish_eval
17647
17648 # Take the output of nm and produce a listing of raw symbols and C names.
17649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17650
17651 # Transform the output of nm in a proper C declaration
17652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17653
17654 # Transform the output of nm in a C name address pair
17655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17656
17657 # This is the shared library runtime path variable.
17658 runpath_var=$runpath_var
17659
17660 # This is the shared library path variable.
17661 shlibpath_var=$shlibpath_var
17662
17663 # Is shlibpath searched before the hard-coded library search path?
17664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17665
17666 # How to hardcode a shared library path into an executable.
17667 hardcode_action=$hardcode_action_GCJ
17668
17669 # Whether we should hardcode library paths into libraries.
17670 hardcode_into_libs=$hardcode_into_libs
17671
17672 # Flag to hardcode \$libdir into a binary during linking.
17673 # This must work even if \$libdir does not exist.
17674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17675
17676 # If ld is used when linking, flag to hardcode \$libdir into
17677 # a binary during linking. This must work even if \$libdir does
17678 # not exist.
17679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17680
17681 # Whether we need a single -rpath flag with a separated argument.
17682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17683
17684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17685 # resulting binary.
17686 hardcode_direct=$hardcode_direct_GCJ
17687
17688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17689 # resulting binary.
17690 hardcode_minus_L=$hardcode_minus_L_GCJ
17691
17692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17693 # the resulting binary.
17694 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17695
17696 # Set to yes if building a shared library automatically hardcodes DIR into the library
17697 # and all subsequent libraries and executables linked against it.
17698 hardcode_automatic=$hardcode_automatic_GCJ
17699
17700 # Variables whose values should be saved in libtool wrapper scripts and
17701 # restored at relink time.
17702 variables_saved_for_relink="$variables_saved_for_relink"
17703
17704 # Whether libtool must link a program against all its dependency libraries.
17705 link_all_deplibs=$link_all_deplibs_GCJ
17706
17707 # Compile-time system search path for libraries
17708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17709
17710 # Run-time system search path for libraries
17711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17712
17713 # Fix the shell variable \$srcfile for the compiler.
17714 fix_srcfile_path="$fix_srcfile_path_GCJ"
17715
17716 # Set to yes if exported symbols are required.
17717 always_export_symbols=$always_export_symbols_GCJ
17718
17719 # The commands to list exported symbols.
17720 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17721
17722 # The commands to extract the exported symbol list from a shared archive.
17723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17724
17725 # Symbols that should not be listed in the preloaded symbols.
17726 exclude_expsyms=$lt_exclude_expsyms_GCJ
17727
17728 # Symbols that must always be exported.
17729 include_expsyms=$lt_include_expsyms_GCJ
17730
17731 # ### END LIBTOOL TAG CONFIG: $tagname
17732
17733 __EOF__
17734
17735
17736 else
17737   # If there is no Makefile yet, we rely on a make rule to execute
17738   # `config.status --recheck' to rerun these tests and create the
17739   # libtool script then.
17740   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17741   if test -f "$ltmain_in"; then
17742     test -f Makefile && make "$ltmain"
17743   fi
17744 fi
17745
17746
17747 ac_ext=c
17748 ac_cpp='$CPP $CPPFLAGS'
17749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17752
17753 CC="$lt_save_CC"
17754
17755         else
17756           tagname=""
17757         fi
17758         ;;
17759
17760       RC)
17761
17762
17763
17764 # Source file extension for RC test sources.
17765 ac_ext=rc
17766
17767 # Object file extension for compiled RC test sources.
17768 objext=o
17769 objext_RC=$objext
17770
17771 # Code to be used in simple compile tests
17772 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17773
17774 # Code to be used in simple link tests
17775 lt_simple_link_test_code="$lt_simple_compile_test_code"
17776
17777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17778
17779 # If no C compiler was specified, use CC.
17780 LTCC=${LTCC-"$CC"}
17781
17782 # If no C compiler flags were specified, use CFLAGS.
17783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17784
17785 # Allow CC to be a program name with arguments.
17786 compiler=$CC
17787
17788
17789 # save warnings/boilerplate of simple test code
17790 ac_outfile=conftest.$ac_objext
17791 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17793 _lt_compiler_boilerplate=`cat conftest.err`
17794 $rm conftest*
17795
17796 ac_outfile=conftest.$ac_objext
17797 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17799 _lt_linker_boilerplate=`cat conftest.err`
17800 $rm conftest*
17801
17802
17803 # Allow CC to be a program name with arguments.
17804 lt_save_CC="$CC"
17805 CC=${RC-"windres"}
17806 compiler=$CC
17807 compiler_RC=$CC
17808 for cc_temp in $compiler""; do
17809   case $cc_temp in
17810     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17811     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17812     \-*) ;;
17813     *) break;;
17814   esac
17815 done
17816 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17817
17818 lt_cv_prog_compiler_c_o_RC=yes
17819
17820 # The else clause should only fire when bootstrapping the
17821 # libtool distribution, otherwise you forgot to ship ltmain.sh
17822 # with your package, and you will get complaints that there are
17823 # no rules to generate ltmain.sh.
17824 if test -f "$ltmain"; then
17825   # See if we are running on zsh, and set the options which allow our commands through
17826   # without removal of \ escapes.
17827   if test -n "${ZSH_VERSION+set}" ; then
17828     setopt NO_GLOB_SUBST
17829   fi
17830   # Now quote all the things that may contain metacharacters while being
17831   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17832   # variables and quote the copies for generation of the libtool script.
17833   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17834     SED SHELL STRIP \
17835     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17836     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17837     deplibs_check_method reload_flag reload_cmds need_locks \
17838     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17839     lt_cv_sys_global_symbol_to_c_name_address \
17840     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17841     old_postinstall_cmds old_postuninstall_cmds \
17842     compiler_RC \
17843     CC_RC \
17844     LD_RC \
17845     lt_prog_compiler_wl_RC \
17846     lt_prog_compiler_pic_RC \
17847     lt_prog_compiler_static_RC \
17848     lt_prog_compiler_no_builtin_flag_RC \
17849     export_dynamic_flag_spec_RC \
17850     thread_safe_flag_spec_RC \
17851     whole_archive_flag_spec_RC \
17852     enable_shared_with_static_runtimes_RC \
17853     old_archive_cmds_RC \
17854     old_archive_from_new_cmds_RC \
17855     predep_objects_RC \
17856     postdep_objects_RC \
17857     predeps_RC \
17858     postdeps_RC \
17859     compiler_lib_search_path_RC \
17860     archive_cmds_RC \
17861     archive_expsym_cmds_RC \
17862     postinstall_cmds_RC \
17863     postuninstall_cmds_RC \
17864     old_archive_from_expsyms_cmds_RC \
17865     allow_undefined_flag_RC \
17866     no_undefined_flag_RC \
17867     export_symbols_cmds_RC \
17868     hardcode_libdir_flag_spec_RC \
17869     hardcode_libdir_flag_spec_ld_RC \
17870     hardcode_libdir_separator_RC \
17871     hardcode_automatic_RC \
17872     module_cmds_RC \
17873     module_expsym_cmds_RC \
17874     lt_cv_prog_compiler_c_o_RC \
17875     exclude_expsyms_RC \
17876     include_expsyms_RC; do
17877
17878     case $var in
17879     old_archive_cmds_RC | \
17880     old_archive_from_new_cmds_RC | \
17881     archive_cmds_RC | \
17882     archive_expsym_cmds_RC | \
17883     module_cmds_RC | \
17884     module_expsym_cmds_RC | \
17885     old_archive_from_expsyms_cmds_RC | \
17886     export_symbols_cmds_RC | \
17887     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17888     postinstall_cmds | postuninstall_cmds | \
17889     old_postinstall_cmds | old_postuninstall_cmds | \
17890     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17891       # Double-quote double-evaled strings.
17892       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17893       ;;
17894     *)
17895       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17896       ;;
17897     esac
17898   done
17899
17900   case $lt_echo in
17901   *'\$0 --fallback-echo"')
17902     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17903     ;;
17904   esac
17905
17906 cfgfile="$ofile"
17907
17908   cat <<__EOF__ >> "$cfgfile"
17909 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17910
17911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17912
17913 # Shell to use when invoking shell scripts.
17914 SHELL=$lt_SHELL
17915
17916 # Whether or not to build shared libraries.
17917 build_libtool_libs=$enable_shared
17918
17919 # Whether or not to build static libraries.
17920 build_old_libs=$enable_static
17921
17922 # Whether or not to add -lc for building shared libraries.
17923 build_libtool_need_lc=$archive_cmds_need_lc_RC
17924
17925 # Whether or not to disallow shared libs when runtime libs are static
17926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17927
17928 # Whether or not to optimize for fast installation.
17929 fast_install=$enable_fast_install
17930
17931 # The host system.
17932 host_alias=$host_alias
17933 host=$host
17934 host_os=$host_os
17935
17936 # The build system.
17937 build_alias=$build_alias
17938 build=$build
17939 build_os=$build_os
17940
17941 # An echo program that does not interpret backslashes.
17942 echo=$lt_echo
17943
17944 # The archiver.
17945 AR=$lt_AR
17946 AR_FLAGS=$lt_AR_FLAGS
17947
17948 # A C compiler.
17949 LTCC=$lt_LTCC
17950
17951 # LTCC compiler flags.
17952 LTCFLAGS=$lt_LTCFLAGS
17953
17954 # A language-specific compiler.
17955 CC=$lt_compiler_RC
17956
17957 # Is the compiler the GNU C compiler?
17958 with_gcc=$GCC_RC
17959
17960 # An ERE matcher.
17961 EGREP=$lt_EGREP
17962
17963 # The linker used to build libraries.
17964 LD=$lt_LD_RC
17965
17966 # Whether we need hard or soft links.
17967 LN_S=$lt_LN_S
17968
17969 # A BSD-compatible nm program.
17970 NM=$lt_NM
17971
17972 # A symbol stripping program
17973 STRIP=$lt_STRIP
17974
17975 # Used to examine libraries when file_magic_cmd begins "file"
17976 MAGIC_CMD=$MAGIC_CMD
17977
17978 # Used on cygwin: DLL creation program.
17979 DLLTOOL="$DLLTOOL"
17980
17981 # Used on cygwin: object dumper.
17982 OBJDUMP="$OBJDUMP"
17983
17984 # Used on cygwin: assembler.
17985 AS="$AS"
17986
17987 # The name of the directory that contains temporary libtool files.
17988 objdir=$objdir
17989
17990 # How to create reloadable object files.
17991 reload_flag=$lt_reload_flag
17992 reload_cmds=$lt_reload_cmds
17993
17994 # How to pass a linker flag through the compiler.
17995 wl=$lt_lt_prog_compiler_wl_RC
17996
17997 # Object file suffix (normally "o").
17998 objext="$ac_objext"
17999
18000 # Old archive suffix (normally "a").
18001 libext="$libext"
18002
18003 # Shared library suffix (normally ".so").
18004 shrext_cmds='$shrext_cmds'
18005
18006 # Executable file suffix (normally "").
18007 exeext="$exeext"
18008
18009 # Additional compiler flags for building library objects.
18010 pic_flag=$lt_lt_prog_compiler_pic_RC
18011 pic_mode=$pic_mode
18012
18013 # What is the maximum length of a command?
18014 max_cmd_len=$lt_cv_sys_max_cmd_len
18015
18016 # Does compiler simultaneously support -c and -o options?
18017 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18018
18019 # Must we lock files when doing compilation?
18020 need_locks=$lt_need_locks
18021
18022 # Do we need the lib prefix for modules?
18023 need_lib_prefix=$need_lib_prefix
18024
18025 # Do we need a version for libraries?
18026 need_version=$need_version
18027
18028 # Whether dlopen is supported.
18029 dlopen_support=$enable_dlopen
18030
18031 # Whether dlopen of programs is supported.
18032 dlopen_self=$enable_dlopen_self
18033
18034 # Whether dlopen of statically linked programs is supported.
18035 dlopen_self_static=$enable_dlopen_self_static
18036
18037 # Compiler flag to prevent dynamic linking.
18038 link_static_flag=$lt_lt_prog_compiler_static_RC
18039
18040 # Compiler flag to turn off builtin functions.
18041 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18042
18043 # Compiler flag to allow reflexive dlopens.
18044 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18045
18046 # Compiler flag to generate shared objects directly from archives.
18047 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18048
18049 # Compiler flag to generate thread-safe objects.
18050 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18051
18052 # Library versioning type.
18053 version_type=$version_type
18054
18055 # Format of library name prefix.
18056 libname_spec=$lt_libname_spec
18057
18058 # List of archive names.  First name is the real one, the rest are links.
18059 # The last name is the one that the linker finds with -lNAME.
18060 library_names_spec=$lt_library_names_spec
18061
18062 # The coded name of the library, if different from the real name.
18063 soname_spec=$lt_soname_spec
18064
18065 # Commands used to build and install an old-style archive.
18066 RANLIB=$lt_RANLIB
18067 old_archive_cmds=$lt_old_archive_cmds_RC
18068 old_postinstall_cmds=$lt_old_postinstall_cmds
18069 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18070
18071 # Create an old-style archive from a shared archive.
18072 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18073
18074 # Create a temporary old-style archive to link instead of a shared archive.
18075 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18076
18077 # Commands used to build and install a shared archive.
18078 archive_cmds=$lt_archive_cmds_RC
18079 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18080 postinstall_cmds=$lt_postinstall_cmds
18081 postuninstall_cmds=$lt_postuninstall_cmds
18082
18083 # Commands used to build a loadable module (assumed same as above if empty)
18084 module_cmds=$lt_module_cmds_RC
18085 module_expsym_cmds=$lt_module_expsym_cmds_RC
18086
18087 # Commands to strip libraries.
18088 old_striplib=$lt_old_striplib
18089 striplib=$lt_striplib
18090
18091 # Dependencies to place before the objects being linked to create a
18092 # shared library.
18093 predep_objects=$lt_predep_objects_RC
18094
18095 # Dependencies to place after the objects being linked to create a
18096 # shared library.
18097 postdep_objects=$lt_postdep_objects_RC
18098
18099 # Dependencies to place before the objects being linked to create a
18100 # shared library.
18101 predeps=$lt_predeps_RC
18102
18103 # Dependencies to place after the objects being linked to create a
18104 # shared library.
18105 postdeps=$lt_postdeps_RC
18106
18107 # The library search path used internally by the compiler when linking
18108 # a shared library.
18109 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18110
18111 # Method to check whether dependent libraries are shared objects.
18112 deplibs_check_method=$lt_deplibs_check_method
18113
18114 # Command to use when deplibs_check_method == file_magic.
18115 file_magic_cmd=$lt_file_magic_cmd
18116
18117 # Flag that allows shared libraries with undefined symbols to be built.
18118 allow_undefined_flag=$lt_allow_undefined_flag_RC
18119
18120 # Flag that forces no undefined symbols.
18121 no_undefined_flag=$lt_no_undefined_flag_RC
18122
18123 # Commands used to finish a libtool library installation in a directory.
18124 finish_cmds=$lt_finish_cmds
18125
18126 # Same as above, but a single script fragment to be evaled but not shown.
18127 finish_eval=$lt_finish_eval
18128
18129 # Take the output of nm and produce a listing of raw symbols and C names.
18130 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18131
18132 # Transform the output of nm in a proper C declaration
18133 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18134
18135 # Transform the output of nm in a C name address pair
18136 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18137
18138 # This is the shared library runtime path variable.
18139 runpath_var=$runpath_var
18140
18141 # This is the shared library path variable.
18142 shlibpath_var=$shlibpath_var
18143
18144 # Is shlibpath searched before the hard-coded library search path?
18145 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18146
18147 # How to hardcode a shared library path into an executable.
18148 hardcode_action=$hardcode_action_RC
18149
18150 # Whether we should hardcode library paths into libraries.
18151 hardcode_into_libs=$hardcode_into_libs
18152
18153 # Flag to hardcode \$libdir into a binary during linking.
18154 # This must work even if \$libdir does not exist.
18155 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18156
18157 # If ld is used when linking, flag to hardcode \$libdir into
18158 # a binary during linking. This must work even if \$libdir does
18159 # not exist.
18160 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18161
18162 # Whether we need a single -rpath flag with a separated argument.
18163 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18164
18165 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18166 # resulting binary.
18167 hardcode_direct=$hardcode_direct_RC
18168
18169 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18170 # resulting binary.
18171 hardcode_minus_L=$hardcode_minus_L_RC
18172
18173 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18174 # the resulting binary.
18175 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18176
18177 # Set to yes if building a shared library automatically hardcodes DIR into the library
18178 # and all subsequent libraries and executables linked against it.
18179 hardcode_automatic=$hardcode_automatic_RC
18180
18181 # Variables whose values should be saved in libtool wrapper scripts and
18182 # restored at relink time.
18183 variables_saved_for_relink="$variables_saved_for_relink"
18184
18185 # Whether libtool must link a program against all its dependency libraries.
18186 link_all_deplibs=$link_all_deplibs_RC
18187
18188 # Compile-time system search path for libraries
18189 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18190
18191 # Run-time system search path for libraries
18192 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18193
18194 # Fix the shell variable \$srcfile for the compiler.
18195 fix_srcfile_path="$fix_srcfile_path_RC"
18196
18197 # Set to yes if exported symbols are required.
18198 always_export_symbols=$always_export_symbols_RC
18199
18200 # The commands to list exported symbols.
18201 export_symbols_cmds=$lt_export_symbols_cmds_RC
18202
18203 # The commands to extract the exported symbol list from a shared archive.
18204 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18205
18206 # Symbols that should not be listed in the preloaded symbols.
18207 exclude_expsyms=$lt_exclude_expsyms_RC
18208
18209 # Symbols that must always be exported.
18210 include_expsyms=$lt_include_expsyms_RC
18211
18212 # ### END LIBTOOL TAG CONFIG: $tagname
18213
18214 __EOF__
18215
18216
18217 else
18218   # If there is no Makefile yet, we rely on a make rule to execute
18219   # `config.status --recheck' to rerun these tests and create the
18220   # libtool script then.
18221   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18222   if test -f "$ltmain_in"; then
18223     test -f Makefile && make "$ltmain"
18224   fi
18225 fi
18226
18227
18228 ac_ext=c
18229 ac_cpp='$CPP $CPPFLAGS'
18230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18233
18234 CC="$lt_save_CC"
18235
18236         ;;
18237
18238       *)
18239         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18240 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18241    { (exit 1); exit 1; }; }
18242         ;;
18243       esac
18244
18245       # Append the new tag name to the list of available tags.
18246       if test -n "$tagname" ; then
18247       available_tags="$available_tags $tagname"
18248     fi
18249     fi
18250   done
18251   IFS="$lt_save_ifs"
18252
18253   # Now substitute the updated list of available tags.
18254   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18255     mv "${ofile}T" "$ofile"
18256     chmod +x "$ofile"
18257   else
18258     rm -f "${ofile}T"
18259     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18260 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18261    { (exit 1); exit 1; }; }
18262   fi
18263 fi
18264
18265
18266
18267 # This can be used to rebuild libtool when needed
18268 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18269
18270 # Always use our own libtool.
18271 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18272
18273 # Prevent multiple expansion
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295 # Checks for header files.
18296 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18297 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18298 if test "${ac_cv_header_stdc+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301   cat >conftest.$ac_ext <<_ACEOF
18302 /* confdefs.h.  */
18303 _ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h.  */
18307 #include <stdlib.h>
18308 #include <stdarg.h>
18309 #include <string.h>
18310 #include <float.h>
18311
18312 int
18313 main ()
18314 {
18315
18316   ;
18317   return 0;
18318 }
18319 _ACEOF
18320 rm -f conftest.$ac_objext
18321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18322   (eval $ac_compile) 2>conftest.er1
18323   ac_status=$?
18324   grep -v '^ *+' conftest.er1 >conftest.err
18325   rm -f conftest.er1
18326   cat conftest.err >&5
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); } &&
18329          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331   (eval $ac_try) 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; } &&
18335          { ac_try='test -s conftest.$ac_objext'
18336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337   (eval $ac_try) 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; }; then
18341   ac_cv_header_stdc=yes
18342 else
18343   echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18345
18346 ac_cv_header_stdc=no
18347 fi
18348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18349
18350 if test $ac_cv_header_stdc = yes; then
18351   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18352   cat >conftest.$ac_ext <<_ACEOF
18353 /* confdefs.h.  */
18354 _ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h.  */
18358 #include <string.h>
18359
18360 _ACEOF
18361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18362   $EGREP "memchr" >/dev/null 2>&1; then
18363   :
18364 else
18365   ac_cv_header_stdc=no
18366 fi
18367 rm -f conftest*
18368
18369 fi
18370
18371 if test $ac_cv_header_stdc = yes; then
18372   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18373   cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h.  */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h.  */
18379 #include <stdlib.h>
18380
18381 _ACEOF
18382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18383   $EGREP "free" >/dev/null 2>&1; then
18384   :
18385 else
18386   ac_cv_header_stdc=no
18387 fi
18388 rm -f conftest*
18389
18390 fi
18391
18392 if test $ac_cv_header_stdc = yes; then
18393   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18394   if test "$cross_compiling" = yes; then
18395   :
18396 else
18397   cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403 #include <ctype.h>
18404 #if ((' ' & 0x0FF) == 0x020)
18405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18407 #else
18408 # define ISLOWER(c) \
18409                    (('a' <= (c) && (c) <= 'i') \
18410                      || ('j' <= (c) && (c) <= 'r') \
18411                      || ('s' <= (c) && (c) <= 'z'))
18412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18413 #endif
18414
18415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18416 int
18417 main ()
18418 {
18419   int i;
18420   for (i = 0; i < 256; i++)
18421     if (XOR (islower (i), ISLOWER (i))
18422         || toupper (i) != TOUPPER (i))
18423       exit(2);
18424   exit (0);
18425 }
18426 _ACEOF
18427 rm -f conftest$ac_exeext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18429   (eval $ac_link) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434   (eval $ac_try) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); }; }; then
18438   :
18439 else
18440   echo "$as_me: program exited with status $ac_status" >&5
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18443
18444 ( exit $ac_status )
18445 ac_cv_header_stdc=no
18446 fi
18447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18448 fi
18449 fi
18450 fi
18451 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18452 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18453 if test $ac_cv_header_stdc = yes; then
18454
18455 cat >>confdefs.h <<\_ACEOF
18456 #define STDC_HEADERS 1
18457 _ACEOF
18458
18459 fi
18460
18461
18462
18463
18464
18465 for ac_header in fcntl.h stdlib.h string.h unistd.h
18466 do
18467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18469   echo "$as_me:$LINENO: checking for $ac_header" >&5
18470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 fi
18474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18476 else
18477   # Is the header compilable?
18478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h.  */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h.  */
18486 $ac_includes_default
18487 #include <$ac_header>
18488 _ACEOF
18489 rm -f conftest.$ac_objext
18490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18491   (eval $ac_compile) 2>conftest.er1
18492   ac_status=$?
18493   grep -v '^ *+' conftest.er1 >conftest.err
18494   rm -f conftest.er1
18495   cat conftest.err >&5
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); } &&
18498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500   (eval $ac_try) 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; } &&
18504          { ac_try='test -s conftest.$ac_objext'
18505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506   (eval $ac_try) 2>&5
18507   ac_status=$?
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); }; }; then
18510   ac_header_compiler=yes
18511 else
18512   echo "$as_me: failed program was:" >&5
18513 sed 's/^/| /' conftest.$ac_ext >&5
18514
18515 ac_header_compiler=no
18516 fi
18517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18519 echo "${ECHO_T}$ac_header_compiler" >&6
18520
18521 # Is the header present?
18522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18524 cat >conftest.$ac_ext <<_ACEOF
18525 /* confdefs.h.  */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h.  */
18530 #include <$ac_header>
18531 _ACEOF
18532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18534   ac_status=$?
18535   grep -v '^ *+' conftest.er1 >conftest.err
18536   rm -f conftest.er1
18537   cat conftest.err >&5
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); } >/dev/null; then
18540   if test -s conftest.err; then
18541     ac_cpp_err=$ac_c_preproc_warn_flag
18542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18543   else
18544     ac_cpp_err=
18545   fi
18546 else
18547   ac_cpp_err=yes
18548 fi
18549 if test -z "$ac_cpp_err"; then
18550   ac_header_preproc=yes
18551 else
18552   echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18554
18555   ac_header_preproc=no
18556 fi
18557 rm -f conftest.err conftest.$ac_ext
18558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18559 echo "${ECHO_T}$ac_header_preproc" >&6
18560
18561 # So?  What about this header?
18562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18563   yes:no: )
18564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18568     ac_header_preproc=yes
18569     ;;
18570   no:yes:* )
18571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18573     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18574 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18575     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18577     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18578 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18581     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18583     (
18584       cat <<\_ASBOX
18585 ## -------------------------------------------- ##
18586 ## Report this to sebastian.marsching@suphp.org ##
18587 ## -------------------------------------------- ##
18588 _ASBOX
18589     ) |
18590       sed "s/^/$as_me: WARNING:     /" >&2
18591     ;;
18592 esac
18593 echo "$as_me:$LINENO: checking for $ac_header" >&5
18594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18596   echo $ECHO_N "(cached) $ECHO_C" >&6
18597 else
18598   eval "$as_ac_Header=\$ac_header_preproc"
18599 fi
18600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18602
18603 fi
18604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18605   cat >>confdefs.h <<_ACEOF
18606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18607 _ACEOF
18608
18609 fi
18610
18611 done
18612
18613
18614 # Find apr-config
18615
18616
18617   apr_found="no"
18618
18619   if test "$ac_cv_emxos2" = "yes"; then
18620     # Scripts don't pass test -x on OS/2
18621     TEST_X="test -f"
18622   else
18623     TEST_X="test -x"
18624   fi
18625
18626   echo "$as_me:$LINENO: checking for APR" >&5
18627 echo $ECHO_N "checking for APR... $ECHO_C" >&6
18628
18629 # Check whether --with-apr or --without-apr was given.
18630 if test "${with_apr+set}" = set; then
18631   withval="$with_apr"
18632
18633     if test "$withval" = "no" || test "$withval" = "yes"; then
18634       { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
18635 echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
18636    { (exit 1); exit 1; }; }
18637     fi
18638
18639     if $TEST_X "$withval/bin/apr-config"; then
18640       apr_found="yes"
18641       apr_config="$withval/bin/apr-config"
18642     elif $TEST_X "$withval/apr-config"; then
18643       apr_found="yes"
18644       apr_config="$withval/apr-config"
18645     elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
18646       apr_found="yes"
18647       apr_config="$withval"
18648     fi
18649
18650         if test "$apr_found" != "yes"; then
18651       { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
18652 build directory, or an apr-config file." >&5
18653 echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
18654 build directory, or an apr-config file." >&2;}
18655    { (exit 1); exit 1; }; }
18656     fi
18657
18658 else
18659
18660         if test -d ""; then
18661       apr_temp_abs_srcdir="`cd  && pwd`"
18662       apr_found="reconfig"
18663       if test -n ""; then
18664         apr_config="/apr-config"
18665       else
18666         apr_config="/apr-config"
18667       fi
18668     fi
18669     if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
18670       if apr-config --help > /dev/null 2>&1 ; then
18671         apr_found="yes"
18672         apr_config="apr-config"
18673       else
18674                 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
18675           if $TEST_X "$lookdir/bin/apr-config"; then
18676             apr_found="yes"
18677             apr_config="$lookdir/bin/apr-config"
18678             break
18679           fi
18680         done
18681       fi
18682     fi
18683
18684 fi;
18685
18686   echo "$as_me:$LINENO: result: $apr_found" >&5
18687 echo "${ECHO_T}$apr_found" >&6
18688
18689
18690 # Determine Apache version and find apxs
18691
18692 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
18693 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
18694
18695 # Check whether --with-apxs or --without-apxs was given.
18696 if test "${with_apxs+set}" = set; then
18697   withval="$with_apxs"
18698
18699             if test "$withval" = "yes"; then
18700               APXS=apxs
18701             else
18702               APXS="$withval"
18703             fi
18704
18705 fi;
18706
18707 if test -z "$APXS"; then
18708   APXS=`which apxs`
18709 fi
18710
18711 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
18712   for i in /usr/sbin /usr/local/apache/bin ; do
18713     if test -f "$i/apxs"; then
18714       APXS="$i/apxs"
18715     fi
18716   done
18717 fi
18718
18719 if test -n "$APXS"; then
18720
18721
18722     APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
18723                     | grep "Server version" \
18724                     | cut -f2 -d":" \
18725                     | cut -f2 -d"/" \
18726                     | cut -f1 -d" "`
18727     major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
18728     if test "$major_version" = "2.0"; then
18729       APACHE_VERSION_2=true
18730       APACHE_VERSION_1_3=false
18731     else
18732       APACHE_VERSION_2=false
18733       APACHE_VERSION_1_3=true
18734     fi
18735
18736
18737
18738     APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
18739     APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
18740     if test x"${APACHE_VERSION_2}" = xtrue ; then \
18741       APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
18742     fi
18743     if test x"${APACHE_VERSION_1_3}" = xtrue; then \
18744       APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
18745     fi
18746
18747
18748
18749
18750     echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
18751 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
18752 else
18753     APXS="/notfound/"
18754
18755
18756     echo "$as_me:$LINENO: result: no" >&5
18757 echo "${ECHO_T}no" >&6
18758 fi
18759
18760 if test x"${APACHE_VERSION_2}" = xtrue ; then \
18761     if test x"${apr_found}" = xyes ; then \
18762         APR_INCLUDEDIR=`${apr_config} --includedir`
18763
18764     else
18765         { { echo "$as_me:$LINENO: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&5
18766 echo "$as_me: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&2;}
18767    { (exit 1); exit 1; }; }
18768     fi
18769 fi
18770
18771 # Get uid/gid mode
18772
18773 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
18774 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
18775
18776 # Check whether --with-setid-mode or --without-setid-mode was given.
18777 if test "${with_setid_mode+set}" = set; then
18778   withval="$with_setid_mode"
18779
18780             if test "$withval" = "yes"; then
18781               SETID_MODE="paranoid"
18782             else
18783               SETID_MODE="$withval"
18784             fi
18785
18786 fi;
18787
18788 if test -z "$SETID_MODE" ; then
18789   SETID_MODE="paranoid"
18790 fi
18791
18792 if test -n "$SETID_MODE"; then
18793     case "$SETID_MODE" in
18794       owner)
18795         OPT_APACHEMOD_USERGROUP_DEF=""
18796
18797
18798 cat >>confdefs.h <<\_ACEOF
18799 #define OPT_USERGROUP_OWNER 1
18800 _ACEOF
18801
18802         ;;
18803       force)
18804         OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
18805
18806
18807 cat >>confdefs.h <<\_ACEOF
18808 #define OPT_USERGROUP_FORCE 1
18809 _ACEOF
18810
18811         ;;
18812       paranoid)
18813         OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
18814
18815
18816 cat >>confdefs.h <<\_ACEOF
18817 #define OPT_USERGROUP_PARANOID 1
18818 _ACEOF
18819
18820         ;;
18821       *)
18822         { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
18823 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
18824    { (exit 1); exit 1; }; }
18825         ;;
18826     esac
18827     echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
18828 echo "${ECHO_T}ok - using $SETID_MODE" >&6
18829 fi
18830
18831
18832 # Checkpath (docroot) option
18833
18834 checkpath=yes
18835 # Check whether --enable-checkpath or --disable-checkpath was given.
18836 if test "${enable_checkpath+set}" = set; then
18837   enableval="$enable_checkpath"
18838
18839               if test "$enableval" = "no"; then
18840                 checkpath=no
18841
18842 cat >>confdefs.h <<\_ACEOF
18843 #define OPT_DISABLE_CHECKPATH 1
18844 _ACEOF
18845
18846               fi
18847
18848 fi;
18849
18850
18851 # Minimum UID
18852
18853
18854 # Check whether --with-min-uid or --without-min-uid was given.
18855 if test "${with_min_uid+set}" = set; then
18856   withval="$with_min_uid"
18857
18858              if test "$withval" -a ! "$withval" = "yes" ; then
18859
18860 cat >>confdefs.h <<_ACEOF
18861 #define OPT_MIN_UID $withval
18862 _ACEOF
18863
18864              fi
18865
18866 else
18867
18868
18869 cat >>confdefs.h <<\_ACEOF
18870 #define OPT_MIN_UID 100
18871 _ACEOF
18872
18873
18874 fi;
18875
18876 # Minimum GID
18877
18878
18879 # Check whether --with-min-gid or --without-min-gid was given.
18880 if test "${with_min_gid+set}" = set; then
18881   withval="$with_min_gid"
18882
18883              if test "$withval" -a ! "$withval" = "yes" ; then
18884
18885 cat >>confdefs.h <<_ACEOF
18886 #define OPT_MIN_GID $withval
18887 _ACEOF
18888
18889              fi
18890
18891 else
18892
18893
18894 cat >>confdefs.h <<\_ACEOF
18895 #define OPT_MIN_GID 100
18896 _ACEOF
18897
18898
18899 fi;
18900
18901
18902 # Webserver user
18903
18904
18905 # Check whether --with-apache-user or --without-apache-user was given.
18906 if test "${with_apache_user+set}" = set; then
18907   withval="$with_apache_user"
18908
18909              if test "$withval" -a ! "$withval" = "yes" ; then
18910
18911 cat >>confdefs.h <<_ACEOF
18912 #define OPT_APACHE_USER "$withval"
18913 _ACEOF
18914
18915              fi
18916
18917 else
18918
18919
18920 cat >>confdefs.h <<_ACEOF
18921 #define OPT_APACHE_USER "wwwrun"
18922 _ACEOF
18923
18924
18925 fi;
18926
18927 # Path to logfile
18928
18929
18930 # Check whether --with-logfile or --without-logfile was given.
18931 if test "${with_logfile+set}" = set; then
18932   withval="$with_logfile"
18933
18934              if test "$withval" -a ! "$withval" = "yes" ; then
18935
18936 cat >>confdefs.h <<_ACEOF
18937 #define OPT_LOGFILE "$withval"
18938 _ACEOF
18939
18940              fi
18941
18942 else
18943
18944
18945 cat >>confdefs.h <<_ACEOF
18946 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
18947 _ACEOF
18948
18949
18950 fi;
18951
18952
18953 # Conditional building of Apache module
18954
18955
18956 if test x"$APACHE_VERSION_1_3" = xtrue; then
18957   COND_AP13_TRUE=
18958   COND_AP13_FALSE='#'
18959 else
18960   COND_AP13_TRUE='#'
18961   COND_AP13_FALSE=
18962 fi
18963
18964
18965 if test x"$APACHE_VERSION_2" = xtrue; then
18966   COND_AP20_TRUE=
18967   COND_AP20_FALSE='#'
18968 else
18969   COND_AP20_TRUE='#'
18970   COND_AP20_FALSE=
18971 fi
18972
18973 # Conditionally include UserGroup support
18974
18975
18976 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
18977   COND_APUSERGROUP_TRUE=
18978   COND_APUSERGROUP_FALSE='#'
18979 else
18980   COND_APUSERGROUP_TRUE='#'
18981   COND_APUSERGROUP_FALSE=
18982 fi
18983
18984                                         ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
18985
18986 cat >confcache <<\_ACEOF
18987 # This file is a shell script that caches the results of configure
18988 # tests run on this system so they can be shared between configure
18989 # scripts and configure runs, see configure's option --config-cache.
18990 # It is not useful on other systems.  If it contains results you don't
18991 # want to keep, you may remove or edit it.
18992 #
18993 # config.status only pays attention to the cache file if you give it
18994 # the --recheck option to rerun configure.
18995 #
18996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18998 # following values.
18999
19000 _ACEOF
19001
19002 # The following way of writing the cache mishandles newlines in values,
19003 # but we know of no workaround that is simple, portable, and efficient.
19004 # So, don't put newlines in cache variables' values.
19005 # Ultrix sh set writes to stderr and can't be redirected directly,
19006 # and sets the high bit in the cache file unless we assign to the vars.
19007 {
19008   (set) 2>&1 |
19009     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19010     *ac_space=\ *)
19011       # `set' does not quote correctly, so add quotes (double-quote
19012       # substitution turns \\\\ into \\, and sed turns \\ into \).
19013       sed -n \
19014         "s/'/'\\\\''/g;
19015           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19016       ;;
19017     *)
19018       # `set' quotes correctly as required by POSIX, so do not add quotes.
19019       sed -n \
19020         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19021       ;;
19022     esac;
19023 } |
19024   sed '
19025      t clear
19026      : clear
19027      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19028      t end
19029      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19030      : end' >>confcache
19031 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19032   if test -w $cache_file; then
19033     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19034     cat confcache >$cache_file
19035   else
19036     echo "not updating unwritable cache $cache_file"
19037   fi
19038 fi
19039 rm -f confcache
19040
19041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19042 # Let make expand exec_prefix.
19043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19044
19045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19047 # trailing colons and then remove the whole line if VPATH becomes empty
19048 # (actually we leave an empty line to preserve line numbers).
19049 if test "x$srcdir" = x.; then
19050   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19051 s/:*\$(srcdir):*/:/;
19052 s/:*\${srcdir}:*/:/;
19053 s/:*@srcdir@:*/:/;
19054 s/^\([^=]*=[     ]*\):*/\1/;
19055 s/:*$//;
19056 s/^[^=]*=[       ]*$//;
19057 }'
19058 fi
19059
19060 DEFS=-DHAVE_CONFIG_H
19061
19062 ac_libobjs=
19063 ac_ltlibobjs=
19064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19065   # 1. Remove the extension, and $U if already installed.
19066   ac_i=`echo "$ac_i" |
19067          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19068   # 2. Add them.
19069   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19070   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19071 done
19072 LIBOBJS=$ac_libobjs
19073
19074 LTLIBOBJS=$ac_ltlibobjs
19075
19076
19077
19078 : ${CONFIG_STATUS=./config.status}
19079 ac_clean_files_save=$ac_clean_files
19080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19082 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19083 cat >$CONFIG_STATUS <<_ACEOF
19084 #! $SHELL
19085 # Generated by $as_me.
19086 # Run this file to recreate the current configuration.
19087 # Compiler output produced by configure, useful for debugging
19088 # configure, is in config.log if it exists.
19089
19090 debug=false
19091 ac_cs_recheck=false
19092 ac_cs_silent=false
19093 SHELL=\${CONFIG_SHELL-$SHELL}
19094 _ACEOF
19095
19096 cat >>$CONFIG_STATUS <<\_ACEOF
19097 ## --------------------- ##
19098 ## M4sh Initialization.  ##
19099 ## --------------------- ##
19100
19101 # Be Bourne compatible
19102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19103   emulate sh
19104   NULLCMD=:
19105   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19106   # is contrary to our usage.  Disable this feature.
19107   alias -g '${1+"$@"}'='"$@"'
19108 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19109   set -o posix
19110 fi
19111 DUALCASE=1; export DUALCASE # for MKS sh
19112
19113 # Support unset when possible.
19114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19115   as_unset=unset
19116 else
19117   as_unset=false
19118 fi
19119
19120
19121 # Work around bugs in pre-3.0 UWIN ksh.
19122 $as_unset ENV MAIL MAILPATH
19123 PS1='$ '
19124 PS2='> '
19125 PS4='+ '
19126
19127 # NLS nuisances.
19128 for as_var in \
19129   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19130   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19131   LC_TELEPHONE LC_TIME
19132 do
19133   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19134     eval $as_var=C; export $as_var
19135   else
19136     $as_unset $as_var
19137   fi
19138 done
19139
19140 # Required to use basename.
19141 if expr a : '\(a\)' >/dev/null 2>&1; then
19142   as_expr=expr
19143 else
19144   as_expr=false
19145 fi
19146
19147 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19148   as_basename=basename
19149 else
19150   as_basename=false
19151 fi
19152
19153
19154 # Name of the executable.
19155 as_me=`$as_basename "$0" ||
19156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19157          X"$0" : 'X\(//\)$' \| \
19158          X"$0" : 'X\(/\)$' \| \
19159          .     : '\(.\)' 2>/dev/null ||
19160 echo X/"$0" |
19161     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19162           /^X\/\(\/\/\)$/{ s//\1/; q; }
19163           /^X\/\(\/\).*/{ s//\1/; q; }
19164           s/.*/./; q'`
19165
19166
19167 # PATH needs CR, and LINENO needs CR and PATH.
19168 # Avoid depending upon Character Ranges.
19169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19172 as_cr_digits='0123456789'
19173 as_cr_alnum=$as_cr_Letters$as_cr_digits
19174
19175 # The user is always right.
19176 if test "${PATH_SEPARATOR+set}" != set; then
19177   echo "#! /bin/sh" >conf$$.sh
19178   echo  "exit 0"   >>conf$$.sh
19179   chmod +x conf$$.sh
19180   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19181     PATH_SEPARATOR=';'
19182   else
19183     PATH_SEPARATOR=:
19184   fi
19185   rm -f conf$$.sh
19186 fi
19187
19188
19189   as_lineno_1=$LINENO
19190   as_lineno_2=$LINENO
19191   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19192   test "x$as_lineno_1" != "x$as_lineno_2" &&
19193   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19194   # Find who we are.  Look in the path if we contain no path at all
19195   # relative or not.
19196   case $0 in
19197     *[\\/]* ) as_myself=$0 ;;
19198     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19199 for as_dir in $PATH
19200 do
19201   IFS=$as_save_IFS
19202   test -z "$as_dir" && as_dir=.
19203   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19204 done
19205
19206        ;;
19207   esac
19208   # We did not find ourselves, most probably we were run as `sh COMMAND'
19209   # in which case we are not to be found in the path.
19210   if test "x$as_myself" = x; then
19211     as_myself=$0
19212   fi
19213   if test ! -f "$as_myself"; then
19214     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19215 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19216    { (exit 1); exit 1; }; }
19217   fi
19218   case $CONFIG_SHELL in
19219   '')
19220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19222 do
19223   IFS=$as_save_IFS
19224   test -z "$as_dir" && as_dir=.
19225   for as_base in sh bash ksh sh5; do
19226          case $as_dir in
19227          /*)
19228            if ("$as_dir/$as_base" -c '
19229   as_lineno_1=$LINENO
19230   as_lineno_2=$LINENO
19231   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19232   test "x$as_lineno_1" != "x$as_lineno_2" &&
19233   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19234              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19235              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19236              CONFIG_SHELL=$as_dir/$as_base
19237              export CONFIG_SHELL
19238              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19239            fi;;
19240          esac
19241        done
19242 done
19243 ;;
19244   esac
19245
19246   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19247   # uniformly replaced by the line number.  The first 'sed' inserts a
19248   # line-number line before each line; the second 'sed' does the real
19249   # work.  The second script uses 'N' to pair each line-number line
19250   # with the numbered line, and appends trailing '-' during
19251   # substitution so that $LINENO is not a special case at line end.
19252   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19253   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19254   sed '=' <$as_myself |
19255     sed '
19256       N
19257       s,$,-,
19258       : loop
19259       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19260       t loop
19261       s,-$,,
19262       s,^['$as_cr_digits']*\n,,
19263     ' >$as_me.lineno &&
19264   chmod +x $as_me.lineno ||
19265     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19266 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19267    { (exit 1); exit 1; }; }
19268
19269   # Don't try to exec as it changes $[0], causing all sort of problems
19270   # (the dirname of $[0] is not the place where we might find the
19271   # original and so on.  Autoconf is especially sensible to this).
19272   . ./$as_me.lineno
19273   # Exit status is that of the last command.
19274   exit
19275 }
19276
19277
19278 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19279   *c*,-n*) ECHO_N= ECHO_C='
19280 ' ECHO_T='      ' ;;
19281   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19282   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19283 esac
19284
19285 if expr a : '\(a\)' >/dev/null 2>&1; then
19286   as_expr=expr
19287 else
19288   as_expr=false
19289 fi
19290
19291 rm -f conf$$ conf$$.exe conf$$.file
19292 echo >conf$$.file
19293 if ln -s conf$$.file conf$$ 2>/dev/null; then
19294   # We could just check for DJGPP; but this test a) works b) is more generic
19295   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19296   if test -f conf$$.exe; then
19297     # Don't use ln at all; we don't have any links
19298     as_ln_s='cp -p'
19299   else
19300     as_ln_s='ln -s'
19301   fi
19302 elif ln conf$$.file conf$$ 2>/dev/null; then
19303   as_ln_s=ln
19304 else
19305   as_ln_s='cp -p'
19306 fi
19307 rm -f conf$$ conf$$.exe conf$$.file
19308
19309 if mkdir -p . 2>/dev/null; then
19310   as_mkdir_p=:
19311 else
19312   test -d ./-p && rmdir ./-p
19313   as_mkdir_p=false
19314 fi
19315
19316 as_executable_p="test -f"
19317
19318 # Sed expression to map a string onto a valid CPP name.
19319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19320
19321 # Sed expression to map a string onto a valid variable name.
19322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19323
19324
19325 # IFS
19326 # We need space, tab and new line, in precisely that order.
19327 as_nl='
19328 '
19329 IFS="   $as_nl"
19330
19331 # CDPATH.
19332 $as_unset CDPATH
19333
19334 exec 6>&1
19335
19336 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19337 # report actual input values of CONFIG_FILES etc. instead of their
19338 # values after options handling.  Logging --version etc. is OK.
19339 exec 5>>config.log
19340 {
19341   echo
19342   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19343 ## Running $as_me. ##
19344 _ASBOX
19345 } >&5
19346 cat >&5 <<_CSEOF
19347
19348 This file was extended by suPHP $as_me 0.6.1, which was
19349 generated by GNU Autoconf 2.59.  Invocation command line was
19350
19351   CONFIG_FILES    = $CONFIG_FILES
19352   CONFIG_HEADERS  = $CONFIG_HEADERS
19353   CONFIG_LINKS    = $CONFIG_LINKS
19354   CONFIG_COMMANDS = $CONFIG_COMMANDS
19355   $ $0 $@
19356
19357 _CSEOF
19358 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19359 echo >&5
19360 _ACEOF
19361
19362 # Files that config.status was made for.
19363 if test -n "$ac_config_files"; then
19364   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19365 fi
19366
19367 if test -n "$ac_config_headers"; then
19368   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19369 fi
19370
19371 if test -n "$ac_config_links"; then
19372   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19373 fi
19374
19375 if test -n "$ac_config_commands"; then
19376   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19377 fi
19378
19379 cat >>$CONFIG_STATUS <<\_ACEOF
19380
19381 ac_cs_usage="\
19382 \`$as_me' instantiates files from templates according to the
19383 current configuration.
19384
19385 Usage: $0 [OPTIONS] [FILE]...
19386
19387   -h, --help       print this help, then exit
19388   -V, --version    print version number, then exit
19389   -q, --quiet      do not print progress messages
19390   -d, --debug      don't remove temporary files
19391       --recheck    update $as_me by reconfiguring in the same conditions
19392   --file=FILE[:TEMPLATE]
19393                    instantiate the configuration file FILE
19394   --header=FILE[:TEMPLATE]
19395                    instantiate the configuration header FILE
19396
19397 Configuration files:
19398 $config_files
19399
19400 Configuration headers:
19401 $config_headers
19402
19403 Configuration commands:
19404 $config_commands
19405
19406 Report bugs to <bug-autoconf@gnu.org>."
19407 _ACEOF
19408
19409 cat >>$CONFIG_STATUS <<_ACEOF
19410 ac_cs_version="\\
19411 suPHP config.status 0.6.1
19412 configured by $0, generated by GNU Autoconf 2.59,
19413   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19414
19415 Copyright (C) 2003 Free Software Foundation, Inc.
19416 This config.status script is free software; the Free Software Foundation
19417 gives unlimited permission to copy, distribute and modify it."
19418 srcdir=$srcdir
19419 INSTALL="$INSTALL"
19420 _ACEOF
19421
19422 cat >>$CONFIG_STATUS <<\_ACEOF
19423 # If no file are specified by the user, then we need to provide default
19424 # value.  By we need to know if files were specified by the user.
19425 ac_need_defaults=:
19426 while test $# != 0
19427 do
19428   case $1 in
19429   --*=*)
19430     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19431     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19432     ac_shift=:
19433     ;;
19434   -*)
19435     ac_option=$1
19436     ac_optarg=$2
19437     ac_shift=shift
19438     ;;
19439   *) # This is not an option, so the user has probably given explicit
19440      # arguments.
19441      ac_option=$1
19442      ac_need_defaults=false;;
19443   esac
19444
19445   case $ac_option in
19446   # Handling of the options.
19447 _ACEOF
19448 cat >>$CONFIG_STATUS <<\_ACEOF
19449   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19450     ac_cs_recheck=: ;;
19451   --version | --vers* | -V )
19452     echo "$ac_cs_version"; exit 0 ;;
19453   --he | --h)
19454     # Conflict between --help and --header
19455     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19456 Try \`$0 --help' for more information." >&5
19457 echo "$as_me: error: ambiguous option: $1
19458 Try \`$0 --help' for more information." >&2;}
19459    { (exit 1); exit 1; }; };;
19460   --help | --hel | -h )
19461     echo "$ac_cs_usage"; exit 0 ;;
19462   --debug | --d* | -d )
19463     debug=: ;;
19464   --file | --fil | --fi | --f )
19465     $ac_shift
19466     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19467     ac_need_defaults=false;;
19468   --header | --heade | --head | --hea )
19469     $ac_shift
19470     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19471     ac_need_defaults=false;;
19472   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19473   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19474     ac_cs_silent=: ;;
19475
19476   # This is an error.
19477   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19478 Try \`$0 --help' for more information." >&5
19479 echo "$as_me: error: unrecognized option: $1
19480 Try \`$0 --help' for more information." >&2;}
19481    { (exit 1); exit 1; }; } ;;
19482
19483   *) ac_config_targets="$ac_config_targets $1" ;;
19484
19485   esac
19486   shift
19487 done
19488
19489 ac_configure_extra_args=
19490
19491 if $ac_cs_silent; then
19492   exec 6>/dev/null
19493   ac_configure_extra_args="$ac_configure_extra_args --silent"
19494 fi
19495
19496 _ACEOF
19497 cat >>$CONFIG_STATUS <<_ACEOF
19498 if \$ac_cs_recheck; then
19499   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19500   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19501 fi
19502
19503 _ACEOF
19504
19505 cat >>$CONFIG_STATUS <<_ACEOF
19506 #
19507 # INIT-COMMANDS section.
19508 #
19509
19510
19511
19512 _ACEOF
19513
19514
19515
19516 cat >>$CONFIG_STATUS <<\_ACEOF
19517 for ac_config_target in $ac_config_targets
19518 do
19519   case "$ac_config_target" in
19520   # Handling of arguments.
19521   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19522   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19523   "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
19524   "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
19525   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19526   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19527   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19528 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19529    { (exit 1); exit 1; }; };;
19530   esac
19531 done
19532
19533 # If the user did not use the arguments to specify the items to instantiate,
19534 # then the envvar interface is used.  Set only those that are not.
19535 # We use the long form for the default assignment because of an extremely
19536 # bizarre bug on SunOS 4.1.3.
19537 if $ac_need_defaults; then
19538   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19539   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19540   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19541 fi
19542
19543 # Have a temporary directory for convenience.  Make it in the build tree
19544 # simply because there is no reason to put it here, and in addition,
19545 # creating and moving files from /tmp can sometimes cause problems.
19546 # Create a temporary directory, and hook for its removal unless debugging.
19547 $debug ||
19548 {
19549   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19550   trap '{ (exit 1); exit 1; }' 1 2 13 15
19551 }
19552
19553 # Create a (secure) tmp directory for tmp files.
19554
19555 {
19556   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19557   test -n "$tmp" && test -d "$tmp"
19558 }  ||
19559 {
19560   tmp=./confstat$$-$RANDOM
19561   (umask 077 && mkdir $tmp)
19562 } ||
19563 {
19564    echo "$me: cannot create a temporary directory in ." >&2
19565    { (exit 1); exit 1; }
19566 }
19567
19568 _ACEOF
19569
19570 cat >>$CONFIG_STATUS <<_ACEOF
19571
19572 #
19573 # CONFIG_FILES section.
19574 #
19575
19576 # No need to generate the scripts if there are no CONFIG_FILES.
19577 # This happens for instance when ./config.status config.h
19578 if test -n "\$CONFIG_FILES"; then
19579   # Protect against being on the right side of a sed subst in config.status.
19580   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19581    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19582 s,@SHELL@,$SHELL,;t t
19583 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19584 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19585 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19586 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19587 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19588 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19589 s,@exec_prefix@,$exec_prefix,;t t
19590 s,@prefix@,$prefix,;t t
19591 s,@program_transform_name@,$program_transform_name,;t t
19592 s,@bindir@,$bindir,;t t
19593 s,@sbindir@,$sbindir,;t t
19594 s,@libexecdir@,$libexecdir,;t t
19595 s,@datadir@,$datadir,;t t
19596 s,@sysconfdir@,$sysconfdir,;t t
19597 s,@sharedstatedir@,$sharedstatedir,;t t
19598 s,@localstatedir@,$localstatedir,;t t
19599 s,@libdir@,$libdir,;t t
19600 s,@includedir@,$includedir,;t t
19601 s,@oldincludedir@,$oldincludedir,;t t
19602 s,@infodir@,$infodir,;t t
19603 s,@mandir@,$mandir,;t t
19604 s,@build_alias@,$build_alias,;t t
19605 s,@host_alias@,$host_alias,;t t
19606 s,@target_alias@,$target_alias,;t t
19607 s,@DEFS@,$DEFS,;t t
19608 s,@ECHO_C@,$ECHO_C,;t t
19609 s,@ECHO_N@,$ECHO_N,;t t
19610 s,@ECHO_T@,$ECHO_T,;t t
19611 s,@LIBS@,$LIBS,;t t
19612 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19613 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19614 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19615 s,@PACKAGE@,$PACKAGE,;t t
19616 s,@VERSION@,$VERSION,;t t
19617 s,@ACLOCAL@,$ACLOCAL,;t t
19618 s,@AUTOCONF@,$AUTOCONF,;t t
19619 s,@AUTOMAKE@,$AUTOMAKE,;t t
19620 s,@AUTOHEADER@,$AUTOHEADER,;t t
19621 s,@MAKEINFO@,$MAKEINFO,;t t
19622 s,@SET_MAKE@,$SET_MAKE,;t t
19623 s,@CC@,$CC,;t t
19624 s,@CFLAGS@,$CFLAGS,;t t
19625 s,@LDFLAGS@,$LDFLAGS,;t t
19626 s,@CPPFLAGS@,$CPPFLAGS,;t t
19627 s,@ac_ct_CC@,$ac_ct_CC,;t t
19628 s,@EXEEXT@,$EXEEXT,;t t
19629 s,@OBJEXT@,$OBJEXT,;t t
19630 s,@CXX@,$CXX,;t t
19631 s,@CXXFLAGS@,$CXXFLAGS,;t t
19632 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19633 s,@build@,$build,;t t
19634 s,@build_cpu@,$build_cpu,;t t
19635 s,@build_vendor@,$build_vendor,;t t
19636 s,@build_os@,$build_os,;t t
19637 s,@host@,$host,;t t
19638 s,@host_cpu@,$host_cpu,;t t
19639 s,@host_vendor@,$host_vendor,;t t
19640 s,@host_os@,$host_os,;t t
19641 s,@EGREP@,$EGREP,;t t
19642 s,@LN_S@,$LN_S,;t t
19643 s,@ECHO@,$ECHO,;t t
19644 s,@AR@,$AR,;t t
19645 s,@ac_ct_AR@,$ac_ct_AR,;t t
19646 s,@RANLIB@,$RANLIB,;t t
19647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19648 s,@STRIP@,$STRIP,;t t
19649 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19650 s,@CPP@,$CPP,;t t
19651 s,@CXXCPP@,$CXXCPP,;t t
19652 s,@F77@,$F77,;t t
19653 s,@FFLAGS@,$FFLAGS,;t t
19654 s,@ac_ct_F77@,$ac_ct_F77,;t t
19655 s,@LIBTOOL@,$LIBTOOL,;t t
19656 s,@APXS@,$APXS,;t t
19657 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
19658 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
19659 s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
19660 s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
19661 s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
19662 s,@APR_INCLUDEDIR@,$APR_INCLUDEDIR,;t t
19663 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
19664 s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
19665 s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
19666 s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
19667 s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
19668 s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
19669 s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
19670 s,@LIBOBJS@,$LIBOBJS,;t t
19671 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19672 CEOF
19673
19674 _ACEOF
19675
19676   cat >>$CONFIG_STATUS <<\_ACEOF
19677   # Split the substitutions into bite-sized pieces for seds with
19678   # small command number limits, like on Digital OSF/1 and HP-UX.
19679   ac_max_sed_lines=48
19680   ac_sed_frag=1 # Number of current file.
19681   ac_beg=1 # First line for current file.
19682   ac_end=$ac_max_sed_lines # Line after last line for current file.
19683   ac_more_lines=:
19684   ac_sed_cmds=
19685   while $ac_more_lines; do
19686     if test $ac_beg -gt 1; then
19687       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19688     else
19689       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19690     fi
19691     if test ! -s $tmp/subs.frag; then
19692       ac_more_lines=false
19693     else
19694       # The purpose of the label and of the branching condition is to
19695       # speed up the sed processing (if there are no `@' at all, there
19696       # is no need to browse any of the substitutions).
19697       # These are the two extra sed commands mentioned above.
19698       (echo ':t
19699   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19700       if test -z "$ac_sed_cmds"; then
19701         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19702       else
19703         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19704       fi
19705       ac_sed_frag=`expr $ac_sed_frag + 1`
19706       ac_beg=$ac_end
19707       ac_end=`expr $ac_end + $ac_max_sed_lines`
19708     fi
19709   done
19710   if test -z "$ac_sed_cmds"; then
19711     ac_sed_cmds=cat
19712   fi
19713 fi # test -n "$CONFIG_FILES"
19714
19715 _ACEOF
19716 cat >>$CONFIG_STATUS <<\_ACEOF
19717 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19718   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19719   case $ac_file in
19720   - | *:- | *:-:* ) # input from stdin
19721         cat >$tmp/stdin
19722         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19723         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19724   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19725         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19726   * )   ac_file_in=$ac_file.in ;;
19727   esac
19728
19729   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19730   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19732          X"$ac_file" : 'X\(//\)[^/]' \| \
19733          X"$ac_file" : 'X\(//\)$' \| \
19734          X"$ac_file" : 'X\(/\)' \| \
19735          .     : '\(.\)' 2>/dev/null ||
19736 echo X"$ac_file" |
19737     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19738           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19739           /^X\(\/\/\)$/{ s//\1/; q; }
19740           /^X\(\/\).*/{ s//\1/; q; }
19741           s/.*/./; q'`
19742   { if $as_mkdir_p; then
19743     mkdir -p "$ac_dir"
19744   else
19745     as_dir="$ac_dir"
19746     as_dirs=
19747     while test ! -d "$as_dir"; do
19748       as_dirs="$as_dir $as_dirs"
19749       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19751          X"$as_dir" : 'X\(//\)[^/]' \| \
19752          X"$as_dir" : 'X\(//\)$' \| \
19753          X"$as_dir" : 'X\(/\)' \| \
19754          .     : '\(.\)' 2>/dev/null ||
19755 echo X"$as_dir" |
19756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19757           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19758           /^X\(\/\/\)$/{ s//\1/; q; }
19759           /^X\(\/\).*/{ s//\1/; q; }
19760           s/.*/./; q'`
19761     done
19762     test ! -n "$as_dirs" || mkdir $as_dirs
19763   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19764 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19765    { (exit 1); exit 1; }; }; }
19766
19767   ac_builddir=.
19768
19769 if test "$ac_dir" != .; then
19770   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19771   # A "../" for each directory in $ac_dir_suffix.
19772   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19773 else
19774   ac_dir_suffix= ac_top_builddir=
19775 fi
19776
19777 case $srcdir in
19778   .)  # No --srcdir option.  We are building in place.
19779     ac_srcdir=.
19780     if test -z "$ac_top_builddir"; then
19781        ac_top_srcdir=.
19782     else
19783        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19784     fi ;;
19785   [\\/]* | ?:[\\/]* )  # Absolute path.
19786     ac_srcdir=$srcdir$ac_dir_suffix;
19787     ac_top_srcdir=$srcdir ;;
19788   *) # Relative path.
19789     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19790     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19791 esac
19792
19793 # Do not use `cd foo && pwd` to compute absolute paths, because
19794 # the directories may not exist.
19795 case `pwd` in
19796 .) ac_abs_builddir="$ac_dir";;
19797 *)
19798   case "$ac_dir" in
19799   .) ac_abs_builddir=`pwd`;;
19800   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19801   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19802   esac;;
19803 esac
19804 case $ac_abs_builddir in
19805 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19806 *)
19807   case ${ac_top_builddir}. in
19808   .) ac_abs_top_builddir=$ac_abs_builddir;;
19809   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19810   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19811   esac;;
19812 esac
19813 case $ac_abs_builddir in
19814 .) ac_abs_srcdir=$ac_srcdir;;
19815 *)
19816   case $ac_srcdir in
19817   .) ac_abs_srcdir=$ac_abs_builddir;;
19818   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19819   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19820   esac;;
19821 esac
19822 case $ac_abs_builddir in
19823 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19824 *)
19825   case $ac_top_srcdir in
19826   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19827   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19828   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19829   esac;;
19830 esac
19831
19832
19833   case $INSTALL in
19834   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19835   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19836   esac
19837
19838   # Let's still pretend it is `configure' which instantiates (i.e., don't
19839   # use $as_me), people would be surprised to read:
19840   #    /* config.h.  Generated by config.status.  */
19841   if test x"$ac_file" = x-; then
19842     configure_input=
19843   else
19844     configure_input="$ac_file.  "
19845   fi
19846   configure_input=$configure_input"Generated from `echo $ac_file_in |
19847                                      sed 's,.*/,,'` by configure."
19848
19849   # First look for the input files in the build tree, otherwise in the
19850   # src tree.
19851   ac_file_inputs=`IFS=:
19852     for f in $ac_file_in; do
19853       case $f in
19854       -) echo $tmp/stdin ;;
19855       [\\/$]*)
19856          # Absolute (can't be DOS-style, as IFS=:)
19857          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19858 echo "$as_me: error: cannot find input file: $f" >&2;}
19859    { (exit 1); exit 1; }; }
19860          echo "$f";;
19861       *) # Relative
19862          if test -f "$f"; then
19863            # Build tree
19864            echo "$f"
19865          elif test -f "$srcdir/$f"; then
19866            # Source tree
19867            echo "$srcdir/$f"
19868          else
19869            # /dev/null tree
19870            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19871 echo "$as_me: error: cannot find input file: $f" >&2;}
19872    { (exit 1); exit 1; }; }
19873          fi;;
19874       esac
19875     done` || { (exit 1); exit 1; }
19876
19877   if test x"$ac_file" != x-; then
19878     { echo "$as_me:$LINENO: creating $ac_file" >&5
19879 echo "$as_me: creating $ac_file" >&6;}
19880     rm -f "$ac_file"
19881   fi
19882 _ACEOF
19883 cat >>$CONFIG_STATUS <<_ACEOF
19884   sed "$ac_vpsub
19885 $extrasub
19886 _ACEOF
19887 cat >>$CONFIG_STATUS <<\_ACEOF
19888 :t
19889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19890 s,@configure_input@,$configure_input,;t t
19891 s,@srcdir@,$ac_srcdir,;t t
19892 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19893 s,@top_srcdir@,$ac_top_srcdir,;t t
19894 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19895 s,@builddir@,$ac_builddir,;t t
19896 s,@abs_builddir@,$ac_abs_builddir,;t t
19897 s,@top_builddir@,$ac_top_builddir,;t t
19898 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19899 s,@INSTALL@,$ac_INSTALL,;t t
19900 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19901   rm -f $tmp/stdin
19902   if test x"$ac_file" != x-; then
19903     mv $tmp/out $ac_file
19904   else
19905     cat $tmp/out
19906     rm -f $tmp/out
19907   fi
19908
19909 done
19910 _ACEOF
19911 cat >>$CONFIG_STATUS <<\_ACEOF
19912
19913 #
19914 # CONFIG_HEADER section.
19915 #
19916
19917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19919 #
19920 # ac_d sets the value in "#define NAME VALUE" lines.
19921 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
19922 ac_dB='[         ].*$,\1#\2'
19923 ac_dC=' '
19924 ac_dD=',;t'
19925 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19926 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19927 ac_uB='$,\1#\2define\3'
19928 ac_uC=' '
19929 ac_uD=',;t'
19930
19931 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19932   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19933   case $ac_file in
19934   - | *:- | *:-:* ) # input from stdin
19935         cat >$tmp/stdin
19936         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19937         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19938   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19939         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19940   * )   ac_file_in=$ac_file.in ;;
19941   esac
19942
19943   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19944 echo "$as_me: creating $ac_file" >&6;}
19945
19946   # First look for the input files in the build tree, otherwise in the
19947   # src tree.
19948   ac_file_inputs=`IFS=:
19949     for f in $ac_file_in; do
19950       case $f in
19951       -) echo $tmp/stdin ;;
19952       [\\/$]*)
19953          # Absolute (can't be DOS-style, as IFS=:)
19954          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19955 echo "$as_me: error: cannot find input file: $f" >&2;}
19956    { (exit 1); exit 1; }; }
19957          # Do quote $f, to prevent DOS paths from being IFS'd.
19958          echo "$f";;
19959       *) # Relative
19960          if test -f "$f"; then
19961            # Build tree
19962            echo "$f"
19963          elif test -f "$srcdir/$f"; then
19964            # Source tree
19965            echo "$srcdir/$f"
19966          else
19967            # /dev/null tree
19968            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19969 echo "$as_me: error: cannot find input file: $f" >&2;}
19970    { (exit 1); exit 1; }; }
19971          fi;;
19972       esac
19973     done` || { (exit 1); exit 1; }
19974   # Remove the trailing spaces.
19975   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
19976
19977 _ACEOF
19978
19979 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19980 # `conftest.undefs', that substitutes the proper values into
19981 # config.h.in to produce config.h.  The first handles `#define'
19982 # templates, and the second `#undef' templates.
19983 # And first: Protect against being on the right side of a sed subst in
19984 # config.status.  Protect against being in an unquoted here document
19985 # in config.status.
19986 rm -f conftest.defines conftest.undefs
19987 # Using a here document instead of a string reduces the quoting nightmare.
19988 # Putting comments in sed scripts is not portable.
19989 #
19990 # `end' is used to avoid that the second main sed command (meant for
19991 # 0-ary CPP macros) applies to n-ary macro definitions.
19992 # See the Autoconf documentation for `clear'.
19993 cat >confdef2sed.sed <<\_ACEOF
19994 s/[\\&,]/\\&/g
19995 s,[\\$`],\\&,g
19996 t clear
19997 : clear
19998 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19999 t end
20000 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20001 : end
20002 _ACEOF
20003 # If some macros were called several times there might be several times
20004 # the same #defines, which is useless.  Nevertheless, we may not want to
20005 # sort them, since we want the *last* AC-DEFINE to be honored.
20006 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20007 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20008 rm -f confdef2sed.sed
20009
20010 # This sed command replaces #undef with comments.  This is necessary, for
20011 # example, in the case of _POSIX_SOURCE, which is predefined and required
20012 # on some systems where configure will not decide to define it.
20013 cat >>conftest.undefs <<\_ACEOF
20014 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20015 _ACEOF
20016
20017 # Break up conftest.defines because some shells have a limit on the size
20018 # of here documents, and old seds have small limits too (100 cmds).
20019 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20020 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20021 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20022 echo '  :' >>$CONFIG_STATUS
20023 rm -f conftest.tail
20024 while grep . conftest.defines >/dev/null
20025 do
20026   # Write a limited-size here document to $tmp/defines.sed.
20027   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20028   # Speed up: don't consider the non `#define' lines.
20029   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20030   # Work around the forget-to-reset-the-flag bug.
20031   echo 't clr' >>$CONFIG_STATUS
20032   echo ': clr' >>$CONFIG_STATUS
20033   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20034   echo 'CEOF
20035   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20036   rm -f $tmp/in
20037   mv $tmp/out $tmp/in
20038 ' >>$CONFIG_STATUS
20039   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20040   rm -f conftest.defines
20041   mv conftest.tail conftest.defines
20042 done
20043 rm -f conftest.defines
20044 echo '  fi # grep' >>$CONFIG_STATUS
20045 echo >>$CONFIG_STATUS
20046
20047 # Break up conftest.undefs because some shells have a limit on the size
20048 # of here documents, and old seds have small limits too (100 cmds).
20049 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20050 rm -f conftest.tail
20051 while grep . conftest.undefs >/dev/null
20052 do
20053   # Write a limited-size here document to $tmp/undefs.sed.
20054   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20055   # Speed up: don't consider the non `#undef'
20056   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20057   # Work around the forget-to-reset-the-flag bug.
20058   echo 't clr' >>$CONFIG_STATUS
20059   echo ': clr' >>$CONFIG_STATUS
20060   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20061   echo 'CEOF
20062   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20063   rm -f $tmp/in
20064   mv $tmp/out $tmp/in
20065 ' >>$CONFIG_STATUS
20066   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20067   rm -f conftest.undefs
20068   mv conftest.tail conftest.undefs
20069 done
20070 rm -f conftest.undefs
20071
20072 cat >>$CONFIG_STATUS <<\_ACEOF
20073   # Let's still pretend it is `configure' which instantiates (i.e., don't
20074   # use $as_me), people would be surprised to read:
20075   #    /* config.h.  Generated by config.status.  */
20076   if test x"$ac_file" = x-; then
20077     echo "/* Generated by configure.  */" >$tmp/config.h
20078   else
20079     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20080   fi
20081   cat $tmp/in >>$tmp/config.h
20082   rm -f $tmp/in
20083   if test x"$ac_file" != x-; then
20084     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20085       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20086 echo "$as_me: $ac_file is unchanged" >&6;}
20087     else
20088       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20090          X"$ac_file" : 'X\(//\)[^/]' \| \
20091          X"$ac_file" : 'X\(//\)$' \| \
20092          X"$ac_file" : 'X\(/\)' \| \
20093          .     : '\(.\)' 2>/dev/null ||
20094 echo X"$ac_file" |
20095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20096           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20097           /^X\(\/\/\)$/{ s//\1/; q; }
20098           /^X\(\/\).*/{ s//\1/; q; }
20099           s/.*/./; q'`
20100       { if $as_mkdir_p; then
20101     mkdir -p "$ac_dir"
20102   else
20103     as_dir="$ac_dir"
20104     as_dirs=
20105     while test ! -d "$as_dir"; do
20106       as_dirs="$as_dir $as_dirs"
20107       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20109          X"$as_dir" : 'X\(//\)[^/]' \| \
20110          X"$as_dir" : 'X\(//\)$' \| \
20111          X"$as_dir" : 'X\(/\)' \| \
20112          .     : '\(.\)' 2>/dev/null ||
20113 echo X"$as_dir" |
20114     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20115           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20116           /^X\(\/\/\)$/{ s//\1/; q; }
20117           /^X\(\/\).*/{ s//\1/; q; }
20118           s/.*/./; q'`
20119     done
20120     test ! -n "$as_dirs" || mkdir $as_dirs
20121   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20122 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20123    { (exit 1); exit 1; }; }; }
20124
20125       rm -f $ac_file
20126       mv $tmp/config.h $ac_file
20127     fi
20128   else
20129     cat $tmp/config.h
20130     rm -f $tmp/config.h
20131   fi
20132 done
20133 _ACEOF
20134 cat >>$CONFIG_STATUS <<\_ACEOF
20135
20136 #
20137 # CONFIG_COMMANDS section.
20138 #
20139 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20140   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20141   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20142   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20143 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20144          X"$ac_dest" : 'X\(//\)[^/]' \| \
20145          X"$ac_dest" : 'X\(//\)$' \| \
20146          X"$ac_dest" : 'X\(/\)' \| \
20147          .     : '\(.\)' 2>/dev/null ||
20148 echo X"$ac_dest" |
20149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20151           /^X\(\/\/\)$/{ s//\1/; q; }
20152           /^X\(\/\).*/{ s//\1/; q; }
20153           s/.*/./; q'`
20154   { if $as_mkdir_p; then
20155     mkdir -p "$ac_dir"
20156   else
20157     as_dir="$ac_dir"
20158     as_dirs=
20159     while test ! -d "$as_dir"; do
20160       as_dirs="$as_dir $as_dirs"
20161       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20163          X"$as_dir" : 'X\(//\)[^/]' \| \
20164          X"$as_dir" : 'X\(//\)$' \| \
20165          X"$as_dir" : 'X\(/\)' \| \
20166          .     : '\(.\)' 2>/dev/null ||
20167 echo X"$as_dir" |
20168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20169           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20170           /^X\(\/\/\)$/{ s//\1/; q; }
20171           /^X\(\/\).*/{ s//\1/; q; }
20172           s/.*/./; q'`
20173     done
20174     test ! -n "$as_dirs" || mkdir $as_dirs
20175   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20177    { (exit 1); exit 1; }; }; }
20178
20179   ac_builddir=.
20180
20181 if test "$ac_dir" != .; then
20182   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20183   # A "../" for each directory in $ac_dir_suffix.
20184   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20185 else
20186   ac_dir_suffix= ac_top_builddir=
20187 fi
20188
20189 case $srcdir in
20190   .)  # No --srcdir option.  We are building in place.
20191     ac_srcdir=.
20192     if test -z "$ac_top_builddir"; then
20193        ac_top_srcdir=.
20194     else
20195        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20196     fi ;;
20197   [\\/]* | ?:[\\/]* )  # Absolute path.
20198     ac_srcdir=$srcdir$ac_dir_suffix;
20199     ac_top_srcdir=$srcdir ;;
20200   *) # Relative path.
20201     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20202     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20203 esac
20204
20205 # Do not use `cd foo && pwd` to compute absolute paths, because
20206 # the directories may not exist.
20207 case `pwd` in
20208 .) ac_abs_builddir="$ac_dir";;
20209 *)
20210   case "$ac_dir" in
20211   .) ac_abs_builddir=`pwd`;;
20212   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20213   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20214   esac;;
20215 esac
20216 case $ac_abs_builddir in
20217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20218 *)
20219   case ${ac_top_builddir}. in
20220   .) ac_abs_top_builddir=$ac_abs_builddir;;
20221   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20222   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20223   esac;;
20224 esac
20225 case $ac_abs_builddir in
20226 .) ac_abs_srcdir=$ac_srcdir;;
20227 *)
20228   case $ac_srcdir in
20229   .) ac_abs_srcdir=$ac_abs_builddir;;
20230   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20231   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20232   esac;;
20233 esac
20234 case $ac_abs_builddir in
20235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20236 *)
20237   case $ac_top_srcdir in
20238   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20239   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20240   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20241   esac;;
20242 esac
20243
20244
20245   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20246 echo "$as_me: executing $ac_dest commands" >&6;}
20247   case $ac_dest in
20248     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
20249   esac
20250 done
20251 _ACEOF
20252
20253 cat >>$CONFIG_STATUS <<\_ACEOF
20254
20255 { (exit 0); exit 0; }
20256 _ACEOF
20257 chmod +x $CONFIG_STATUS
20258 ac_clean_files=$ac_clean_files_save
20259
20260
20261 # configure is writing to config.log, and then calls config.status.
20262 # config.status does its own redirection, appending to config.log.
20263 # Unfortunately, on DOS this fails, as config.log is still kept open
20264 # by configure, so config.status won't be able to write to it; its
20265 # output is simply discarded.  So we exec the FD to /dev/null,
20266 # effectively closing config.log, so it can be properly (re)opened and
20267 # appended to by config.status.  When coming back to configure, we
20268 # need to make the FD available again.
20269 if test "$no_create" != yes; then
20270   ac_cs_success=:
20271   ac_config_status_args=
20272   test "$silent" = yes &&
20273     ac_config_status_args="$ac_config_status_args --quiet"
20274   exec 5>/dev/null
20275   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20276   exec 5>>config.log
20277   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20278   # would make configure fail if this is the last instruction.
20279   $ac_cs_success || { (exit 1); exit 1; }
20280 fi
20281
20282
20283 if test "$APXS" = "/notfound/"; then
20284   { echo "$as_me:$LINENO: WARNING:
20285 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20286 !!*** APXS was not found, so mod_suphp will not be built! ***!!
20287 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20288   " >&5
20289 echo "$as_me: WARNING:
20290 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20291 !!*** APXS was not found, so mod_suphp will not be built! ***!!
20292 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20293   " >&2;}
20294 fi
20295